/* M&R meetings grid — status-cell tint for MyDxGrid CellCssClassFunc.
   Must be global (MyDxGrid owns the cell element; isolated .razor.css won't reach it). LW+CL 15.07.26 */
.mtg-status-draft       { background: #e9ecef; color: #495057; font-weight: 600; }
.mtg-status-scheduled   { background: #e8d5f5; color: #6f42c1; font-weight: 600; }
.mtg-status-in-progress { background: #fff3cd; color: #856404; font-weight: 600; }
.mtg-status-ratified    { background: #d1e7dd; color: #0f5132; font-weight: 600; }
.mtg-status-filed       { background: #cfe2ff; color: #084298; font-weight: 600; }
.mtg-status-cancelled   { background: #f8d7da; color: #842029; font-weight: 600; }

/* M&R meeting-type chip (grid Type-cell CellCssClassFunc), colour-coded like the POC. Global — MyDxGrid owns the cell. LW+CL 15.07.26 */
.mtg-type-board              { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.mtg-type-agm                { background: #f5f3ff; color: #7c3aed; font-weight: 600; }
.mtg-type-egm                { background: #f5f3ff; color: #7c3aed; font-weight: 600; }
.mtg-type-trustee-meeting    { background: #ecfdf5; color: #047857; font-weight: 600; }
.mtg-type-written-resolution { background: #f0fdf4; color: #16a34a; font-weight: 600; }
.mtg-type-sealing            { background: #fef2f2; color: #b91c1c; font-weight: 600; }
.mtg-type-other              { background: #f1f5f9; color: #475569; font-weight: 600; }

/* M&R resolution status-cell tint (votes grid / resolutions grid CellCssClassFunc). Global — MyDxGrid owns the cell. LW+CL 15.07.26 */
.mtgres-status-draft     { background: #e9ecef; color: #495057; font-weight: 600; }
.mtgres-status-proposed  { background: #fff3cd; color: #856404; font-weight: 600; }
.mtgres-status-passed    { background: #d1e7dd; color: #0f5132; font-weight: 600; }
.mtgres-status-failed    { background: #f8d7da; color: #842029; font-weight: 600; }
.mtgres-status-withdrawn { background: #e2e3e5; color: #6c757d; font-weight: 600; }

/* M&R detail-view stacked sub-grids — the detail page scrolls (.rrc-page-scroll),
   so each MyDxGrid needs a bounded height or it expands to all rows. LW+CL 15.07.26 */
.meet-subgrid-wrap    { height: 320px; display: flex; flex-direction: column; margin-bottom: 0.5rem; }
.meet-subgrid-wrap-sm { height: 240px; display: flex; flex-direction: column; margin-bottom: 0.5rem; }

/* ============================================================
   WealthSphere — Governed Transactions Shared Design Tokens
   Used by GTC dashboard, Transaction Monitoring, and pipeline UI.
   Aligned with the app's Fluent theme (site-theme-fluent.css).
   ============================================================ */

/* --- Shared Design Tokens --- */
:root {
    /* Primary */
    --gt-navy: #0a3d62;
    --gt-navy-dark: #083352;
    --gt-navy-text: #1a1d2e;
    --gt-teal: #00a896;
    --gt-teal-light: #00d9c5;
    /* Semantic */
    --gt-green: #1a8a3a;
    --gt-amber: #c97c00;
    --gt-amber-dark: #a86800;
    --gt-red: #d93025;
    --gt-orange: #e67e22;
    --gt-purple: #8e44ad;
    --gt-blue: #1a6fd4;
    /* Text */
    --gt-text: #1a1d2e;
    --gt-text-secondary: #4a5568;
    --gt-text-muted: #64748b;
    --gt-text-faint: #94a3b8;
    --gt-text-inverse: #fff;
    /* Surfaces */
    --gt-bg: #f7f9fc;
    --gt-bg-alt: #e8ecef;
    --gt-card: #fff;
    --gt-border: #e2e8f0;
    --gt-border-light: #f0f0f0;
    /* Shared */
    --gt-radius: 8px;
    --gt-radius-sm: 6px;
    --gt-shadow: 0 2px 8px rgba(0,0,0,.06);
    --gt-shadow-lg: 0 4px 12px rgba(0,0,0,.10);
    /* Legacy aliases — GTC components still reference these */
    --gtc-navy: var(--gt-navy-text);
    --gtc-teal: var(--gt-teal-light);
    --gtc-green: var(--gt-green);
    --gtc-amber: var(--gt-amber);
    --gtc-red: var(--gt-red);
    --gtc-purple: var(--gt-purple);
    --gtc-text: var(--gt-text);
    --gtc-text-light: var(--gt-text-muted);
    --gtc-bg: var(--gt-bg-alt);
    --gtc-card: var(--gt-card);
    --gtc-border: var(--gt-border);
    --gtc-border-light: var(--gt-border-light);
    --gtc-radius: var(--gt-radius);
    --gtc-shadow: var(--gt-shadow);
}

/* --- GTC/RRC Background — overrides the main app's gridlayout pattern --- */
.gtc-dashboard,
.gtc-page-header,
.rrc-dashboard,
.rrc-page-header {
    position: relative;
}
/* When GTC/RRC dashboard is visible, restyle the parent gridlayout background */
.gtc-dashboard ~ style, /* dummy selector to keep specificity context */
.dxbl-gridlayout-root:has(.gtc-dashboard),
.dxbl-gridlayout-root:has(.gtc-page-header),
.dxbl-gridlayout-root:has(.rrc-dashboard),
.dxbl-gridlayout-root:has(.rrc-page-header) {
    background-image:
        /* Teal glow spots */
        radial-gradient(ellipse 600px 400px at 5% 15%, rgba(0, 217, 197, .12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 95% 85%, rgba(0, 184, 148, .08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 0%, rgba(0, 217, 197, .06) 0%, transparent 60%),
        /* Grid lines */
        linear-gradient(rgba(0, 217, 197, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 197, .06) 1px, transparent 1px),
        /* Diagonal accent bands */
        repeating-linear-gradient(135deg, transparent, transparent 60px, rgba(0, 217, 197, .025) 60px, rgba(0, 217, 197, .025) 62px),
        /* Base */
        linear-gradient(170deg, #f2f5f7 0%, #eaeff3 35%, #e3eaef 65%, #dde4ea 100%) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px, 100% 100%, 100% 100% !important;
    background-color: #f2f5f7 !important;
    background-attachment: fixed !important;
}

/* --- Dashboard Layout --- */
.gtc-dashboard { padding: 1rem 1.25rem; }
.gtc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.gtc-header h1 { font-size: 1.1rem; font-weight: 600; color: var(--gtc-text); margin-bottom: .25rem; }
.gtc-header-sub { font-size: .75rem; color: var(--gtc-text-light); }
.gtc-loading { padding: 3rem; text-align: center; color: var(--gtc-text-light); display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.gtc-spinner { width: 32px; height: 32px; border: 3px solid var(--gtc-border); border-top-color: var(--gtc-teal); border-radius: 50%; animation: gtc-spin .8s linear infinite; }
@keyframes gtc-spin { to { transform: rotate(360deg); } }
.gtc-loading-text { font-size: .82rem; color: var(--gtc-text-light); }

/* --- KPI Tiles --- */
.gtc-kpi-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; margin: 1rem 0; }
.gtc-kpi-tile { background: var(--gtc-card); border-radius: var(--gtc-radius); padding: .9rem 1rem; box-shadow: var(--gtc-shadow); border-left: 4px solid var(--gtc-border); cursor: pointer; transition: all .2s; user-select: none; }
.gtc-kpi-tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,.13); transform: translateY(-2px); }
/* LW+CL:30.09.26 #1307 — display-only KpiTile (Clickable="false") */
.gtc-kpi-tile.gtc-kpi-tile--static { cursor: default; }
.gtc-kpi-tile.gtc-kpi-tile--static:hover { box-shadow: var(--gtc-shadow); transform: none; }
.gtc-kpi-active { box-shadow: 0 0 0 2px var(--gtc-teal), 0 4px 14px rgba(0,217,197,.18); }
/* LW+CL:10.11.26 (C78) the POC's "Filtering" caption on the tile whose filter is on, bottom right. */
.gtc-kpi-tile { position: relative; }
.gtc-kpi-filtering { position: absolute; bottom: 4px; right: 8px; font-size: .58rem; font-weight: 700; color: var(--gtc-teal); text-transform: uppercase; letter-spacing: .4px; }
.gtc-kpi-teal { border-left-color: var(--gtc-teal); }
.gtc-kpi-red { border-left-color: var(--gtc-red); }
.gtc-kpi-amber { border-left-color: var(--gtc-amber); }
.gtc-kpi-green { border-left-color: var(--gtc-green); }
.gtc-kpi-navy { border-left-color: var(--gtc-navy); }
.gtc-kpi-purple { border-left-color: var(--gtc-purple); }
/* LW+CL:03.09.26 — neutral variant, added for Pulse's "No due date" tile: a statement about the
   data rather than an urgency level, so it must not borrow a colour that codes for one. */
.gtc-kpi-grey { border-left-color: #b0b7c3; }
.gtc-kpi-value { font-size: 1.7rem; font-weight: 700; color: var(--gtc-text); line-height: 1; }
.gtc-kpi-title { font-size: .67rem; color: #999; margin-top: .25rem; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.gtc-kpi-subtitle { font-size: .7rem; color: var(--gtc-text-light); margin-top: .1rem; }

/* --- Filter Bar --- */
.gtc-filter-bar { background: var(--gtc-card); padding: .65rem 1rem; border-radius: var(--gtc-radius); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .76rem; margin-bottom: 1rem; box-shadow: var(--gtc-shadow); }
.gtc-filter-bar label { font-weight: 600; color: #666; }
.gtc-filter-bar select { padding: .28rem .5rem; border: 1px solid #ddd; border-radius: 4px; font-size: .75rem; color: var(--gtc-text); background: #f8f9fa; cursor: pointer; }

/* --- Table --- */
.gtc-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.gtc-table-header span:first-child { font-size: .85rem; font-weight: 600; color: var(--gtc-text); }
.gtc-table-count { font-size: .74rem; color: #999; }
.gtc-table { width: 100%; border-collapse: collapse; background: var(--gtc-card); border-radius: var(--gtc-radius); box-shadow: var(--gtc-shadow); overflow: hidden; }
.gtc-table th { background: #f8f9fa; padding: .5rem .9rem; text-align: left; font-size: .67rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #e8e8e8; white-space: nowrap; }
.gtc-table td { padding: .62rem .9rem; font-size: .78rem; color: var(--gtc-text); border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.gtc-table tr:last-child td { border-bottom: none; }
.gtc-tx-row { cursor: pointer; transition: background .15s; }
.gtc-tx-row:hover td { background: #f0fdfb; }
.gtc-entity-cell { display: flex; align-items: center; gap: .45rem; }
.gtc-entity-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gtc-border); background: #f0f0f0; }
.gtc-row-risk td { background: #fffbf2; }
.gtc-row-breach td { background: #fff8f8; }
.gtc-row-approved td { background: #f0fdf4; color: #555; }
.gtc-row-released td { background: #f0f9f8; color: #888; }
.gtc-row-escalated td { background: #fff0f0; }
.gtc-trigger-count { font-size: .68rem; font-weight: 600; color: var(--gtc-amber); }
.gtc-no-triggers { font-size: .74rem; color: #ccc; }
.gtc-trigger-more { font-size: .64rem; color: #999; font-weight: 500; margin-left: .2rem; }

/* --- Trigger Badges --- */
.gtc-trigger-badge { display: inline-block; padding: .12rem .4rem; border-radius: 8px; font-size: .64rem; font-weight: 700; margin: .08rem .05rem; white-space: nowrap; }
.gtc-badge-thresh { background: #fff3e0; color: var(--gt-orange); }
.gtc-badge-juris { background: #fce4ec; color: #c62828; }
.gtc-badge-new { background: #e3f2fd; color: #1565c0; }
.gtc-badge-tp { background: #f3e5f5; color: #6a1b9a; }
.gtc-badge-entity { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.gtc-badge-pattern { background: #fff9c4; color: #f57f17; }
.gtc-badge-internal { background: #e8f5e9; color: #2e7d32; }
.gtc-badge-default { background: #f0f2f5; color: #666; }

/* --- Detail View --- */
.gtc-detail { padding: 0 1.25rem 1.25rem; }
.gtc-page-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.25rem; }
.gtc-back-link { font-size: .78rem; color: #666; cursor: pointer; padding: .45rem .9rem; background: #f8f9fa; border: 1px solid var(--gtc-border); border-radius: 6px; text-decoration: none; transition: all .2s; }
.gtc-back-link:hover { background: #e8faf8; color: #007b70; border-color: var(--gtc-teal); }

/* Entity Alert */
.gtc-entity-alert { background: #fff2f2; border: 2px solid var(--gtc-red); border-radius: var(--gtc-radius); padding: .9rem 1.1rem; margin-bottom: .9rem; }
.gtc-entity-alert strong { color: #c0392b; }
.gtc-entity-alert p { font-size: .78rem; color: #555; margin-top: .3rem; }
/* LW+CL:30.10.26: a high-scoring transaction against an entity that is not rated high risk: amber, not the entity alarm. */
.gtc-entity-alert-link { display: inline-block; margin-top: .4rem; font-size: .78rem; font-weight: 600; color: #c0392b; text-decoration: none; }
.gtc-entity-alert .gtc-entity-alert-foot { font-weight: 600; color: #7a1f1f; }
.gtc-entity-alert--review { background: #fff8ec; border: 1px solid #f0ad4e; }
.gtc-entity-alert--review strong { color: #9c5b00; }

/* Detail Header */
.gtc-detail-header { background: var(--gtc-card); padding: 1.1rem; border-radius: var(--gtc-radius); box-shadow: var(--gtc-shadow); margin-bottom: .9rem; display: flex; justify-content: space-between; align-items: flex-start; }
.gtc-detail-entity-name { font-size: 1rem; font-weight: 700; color: #1e3a5f; }
.gtc-entity-flag { display: inline-block; background: #ffebee; color: #c62828; border-radius: 50%; width: 20px; height: 20px; text-align: center; font-size: .7rem; font-weight: 700; line-height: 20px; margin-left: .3rem; }
.gtc-detail-refs { font-size: .76rem; color: var(--gtc-text-light); margin-top: .15rem; }
.gtc-detail-amount { font-size: 1.4rem; font-weight: 700; color: #1e3a5f; text-align: right; }
.gtc-detail-usd { font-size: .74rem; color: var(--gtc-text-light); text-align: right; }

/* Key Fields */
.gtc-detail-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; background: var(--gtc-card); padding: .9rem 1.1rem; border-radius: var(--gtc-radius); box-shadow: var(--gtc-shadow); margin-bottom: .9rem; }
.gtc-detail-fields label { font-size: .67rem; color: #aaa; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; display: block; margin-bottom: .2rem; }
.gtc-detail-fields span { font-size: .82rem; color: var(--gtc-text); font-weight: 500; }
/* Risk level pills in detail fields bar */
.gtc-detail-fields .gtc-risk-high,
.gtc-detail-fields .gtc-risk-medium,
.gtc-detail-fields .gtc-risk-low,
.gtc-detail-fields .gtc-risk-unknown {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 10px;
}
.gtc-detail-fields .gtc-risk-high   { color: #991b1b; background: #fee2e2; }
.gtc-detail-fields .gtc-risk-medium { color: #92400e; background: #fef3c7; }
.gtc-detail-fields .gtc-risk-low    { color: #065f46; background: #d1fae5; }
.gtc-detail-fields .gtc-risk-unknown { color: #64748b; background: #f1f5f9; }

/* Triggers bar */
.gtc-detail-triggers { margin-bottom: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.gtc-triggers-label { font-size: .67rem; font-weight: 700; color: var(--gt-orange); text-transform: uppercase; letter-spacing: .4px; margin-right: .3rem; }

/* --- Payee AML Panel (02.09.26) --- */
.gtc-payee-aml { border: 1px solid var(--gtc-border); border-radius: var(--gtc-radius); padding: 1rem 1.1rem; margin-bottom: .9rem; }
.gtc-payee-aml-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gtc-payee-aml-title { font-weight: 700; font-size: .85rem; }
.gtc-payee-aml-subtitle { font-size: .74rem; color: #888; margin-top: .15rem; }
.gtc-payee-aml-loading, .gtc-payee-aml-empty { font-size: .78rem; color: #888; margin-top: .75rem; }
.gtc-payee-aml-error { font-size: .78rem; color: var(--gtc-red); margin-top: .75rem; }
.gtc-payee-aml-result { margin-top: .75rem; padding: .5rem .75rem; border-radius: var(--gtc-radius); font-weight: 700; font-size: .8rem; }
.gtc-payee-aml-result-clear { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.gtc-payee-aml-result-flagged { background: #fff2f2; color: var(--gtc-red); border: 1px solid #fca5a5; }
.gtc-payee-aml-result-error { background: #fff8e1; color: var(--gtc-amber); border: 1px solid #ffe0a3; }
.gtc-payee-aml-hits { margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.gtc-payee-aml-hit { font-size: .74rem; color: #555; }

/* --- Gate Panel --- */
.gtc-gate { border-radius: var(--gtc-radius); padding: .85rem 1.1rem; margin-bottom: .9rem; pointer-events: none; }
.gtc-gate-ready { background: #f0fdf4; border: 2px solid #86efac; }
.gtc-gate-ready span { color: #15803d; font-weight: 600; font-size: .78rem; }
.gtc-gate-blocked { background: #fff2f2; border: 2px solid #fca5a5; }
.gtc-gate-header { display: flex; align-items: center; gap: .4rem; }
.gtc-gate-header span { font-size: .78rem; font-weight: 700; color: #c0392b; }
.gtc-gate-blockers { margin-top: .4rem; padding-left: 1.2rem; }
.gtc-gate-blockers li { font-size: .76rem; color: #c0392b; padding: .15rem 0; }
.gtc-gate-icon { font-size: 1rem; }

/* MLRO Lock */
.gtc-mlro-lock { background: #fff2f2; border: 2px solid var(--gtc-red); border-radius: var(--gtc-radius); padding: .9rem 1.1rem; margin-bottom: .9rem; }
.gtc-mlro-lock strong { color: #c0392b; font-size: .85rem; }
.gtc-mlro-lock p { font-size: .78rem; color: #555; margin-top: .3rem; }

/* --- Tabs --- */
.gtc-tabs { display: flex; background: var(--gtc-card); border-radius: var(--gtc-radius) var(--gtc-radius) 0 0; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.05); border-bottom: 2px solid #eee; }
.gtc-tabs button { flex: 1; padding: .75rem .4rem; text-align: center; background: white; border: none; cursor: pointer; font-size: .75rem; font-weight: 500; color: #888; border-bottom: 3px solid transparent; transition: all .2s; position: relative; }
.gtc-tabs button:hover { background: #f8f9fa; }
.gtc-tab-active { color: var(--gtc-teal) !important; border-bottom-color: var(--gtc-teal) !important; background: #f8fffe !important; font-weight: 600 !important; }
.gtc-tab-dot { position: absolute; top: 6px; right: 12px; width: 7px; height: 7px; background: var(--gtc-red); border-radius: 50%; }
.gtc-tab-content { background: var(--gtc-card); border-radius: 0 0 var(--gtc-radius) var(--gtc-radius); box-shadow: var(--gtc-shadow); padding: 1.25rem; margin-bottom: .9rem; }

.gtc-btn-sm { padding: .35rem .75rem; font-size: .75rem; white-space: nowrap; }

.gtc-evidence-summary { font-size: .78rem; padding: .6rem .85rem; background: #e8faf8; border-radius: 6px; margin-bottom: .9rem; border-left: 4px solid var(--gtc-teal); }

/* --- Audit Trail --- */
.gtc-audit-notice { font-size: .74rem; color: var(--gtc-text-light); margin-bottom: .75rem; font-style: italic; }
.gtc-audit-entry { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #f5f5f5; font-size: .78rem; }
.gtc-audit-entry:last-child { border-bottom: none; }
.gtc-audit-time { color: var(--gtc-text-light); min-width: 110px; flex-shrink: 0; font-size: .72rem; }
.gtc-audit-role { color: var(--gtc-teal); font-weight: 600; min-width: 140px; flex-shrink: 0; font-size: .74rem; }
.gtc-audit-detail { color: var(--gtc-text); }

/* --- Buttons --- */
.gtc-btn { padding: .5rem 1.1rem; border: none; border-radius: 6px; cursor: pointer; font-size: .8rem; font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; gap: .35rem; }
.gtc-btn-primary { background: var(--gtc-teal); color: white; }
.gtc-btn-primary:hover { background: #00c0ad; transform: translateY(-1px); }
.gtc-btn-success { background: var(--gtc-green); color: white; }
.gtc-btn-success:hover { background: #009875; }
.gtc-btn-danger { background: var(--gtc-red); color: white; }
.gtc-btn-danger:hover { background: #c0392b; }
.gtc-btn-outline { background: white; color: #555; border: 1px solid var(--gtc-border); }
.gtc-btn-outline:hover { background: #f8f9fa; }
.gtc-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Messages --- */
.gtc-action-message { padding: .65rem 1rem; border-radius: 6px; font-size: .78rem; font-weight: 500; margin: .5rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.gtc-msg-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.gtc-msg-error { background: #fff2f2; color: #c0392b; border: 1px solid #fca5a5; }
.gtc-msg-dismiss { background: none; border: none; cursor: pointer; font-size: .9rem; opacity: .5; padding: .2rem .4rem; color: inherit; line-height: 1; }
.gtc-msg-dismiss:hover { opacity: 1; }

/* --- Overview Tab --- */
.gtc-overview h3 { font-size: .85rem; font-weight: 600; color: var(--gtc-text); margin-bottom: .75rem; }
.gtc-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; margin-bottom: 1rem; }
.gtc-overview-grid label { font-size: .67rem; color: #aaa; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; display: block; }
.gtc-trigger-detail { padding: .5rem .75rem; margin-bottom: .4rem; border-left: 3px solid var(--gtc-amber); background: #fffbf2; border-radius: 4px; }
.gtc-trigger-detail-name { font-size: .8rem; font-weight: 600; color: var(--gtc-text); }
.gtc-trigger-detail-desc { font-size: .74rem; color: var(--gtc-text-light); display: block; margin-top: .1rem; }

/* --- Create Transaction Form --- */
.gtc-create-form { max-width: 800px; margin: 1rem auto; background: var(--gtc-card); border-radius: var(--gtc-radius); box-shadow: var(--gtc-shadow); padding: 1.5rem; }
.gtc-create-form h2 { font-size: 1rem; font-weight: 600; color: var(--gtc-text); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gtc-border-light); }
.gtc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gtc-form-wide { grid-column: 1 / -1; }
.gtc-form-group { display: flex; flex-direction: column; gap: .25rem; }
.gtc-form-group label { font-size: .72rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .3px; }
.gtc-form-input { padding: .45rem .6rem; border: 1px solid var(--gtc-border); border-radius: 4px; font-size: .82rem; color: var(--gtc-text); background: #f8f9fa; width: 100%; }
.gtc-form-input:focus { outline: none; border-color: var(--gtc-teal); box-shadow: 0 0 0 2px rgba(0,217,197,.15); }
textarea.gtc-form-input { resize: vertical; font-family: inherit; }
.gtc-form-error { background: #fff2f2; color: #c0392b; border: 1px solid #fca5a5; border-radius: 6px; padding: .5rem .75rem; font-size: .78rem; margin: .75rem 0; }
.gtc-form-actions { display: flex; gap: .6rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--gtc-border-light); }
.gtc-required { color: var(--gtc-red); }
.gtc-form-hint { font-size: .74rem; color: #888; margin: .3rem 0 .5rem; }
.gtc-modal-content { background: white; border-radius: var(--gtc-radius); padding: 1.5rem; }

/* --- Bottom Panels --- */
.gtc-bottom-panels { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .9rem; }
.gtc-panel { background: var(--gtc-card); border-radius: var(--gtc-radius); box-shadow: var(--gtc-shadow); overflow: hidden; }
.gtc-panel-header { padding: .7rem 1.1rem; border-bottom: 1px solid var(--gtc-border-light); font-size: .82rem; font-weight: 600; color: var(--gtc-text); }
.gtc-panel-body { padding: .9rem 1.1rem; }
.gtc-risk-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.gtc-risk-label { font-size: .75rem; color: #555; min-width: 120px; }
.gtc-risk-track { flex: 1; height: 7px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.gtc-risk-fill { height: 100%; border-radius: 4px; }
.gtc-risk-fill.gtc-risk-low { background: var(--gtc-green); }
.gtc-risk-fill.gtc-risk-med { background: var(--gtc-amber); }
.gtc-risk-fill.gtc-risk-hi { background: var(--gtc-red); }
.gtc-risk-fill.gtc-risk-type { background: var(--gtc-teal); }
.gtc-risk-count { font-size: .75rem; font-weight: 600; color: var(--gtc-text); min-width: 18px; text-align: right; }
.gtc-risk-divider { font-size: .72rem; font-weight: 600; color: #888; margin: .6rem 0 .4rem; padding-top: .4rem; border-top: 1px solid var(--gtc-border-light); }
.gtc-workload-row { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid #f5f5f5; }
.gtc-workload-row:last-child { border-bottom: none; }
.gtc-workload-role { font-size: .77rem; color: #555; }
.gtc-workload-badge { padding: .12rem .45rem; border-radius: 8px; font-size: .68rem; font-weight: 700; }
.gtc-wl-high { background: #ffebee; color: #c62828; }
.gtc-wl-med { background: #fff8e1; color: #f57f17; }
.gtc-wl-low { background: #e8f5e9; color: #2e7d32; }
.gtc-workload-empty { font-size: .78rem; color: #ccc; font-style: italic; }

/* --- SLA Styling --- */
.gtc-sla-ok { color: var(--gtc-green); font-weight: 600; font-size: .74rem; }
.gtc-sla-risk { color: var(--gtc-amber); font-weight: 600; font-size: .74rem; }
.gtc-sla-breach { color: var(--gtc-red); font-weight: 700; font-size: .74rem; }
.gtc-sla-na { color: #ccc; font-size: .74rem; }

/* --- Show Approved Toggle --- */
.gtc-toggle-label { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border: 1px solid #ddd; border-radius: 4px; background: #f8f9fa; cursor: pointer; font-size: .75rem; color: #666; transition: all .2s; user-select: none; font-weight: 600; }
.gtc-toggle-label:hover { background: #f0fdfb; border-color: var(--gtc-teal); }
.gtc-toggle-on { background: #e8faf8; border-color: var(--gtc-teal); color: #004d47; }
.gtc-toggle-circle { font-size: .8rem; }

/* --- Modal Overlay --- */
.gtc-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-start; justify-content: center; padding-top: 5vh; z-index: 1000; }
.gtc-modal-content { max-width: 800px; width: 95%; max-height: 85vh; overflow-y: auto; }

/* ============================================================
   RRC (Risk Rating Change) — Shared Utility Classes
   Used across all RRC components. Follows the same design tokens
   as GTC/TM above.
   ============================================================ */

/* --- RRC Rating Pills --- */
.rrc-rating-pill { display: inline-block; padding: .15rem .55rem; border-radius: 10px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.rrc-rating-low { background: #e8f5e9; color: var(--gt-green); }
.rrc-rating-medium { background: #fff8e1; color: var(--gt-amber); }
.rrc-rating-high { background: #ffebee; color: var(--gt-red); }
.rrc-rating-tbd { color: var(--gt-text-faint); }
.rrc-rating-arrow { color: var(--gt-text-faint); font-size: 1rem; margin: 0 .35rem; }

/* --- RRC Buttons --- */
.rrc-btn { padding: .5rem 1.1rem; border: none; border-radius: 6px; cursor: pointer; font-size: .8rem; font-weight: 600; transition: all .2s; font-family: inherit; display: inline-flex; align-items: center; gap: .35rem; }
.rrc-btn-sm { padding: .35rem .75rem; font-size: .75rem; white-space: nowrap; }
.rrc-btn-primary { background: var(--gt-teal); color: white; }
.rrc-btn-primary:hover:not(:disabled) { background: #00c0ad; transform: translateY(-1px); }
.rrc-btn-danger { background: var(--gt-red); color: white; }
.rrc-btn-danger:hover:not(:disabled) { background: #c0392b; }
.rrc-btn-blocked { background: #f0f2f5; color: #bbb; border: 2px dashed #ddd; cursor: not-allowed; }
.rrc-btn-secondary { background: white; color: #555; border: 1px solid var(--gtc-border); }
.rrc-btn-secondary:hover:not(:disabled) { background: #f8f9fa; }
.rrc-btn:disabled { opacity: .5; cursor: not-allowed; }
.rrc-btn-group { display: flex; gap: .6rem; margin-top: .75rem; }

/* --- RRC Alerts --- */
.rrc-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem 1rem; border-radius: var(--gt-radius-sm); margin-bottom: .9rem; font-size: .78rem; border-left: 4px solid; }
.rrc-alert-icon { font-size: 1rem; flex-shrink: 0; }
.rrc-alert-info { background: #e8f4fd; border-left-color: #1565c0; color: #0c4a6e; }
.rrc-alert-warning { background: #fff8e1; border-left-color: var(--gt-amber); color: #92400e; }
.rrc-alert-success { background: #f0fdf4; border-left-color: var(--gt-green); color: #065f46; }

/* --- RRC Form Elements --- */
.rrc-form-group { margin-bottom: .75rem; }
.rrc-form-label { font-size: .72rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .3px; margin-bottom: .25rem; display: block; }
.rrc-required { color: var(--gt-red); }
.rrc-form-input, .rrc-form-select, .rrc-form-textarea { width: 100%; padding: .45rem .6rem; border: 1px solid var(--gtc-border); border-radius: 4px; font-size: .82rem; font-family: inherit; color: var(--gtc-text); background: #f8f9fa; transition: border-color .15s; }
.rrc-form-input:focus, .rrc-form-select:focus, .rrc-form-textarea:focus { outline: none; border-color: var(--gtc-teal); box-shadow: 0 0 0 2px rgba(0,217,197,.15); }
.rrc-form-textarea { resize: vertical; min-height: 80px; }
.rrc-form-hint { font-size: .68rem; color: var(--gtc-text-light); margin-top: .2rem; }
.rrc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* --- RRC Evidence Items --- */
.rrc-evidence-item { display: flex; flex-wrap: wrap; padding: .65rem .85rem; margin-bottom: .4rem; background: #f8f9fa; border-radius: 6px; border-left: 4px solid #ddd; transition: all .2s; }
.rrc-evidence-item.confirmed { border-left-color: var(--gtc-green); background: #f0fdf4; }
.rrc-evidence-item.required { border-left-color: var(--gtc-teal); }
.rrc-evidence-item.optional { border-left-color: var(--gtc-border); }
.rrc-evidence-checkbox { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; margin-right: .6rem; }
.rrc-evidence-checkbox:not(.checked) { background: #fee; color: var(--gtc-red); }
.rrc-evidence-checkbox.checked { background: #d5f4e6; color: var(--gtc-green); }
.rrc-evidence-content { flex: 1; }
.rrc-evidence-name { font-size: .8rem; font-weight: 500; color: var(--gtc-text); }
.rrc-evidence-required { font-size: .63rem; font-weight: 700; color: #c62828; background: #ffebee; padding: .08rem .35rem; border-radius: 6px; margin-left: .4rem; }
.rrc-evidence-optional { font-size: .63rem; font-weight: 700; color: var(--gt-text-faint); background: #f0f2f5; padding: .08rem .35rem; border-radius: 6px; margin-left: .4rem; }
.rrc-evidence-meta { font-size: .68rem; color: var(--gtc-text-light); margin-top: .1rem; }

/* --- RRC Info Grid --- */
.rrc-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.rrc-info-label { font-size: .67rem; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: .4px; margin-bottom: .2rem; }
.rrc-info-value { font-size: .82rem; color: var(--gtc-text); font-weight: 500; }

/* --- RRC Section Titles --- */
.rrc-section-title { font-size: .85rem; font-weight: 600; color: var(--gtc-text); margin-bottom: .5rem; }
.rrc-section-desc { font-size: .78rem; color: var(--gtc-text-light); margin-bottom: 1rem; }

/* --- RRC Rating Selector --- */
.rrc-rating-selector { display: flex; gap: .75rem; }
.rrc-rating-option { flex: 1; padding: .9rem; border: 2px solid var(--gtc-border); border-radius: var(--gt-radius); text-align: center; cursor: pointer; transition: all .2s; font-weight: 600; font-size: .88rem; }
.rrc-rating-option:hover { transform: translateY(-2px); box-shadow: var(--gt-shadow-lg); }
/* LW+CL:07.11.26 HD #1698 (C108): the completed summary's amber Senior Sign-Off row, as the POC draws it. */
.rrc-summary-escalation td { background: #fff8e1; }
/* LW+CL:06.11.26 HD #1698: what the firm says a rating means for monitoring (Settings, CRM, Rating Impacts), under the rating's name. */
.rrc-rating-note { margin-top: .35rem; font-size: .7rem; font-weight: 400; color: var(--gtc-muted, #666); line-height: 1.3; }
.rrc-rating-option.selected { transform: translateY(-2px); }
.rrc-rating-option.rrc-rating-low { color: var(--gt-green); }
.rrc-rating-option.rrc-rating-low.selected { background: #e8f5e9; border-color: var(--gt-green); }
.rrc-rating-option.rrc-rating-medium { color: var(--gt-amber); }
.rrc-rating-option.rrc-rating-medium.selected { background: #fff8e1; border-color: var(--gt-amber); }
.rrc-rating-option.rrc-rating-high { color: var(--gt-red); }
.rrc-rating-option.rrc-rating-high.selected { background: #ffebee; border-color: var(--gt-red); }
.rrc-rating-icon { font-size: 1.2rem; margin-bottom: .2rem; }
.rrc-rating-change-preview { display: flex; align-items: center; gap: .5rem; margin: .75rem 0; }

/* --- RRC MLRO Panel --- */
.rrc-mlro-panel { border: 2px dashed var(--gt-red); border-radius: var(--gt-radius); padding: 1.25rem; background: #fff8f8; }
.rrc-mlro-banner { background: #fff2f2; border: 2px solid var(--gt-red); border-radius: var(--gt-radius); padding: .9rem 1.1rem; margin-bottom: .9rem; display: flex; align-items: flex-start; gap: .75rem; font-size: .78rem; color: #555; }
.rrc-mlro-icon { font-size: 1rem; }
.rrc-mlro-banner strong { display: block; color: #c0392b; font-size: .85rem; margin-bottom: .3rem; }

/* ============================================================
   Triage
   ============================================================ */

.gtc-kpi-orange { border-left-color: #e67e22 !important; }
.gtc-kpi-orange .gtc-kpi-value { color: #e67e22; }

.gtc-triage-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 1rem; margin: .5rem 0; font-size: .8rem; font-weight: 600; color: var(--gt-navy);
}

.gtc-triage-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; }

.gtc-btn-convert {
    padding: .25rem .6rem; border: none; border-radius: 4px; font-size: .7rem; font-weight: 600;
    background: var(--gt-teal); color: #fff; cursor: pointer;
}
.gtc-btn-convert:hover { opacity: .85; }
.gtc-btn-convert:disabled { opacity: .5; cursor: default; }

.gtc-btn-ignore {
    padding: .25rem .6rem; border: none; border-radius: 4px; font-size: .7rem; font-weight: 600;
    background: #f39c12; color: #fff; cursor: pointer;
}
.gtc-btn-ignore:hover { opacity: .85; }
.gtc-btn-ignore:disabled { opacity: .5; cursor: default; }

.gtc-btn-hold {
    padding: .25rem .6rem; border: none; border-radius: 4px; font-size: .7rem; font-weight: 600;
    background: var(--gt-navy); color: #fff; cursor: pointer;
}
.gtc-btn-hold:hover { opacity: .85; }
.gtc-btn-hold:disabled { opacity: .5; cursor: default; }

.gtc-btn-cancel-sm {
    padding: .2rem .45rem; border: 1px solid #ccc; border-radius: 4px; font-size: .65rem;
    background: #fff; color: #666; cursor: pointer;
}

.gtc-ignore-input {
    padding: .25rem .5rem; border: 1px solid #ddd; border-radius: 4px; font-size: .7rem;
    width: 120px; color: var(--gt-text);
}

.gtc-duplicate-badge {
    display: inline-block; padding: .1rem .45rem; border-radius: 10px; font-size: .6rem; font-weight: 700;
    background: #fff3e0; color: #e67e22; border: 1px solid #f39c12; margin-left: .25rem;
}

.gtc-source-pill {
    display: inline-block; padding: .1rem .4rem; border-radius: 4px; font-size: .6rem; font-weight: 600;
    background: #f0f0f0; color: #666;
}

.gtc-triage-status-pending { color: #e67e22; font-weight: 600; font-size: .75rem; }
.gtc-triage-status-converted { color: var(--gt-teal); font-weight: 600; font-size: .75rem; }
.gtc-triage-status-ignored { color: #999; font-weight: 600; font-size: .75rem; }
.gtc-triage-status-hold { color: var(--gt-navy); font-weight: 600; font-size: .75rem; }
.gtc-triage-actioned { color: #ccc; }

.gtc-empty-state { text-align: center; padding: 2rem; color: #999; font-size: .8rem; }

.gtc-csv-dialog { max-width: 700px; }
.gtc-csv-hint { font-size: .72rem; color: #888; margin-bottom: .75rem; }
.gtc-csv-file-input { margin-bottom: .75rem; }
.gtc-csv-preview { margin: .75rem 0; }
.gtc-csv-actions { display: flex; gap: .5rem; margin-top: .75rem; }

/* ── Triage Banner ── */
.gtc-triage-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%); color: white;
    padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 0; border-radius: 0;
}
.gtc-triage-banner-left { display: flex; align-items: center; gap: .85rem; }
.gtc-triage-banner-icon {
    width: 40px; height: 40px; background: rgba(0,217,197,.15); border: 1px solid rgba(0,217,197,.3);
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.gtc-triage-banner-title { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.gtc-triage-banner-sub { font-size: .74rem; color: rgba(255,255,255,.55); }
.gtc-triage-stats { display: flex; gap: 1.5rem; }
.gtc-triage-stat { text-align: center; }
.gtc-triage-stat-val { font-size: 1.5rem; font-weight: 700; color: #00d9c5; line-height: 1; }
.gtc-triage-stat-amber { color: #f39c12; }
.gtc-triage-stat-muted { color: rgba(255,255,255,.5); }
.gtc-triage-stat-red { color: #e74c3c; }
.gtc-triage-stat-lbl { font-size: .63rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .4px; margin-top: .15rem; }

/* ── Triage Info Bar ── */
.gtc-triage-info-bar {
    background: #e6f7f5; border-left: 4px solid #00d9c5; padding: .55rem 1.25rem;
    font-size: .76rem; color: #004d47; display: flex; align-items: center; gap: .4rem;
}

/* ── Triage Toolbar ── */
.gtc-triage-toolbar {
    display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem;
    background: white; border-bottom: 1px solid #f0f0f0;
}
.gtc-triage-toolbar-left { display: flex; align-items: center; gap: .75rem; }
.gtc-triage-toolbar-right { display: flex; align-items: center; gap: .5rem; }
.gtc-triage-item-count { font-size: .74rem; color: #999; margin-left: .5rem; }
.gtc-triage-view-btn {
    width: 30px; height: 28px; border: 1px solid #ddd; border-radius: 4px; background: #f8f9fa;
    cursor: pointer; font-size: .85rem; color: #888; display: flex; align-items: center; justify-content: center;
}
.gtc-triage-view-btn.active { background: #e8faf8; border-color: #00d9c5; color: #00695c; }

/* ── Triage Card View ── */
.gtc-triage-cards { padding: .9rem 1.25rem; }
.gtc-triage-card {
    background: white; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.07);
    margin-bottom: .75rem; overflow: hidden; border-left: 4px solid #e0e0e0; transition: box-shadow .2s;
}
.gtc-triage-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.gtc-tc-risk-high { border-left-color: #e74c3c; }
.gtc-tc-risk-medium { border-left-color: #f39c12; }
.gtc-tc-risk-low { border-left-color: #00b894; }
.gtc-tc-status-held { border-left-color: #f39c12; opacity: .82; }
.gtc-tc-status-dismissed { opacity: .45; border-left-color: #ccc; }
.gtc-tc-status-converted { border-left-color: #00b894; opacity: .65; }

.gtc-tc-main {
    display: grid; grid-template-columns: 160px 1fr 160px 120px 170px;
    gap: .6rem; padding: .85rem 1.1rem; align-items: start;
}
.gtc-tc-ref { font-size: .8rem; font-weight: 700; color: #1e3a5f; }
.gtc-tc-time { font-size: .67rem; color: #aaa; margin-top: .18rem; }
.gtc-tc-src-badge {
    display: inline-flex; align-items: center; gap: .25rem; background: #f0f2f5; border: 1px solid #e0e0e0;
    border-radius: 3px; padding: .08rem .38rem; font-size: .63rem; font-weight: 600; color: #666; margin-top: .25rem;
}
.gtc-tc-entity-name { font-size: .8rem; font-weight: 600; color: #2c3e50; }
.gtc-tc-type { font-size: .72rem; color: #888; margin-top: .12rem; }
.gtc-tc-desc { font-size: .71rem; color: #aaa; margin-top: .1rem; font-style: italic; }
.gtc-tc-payee { font-size: .76rem; color: #555; font-weight: 500; }
.gtc-tc-country { font-size: .68rem; color: #aaa; margin-top: .1rem; }
.gtc-tc-amount { font-size: .95rem; font-weight: 700; color: #1e3a5f; text-align: right; }
.gtc-tc-usd { font-size: .68rem; color: #aaa; text-align: right; margin-top: .08rem; }
.gtc-tc-triggers { display: flex; flex-wrap: wrap; gap: .2rem; }
.gtc-tc-risk-score { font-size: 1.25rem; font-weight: 700; text-align: right; }
.gtc-tc-score-high { color: #e74c3c; }
.gtc-tc-score-med { color: #f39c12; }
.gtc-tc-score-low { color: #00b894; }
.gtc-tc-risk-lbl { font-size: .63rem; color: #aaa; text-transform: uppercase; letter-spacing: .3px; }
.gtc-tc-actions {
    padding: .55rem 1.1rem .7rem; display: flex; gap: .5rem; align-items: center;
    background: #fafbfc; border-top: 1px dashed #eff1f3;
}
.gtc-btn-hold-card {
    background: white; color: #f39c12; border: 1px solid #f39c12; padding: .38rem .8rem;
    border-radius: 5px; font-size: .76rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.gtc-btn-hold-card:hover { background: #fff8e1; }
.gtc-btn-dismiss-card {
    background: white; color: #999; border: 1px solid #ddd; padding: .38rem .8rem;
    border-radius: 5px; font-size: .76rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.gtc-btn-dismiss-card:hover { background: #f5f5f5; color: #555; }

/* ── Triage Empty State ── */
.gtc-triage-empty { text-align: center; padding: 3.5rem 1rem; color: #aaa; }
.gtc-triage-empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.gtc-triage-empty-msg { font-size: .85rem; font-weight: 500; }
.gtc-triage-empty-sub { font-size: .75rem; margin-top: .35rem; }

/* ── Triage Detail View ── */
.gtc-triage-detail { background: white; border-radius: 8px; margin: .75rem 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.07); overflow: hidden; }
.gtc-triage-detail-header {
    padding: 1.1rem 1.25rem; border-bottom: 1px solid #e8e8e8;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.gtc-triage-detail-header h2 { font-size: 1rem; font-weight: 700; color: #1e3a5f; margin: 0; }
.gtc-triage-detail-sub { font-size: .76rem; color: #888; margin-top: .15rem; }
.gtc-triage-detail-status { display: flex; align-items: center; gap: .75rem; }

.gtc-triage-detail-fields {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid #f0f0f0;
}
.gtc-td-field-lbl { font-size: .67rem; color: #aaa; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-bottom: .2rem; }
.gtc-td-field-val { font-size: .82rem; color: #2c3e50; font-weight: 500; }
.gtc-triage-detail-desc { padding: .75rem 1.25rem; border-bottom: 1px solid #f0f0f0; font-size: .82rem; color: #2c3e50; }
.gtc-triage-detail-triggers { padding: .75rem 1.25rem; border-bottom: 1px solid #f0f0f0; }
.gtc-triage-trigger-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.gtc-triage-trigger-item { display: inline-flex; }
.gtc-triage-detail-dupe-warning {
    background: #fff3e0; border-left: 4px solid #f39c12; padding: .65rem 1rem;
    margin: .75rem 1.25rem; border-radius: 4px; font-size: .78rem; color: #e65100;
}
.gtc-triage-detail-actions { padding: 1rem 1.25rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ── Shared ERA button styles (global, not scoped) ── */
.era-btn { padding: .5rem 1.1rem; border: none; border-radius: 6px; cursor: pointer; font-size: .8rem; font-weight: 600; transition: all .2s; font-family: inherit; display: inline-flex; align-items: center; gap: .35rem; }
.era-btn-primary { background: var(--gt-teal); color: white; }
.era-btn-primary:hover:not(:disabled) { background: #00c0ad; transform: translateY(-1px); }
.era-btn:disabled { opacity: .5; cursor: not-allowed; }
.era-btn-sm { padding: .3rem .7rem; font-size: .72rem; }

/* ── ERA report print isolation (ticket #102) ──────────────────────────────
   window.print() captures the whole app shell (DxGridLayout header + nav
   sidebar, IQ panel/FAB). There is no global print stylesheet to hide it, so
   EraReportPanel.razor.js toggles `era-printing` on <body> around the print.
   These rules then hide everything and lift ONLY the report into the page
   flow — as `position: absolute` at the page origin — so it paginates across
   as many pages as the content needs. A `position: fixed` overlay (the prior
   fix) could not do this: fixed boxes clip to a single page and silently drop
   later sections (questions, AML screening, audit trail). Gated on
   `body.era-printing` so no other page's print behaviour is affected. */
/* LW+CL:23.10.26 the Compliance Review audit pack prints the same way: `cr-printing` from CrClosedStage.razor.js. */
@media print {
    body.era-printing *,
    body.cr-printing * { visibility: hidden !important; }
    body.era-printing .era-report-printable,
    body.era-printing .era-report-printable *,
    body.cr-printing .cr-audit-pack-printable,
    body.cr-printing .cr-audit-pack-printable * { visibility: visible !important; }

    /* Neutralise positioned / clipped / transformed ancestors so the lifted
       report anchors to the page corner, not a nested containing block. */
    body.era-printing .page,
    body.era-printing .page *,
    body.cr-printing .page,
    body.cr-printing .page * {
        position: static !important;
        transform: none !important;
        overflow: visible !important;
    }

    /* Must follow the reset above so the report wins on source order. */
    body.era-printing .era-report-printable,
    body.cr-printing .cr-audit-pack-printable {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0 !important;
    }
}

/* ============================================================
   Governance Manager (/governance/manager) — LW+CL 30.07.26
   ============================================================
   These rules are global rather than in GovernanceManager.razor.css because every element
   they target is rendered by a CHILD component — a MyComboBox/MyTextBox root div, the span
   MyDxGrid emits for CellCssClassFunc, or KpiTile's own markup. Blazor CSS isolation only
   stamps its `[b-xxxxx]` scope attribute on elements written in the page's own .razor file,
   so an isolated selector for any of these never matches. (The previous
   `.gm-filter-select { min-width: 160px }` in the isolated sheet was a silent no-op for
   exactly this reason, which is why the filter comboboxes stretched across the whole row.)
   Everything is prefixed .gm-* or nested under .gm-page / .gm-kpi-bar so nothing here can
   leak into the GTC/RRC/ERA/CR dashboards that share the .gtc-* classes.
   ------------------------------------------------------------ */

/* --- Filter bar: fixed-width controls --- */
/* DevExpress editors are block-level and claim the full width of their flex line. In
   .gtc-filter-bar (display:flex; flex-wrap:wrap) that made each combobox wrap onto its own
   row, turning a one-line filter bar into a four-line block. flex:0 0 <w> pins them.
   The search box takes margin-left:auto so it sits hard right, as in the POC. */
.gm-page .gm-filter-select {
    flex: 0 0 168px;
    width: 168px;
}

.gm-page .gm-search-input {
    flex: 0 0 240px;
    width: 240px;
    margin-left: auto;
}

@media (max-width: 900px) {
    /* Narrow viewports: let the controls share the row instead of overflowing it. */
    .gm-page .gm-filter-select,
    .gm-page .gm-search-input {
        flex: 1 1 140px;
        width: auto;
        margin-left: 0;
    }
}

/* --- KPI tiles: colour the numeral to match the accent --- */
/* Scoped to .gm-kpi-bar so the other four governance dashboards keep their existing
   all-navy numerals; lift this to bare .gtc-kpi-* if the suite ever adopts it wholesale. */
.gm-kpi-bar .gtc-kpi-teal .gtc-kpi-value { color: var(--gt-teal); }
.gm-kpi-bar .gtc-kpi-amber .gtc-kpi-value { color: var(--gt-amber); }
.gm-kpi-bar .gtc-kpi-red .gtc-kpi-value { color: var(--gt-red); }
.gm-kpi-bar .gtc-kpi-green .gtc-kpi-value { color: var(--gt-green); }
.gm-kpi-bar .gtc-kpi-purple .gtc-kpi-value { color: var(--gt-purple); }
/* Total stays neutral — it's a denominator, not a bucket that wants attention. */
.gm-kpi-bar .gtc-kpi-navy .gtc-kpi-value { color: var(--gt-navy-text); }

/* --- Grid cell pills --- */
/* Applied via MyGridColumn.CellCssClassFunc as "grid-badge gm-status-active" etc.
   .grid-badge (MyDxGrid.razor.css) already supplies the pill shape — inline-block, 11px,
   600 weight, 10px radius — so these only carry colour. Slugs come from the canonical
   GovernanceVocabulary values and the six providers' ModuleName strings, lower-cased with
   spaces replaced by dashes. An unmapped value renders as a plain unstyled pill rather than
   disappearing, which matches GovernanceVocabulary's pass-through behaviour. */

/* Status — same semantics as the KPI accents above. */
.gm-status-draft { background: rgba(142, 68, 173, .12); color: #7d3c98; }
.gm-status-active { background: rgba(0, 168, 150, .14); color: #00796b; }
.gm-status-pending-approval { background: rgba(201, 124, 0, .14); color: #a86800; }
.gm-status-escalated { background: rgba(217, 48, 37, .12); color: #c0281e; }
.gm-status-unknown { background: #eceff1; color: #546e7a; }
/* LW+CL:07.11.26 the engine's On Hold (paused) and Returned (sent back, waiting on the preparer) states. */
.gm-status-on-hold { background: #eceff1; color: #455a64; }
.gm-status-returned { background: rgba(201, 124, 0, .14); color: #a86800; }
/* LW+CL:04.11.26 closed cases (the Closed period filter) and the Due column's overdue cell. */
.gm-status-completed { background: rgba(26, 138, 58, .12); color: #1a8a3a; }
.gm-status-rejected,
.gm-status-cancelled { background: #eceff1; color: #455a64; }
.gm-due-overdue { color: #c0281e; font-weight: 600; }

/* Risk */
.gm-risk-low { background: rgba(26, 138, 58, .12); color: #1a8a3a; }
.gm-risk-medium { background: rgba(201, 124, 0, .14); color: #a86800; }
.gm-risk-high { background: rgba(217, 48, 37, .12); color: #c0281e; }

/* Module — one hue per governance module so a mixed grid is scannable by source at a glance.
   Keyed on the provider ModuleCode, which is what the column now renders: the full ModuleName
   ("Governed Transaction Control") needs ~180px as a pill and the column's persisted per-user
   layout width wins over the code-defined Width, so the long form clipped. Codes also match the
   Module filter's own option list. Seven providers: GTC, EOB, CR, ERA, RRC, TM, PREREG. */
.gm-module-gtc { background: #e3f2fd; color: #1565c0; }
.gm-module-eob { background: #ede7f6; color: #5e35b1; }
.gm-module-cr { background: #e0f2f1; color: #00796b; }
.gm-module-era { background: #fff3e0; color: #e65100; }
.gm-module-rrc { background: #fce4ec; color: #ad1457; }
.gm-module-tm { background: #eceff1; color: #37474f; }
/* Brown — deliberately outside the teal/amber/red already carrying Status/Risk semantics,
   and distinct from CR's teal despite both modules sharing the same Hub card accent (#00695c). */
.gm-module-prereg { background: #efebe9; color: #5d4037; }
/* LW+CL:07.11.26 Officer Change (added since the original seven) had no hue: an unstyled pill in a coloured column. */
.gm-module-offchg { background: #e8eaf6; color: #283593; }

/* ══════════════════════════════════════════════════════════════════════════
   Module dashboards — LW+CL:30.09.26 #1307 / #1308
   Billing (/sl/dashboard) and WiP (/wip/dashboard) share one page shape: a
   KpiTile row (.gtc-kpi-bar) above a two-column grid of chart/grid panels,
   all on the governance tokens so they read as one family with the governed
   workflow dashboards. Global (not .razor.css) so both pages use the same rules.
   ══════════════════════════════════════════════════════════════════════════ */
/* Doubled class: a single .ws-dashboard ties with .razorpagemain (white) and loses on load order. */
.razorpagemain.ws-dashboard { padding: 0 1rem 1rem; overflow-y: auto; background: var(--gt-bg); }
.ws-dashboard__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .9rem; }
.ws-dashboard__panel { display: flex; flex-direction: column; min-width: 0; padding: .9rem 1rem; background: var(--gt-card); border-radius: var(--gt-radius); box-shadow: var(--gt-shadow); }
.ws-dashboard__panel h6 { margin: 0 0 .5rem; font-size: .9rem; font-weight: 600; color: var(--gt-text); }
/* Bounded height for MyDxGrid to fill, level with the 300px charts beside it. */
.ws-dashboard__grid-wrap { display: flex; flex-direction: column; height: 300px; }
.ws-dashboard__empty,
.ws-dashboard__panel-empty { padding: 2rem 1rem; text-align: center; color: var(--gt-text-faint); font-size: .82rem; }
.ws-dashboard__error { margin: 1rem 0; padding: .75rem 1rem; border-radius: var(--gt-radius-sm); background: #fdecea; color: var(--gt-red); }
.ws-dashboard__footnote { margin-top: .25rem; font-size: .75rem; color: var(--gt-text-muted); }
.ws-dashboard__tooltip { margin: .5rem .75rem; font-weight: 600; }
/* Long legend names (fee lines, activities) must not push the page into horizontal scroll;
   the slice tooltip still shows the full name. */
.ws-dashboard__panel .dxbl-chart-legend { max-width: 100%; box-sizing: border-box; }
.ws-dashboard__panel .dxbl-chart-legend-item { max-width: 100%; min-width: 0; }
/* At the 16px default an 8-item donut legend takes most of the 300px chart and shrinks the donut to a dot. */
.ws-dashboard__panel .dxbl-chart-legend-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
/* Change subtitle on a KpiTile: green in the good direction, red in the bad one (DashboardMetrics.TrendCssClass). */
.gtc-kpi-trend--good .gtc-kpi-subtitle { color: var(--gt-green); font-weight: 600; }
.gtc-kpi-trend--bad .gtc-kpi-subtitle { color: var(--gt-red); font-weight: 600; }
@media (max-width: 1100px) {
    .ws-dashboard__grid { grid-template-columns: minmax(0, 1fr); }
}

/* M&R entity-type badge (grid Entity type cell via CellCssClassFunc), as the POC's .badge-company / .badge-trust. LW+CL:07.11.26 F6 */
.mtg-etype         { background: #e2e8f0; color: #334155; font-weight: 600; }
.mtg-etype-company { background: #dbeafe; color: #1d4ed8; }
.mtg-etype-trust   { background: #ede9fe; color: #6d28d9; }

/* Minute Book grid (Corporate Record page): record type badge and status pill via CellCssClassFunc, the POC's CR_TYPE_META / CR_STATUS_META.
   Global because MyDxGrid owns the cell (the scoped .cr-type-* rules on the page never reached it and were removed). LW+CL:08.11.26 C107 */
.cr-type-minutes        { background: #dbeafe; color: #1e40af; font-weight: 600; }
.cr-type-resolution     { background: #d1fae5; color: #065f46; font-weight: 600; }
.cr-type-sealevent      { background: #fee2e2; color: #7f1d1d; font-weight: 600; }
.cr-type-constitutional { background: #fef3c7; color: #92400e; font-weight: 600; }
.cr-status-ratified     { background: #d1fae5; color: #065f46; font-weight: 600; }
.cr-status-draft        { background: #fef3c7; color: #92400e; font-weight: 600; }
.cr-status-filed        { background: #dbeafe; color: #1e40af; font-weight: 600; }
.cr-status-failed       { background: #fee2e2; color: #7f1d1d; font-weight: 600; }
.cr-status-withdrawn    { background: #e9ecef; color: #495057; font-weight: 600; }
