
/* ==========================================================================
   TRADE CONTROL REMASTERED v2 — UNIFIED DESIGN SYSTEM / FOUNDATION
   Global tokens + shell. New/rebuilt screens must consume these variables.
   ========================================================================== */

:root{
    /* Shell */
    --tc-sidebar-width:236px;
    --tc-content-max:1540px;
    --tc-page-x:28px;
    --tc-page-top:18px;
    --tc-page-bottom:40px;

    /* Core palette — canonical */
    --tc-bg:#070b14;
    --tc-sidebar-bg:#080d17;
    --tc-surface-01:#09101a;
    --tc-surface-02:#0a111c;
    --tc-surface-03:#0b121e;
    --tc-surface-04:#0d1522;
    --tc-surface-hover:#0c1624;

    --tc-border:rgba(255,255,255,.055);
    --tc-border-soft:rgba(255,255,255,.04);
    --tc-border-strong:rgba(255,255,255,.085);

    --tc-text-01:#eef4fb;
    --tc-text-02:#dce6f2;
    --tc-text-03:#aebed1;
    --tc-muted-01:#8193aa;
    --tc-muted-02:#71849b;
    --tc-muted-03:#62758d;

    --tc-primary:#2f7dff;
    --tc-primary-hover:#438bff;
    --tc-success:#50d58d;
    --tc-danger:#f1778c;
    --tc-warning:#e8b15d;

    /* Radius */
    --tc-radius-sm:9px;
    --tc-radius-md:11px;
    --tc-radius-lg:14px;
    --tc-radius-xl:16px;
    --tc-radius-panel:17px;

    /* Spacing */
    --tc-space-1:4px;
    --tc-space-2:8px;
    --tc-space-3:12px;
    --tc-space-4:16px;
    --tc-space-5:20px;
    --tc-space-6:24px;
    --tc-space-7:28px;
    --tc-space-8:32px;

    /* Type */
    --tc-type-label:10px;
    --tc-type-helper:10px;
    --tc-type-body:11px;
    --tc-type-card-title:17px;
    --tc-type-value:24px;
    --tc-type-hero:37px;

    /* Motion */
    --tc-ease:cubic-bezier(.2,.8,.2,1);
    --tc-fast:160ms;
    --tc-normal:240ms;
}

/* ---------- Unified application shell ---------- */
body.tc-shell-v2{
    background:var(--tc-bg)!important;
    color:var(--tc-text-01);
}

body.tc-shell-v2 .app{
    grid-template-columns:var(--tc-sidebar-width) minmax(0,1fr)!important;
    min-height:100vh;
}

body.tc-shell-v2 .tc-sidebar,
body.tc-shell-v2 .sidebar{
    width:var(--tc-sidebar-width)!important;
    min-width:var(--tc-sidebar-width)!important;
    max-width:var(--tc-sidebar-width)!important;
    background:linear-gradient(180deg,var(--tc-sidebar-bg) 0%,#070c15 100%)!important;
    border-right:1px solid var(--tc-border)!important;
}

body.tc-shell-v2 .content{
    width:100%!important;
    max-width:var(--tc-content-max)!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:var(--tc-page-top) var(--tc-page-x) var(--tc-page-bottom)!important;
}

/* ---------- Unified top chrome ---------- */
body.tc-shell-v2 .topbar{
    min-height:38px;
    margin-bottom:8px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    backdrop-filter:none!important;
}
body.tc-shell-v2 .topbar .eyebrow{
    color:var(--tc-muted-02)!important;
    font-size:9px!important;
    letter-spacing:.1em!important;
}
body.tc-shell-v2 .topbar h1{
    margin-top:4px!important;
    color:#a8b7ca!important;
    font-size:13px!important;
    font-weight:650!important;
    letter-spacing:-.015em!important;
}
body.tc-shell-v2 .user-pill{
    padding:7px 10px!important;
    border:1px solid rgba(255,255,255,.045)!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#70839b!important;
    font-size:9px!important;
}

/* ---------- Canonical primitives ---------- */
body.tc-shell-v2 .positive{color:var(--tc-success)!important}
body.tc-shell-v2 .negative{color:var(--tc-danger)!important}

.tc-v2-panel{
    border:1px solid var(--tc-border);
    border-radius:var(--tc-radius-xl);
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));
}

.tc-v2-label{
    color:var(--tc-muted-02);
    font-size:var(--tc-type-label);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.075em;
}

/* ---------- Nova Operação consumes the global tokens ---------- */
body.tc-shell-v2 .tc8-operation-page{
    --tc-surface:var(--tc-surface-03)!important;
    --tc-surface-2:var(--tc-surface-02)!important;
    --tc-surface-3:var(--tc-surface-04)!important;
    --tc-border:var(--tc-border)!important;
    --tc-border-strong:var(--tc-border-strong)!important;
    --tc-text:var(--tc-text-01)!important;
    --tc-muted:var(--tc-muted-01)!important;
    --tc-muted-2:var(--tc-muted-03)!important;
    --tc-blue:var(--tc-primary)!important;
}

/* Same canvas tone as dashboard */
body.tc-shell-v2 .tc8-session-config,
body.tc-shell-v2 .tc8-operation-card,
body.tc-shell-v2 .tc11-mental-card,
body.tc-shell-v2 .tc11-notes-card,
body.tc-shell-v2 .tc8-summary-card,
body.tc-shell-v2 .tc8-preview-card,
body.tc-shell-v2 .tc113-session-flow{
    border-color:var(--tc-border)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;
    border-radius:var(--tc-radius-xl)!important;
}

/* Same input system everywhere in the rebuilt experience */
body.tc-shell-v2 .tc8-operation-page input,
body.tc-shell-v2 .tc8-operation-page select,
body.tc-shell-v2 .tc8-operation-page textarea{
    border-color:rgba(255,255,255,.065)!important;
    background:var(--tc-surface-01)!important;
    color:var(--tc-text-02)!important;
    border-radius:var(--tc-radius-md)!important;
}
body.tc-shell-v2 .tc8-operation-page input:hover,
body.tc-shell-v2 .tc8-operation-page select:hover,
body.tc-shell-v2 .tc8-operation-page textarea:hover{
    border-color:var(--tc-border-strong)!important;
    background:var(--tc-surface-hover)!important;
}
body.tc-shell-v2 .tc8-operation-page input:focus,
body.tc-shell-v2 .tc8-operation-page select:focus,
body.tc-shell-v2 .tc8-operation-page textarea:focus{
    outline:none!important;
    border-color:rgba(47,125,255,.48)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.075)!important;
}

/* Consistent rebuilt-screen typography */
body.tc-shell-v2 .tc8-kicker,
body.tc-shell-v2 .tc8-side-label,
body.tc-shell-v2 .tc8-section-title span,
body.tc-shell-v2 .tc113-flow-head span,
body.tc-shell-v2 .tc11-notes-kicker{
    color:var(--tc-muted-02)!important;
    font-size:var(--tc-type-label)!important;
}
body.tc-shell-v2 .tc8-hero h2{
    color:var(--tc-text-01)!important;
    font-size:var(--tc-type-hero)!important;
}
body.tc-shell-v2 .tc8-hero p{
    color:var(--tc-muted-01)!important;
    font-size:var(--tc-type-body)!important;
}

/* Right rail width is now a page component, never a sidebar substitute */
body.tc-shell-v2 .tc8-layout{
    grid-template-columns:minmax(0,1fr) 320px!important;
}

/* ---------- Responsive shell ---------- */
@media(max-width:980px){
    body.tc-shell-v2 .app{
        grid-template-columns:1fr!important;
    }
    body.tc-shell-v2 .tc-sidebar,
    body.tc-shell-v2 .sidebar{
        width:var(--tc-sidebar-width)!important;
        min-width:var(--tc-sidebar-width)!important;
        max-width:var(--tc-sidebar-width)!important;
    }
}
@media(max-width:620px){
    :root{
        --tc-page-x:16px;
        --tc-page-top:12px;
        --tc-page-bottom:28px;
    }
}


/* ==========================================================================
   v2 SPRINT 01.1 — NOVA OPERAÇÃO / FINAL CONSISTENCY PASS
   Aligns visual rhythm to Dashboard without changing business logic.
   ========================================================================== */

/* same vertical rhythm as cockpit */
body.tc-shell-v2 .tc8-operation-page{
    gap:14px!important;
}

/* hero mirrors cockpit proportions */
body.tc-shell-v2 .tc8-hero{
    padding:34px 2px 28px!important;
    gap:24px!important;
}
body.tc-shell-v2 .tc8-kicker{
    margin-bottom:10px!important;
    font-size:9px!important;
    letter-spacing:.12em!important;
}
body.tc-shell-v2 .tc8-hero h2{
    margin:0!important;
    font-size:32px!important;
    font-weight:650!important;
    line-height:1.08!important;
    letter-spacing:-.045em!important;
}
body.tc-shell-v2 .tc8-hero p{
    margin:9px 0 0!important;
    color:#7c8fa8!important;
    font-size:11px!important;
    line-height:1.55!important;
}
body.tc-shell-v2 .tc8-back{
    min-height:42px!important;
    padding:0 15px!important;
    border-radius:11px!important;
    font-size:10px!important;
}

/* KPI strip matches dashboard exactly in perceived density */
body.tc-shell-v2 .tc8-session-strip{
    border-top:1px solid rgba(255,255,255,.06)!important;
    border-bottom:1px solid rgba(255,255,255,.06)!important;
}
body.tc-shell-v2 .tc8-session-strip>div{
    min-height:126px!important;
    padding:20px 22px!important;
    border-right:1px solid rgba(255,255,255,.055)!important;
}
body.tc-shell-v2 .tc8-session-strip span{
    color:#61748d!important;
    font-size:8px!important;
    letter-spacing:.09em!important;
}
body.tc-shell-v2 .tc8-session-strip strong{
    margin-top:11px!important;
    color:#edf4ff!important;
    font-size:24px!important;
    font-weight:680!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
}

/* page working grid */
body.tc-shell-v2 .tc8-layout{
    grid-template-columns:minmax(0,1fr) 320px!important;
    gap:14px!important;
}
body.tc-shell-v2 .tc8-main{
    gap:14px!important;
}

/* use dashboard-like panel tone */
body.tc-shell-v2 .tc8-session-config,
body.tc-shell-v2 .tc8-operation-card,
body.tc-shell-v2 .tc113-session-flow,
body.tc-shell-v2 .tc11-mental-card,
body.tc-shell-v2 .tc11-notes-card,
body.tc-shell-v2 .tc8-summary-card,
body.tc-shell-v2 .tc8-preview-card{
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;
    border:1px solid rgba(255,255,255,.055)!important;
    border-radius:16px!important;
}

/* section headings */
body.tc-shell-v2 .tc8-section-title span,
body.tc-shell-v2 .tc113-flow-head span,
body.tc-shell-v2 .tc8-side-label,
body.tc-shell-v2 .tc11-notes-kicker{
    color:#61748d!important;
    font-size:8px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.09em!important;
}
body.tc-shell-v2 .tc8-section-title h3,
body.tc-shell-v2 .tc113-flow-head h3,
body.tc-shell-v2 .tc8-summary-card h3,
body.tc-shell-v2 .tc8-preview-card h3{
    color:#e8f0fa!important;
    font-size:17px!important;
    font-weight:650!important;
    letter-spacing:-.025em!important;
}

/* operation modules */
body.tc-shell-v2 .tc8-operation-card>header{
    min-height:68px!important;
    padding:14px 16px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.008),rgba(255,255,255,.002))!important;
    border-bottom:1px solid rgba(255,255,255,.045)!important;
}
body.tc-shell-v2 .tc8-operation-number{
    width:36px!important;
    height:36px!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.075)!important;
    color:#78aaff!important;
    box-shadow:inset 0 0 0 1px rgba(47,125,255,.075)!important;
}
body.tc-shell-v2 .tc8-operation-card header h3{
    color:#dce6f2!important;
    font-size:14px!important;
}
body.tc-shell-v2 .tc113-op-summary{
    color:#667992!important;
    font-size:9px!important;
}
body.tc-shell-v2 .tc8-operation-live{
    background:rgba(255,255,255,.018)!important;
    border-color:rgba(255,255,255,.045)!important;
    color:#70839b!important;
}

/* fields */
body.tc-shell-v2 .tc8-context-grid label,
body.tc-shell-v2 .tc8-field-grid label,
body.tc-shell-v2 .tc8-observations{
    color:#8ea0b6!important;
    font-size:10px!important;
    font-weight:650!important;
}
body.tc-shell-v2 .tc8-operation-page input,
body.tc-shell-v2 .tc8-operation-page select,
body.tc-shell-v2 .tc8-operation-page textarea{
    min-height:42px!important;
    border:1px solid rgba(255,255,255,.055)!important;
    background:#080f19!important;
    color:#dce6f2!important;
    font-size:10px!important;
}
body.tc-shell-v2 .tc8-operation-page input:hover,
body.tc-shell-v2 .tc8-operation-page select:hover,
body.tc-shell-v2 .tc8-operation-page textarea:hover{
    background:#09111c!important;
    border-color:rgba(255,255,255,.08)!important;
}
body.tc-shell-v2 .tc8-operation-page input:focus,
body.tc-shell-v2 .tc8-operation-page select:focus,
body.tc-shell-v2 .tc8-operation-page textarea:focus{
    background:#09111c!important;
    border-color:rgba(47,125,255,.42)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.06)!important;
}

/* right rail shares cockpit density */
body.tc-shell-v2 .tc8-side-sticky{
    gap:10px!important;
}
body.tc-shell-v2 .tc8-summary-card,
body.tc-shell-v2 .tc8-preview-card{
    padding:16px!important;
}
body.tc-shell-v2 .tc8-summary-list{
    background:rgba(255,255,255,.035)!important;
}
body.tc-shell-v2 .tc8-summary-list>div,
body.tc-shell-v2 .tc8-suggested>div{
    background:#080f19!important;
}
body.tc-shell-v2 .tc8-summary-list span,
body.tc-shell-v2 .tc8-preview-total span,
body.tc-shell-v2 .tc8-meta-progress span,
body.tc-shell-v2 .tc8-suggested span{
    color:#61748d!important;
}
body.tc-shell-v2 .tc8-summary-list strong,
body.tc-shell-v2 .tc8-suggested strong{
    color:#cbd8e8!important;
}
body.tc-shell-v2 .tc8-preview-total strong{
    color:#edf4ff!important;
}

/* mental/notes align to same neutral surfaces */
body.tc-shell-v2 .tc11-mental-card>summary{
    background:linear-gradient(180deg,rgba(255,255,255,.008),rgba(255,255,255,.002))!important;
}
body.tc-shell-v2 .tc11-mental-card .diary-summary-icon{
    background:rgba(47,125,255,.06)!important;
}
body.tc-shell-v2 .tc11-mental-card .diary-choice span,
body.tc-shell-v2 .tc11-mental-card .diary-check span{
    background:#080f19!important;
    border-color:rgba(255,255,255,.05)!important;
}

/* actions */
body.tc-shell-v2 .tc8-save{
    min-height:42px!important;
    border-radius:11px!important;
    background:#2f7dff!important;
    box-shadow:0 11px 28px rgba(47,125,255,.15)!important;
}
body.tc-shell-v2 .tc8-save:hover{
    background:#3785ff!important;
}
body.tc-shell-v2 .tc8-cancel{
    min-height:42px!important;
    border-radius:11px!important;
    background:transparent!important;
    border-color:rgba(255,255,255,.045)!important;
    color:#70839b!important;
}

/* responsive: no visual jump when route changes */
@media(max-width:1100px){
    body.tc-shell-v2 .tc8-layout{
        grid-template-columns:1fr!important;
    }
}


/* ==========================================================================
   v2 SPRINT 02.1 — OPERATIONS WORKSPACE FOUNDATION
   ========================================================================== */
.tc-workspace-v2{display:grid;gap:14px}
.tc-workspace-hero{
    display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
    padding:34px 2px 28px
}
.tc-workspace-hero h1{
    margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;
    line-height:1.08;letter-spacing:-.045em
}
.tc-workspace-hero p{margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.55}
.tc-workspace-primary{
    min-height:42px;padding:0 15px;display:inline-flex;align-items:center;gap:7px;
    border-radius:11px;background:var(--tc-primary);color:#fff;font-size:10px;
    font-weight:800;box-shadow:0 11px 28px rgba(47,125,255,.15)
}
.tc-workspace-primary:hover{background:#3785ff;transform:translateY(-1px)}
.tc-workspace-primary svg{width:15px;height:15px}

.tc-workspace-feedback{
    display:flex;align-items:center;gap:9px;padding:12px 14px;
    border:1px solid var(--tc-border);border-radius:11px;font-size:10px
}
.tc-workspace-feedback svg{width:14px;height:14px}
.tc-workspace-feedback.success{background:rgba(46,207,120,.045);color:#72dba2}
.tc-workspace-feedback.error{background:rgba(240,91,115,.045);color:#f1889a}

.tc-workspace-kpis{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    border-top:1px solid rgba(255,255,255,.06);
    border-bottom:1px solid rgba(255,255,255,.06)
}
.tc-workspace-kpis>article{
    min-height:126px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)
}
.tc-workspace-kpis>article:last-child{border-right:0}
.tc-workspace-kpis span{
    display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em
}
.tc-workspace-kpis strong{
    display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;
    line-height:1.08;letter-spacing:-.04em
}
.tc-workspace-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.tc-workspace-filter-panel,.tc-workspace-list-panel{
    border:1px solid var(--tc-border);border-radius:16px;
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))
}
.tc-workspace-filter-panel{padding:16px}
.tc-workspace-filters{
    display:grid;grid-template-columns:minmax(210px,1.4fr) repeat(7,minmax(105px,.7fr)) auto;
    gap:9px;align-items:end
}
.tc-workspace-filters label>span{
    display:block;margin-bottom:6px;color:#71849b;font-size:8px;font-weight:800;
    text-transform:uppercase;letter-spacing:.075em
}
.tc-workspace-filters input,.tc-workspace-filters select{
    width:100%;min-height:39px;padding:0 10px;border:1px solid rgba(255,255,255,.055);
    border-radius:10px;background:#080f19;color:#d7e1ee;font-family:inherit;font-size:9px;outline:none
}
.tc-workspace-filters input:focus,.tc-workspace-filters select:focus{
    border-color:rgba(47,125,255,.42);box-shadow:0 0 0 3px rgba(47,125,255,.06)
}
.tc-workspace-search>div{position:relative}
.tc-workspace-search svg{
    position:absolute;left:10px;top:50%;width:13px;height:13px;
    transform:translateY(-50%);color:#5f728a
}
.tc-workspace-search input{padding-left:31px}
.tc-workspace-filter-actions{display:flex;gap:6px}
.tc-workspace-filter-actions button,.tc-workspace-filter-actions a{
    min-height:39px;padding:0 11px;border-radius:10px;display:inline-flex;align-items:center;
    justify-content:center;gap:5px;font-family:inherit;font-size:9px;font-weight:750;white-space:nowrap
}
.tc-workspace-filter-actions button{border:0;background:var(--tc-primary);color:white;cursor:pointer}
.tc-workspace-filter-actions a{border:1px solid var(--tc-border);color:#71849b}
.tc-workspace-filter-actions svg{width:12px;height:12px}

.tc-workspace-list-panel{overflow:hidden}
.tc-workspace-list-head{padding:18px 18px 15px;border-bottom:1px solid rgba(255,255,255,.045)}
.tc-workspace-list-head h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650}
.tc-workspace-list-head p{margin:5px 0 0;color:#687b92;font-size:9px}
.tc-workspace-table-wrap{overflow:auto}
.tc-workspace-table{width:100%;min-width:1260px;border-collapse:collapse}
.tc-workspace-table th{
    padding:10px 11px;text-align:left;border-bottom:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.005);color:#60738b;font-size:8px;font-weight:800;
    text-transform:uppercase;letter-spacing:.065em;white-space:nowrap
}
.tc-workspace-table td{
    padding:11px;border-bottom:1px solid rgba(255,255,255,.035);
    color:#aebed1;font-size:9px;vertical-align:middle
}
.tc-workspace-table tbody tr{transition:background var(--tc-fast) var(--tc-ease)}
.tc-workspace-table tbody tr:hover{background:rgba(255,255,255,.018)}
.tc-workspace-table tbody tr:last-child td{border-bottom:0}
.tc-workspace-table td>strong{color:#cbd8e8;font-size:10px}
.tc-workspace-tags{display:flex;flex-wrap:wrap;gap:4px}
.tc-workspace-tags>span{
    display:inline-flex;align-items:center;min-height:23px;padding:0 7px;border-radius:7px;
    background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.035);
    color:#8699b0;font-size:8px;white-space:nowrap
}
.tc-workspace-tags.tf>span{color:#6f8fb8}
.tc-workspace-profit-head{text-align:right!important}
.tc-workspace-table td:nth-last-child(2){text-align:right}
.tc-workspace-table .table-actions{justify-content:flex-end}

.tc-workspace-empty{
    min-height:280px;padding:40px;display:flex;flex-direction:column;align-items:center;
    justify-content:center;text-align:center
}
.tc-workspace-empty>span{
    width:42px;height:42px;display:grid;place-items:center;border-radius:12px;
    background:rgba(47,125,255,.055);color:#6fa5f8
}
.tc-workspace-empty>span svg{width:18px;height:18px}
.tc-workspace-empty h3{margin:13px 0 0;color:#dce6f2;font-size:14px}
.tc-workspace-empty p{margin:6px 0 0;color:#6f8299;font-size:10px}
.tc-workspace-empty>a{
    margin-top:14px;min-height:38px;padding:0 12px;display:inline-flex;align-items:center;
    gap:6px;border-radius:10px;background:#2f7dff;color:white;font-size:9px;font-weight:750
}
.tc-workspace-empty>a svg{width:12px;height:12px}

/* Existing bulk selection logic, visually integrated */
.tc-workspace-list-panel .bulk-actions-bar{
    margin:12px 14px 0;border-radius:11px;border-color:rgba(47,125,255,.10);
    background:rgba(47,125,255,.035)
}

@media(max-width:1320px){
    .tc-workspace-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
    .tc-workspace-search{grid-column:span 2}
}
@media(max-width:820px){
    .tc-workspace-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tc-workspace-kpis>article:nth-child(2){border-right:0}
    .tc-workspace-kpis>article:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.055)}
    .tc-workspace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tc-workspace-search{grid-column:span 2}
}
@media(max-width:560px){
    .tc-workspace-hero{align-items:flex-start;flex-direction:column}
    .tc-workspace-kpis,.tc-workspace-filters{grid-template-columns:1fr}
    .tc-workspace-search{grid-column:auto}
}


/* ==========================================================================
   v2 SPRINT 02.2 — PREMIUM DATA TABLE
   Reusable table language for Operations and future workspaces.
   ========================================================================== */

/* container + header */
.tc-workspace-list-panel{
    border-color:rgba(255,255,255,.05)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.010),rgba(255,255,255,.004))!important;
}
.tc-workspace-list-head{
    padding:20px 20px 16px!important;
    border-bottom-color:rgba(255,255,255,.04)!important;
}
.tc-workspace-list-head h2{
    font-size:18px!important;
}
.tc-workspace-list-head p{
    font-size:10px!important;
    color:#74879e!important;
}

/* table frame */
.tc-workspace-table-wrap{
    position:relative;
    overflow:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.08) transparent;
}
.tc-workspace-table-wrap::-webkit-scrollbar{height:8px;width:8px}
.tc-workspace-table-wrap::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.07);
    border-radius:999px;
}
.tc-workspace-table{
    min-width:1280px!important;
    table-layout:auto;
}

/* header */
.tc-workspace-table thead{
    position:sticky;
    top:0;
    z-index:3;
}
.tc-workspace-table th{
    height:42px;
    padding:0 12px!important;
    background:#090f19!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
    color:#657991!important;
    font-size:9px!important;
    font-weight:800!important;
    letter-spacing:.075em!important;
    white-space:nowrap;
}
.tc-workspace-table th:first-child,
.tc-workspace-table td:first-child{
    padding-left:15px!important;
}

/* rows */
.tc-workspace-table td{
    height:58px;
    padding:10px 12px!important;
    border-bottom:1px solid rgba(255,255,255,.035)!important;
    color:#9eafc2!important;
    font-size:10px!important;
    line-height:1.35;
}
.tc-workspace-table tbody .tc-data-row{
    position:relative;
    cursor:pointer;
    outline:none;
    transition:
        background var(--tc-fast) var(--tc-ease),
        box-shadow var(--tc-fast) var(--tc-ease);
}
.tc-workspace-table tbody .tc-data-row:hover,
.tc-workspace-table tbody .tc-data-row:focus-visible{
    background:rgba(47,125,255,.032)!important;
    box-shadow:inset 2px 0 0 rgba(47,125,255,.52);
}
.tc-workspace-table tbody .tc-data-row:focus-visible{
    box-shadow:
        inset 2px 0 0 rgba(47,125,255,.72),
        inset 0 0 0 1px rgba(47,125,255,.12);
}
.tc-workspace-table tbody .tc-data-row:last-child td{
    border-bottom:0!important;
}

/* hierarchy */
.tc-data-date strong{
    color:#d9e3ef!important;
    font-size:11px!important;
    font-weight:680!important;
}
.tc-data-profit{
    text-align:right!important;
    white-space:nowrap;
}
.tc-data-profit strong{
    font-size:12px!important;
    font-weight:750!important;
    letter-spacing:-.015em;
}
.tc-data-status{
    white-space:nowrap;
}

/* unified badges */
.tc-workspace-table .status-pill,
.tc-workspace-table .operation-cycle-pill,
.tc-workspace-table .operation-return-pill,
.tc-workspace-tags>span{
    min-height:25px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 8px!important;
    border-radius:8px!important;
    border:1px solid rgba(255,255,255,.045)!important;
    background:rgba(255,255,255,.024)!important;
    color:#8396ad!important;
    font-size:8px!important;
    font-weight:650!important;
    line-height:1!important;
    white-space:nowrap!important;
}
.tc-workspace-table .status-pill.status-win{
    color:#65d99c!important;
    background:rgba(46,207,120,.055)!important;
    border-color:rgba(46,207,120,.10)!important;
}
.tc-workspace-table .status-pill.status-loss{
    color:#f08093!important;
    background:rgba(240,91,115,.055)!important;
    border-color:rgba(240,91,115,.10)!important;
}
.tc-workspace-table .status-pill.status-neutral{
    color:#8295ac!important;
    background:rgba(255,255,255,.022)!important;
}
.tc-workspace-tags,
.operation-cycle-list,
.operation-return-list{
    gap:5px!important;
}

/* custom checkboxes — reusable data-grid style */
.tc-workspace-table .bulk-checkbox,
.tc-workspace-list-panel #bulkSelectAll{
    appearance:none;
    -webkit-appearance:none;
    width:16px!important;
    height:16px!important;
    min-width:16px;
    margin:0;
    display:grid;
    place-content:center;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:5px!important;
    background:#080f19!important;
    cursor:pointer;
    transition:
        background var(--tc-fast) var(--tc-ease),
        border-color var(--tc-fast) var(--tc-ease),
        box-shadow var(--tc-fast) var(--tc-ease);
}
.tc-workspace-table .bulk-checkbox::before,
.tc-workspace-list-panel #bulkSelectAll::before{
    content:'';
    width:8px;
    height:8px;
    transform:scale(0);
    transition:transform 120ms var(--tc-ease);
    box-shadow:inset 1em 1em #fff;
    clip-path:polygon(14% 44%,0 59%,39% 100%,100% 22%,82% 5%,38% 70%);
}
.tc-workspace-table .bulk-checkbox:hover,
.tc-workspace-list-panel #bulkSelectAll:hover{
    border-color:rgba(47,125,255,.42)!important;
}
.tc-workspace-table .bulk-checkbox:checked,
.tc-workspace-list-panel #bulkSelectAll:checked{
    background:var(--tc-primary)!important;
    border-color:var(--tc-primary)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.07);
}
.tc-workspace-table .bulk-checkbox:checked::before,
.tc-workspace-list-panel #bulkSelectAll:checked::before{
    transform:scale(1);
}

/* actions */
.tc-workspace-table .table-actions{
    display:flex!important;
    align-items:center;
    gap:5px!important;
    opacity:.70;
    transition:opacity var(--tc-fast) var(--tc-ease);
}
.tc-workspace-table .tc-data-row:hover .table-actions,
.tc-workspace-table .tc-data-row:focus-visible .table-actions{
    opacity:1;
}
.tc-workspace-table .table-action-btn{
    min-height:30px!important;
    padding:0 8px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    border:1px solid rgba(255,255,255,.045)!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.012)!important;
    color:#74879e!important;
    font-size:8px!important;
    font-weight:700!important;
    transition:
        background var(--tc-fast) var(--tc-ease),
        color var(--tc-fast) var(--tc-ease),
        border-color var(--tc-fast) var(--tc-ease),
        transform var(--tc-fast) var(--tc-ease)!important;
}
.tc-workspace-table .table-action-btn svg{
    width:11px!important;
    height:11px!important;
}
.tc-workspace-table .table-action-btn:hover{
    background:rgba(47,125,255,.055)!important;
    border-color:rgba(47,125,255,.12)!important;
    color:#9fc1f7!important;
    transform:translateY(-1px);
}
.tc-workspace-table .table-action-btn.delete:hover{
    background:rgba(240,91,115,.055)!important;
    border-color:rgba(240,91,115,.11)!important;
    color:#f18a9b!important;
}

/* selection toolbar */
.tc-workspace-list-panel .bulk-actions-bar{
    min-height:56px!important;
    padding:10px 12px!important;
    margin:12px 14px 0!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:11px!important;
    background:rgba(47,125,255,.035)!important;
}
.tc-workspace-list-panel .bulk-actions-count strong{
    color:#b9c9dc!important;
    font-size:10px!important;
}
.tc-workspace-list-panel .bulk-actions-count>span{
    color:#70839a!important;
    font-size:9px!important;
}

/* responsive visibility priorities */
@media(max-width:1280px){
    .tc-workspace-table th:nth-child(10),
    .tc-workspace-table td:nth-child(10){
        display:none;
    }
}
@media(max-width:1100px){
    .tc-workspace-table th:nth-child(5),
    .tc-workspace-table td:nth-child(5){
        display:none;
    }
}

/* RC12.3 Operation Drawer */
.tc-drawer-overlay{position:fixed;inset:0;background:rgba(3,8,15,.55);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:.2s;z-index:1200}
.tc-drawer-overlay.open{opacity:1;visibility:visible}
.tc-operation-drawer{position:fixed;top:0;right:-440px;width:420px;max-width:95vw;height:100vh;background:#0d1522;border-left:1px solid rgba(255,255,255,.06);transition:right .25s;z-index:1201;box-shadow:-20px 0 40px rgba(0,0,0,.35)}
.tc-operation-drawer.open{right:0}


/* ==========================================================================
   v2 SPRINT 02.4 — SMART OPERATION DRAWER
   ========================================================================== */
body.tc-drawer-open{overflow:hidden}
.tc-drawer-overlay{
    position:fixed;inset:0;z-index:1200;
    background:rgba(3,7,13,.58);
    backdrop-filter:blur(4px);
    opacity:0;visibility:hidden;
    transition:opacity .22s var(--tc-ease),visibility .22s var(--tc-ease)
}
.tc-drawer-overlay.open{opacity:1;visibility:visible}

.tc-operation-drawer{
    position:fixed!important;top:0!important;right:-520px!important;
    width:500px!important;max-width:96vw!important;height:100dvh!important;
    z-index:1201!important;
    display:grid!important;grid-template-rows:auto 1fr auto!important;
    background:#080e18!important;
    border-left:1px solid rgba(255,255,255,.06)!important;
    box-shadow:-28px 0 70px rgba(0,0,0,.40)!important;
    transition:right .26s var(--tc-ease)!important;
    overflow:hidden!important
}
.tc-operation-drawer.open{right:0!important}

.tc-drawer-header{
    min-height:92px;padding:20px 20px 17px;
    display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
    border-bottom:1px solid rgba(255,255,255,.045);
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.002))
}
.tc-drawer-header h2{
    margin:6px 0 0;color:#edf4fb;font-size:21px;font-weight:680;letter-spacing:-.035em
}
.tc-drawer-header p{margin:5px 0 0;color:#6f8299;font-size:10px}
.tc-drawer-close{
    width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;
    border:1px solid rgba(255,255,255,.05);border-radius:9px;
    background:rgba(255,255,255,.012);color:#73869e;cursor:pointer
}
.tc-drawer-close:hover{background:rgba(255,255,255,.03);color:#b4c2d3}
.tc-drawer-close svg{width:14px;height:14px}

.tc-drawer-body{overflow-y:auto;padding:16px 18px 22px}
.tc-drawer-summary{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    border-top:1px solid rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.05)
}
.tc-drawer-summary>div{padding:15px 12px;border-right:1px solid rgba(255,255,255,.045)}
.tc-drawer-summary>div:last-child{border-right:0}
.tc-drawer-summary span{
    display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.075em
}
.tc-drawer-summary strong{display:block;margin-top:7px;color:#dce6f2;font-size:13px}
.tc-drawer-summary strong.positive{color:var(--tc-success)!important}
.tc-drawer-summary strong.negative{color:var(--tc-danger)!important}
.tc-drawer-summary strong.neutral{color:#8da0b7!important}

.tc-drawer-section{margin-top:20px}
.tc-drawer-section-head h3{margin:5px 0 0;color:#dce6f2;font-size:14px;font-weight:650}

.tc-drawer-timeline{display:grid;gap:9px;margin-top:12px}
.tc-drawer-stage{
    display:grid;grid-template-columns:34px 1fr;gap:10px;
    padding:13px;border:1px solid rgba(255,255,255,.045);
    border-radius:12px;background:rgba(255,255,255,.008)
}
.tc-drawer-stage-marker{position:relative}
.tc-drawer-stage-marker::after{
    content:'';position:absolute;top:33px;bottom:-24px;left:16px;width:1px;background:rgba(255,255,255,.05)
}
.tc-drawer-stage:last-child .tc-drawer-stage-marker::after{display:none}
.tc-drawer-stage-marker span{
    width:32px;height:32px;display:grid;place-items:center;border-radius:9px;
    background:rgba(47,125,255,.065);color:#79aaf5;font-size:9px;font-weight:800
}
.tc-drawer-stage.positive .tc-drawer-stage-marker span{
    background:rgba(46,207,120,.06);color:#65d99c
}
.tc-drawer-stage.negative .tc-drawer-stage-marker span{
    background:rgba(240,91,115,.06);color:#f08093
}
.tc-drawer-stage-main header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tc-drawer-stage-main header span{display:block;color:#667991;font-size:8px}
.tc-drawer-stage-main header strong{display:block;margin-top:3px;color:#d8e2ee;font-size:11px}
.tc-drawer-stage-main header em{font-size:10px;font-style:normal;font-weight:750}
.tc-drawer-stage-grid{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;margin-top:11px
}
.tc-drawer-stage-grid>div{
    padding:8px;border:1px solid rgba(255,255,255,.035);
    border-radius:8px;background:#080f19
}
.tc-drawer-stage-grid>div.wide{grid-column:span 3}
.tc-drawer-stage-grid span{display:block;color:#5f728a;font-size:7px}
.tc-drawer-stage-grid strong{display:block;margin-top:4px;color:#9eafc2;font-size:9px}

.tc-drawer-note{
    margin-top:12px;padding:13px;border-left:2px solid rgba(47,125,255,.42);
    border-radius:0 10px 10px 0;background:rgba(47,125,255,.025);
    color:#91a3b8;font-size:10px;line-height:1.65;white-space:pre-wrap
}
.tc-drawer-journal{
    margin-top:9px;padding:11px;border:1px solid rgba(255,255,255,.04);
    border-radius:10px;background:rgba(255,255,255,.007)
}
.tc-drawer-journal span{
    display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em
}
.tc-drawer-journal p{margin:5px 0 0;color:#8193aa;font-size:9px;line-height:1.55}
.tc-drawer-empty{padding:16px;color:#6f8299;font-size:10px;text-align:center}

.tc-drawer-footer{
    padding:13px 16px;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    border-top:1px solid rgba(255,255,255,.045);
    background:#080e18
}
.tc-drawer-nav,.tc-drawer-actions{display:flex;gap:6px}
.tc-drawer-nav button,.tc-drawer-actions a{
    min-height:36px;padding:0 10px;display:inline-flex;align-items:center;gap:5px;
    border:1px solid rgba(255,255,255,.05);border-radius:9px;
    background:rgba(255,255,255,.01);color:#76899f;font-family:inherit;font-size:9px;font-weight:700
}
.tc-drawer-nav button{cursor:pointer}
.tc-drawer-nav button:disabled{opacity:.28;cursor:not-allowed}
.tc-drawer-nav button:not(:disabled):hover,.tc-drawer-edit:hover{
    background:rgba(47,125,255,.05);border-color:rgba(47,125,255,.10);color:#91b8f4
}
.tc-drawer-delete:hover{
    background:rgba(240,91,115,.05)!important;border-color:rgba(240,91,115,.10)!important;color:#f08899!important
}
.tc-drawer-nav svg,.tc-drawer-actions svg{width:11px;height:11px}

@media(max-width:600px){
    .tc-operation-drawer{width:100%!important;max-width:100vw!important}
    .tc-drawer-summary{grid-template-columns:1fr}
    .tc-drawer-summary>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.04)}
    .tc-drawer-summary>div:last-child{border-bottom:0}
    .tc-drawer-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tc-drawer-stage-grid>div.wide{grid-column:span 2}
    .tc-drawer-footer{align-items:stretch;flex-direction:column}
    .tc-drawer-nav,.tc-drawer-actions{justify-content:space-between}
}


/* ==========================================================================
   v2 SPRINT 02.5 — UX & FEEDBACK SYSTEM
   ========================================================================== */

/* Standard interactive states */
.tc-workspace-v2 button,
.tc-workspace-v2 a,
.tc-operation-drawer button,
.tc-operation-drawer a{
    transition:
        background var(--tc-fast) var(--tc-ease),
        border-color var(--tc-fast) var(--tc-ease),
        color var(--tc-fast) var(--tc-ease),
        opacity var(--tc-fast) var(--tc-ease),
        transform var(--tc-fast) var(--tc-ease),
        box-shadow var(--tc-fast) var(--tc-ease);
}
.tc-workspace-v2 button:active:not(:disabled),
.tc-workspace-v2 a:active,
.tc-operation-drawer button:active:not(:disabled),
.tc-operation-drawer a:active{
    transform:translateY(0) scale(.985)!important;
}
.tc-workspace-v2 button:disabled,
.tc-operation-drawer button:disabled{
    opacity:.36!important;
    cursor:not-allowed!important;
}
.tc-workspace-v2 :focus-visible,
.tc-operation-drawer :focus-visible{
    outline:2px solid rgba(47,125,255,.55);
    outline-offset:2px;
}

/* Filter loading state */
.tc-workspace-filter-panel.is-loading{
    position:relative;
    pointer-events:none;
}
.tc-workspace-filter-panel.is-loading::after{
    content:'';
    position:absolute;inset:0;
    border-radius:inherit;
    background:rgba(7,11,20,.48);
    backdrop-filter:blur(1px);
}
.tc-workspace-filter-panel.is-loading::before{
    content:'';
    position:absolute;z-index:2;
    width:18px;height:18px;left:50%;top:50%;
    margin:-9px 0 0 -9px;
    border:2px solid rgba(255,255,255,.12);
    border-top-color:var(--tc-primary);
    border-radius:50%;
    animation:tcUxSpin .7s linear infinite;
}
@keyframes tcUxSpin{to{transform:rotate(360deg)}}

/* Table skeleton */
.tc-workspace-loading{
    display:none;
    padding:12px 16px 18px;
}
.tc-workspace-loading.is-visible{display:block}
.tc-skeleton-head,.tc-skeleton-row{
    display:grid;
    grid-template-columns:22px 90px 80px 1.5fr 90px 90px 100px;
    gap:14px;
    align-items:center;
}
.tc-skeleton-head{height:38px;border-bottom:1px solid rgba(255,255,255,.035)}
.tc-skeleton-row{height:58px;border-bottom:1px solid rgba(255,255,255,.025)}
.tc-skeleton-head i,.tc-skeleton-row i{
    display:block;height:10px;border-radius:6px;
    background:linear-gradient(90deg,rgba(255,255,255,.025),rgba(255,255,255,.065),rgba(255,255,255,.025));
    background-size:220% 100%;
    animation:tcSkeleton 1.25s ease-in-out infinite
}
.tc-skeleton-row i.check{width:16px;height:16px;border-radius:5px}
.tc-skeleton-row i.date{width:72px}
.tc-skeleton-row i.status{width:58px}
.tc-skeleton-row i.wide{width:88%}
@keyframes tcSkeleton{
    0%{background-position:200% 0}
    100%{background-position:-20% 0}
}
.tc-workspace-list-panel.is-loading .bulk-operations-form{display:none}
.tc-workspace-list-panel.is-loading .tc-workspace-loading{display:block}

/* Premium empty state */
.tc-workspace-empty{
    min-height:320px!important;
    padding:46px 28px!important;
}
.tc-workspace-empty>span{
    width:48px!important;height:48px!important;
    border:1px solid rgba(47,125,255,.08);
    box-shadow:0 12px 28px rgba(47,125,255,.06)
}
.tc-workspace-empty h3{font-size:15px!important}
.tc-workspace-empty p{
    max-width:430px;
    font-size:10px!important;
    line-height:1.6;
}
.tc-workspace-empty-actions{
    display:flex;align-items:center;justify-content:center;gap:8px;margin-top:15px
}
.tc-workspace-empty-actions>a{
    margin-top:0!important;
    min-height:39px!important
}
.tc-workspace-empty-actions>a.secondary{
    background:transparent!important;
    border:1px solid rgba(255,255,255,.055);
    color:#7d90a8!important
}
.tc-workspace-empty-actions>a.secondary:hover{
    background:rgba(255,255,255,.02)!important;
    color:#aebed1!important
}

/* Workspace feedback becomes quieter because toast mirrors it */
.tc-workspace-feedback{
    animation:tcFeedbackIn .22s var(--tc-ease) both
}
@keyframes tcFeedbackIn{
    from{opacity:0;transform:translateY(-4px)}
    to{opacity:1;transform:none}
}

/* Global toast alignment with v2 */
body.tc-shell-v2 .ux-toast-region{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:1500;
    display:grid;
    gap:8px;
    pointer-events:none
}
body.tc-shell-v2 .ux-toast{
    min-width:260px;
    max-width:390px;
    display:grid;
    grid-template-columns:8px 1fr;
    align-items:center;
    gap:10px;
    padding:12px 13px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:11px;
    background:#0b131f;
    box-shadow:0 18px 44px rgba(0,0,0,.28);
    opacity:0;
    transform:translateY(8px);
    transition:.22s var(--tc-ease);
    pointer-events:auto
}
body.tc-shell-v2 .ux-toast.show{opacity:1;transform:none}
body.tc-shell-v2 .ux-toast>span{
    width:7px;height:7px;border-radius:999px;background:#6f8299
}
body.tc-shell-v2 .ux-toast.success>span{background:var(--tc-success)}
body.tc-shell-v2 .ux-toast.error>span{background:var(--tc-danger)}
body.tc-shell-v2 .ux-toast.warning>span{background:var(--tc-warning)}
body.tc-shell-v2 .ux-toast.info>span{background:var(--tc-primary)}
body.tc-shell-v2 .ux-toast p{
    margin:0;color:#aebed1;font-size:10px;line-height:1.45
}

@media(max-width:600px){
    .tc-workspace-empty-actions{flex-direction:column}
    body.tc-shell-v2 .ux-toast-region{left:14px;right:14px;bottom:14px}
    body.tc-shell-v2 .ux-toast{min-width:0;max-width:none;width:100%}
}


/* ==========================================================================
   SPRINT 03 — PRODUCTIZATION PACKAGE
   Operations Final Polish + Calendar v2 + Stats/Reports alignment
   ========================================================================== */

/* --- Operations final polish --- */
.tc-workspace-v2 .tc-workspace-filter-panel,
.tc-workspace-v2 .tc-workspace-list-panel{box-shadow:0 14px 36px rgba(0,0,0,.08)}
.tc-workspace-v2 .tc-data-row.is-selected{background:rgba(47,125,255,.045)!important;box-shadow:inset 2px 0 0 rgba(47,125,255,.65)}
.tc-workspace-v2 .tc-data-row:hover td{color:#b6c5d6!important}
.tc-workspace-v2 .tc-workspace-primary,
.tc-workspace-v2 .tc-workspace-filter-actions button{will-change:transform}
@media(prefers-reduced-motion:reduce){
  .tc-workspace-v2 *, .tc-operation-drawer *, .tc-calendar-v2 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* --- Calendar v2 --- */
.tc-calendar-v2{display:grid;gap:14px}
.tc-calendar-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:34px 2px 28px}
.tc-calendar-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.tc-calendar-hero h1 span{color:#71849b;font-weight:500}
.tc-calendar-hero p{margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.55}
.tc-calendar-actions{display:flex;gap:7px}
.tc-calendar-actions a{min-height:42px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:11px;font-size:10px;font-weight:750}
.tc-calendar-actions a.primary{background:var(--tc-primary);color:#fff;box-shadow:0 11px 28px rgba(47,125,255,.15)}
.tc-calendar-actions a.secondary{min-width:42px;border:1px solid var(--tc-border);color:#75889f;background:rgba(255,255,255,.008)}
.tc-calendar-actions a:hover{transform:translateY(-1px)}
.tc-calendar-actions svg{width:14px;height:14px}

.tc-calendar-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.tc-calendar-kpis article{min-height:126px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.tc-calendar-kpis article:last-child{border-right:0}
.tc-calendar-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.tc-calendar-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;letter-spacing:-.04em}
.tc-calendar-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.tc-calendar-panel,.tc-calendar-review{border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));overflow:hidden}
.tc-calendar-panel-head{padding:18px 18px 15px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(255,255,255,.045)}
.tc-calendar-panel-head h2,.tc-calendar-review>header h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650}
.tc-calendar-legend{display:flex;gap:12px;color:#70839a;font-size:8px}
.tc-calendar-legend span{display:flex;align-items:center;gap:5px}
.tc-calendar-legend i{width:7px;height:7px;border-radius:50%;background:#56697f}
.tc-calendar-legend i.positive{background:var(--tc-success)}.tc-calendar-legend i.negative{background:var(--tc-danger)}.tc-calendar-legend i.neutral{background:var(--tc-warning)}

.tc-calendar-weekdays,.tc-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.tc-calendar-weekdays{padding:0 10px;border-bottom:1px solid rgba(255,255,255,.04)}
.tc-calendar-weekdays span{padding:11px 8px;color:#60738b;font-size:8px;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:.06em}
.tc-calendar-grid{padding:10px;gap:7px}
.tc-calendar-day{position:relative;min-height:126px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:11px;background:#080f19;transition:.16s var(--tc-ease)}
.tc-calendar-day.blank{visibility:hidden}
.tc-calendar-day:hover{transform:translateY(-1px);border-color:rgba(47,125,255,.16);background:#09121e}
.tc-calendar-day header{display:flex;justify-content:space-between;align-items:center}
.tc-calendar-day header>span{color:#9aabc0;font-size:10px;font-weight:700}
.tc-calendar-day header em{padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.025);color:#667991;font-size:7px;font-style:normal}
.tc-calendar-day>strong{display:block;margin-top:20px;color:#cdd9e7;font-size:13px}
.tc-calendar-day.positive>strong{color:#65d99c}.tc-calendar-day.negative>strong{color:#f08093}.tc-calendar-day.neutral>strong{color:#d7ad69}
.tc-calendar-day p{margin:6px 0 0;color:#64778e;font-size:8px}
.tc-calendar-noop{display:block;margin-top:28px;color:#4e6075;font-size:8px}
.tc-calendar-mini-cycles{position:absolute;left:11px;right:11px;bottom:10px;display:flex;gap:4px}
.tc-calendar-mini-cycles i{width:6px;height:6px;border-radius:50%}
.tc-calendar-mini-cycles .tag-blue{background:#4e8fff}.tc-calendar-mini-cycles .tag-pink{background:#e171aa}.tc-calendar-mini-cycles .tag-green{background:#49cf8b}.tc-calendar-mini-cycles .tag-orange{background:#e6a251}

.tc-calendar-review>header{padding:18px;border-bottom:1px solid rgba(255,255,255,.045)}
.tc-calendar-review>header p{margin:5px 0 0;color:#687b92;font-size:9px}
.tc-calendar-review-list{display:grid}
.tc-calendar-review-list>a{min-height:57px;padding:0 17px;display:grid;grid-template-columns:46px 120px 1fr 120px 18px;gap:10px;align-items:center;border-bottom:1px solid rgba(255,255,255,.035);transition:.15s var(--tc-ease)}
.tc-calendar-review-list>a:last-child{border-bottom:0}
.tc-calendar-review-list>a:hover{background:rgba(47,125,255,.025)}
.tc-calendar-review-list>a>div span{display:block;color:#d6e1ed;font-size:13px;font-weight:700}.tc-calendar-review-list>a>div small{display:block;color:#56697f;font-size:7px;text-transform:uppercase}
.tc-calendar-review-list>a>strong{color:#9cacbe;font-size:9px}.tc-calendar-review-list>a>em{color:#71849b;font-size:9px;font-style:normal}.tc-calendar-review-list>a>b{justify-self:end;font-size:10px}.tc-calendar-review-list>a>svg{width:12px;height:12px;color:#52657c}
.tc-calendar-empty{min-height:260px;padding:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.tc-calendar-empty>svg{width:24px;height:24px;color:#6fa5f8}.tc-calendar-empty strong{margin-top:12px;color:#dce6f2;font-size:14px}.tc-calendar-empty p{margin:6px 0 0;color:#6f8299;font-size:10px}.tc-calendar-empty a{margin-top:14px;padding:10px 12px;border-radius:9px;background:var(--tc-primary);color:#fff;font-size:9px;font-weight:750}

/* --- Statistics v2 alignment --- */
.tc-stats-v2{display:grid;gap:14px}
.tc-stats-v2 .tc-stats-hero-v2{margin:0!important;padding:34px 2px 28px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.tc-stats-v2 .tc-stats-hero-v2 h2{font-size:32px!important;letter-spacing:-.045em!important}
.tc-stats-v2 .tc-stats-kpis-v2{border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);gap:0!important}
.tc-stats-v2 .tc-stats-kpis-v2>.card{min-height:126px;border:0!important;border-right:1px solid rgba(255,255,255,.055)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.tc-stats-v2 .stats2-tabs{border-color:var(--tc-border)!important;background:#080f19!important}
.tc-stats-v2 .stats2-panel{border-color:var(--tc-border)!important;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;box-shadow:none!important}

/* --- Reports v2 alignment --- */
.tc-reports-v2{display:grid;gap:14px}
.tc-reports-v2 .tc-reports-hero-v2{margin:0!important;padding:34px 2px 28px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.tc-reports-v2 .tc-reports-hero-v2 h2{font-size:32px!important;letter-spacing:-.045em!important}
.tc-reports-v2 .reports-premium-kpis{gap:0!important;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.tc-reports-v2 .reports-premium-kpis>.card{min-height:126px;border:0!important;border-right:1px solid rgba(255,255,255,.055)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.tc-reports-v2 .report-product-card,.tc-reports-v2 .reports-grid>.card,.tc-reports-v2>section.card{border-color:var(--tc-border)!important;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;box-shadow:none!important}

@media(max-width:900px){
 .tc-calendar-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tc-calendar-weekdays,.tc-calendar-grid{min-width:760px}
 .tc-calendar-panel{overflow-x:auto}
}
@media(max-width:600px){
 .tc-calendar-hero{align-items:flex-start;flex-direction:column}
 .tc-calendar-kpis{grid-template-columns:1fr}
 .tc-calendar-review-list>a{grid-template-columns:40px 1fr 90px 14px}
 .tc-calendar-review-list>a>em{display:none}
}


/* ==========================================================================
   SPRINT 03.1 — CALENDAR FINAL / APPROVED VISUAL
   ========================================================================== */
.tc-calendar-v3{display:grid;gap:12px}
.tc-cal3-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 2px 12px}
.tc-cal3-hero h1{margin:6px 0 0;color:#f1f6fd;font-size:31px;font-weight:680;line-height:1.08;letter-spacing:-.045em}
.tc-cal3-hero h1 span{color:#778aa2;font-weight:520}
.tc-cal3-hero p{margin:8px 0 0;color:#7d90a7;font-size:10px;line-height:1.55}
.tc-cal3-today{min-height:40px;padding:0 18px;display:inline-flex;align-items:center;border:1px solid var(--tc-border);border-radius:10px;color:#b3c0d0;font-size:10px;font-weight:700;background:#080f19}

.tc-cal3-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 8px}
.tc-cal3-month-nav{display:flex;align-items:center;gap:7px}
.tc-cal3-month-nav>a,.tc-cal3-month-nav>div{height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--tc-border);border-radius:10px;background:#080f19;color:#8699b0}
.tc-cal3-month-nav>a{width:42px}
.tc-cal3-month-nav>div{min-width:190px;gap:10px;padding:0 16px}
.tc-cal3-month-nav strong{color:#dce6f2;font-size:11px}
.tc-cal3-month-nav svg{width:14px;height:14px}
.tc-cal3-legend{height:42px;padding:0 14px;display:flex;align-items:center;gap:16px;border:1px solid var(--tc-border);border-radius:10px;background:#080f19}
.tc-cal3-legend span{display:flex;align-items:center;gap:6px;color:#a6b5c6;font-size:9px}
.tc-cal3-legend i,.tc-cal3-cycle-dots i{display:inline-block;border-radius:50%}
.tc-cal3-legend i{width:9px;height:9px}
.tc-cal3-legend .profit{background:var(--tc-success)}.tc-cal3-legend .loss{background:#f04b67}.tc-cal3-legend .meta{background:#2477ef}.tc-cal3-legend .stop{background:#ff8a16}

.tc-cal3-calendar{overflow:hidden}
.tc-cal3-weekdays,.tc-cal3-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.tc-cal3-weekdays span{padding:10px 8px;color:#9aabc0;font-size:10px;font-weight:650;text-align:center}
.tc-cal3-grid{gap:7px}
.tc-cal3-day{position:relative;min-height:132px;padding:10px 11px;display:block;text-align:left;border:1px solid rgba(255,255,255,.055);border-radius:11px;background:#080f19;cursor:pointer;transition:.16s var(--tc-ease);font-family:inherit}
.tc-cal3-day.blank{visibility:hidden}
.tc-cal3-day:disabled{cursor:default;opacity:.74}
.tc-cal3-day:not(:disabled):hover{transform:translateY(-2px);border-color:rgba(47,125,255,.18);background:#09121e;box-shadow:0 12px 28px rgba(0,0,0,.16)}
.tc-cal3-day.is-selected{border-color:rgba(50,213,131,.72)!important;box-shadow:inset 0 0 0 1px rgba(50,213,131,.18),0 12px 28px rgba(0,0,0,.16)}
.tc-cal3-day header{display:flex;align-items:center;justify-content:space-between}
.tc-cal3-day header>span{color:#e1e9f3;font-size:11px;font-weight:700}
.tc-cal3-day header em{padding:3px 7px;border-radius:7px;background:rgba(255,255,255,.045);color:#a8b6c7;font-size:8px;font-style:normal;font-weight:650}
.tc-cal3-day>strong{display:block;margin-top:17px;color:#dce6f2;font-size:13px;font-weight:730;letter-spacing:-.015em}
.tc-cal3-day>p{margin:5px 0 0;color:#8799ad;font-size:8px}
.tc-cal3-cycle-dots{display:flex;gap:6px;margin-top:9px;min-height:10px}
.tc-cal3-cycle-dots i{width:10px;height:10px;border:0!important;padding:0!important}
.tc-cal3-cycle-dots .tag-blue,.tc-cal3-cycle-dots .cycle-azul{background:#2879f4!important}
.tc-cal3-cycle-dots .tag-pink,.tc-cal3-cycle-dots .cycle-rosa{background:#f04d79!important}
.tc-cal3-cycle-dots .tag-orange,.tc-cal3-cycle-dots .cycle-laranja{background:#ff8a16!important}
.tc-cal3-cycle-dots .tag-green,.tc-cal3-cycle-dots .cycle-verde{background:#4ccb82!important}
.tc-cal3-cycle-dots .empty-dot{background:#283441!important}
.tc-cal3-values{position:absolute;left:11px;right:11px;bottom:9px;display:flex;justify-content:space-between;gap:7px;color:#708299;font-size:7px;white-space:nowrap}
.tc-cal3-badge{position:absolute;top:9px;right:42px;padding:3px 6px;border-radius:6px;font-size:7px;font-weight:800}
.tc-cal3-badge.meta{color:#55a2ff;border:1px solid #2477ef;background:rgba(36,119,239,.05)}
.tc-cal3-badge.stop{color:#ff9a35;border:1px solid #ff7c00;background:rgba(255,124,0,.05)}

.tc-cal3-summary{min-height:78px;margin-top:4px;padding:0 14px;display:grid;grid-template-columns:1.4fr repeat(5,1fr) 70px;align-items:center;border:1px solid var(--tc-border);border-radius:13px;background:#080f19}
.tc-cal3-summary>div:not(:last-child){min-height:48px;padding:0 14px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid rgba(255,255,255,.05)}
.tc-cal3-summary-label{flex-direction:row!important;align-items:center!important;gap:10px!important;padding-left:4px!important}
.tc-cal3-summary-label svg{width:17px;height:17px;color:#94a8c0}
.tc-cal3-summary span{color:#71849b;font-size:8px}
.tc-cal3-summary strong{margin-top:5px;color:#dce6f2;font-size:12px}
.tc-cal3-summary-label strong{margin:0;font-size:9px}.tc-cal3-summary-label span{margin-top:3px}
.tc-cal3-ring{--pct:0%;width:44px;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:50%;display:grid!important;place-items:center!important;background:conic-gradient(var(--tc-success) var(--pct),#26313d 0)}
.tc-cal3-ring::before{content:'';grid-area:1/1;width:34px;height:34px;border-radius:50%;background:#080f19}
.tc-cal3-ring strong{grid-area:1/1;z-index:1;margin:0!important;font-size:10px!important}

.tc-cal3-overlay{position:fixed;inset:0;z-index:1290;background:rgba(2,6,11,.46);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.2s var(--tc-ease)}
.tc-cal3-overlay.open{opacity:1;visibility:visible}
.tc-cal3-drawer{position:fixed;top:0;right:-410px;width:390px;max-width:96vw;height:100dvh;z-index:1300;display:grid;grid-template-rows:auto 1fr auto;background:#080f19;border-left:1px solid rgba(255,255,255,.06);box-shadow:-28px 0 70px rgba(0,0,0,.38);transition:right .22s var(--tc-ease)}
.tc-cal3-drawer.open{right:0}
.tc-cal3-drawer>header{padding:18px 18px 15px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.05)}
.tc-cal3-drawer>header span{color:#71849b;font-size:9px}.tc-cal3-drawer>header h2{margin:5px 0 0;color:#dce6f2;font-size:18px;font-weight:680}
.tc-cal3-drawer>header button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--tc-border);border-radius:8px;background:transparent;color:#75889f;cursor:pointer}.tc-cal3-drawer>header svg{width:13px;height:13px}
.tc-cal3-drawer-body{overflow-y:auto;padding:14px}
.tc-cal3-day-status{min-height:43px;padding:0 11px;display:grid;grid-template-columns:18px 1fr auto;gap:7px;align-items:center;border:1px solid rgba(50,213,131,.08);border-radius:9px;background:rgba(50,213,131,.025)}
.tc-cal3-day-status svg{width:14px;height:14px;color:var(--tc-success)}.tc-cal3-day-status strong{color:#78dba4;font-size:9px}.tc-cal3-day-status span{color:#8295ab;font-size:8px}
.tc-cal3-drawer-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px}
.tc-cal3-drawer-kpis article{min-height:62px;padding:10px;border:1px solid var(--tc-border);border-radius:9px;background:#09111c}
.tc-cal3-drawer-kpis span{display:block;color:#71849b;font-size:8px}.tc-cal3-drawer-kpis strong{display:block;margin-top:6px;color:#dce6f2;font-size:12px}
.tc-cal3-drawer-section{margin-top:14px}
.tc-cal3-section-head{margin-bottom:8px}.tc-cal3-section-head span{color:#9bacbf;font-size:9px;font-weight:650}
.tc-cal3-cycle-summary{display:grid;gap:5px}
.tc-cal3-cycle-summary>div{min-height:34px;padding:0 9px;display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.04);border-radius:8px;background:#09111c}
.tc-cal3-cycle-summary i{width:8px;height:8px;border-radius:50%}.tc-cal3-cycle-summary span{color:#8fa1b6;font-size:8px}.tc-cal3-cycle-summary strong{color:#657991;font-size:8px}
.tc-cal3-day-operations{display:grid;gap:6px}
.tc-cal3-day-op{padding:9px;border:1px solid rgba(255,255,255,.045);border-radius:9px;background:#09111c}
.tc-cal3-day-op>header{display:grid;grid-template-columns:40px 1fr auto;gap:7px;align-items:center}.tc-cal3-day-op time{color:#75889e;font-size:8px}.tc-cal3-day-op header strong{color:#cbd7e5;font-size:9px}.tc-cal3-day-op header em{font-size:9px;font-style:normal;font-weight:700}
.tc-cal3-day-op>div{display:flex;gap:5px;align-items:center;margin-top:6px}.tc-cal3-day-op span{padding:3px 5px;border-radius:5px;background:rgba(255,255,255,.03);color:#71849a;font-size:7px}
.tc-cal3-day-op footer{display:flex;justify-content:space-between;margin-top:6px;color:#657991;font-size:7px}
.tc-cal3-drawer>footer{padding:12px 14px;border-top:1px solid rgba(255,255,255,.05)}.tc-cal3-drawer>footer a{min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;background:var(--tc-success);color:#07120c;font-size:9px;font-weight:800}.tc-cal3-drawer>footer svg{width:12px;height:12px}

@media(max-width:1050px){
 .tc-cal3-weekdays,.tc-cal3-grid{min-width:980px}.tc-cal3-calendar{overflow-x:auto}.tc-cal3-summary{min-width:980px;overflow:hidden}
}
@media(max-width:620px){
 .tc-cal3-toolbar,.tc-cal3-hero{align-items:flex-start;flex-direction:column}.tc-cal3-summary{grid-template-columns:1fr}.tc-cal3-drawer{width:100%;max-width:100vw}
}


/* ==========================================================================
   SPRINT 04 — GLOBAL VISUAL CONSISTENCY
   No new modules. Legacy screens are visually migrated to the v2 language.
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL LEGACY MIGRATION PRIMITIVES
   -------------------------------------------------------------------------- */
body.tc-shell-v2:not(.tc3-body) .operations-hero.card,
body.tc-shell-v2:not(.tc3-body) .intel-center-hero.card,
body.tc-shell-v2:not(.tc3-body) .rx-hero.card{
    margin:0!important;
    padding:34px 2px 28px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.tc-shell-v2:not(.tc3-body) .operations-hero h2,
body.tc-shell-v2:not(.tc3-body) .intel-center-hero h2,
body.tc-shell-v2:not(.tc3-body) .rx-hero h2{
    margin-top:7px!important;
    color:#f1f6fd!important;
    font-size:32px!important;
    font-weight:650!important;
    line-height:1.08!important;
    letter-spacing:-.045em!important;
}
body.tc-shell-v2:not(.tc3-body) .operations-hero p,
body.tc-shell-v2:not(.tc3-body) .intel-center-hero p,
body.tc-shell-v2:not(.tc3-body) .rx-hero p{
    color:#7c8fa8!important;
    font-size:11px!important;
    line-height:1.55!important;
}
body.tc-shell-v2:not(.tc3-body) .eyebrow{
    color:#61748d!important;
    font-size:8px!important;
    font-weight:800!important;
    letter-spacing:.09em!important;
    text-transform:uppercase!important;
}

/* Standard legacy cards now share the same surface. */
body.tc-shell-v2:not(.tc3-body) .card{
    border:1px solid var(--tc-border)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;
    box-shadow:none!important;
}
body.tc-shell-v2:not(.tc3-body) .card:hover{
    border-color:rgba(255,255,255,.075)!important;
}
body.tc-shell-v2:not(.tc3-body) .section-head{
    gap:16px!important;
}
body.tc-shell-v2:not(.tc3-body) .section-head h2{
    color:#e8f0fa!important;
    font-size:17px!important;
    font-weight:650!important;
    letter-spacing:-.025em!important;
}
body.tc-shell-v2:not(.tc3-body) .section-head p{
    color:#687b92!important;
    font-size:9px!important;
    line-height:1.55!important;
}

/* Generic KPI migration. */
body.tc-shell-v2:not(.tc3-body) .ops-kpis,
body.tc-shell-v2:not(.tc3-body) .risk-kpis,
body.tc-shell-v2:not(.tc3-body) .form-helper-grid,
body.tc-shell-v2:not(.tc3-body) .finance-kpis{
    gap:0!important;
    border-top:1px solid rgba(255,255,255,.06)!important;
    border-bottom:1px solid rgba(255,255,255,.06)!important;
}
body.tc-shell-v2:not(.tc3-body) .ops-kpis>.mini-card,
body.tc-shell-v2:not(.tc3-body) .risk-kpis>.mini-card,
body.tc-shell-v2:not(.tc3-body) .form-helper-grid>.mini-card,
body.tc-shell-v2:not(.tc3-body) .finance-kpis>.mini-card{
    min-height:126px!important;
    padding:20px 22px!important;
    border:0!important;
    border-right:1px solid rgba(255,255,255,.055)!important;
    border-radius:0!important;
    background:transparent!important;
}
body.tc-shell-v2:not(.tc3-body) .mini-card>span{
    color:#61748d!important;
    font-size:8px!important;
    font-weight:800!important;
    letter-spacing:.09em!important;
    text-transform:uppercase!important;
}
body.tc-shell-v2:not(.tc3-body) .mini-card>strong{
    margin-top:11px!important;
    color:#edf4ff!important;
    font-size:24px!important;
    font-weight:680!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
}
body.tc-shell-v2:not(.tc3-body) .mini-card>em{
    margin-top:7px!important;
    color:#6d8098!important;
    font-size:9px!important;
}

/* Global controls */
body.tc-shell-v2:not(.tc3-body) .form-grid label,
body.tc-shell-v2:not(.tc3-body) .report-filter label{
    color:#8ea0b6!important;
    font-size:10px!important;
    font-weight:650!important;
}
body.tc-shell-v2:not(.tc3-body) .form-grid input,
body.tc-shell-v2:not(.tc3-body) .form-grid select,
body.tc-shell-v2:not(.tc3-body) .form-grid textarea,
body.tc-shell-v2:not(.tc3-body) .report-filter select,
body.tc-shell-v2:not(.tc3-body) .finance-form-card input,
body.tc-shell-v2:not(.tc3-body) .finance-form-card select,
body.tc-shell-v2:not(.tc3-body) .finance-form-card textarea{
    min-height:42px!important;
    border:1px solid rgba(255,255,255,.055)!important;
    border-radius:11px!important;
    background:#080f19!important;
    color:#dce6f2!important;
    font-family:inherit!important;
    font-size:10px!important;
}
body.tc-shell-v2:not(.tc3-body) .form-grid textarea,
body.tc-shell-v2:not(.tc3-body) .finance-form-card textarea{
    min-height:110px!important;
    padding:12px!important;
}
body.tc-shell-v2:not(.tc3-body) input:hover,
body.tc-shell-v2:not(.tc3-body) select:hover,
body.tc-shell-v2:not(.tc3-body) textarea:hover{
    border-color:rgba(255,255,255,.085)!important;
    background:#09111c!important;
}
body.tc-shell-v2:not(.tc3-body) input:focus,
body.tc-shell-v2:not(.tc3-body) select:focus,
body.tc-shell-v2:not(.tc3-body) textarea:focus{
    outline:none!important;
    border-color:rgba(47,125,255,.42)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.06)!important;
}

/* Buttons */
body.tc-shell-v2 .btn{
    min-height:40px!important;
    padding:0 13px!important;
    border-radius:10px!important;
    gap:6px!important;
    font-size:9px!important;
    font-weight:750!important;
    transition:.16s var(--tc-ease)!important;
}
body.tc-shell-v2 .btn.primary{
    background:var(--tc-primary)!important;
    border-color:var(--tc-primary)!important;
    box-shadow:0 10px 24px rgba(47,125,255,.13)!important;
}
body.tc-shell-v2 .btn.ghost{
    border-color:rgba(255,255,255,.055)!important;
    background:rgba(255,255,255,.008)!important;
    color:#7f92a9!important;
}
body.tc-shell-v2 .btn:hover{transform:translateY(-1px)}
body.tc-shell-v2 .btn svg{width:13px!important;height:13px!important}

/* Generic tables */
body.tc-shell-v2:not(.tc3-body) .table-wrap{
    border:1px solid rgba(255,255,255,.045)!important;
    border-radius:12px!important;
    overflow:auto!important;
    background:#080f19!important;
}
body.tc-shell-v2:not(.tc3-body) table{
    border-collapse:collapse!important;
}
body.tc-shell-v2:not(.tc3-body) table th{
    height:40px!important;
    padding:0 11px!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
    background:#090f19!important;
    color:#657991!important;
    font-size:8px!important;
    font-weight:800!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
}
body.tc-shell-v2:not(.tc3-body) table td{
    min-height:54px!important;
    padding:10px 11px!important;
    border-bottom:1px solid rgba(255,255,255,.035)!important;
    color:#9eafc2!important;
    font-size:9px!important;
}
body.tc-shell-v2:not(.tc3-body) table tbody tr:hover{
    background:rgba(47,125,255,.025)!important;
}

/* --------------------------------------------------------------------------
   STATISTICS
   -------------------------------------------------------------------------- */
.tc-route-estatisticas .stats2-page{gap:14px!important}
.tc-route-estatisticas .stats2-tabs{
    min-height:48px!important;
    padding:5px!important;
    border:1px solid var(--tc-border)!important;
    border-radius:12px!important;
    background:#080f19!important;
}
.tc-route-estatisticas .stats2-tabs button{
    min-height:36px!important;
    border-radius:8px!important;
    color:#71849b!important;
    font-size:9px!important;
}
.tc-route-estatisticas .stats2-tabs button.active{
    background:rgba(47,125,255,.075)!important;
    color:#a9c8f8!important;
}
.tc-route-estatisticas .stats2-panel{
    border-color:var(--tc-border)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))!important;
}
.tc-route-estatisticas .stats2-chart{
    min-height:270px!important;
}

/* --------------------------------------------------------------------------
   REPORTS
   -------------------------------------------------------------------------- */
.tc-route-relatorios .reports-product-grid,
.tc-route-relatorios .reports-grid{gap:12px!important}
.tc-route-relatorios .report-product-card{
    min-height:190px!important;
    padding:19px!important;
}
.tc-route-relatorios .report-product-card h2{color:#e8f0fa!important;font-size:17px!important}
.tc-route-relatorios .report-product-card p{color:#71849b!important;font-size:9px!important;line-height:1.55!important}
.tc-route-relatorios .premium-report-filter{
    min-width:180px!important;
}

/* --------------------------------------------------------------------------
   SETTINGS
   -------------------------------------------------------------------------- */
.tc-route-configuracoes .content>section.card:first-of-type{
    padding:22px!important;
}
.tc-route-configuracoes .form-grid{
    gap:14px!important;
}
.tc-route-configuracoes .form-grid label{
    display:grid!important;
    gap:7px!important;
}
.tc-route-configuracoes .form-actions{
    padding-top:8px!important;
}
.tc-route-configuracoes .alert{
    border-radius:10px!important;
    font-size:9px!important;
}

/* --------------------------------------------------------------------------
   ASSETS / USERS / FINANCE / MONTHLY CLOSE
   -------------------------------------------------------------------------- */
.tc-route-ativos .dashboard-section-title,
.tc-route-usuarios .operations-hero,
.tc-route-financeiro .finance-hero,
.tc-route-fechamento-mensal .operations-hero{
    margin-bottom:0!important;
}
.tc-route-ativos .dashboard-section-title h2{color:#e8f0fa!important;font-size:18px!important}
.tc-route-usuarios .user-admin-grid,
.tc-route-financeiro .finance-layout{
    gap:12px!important;
}
.tc-route-usuarios .user-admin-grid>.card,
.tc-route-financeiro .finance-layout>.card{
    padding:18px!important;
}
.tc-route-financeiro .finance-kpis{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
}

/* --------------------------------------------------------------------------
   INTELLIGENCE / RX / INSIGHTS — visual alignment only
   -------------------------------------------------------------------------- */
.tc-route-inteligencia .intel-center,
.tc-route-raio-x .rx-page{
    display:grid!important;
    gap:14px!important;
}
.tc-route-inteligencia .intel-overview-grid,
.tc-route-raio-x .rx-grid-2,
.tc-route-raio-x .rx-kpis{
    gap:12px!important;
}
.tc-route-inteligencia .intel-score-orb,
.tc-route-raio-x .rx-score{
    border-color:var(--tc-border)!important;
    background:#080f19!important;
    box-shadow:none!important;
}
.tc-route-insights .intel-v1-summary,
.tc-route-insights .insight-score-card{
    margin-top:14px!important;
}

/* --------------------------------------------------------------------------
   LOGIN V2
   -------------------------------------------------------------------------- */
body.tc-login-v2{
    background:#070b14!important;
    color:#eef4fb!important;
}
body.tc-login-v2 .login-ultra-shell{
    min-height:100vh!important;
    background:#070b14!important;
}
body.tc-login-v2 .login-ultra-left{
    background:
        radial-gradient(circle at 22% 35%,rgba(47,125,255,.08),transparent 34%),
        linear-gradient(180deg,#080e18,#070b14)!important;
    border-right:1px solid rgba(255,255,255,.05)!important;
}
body.tc-login-v2 .login-ultra-mark{
    background:rgba(47,125,255,.08)!important;
    border:1px solid rgba(47,125,255,.12)!important;
    box-shadow:none!important;
}
body.tc-login-v2 .login-ultra-copy h1{
    color:#f1f6fd!important;
    letter-spacing:-.045em!important;
}
body.tc-login-v2 .login-ultra-copy p,
body.tc-login-v2 .login-ultra-features span{
    color:#74879e!important;
}
body.tc-login-v2 .login-ultra-card{
    border:1px solid rgba(255,255,255,.06)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.008))!important;
    box-shadow:0 26px 70px rgba(0,0,0,.24)!important;
}
body.tc-login-v2 .login-ultra-card input{
    min-height:44px!important;
    border:1px solid rgba(255,255,255,.06)!important;
    border-radius:11px!important;
    background:#080f19!important;
    color:#dce6f2!important;
}
body.tc-login-v2 .login-ultra-card input:focus{
    border-color:rgba(47,125,255,.42)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.06)!important;
}
body.tc-login-v2 .login-ultra-card button{
    min-height:44px!important;
    border-radius:11px!important;
    background:var(--tc-primary)!important;
    box-shadow:0 12px 28px rgba(47,125,255,.14)!important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE CONSISTENCY
   -------------------------------------------------------------------------- */
@media(max-width:1200px){
    .tc-route-financeiro .finance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:820px){
    body.tc-shell-v2:not(.tc3-body) .ops-kpis,
    body.tc-shell-v2:not(.tc3-body) .risk-kpis,
    body.tc-shell-v2:not(.tc3-body) .form-helper-grid,
    body.tc-shell-v2:not(.tc3-body) .finance-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:560px){
    body.tc-shell-v2:not(.tc3-body) .ops-kpis,
    body.tc-shell-v2:not(.tc3-body) .risk-kpis,
    body.tc-shell-v2:not(.tc3-body) .form-helper-grid,
    body.tc-shell-v2:not(.tc3-body) .finance-kpis{
        grid-template-columns:1fr!important;
    }
}


/* ==========================================================================
   SPRINT 04.1 — STATISTICS STRUCTURAL REBUILD
   ========================================================================== */
.tc-stats3{display:grid;gap:14px}
.tc-stats3-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:34px 2px 28px}
.tc-stats3-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.tc-stats3-hero p{margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.55}
.tc-stats3-score{min-width:165px;padding:13px 14px;border:1px solid var(--tc-border);border-radius:12px;background:#080f19}
.tc-stats3-score span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.tc-stats3-score strong{display:block;margin-top:7px;color:#edf4ff;font-size:24px;letter-spacing:-.04em}
.tc-stats3-score strong small{color:#657991;font-size:10px}
.tc-stats3-score em{display:block;margin-top:5px;color:#73869d;font-size:8px;font-style:normal}

.tc-stats3-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.tc-stats3-kpis article{min-height:126px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.tc-stats3-kpis article:last-child{border-right:0}
.tc-stats3-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.tc-stats3-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;letter-spacing:-.04em}
.tc-stats3-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.tc-stats3-tabs{display:flex;gap:5px;padding:5px;border:1px solid var(--tc-border);border-radius:12px;background:#080f19;overflow-x:auto}
.tc-stats3-tabs button{min-height:38px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:0;border-radius:8px;background:transparent;color:#71849b;font-family:inherit;font-size:9px;font-weight:700;cursor:pointer}
.tc-stats3-tabs button svg{width:12px;height:12px}
.tc-stats3-tabs button:hover{background:rgba(255,255,255,.018);color:#9aacc0}
.tc-stats3-tabs button.active{background:rgba(47,125,255,.075);color:#a9c8f8;box-shadow:inset 0 0 0 1px rgba(47,125,255,.08)}

.tc-stats3-panel{display:none!important}
.tc-stats3-panel.active{display:block!important}
.tc-stats3-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tc-stats3-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))}
.tc-stats3-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.tc-stats3-card>header h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.tc-stats3-card>header p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.tc-stats3-card>header>svg{width:16px;height:16px;color:#60748d}
.tc-stats3-diagnosis>p{margin:0;color:#91a3b8;font-size:10px;line-height:1.7}
.tc-stats3-best-grid,.tc-stats3-coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:14px}
.tc-stats3-best-grid>div,.tc-stats3-coverage>div{min-height:70px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.tc-stats3-best-grid span,.tc-stats3-coverage span{display:block;color:#60738a;font-size:8px}
.tc-stats3-best-grid strong,.tc-stats3-coverage strong{display:block;margin-top:7px;color:#d9e3ef;font-size:12px}
.tc-stats3-best-grid em{display:block;margin-top:4px;color:#73869d;font-size:8px;font-style:normal}

.tc-stats3-evolution{margin-top:12px}
.tc-stats3-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.tc-stats3-month-grid>div{min-height:83px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.tc-stats3-month-grid span{display:block;color:#60738a;font-size:8px}
.tc-stats3-month-grid strong{display:block;margin-top:9px;color:#dce6f2;font-size:12px}
.tc-stats3-month-grid em{display:block;margin-top:5px;color:#70839a;font-size:8px;font-style:normal}
.tc-stats3-empty{grid-column:1/-1;padding:22px;color:#6f8299;font-size:10px;text-align:center}

.tc-stats3-card .stats2-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.tc-stats3-card .stats2-table{width:100%;border-collapse:collapse}
.tc-stats3-card .stats2-table th{height:39px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.05);background:#090f19;color:#62758d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.tc-stats3-card .stats2-table td{padding:10px;border-bottom:1px solid rgba(255,255,255,.035);color:#9eafc2;font-size:9px}
.tc-stats3-card .stats2-table tbody tr:last-child td{border-bottom:0}
.tc-stats3-card .stats2-table tbody tr:hover{background:rgba(47,125,255,.025)}
.tc-stats3-card .stats2-sample{min-width:24px;height:24px;padding:0 6px;display:inline-grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.03);font-size:8px}
.tc-stats3-chart{min-height:300px}
.tc-stats3-card .stats2-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#6f8299;text-align:center}
.tc-stats3-card .stats2-empty svg{width:18px;height:18px}
.tc-stats3-card .stats2-empty strong{color:#9aacc0;font-size:10px}
.tc-stats3-card .stats2-empty span{font-size:9px}

@media(max-width:1050px){
 .tc-stats3-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tc-stats3-grid{grid-template-columns:1fr}
 .tc-stats3-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
 .tc-stats3-hero{align-items:flex-start;flex-direction:column}
 .tc-stats3-score{width:100%}
 .tc-stats3-kpis{grid-template-columns:1fr}
 .tc-stats3-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.tc-reports5-hero{display:flex;align-items:flex-end;justify-content:space-between;padding:32px 0 24px}.tc-reports5-hero h1{font-size:32px;margin:6px 0;color:#eef4ff}.tc-reports5-hero p{color:#7f93ab;max-width:700px}

/* ==========================================================================
   RC3.07 — INTELLIGENCE WORKSPACE
   Structural visual refinement based on Dashboard / Operations / Calendar /
   Statistics. No business-rule changes.
   ========================================================================== */
.rc3-intel{display:grid;gap:14px}
.rc3-intel-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px}
.rc3-intel-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.rc3-intel-hero p{max-width:720px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.rc3-intel-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.rc3-intel-score{min-width:178px;padding:14px;border:1px solid var(--tc-border);border-radius:14px;background:#080f19}
.rc3-intel-score>span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-intel-score>div:nth-of-type(1){display:flex;align-items:flex-end;gap:4px;margin-top:7px}
.rc3-intel-score strong{color:#eef5fd;font-size:28px;font-weight:680;letter-spacing:-.045em}
.rc3-intel-score small{padding-bottom:4px;color:#63768d;font-size:10px}
.rc3-intel-score em{display:block;margin-top:4px;color:#7f92a8;font-size:8px;font-style:normal}
.rc3-intel-score-track{height:5px;margin-top:11px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-intel-score-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f7dff,#52a5ff)}

.rc3-intel-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-intel-kpis article{min-height:124px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-intel-kpis article:last-child{border-right:0}
.rc3-intel-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.rc3-intel-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;letter-spacing:-.04em}
.rc3-intel-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.rc3-intel-overview,.rc3-intel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc3-intel-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));transition:.16s var(--tc-ease)}
.rc3-intel-card:hover{border-color:rgba(255,255,255,.08);transform:translateY(-1px)}
.rc3-intel-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rc3-intel-card h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.rc3-intel-card header p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.rc3-intel-card>p{margin:0;color:#91a3b8;font-size:10px;line-height:1.7}
.rc3-intel-card-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.rc3-intel-card-icon.warning{border-color:rgba(255,155,47,.10);background:rgba(255,155,47,.05);color:#eab067}
.rc3-intel-card-icon svg{width:14px;height:14px}

.rc3-intel-coach{position:relative;overflow:hidden}
.rc3-intel-coach::after{content:'';position:absolute;inset:auto -40px -60px auto;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(47,125,255,.09),transparent 68%);pointer-events:none}
.rc3-intel-today{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rc3-intel-today>div{min-height:72px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-intel-today span{display:block;color:#61748d;font-size:8px}
.rc3-intel-today strong{display:block;margin-top:8px;color:#dce6f2;font-size:14px}

.rc3-intel-pillars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.rc3-intel-pillars article{min-height:116px;padding:13px;border:1px solid var(--tc-border);border-radius:12px;background:#080f19}
.rc3-intel-pillars header{display:flex;align-items:center;gap:7px;color:#74879e;font-size:8px}
.rc3-intel-pillars header svg{width:13px;height:13px}
.rc3-intel-pillars strong{display:block;margin-top:14px;color:#e5edf7;font-size:20px;letter-spacing:-.04em}
.rc3-intel-pillars strong small{font-size:8px;color:#63768d}
.rc3-intel-pillars article>div{height:4px;margin-top:11px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-intel-pillars article>div i{display:block;height:100%;border-radius:inherit;background:#2f7dff}

.rc3-intel-list,.rc3-intel-alerts,.rc3-intel-changes,.rc3-intel-recommendations,.rc3-intel-tasks,.rc3-intel-timeline{display:grid;gap:7px}
.rc3-intel-list-item{min-height:58px;padding:10px;display:grid;grid-template-columns:26px 1fr;gap:9px;align-items:flex-start;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-intel-list-item>svg{width:14px;height:14px;margin-top:2px;color:#6fa2ed}
.rc3-intel-list-item strong{display:block;color:#cbd7e4;font-size:9px}
.rc3-intel-list-item p{margin:4px 0 0;color:#6f8299;font-size:8px;line-height:1.5}

.rc3-intel-alerts>div{min-height:42px;padding:0 10px;display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:center;border:1px solid rgba(255,154,47,.07);border-radius:9px;background:rgba(255,154,47,.018)}
.rc3-intel-alerts svg{width:13px;height:13px;color:#d99a54}
.rc3-intel-alerts span{color:#8fa0b4;font-size:9px}

.rc3-intel-radar{min-height:315px}
.rc3-intel-changes>div{min-height:44px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.035)}
.rc3-intel-changes>div:last-child{border-bottom:0}
.rc3-intel-changes span{display:flex;align-items:center;gap:7px;color:#8295aa;font-size:9px}
.rc3-intel-changes span svg{width:12px;height:12px}
.rc3-intel-changes strong{font-size:10px}
.rc3-intel-changes .up strong,.rc3-intel-changes .up svg{color:#58d28d}
.rc3-intel-changes .down strong,.rc3-intel-changes .down svg{color:#ef7287}

.rc3-intel-recommendations>div{min-height:48px;padding:9px 10px;display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:flex-start;border:1px solid rgba(255,255,255,.04);border-radius:9px;background:#080f19}
.rc3-intel-recommendations svg{width:12px;height:12px;margin-top:2px;color:#6fa2ed}
.rc3-intel-recommendations p{margin:0;color:#8799ae;font-size:9px;line-height:1.55}

.rc3-intel-week-score{color:#dce6f2;font-size:17px}
.rc3-intel-week-track{height:5px;margin:2px 0 13px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-intel-week-track i{display:block;height:100%;background:#2f7dff}
.rc3-intel-tasks>div{min-height:38px;padding:0 9px;display:grid;grid-template-columns:18px 1fr;gap:6px;align-items:center;border-bottom:1px solid rgba(255,255,255,.035)}
.rc3-intel-tasks>div:last-child{border-bottom:0}
.rc3-intel-tasks svg{width:13px;height:13px;color:#5f728a}
.rc3-intel-tasks span{color:#8396ac;font-size:9px}
.rc3-intel-tasks .done svg{color:#58d28d}
.rc3-intel-tasks .done span{color:#a8b6c5}

.rc3-intel-timeline>div{position:relative;min-height:46px;padding-left:18px}
.rc3-intel-timeline>div>span{position:absolute;left:0;top:5px;width:8px;height:8px;border-radius:50%;background:#60738a}
.rc3-intel-timeline>div::after{content:'';position:absolute;left:3px;top:16px;bottom:-6px;width:1px;background:rgba(255,255,255,.045)}
.rc3-intel-timeline>div:last-child::after{display:none}
.rc3-intel-timeline strong{display:block;color:#c9d5e2;font-size:9px}
.rc3-intel-timeline p{margin:4px 0 0;color:#687b92;font-size:8px}
.rc3-intel-timeline .positive>span{background:#58d28d}.rc3-intel-timeline .negative>span{background:#ef7287}

.rc3-intel-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rc3-intel-achievements>div{min-height:62px;padding:10px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-intel-achievements svg{width:14px;height:14px;color:#7ca8eb}
.rc3-intel-achievements strong{color:#aab9ca;font-size:9px}

@media(max-width:1100px){
  .rc3-intel-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .rc3-intel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rc3-intel-overview,.rc3-intel-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .rc3-intel-hero{align-items:flex-start;flex-direction:column}
  .rc3-intel-score{width:100%}
  .rc3-intel-kpis{grid-template-columns:1fr}
  .rc3-intel-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rc3-intel-today{grid-template-columns:1fr}
}



/* ==========================================================================
   RC3.09.1 — INSIGHTS WORKSPACE REFINEMENT
   Replaces legacy page composition instead of dressing old CSS.
   ========================================================================== */
.rc3-insights{display:grid;gap:14px}
.rc3-insights-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px}
.rc3-insights-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.rc3-insights-hero p{max-width:720px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.rc3-insights-hero-meta{min-width:180px;padding:14px;border:1px solid var(--tc-border);border-radius:14px;background:#080f19}
.rc3-insights-hero-meta span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-insights-hero-meta strong{display:block;margin-top:8px;color:#eef5fd;font-size:24px;letter-spacing:-.04em}
.rc3-insights-hero-meta small{display:block;margin-top:5px;color:#70839a;font-size:8px}

.rc3-insights-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-insights-kpis article{min-height:124px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-insights-kpis article:last-child{border-right:0}
.rc3-insights-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.rc3-insights-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;letter-spacing:-.04em}
.rc3-insights-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.rc3-insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc3-insights-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));transition:.16s var(--tc-ease)}
.rc3-insights-card:hover{border-color:rgba(255,255,255,.08);transform:translateY(-1px)}
.rc3-insights-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rc3-insights-card h2,.rc3-insights-section-head h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.rc3-insights-card header p,.rc3-insights-section-head p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.rc3-insights-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.rc3-insights-icon svg{width:14px;height:14px}

.rc3-insights-diagnosis>p{margin:0;color:#91a3b8;font-size:10px;line-height:1.7}
.rc3-insights-diagnosis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}
.rc3-insights-diagnosis-grid>div{padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-insights-diagnosis-grid>div>span{display:block;margin-bottom:8px;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.rc3-insights-diagnosis-grid p{display:grid;grid-template-columns:14px 1fr;gap:6px;align-items:flex-start;margin:6px 0 0;color:#8295aa;font-size:8px;line-height:1.45}
.rc3-insights-diagnosis-grid p svg{width:12px;height:12px;color:#6fa2ed}

.rc3-insights-score-main{display:grid;grid-template-columns:100px 1fr;gap:16px;align-items:end}
.rc3-insights-score-main>div{display:flex;align-items:flex-end;gap:4px}
.rc3-insights-score-main strong{color:#edf4ff;font-size:42px;font-weight:680;line-height:1;letter-spacing:-.055em}
.rc3-insights-score-main span{padding-bottom:4px;color:#61748d;font-size:10px}
.rc3-insights-score-main p{margin:0;color:#71849b;font-size:9px;line-height:1.55}
.rc3-insights-score-track{height:5px;margin-top:14px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-insights-score-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f7dff,#52a5ff)}
.rc3-insights-score-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:13px}
.rc3-insights-score-details>div{min-height:50px;padding:9px;border:1px solid rgba(255,255,255,.04);border-radius:9px;background:#080f19}
.rc3-insights-score-details span{display:block;color:#657991;font-size:7px}
.rc3-insights-score-details strong{display:block;margin-top:5px;color:#aebed0;font-size:9px}

.rc3-insights-section{display:grid;gap:10px}
.rc3-insights-section-head{padding:4px 2px 0}
.rc3-insights-records{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-insights-records article{min-height:116px;padding:18px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-insights-records article:nth-child(4n){border-right:0}
.rc3-insights-records span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-insights-records strong{display:block;margin-top:10px;color:#e6eef8;font-size:17px;letter-spacing:-.03em}
.rc3-insights-records small{display:block;margin-top:6px;color:#6f8299;font-size:8px}

.rc3-insights-feed{display:grid;gap:7px}
.rc3-insights-feed>div{padding:11px;border:1px solid rgba(255,255,255,.04);border-left:2px solid #63758c;border-radius:0 10px 10px 0;background:#080f19}
.rc3-insights-feed>div.success,.rc3-insights-feed>div.positive{border-left-color:#58d28d}
.rc3-insights-feed>div.warning,.rc3-insights-feed>div.attention{border-left-color:#e1a85f}
.rc3-insights-feed>div.danger,.rc3-insights-feed>div.negative{border-left-color:#ef7287}
.rc3-insights-feed strong{display:block;color:#cbd7e4;font-size:9px}
.rc3-insights-feed p{margin:5px 0 0;color:#75889f;font-size:8px;line-height:1.55}

.rc3-insights-smartlist{display:grid}
.rc3-insights-smartlist>div{min-height:49px;padding:0 4px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(255,255,255,.035)}
.rc3-insights-smartlist>div:last-child{border-bottom:0}
.rc3-insights-smartlist span{color:#71849b;font-size:9px}
.rc3-insights-smartlist strong{color:#b1c0d1;font-size:9px}

.rc3-insights-table-card{padding-bottom:14px}
.rc3-insights-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-insights-table-wrap table{width:100%;border-collapse:collapse}
.rc3-insights-table-wrap th{height:39px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.05);background:#090f19;color:#62758d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.rc3-insights-table-wrap td{padding:10px;border-bottom:1px solid rgba(255,255,255,.035);color:#9eafc2;font-size:9px}
.rc3-insights-table-wrap tbody tr:last-child td{border-bottom:0}
.rc3-insights-table-wrap tbody tr:hover{background:rgba(47,125,255,.025)}
.rc3-insights-empty{padding:28px;color:#6f8299;text-align:center}

@media(max-width:1050px){
    .rc3-insights-records{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rc3-insights-records article:nth-child(2n){border-right:0}
    .rc3-insights-diagnosis-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
    .rc3-insights-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rc3-insights-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
    .rc3-insights-hero{align-items:flex-start;flex-direction:column}
    .rc3-insights-hero-meta{width:100%}
    .rc3-insights-kpis{grid-template-columns:1fr}
    .rc3-insights-records{grid-template-columns:1fr}
    .rc3-insights-score-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================================
   RC3.08.1 — TRADER X-RAY WORKSPACE REFINEMENT
   New page-specific structure, reducing dependency on legacy Trade Control CSS.
   ========================================================================== */
.rc3-xray{display:grid;gap:14px}
.rc3-xray-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px}
.rc3-xray-hero h1{max-width:760px;margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.rc3-xray-hero p{max-width:740px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.rc3-xray-score{min-width:178px;padding:14px;border:1px solid var(--tc-border);border-radius:14px;background:#080f19}
.rc3-xray-score>span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-xray-score>div:first-of-type{display:flex;align-items:flex-end;gap:4px;margin-top:7px}
.rc3-xray-score strong{color:#eef5fd;font-size:28px;font-weight:680;letter-spacing:-.045em}
.rc3-xray-score small{padding-bottom:4px;color:#63768d;font-size:10px}
.rc3-xray-score em{display:block;margin-top:4px;color:#7f92a8;font-size:8px;font-style:normal}
.rc3-xray-score-track{height:5px;margin-top:11px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-xray-score-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f7dff,#52a5ff)}

.rc3-xray-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-xray-kpis article{position:relative;min-height:124px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-xray-kpis article:last-child{border-right:0}
.rc3-xray-kpis article>span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.rc3-xray-kpis article>strong{display:block;max-width:75%;margin-top:11px;color:#edf4ff;font-size:20px;font-weight:680;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc3-xray-kpis article>small{display:block;margin-top:7px;color:#6d8098;font-size:9px}
.rc3-xray-kpis article>svg{position:absolute;right:20px;top:20px;width:15px;height:15px;color:#5f7692}

.rc3-xray-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc3-xray-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));transition:.16s var(--tc-ease)}
.rc3-xray-card:hover{border-color:rgba(255,255,255,.08);transform:translateY(-1px)}
.rc3-xray-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rc3-xray-card h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.rc3-xray-card header p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.rc3-xray-card-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.rc3-xray-card-icon.positive{border-color:rgba(88,210,141,.10);background:rgba(88,210,141,.05);color:#58d28d}
.rc3-xray-card-icon.warning{border-color:rgba(225,168,95,.10);background:rgba(225,168,95,.05);color:#e1a85f}
.rc3-xray-card-icon svg{width:14px;height:14px}

.rc3-xray-diagnosis-copy{padding:16px;border:1px solid rgba(47,125,255,.07);border-radius:12px;background:radial-gradient(circle at 90% 20%,rgba(47,125,255,.07),transparent 36%),#080f19}
.rc3-xray-diagnosis-copy strong{display:block;color:#dce6f2;font-size:16px;font-weight:650}
.rc3-xray-diagnosis-copy p{margin:8px 0 0;color:#8fa1b6;font-size:10px;line-height:1.7}

.rc3-xray-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rc3-xray-context>div{min-height:72px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-xray-context span{display:block;color:#61748d;font-size:8px}
.rc3-xray-context strong{display:block;margin-top:7px;color:#d8e3ef;font-size:12px}
.rc3-xray-context small{display:block;margin-top:4px;color:#73869d;font-size:8px}

.rc3-xray-list{display:grid;gap:7px}
.rc3-xray-list>div{min-height:44px;padding:0 10px;display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:center;border:1px solid rgba(255,255,255,.04);border-radius:9px;background:#080f19}
.rc3-xray-list svg{width:13px;height:13px;color:#6f8299}
.rc3-xray-list span{color:#899caf;font-size:9px;line-height:1.45}
.rc3-xray-list.positive svg{color:#58d28d}
.rc3-xray-list.warning svg{color:#e1a85f}

.rc3-xray-bars{display:grid;gap:11px}
.rc3-xray-bars>div>span{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8295aa;font-size:9px}
.rc3-xray-bars strong{color:#b6c4d4;font-size:9px}
.rc3-xray-bars>div>i{display:block;height:5px;margin-top:6px;overflow:hidden;border-radius:999px;background:#151f2b}
.rc3-xray-bars>div>i em{display:block;height:100%;border-radius:inherit;background:#2f7dff}

.rc3-xray-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rc3-xray-months>div{min-height:76px;padding:10px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-xray-months span{display:block;color:#60738a;font-size:8px}
.rc3-xray-months strong{display:block;margin-top:8px;color:#dce6f2;font-size:12px}
.rc3-xray-months small{display:block;margin-top:4px;color:#70839a;font-size:8px}
.rc3-xray-empty{grid-column:1/-1;min-height:120px!important;display:grid;place-items:center;color:#6f8299!important;font-size:9px}

.rc3-xray-recommendations{display:grid;gap:7px}
.rc3-xray-recommendations>div{min-height:48px;padding:9px 10px;display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:flex-start;border:1px solid rgba(255,255,255,.04);border-radius:9px;background:#080f19}
.rc3-xray-recommendations svg{width:12px;height:12px;margin-top:2px;color:#6fa2ed}
.rc3-xray-recommendations p{margin:0;color:#8799ae;font-size:9px;line-height:1.55}

.rc3-xray-footer{min-height:74px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--tc-border);border-radius:14px;background:#080f19}
.rc3-xray-footer>div{display:flex;align-items:flex-start;gap:10px}
.rc3-xray-footer>div>svg{width:15px;height:15px;margin-top:1px;color:#72a4ef}
.rc3-xray-footer strong{display:block;color:#cbd7e4;font-size:9px}
.rc3-xray-footer p{margin:4px 0 0;color:#6f8299;font-size:8px;line-height:1.5}
.rc3-xray-footer>a{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.055);border-radius:9px;background:rgba(255,255,255,.008);color:#8ca0b7;font-size:9px;font-weight:700}
.rc3-xray-footer>a:hover{border-color:rgba(47,125,255,.16);color:#abc6eb;transform:translateY(-1px)}
.rc3-xray-footer>a svg{width:12px;height:12px}

@media(max-width:1050px){
    .rc3-xray-months{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
    .rc3-xray-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rc3-xray-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
    .rc3-xray-hero{align-items:flex-start;flex-direction:column}
    .rc3-xray-score{width:100%}
    .rc3-xray-kpis{grid-template-columns:1fr}
    .rc3-xray-context,.rc3-xray-months{grid-template-columns:1fr}
    .rc3-xray-footer{align-items:flex-start;flex-direction:column}
}


/* ==========================================================================
   RC3.10 — REPORTS EXECUTIVE WORKSPACE
   Structural replacement of the legacy Reports composition.
   ========================================================================== */
.rc3-reports{display:grid;gap:14px}
.rc3-reports-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px}
.rc3-reports-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.rc3-reports-hero p{max-width:740px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.rc3-reports-filter{min-width:190px;display:grid;gap:7px}
.rc3-reports-filter label{color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-reports-filter select{height:42px;padding:0 36px 0 12px;border:1px solid var(--tc-border);border-radius:11px;background:#080f19;color:#d8e3ef;font-family:inherit;font-size:10px;cursor:pointer}
.rc3-reports-filter select:focus{outline:none;border-color:rgba(47,125,255,.42);box-shadow:0 0 0 3px rgba(47,125,255,.06)}

.rc3-reports-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-reports-kpis article{min-height:124px;padding:20px 22px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-reports-kpis article:last-child{border-right:0}
.rc3-reports-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.rc3-reports-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:24px;font-weight:680;letter-spacing:-.04em}
.rc3-reports-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:9px}

.rc3-reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc3-reports-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));transition:.16s var(--tc-ease)}
.rc3-reports-card:hover{border-color:rgba(255,255,255,.08);transform:translateY(-1px)}
.rc3-reports-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rc3-reports-card h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.rc3-reports-card header p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.rc3-reports-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.rc3-reports-icon svg{width:14px;height:14px}

.rc3-reports-product{position:relative;min-height:250px;display:flex;flex-direction:column}
.rc3-reports-product.executive{background:radial-gradient(circle at 85% 15%,rgba(47,125,255,.055),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006))}
.rc3-reports-product-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:6px}
.rc3-reports-product-meta>div{min-height:62px;padding:10px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-reports-product-meta span{display:block;color:#61748d;font-size:8px}
.rc3-reports-product-meta strong{display:block;margin-top:7px;color:#cbd8e6;font-size:10px}
.rc3-reports-product footer{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.04)}

.rc3-reports-smartlist{display:grid}
.rc3-reports-smartlist>div{min-height:48px;padding:0 4px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(255,255,255,.035)}
.rc3-reports-smartlist>div:last-child{border-bottom:0}
.rc3-reports-smartlist span{color:#71849b;font-size:9px}
.rc3-reports-smartlist strong{color:#b7c5d5;font-size:9px}

.rc3-reports-ranking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rc3-reports-ranking>div{min-height:72px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-reports-ranking span{display:block;color:#61748d;font-size:8px}
.rc3-reports-ranking strong{display:block;margin-top:7px;color:#d7e2ee;font-size:11px}
.rc3-reports-ranking small{display:block;margin-top:4px;color:#70839a;font-size:8px}

.rc3-reports-preview{padding-bottom:14px}
.rc3-reports-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-reports-table-wrap table{width:100%;border-collapse:collapse}
.rc3-reports-table-wrap th{height:40px;padding:0 11px;border-bottom:1px solid rgba(255,255,255,.05);background:#090f19;color:#62758d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;text-align:left}
.rc3-reports-table-wrap td{padding:11px;border-bottom:1px solid rgba(255,255,255,.035);color:#9eafc2;font-size:9px;vertical-align:middle}
.rc3-reports-table-wrap tbody tr:last-child td{border-bottom:0}
.rc3-reports-table-wrap tbody tr:hover{background:rgba(47,125,255,.025)}
.rc3-reports-decisions{display:flex;flex-wrap:wrap;gap:4px}
.rc3-reports-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.rc3-reports-empty svg{width:20px;height:20px;color:#60758f}
.rc3-reports-empty strong{margin-top:10px;color:#a9bacb;font-size:10px}
.rc3-reports-empty p{margin:5px 0 0;color:#6d8098;font-size:9px}

@media(max-width:900px){
    .rc3-reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rc3-reports-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
    .rc3-reports-hero{align-items:flex-start;flex-direction:column}
    .rc3-reports-filter{width:100%}
    .rc3-reports-kpis{grid-template-columns:1fr}
    .rc3-reports-product-meta,.rc3-reports-ranking{grid-template-columns:1fr}
}


/* ==========================================================================
   RC3.11 — FINANCE WORKSPACE
   Structural RC3 refinement. Existing financial logic preserved.
   ========================================================================== */
.rc3-finance{display:grid;gap:14px}
.rc3-finance-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px}
.rc3-finance-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.rc3-finance-hero p{max-width:740px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.rc3-finance-hero-actions{display:flex;flex-wrap:wrap;gap:7px}

.rc3-finance-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.rc3-finance-kpis article{min-height:124px;padding:20px 18px;border-right:1px solid rgba(255,255,255,.055)}
.rc3-finance-kpis article:last-child{border-right:0}
.rc3-finance-kpis article.balance{background:rgba(47,125,255,.018)}
.rc3-finance-kpis span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rc3-finance-kpis strong{display:block;margin-top:11px;color:#edf4ff;font-size:20px;font-weight:680;letter-spacing:-.04em}
.rc3-finance-kpis small{display:block;margin-top:7px;color:#6d8098;font-size:8px;line-height:1.4}

.rc3-finance-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px}
.rc3-finance-card{padding:18px;border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));transition:.16s var(--tc-ease)}
.rc3-finance-card:hover{border-color:rgba(255,255,255,.08)}
.rc3-finance-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rc3-finance-card h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.rc3-finance-card header p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.rc3-finance-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.rc3-finance-icon svg{width:14px;height:14px}

.rc3-finance-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rc3-finance-form label{display:grid;gap:7px}
.rc3-finance-form label.full{grid-column:1/-1}
.rc3-finance-form label>span{color:#8396ab;font-size:9px;font-weight:650}
.rc3-finance-form label>span small{color:#5f7187;font-size:7px;font-weight:500}
.rc3-finance-form input,.rc3-finance-form select{height:42px;padding:0 11px;border:1px solid rgba(255,255,255,.055);border-radius:11px;background:#080f19;color:#dce6f2;font-family:inherit;font-size:10px}
.rc3-finance-form input:hover,.rc3-finance-form select:hover{border-color:rgba(255,255,255,.085);background:#09111c}
.rc3-finance-form input:focus,.rc3-finance-form select:focus{outline:none;border-color:rgba(47,125,255,.42);box-shadow:0 0 0 3px rgba(47,125,255,.06)}
.rc3-finance-form-actions{grid-column:1/-1;display:flex;gap:7px;padding-top:4px}

.rc3-finance-composition{display:grid;gap:7px}
.rc3-finance-composition>div{position:relative;min-height:54px;padding:0 36px 0 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-finance-composition span{color:#71849b;font-size:9px}
.rc3-finance-composition strong{color:#c5d2e0;font-size:10px}
.rc3-finance-composition em{position:absolute;right:11px;color:#51647b;font-size:10px;font-style:normal}
.rc3-finance-composition .total{border-color:rgba(47,125,255,.12);background:rgba(47,125,255,.035)}
.rc3-finance-composition .total strong{color:#e7f0fb;font-size:12px}

.rc3-finance-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.rc3-finance-summary-grid>div{min-height:82px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.rc3-finance-summary-grid span{display:block;color:#61748d;font-size:8px}
.rc3-finance-summary-grid strong{display:block;margin-top:8px;color:#dce6f2;font-size:13px}
.rc3-finance-summary-grid small{display:block;margin-top:5px;color:#6f8299;font-size:8px}

.rc3-finance-history-head{align-items:center!important}
.rc3-finance-history-filter{min-width:170px}
.rc3-finance-history-filter select{width:100%;height:38px;padding:0 34px 0 10px;border:1px solid rgba(255,255,255,.055);border-radius:10px;background:#080f19;color:#aab9c9;font-family:inherit;font-size:9px}

.rc3-finance-timeline{display:grid}
.rc3-finance-movement{min-height:66px;padding:9px 4px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;border-bottom:1px solid rgba(255,255,255,.035)}
.rc3-finance-movement:last-child{border-bottom:0}
.rc3-finance-movement:hover{background:rgba(47,125,255,.018)}
.rc3-finance-movement>.icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.045);border-radius:10px;background:#080f19;color:#74879d}
.rc3-finance-movement.aporte>.icon{color:#58d28d;background:rgba(88,210,141,.035);border-color:rgba(88,210,141,.08)}
.rc3-finance-movement.saque>.icon{color:#ef7287;background:rgba(239,114,135,.035);border-color:rgba(239,114,135,.08)}
.rc3-finance-movement>.icon svg{width:14px;height:14px}
.rc3-finance-movement .main>span{display:block;color:#61748d;font-size:8px;text-transform:uppercase;letter-spacing:.06em}
.rc3-finance-movement .main>strong{display:block;margin-top:4px;color:#dce6f2;font-size:11px}
.rc3-finance-movement.aporte .main>strong{color:#58d28d}
.rc3-finance-movement.saque .main>strong{color:#ef7287}
.rc3-finance-movement .main>small{display:block;margin-top:4px;color:#6f8299;font-size:8px}
.rc3-finance-movement .actions{display:flex;gap:5px}
.rc3-finance-movement .actions form{margin:0}

.rc3-finance-empty{min-height:230px;padding:36px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.rc3-finance-empty>svg{width:22px;height:22px;color:#60758f}
.rc3-finance-empty strong{margin-top:11px;color:#a9bacb;font-size:10px}
.rc3-finance-empty p{margin:5px 0 0;color:#6d8098;font-size:9px}
.rc3-finance-empty .btn{margin-top:14px}

@media(max-width:1180px){
    .rc3-finance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
    .rc3-finance-kpis article:nth-child(3n){border-right:0}
}
@media(max-width:900px){
    .rc3-finance-grid{grid-template-columns:1fr}
    .rc3-finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
    .rc3-finance-hero{align-items:flex-start;flex-direction:column}
    .rc3-finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rc3-finance-form{grid-template-columns:1fr}
    .rc3-finance-form label.full,.rc3-finance-form-actions{grid-column:1}
    .rc3-finance-summary-grid{grid-template-columns:1fr}
    .rc3-finance-history-head{align-items:flex-start!important;flex-direction:column}
    .rc3-finance-history-filter{width:100%}
}

/* ========================================================================== 
   RC3.12.1 — MONTHLY CLOSING WORKSPACE / VISUAL INTEGRATION FIX
   Canonical RC3 layer. Business logic untouched.
   ========================================================================== */
.tc-route-fechamento-mensal .tc-close-workspace{display:grid;gap:14px;max-width:none;margin:0;padding-bottom:28px}
.tc-route-fechamento-mensal .tc-close-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 2px 28px;border:0}
.tc-route-fechamento-mensal .tc-close-hero-copy{max-width:760px}
.tc-route-fechamento-mensal .tc-close-hero h1{margin:7px 0 0;color:#f1f6fd;font-size:32px;font-weight:650;line-height:1.08;letter-spacing:-.045em}
.tc-route-fechamento-mensal .tc-close-hero p{max-width:740px;margin:9px 0 0;color:#7c8fa8;font-size:11px;line-height:1.6}
.tc-route-fechamento-mensal .tc-close-period{min-width:190px;padding:14px 16px;border:1px solid rgba(47,125,255,.10);border-radius:14px;background:rgba(47,125,255,.025);box-shadow:none}
.tc-route-fechamento-mensal .tc-close-period span,.tc-route-fechamento-mensal .tc-close-period em{display:block;color:#61748d;font-size:8px;font-style:normal;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.tc-route-fechamento-mensal .tc-close-period strong{display:block;margin:7px 0 5px;color:#e7f0fb;font-size:18px;font-weight:680;letter-spacing:-.035em}
.tc-route-fechamento-mensal .tc-close-alert{margin:0}

.tc-route-fechamento-mensal .tc-close-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.tc-route-fechamento-mensal .tc-close-kpi{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:12px;min-height:118px;padding:18px;border:0;border-right:1px solid rgba(255,255,255,.055);border-radius:0;background:transparent;box-shadow:none;transition:background .16s var(--tc-ease)}
.tc-route-fechamento-mensal .tc-close-kpi:last-child{border-right:0}
.tc-route-fechamento-mensal .tc-close-kpi:hover{transform:none;border-color:rgba(255,255,255,.055);background:rgba(47,125,255,.018)}
.tc-route-fechamento-mensal .tc-close-kpi-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-kpi-icon svg{width:14px;height:14px}
.tc-route-fechamento-mensal .tc-close-kpi span{display:block;color:#61748d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.tc-route-fechamento-mensal .tc-close-kpi strong{display:block;margin:8px 0 4px;color:#edf4ff;font-size:19px;font-weight:680;letter-spacing:-.04em;white-space:normal}
.tc-route-fechamento-mensal .tc-close-kpi em{display:block;color:#6d8098;font-size:8px;line-height:1.4;font-style:normal}

.tc-route-fechamento-mensal .tc-close-overview-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px}
.tc-route-fechamento-mensal .tc-close-panel{border:1px solid var(--tc-border);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.006));box-shadow:none;transition:.16s var(--tc-ease)}
.tc-route-fechamento-mensal .tc-close-panel:hover{border-color:rgba(255,255,255,.08)}
.tc-route-fechamento-mensal .tc-close-summary,.tc-route-fechamento-mensal .tc-close-highlights{padding:18px}
.tc-route-fechamento-mensal .tc-close-panel>header,.tc-route-fechamento-mensal .tc-close-summary>header,.tc-route-fechamento-mensal .tc-close-highlights>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.tc-route-fechamento-mensal .tc-close-panel h2{margin:5px 0 0;color:#e8f0fa;font-size:17px;font-weight:650;letter-spacing:-.025em}
.tc-route-fechamento-mensal .tc-close-summary>header>svg,.tc-route-fechamento-mensal .tc-close-highlights>header>svg{width:14px;height:14px;color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-summary-result{margin:0;padding:15px;border:1px solid rgba(47,125,255,.08);border-radius:11px;background:rgba(47,125,255,.025)}
.tc-route-fechamento-mensal .tc-close-summary-result span{color:#61748d;font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.tc-route-fechamento-mensal .tc-close-summary-result strong{display:block;margin:8px 0 5px;font-size:24px;font-weight:680;letter-spacing:-.045em}
.tc-route-fechamento-mensal .tc-close-summary-result p{margin:0;color:#6d8098;font-size:9px;line-height:1.55}
.tc-route-fechamento-mensal .tc-close-summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}
.tc-route-fechamento-mensal .tc-close-summary-stats>div{min-height:72px;padding:11px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.tc-route-fechamento-mensal .tc-close-summary-stats span{display:block;color:#61748d;font-size:8px;text-transform:none;letter-spacing:0;font-weight:500}
.tc-route-fechamento-mensal .tc-close-summary-stats strong{display:block;margin-top:7px;color:#dce6f2;font-size:12px}
.tc-route-fechamento-mensal .tc-close-highlight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:0}
.tc-route-fechamento-mensal .tc-close-highlight-grid>div{min-height:125px;padding:14px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19}
.tc-route-fechamento-mensal .tc-close-highlight-grid span{display:flex;align-items:center;gap:7px;color:#61748d;font-size:8px;text-transform:none;letter-spacing:0;font-weight:600}
.tc-route-fechamento-mensal .tc-close-highlight-grid span svg{width:13px;height:13px;color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-highlight-grid strong{display:block;margin:16px 0 5px;color:#dce6f2;font-size:18px;font-weight:680;letter-spacing:-.03em}
.tc-route-fechamento-mensal .tc-close-highlight-grid em{color:#6f8299;font-size:8px;font-style:normal;line-height:1.45}

.tc-route-fechamento-mensal .tc-close-confirm-card{padding:18px}
.tc-route-fechamento-mensal .tc-close-confirm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.04)}
.tc-route-fechamento-mensal .tc-close-confirm-head p{margin:5px 0 0;color:#687b92;font-size:9px;line-height:1.55}
.tc-route-fechamento-mensal .tc-close-confirm-badge{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:7px 9px;border:1px solid rgba(88,210,141,.10);border-radius:9px;background:rgba(88,210,141,.035);color:#71dca3;font-size:8px;font-weight:700;text-transform:none;letter-spacing:0}
.tc-route-fechamento-mensal .tc-close-confirm-badge svg{width:13px;height:13px}
.tc-route-fechamento-mensal .tc-close-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}
.tc-route-fechamento-mensal .tc-close-form label{display:grid;gap:7px;color:#8396ab;font-size:9px;font-weight:650;text-transform:none;letter-spacing:0}
.tc-route-fechamento-mensal .tc-close-form input,.tc-route-fechamento-mensal .tc-close-form textarea{width:100%;padding:0 11px;border:1px solid rgba(255,255,255,.055);border-radius:11px;background:#080f19;color:#dce6f2;font-family:inherit;font-size:10px;outline:none;box-shadow:none;transition:.16s var(--tc-ease)}
.tc-route-fechamento-mensal .tc-close-form input{height:42px}
.tc-route-fechamento-mensal .tc-close-form textarea{min-height:82px;padding-top:11px;padding-bottom:11px;resize:vertical;line-height:1.5}
.tc-route-fechamento-mensal .tc-close-form input:hover,.tc-route-fechamento-mensal .tc-close-form textarea:hover{border-color:rgba(255,255,255,.085);background:#09111c}
.tc-route-fechamento-mensal .tc-close-form input:focus,.tc-route-fechamento-mensal .tc-close-form textarea:focus{border-color:rgba(47,125,255,.42);box-shadow:0 0 0 3px rgba(47,125,255,.06);background:#09111c}
.tc-route-fechamento-mensal .tc-close-form-full{grid-column:1/-1}
.tc-route-fechamento-mensal .tc-close-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:4px}
.tc-route-fechamento-mensal .tc-close-form-footer>div{display:flex;align-items:center;gap:8px;max-width:680px;color:#61758c;font-size:8px;line-height:1.45}
.tc-route-fechamento-mensal .tc-close-form-footer>div svg{width:14px;height:14px;flex:0 0 14px;color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-form-footer .btn{min-height:38px;padding-inline:14px}
.tc-route-fechamento-mensal .tc-close-form-footer .btn svg{width:14px;height:14px}

.tc-route-fechamento-mensal .tc-close-history{overflow:hidden}
.tc-route-fechamento-mensal .tc-close-history-head{padding:18px;border-bottom:1px solid rgba(255,255,255,.04);margin-bottom:0!important;align-items:center!important}
.tc-route-fechamento-mensal .tc-close-history-head p{margin:5px 0 0;color:#687b92;font-size:9px}
.tc-route-fechamento-mensal .tc-close-history-count{min-width:72px;padding:8px 10px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#080f19;text-align:center}
.tc-route-fechamento-mensal .tc-close-history-count span{display:block;color:#61748d;font-size:7px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.tc-route-fechamento-mensal .tc-close-history-count strong{display:block;margin-top:4px;color:#dce6f2;font-size:13px}
.tc-route-fechamento-mensal .tc-close-table-wrap{overflow:auto;border:0;background:transparent}
.tc-route-fechamento-mensal .tc-close-table{width:100%;min-width:860px;border-collapse:collapse}
.tc-route-fechamento-mensal .tc-close-table th{height:40px;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.05);background:#090f19;color:#62758d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;text-align:left}
.tc-route-fechamento-mensal .tc-close-table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.035);color:#9eafc2;font-size:9px;vertical-align:middle;white-space:nowrap}
.tc-route-fechamento-mensal .tc-close-table tbody tr:last-child td{border-bottom:0}
.tc-route-fechamento-mensal .tc-close-table tbody tr:hover{background:rgba(47,125,255,.025)}
.tc-route-fechamento-mensal .tc-close-table td strong{color:#cbd8e6;font-size:9px}
.tc-route-fechamento-mensal .tc-close-month{display:flex;align-items:center;gap:7px}
.tc-route-fechamento-mensal .tc-close-month svg{width:13px;height:13px;color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-return{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:700}
.tc-route-fechamento-mensal .tc-close-return.up{color:#58d28d;background:rgba(88,210,141,.035);border:1px solid rgba(88,210,141,.08)}
.tc-route-fechamento-mensal .tc-close-return.down{color:#ef7287;background:rgba(239,114,135,.035);border:1px solid rgba(239,114,135,.08)}
.tc-route-fechamento-mensal .tc-close-empty{min-height:220px;padding:36px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.tc-route-fechamento-mensal .tc-close-empty>div{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(47,125,255,.10);border-radius:10px;background:rgba(47,125,255,.05);color:#79aaf5}
.tc-route-fechamento-mensal .tc-close-empty svg{width:14px;height:14px}
.tc-route-fechamento-mensal .tc-close-empty strong{margin-top:10px;color:#a9bacb;font-size:10px}
.tc-route-fechamento-mensal .tc-close-empty p{margin:5px 0 0;color:#6d8098;font-size:9px}
.tc-route-fechamento-mensal .tc-close-hero,.tc-route-fechamento-mensal .tc-close-kpis,.tc-route-fechamento-mensal .tc-close-overview-grid,.tc-route-fechamento-mensal .tc-close-confirm-card,.tc-route-fechamento-mensal .tc-close-history{animation:none}

@media(max-width:1180px){
  .tc-route-fechamento-mensal .tc-close-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tc-route-fechamento-mensal .tc-close-kpi:nth-child(2){border-right:0}
  .tc-route-fechamento-mensal .tc-close-kpi:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.055)}
  .tc-route-fechamento-mensal .tc-close-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tc-route-fechamento-mensal .tc-close-overview-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .tc-route-fechamento-mensal .tc-close-hero{align-items:flex-start;flex-direction:column}
  .tc-route-fechamento-mensal .tc-close-period{width:100%}
  .tc-route-fechamento-mensal .tc-close-kpis,.tc-route-fechamento-mensal .tc-close-form,.tc-route-fechamento-mensal .tc-close-summary-stats,.tc-route-fechamento-mensal .tc-close-highlight-grid{grid-template-columns:1fr}
  .tc-route-fechamento-mensal .tc-close-kpi{border-right:0;border-bottom:1px solid rgba(255,255,255,.055)}
  .tc-route-fechamento-mensal .tc-close-kpi:last-child{border-bottom:0}
  .tc-route-fechamento-mensal .tc-close-confirm-head,.tc-route-fechamento-mensal .tc-close-form-footer{align-items:flex-start;flex-direction:column}
  .tc-route-fechamento-mensal .tc-close-form-footer .btn{width:100%;justify-content:center}
  .tc-route-fechamento-mensal .tc-close-hero h1{font-size:29px}
}

/* ========================================================================== 
   RC3.15.1 — POLISH FINAL / KPI CONSISTENCY
   Unifies icon language and spacing without changing page logic or data.
   ========================================================================== */
.rc3-polish-kpis>article{
    display:flex;
    align-items:center;
    gap:12px;
}
.rc3-polish-kpis>article>div{
    min-width:0;
    flex:1 1 auto;
}
.rc3-polish-kpi-icon{
    width:34px;
    height:34px;
    display:grid!important;
    place-items:center;
    flex:0 0 34px;
    margin:0!important;
    border:1px solid rgba(47,125,255,.10);
    border-radius:10px;
    background:rgba(47,125,255,.045);
    color:#79aaf5!important;
    text-transform:none!important;
    letter-spacing:0!important;
}
.rc3-polish-kpi-icon svg{width:14px;height:14px;stroke-width:1.8}
.rc3-polish-kpis>article>div>span{display:block}
.rc3-polish-kpis>article>div>strong{display:block}
.rc3-polish-kpis>article>div>small{display:block}

@media(max-width:680px){
    .rc3-polish-kpis>article{min-height:104px}
}

/* RC3.15.1 — canonical workspace hero rhythm (Dashboard remains intentionally distinct). */
.rc3-finance-hero,
.rc3-reports-hero,
.tc-stats3-hero,
.rc3-intel-hero,
.rc3-insights-hero,
.rc3-xray-hero,
.tc-route-configuracoes .rc3-settings-hero,
.tc-route-fechamento-mensal .tc-close-hero{
    gap:28px;
    padding:34px 2px 28px;
}
.rc3-finance-hero h1,
.rc3-reports-hero h1,
.tc-stats3-hero h1,
.rc3-intel-hero h1,
.rc3-insights-hero h1,
.rc3-xray-hero h1,
.tc-route-configuracoes .rc3-settings-hero h1,
.tc-route-fechamento-mensal .tc-close-hero h1{
    margin:7px 0 0;
    color:#f1f6fd;
    font-size:32px;
    font-weight:650;
    line-height:1.08;
    letter-spacing:-.045em;
}
.rc3-finance-hero p,
.rc3-reports-hero p,
.tc-stats3-hero p,
.rc3-intel-hero p,
.rc3-insights-hero p,
.rc3-xray-hero p,
.tc-route-configuracoes .rc3-settings-hero p,
.tc-route-fechamento-mensal .tc-close-hero p{
    margin:9px 0 0;
    color:#7c8fa8;
    font-size:11px;
    line-height:1.6;
}

/* ========================================================================== 
   RC3.15.2 — POLISH FINAL / BUTTONS + INPUTS + FORMS
   Visual consistency only. Specialized operation controls and Dashboard stay
   intentionally untouched.
   ========================================================================== */
body.tc-shell-v2:not(.tc3-body){
    --rc3-control-height:42px;
    --rc3-control-radius:10px;
    --rc3-control-bg:#080f19;
    --rc3-control-bg-hover:#09111c;
    --rc3-control-border:rgba(255,255,255,.055);
    --rc3-control-border-hover:rgba(255,255,255,.09);
    --rc3-control-focus:rgba(47,125,255,.42);
}

/* Canonical field labels — restrained, readable and consistent. */
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters
) label{
    color:#8396ab;
    font-family:inherit;
    font-size:9px;
    font-weight:650;
    line-height:1.35;
    letter-spacing:0;
}

/* Canonical text controls. Hidden/radio/checkbox controls are intentionally excluded. */
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea){
    border:1px solid var(--rc3-control-border)!important;
    border-radius:var(--rc3-control-radius)!important;
    background-color:var(--rc3-control-bg)!important;
    color:#dce6f2!important;
    font-family:inherit!important;
    font-size:10px!important;
    font-weight:500;
    outline:none!important;
    box-shadow:none!important;
    transition:border-color .16s var(--tc-ease),background-color .16s var(--tc-ease),box-shadow .16s var(--tc-ease)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select){
    min-height:var(--rc3-control-height)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) textarea{
    min-height:82px;
    padding:11px!important;
    line-height:1.55;
    resize:vertical;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) :is(input,textarea)::placeholder{
    color:#52657c!important;
    opacity:1;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea):hover{
    border-color:var(--rc3-control-border-hover)!important;
    background-color:var(--rc3-control-bg-hover)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .form-grid,
    .rc3-finance-form,
    .rc3-settings-form,
    .tc-close-form,
    .tc-workspace-filters,
    .rc3-reports-filter,
    .inline-password-form
) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea):focus{
    border-color:var(--rc3-control-focus)!important;
    background-color:var(--rc3-control-bg-hover)!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.06)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(input,select,textarea):disabled{
    cursor:not-allowed;
    opacity:.56;
}
body.tc-shell-v2:not(.tc3-body) :is(input[type="date"],input[type="month"],input[type="time"]){
    color-scheme:dark;
}
body.tc-shell-v2:not(.tc3-body) :is(input[type="date"],input[type="month"],input[type="time"])::-webkit-calendar-picker-indicator{
    opacity:.48;
    transition:opacity .16s var(--tc-ease);
}
body.tc-shell-v2:not(.tc3-body) :is(input[type="date"],input[type="month"],input[type="time"]):hover::-webkit-calendar-picker-indicator{opacity:.76}

/* Canonical RC3 button language. Dashboard and specialized tc8 save controls remain unchanged. */
body.tc-shell-v2:not(.tc3-body) .btn{
    min-height:40px!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:1px solid transparent!important;
    border-radius:10px!important;
    font-family:inherit!important;
    font-size:9px!important;
    font-weight:750!important;
    line-height:1!important;
    letter-spacing:0!important;
    cursor:pointer;
    box-shadow:none;
    transition:transform .16s var(--tc-ease),border-color .16s var(--tc-ease),background-color .16s var(--tc-ease),color .16s var(--tc-ease),box-shadow .16s var(--tc-ease)!important;
}
body.tc-shell-v2:not(.tc3-body) .btn svg{
    width:13px!important;
    height:13px!important;
    flex:0 0 13px;
    stroke-width:1.9;
}
body.tc-shell-v2:not(.tc3-body) .btn.primary{
    border-color:#2f7dff!important;
    background:#2f7dff!important;
    color:#fff!important;
    box-shadow:0 8px 20px rgba(47,125,255,.12)!important;
}
body.tc-shell-v2:not(.tc3-body) .btn.primary:hover{
    border-color:#438bff!important;
    background:#438bff!important;
    box-shadow:0 10px 24px rgba(47,125,255,.16)!important;
}
body.tc-shell-v2:not(.tc3-body) .btn.ghost{
    border-color:rgba(255,255,255,.06)!important;
    background:rgba(255,255,255,.012)!important;
    color:#8fa2b8!important;
}
body.tc-shell-v2:not(.tc3-body) .btn.ghost:hover{
    border-color:rgba(255,255,255,.10)!important;
    background:rgba(255,255,255,.03)!important;
    color:#d5e0ec!important;
}
body.tc-shell-v2:not(.tc3-body) .btn.danger{
    border-color:rgba(239,114,135,.13)!important;
    background:rgba(239,114,135,.045)!important;
    color:#ef8194!important;
    box-shadow:none!important;
}
body.tc-shell-v2:not(.tc3-body) .btn.danger:hover{
    border-color:rgba(239,114,135,.22)!important;
    background:rgba(239,114,135,.075)!important;
    color:#ff9aad!important;
}
body.tc-shell-v2:not(.tc3-body) .btn:hover{transform:translateY(-1px)!important}
body.tc-shell-v2:not(.tc3-body) .btn:active{transform:translateY(0)!important}
body.tc-shell-v2:not(.tc3-body) .btn:focus-visible{
    outline:none!important;
    box-shadow:0 0 0 3px rgba(47,125,255,.09)!important;
}
body.tc-shell-v2:not(.tc3-body) .btn:disabled,
body.tc-shell-v2:not(.tc3-body) .btn[aria-disabled="true"]{
    cursor:not-allowed!important;
    opacity:.5!important;
    transform:none!important;
}

/* Form action rows share the same breathing room and button alignment. */
body.tc-shell-v2:not(.tc3-body) :is(.form-actions,.rc3-finance-form-actions,.rc3-settings-form-actions,.tc-close-form-footer){
    gap:10px;
}
body.tc-shell-v2:not(.tc3-body) :is(.form-actions,.rc3-finance-form-actions,.rc3-settings-form-actions,.tc-close-form-footer) .btn{
    flex:0 0 auto;
}

@media(max-width:680px){
    body.tc-shell-v2:not(.tc3-body) :is(.form-actions,.rc3-finance-form-actions,.rc3-settings-form-actions,.tc-close-form-footer) .btn{
        min-height:42px!important;
    }
}

/* ========================================================================== 
   RC3.15.3 — POLISH FINAL / TABLES + LISTS + CARDS
   Visual consistency only. Dashboard remains intentionally untouched.
   ========================================================================== */
body.tc-shell-v2:not(.tc3-body){
    --rc3-surface:#0a111b;
    --rc3-surface-soft:#080f19;
    --rc3-surface-hover:rgba(255,255,255,.018);
    --rc3-surface-border:rgba(255,255,255,.055);
    --rc3-surface-border-hover:rgba(255,255,255,.085);
    --rc3-row-border:rgba(255,255,255,.038);
    --rc3-card-radius:15px;
    --rc3-inner-radius:10px;
}

/* Canonical workspace cards — same edge, radius and motion language. */
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-finance-card,
    .rc3-settings-card,
    .rc3-reports-card,
    .rc3-intel-card,
    .rc3-insights-card,
    .rc3-xray-card,
    .tc-stats3-card,
    .tc-close-confirm-card,
    .tc-close-history
){
    border-color:var(--rc3-surface-border)!important;
    border-radius:var(--rc3-card-radius)!important;
    box-shadow:none!important;
    transition:border-color .16s var(--tc-ease),background-color .16s var(--tc-ease),transform .16s var(--tc-ease)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-finance-card,
    .rc3-settings-card,
    .rc3-reports-card,
    .rc3-intel-card,
    .rc3-insights-card,
    .rc3-xray-card,
    .tc-stats3-card
):hover{
    border-color:var(--rc3-surface-border-hover)!important;
}

/* Shared table shells. Keep specialized column sizing intact. */
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap,
    .rc3-insights-table-wrap,
    .rc3-reports-table-wrap,
    .stats2-table-wrap,
    .tc-close-table-wrap
){
    border-color:var(--rc3-surface-border)!important;
    border-radius:var(--rc3-inner-radius)!important;
    background:var(--rc3-surface-soft)!important;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.10) transparent;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap,
    .rc3-insights-table-wrap,
    .rc3-reports-table-wrap,
    .stats2-table-wrap,
    .tc-close-table-wrap
)::-webkit-scrollbar{height:7px;width:7px}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap,
    .rc3-insights-table-wrap,
    .rc3-reports-table-wrap,
    .stats2-table-wrap,
    .tc-close-table-wrap
)::-webkit-scrollbar-thumb{background:rgba(255,255,255,.09);border-radius:999px}

/* Canonical table rhythm. No widths, ordering or data alignment are changed. */
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap table,
    .rc3-insights-table-wrap table,
    .rc3-reports-table-wrap table,
    .stats2-table,
    .tc-close-table
) th{
    height:40px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    border-bottom-color:rgba(255,255,255,.05)!important;
    background:#090f19!important;
    color:#657990!important;
    font-size:8px!important;
    font-weight:780!important;
    line-height:1!important;
    letter-spacing:.065em!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap table,
    .rc3-insights-table-wrap table,
    .rc3-reports-table-wrap table,
    .stats2-table,
    .tc-close-table
) td{
    min-height:43px;
    border-bottom-color:var(--rc3-row-border)!important;
    color:#9dafc2;
    font-size:9px;
    vertical-align:middle;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap table,
    .rc3-insights-table-wrap table,
    .rc3-reports-table-wrap table,
    .stats2-table,
    .tc-close-table
) tbody tr{
    transition:background-color .14s var(--tc-ease)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap table,
    .rc3-insights-table-wrap table,
    .rc3-reports-table-wrap table,
    .stats2-table,
    .tc-close-table
) tbody tr:hover{
    background:rgba(47,125,255,.018)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .table-wrap table,
    .rc3-insights-table-wrap table,
    .rc3-reports-table-wrap table,
    .stats2-table,
    .tc-close-table
) tbody tr:last-child td{border-bottom:0!important}

/* Smart lists / compact record lists share one visual rhythm. */
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-insights-smartlist,
    .rc3-reports-smartlist
)>div{
    min-height:48px;
    border-bottom-color:var(--rc3-row-border)!important;
    transition:background-color .14s var(--tc-ease),padding .14s var(--tc-ease);
}
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-insights-smartlist,
    .rc3-reports-smartlist
)>div:hover{
    background:rgba(255,255,255,.012);
}

/* Boxed operational list rows. */
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-intel-list-item,
    .rc3-xray-list>div
){
    border-color:rgba(255,255,255,.045)!important;
    background:var(--rc3-surface-soft)!important;
    transition:border-color .14s var(--tc-ease),background-color .14s var(--tc-ease),transform .14s var(--tc-ease)!important;
}
body.tc-shell-v2:not(.tc3-body) :is(
    .rc3-intel-list-item,
    .rc3-xray-list>div
):hover{
    border-color:rgba(255,255,255,.075)!important;
    background:#09111c!important;
}

/* Empty states feel like part of the same product, without changing copy/content. */
body.tc-shell-v2:not(.tc3-body) :is(.stats2-empty,.tc-close-empty){
    color:#70839a;
}
body.tc-shell-v2:not(.tc3-body) :is(.stats2-empty,.tc-close-empty) strong{
    color:#aebdce;
    font-weight:650;
}

/* Badges and pills: restrained radius and weight across data surfaces. */
body.tc-shell-v2:not(.tc3-body) :is(
    .badge,
    .status-badge,
    .tc-close-return
){
    font-weight:750!important;
    letter-spacing:.02em;
}

@media(max-width:760px){
    body.tc-shell-v2:not(.tc3-body) :is(
        .table-wrap,
        .rc3-insights-table-wrap,
        .rc3-reports-table-wrap,
        .stats2-table-wrap,
        .tc-close-table-wrap
    ){
        border-radius:9px!important;
    }
}

/* ==========================================================================\n   RC3.15.4 — SIDEBAR + HEADER + NAVIGATION POLISH\n   Scope: application chrome only. No page-content components or logic.\n   ========================================================================== */

/* shell chrome rhythm */
body.tc-shell-v2 .tc-sidebar,
body.tc-shell-v2 .sidebar{
    padding:18px 12px 14px!important;
}
body.tc-shell-v2 .tc-sidebar-brand{
    min-height:44px!important;
    margin:0 6px 18px!important;
}
body.tc-shell-v2 .tc-sidebar-nav{
    padding:0 2px 10px!important;
}
body.tc-shell-v2 .tc-nav-section{
    gap:2px!important;
    padding-bottom:11px!important;
    margin-bottom:9px!important;
}
body.tc-shell-v2 .tc-nav-label{
    padding:0 9px 6px!important;
    color:#465970!important;
    font-size:7px!important;
    letter-spacing:.115em!important;
}

/* canonical nav item */
body.tc-shell-v2 .tc-sidebar nav a{
    min-height:35px!important;
    padding:8px 9px!important;
    gap:9px!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    color:#72859d!important;
    font-size:10px!important;
    font-weight:600!important;
    transform:none!important;
    transition:background var(--tc-fast) var(--tc-ease),border-color var(--tc-fast) var(--tc-ease),color var(--tc-fast) var(--tc-ease)!important;
}
body.tc-shell-v2 .tc-sidebar nav a svg{
    width:14px!important;
    height:14px!important;
    flex-basis:14px!important;
    color:#60738c!important;
    stroke-width:1.8!important;
    transition:color var(--tc-fast) var(--tc-ease),transform var(--tc-fast) var(--tc-ease)!important;
}
body.tc-shell-v2 .tc-sidebar nav a:hover{
    color:#c8d6e6!important;
    background:rgba(255,255,255,.025)!important;
    border-color:rgba(255,255,255,.025)!important;
    transform:none!important;
}
body.tc-shell-v2 .tc-sidebar nav a:hover svg{
    color:#91a5bd!important;
    transform:translateX(1px);
}
body.tc-shell-v2 .tc-sidebar nav a.is-active{
    color:#eef5fd!important;
    background:linear-gradient(90deg,rgba(47,125,255,.095),rgba(47,125,255,.045))!important;
    border-color:rgba(93,151,255,.10)!important;
    box-shadow:none!important;
}
body.tc-shell-v2 .tc-sidebar nav a.is-active::before{
    left:-3px!important;
    top:9px!important;
    bottom:9px!important;
    width:2px!important;
    background:#4a8dff!important;
    box-shadow:0 0 10px rgba(47,125,255,.32)!important;
}
body.tc-shell-v2 .tc-sidebar nav a.is-active svg{
    color:#7eafff!important;
}
body.tc-shell-v2 .tc-sidebar nav a:focus-visible,
body.tc-shell-v2 .tc-sidebar .logout:focus-visible,
body.tc-shell-v2 .mobile-menu-btn:focus-visible{
    outline:2px solid rgba(79,142,255,.62)!important;
    outline-offset:2px!important;
}

/* sidebar footer */
body.tc-shell-v2 .tc-sidebar-footer{
    padding:11px 5px 0!important;
    border-top-color:rgba(255,255,255,.038)!important;
}
body.tc-shell-v2 .tc-sidebar .logout{
    min-height:34px!important;
    border:1px solid transparent!important;
}
body.tc-shell-v2 .tc-sidebar .logout:hover{
    border-color:rgba(240,91,115,.06)!important;
}

/* top chrome */
body.tc-shell-v2 .topbar{
    min-height:42px!important;
    margin-bottom:10px!important;
    align-items:center!important;
}
body.tc-shell-v2 .tc-topbar-meta{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
}
body.tc-shell-v2 .topbar .eyebrow{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    width:max-content;
    line-height:1!important;
}
body.tc-shell-v2 .tc-online-dot{
    width:5px;
    height:5px;
    flex:0 0 5px;
    border-radius:999px;
    background:var(--tc-success);
    box-shadow:0 0 0 3px rgba(80,213,141,.07),0 0 8px rgba(80,213,141,.20);
}
body.tc-shell-v2 .topbar h1{
    line-height:1.25!important;
}
body.tc-shell-v2 .user-pill{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    min-height:30px!important;
    padding:6px 9px!important;
    border-color:rgba(255,255,255,.05)!important;
    background:rgba(255,255,255,.012)!important;
    color:#768aa2!important;
    line-height:1!important;
    white-space:nowrap;
}
body.tc-shell-v2 .user-pill svg{
    width:12px!important;
    height:12px!important;
    color:#667b94!important;
    stroke-width:1.8!important;
}
body.tc-shell-v2 .user-pill span{
    display:block;
    overflow:hidden;
    max-width:180px;
    text-overflow:ellipsis;
}
body.tc-shell-v2 .mobile-menu-btn{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    border:1px solid var(--tc-border)!important;
    border-radius:9px!important;
    background:var(--tc-surface-01)!important;
    color:#8093aa!important;
    box-shadow:none!important;
}
body.tc-shell-v2 .mobile-menu-btn svg{
    width:15px!important;
    height:15px!important;
}

@media(max-width:900px){
    body.tc-shell-v2 .tc-sidebar,
    body.tc-shell-v2 .sidebar{
        width:248px!important;
        min-width:248px!important;
        max-width:248px!important;
        box-shadow:24px 0 64px rgba(0,0,0,.38)!important;
    }
    body.tc-shell-v2 .topbar{
        flex-direction:row!important;
        align-items:center!important;
        min-height:38px!important;
        gap:10px!important;
    }
    body.tc-shell-v2 .topbar .tc-topbar-meta{
        flex:1 1 auto;
    }
    body.tc-shell-v2 .user-pill{
        margin-left:auto;
    }
    body.tc-shell-v2 .mobile-overlay{
        background:rgba(3,7,14,.72)!important;
        backdrop-filter:blur(5px)!important;
    }
}
@media(max-width:620px){
    body.tc-shell-v2 .topbar h1{font-size:12px!important}
    body.tc-shell-v2 .topbar .eyebrow{font-size:8px!important}
    body.tc-shell-v2 .user-pill span{display:none}
    body.tc-shell-v2 .user-pill{
        width:30px!important;
        height:30px!important;
        min-height:30px!important;
        padding:0!important;
        justify-content:center!important;
    }
    body.tc-shell-v2 .user-pill svg{width:13px!important;height:13px!important}
}

/* ==========================================================================
   RC3.15.5.1.5 — NOVA OPERAÇÃO / DEFINITIVE CONTROL POLISH
   One select-chevron system + premium numeric steppers. Page scoped.
   ========================================================================== */

/* SELECTS — keep global wrapper, but normalize it completely on this page */
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap{
    position:relative!important;
    display:block!important;
    width:100%!important;
    line-height:0!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select,
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select:hover,
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select:focus{
    display:block!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    box-sizing:border-box!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    -moz-appearance:none!important;
    padding:0 50px 0 11px!important;
    line-height:40px!important;
    background-image:none!important;
    background-color:#080f19!important;
}

/* Rounded RC3 arrow capsule */
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap::before{
    content:''!important;
    display:block!important;
    position:absolute!important;
    z-index:2!important;
    top:4px!important;
    right:4px!important;
    width:38px!important;
    height:34px!important;
    border-radius:10px!important;
    border:1px solid rgba(47,125,255,.055)!important;
    background:linear-gradient(180deg,rgba(47,125,255,.11),rgba(0,214,255,.035))!important;
    pointer-events:none!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap::after{
    content:''!important;
    display:block!important;
    position:absolute!important;
    z-index:3!important;
    top:50%!important;
    right:16px!important;
    width:14px!important;
    height:14px!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    pointer-events:none!important;
    background:no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%2378aaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap:hover::before{
    border-color:rgba(47,125,255,.10)!important;
    background:linear-gradient(180deg,rgba(47,125,255,.15),rgba(0,214,255,.05))!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap:hover::after{
    background:no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%239dbaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap:focus-within::after{
    top:50%!important;
    right:16px!important;
    width:14px!important;
    height:14px!important;
    transform:translateY(-50%)!important;
    background:no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23bfd3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

/* NUMBERS — remove all browser-native spinners */
body.tc-shell-v2 .tc8-operation-page .tc155-number-control{
    position:relative!important;
    display:block!important;
    width:100%!important;
    line-height:0!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-control input[type="number"]{
    display:block!important;
    width:100%!important;
    height:42px!important;
    box-sizing:border-box!important;
    appearance:textfield!important;
    -webkit-appearance:none!important;
    -moz-appearance:textfield!important;
    padding-right:42px!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-control input[type="number"]::-webkit-outer-spin-button,
body.tc-shell-v2 .tc8-operation-page .tc155-number-control input[type="number"]::-webkit-inner-spin-button{
    -webkit-appearance:none!important;
    appearance:none!important;
    opacity:0!important;
    width:0!important;
    height:0!important;
    margin:0!important;
}

/* Custom RC3 numeric stepper */
body.tc-shell-v2 .tc8-operation-page .tc155-number-stepper{
    position:absolute!important;
    z-index:3!important;
    top:4px!important;
    right:4px!important;
    width:30px!important;
    height:34px!important;
    display:grid!important;
    grid-template-rows:1fr 1fr!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.045)!important;
    border-radius:9px!important;
    background:rgba(47,125,255,.045)!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-stepper button{
    appearance:none!important;
    -webkit-appearance:none!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#6f87a3!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-stepper button:first-child{
    border-bottom:1px solid rgba(255,255,255,.04)!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-stepper button:hover{
    background:rgba(47,125,255,.10)!important;
    color:#9bbaff!important;
}
body.tc-shell-v2 .tc8-operation-page .tc155-number-stepper button svg{
    width:10px!important;
    height:10px!important;
    stroke-width:2!important;
}

/* Mobile keeps the same geometry, only slightly tighter */
@media(max-width:640px){
    body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select,
    body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select:hover,
    body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select:focus{
        padding-right:48px!important;
    }
}

/* ==========================================================================
   RC3.15.5.2 — OPERAÇÕES / FILTER BAR ALIGNMENT
   Scoped to Operations workspace filters only. No filtering logic changes.
   ========================================================================== */
.tc-workspace-v2 .tc-workspace-filter-panel{
    padding:16px!important;
}
.tc-workspace-v2 .tc-workspace-filters{
    display:grid!important;
    grid-template-columns:minmax(210px,1.4fr) repeat(7,minmax(105px,.7fr)) auto!important;
    gap:9px!important;
    align-items:end!important;
}

/* Every field uses the same two-row geometry: label + control */
.tc-workspace-v2 .tc-workspace-filters>label{
    min-width:0!important;
    display:grid!important;
    grid-template-rows:14px 42px!important;
    align-content:end!important;
    gap:6px!important;
    margin:0!important;
}
.tc-workspace-v2 .tc-workspace-filters>label>span{
    margin:0!important;
    height:14px!important;
    display:flex!important;
    align-items:center!important;
    color:#71849b!important;
    font-size:8px!important;
    font-weight:800!important;
    line-height:1!important;
    text-transform:uppercase!important;
    letter-spacing:.075em!important;
}

/* Search control */
.tc-workspace-v2 .tc-workspace-search>div{
    position:relative!important;
    height:42px!important;
}
.tc-workspace-v2 .tc-workspace-search svg{
    left:11px!important;
    top:50%!important;
    width:13px!important;
    height:13px!important;
    transform:translateY(-50%)!important;
}
.tc-workspace-v2 .tc-workspace-search input{
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    box-sizing:border-box!important;
    padding:0 11px 0 32px!important;
    line-height:40px!important;
}

/* Select wrapper: one consistent size and one consistent arrow capsule */
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:42px!important;
    line-height:0!important;
}
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap select,
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap select:hover,
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap select:focus{
    display:block!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    box-sizing:border-box!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    -moz-appearance:none!important;
    padding:0 46px 0 11px!important;
    line-height:40px!important;
    background-image:none!important;
    background-color:#080f19!important;
    border-radius:10px!important;
}
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap::before{
    content:''!important;
    display:block!important;
    position:absolute!important;
    z-index:2!important;
    top:4px!important;
    right:4px!important;
    width:36px!important;
    height:34px!important;
    border-radius:9px!important;
    border:1px solid rgba(47,125,255,.05)!important;
    background:linear-gradient(180deg,rgba(47,125,255,.10),rgba(0,214,255,.035))!important;
    pointer-events:none!important;
}
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap::after,
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap:focus-within::after{
    content:''!important;
    display:block!important;
    position:absolute!important;
    z-index:3!important;
    top:50%!important;
    right:15px!important;
    width:14px!important;
    height:14px!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    pointer-events:none!important;
    background:no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%2378aaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap:hover::before{
    border-color:rgba(47,125,255,.09)!important;
    background:linear-gradient(180deg,rgba(47,125,255,.14),rgba(0,214,255,.05))!important;
}
.tc-workspace-v2 .tc-workspace-filters .select-premium-wrap:hover::after{
    background:no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%239dbaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

/* Actions sit on the exact same baseline and height as controls */
.tc-workspace-v2 .tc-workspace-filter-actions{
    height:42px!important;
    display:flex!important;
    align-items:stretch!important;
    gap:6px!important;
    margin:0!important;
}
.tc-workspace-v2 .tc-workspace-filter-actions button,
.tc-workspace-v2 .tc-workspace-filter-actions a{
    height:42px!important;
    min-height:42px!important;
    box-sizing:border-box!important;
    padding:0 12px!important;
    border-radius:10px!important;
    line-height:1!important;
}

/* Responsive: keep aligned rows, then collapse cleanly */
@media(max-width:1320px){
    .tc-workspace-v2 .tc-workspace-filters{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
    .tc-workspace-v2 .tc-workspace-search{grid-column:span 2!important}
    .tc-workspace-v2 .tc-workspace-filter-actions{
        align-self:end!important;
    }
}
@media(max-width:820px){
    .tc-workspace-v2 .tc-workspace-filters{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .tc-workspace-v2 .tc-workspace-search{grid-column:span 2!important}
    .tc-workspace-v2 .tc-workspace-filter-actions{
        width:100%!important;
    }
    .tc-workspace-v2 .tc-workspace-filter-actions button,
    .tc-workspace-v2 .tc-workspace-filter-actions a{
        flex:1!important;
    }
}
@media(max-width:560px){
    .tc-workspace-v2 .tc-workspace-filters{
        grid-template-columns:1fr!important;
    }
    .tc-workspace-v2 .tc-workspace-search{grid-column:auto!important}
}

/* ==========================================================================
   RC3.15.5.3 — KPI + ICONS / GLOBAL CONSISTENCY AUDIT
   Adds the missing canonical icon treatment to Cockpit, Operations and X-Ray.
   Existing Finance, Reports, Statistics, Intelligence, Insights, Settings and
   Monthly Close KPI structures remain untouched.
   ========================================================================== */
.tc155-kpis>article{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
}
.tc155-kpi-icon{
    width:34px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 34px!important;
    margin:0!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.045)!important;
    color:#79aaf5!important;
    text-transform:none!important;
    letter-spacing:0!important;
}
.tc155-kpi-icon svg{
    width:14px!important;
    height:14px!important;
    stroke-width:1.8!important;
}
.tc155-kpi-content{
    min-width:0!important;
    flex:1 1 auto!important;
}
.tc155-kpi-content>span,
.tc155-kpi-content>strong,
.tc155-kpi-content>small{
    display:block;
}

/* Cockpit keeps its approved scale/composition; only icon/content alignment changes. */
.tc6-kpis.tc155-kpis .tc6-kpi{
    position:relative!important;
}
.tc6-kpis.tc155-kpis .tc155-kpi-content{
    width:100%!important;
}
.tc6-kpis.tc155-kpis .tc6-kpi-meta .tc6-kpi-row{
    margin-top:0!important;
}
.tc6-kpis.tc155-kpis .tc6-op-dots{
    margin-top:8px!important;
}

/* Operations: preserve the original KPI strip dimensions and dividers. */
.tc-workspace-kpis.tc155-kpis>article{
    min-height:126px!important;
}
.tc-workspace-kpis.tc155-kpis .tc155-kpi-content>strong{
    margin-top:11px!important;
}
.tc-workspace-kpis.tc155-kpis .tc155-kpi-content>small{
    margin-top:7px!important;
}

/* X-Ray already had semantic Lucide icons; give them the canonical RC3 capsule. */
.rc3-xray-kpis article>svg{
    position:absolute!important;
    right:18px!important;
    top:18px!important;
    width:34px!important;
    height:34px!important;
    padding:9px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.045)!important;
    color:#79aaf5!important;
    stroke-width:1.8!important;
}
.rc3-xray-kpis article>strong{
    max-width:calc(100% - 46px)!important;
}

@media(max-width:680px){
    .tc155-kpis>article{
        min-height:104px!important;
    }
}

/* ==========================================================================
   RC3.15.5.3.1 — KPI GLOBAL UNIFICATION
   Official RC3 KPI language: content left + Lucide capsule top-right,
   based on the approved Trader X-Ray treatment.
   ========================================================================== */

/* Canonical KPI geometry for the already-polished KPI families */
.rc3-polish-kpis>article,
.tc155-kpis>article,
.tc-close-kpis>.tc-close-kpi{
    position:relative!important;
    display:block!important;
    align-items:initial!important;
    gap:0!important;
}

/* Content stays left and keeps room for the icon capsule */
.rc3-polish-kpis>article>div,
.tc155-kpis>article>.tc155-kpi-content,
.tc-close-kpis>.tc-close-kpi>div:last-child{
    min-width:0!important;
    width:100%!important;
    max-width:calc(100% - 48px)!important;
    flex:none!important;
}

/* Official top-right icon capsule */
.rc3-polish-kpi-icon,
.tc155-kpi-icon,
.tc-close-kpi-icon{
    position:absolute!important;
    top:18px!important;
    right:18px!important;
    width:34px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    flex:none!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.045)!important;
    color:#79aaf5!important;
    text-transform:none!important;
    letter-spacing:0!important;
    box-sizing:border-box!important;
}

.rc3-polish-kpi-icon svg,
.tc155-kpi-icon svg,
.tc-close-kpi-icon svg{
    width:14px!important;
    height:14px!important;
    stroke-width:1.8!important;
}

/* Preserve the original vertical rhythm of labels / values / descriptions */
.rc3-polish-kpis>article>div>span,
.tc155-kpi-content>span,
.tc-close-kpis>.tc-close-kpi>div:last-child>span{
    display:block!important;
}
.rc3-polish-kpis>article>div>strong,
.tc155-kpi-content>strong,
.tc-close-kpis>.tc-close-kpi>div:last-child>strong{
    display:block!important;
}
.rc3-polish-kpis>article>div>small,
.tc155-kpi-content>small,
.tc-close-kpis>.tc-close-kpi>div:last-child>em{
    display:block!important;
}

/* Cockpit: preserve progress/dots behavior while adopting X-Ray layout */
.tc6-kpis.tc155-kpis .tc6-kpi{
    padding-right:62px!important;
}
.tc6-kpis.tc155-kpis .tc155-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.tc6-kpis.tc155-kpis .tc155-kpi-content{
    max-width:100%!important;
}
.tc6-kpis.tc155-kpis .tc6-kpi-meta .tc6-kpi-row{
    padding-right:0!important;
}
.tc6-kpis.tc155-kpis .tc6-kpi-meta .tc6-kpi-row em{
    margin-right:0!important;
}

/* Operations: same visual language, original strip/grid unchanged */
.tc-workspace-kpis.tc155-kpis>article{
    padding-right:62px!important;
}
.tc-workspace-kpis.tc155-kpis .tc155-kpi-content{
    max-width:100%!important;
}

/* Finance / Reports / Statistics / Intelligence / Insights / Settings */
.rc3-finance-kpis.rc3-polish-kpis>article,
.rc3-reports-kpis.rc3-polish-kpis>article,
.tc-stats3-kpis.rc3-polish-kpis>article,
.rc3-intel-kpis.rc3-polish-kpis>article,
.rc3-insights-kpis.rc3-polish-kpis>article,
.rc3-settings-kpis.rc3-polish-kpis>article{
    padding-right:62px!important;
}

/* Monthly Close now follows the same official KPI language */
.tc-close-kpis>.tc-close-kpi{
    padding-right:62px!important;
}

/* X-Ray remains the visual reference; keep its approved icon capsule geometry */
.rc3-xray-kpis article{
    position:relative!important;
}
.rc3-xray-kpis article>svg{
    right:18px!important;
    top:18px!important;
    width:34px!important;
    height:34px!important;
    padding:9px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.045)!important;
    color:#79aaf5!important;
    stroke-width:1.8!important;
}

/* Responsive: keep the same language, just tighten the inset */
@media(max-width:680px){
    .rc3-polish-kpi-icon,
    .tc155-kpi-icon,
    .tc-close-kpi-icon{
        top:16px!important;
        right:16px!important;
    }

    .rc3-finance-kpis.rc3-polish-kpis>article,
    .rc3-reports-kpis.rc3-polish-kpis>article,
    .tc-stats3-kpis.rc3-polish-kpis>article,
    .rc3-intel-kpis.rc3-polish-kpis>article,
    .rc3-insights-kpis.rc3-polish-kpis>article,
    .rc3-settings-kpis.rc3-polish-kpis>article,
    .tc-workspace-kpis.tc155-kpis>article,
    .tc6-kpis.tc155-kpis .tc6-kpi,
    .tc-close-kpis>.tc-close-kpi{
        padding-right:58px!important;
    }

    .rc3-xray-kpis article>svg{
        top:16px!important;
        right:16px!important;
    }
}

/* ==========================================================================
   RC3.15.5.4.1 — RESPONSIVIDADE / WORKSPACES PRINCIPAIS
   Financeiro, Fechamento, Relatórios e Configurações.
   Dashboard/Cockpit intentionally untouched because its mobile behavior is
   already the reference. Desktop rules remain unchanged.
   ========================================================================== */

@media(max-width:960px){
    /* FINANCEIRO */
    .rc3-finance-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:16px!important;
    }
    .rc3-finance-hero-actions{
        width:100%!important;
        display:flex!important;
        flex-wrap:wrap!important;
        gap:8px!important;
    }
    .rc3-finance-hero-actions>*{
        flex:1 1 180px!important;
        justify-content:center!important;
    }
    .rc3-finance-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .rc3-finance-kpis>article{
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .rc3-finance-kpis>article:nth-child(2n){
        border-right:0!important;
    }
    .rc3-finance-grid{
        grid-template-columns:1fr!important;
    }
    .rc3-finance-summary-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }

    /* RELATÓRIOS */
    .rc3-reports-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:16px!important;
    }
    .rc3-reports-filter{
        width:100%!important;
        min-width:0!important;
    }
    .rc3-reports-filter .select-premium-wrap{
        width:100%!important;
    }
    .rc3-reports-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .rc3-reports-kpis>article:nth-child(2n){
        border-right:0!important;
    }
    .rc3-reports-kpis>article:nth-child(-n+2){
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .rc3-reports-grid{
        grid-template-columns:1fr!important;
    }

    /* CONFIGURAÇÕES */
    .tc-route-configuracoes .rc3-settings-grid,
    .tc-route-configuracoes .rc3-settings-security{
        grid-template-columns:1fr!important;
    }
    .tc-route-configuracoes .rc3-settings-card{
        min-width:0!important;
    }

    /* FECHAMENTO */
    .tc-route-fechamento-mensal .tc-close-overview-grid{
        grid-template-columns:1fr!important;
    }
    .tc-route-fechamento-mensal .tc-close-confirm-head{
        gap:14px!important;
    }
}

@media(max-width:720px){
    /* Shared hero rhythm on phone */
    .rc3-finance-hero,
    .rc3-reports-hero,
    .tc-route-configuracoes .rc3-settings-hero,
    .tc-route-fechamento-mensal .tc-close-hero{
        padding:24px 0 20px!important;
        gap:14px!important;
    }
    .rc3-finance-hero h1,
    .rc3-reports-hero h1,
    .tc-route-configuracoes .rc3-settings-hero h1,
    .tc-route-fechamento-mensal .tc-close-hero h1{
        font-size:27px!important;
        line-height:1.08!important;
    }

    /* FINANCEIRO */
    .rc3-finance-kpis{
        grid-template-columns:1fr!important;
    }
    .rc3-finance-kpis>article{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .rc3-finance-kpis>article:last-child{
        border-bottom:0!important;
    }
    .rc3-finance-card{
        padding:15px!important;
    }
    .rc3-finance-card>header,
    .rc3-finance-history-head{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:12px!important;
    }
    .rc3-finance-form{
        grid-template-columns:1fr!important;
    }
    .rc3-finance-form label.full,
    .rc3-finance-form-actions{
        grid-column:1!important;
    }
    .rc3-finance-form-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .rc3-finance-form-actions .btn,
    .rc3-finance-form-actions button,
    .rc3-finance-form-actions a{
        width:100%!important;
        justify-content:center!important;
    }
    .rc3-finance-summary-grid{
        grid-template-columns:1fr!important;
    }
    .rc3-finance-history-filter{
        width:100%!important;
        min-width:0!important;
    }
    .rc3-finance-history-filter .select-premium-wrap{
        width:100%!important;
    }
    .rc3-finance-movement{
        grid-template-columns:34px minmax(0,1fr)!important;
        gap:10px!important;
    }
    .rc3-finance-movement>strong,
    .rc3-finance-movement>.amount{
        grid-column:2!important;
        justify-self:start!important;
        text-align:left!important;
    }

    /* RELATÓRIOS */
    .rc3-reports-kpis{
        grid-template-columns:1fr!important;
    }
    .rc3-reports-kpis>article{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .rc3-reports-kpis>article:last-child{
        border-bottom:0!important;
    }
    .rc3-reports-card{
        padding:15px!important;
    }
    .rc3-reports-card>header{
        align-items:flex-start!important;
        gap:12px!important;
    }
    .rc3-reports-product-meta{
        grid-template-columns:1fr!important;
    }
    .rc3-reports-product-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .rc3-reports-product-actions>*{
        width:100%!important;
        justify-content:center!important;
    }

    /* CONFIGURAÇÕES */
    .tc-route-configuracoes .rc3-settings-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    .tc-route-configuracoes .rc3-settings-badge{
        align-self:flex-start!important;
    }
    .tc-route-configuracoes .rc3-settings-kpis{
        grid-template-columns:1fr!important;
    }
    .tc-route-configuracoes .rc3-settings-kpis article{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .tc-route-configuracoes .rc3-settings-kpis article:last-child{
        border-bottom:0!important;
    }
    .tc-route-configuracoes .rc3-settings-card{
        padding:15px!important;
    }
    .tc-route-configuracoes .rc3-settings-card>header{
        gap:12px!important;
    }
    .tc-route-configuracoes .rc3-settings-form{
        grid-template-columns:1fr!important;
    }
    .tc-route-configuracoes .rc3-settings-form label.full,
    .tc-route-configuracoes .rc3-settings-form-actions{
        grid-column:1!important;
    }
    .tc-route-configuracoes .rc3-settings-form-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .tc-route-configuracoes .rc3-settings-form-actions .btn,
    .tc-route-configuracoes .rc3-settings-form-actions button{
        width:100%!important;
        justify-content:center!important;
    }
    .tc-route-configuracoes .rc3-settings-account>div{
        align-items:flex-start!important;
        flex-direction:column!important;
        justify-content:center!important;
        gap:5px!important;
        padding:11px!important;
    }
    .tc-route-configuracoes .rc3-settings-account strong{
        text-align:left!important;
        overflow-wrap:anywhere!important;
    }

    /* FECHAMENTO */
    .tc-route-fechamento-mensal .tc-close-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    .tc-route-fechamento-mensal .tc-close-period{
        width:100%!important;
        box-sizing:border-box!important;
    }
    .tc-route-fechamento-mensal .tc-close-kpis{
        grid-template-columns:1fr!important;
    }
    .tc-route-fechamento-mensal .tc-close-kpi{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .tc-route-fechamento-mensal .tc-close-kpi:last-child{
        border-bottom:0!important;
    }
    .tc-route-fechamento-mensal .tc-close-panel{
        padding:15px!important;
    }
    .tc-route-fechamento-mensal .tc-close-summary-stats,
    .tc-route-fechamento-mensal .tc-close-highlight-grid,
    .tc-route-fechamento-mensal .tc-close-form{
        grid-template-columns:1fr!important;
    }
    .tc-route-fechamento-mensal .tc-close-form-full{
        grid-column:1!important;
    }
    .tc-route-fechamento-mensal .tc-close-confirm-head,
    .tc-route-fechamento-mensal .tc-close-form-footer,
    .tc-route-fechamento-mensal .tc-close-history-head{
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    .tc-route-fechamento-mensal .tc-close-form-footer .btn{
        width:100%!important;
        justify-content:center!important;
    }
    .tc-route-fechamento-mensal .tc-close-history-count{
        align-self:flex-start!important;
    }
    .tc-route-fechamento-mensal .tc-close-table-wrap{
        width:100%!important;
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
        scrollbar-width:thin!important;
    }
    .tc-route-fechamento-mensal .tc-close-table{
        min-width:720px!important;
    }
}

@media(max-width:520px){
    /* More comfortable phone spacing */
    .rc3-finance-card,
    .rc3-reports-card,
    .tc-route-configuracoes .rc3-settings-card,
    .tc-route-fechamento-mensal .tc-close-panel{
        border-radius:13px!important;
    }

    .rc3-finance-hero-actions{
        flex-direction:column!important;
    }
    .rc3-finance-hero-actions>*{
        flex:0 0 auto!important;
        width:100%!important;
    }

    .rc3-finance-kpis>article,
    .rc3-reports-kpis>article,
    .tc-route-configuracoes .rc3-settings-kpis article,
    .tc-route-fechamento-mensal .tc-close-kpi{
        padding:16px 58px 16px 16px!important;
    }

    .rc3-polish-kpi-icon,
    .tc-close-kpi-icon{
        top:15px!important;
        right:15px!important;
    }

    .rc3-finance-summary-grid>div,
    .tc-route-fechamento-mensal .tc-close-summary-stats>div,
    .tc-route-fechamento-mensal .tc-close-highlight-grid>div{
        min-width:0!important;
    }
}

/* ==========================================================================
   RC3.15.5.4.2 — RESPONSIVIDADE / FLUXO OPERACIONAL
   Operações, Nova Operação, Estatísticas e Calendário.
   Desktop unchanged; mobile follows the Cockpit reference rhythm.
   ========================================================================== */

@media(max-width:980px){
    /* OPERAÇÕES */
    .tc-workspace-v2 .tc-workspace-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:16px!important;
    }
    .tc-workspace-v2 .tc-workspace-primary{
        align-self:flex-start!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis>article:nth-child(2n){
        border-right:0!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis>article:nth-child(-n+2){
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }

    /* NOVA OPERAÇÃO */
    body.tc-shell-v2 .tc8-layout{
        grid-template-columns:1fr!important;
    }
    body.tc-shell-v2 .tc8-side{
        order:2!important;
    }
    body.tc-shell-v2 .tc8-side-sticky{
        position:static!important;
    }
    body.tc-shell-v2 .tc8-context-grid,
    body.tc-shell-v2 .tc8-field-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body.tc-shell-v2 .tc8-field-wide{
        grid-column:1/-1!important;
    }

    /* ESTATÍSTICAS */
    .tc-stats3-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .tc-stats3-kpis>article:nth-child(2n){
        border-right:0!important;
    }
    .tc-stats3-kpis>article:nth-child(-n+2){
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .tc-stats3-grid,
    .stats2-grid,
    .stats2-chart-grid{
        grid-template-columns:1fr!important;
    }

    /* CALENDÁRIO */
    .tc-cal3-toolbar{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:14px!important;
    }
    .tc-cal3-month-nav{
        width:100%!important;
        justify-content:space-between!important;
    }
    .tc-cal3-legend{
        width:100%!important;
        flex-wrap:wrap!important;
    }
    .tc-cal3-summary{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media(max-width:720px){
    /* OPERAÇÕES */
    .tc-workspace-v2 .tc-workspace-hero{
        padding:24px 0 20px!important;
    }
    .tc-workspace-v2 .tc-workspace-hero h1{
        font-size:27px!important;
    }
    .tc-workspace-v2 .tc-workspace-primary{
        width:100%!important;
        justify-content:center!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis{
        grid-template-columns:1fr!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis>article{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .tc-workspace-v2 .tc-workspace-kpis>article:last-child{
        border-bottom:0!important;
    }
    .tc-workspace-v2 .tc-workspace-filter-panel{
        padding:14px!important;
    }
    .tc-workspace-v2 .tc-workspace-filters{
        grid-template-columns:1fr!important;
    }
    .tc-workspace-v2 .tc-workspace-search{
        grid-column:auto!important;
    }
    .tc-workspace-v2 .tc-workspace-filter-actions{
        width:100%!important;
    }
    .tc-workspace-v2 .tc-workspace-filter-actions button,
    .tc-workspace-v2 .tc-workspace-filter-actions a{
        flex:1 1 0!important;
    }
    .tc-workspace-v2 .tc-workspace-table-wrap{
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
    }
    .tc-workspace-v2 .tc-workspace-table{
        min-width:980px!important;
    }

    /* NOVA OPERAÇÃO */
    body.tc-shell-v2 .tc8-operation-page{
        gap:12px!important;
    }
    body.tc-shell-v2 .tc8-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:14px!important;
        padding:24px 0 20px!important;
    }
    body.tc-shell-v2 .tc8-hero h2{
        font-size:27px!important;
    }
    body.tc-shell-v2 .tc8-context-grid,
    body.tc-shell-v2 .tc8-field-grid{
        grid-template-columns:1fr!important;
    }
    body.tc-shell-v2 .tc8-field-wide{
        grid-column:1!important;
    }
    body.tc-shell-v2 .tc8-operation-card>header{
        grid-template-columns:auto minmax(0,1fr)!important;
        align-items:center!important;
    }
    body.tc-shell-v2 .tc8-operation-live{
        grid-column:1/-1!important;
        justify-self:start!important;
    }
    body.tc-shell-v2 .tc8-summary-card,
    body.tc-shell-v2 .tc8-preview-card,
    body.tc-shell-v2 .tc11-mental-card,
    body.tc-shell-v2 .tc11-notes-card{
        padding:15px!important;
    }
    body.tc-shell-v2 .tc8-form-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    body.tc-shell-v2 .tc8-form-actions>*{
        width:100%!important;
        justify-content:center!important;
    }

    /* ESTATÍSTICAS */
    .tc-stats3-hero{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:14px!important;
        padding:24px 0 20px!important;
    }
    .tc-stats3-hero h1{
        font-size:27px!important;
    }
    .tc-stats3-kpis{
        grid-template-columns:1fr!important;
    }
    .tc-stats3-kpis>article{
        min-height:104px!important;
        border-right:0!important;
        border-bottom:1px solid rgba(255,255,255,.055)!important;
    }
    .tc-stats3-kpis>article:last-child{
        border-bottom:0!important;
    }
    .tc-stats3-card,
    .stats2-card{
        padding:15px!important;
    }
    .stats2-table-wrap,
    .tc-stats3-table-wrap{
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
    }

    /* CALENDÁRIO */
    .tc-cal3-page{
        gap:12px!important;
    }
    .tc-cal3-toolbar{
        padding:14px!important;
    }
    .tc-cal3-calendar{
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
    }
    .tc-cal3-weekdays,
    .tc-cal3-grid{
        min-width:700px!important;
    }
    .tc-cal3-summary{
        grid-template-columns:1fr!important;
    }
    .tc-cal3-summary-label{
        grid-column:1!important;
    }
    .tc-cal3-drawer{
        width:min(100vw,430px)!important;
        max-width:100vw!important;
    }
    .tc-cal3-drawer-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media(max-width:520px){
    /* OPERAÇÕES */
    .tc-workspace-v2 .tc-workspace-filter-actions{
        flex-direction:column!important;
        height:auto!important;
    }
    .tc-workspace-v2 .tc-workspace-filter-actions button,
    .tc-workspace-v2 .tc-workspace-filter-actions a{
        width:100%!important;
    }

    /* NOVA OPERAÇÃO */
    body.tc-shell-v2 .tc8-operation-card,
    body.tc-shell-v2 .tc8-session-config,
    body.tc-shell-v2 .tc113-session-flow{
        border-radius:13px!important;
    }
    body.tc-shell-v2 .tc8-operation-card>header{
        padding:13px 14px!important;
    }

    /* CALENDÁRIO drawer */
    .tc-cal3-drawer{
        width:100vw!important;
    }
    .tc-cal3-drawer-kpis{
        grid-template-columns:1fr!important;
    }
}

/* ==========================================================================
   RC3.15.5.4.2.1 — COCKPIT KPI TYPOGRAPHY POLISH
   Typography only. No card, icon, grid, spacing-system or data changes.
   Restores the RC3 hierarchy after KPI markup unification.
   ========================================================================== */

.tc6-kpis.tc155-kpis .tc155-kpi-content>span,
.tc6-kpis.tc155-kpis .tc6-kpi-row>span{
    display:block!important;
    margin:0!important;
    color:#61748d!important;
    font-size:8px!important;
    font-weight:800!important;
    line-height:1.2!important;
    text-transform:uppercase!important;
    letter-spacing:.09em!important;
}

.tc6-kpis.tc155-kpis .tc155-kpi-content>strong{
    display:block!important;
    margin-top:10px!important;
    color:#edf4ff!important;
    font-size:20px!important;
    font-weight:680!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
    font-variant-numeric:tabular-nums!important;
}

.tc6-kpis.tc155-kpis .tc155-kpi-content>strong.positive{
    color:#58d28d!important;
}
.tc6-kpis.tc155-kpis .tc155-kpi-content>strong.negative{
    color:#f06b7d!important;
}

.tc6-kpis.tc155-kpis .tc155-kpi-content>small{
    display:block!important;
    margin-top:7px!important;
    color:#6d8098!important;
    font-size:9px!important;
    font-weight:500!important;
    line-height:1.35!important;
    letter-spacing:0!important;
}

.tc6-kpis.tc155-kpis .tc155-kpi-content>small b{
    color:#45566c!important;
    font-weight:500!important;
}

.tc6-kpis.tc155-kpis .tc6-kpi-row{
    align-items:center!important;
}
.tc6-kpis.tc155-kpis .tc6-kpi-row em{
    color:#8196b0!important;
    font-size:9px!important;
    font-weight:750!important;
    line-height:1!important;
    font-style:normal!important;
    letter-spacing:0!important;
}

.tc6-kpis.tc155-kpis .tc6-kpi-meta .tc155-kpi-content>strong{
    margin-top:9px!important;
    font-size:19px!important;
}
.tc6-kpis.tc155-kpis .tc6-kpi-meta .tc155-kpi-content>strong small{
    color:#667990!important;
    font-size:9px!important;
    font-weight:600!important;
    letter-spacing:0!important;
}

.tc6-kpis.tc155-kpis .tc6-op-count{
    margin-top:8px!important;
    font-size:19px!important;
    line-height:1!important;
}
.tc6-kpis.tc155-kpis .tc6-op-count small{
    color:#667990!important;
    font-size:9px!important;
    font-weight:600!important;
}

/* Keep phone hierarchy proportional without enlarging cards */
@media(max-width:700px){
    .tc6-kpis.tc155-kpis .tc155-kpi-content>strong{
        font-size:19px!important;
    }
    .tc6-kpis.tc155-kpis .tc155-kpi-content>span,
    .tc6-kpis.tc155-kpis .tc6-kpi-row>span{
        font-size:8px!important;
    }
}

/* ==========================================================================
   RC3.15.5.4.3 — RESPONSIVIDADE / ANALYTICS WORKSPACES
   Inteligência, Trader X-Ray e Insights. Desktop preserved.
   ========================================================================== */
@media(max-width:980px){
  .rc3-intel-hero,.rc3-xray-hero,.rc3-insights-hero{align-items:flex-start!important;flex-direction:column!important;gap:16px!important}
  .rc3-intel-actions,.rc3-insights-hero-meta{width:100%!important}
  .rc3-intel-kpis,.rc3-xray-kpis,.rc3-insights-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rc3-intel-overview,.rc3-intel-grid,.rc3-xray-grid,.rc3-insights-grid,.rc3-insights-diagnosis-grid{grid-template-columns:1fr!important}
  .rc3-intel-pillars,.rc3-insights-score-details{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .rc3-intel-hero,.rc3-xray-hero,.rc3-insights-hero{padding:24px 0 20px!important}
  .rc3-intel-hero h1,.rc3-xray-hero h1,.rc3-insights-hero h1{font-size:27px!important;line-height:1.08!important}
  .rc3-intel-kpis,.rc3-xray-kpis,.rc3-insights-kpis{grid-template-columns:1fr!important}
  .rc3-intel-kpis>article,.rc3-xray-kpis>article,.rc3-insights-kpis>article{
    min-height:104px!important;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.055)!important;
    padding:16px 58px 16px 16px!important
  }
  .rc3-intel-kpis>article:last-child,.rc3-xray-kpis>article:last-child,.rc3-insights-kpis>article:last-child{border-bottom:0!important}
  .rc3-intel-card,.rc3-xray-card,.rc3-insights-card,.rc3-insights-section{padding:15px!important}
  .rc3-intel-pillars,.rc3-insights-score-details{grid-template-columns:1fr!important}
  .rc3-intel-list-item{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
  .rc3-intel-score,.rc3-xray-score{width:100%!important;box-sizing:border-box!important}
  .rc3-xray-context{grid-template-columns:1fr!important}
  .rc3-xray-bars,.rc3-xray-months{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .rc3-insights-section-head{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
  .rc3-insights-records,.rc3-insights-records-4{grid-template-columns:1fr!important}
  .rc3-insights-feed>*,.rc3-insights-smartlist>*{min-width:0!important}
  .rc3-insights-table-wrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .rc3-insights-table-wrap table{min-width:720px!important}
}
@media(max-width:520px){
  .rc3-intel-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .rc3-intel-actions>*{width:100%!important;justify-content:center!important}
  .rc3-intel-card,.rc3-xray-card,.rc3-insights-card,.rc3-insights-section{border-radius:13px!important}
  .rc3-intel-timeline,.rc3-insights-feed,.rc3-insights-smartlist{min-width:0!important}
  .rc3-xray-footer{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
}

/* ==========================================================================
   RC3.15.5.4.4 — MOBILE GLOBAL / SHELL & CHROME FINAL PASS
   Shared mobile shell only. Page-specific desktop compositions are untouched.
   ========================================================================== */
@media(max-width:900px){
    body.tc-shell-v2{overflow-x:hidden!important}
    body.tc-shell-v2 .app{display:block!important;width:100%!important;min-width:0!important}
    body.tc-shell-v2 .content{
        width:100%!important;max-width:none!important;min-width:0!important;
        margin:0!important;padding:16px 18px 30px!important;box-sizing:border-box!important;
        overflow-x:clip!important
    }
    body.tc-shell-v2 .tc-sidebar,body.tc-shell-v2 .sidebar{
        position:fixed!important;left:0!important;top:0!important;bottom:0!important;
        z-index:60!important;width:248px!important;min-width:248px!important;max-width:248px!important;
        height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain!important;
        transform:translateX(-105%)!important;transition:transform .22s ease!important
    }
    body.menu-open.tc-shell-v2 .tc-sidebar,body.menu-open.tc-shell-v2 .sidebar{transform:translateX(0)!important}
    body.tc-shell-v2 .mobile-overlay{z-index:50!important}
    body.tc-shell-v2 .topbar{
        position:sticky!important;top:0!important;z-index:35!important;
        width:auto!important;min-width:0!important;
        margin:-16px -18px 18px!important;padding:10px 18px!important;
        min-height:54px!important;box-sizing:border-box!important;
        background:rgba(7,11,20,.88)!important;
        border-bottom:1px solid rgba(255,255,255,.05)!important;
        backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important
    }
    body.tc-shell-v2 .tc-topbar-meta{min-width:0!important;overflow:hidden!important}
    body.tc-shell-v2 .tc-topbar-meta h1,
    body.tc-shell-v2 .tc-topbar-meta .eyebrow{
        overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
    }
    body.tc-shell-v2 .mobile-menu-btn{display:grid!important;place-items:center!important}
    body.tc-shell-v2 main,body.tc-shell-v2 section,body.tc-shell-v2 article,
    body.tc-shell-v2 form,body.tc-shell-v2 .card{min-width:0}
    body.tc-shell-v2 img,body.tc-shell-v2 svg,body.tc-shell-v2 canvas{max-width:100%}
    body.tc-shell-v2 input,body.tc-shell-v2 select,body.tc-shell-v2 textarea{max-width:100%;box-sizing:border-box}
    body.tc-shell-v2 .table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
}
@media(max-width:620px){
    body.tc-shell-v2 .content{padding:12px 14px 26px!important}
    body.tc-shell-v2 .topbar{
        margin:-12px -14px 16px!important;padding:9px 14px!important;min-height:52px!important;gap:9px!important
    }
    body.tc-shell-v2 .mobile-menu-btn{
        width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important
    }
    body.tc-shell-v2 .topbar h1{font-size:12px!important;line-height:1.2!important}
    body.tc-shell-v2 .topbar .eyebrow{font-size:7px!important;line-height:1.2!important}
    body.tc-shell-v2 .user-pill{
        width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
        flex:0 0 30px!important;padding:0!important
    }
    body.tc-shell-v2 .tc-sidebar,body.tc-shell-v2 .sidebar{
        width:min(84vw,270px)!important;min-width:min(84vw,270px)!important;max-width:min(84vw,270px)!important;
        padding-top:max(16px,env(safe-area-inset-top))!important;
        padding-bottom:max(14px,env(safe-area-inset-bottom))!important
    }
    body.tc-shell-v2 .btn,body.tc-shell-v2 button,body.tc-shell-v2 input,
    body.tc-shell-v2 select,body.tc-shell-v2 textarea{font-size:max(16px,1em)}
    body.tc-shell-v2 .btn,body.tc-shell-v2 button{touch-action:manipulation}
}
@media(max-width:390px){
    body.tc-shell-v2 .content{padding-left:12px!important;padding-right:12px!important}
    body.tc-shell-v2 .topbar{margin-left:-12px!important;margin-right:-12px!important;padding-left:12px!important;padding-right:12px!important}
}
@media(prefers-reduced-motion:reduce){
    body.tc-shell-v2 .tc-sidebar,body.tc-shell-v2 .sidebar,body.tc-shell-v2 .mobile-overlay{transition-duration:.01ms!important}
}

/* ==========================================================================
   RC3.15.5.5 — MICROINTERAÇÕES / FINAL MOTION POLISH
   Subtle product feedback only. No layout or business-logic changes.
   ========================================================================== */

body.tc-shell-v2{
    --rc3-motion-fast:.14s;
    --rc3-motion-base:.18s;
    --rc3-motion-ease:cubic-bezier(.2,.7,.2,1);
}

/* Shared interactive surfaces */
body.tc-shell-v2 :is(
    .card,
    .rc3-finance-card,
    .rc3-reports-card,
    .rc3-settings-card,
    .tc-close-panel,
    .rc3-intel-card,
    .rc3-xray-card,
    .rc3-insights-card,
    .tc-workspace-list-panel,
    .tc-workspace-filter-panel
){
    transition:
        border-color var(--rc3-motion-base) var(--rc3-motion-ease),
        background-color var(--rc3-motion-base) var(--rc3-motion-ease),
        transform var(--rc3-motion-base) var(--rc3-motion-ease),
        box-shadow var(--rc3-motion-base) var(--rc3-motion-ease)!important;
}

body.tc-shell-v2 :is(
    .rc3-finance-card,
    .rc3-reports-card,
    .rc3-settings-card,
    .tc-close-panel,
    .rc3-intel-card,
    .rc3-xray-card,
    .rc3-insights-card
):hover{
    border-color:rgba(255,255,255,.085)!important;
}

/* Buttons and navigation */
body.tc-shell-v2 :is(
    .btn,
    button,
    .tc-workspace-primary,
    .tc-calendar-actions a,
    .rc3-reports-product-actions a,
    .rc3-finance-hero-actions a,
    .tc-sidebar nav a,
    .logout
){
    transition:
        background-color var(--rc3-motion-fast) var(--rc3-motion-ease),
        border-color var(--rc3-motion-fast) var(--rc3-motion-ease),
        color var(--rc3-motion-fast) var(--rc3-motion-ease),
        opacity var(--rc3-motion-fast) var(--rc3-motion-ease),
        transform var(--rc3-motion-fast) var(--rc3-motion-ease),
        box-shadow var(--rc3-motion-fast) var(--rc3-motion-ease)!important;
}

body.tc-shell-v2 :is(
    .btn,
    .tc-workspace-primary,
    .tc-calendar-actions a,
    .rc3-reports-product-actions a,
    .rc3-finance-hero-actions a
):hover{
    transform:translateY(-1px);
}

body.tc-shell-v2 :is(
    .btn,
    button,
    .tc-workspace-primary,
    .tc-calendar-actions a,
    .rc3-reports-product-actions a,
    .rc3-finance-hero-actions a,
    .tc-sidebar nav a,
    .logout
):active{
    transform:translateY(0)!important;
}

/* Controls */
body.tc-shell-v2 :is(input,select,textarea){
    transition:
        border-color var(--rc3-motion-fast) var(--rc3-motion-ease),
        background-color var(--rc3-motion-fast) var(--rc3-motion-ease),
        box-shadow var(--rc3-motion-fast) var(--rc3-motion-ease),
        color var(--rc3-motion-fast) var(--rc3-motion-ease)!important;
}

body.tc-shell-v2 :is(input,select,textarea):focus-visible{
    outline:none!important;
}

/* KPI icon capsules */
body.tc-shell-v2 :is(
    .rc3-polish-kpi-icon,
    .tc155-kpi-icon,
    .tc-close-kpi-icon,
    .rc3-xray-kpis article>svg
){
    transition:
        background-color var(--rc3-motion-base) var(--rc3-motion-ease),
        border-color var(--rc3-motion-base) var(--rc3-motion-ease),
        color var(--rc3-motion-base) var(--rc3-motion-ease),
        transform var(--rc3-motion-base) var(--rc3-motion-ease)!important;
}

body.tc-shell-v2 :is(
    .rc3-polish-kpis>article,
    .tc155-kpis>article,
    .tc-close-kpis>.tc-close-kpi,
    .rc3-xray-kpis>article
):hover :is(
    .rc3-polish-kpi-icon,
    .tc155-kpi-icon,
    .tc-close-kpi-icon
){
    border-color:rgba(47,125,255,.14)!important;
    background:rgba(47,125,255,.065)!important;
    color:#8cb7ff!important;
}

/* Data rows */
body.tc-shell-v2 :is(
    table tbody tr,
    .tc-workspace-table tbody tr,
    .rc3-finance-movement,
    .rc3-insights-feed>*,
    .rc3-intel-list-item
){
    transition:
        background-color var(--rc3-motion-fast) var(--rc3-motion-ease),
        color var(--rc3-motion-fast) var(--rc3-motion-ease),
        border-color var(--rc3-motion-fast) var(--rc3-motion-ease)!important;
}

/* Drawers / overlays */
body.tc-shell-v2 :is(
    .tc-cal3-drawer,
    .tc-operation-drawer,
    .mobile-overlay
){
    transition-duration:.2s!important;
    transition-timing-function:var(--rc3-motion-ease)!important;
}

/* Preserve accessibility */
@media(prefers-reduced-motion:reduce){
    body.tc-shell-v2 *,
    body.tc-shell-v2 *::before,
    body.tc-shell-v2 *::after{
        transition-duration:.01ms!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        scroll-behavior:auto!important;
    }
}

/* Avoid hover-only movement on touch devices */
@media(hover:none){
    body.tc-shell-v2 :is(
        .btn,
        .tc-workspace-primary,
        .tc-calendar-actions a,
        .rc3-reports-product-actions a,
        .rc3-finance-hero-actions a
    ):hover{
        transform:none!important;
    }
}

/* ==========================================================================
   RC3.15.6.1 — PENTE FINO / COCKPIT
   Alignment, spacing and hierarchy only. No data, layout concept or logic.
   ========================================================================== */

/* Hero: tighten alignment without changing scale */
.tc3-body .tc6-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc3-body .tc6-hero-copy{
    min-width:0!important;
}
.tc3-body .tc6-date{
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    line-height:1!important;
}
.tc3-body .tc6-date svg{
    width:12px!important;
    height:12px!important;
}
.tc3-body .tc6-hero h1{
    margin-top:9px!important;
    line-height:1.04!important;
}
.tc3-body .tc6-hero p{
    margin-top:9px!important;
    line-height:1.55!important;
}
.tc3-body .tc6-new-operation{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* Command center: equal visual rhythm between columns */
.tc3-body .tc9-command-center{
    gap:12px!important;
}
.tc3-body .tc9-command-primary,
.tc3-body .tc9-command-secondary>article{
    border-radius:15px!important;
}
.tc3-body .tc9-command-secondary{
    gap:12px!important;
}
.tc3-body .tc9-command-metrics{
    align-items:stretch!important;
}
.tc3-body .tc9-command-metrics>div{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
}

/* KPI strip: normalize vertical rhythm after icon unification */
.tc3-body .tc6-kpis.tc155-kpis .tc6-kpi{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc155-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc155-kpi-content{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc155-kpi-content>strong{
    margin-top:10px!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc155-kpi-content>small{
    margin-top:auto!important;
    padding-top:7px!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc6-kpi-meta .tc6-progress{
    margin-top:10px!important;
}
.tc3-body .tc6-kpis.tc155-kpis .tc6-op-dots{
    margin-top:9px!important;
}

/* Section headings: same baseline across chart / recent / summary */
.tc3-body .tc6-section-head{
    min-height:42px!important;
    align-items:flex-start!important;
    gap:16px!important;
}
.tc3-body .tc6-section-head h2,
.tc3-body .tc6-summary header h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.tc3-body .tc6-current{
    flex:0 0 auto!important;
    padding-top:1px!important;
}

/* Lower cards: consistent inner rhythm */
.tc3-body .tc6-lower-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.tc3-body .tc6-recent,
.tc3-body .tc6-summary{
    height:100%!important;
}
.tc3-body .tc6-operation-item{
    align-items:center!important;
}
.tc3-body .tc6-summary-grid{
    align-items:stretch!important;
}

/* Cycle intelligence: align heading/action and card rhythm */
.tc3-body .tc7-cycles-head{
    align-items:flex-start!important;
    gap:18px!important;
}
.tc3-body .tc7-cycles-head>a{
    flex:0 0 auto!important;
    margin-top:1px!important;
}
.tc3-body .tc7-cycle-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.tc3-body .tc7-cycle-card{
    height:100%!important;
}

/* Mobile keeps the already-approved Cockpit behavior */
@media(max-width:700px){
    .tc3-body .tc6-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .tc3-body .tc6-new-operation{
        align-self:stretch!important;
    }
    .tc3-body .tc6-kpis.tc155-kpis .tc6-kpi{
        min-height:104px!important;
    }
    .tc3-body .tc6-kpis.tc155-kpis .tc155-kpi-content{
        min-height:72px!important;
    }
}

/* ==========================================================================
   RC3.15.6.2 — PENTE FINO / NOVA OPERAÇÃO
   Final visual alignment only. Business rules, field behavior and controls
   remain untouched.
   ========================================================================== */

body.tc-shell-v2 .tc8-operation-page{
    gap:14px!important;
}

/* Hero */
body.tc-shell-v2 .tc8-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
body.tc-shell-v2 .tc8-hero-copy{
    min-width:0!important;
}
body.tc-shell-v2 .tc8-kicker{
    display:inline-flex!important;
    align-items:center!important;
    line-height:1!important;
}
body.tc-shell-v2 .tc8-hero h2{
    margin-top:8px!important;
    line-height:1.05!important;
}
body.tc-shell-v2 .tc8-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}

/* Session/context panel */
body.tc-shell-v2 .tc8-session-config{
    padding:16px!important;
}
body.tc-shell-v2 .tc8-context-grid{
    align-items:end!important;
    gap:10px!important;
}
body.tc-shell-v2 .tc8-context-grid label,
body.tc-shell-v2 .tc8-field-grid label{
    min-width:0!important;
}
body.tc-shell-v2 .tc8-context-grid label>span,
body.tc-shell-v2 .tc8-field-grid label>span{
    line-height:1.25!important;
}

/* Flow */
body.tc-shell-v2 .tc113-session-flow{
    padding:14px 16px!important;
}
body.tc-shell-v2 .tc113-flow-head{
    align-items:flex-start!important;
    gap:14px!important;
}
body.tc-shell-v2 .tc113-flow-step{
    min-width:0!important;
}

/* Operation cards */
body.tc-shell-v2 .tc8-operation-card{
    overflow:hidden!important;
}
body.tc-shell-v2 .tc8-operation-card>header{
    min-height:66px!important;
    padding:13px 16px!important;
    align-items:center!important;
    gap:12px!important;
}
body.tc-shell-v2 .tc8-operation-number{
    flex:0 0 36px!important;
}
body.tc-shell-v2 .tc8-operation-card header>div:nth-child(2){
    min-width:0!important;
}
body.tc-shell-v2 .tc8-operation-card header h3{
    line-height:1.2!important;
}
body.tc-shell-v2 .tc113-op-summary{
    margin-top:4px!important;
    line-height:1.35!important;
}
body.tc-shell-v2 .tc8-operation-live{
    margin-left:auto!important;
    align-self:center!important;
}
body.tc-shell-v2 .tc8-field-grid{
    gap:10px!important;
    padding:16px!important;
}

/* Controls: preserve the approved select/number treatment */
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap,
body.tc-shell-v2 .tc8-operation-page .tc155-number-control{
    width:100%!important;
}
body.tc-shell-v2 .tc8-operation-page .select-premium-wrap select,
body.tc-shell-v2 .tc8-operation-page .tc155-number-control input{
    font-size:10px!important;
    font-weight:550!important;
}
body.tc-shell-v2 .tc8-operation-page input[type="time"]{
    font-size:10px!important;
}

/* Lucro real block */
body.tc-shell-v2 .lucro-real-label{
    display:block!important;
    margin-bottom:7px!important;
}
body.tc-shell-v2 .lucro-real-hint{
    display:block!important;
    margin-top:6px!important;
    color:#61748d!important;
    font-size:8px!important;
    line-height:1.45!important;
}

/* Mental state / diary */
body.tc-shell-v2 .tc11-mental-card,
body.tc-shell-v2 .tc11-notes-card{
    border-radius:15px!important;
}
body.tc-shell-v2 .operational-diary>summary{
    align-items:center!important;
    gap:12px!important;
}
body.tc-shell-v2 .diary-content{
    gap:12px!important;
}
body.tc-shell-v2 .diary-choice-grid,
body.tc-shell-v2 .diary-check-grid{
    gap:7px!important;
}

/* Right rail */
body.tc-shell-v2 .tc8-side-sticky{
    gap:12px!important;
}
body.tc-shell-v2 .tc8-summary-card,
body.tc-shell-v2 .tc8-preview-card{
    padding:16px!important;
}
body.tc-shell-v2 .tc8-summary-card h3,
body.tc-shell-v2 .tc8-preview-card h3{
    margin-top:5px!important;
    line-height:1.2!important;
}
body.tc-shell-v2 .tc8-summary-list{
    margin-top:14px!important;
}
body.tc-shell-v2 .tc8-summary-list>div,
body.tc-shell-v2 .tc8-suggested>div{
    min-height:34px!important;
    align-items:center!important;
}
body.tc-shell-v2 .tc8-preview-total{
    margin-top:14px!important;
}
body.tc-shell-v2 .tc8-preview-breakdown{
    margin-top:10px!important;
}

/* Footer actions */
body.tc-shell-v2 .tc8-form-actions{
    align-items:center!important;
    gap:9px!important;
}
body.tc-shell-v2 .tc8-save,
body.tc-shell-v2 .tc8-cancel{
    min-height:42px!important;
    border-radius:10px!important;
}

/* Mobile: preserve approved responsive behavior */
@media(max-width:720px){
    body.tc-shell-v2 .tc8-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    body.tc-shell-v2 .tc8-session-config,
    body.tc-shell-v2 .tc113-session-flow,
    body.tc-shell-v2 .tc8-summary-card,
    body.tc-shell-v2 .tc8-preview-card{
        padding:14px!important;
    }
    body.tc-shell-v2 .tc8-operation-card>header{
        padding:12px 14px!important;
    }
    body.tc-shell-v2 .tc8-field-grid{
        padding:14px!important;
    }
}

/* RC3.15.6.2.1 — restore approved KPI icons on Nova Operação only */
body.tc-shell-v2 .tc8-session-strip>div{
    position:relative!important;
    padding-right:64px!important;
}
body.tc-shell-v2 .tc8-session-strip>div:last-child{
    border-right:0!important;
}
body.tc-shell-v2 .tc8-session-strip .tc8-kpi-icon{
    position:absolute!important;
    top:18px!important;
    right:18px!important;
    width:34px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border:1px solid rgba(47,125,255,.10)!important;
    border-radius:10px!important;
    background:rgba(47,125,255,.045)!important;
    color:#79aaf5!important;
    letter-spacing:0!important;
    text-transform:none!important;
    box-sizing:border-box!important;
}
body.tc-shell-v2 .tc8-session-strip .tc8-kpi-icon svg{
    width:14px!important;
    height:14px!important;
    stroke-width:1.8!important;
}
@media(max-width:680px){
    body.tc-shell-v2 .tc8-session-strip>div{padding-right:58px!important}
    body.tc-shell-v2 .tc8-session-strip .tc8-kpi-icon{top:16px!important;right:16px!important}
}

/* ==========================================================================
   RC3.15.6.3 — PENTE FINO / OPERAÇÕES
   Visual alignment only. Filters, bulk actions and operational logic untouched.
   ========================================================================== */

.tc-workspace-v2 .tc-workspace-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc-workspace-v2 .tc-workspace-hero>div{min-width:0!important}
.tc-workspace-v2 .tc-workspace-hero h1{margin-top:8px!important;line-height:1.05!important}
.tc-workspace-v2 .tc-workspace-hero p{margin-top:8px!important;line-height:1.55!important}
.tc-workspace-v2 .tc-workspace-primary{flex:0 0 auto!important;align-self:flex-end!important}

/* KPI rhythm only */
.tc-workspace-v2 .tc-workspace-kpis.tc155-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.tc-workspace-v2 .tc-workspace-kpis.tc155-kpis .tc155-kpi-icon{
    top:18px!important;right:18px!important;
}
.tc-workspace-v2 .tc-workspace-kpis.tc155-kpis .tc155-kpi-content{
    min-height:82px!important;
    display:flex!important;flex-direction:column!important;
}
.tc-workspace-v2 .tc-workspace-kpis.tc155-kpis .tc155-kpi-content>small{
    margin-top:auto!important;padding-top:7px!important;
}

/* Filters: preserve approved controls, normalize baseline */
.tc-workspace-v2 .tc-workspace-filter-panel{padding:15px 16px!important}
.tc-workspace-v2 .tc-workspace-filters{align-items:end!important;gap:10px!important}
.tc-workspace-v2 .tc-workspace-filters>label{min-width:0!important}
.tc-workspace-v2 .tc-workspace-filters>label>span{
    display:block!important;margin-bottom:7px!important;line-height:1.2!important
}
.tc-workspace-v2 .tc-workspace-search>div{width:100%!important}
.tc-workspace-v2 .tc-workspace-filter-actions{
    align-items:center!important;align-self:end!important;gap:7px!important
}
.tc-workspace-v2 .tc-workspace-filter-actions button,
.tc-workspace-v2 .tc-workspace-filter-actions a{
    min-height:38px!important;box-sizing:border-box!important
}

/* List header */
.tc-workspace-v2 .tc-workspace-list-head{
    align-items:flex-start!important;gap:18px!important;padding:17px 18px!important
}
.tc-workspace-v2 .tc-workspace-list-head h2{margin-top:5px!important;line-height:1.2!important}
.tc-workspace-v2 .tc-workspace-list-head p{margin-top:6px!important;line-height:1.45!important}

/* Bulk action strip */
.tc-workspace-v2 .bulk-actions-bar{
    align-items:center!important;gap:14px!important;padding:11px 14px!important
}
.tc-workspace-v2 .bulk-actions-count{min-width:0!important;align-items:center!important}
.tc-workspace-v2 .bulk-actions-buttons{flex:0 0 auto!important;align-items:center!important;gap:7px!important}

/* Table alignment / density */
.tc-workspace-v2 .tc-workspace-table{border-collapse:separate!important;border-spacing:0!important}
.tc-workspace-v2 .tc-workspace-table th{
    vertical-align:middle!important;white-space:nowrap!important
}
.tc-workspace-v2 .tc-workspace-table td{vertical-align:middle!important}
.tc-workspace-v2 .tc-workspace-table tbody tr{min-height:54px!important}
.tc-workspace-v2 .bulk-check-cell{text-align:center!important}
.tc-workspace-v2 .bulk-checkbox{vertical-align:middle!important;margin:0!important}
.tc-workspace-v2 .tc-workspace-tags,
.tc-workspace-v2 .operation-cycle-list,
.tc-workspace-v2 .operation-return-list{
    align-items:center!important;gap:5px!important
}
.tc-workspace-v2 .tc-workspace-tags>span,
.tc-workspace-v2 .operation-cycle-pill,
.tc-workspace-v2 .operation-return-pill{
    line-height:1!important;white-space:nowrap!important
}
.tc-workspace-v2 .tc-data-date strong,
.tc-workspace-v2 .tc-data-profit strong{
    white-space:nowrap!important;font-variant-numeric:tabular-nums!important
}
.tc-workspace-v2 .table-actions{align-items:center!important;justify-content:flex-end!important;gap:5px!important}
.tc-workspace-v2 .table-action-btn{
    min-height:30px!important;align-items:center!important;justify-content:center!important
}
.tc-workspace-v2 .table-action-btn svg{flex:0 0 auto!important}

/* Mobile keeps existing responsive composition */
@media(max-width:720px){
    .tc-workspace-v2 .tc-workspace-hero{align-items:flex-start!important;gap:14px!important}
    .tc-workspace-v2 .tc-workspace-primary{align-self:stretch!important}
    .tc-workspace-v2 .tc-workspace-kpis.tc155-kpis>article{min-height:104px!important}
    .tc-workspace-v2 .tc-workspace-kpis.tc155-kpis .tc155-kpi-content{min-height:72px!important}
    .tc-workspace-v2 .tc-workspace-filter-panel{padding:14px!important}
    .tc-workspace-v2 .tc-workspace-list-head{padding:15px!important}
    .tc-workspace-v2 .bulk-actions-bar{align-items:flex-start!important;flex-direction:column!important}
    .tc-workspace-v2 .bulk-actions-buttons{width:100%!important}
}
@media(max-width:520px){
    .tc-workspace-v2 .bulk-actions-buttons{flex-direction:column!important}
    .tc-workspace-v2 .bulk-actions-buttons>*{width:100%!important;justify-content:center!important}
}

/* ==========================================================================
   RC3.15.6.4 — PENTE FINO / CALENDÁRIO
   Visual alignment only. Calendar logic, month navigation and drawer data
   remain untouched.
   ========================================================================== */

.tc-cal3-page{
    gap:14px!important;
}

/* Hero */
.tc-cal3-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc-cal3-hero>div:first-child{
    min-width:0!important;
}
.tc-cal3-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.tc-cal3-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.tc-cal3-hero-actions{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* Toolbar */
.tc-cal3-toolbar{
    align-items:center!important;
    gap:16px!important;
    padding:14px 16px!important;
}
.tc-cal3-month-nav{
    min-width:0!important;
}
.tc-cal3-month-nav>div{
    min-width:0!important;
}
.tc-cal3-month-nav strong{
    white-space:nowrap!important;
}
.tc-cal3-legend{
    align-items:center!important;
    gap:10px!important;
}
.tc-cal3-legend>span{
    align-items:center!important;
    line-height:1!important;
}

/* Calendar grid */
.tc-cal3-calendar{
    border-radius:16px!important;
    overflow:hidden!important;
}
.tc-cal3-weekdays{
    align-items:center!important;
}
.tc-cal3-weekdays>span{
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.tc-cal3-grid{
    align-items:stretch!important;
}
.tc-cal3-day{
    min-height:142px!important;
    padding:12px!important;
    text-align:left!important;
}
.tc-cal3-day header{
    align-items:center!important;
    gap:8px!important;
}
.tc-cal3-day>strong{
    margin-top:14px!important;
    line-height:1.05!important;
}
.tc-cal3-day>p{
    margin-top:5px!important;
    line-height:1.35!important;
}
.tc-cal3-cycle-dots{
    margin-top:12px!important;
    align-items:center!important;
}
.tc-cal3-values{
    margin-top:10px!important;
    gap:6px!important;
}
.tc-cal3-values>span{
    white-space:nowrap!important;
}
.tc-cal3-badge{
    line-height:1!important;
}

/* Summary strip */
.tc-cal3-summary{
    align-items:center!important;
    gap:0!important;
}
.tc-cal3-summary>div{
    min-width:0!important;
}
.tc-cal3-summary-label{
    align-items:center!important;
    gap:10px!important;
}
.tc-cal3-summary-label>div{
    min-width:0!important;
}
.tc-cal3-summary-label strong,
.tc-cal3-summary-label span{
    line-height:1.3!important;
}
.tc-cal3-summary>div:not(.tc-cal3-summary-label):not(.tc-cal3-ring){
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
}
.tc-cal3-ring{
    align-self:center!important;
}

/* Drawer */
.tc-cal3-drawer>header{
    align-items:flex-start!important;
    gap:16px!important;
}
.tc-cal3-drawer>header>div{
    min-width:0!important;
}
.tc-cal3-drawer-body{
    gap:12px!important;
}
.tc-cal3-day-status{
    align-items:center!important;
    gap:8px!important;
}
.tc-cal3-drawer-kpis{
    gap:8px!important;
}
.tc-cal3-drawer-kpis>article{
    min-width:0!important;
}
.tc-cal3-drawer-section{
    border-radius:14px!important;
}
.tc-cal3-section-head{
    align-items:center!important;
    min-height:36px!important;
}
.tc-cal3-cycle-summary,
.tc-cal3-day-operations{
    gap:8px!important;
}

/* Mobile keeps the current approved responsive behavior */
@media(max-width:720px){
    .tc-cal3-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .tc-cal3-hero-actions{
        align-self:stretch!important;
        width:100%!important;
    }
    .tc-cal3-hero-actions>*{
        width:100%!important;
        justify-content:center!important;
    }
    .tc-cal3-toolbar{
        align-items:flex-start!important;
        padding:14px!important;
    }
    .tc-cal3-day{
        min-height:132px!important;
    }
    .tc-cal3-summary{
        align-items:stretch!important;
    }
}

/* ==========================================================================
   RC3.15.6.5 — PENTE FINO / ESTATÍSTICAS
   Visual alignment only. Analytics data, calculations and tabs untouched.
   ========================================================================== */

.tc-stats3-page,
.tc-stats3-panel{
    min-width:0!important;
}

/* Hero */
.tc-stats3-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc-stats3-hero>div:first-child{
    min-width:0!important;
}
.tc-stats3-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.tc-stats3-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.tc-stats3-score{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip */
.tc-stats3-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.tc-stats3-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.tc-stats3-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.tc-stats3-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Tabs */
.tc-stats3-tabs{
    align-items:center!important;
    gap:6px!important;
}
.tc-stats3-tabs a,
.tc-stats3-tabs button{
    min-height:34px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
}

/* Analytical cards */
.tc-stats3-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.tc-stats3-card{
    height:100%!important;
    padding:17px!important;
}
.tc-stats3-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.tc-stats3-card>header>div{
    min-width:0!important;
}
.tc-stats3-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.tc-stats3-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.tc-stats3-card>header>svg{
    flex:0 0 15px!important;
}

/* Summary / rankings */
.tc-stats3-best-grid,
.tc-stats3-month-grid{
    gap:9px!important;
}
.tc-stats3-best-grid>div,
.tc-stats3-month-grid>article{
    min-width:0!important;
}
.tc-stats3-coverage{
    gap:10px!important;
}
.tc-stats3-coverage>div{
    min-width:0!important;
}

/* Tables */
.tc-stats3-card .stats2-table-wrap,
.tc-stats3-table-wrap{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
}
.tc-stats3-card table th,
.tc-stats3-card table td{
    vertical-align:middle!important;
}
.tc-stats3-card table th{
    white-space:nowrap!important;
}
.tc-stats3-card table td strong{
    font-variant-numeric:tabular-nums!important;
}
.tc-stats3-empty,
.stats2-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Mobile keeps approved behavior */
@media(max-width:720px){
    .tc-stats3-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .tc-stats3-score{
        align-self:stretch!important;
        width:100%!important;
        box-sizing:border-box!important;
    }
    .tc-stats3-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .tc-stats3-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .tc-stats3-tabs{
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
        scrollbar-width:thin!important;
        padding-bottom:3px!important;
    }
    .tc-stats3-tabs a,
    .tc-stats3-tabs button{
        flex:0 0 auto!important;
        white-space:nowrap!important;
    }
    .tc-stats3-card{
        padding:15px!important;
    }
}

/* ==========================================================================
   RC3.15.6.6 — PENTE FINO / INTELIGÊNCIA
   Visual alignment only. Intelligence calculations and diagnostics untouched.
   ========================================================================== */

/* Hero */
.rc3-intel-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.rc3-intel-hero-copy{
    min-width:0!important;
}
.rc3-intel-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.rc3-intel-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.rc3-intel-actions{
    margin-top:14px!important;
    align-items:center!important;
    gap:8px!important;
}
.rc3-intel-score{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip */
.rc3-intel-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.rc3-intel-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.rc3-intel-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.rc3-intel-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Cards */
.rc3-intel-overview,
.rc3-intel-grid,
.rc3-intel-pillars{
    gap:12px!important;
    align-items:stretch!important;
}
.rc3-intel-card{
    height:100%!important;
    padding:17px!important;
}
.rc3-intel-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-intel-card>header>div{
    min-width:0!important;
}
.rc3-intel-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.rc3-intel-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.rc3-intel-card-icon{
    flex:0 0 34px!important;
}

/* Today / pillars */
.rc3-intel-today{
    gap:8px!important;
}
.rc3-intel-today>div,
.rc3-intel-pillars>article{
    min-width:0!important;
}
.rc3-intel-pillars>article{
    height:100%!important;
}

/* Lists / alerts / recommendations */
.rc3-intel-list,
.rc3-intel-alerts,
.rc3-intel-changes,
.rc3-intel-recommendations,
.rc3-intel-tasks,
.rc3-intel-timeline,
.rc3-intel-achievements{
    gap:8px!important;
}
.rc3-intel-list-item,
.rc3-intel-alerts>*,
.rc3-intel-changes>*,
.rc3-intel-recommendations>*,
.rc3-intel-tasks>*,
.rc3-intel-timeline>*,
.rc3-intel-achievements>*{
    min-width:0!important;
}
.rc3-intel-list-item{
    align-items:flex-start!important;
}

/* Radar / progress */
.rc3-intel-radar{
    min-width:0!important;
    width:100%!important;
}
.rc3-intel-week-score{
    font-variant-numeric:tabular-nums!important;
}
.rc3-intel-week-track{
    margin-top:12px!important;
}

/* Mobile */
@media(max-width:720px){
    .rc3-intel-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .rc3-intel-score{
        width:100%!important;
        align-self:stretch!important;
        box-sizing:border-box!important;
    }
    .rc3-intel-actions{
        width:100%!important;
    }
    .rc3-intel-actions>*{
        flex:1 1 auto!important;
        justify-content:center!important;
    }
    .rc3-intel-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .rc3-intel-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .rc3-intel-card{
        padding:15px!important;
    }
}

/* ==========================================================================
   RC3.15.6.7 — PENTE FINO / TRADER X-RAY
   Visual refinement only. Analytical logic and calculations untouched.
   ========================================================================== */

/* Hero */
.rc3-xray-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.rc3-xray-hero>div:first-child{
    min-width:0!important;
}
.rc3-xray-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.rc3-xray-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.rc3-xray-score{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip — preserve the approved X-Ray pattern */
.rc3-xray-kpis>article{
    min-height:122px!important;
    padding:18px 62px 18px 18px!important;
}
.rc3-xray-kpis article>svg{
    top:18px!important;
    right:18px!important;
}
.rc3-xray-kpis article>span{
    line-height:1.2!important;
}
.rc3-xray-kpis article>strong{
    margin-top:10px!important;
    line-height:1.08!important;
}
.rc3-xray-kpis article>small{
    margin-top:7px!important;
    line-height:1.4!important;
}

/* Analytical cards */
.rc3-xray-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.rc3-xray-card{
    height:100%!important;
    padding:17px!important;
}
.rc3-xray-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-xray-card>header>div{
    min-width:0!important;
}
.rc3-xray-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.rc3-xray-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.rc3-xray-card-icon{
    flex:0 0 34px!important;
}

/* Diagnosis / context */
.rc3-xray-diagnosis-copy{
    padding:15px!important;
}
.rc3-xray-diagnosis-copy p{
    line-height:1.65!important;
}
.rc3-xray-context{
    gap:8px!important;
}
.rc3-xray-context>div{
    min-width:0!important;
}

/* Lists */
.rc3-xray-list,
.rc3-xray-recommendations{
    gap:8px!important;
}
.rc3-xray-list>*,
.rc3-xray-recommendations>*{
    min-width:0!important;
}

/* Bars / monthly evolution */
.rc3-xray-bars{
    gap:9px!important;
}
.rc3-xray-bars>*{
    min-width:0!important;
}
.rc3-xray-months{
    gap:9px!important;
}
.rc3-xray-months>article{
    min-width:0!important;
}
.rc3-xray-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Footer */
.rc3-xray-footer{
    align-items:center!important;
    gap:14px!important;
}
.rc3-xray-footer>div{
    min-width:0!important;
}
.rc3-xray-footer>a{
    flex:0 0 auto!important;
}

/* Mobile */
@media(max-width:720px){
    .rc3-xray-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .rc3-xray-score{
        width:100%!important;
        align-self:stretch!important;
        box-sizing:border-box!important;
    }
    .rc3-xray-kpis>article{
        min-height:104px!important;
        padding:16px 58px 16px 16px!important;
    }
    .rc3-xray-kpis article>svg{
        top:16px!important;
        right:16px!important;
    }
    .rc3-xray-card{
        padding:15px!important;
    }
    .rc3-xray-footer{
        align-items:flex-start!important;
        flex-direction:column!important;
    }
}

/* ==========================================================================
   RC3.15.6.8 — PENTE FINO / INSIGHTS
   Visual alignment only. Insight logic and calculations remain untouched.
   ========================================================================== */

/* Hero */
.rc3-insights-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.rc3-insights-hero>div:first-child{
    min-width:0!important;
}
.rc3-insights-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.rc3-insights-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.rc3-insights-hero-meta{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip */
.rc3-insights-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.rc3-insights-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.rc3-insights-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.rc3-insights-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Main cards */
.rc3-insights-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.rc3-insights-card{
    height:100%!important;
    padding:17px!important;
}
.rc3-insights-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-insights-card>header>div{
    min-width:0!important;
}
.rc3-insights-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.rc3-insights-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.rc3-insights-icon{
    flex:0 0 34px!important;
}

/* Diagnosis / score */
.rc3-insights-diagnosis-grid,
.rc3-insights-score-details{
    gap:8px!important;
}
.rc3-insights-diagnosis-grid>*,
.rc3-insights-score-details>*{
    min-width:0!important;
}
.rc3-insights-score-main{
    align-items:flex-end!important;
    gap:12px!important;
}
.rc3-insights-score-track{
    margin-top:12px!important;
}

/* Sections / records */
.rc3-insights-section{
    padding:17px!important;
}
.rc3-insights-section-head{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-insights-section-head>div{
    min-width:0!important;
}
.rc3-insights-records,
.rc3-insights-records-4{
    gap:8px!important;
}
.rc3-insights-records>*{
    min-width:0!important;
}

/* Feed / smart list */
.rc3-insights-feed,
.rc3-insights-smartlist{
    gap:8px!important;
}
.rc3-insights-feed>*,
.rc3-insights-smartlist>*{
    min-width:0!important;
}

/* Table */
.rc3-insights-table-card{
    overflow:hidden!important;
}
.rc3-insights-table-wrap{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
}
.rc3-insights-table-wrap th,
.rc3-insights-table-wrap td{
    vertical-align:middle!important;
}
.rc3-insights-table-wrap th{
    white-space:nowrap!important;
}
.rc3-insights-table-wrap td strong{
    font-variant-numeric:tabular-nums!important;
}
.rc3-insights-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Mobile */
@media(max-width:720px){
    .rc3-insights-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .rc3-insights-hero-meta{
        width:100%!important;
        align-self:stretch!important;
        box-sizing:border-box!important;
    }
    .rc3-insights-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .rc3-insights-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .rc3-insights-card,
    .rc3-insights-section{
        padding:15px!important;
    }
}

/* ==========================================================================
   RC3.15.6.9 — PENTE FINO / RELATÓRIOS
   Visual alignment only. PDF generation, report data and logic untouched.
   ========================================================================== */

/* Hero */
.rc3-reports-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.rc3-reports-hero>div:first-child{
    min-width:0!important;
}
.rc3-reports-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.rc3-reports-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.rc3-reports-filter{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}
.rc3-reports-filter label{
    line-height:1.2!important;
}

/* KPI strip */
.rc3-reports-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.rc3-reports-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.rc3-reports-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.rc3-reports-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Product cards */
.rc3-reports-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.rc3-reports-card{
    height:100%!important;
    padding:17px!important;
}
.rc3-reports-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-reports-card>header>div{
    min-width:0!important;
}
.rc3-reports-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.rc3-reports-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.rc3-reports-icon{
    flex:0 0 34px!important;
}

/* Report product metadata/actions */
.rc3-reports-product-meta{
    gap:8px!important;
}
.rc3-reports-product-meta>*{
    min-width:0!important;
}
.rc3-reports-product-actions{
    align-items:center!important;
    gap:8px!important;
}
.rc3-reports-product-actions>*{
    min-height:38px!important;
}

/* Smart list / ranking */
.rc3-reports-smartlist,
.rc3-reports-ranking{
    gap:8px!important;
}
.rc3-reports-smartlist>*,
.rc3-reports-ranking>*{
    min-width:0!important;
}

/* Preview table */
.rc3-reports-preview{
    overflow:hidden!important;
}
.rc3-reports-table-wrap{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
}
.rc3-reports-table-wrap th,
.rc3-reports-table-wrap td{
    vertical-align:middle!important;
}
.rc3-reports-table-wrap th{
    white-space:nowrap!important;
}
.rc3-reports-table-wrap td strong{
    font-variant-numeric:tabular-nums!important;
}
.rc3-reports-decisions{
    align-items:center!important;
    gap:5px!important;
}
.rc3-reports-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Mobile */
@media(max-width:720px){
    .rc3-reports-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .rc3-reports-filter{
        width:100%!important;
        align-self:stretch!important;
    }
    .rc3-reports-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .rc3-reports-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .rc3-reports-card{
        padding:15px!important;
    }
    .rc3-reports-product-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .rc3-reports-product-actions>*{
        width:100%!important;
        justify-content:center!important;
    }
}

/* ==========================================================================
   RC3.15.6.10 — PENTE FINO / FINANCEIRO
   Visual alignment only. Financial calculations and movement logic untouched.
   ========================================================================== */

/* Hero */
.rc3-finance-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.rc3-finance-hero>div:first-child{
    min-width:0!important;
}
.rc3-finance-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.rc3-finance-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.rc3-finance-hero-actions{
    flex:0 0 auto!important;
    align-self:flex-end!important;
    align-items:center!important;
    gap:8px!important;
}

/* KPI strip */
.rc3-finance-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.rc3-finance-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.rc3-finance-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.rc3-finance-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Main cards */
.rc3-finance-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.rc3-finance-card{
    height:100%!important;
    padding:17px!important;
}
.rc3-finance-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-finance-card>header>div{
    min-width:0!important;
}
.rc3-finance-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.rc3-finance-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.rc3-finance-icon{
    flex:0 0 34px!important;
}

/* Movement form */
.rc3-finance-form{
    align-items:end!important;
    gap:10px!important;
}
.rc3-finance-form label{
    min-width:0!important;
}
.rc3-finance-form label>span{
    line-height:1.2!important;
}
.rc3-finance-form-actions{
    align-items:center!important;
    gap:8px!important;
}
.rc3-finance-form-actions .btn,
.rc3-finance-form-actions button{
    min-height:38px!important;
}

/* Composition / summary */
.rc3-finance-composition{
    gap:8px!important;
}
.rc3-finance-composition>*{
    min-width:0!important;
}
.rc3-finance-summary{
    height:auto!important;
}
.rc3-finance-summary-grid{
    gap:8px!important;
}
.rc3-finance-summary-grid>*{
    min-width:0!important;
}

/* History */
.rc3-finance-history-head{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.rc3-finance-history-head>div{
    min-width:0!important;
}
.rc3-finance-history-filter{
    flex:0 0 auto!important;
}
.rc3-finance-timeline{
    gap:8px!important;
}
.rc3-finance-movement{
    align-items:center!important;
    gap:10px!important;
}
.rc3-finance-movement>div{
    min-width:0!important;
}
.rc3-finance-movement strong,
.rc3-finance-movement .amount{
    font-variant-numeric:tabular-nums!important;
    white-space:nowrap!important;
}
.rc3-finance-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Mobile */
@media(max-width:720px){
    .rc3-finance-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .rc3-finance-hero-actions{
        width:100%!important;
        align-self:stretch!important;
    }
    .rc3-finance-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .rc3-finance-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .rc3-finance-card{
        padding:15px!important;
    }
    .rc3-finance-form-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .rc3-finance-form-actions>*{
        width:100%!important;
        justify-content:center!important;
    }
    .rc3-finance-history-filter{
        width:100%!important;
    }
}

/* ==========================================================================
   RC3.15.6.11 — PENTE FINO / FECHAMENTO MENSAL
   Visual alignment only. Closing calculations and business logic untouched.
   ========================================================================== */

/* Hero */
.tc-route-fechamento-mensal .tc-close-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc-route-fechamento-mensal .tc-close-hero-copy{
    min-width:0!important;
}
.tc-route-fechamento-mensal .tc-close-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.tc-route-fechamento-mensal .tc-close-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.tc-route-fechamento-mensal .tc-close-period{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip */
.tc-route-fechamento-mensal .tc-close-kpis>.tc-close-kpi{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.tc-route-fechamento-mensal .tc-close-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.tc-route-fechamento-mensal .tc-close-kpi>div:last-child{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.tc-route-fechamento-mensal .tc-close-kpi>div:last-child>em{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Overview */
.tc-route-fechamento-mensal .tc-close-overview-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.tc-route-fechamento-mensal .tc-close-panel{
    height:100%!important;
    padding:17px!important;
}
.tc-route-fechamento-mensal .tc-close-panel>header,
.tc-route-fechamento-mensal .tc-close-confirm-head{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.tc-route-fechamento-mensal .tc-close-panel>header>div,
.tc-route-fechamento-mensal .tc-close-confirm-head>div{
    min-width:0!important;
}
.tc-route-fechamento-mensal .tc-close-panel h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.tc-route-fechamento-mensal .tc-close-panel header p{
    margin-top:5px!important;
    line-height:1.5!important;
}

/* Summary/highlights */
.tc-route-fechamento-mensal .tc-close-summary-result{
    margin-top:12px!important;
}
.tc-route-fechamento-mensal .tc-close-summary-stats,
.tc-route-fechamento-mensal .tc-close-highlight-grid{
    gap:8px!important;
}
.tc-route-fechamento-mensal .tc-close-summary-stats>*,
.tc-route-fechamento-mensal .tc-close-highlight-grid>*{
    min-width:0!important;
}

/* Confirmation/form */
.tc-route-fechamento-mensal .tc-close-confirm-badge{
    flex:0 0 auto!important;
    align-self:flex-start!important;
}
.tc-route-fechamento-mensal .tc-close-form{
    align-items:end!important;
    gap:10px!important;
}
.tc-route-fechamento-mensal .tc-close-form label{
    min-width:0!important;
}
.tc-route-fechamento-mensal .tc-close-form label>span{
    line-height:1.2!important;
}
.tc-route-fechamento-mensal .tc-close-form-footer{
    align-items:center!important;
    gap:14px!important;
}
.tc-route-fechamento-mensal .tc-close-form-footer>div{
    min-width:0!important;
}
.tc-route-fechamento-mensal .tc-close-form-footer .btn{
    flex:0 0 auto!important;
}

/* History */
.tc-route-fechamento-mensal .tc-close-history{
    height:auto!important;
    overflow:hidden!important;
}
.tc-route-fechamento-mensal .tc-close-history-head{
    align-items:flex-start!important;
    gap:14px!important;
}
.tc-route-fechamento-mensal .tc-close-history-head>div:first-child{
    min-width:0!important;
}
.tc-route-fechamento-mensal .tc-close-history-count{
    flex:0 0 auto!important;
}
.tc-route-fechamento-mensal .tc-close-table-wrap{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
}
.tc-route-fechamento-mensal .tc-close-table th,
.tc-route-fechamento-mensal .tc-close-table td{
    vertical-align:middle!important;
}
.tc-route-fechamento-mensal .tc-close-table th{
    white-space:nowrap!important;
}
.tc-route-fechamento-mensal .tc-close-month{
    align-items:center!important;
    gap:7px!important;
}
.tc-route-fechamento-mensal .tc-close-month strong,
.tc-route-fechamento-mensal .tc-close-return{
    font-variant-numeric:tabular-nums!important;
}
.tc-route-fechamento-mensal .tc-close-empty{
    min-height:96px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Mobile */
@media(max-width:720px){
    .tc-route-fechamento-mensal .tc-close-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .tc-route-fechamento-mensal .tc-close-period{
        width:100%!important;
        align-self:stretch!important;
        box-sizing:border-box!important;
    }
    .tc-route-fechamento-mensal .tc-close-kpis>.tc-close-kpi{
        min-height:104px!important;
    }
    .tc-route-fechamento-mensal .tc-close-kpi>div:last-child{
        min-height:72px!important;
    }
    .tc-route-fechamento-mensal .tc-close-panel{
        padding:15px!important;
    }
    .tc-route-fechamento-mensal .tc-close-confirm-head,
    .tc-route-fechamento-mensal .tc-close-form-footer,
    .tc-route-fechamento-mensal .tc-close-history-head{
        flex-direction:column!important;
        align-items:flex-start!important;
    }
    .tc-route-fechamento-mensal .tc-close-form-footer .btn{
        width:100%!important;
        justify-content:center!important;
    }
}

/* ==========================================================================
   RC3.15.6.12 — PENTE FINO / CONFIGURAÇÕES
   Visual alignment only. Settings, account and security logic untouched.
   ========================================================================== */

/* Hero */
.tc-route-configuracoes .rc3-settings-hero{
    align-items:flex-end!important;
    gap:24px!important;
}
.tc-route-configuracoes .rc3-settings-hero>div:first-child{
    min-width:0!important;
}
.tc-route-configuracoes .rc3-settings-hero h1{
    margin-top:8px!important;
    line-height:1.05!important;
}
.tc-route-configuracoes .rc3-settings-hero p{
    margin-top:8px!important;
    line-height:1.55!important;
}
.tc-route-configuracoes .rc3-settings-badge{
    flex:0 0 auto!important;
    align-self:flex-end!important;
}

/* KPI strip */
.tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis>article{
    min-height:122px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
}
.tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis .rc3-polish-kpi-icon{
    top:18px!important;
    right:18px!important;
}
.tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis>article>div{
    min-height:82px!important;
    display:flex!important;
    flex-direction:column!important;
}
.tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis>article>div>small{
    margin-top:auto!important;
    padding-top:7px!important;
}

/* Cards / grids */
.tc-route-configuracoes .rc3-settings-grid,
.tc-route-configuracoes .rc3-settings-security{
    gap:12px!important;
    align-items:stretch!important;
}
.tc-route-configuracoes .rc3-settings-card{
    height:100%!important;
    padding:17px!important;
}
.tc-route-configuracoes .rc3-settings-card>header{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.tc-route-configuracoes .rc3-settings-card>header>div{
    min-width:0!important;
}
.tc-route-configuracoes .rc3-settings-card h2{
    margin-top:5px!important;
    line-height:1.2!important;
}
.tc-route-configuracoes .rc3-settings-card header p{
    margin-top:5px!important;
    line-height:1.5!important;
}
.tc-route-configuracoes .rc3-settings-icon{
    flex:0 0 34px!important;
}

/* Forms */
.tc-route-configuracoes .rc3-settings-form{
    align-items:end!important;
    gap:10px!important;
}
.tc-route-configuracoes .rc3-settings-form label{
    min-width:0!important;
}
.tc-route-configuracoes .rc3-settings-form label>span{
    line-height:1.2!important;
}
.tc-route-configuracoes .rc3-settings-form-actions{
    align-items:center!important;
    gap:12px!important;
}
.tc-route-configuracoes .rc3-settings-form-actions small{
    min-width:0!important;
}
.tc-route-configuracoes .rc3-settings-form-actions .btn,
.tc-route-configuracoes .rc3-settings-form-actions button{
    flex:0 0 auto!important;
    min-height:38px!important;
}

/* Account / note */
.tc-route-configuracoes .rc3-settings-account{
    gap:7px!important;
}
.tc-route-configuracoes .rc3-settings-account>div{
    min-width:0!important;
    align-items:center!important;
}
.tc-route-configuracoes .rc3-settings-account strong{
    min-width:0!important;
    overflow-wrap:anywhere!important;
}
.tc-route-configuracoes .rc3-settings-note{
    gap:10px!important;
    margin-top:10px!important;
}
.tc-route-configuracoes .rc3-settings-note>div{
    min-width:0!important;
}
.tc-route-configuracoes .rc3-settings-alert{
    line-height:1.45!important;
}

/* Mobile */
@media(max-width:720px){
    .tc-route-configuracoes .rc3-settings-hero{
        align-items:flex-start!important;
        gap:14px!important;
    }
    .tc-route-configuracoes .rc3-settings-badge{
        align-self:flex-start!important;
    }
    .tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis>article{
        min-height:104px!important;
    }
    .tc-route-configuracoes .rc3-settings-kpis.rc3-polish-kpis>article>div{
        min-height:72px!important;
    }
    .tc-route-configuracoes .rc3-settings-card{
        padding:15px!important;
    }
    .tc-route-configuracoes .rc3-settings-form-actions{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .tc-route-configuracoes .rc3-settings-form-actions .btn,
    .tc-route-configuracoes .rc3-settings-form-actions button{
        width:100%!important;
        justify-content:center!important;
    }
    .tc-route-configuracoes .rc3-settings-account>div{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:5px!important;
    }
    .tc-route-configuracoes .rc3-settings-account strong{
        text-align:left!important;
    }
}

/* ==========================================================================
   RC3 — AUDITORIA VISUAL / DISTRIBUIÇÃO POR FAMÍLIA DE CICLOS
   Secondary metric only: preserves the current win rate as the main metric.
   ========================================================================== */
.tc7-cycle-family-share{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-top:10px!important;
    padding-top:9px!important;
    border-top:1px solid rgba(255,255,255,.045)!important;
}
.tc7-cycle-family-share span{
    color:#64778f!important;
    font-size:8px!important;
    font-weight:700!important;
    line-height:1.2!important;
    letter-spacing:.035em!important;
}
.tc7-cycle-family-share strong{
    color:#9bb0c8!important;
    font-size:10px!important;
    font-weight:700!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums!important;
}
@media(max-width:700px){
    .tc7-cycle-family-share{
        margin-top:9px!important;
        padding-top:8px!important;
    }
}

/* RC3.15.7.2 — distribuição da família integrada ao Win Rate */
.tc7-cycle-score .tc7-cycle-family-inline{
    display:block!important;
    margin-top:5px!important;
    color:#8295ab!important;
    font-size:9px!important;
    font-weight:700!important;
    line-height:1.25!important;
    letter-spacing:.02em!important;
    font-variant-numeric:tabular-nums!important;
}
.tc7-cycle-family-share{display:none!important}

/* RC3.15.7.3 — distribuição como leitura principal; win rate secundário */
.tc7-cycle-score .tc7-cycle-winrate-inline{
    display:block!important;
    margin-top:5px!important;
    color:#8295ab!important;
    font-size:9px!important;
    font-weight:700!important;
    line-height:1.25!important;
    letter-spacing:.02em!important;
    font-variant-numeric:tabular-nums!important;
}
.tc7-cycle-score .tc7-cycle-family-inline{display:none!important}

/* ==========================================================================
   RC3.15.7.7 — COCKPIT / INTELIGÊNCIA DIÁRIA — AUDITORIA VISUAL
   Somente alinhamento, densidade e hierarquia. Conteúdo/lógica intactos.
   ========================================================================== */
.tc10-trade-coach .tc10-head{
    align-items:flex-start!important;
    margin-bottom:14px!important;
}
.tc10-trade-coach .tc10-head>div{
    min-width:0!important;
}
.tc10-trade-coach .tc10-head h2{
    margin-top:5px!important;
    line-height:1.15!important;
}
.tc10-trade-coach .tc10-head p{
    margin-top:5px!important;
    line-height:1.5!important;
}

.tc10-trade-coach .tc10-coach-grid{
    gap:10px!important;
    align-items:stretch!important;
}
.tc10-trade-coach .tc10-coach-card{
    min-height:128px!important;
    height:100%!important;
    padding:16px!important;
    align-items:flex-start!important;
    gap:12px!important;
    box-sizing:border-box!important;
}
.tc10-trade-coach .tc10-coach-card>.tc10-icon{
    flex:0 0 auto!important;
    margin-top:1px!important;
}
.tc10-trade-coach .tc10-coach-card>div{
    min-width:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
}
.tc10-trade-coach .tc10-coach-card>div>span{
    line-height:1.2!important;
}
.tc10-trade-coach .tc10-coach-card h3{
    margin-top:7px!important;
    line-height:1.3!important;
}
.tc10-trade-coach .tc10-coach-card p{
    margin-top:auto!important;
    padding-top:9px!important;
    line-height:1.5!important;
}
.tc10-trade-coach .tc10-streak strong{
    margin-top:6px!important;
    line-height:1!important;
}
.tc10-trade-coach .tc10-streak h3{
    margin-top:4px!important;
}

@media(max-width:720px){
    .tc10-trade-coach .tc10-coach-card{
        min-height:112px!important;
        padding:15px!important;
    }
}

/* ==========================================================================
   RC3.15.7.8 — INTELIGÊNCIA DIÁRIA / SAFE LAYOUT FIX
   Mantém todo o conteúdo dentro dos cards e remove o overflow criado no 15.7.7.
   ========================================================================== */
.tc10-trade-coach .tc10-coach-card{
    min-height:0!important;
    height:auto!important;
    padding:16px!important;
    overflow:hidden!important;
}
.tc10-trade-coach .tc10-coach-card>div{
    height:auto!important;
    min-height:0!important;
    display:block!important;
}
.tc10-trade-coach .tc10-coach-card p{
    margin-top:9px!important;
    padding-top:0!important;
}
.tc10-trade-coach .tc10-streak strong{
    display:block!important;
    margin-top:6px!important;
}
.tc10-trade-coach .tc10-streak h3{
    margin-top:4px!important;
}
@media(max-width:720px){
    .tc10-trade-coach .tc10-coach-card{
        min-height:0!important;
        height:auto!important;
    }
}

/* ==========================================================================
   RC3.15.7.10 — COCKPIT INTELLIGENCE CLEAN POLISH
   Baseado na 15.7.8 funcional. Sem duplicações, sem alteração de conteúdo.
   ========================================================================== */

/* ---------- Cards superiores: compactos e alinhados ---------- */
.tc10-trade-coach .tc10-coach-grid{
    gap:10px!important;
    align-items:stretch!important;
}
.tc10-trade-coach .tc10-coach-card{
    min-height:126px!important;
    height:auto!important;
    padding:16px!important;
    border-radius:13px!important;
    align-items:flex-start!important;
    gap:12px!important;
    overflow:hidden!important;
}
.tc10-trade-coach .tc10-coach-card>.tc10-icon{
    flex:0 0 auto!important;
    margin-top:0!important;
}
.tc10-trade-coach .tc10-coach-card>div{
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    display:block!important;
}
.tc10-trade-coach .tc10-coach-card>div>span{
    line-height:1.2!important;
}
.tc10-trade-coach .tc10-coach-card h3{
    margin-top:6px!important;
    line-height:1.28!important;
}
.tc10-trade-coach .tc10-coach-card p{
    margin-top:9px!important;
    padding-top:0!important;
    line-height:1.5!important;
}
.tc10-trade-coach .tc10-streak strong{
    display:block!important;
    margin-top:6px!important;
    line-height:1!important;
}
.tc10-trade-coach .tc10-streak h3{
    margin-top:4px!important;
}

/* ---------- Linha inferior: calendário / recordes / diário ---------- */
.tc10-trade-coach .tc10-grid{
    align-items:stretch!important;
    gap:10px!important;
}
.tc10-trade-coach .tc10-heatmap,
.tc10-trade-coach .tc10-records,
.tc10-trade-coach .tc10-diary{
    padding:16px!important;
    border-radius:13px!important;
    box-sizing:border-box!important;
}

/* cabeçalhos únicos e alinhados */
.tc10-trade-coach .tc10-card-head{
    align-items:flex-start!important;
    gap:12px!important;
    margin-bottom:12px!important;
}
.tc10-trade-coach .tc10-card-head>div{
    min-width:0!important;
}
.tc10-trade-coach .tc10-card-head h3{
    margin-top:4px!important;
    line-height:1.2!important;
}
.tc10-trade-coach .tc10-card-head>strong{
    flex:0 0 auto!important;
}

/* calendário */
.tc10-trade-coach .tc10-weekdays{
    margin:8px 0 7px!important;
}
.tc10-trade-coach .tc10-calendar{
    gap:5px!important;
}
.tc10-trade-coach .tc10-calendar i{
    min-height:0!important;
    aspect-ratio:1/1!important;
    display:grid!important;
    place-items:center!important;
    border-radius:7px!important;
}
.tc10-trade-coach .tc10-legend{
    margin-top:9px!important;
}

/* recordes */
.tc10-trade-coach .tc10-record-list{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
}
.tc10-trade-coach .tc10-record-list>div{
    min-height:62px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding:10px 0!important;
}
.tc10-trade-coach .tc10-record-list>div+div{
    border-top:1px solid rgba(255,255,255,.045)!important;
}

/* diário */
.tc10-trade-coach .tc10-diary blockquote{
    margin-top:10px!important;
    line-height:1.55!important;
}
.tc10-trade-coach .tc10-diary-empty p{
    margin-top:10px!important;
    line-height:1.55!important;
}
.tc10-trade-coach .tc10-diary>a,
.tc10-trade-coach .tc10-diary-empty a{
    margin-top:9px!important;
}

/* ---------- Mobile ---------- */
@media(max-width:720px){
    .tc10-trade-coach .tc10-coach-card{
        min-height:0!important;
        height:auto!important;
        padding:15px!important;
    }
    .tc10-trade-coach .tc10-heatmap,
    .tc10-trade-coach .tc10-records,
    .tc10-trade-coach .tc10-diary{
        padding:15px!important;
    }
}

/* ==========================================================================
   RC3.15.7.11 — COCKPIT / ÚLTIMAS OPERAÇÕES + RESUMO DO DIA
   Auditoria visual: alinhamento e densidade apenas. Conteúdo/lógica intactos.
   ========================================================================== */

.tc6-lower-grid{
    gap:12px!important;
    align-items:stretch!important;
}
.tc6-recent,
.tc6-summary{
    height:100%!important;
    border-radius:14px!important;
}

/* Últimas operações */
.tc6-recent{
    padding:16px!important;
}
.tc6-recent .tc6-section-head{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:12px!important;
}
.tc6-recent .tc6-section-head>div{
    min-width:0!important;
}
.tc6-recent .tc6-section-head h2{
    margin-top:4px!important;
    line-height:1.2!important;
}
.tc6-recent .tc6-section-head>a{
    flex:0 0 auto!important;
    margin-top:1px!important;
}
.tc6-operation-feed{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
}
.tc6-operation-item{
    min-height:50px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:9px 0!important;
}
.tc6-operation-item+.tc6-operation-item{
    border-top:1px solid rgba(255,255,255,.04)!important;
}
.tc6-operation-dot{
    align-self:center!important;
}
.tc6-operation-main{
    min-width:0!important;
}
.tc6-operation-main strong{
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.25!important;
}
.tc6-operation-main small{
    display:block!important;
    margin-top:3px!important;
    line-height:1.2!important;
}
.tc6-operation-result{
    min-width:72px!important;
    text-align:right!important;
}
.tc6-operation-result em,
.tc6-operation-result strong{
    display:block!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important;
}
.tc6-operation-result strong{
    margin-top:3px!important;
}
.tc6-operation-item time{
    min-width:34px!important;
    text-align:right!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important;
}
.tc6-empty{
    min-height:118px!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
}

/* Resumo do dia */
.tc6-summary{
    padding:16px!important;
}
.tc6-summary>header{
    margin-bottom:12px!important;
}
.tc6-summary>header h2{
    margin-top:4px!important;
    line-height:1.2!important;
}
.tc6-summary-grid{
    gap:8px!important;
}
.tc6-summary-grid>div{
    min-width:0!important;
    min-height:58px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding:10px!important;
}
.tc6-summary-grid span{
    line-height:1.2!important;
}
.tc6-summary-grid strong{
    margin-top:5px!important;
    line-height:1.1!important;
    font-variant-numeric:tabular-nums!important;
}
.tc6-summary-note{
    margin-top:10px!important;
    align-items:flex-start!important;
    gap:9px!important;
    padding:11px!important;
}
.tc6-summary-note>div{
    min-width:0!important;
}
.tc6-summary-note strong{
    line-height:1.25!important;
}
.tc6-summary-note p{
    margin-top:4px!important;
    line-height:1.45!important;
}

@media(max-width:720px){
    .tc6-recent,
    .tc6-summary{
        padding:15px!important;
    }
    .tc6-operation-item{
        grid-template-columns:auto minmax(0,1fr) auto!important;
    }
    .tc6-operation-item time{
        grid-column:2 / 4!important;
        justify-self:end!important;
        margin-top:-3px!important;
    }
}


/* ==========================================================================\n   RC3.15.7.12 — COCKPIT / EVOLUÇÃO DA BANCA — PREMIUM CHART POLISH\n   Mantém dados e escala; melhora acabamento, hierarquia e leitura.\n   ========================================================================== */
.tc6-chart-panel{
    position:relative!important;
    overflow:hidden!important;
    background:
        radial-gradient(circle at 82% 18%,rgba(47,125,255,.055),transparent 28%),
        linear-gradient(180deg,rgba(12,21,34,.94),rgba(7,14,24,.96))!important;
    border-color:rgba(126,151,181,.10)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}
.tc6-chart-panel .tc6-section-head{margin-bottom:0!important}
.tc6-chart-title small.tc6-bank-growth{
    display:flex!important;
    align-items:baseline!important;
    gap:5px!important;
    margin-top:6px!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:0!important;
    text-transform:none!important;
}
.tc6-chart-title .tc6-bank-growth em{
    color:#61758e!important;
    font-size:9px!important;
    font-style:normal!important;
    font-weight:600!important;
}
.tc6-chart-panel .tc6-current{
    min-width:118px!important;
    padding:9px 12px 10px 14px!important;
    border:1px solid rgba(126,151,181,.10)!important;
    border-radius:11px!important;
    background:rgba(7,15,26,.58)!important;
    box-shadow:inset 3px 0 0 rgba(50,213,131,.78)!important;
}
.tc6-chart-panel .tc6-current strong{
    margin-top:5px!important;
    color:#e8f0fa!important;
    font-size:14px!important;
    font-variant-numeric:tabular-nums!important;
}
.tc6-chart{height:370px!important;margin-top:2px!important}
.tc6-chart .apexcharts-tooltip{
    border:1px solid rgba(126,151,181,.14)!important;
    border-radius:10px!important;
    background:rgba(7,14,24,.96)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.32)!important;
}
.tc6-chart .apexcharts-tooltip-title{
    border-bottom:1px solid rgba(126,151,181,.10)!important;
    background:transparent!important;
    color:#8296ae!important;
    font-family:Sora,sans-serif!important;
}
.tc6-chart .apexcharts-tooltip-text{
    color:#e7eff9!important;
    font-family:Sora,sans-serif!important;
}
@media(max-width:720px){
    .tc6-chart-panel .tc6-current{min-width:104px!important;padding:8px 10px 9px 12px!important}
    .tc6-chart{height:320px!important}
}

/* ==========================================================================
   RC3.15.7.14 — COCKPIT / CALENDÁRIO PREMIUM
   Mais contexto mensal sem aumentar a estrutura do dashboard.
   ========================================================================== */
.tc10-trade-coach .tc10-calendar-head{
    align-items:flex-start!important;
}
.tc10-trade-coach .tc10-calendar-head>div{
    min-width:0!important;
}
.tc10-trade-coach .tc10-calendar-head>strong{
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:7px 9px!important;
    border:1px solid rgba(126,151,181,.09)!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.018)!important;
    white-space:nowrap!important;
}
.tc10-trade-coach .tc10-calendar-head>strong svg{
    width:12px!important;
    height:12px!important;
    color:#6fa5f8!important;
}
.tc10-calendar-stats{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin-top:7px!important;
}
.tc10-calendar-stats>span{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    padding:3px 6px!important;
    border-radius:999px!important;
    font-size:8px!important;
    font-weight:700!important;
    line-height:1!important;
    background:rgba(255,255,255,.025)!important;
}
.tc10-calendar-stats .positive{color:#65d998!important;background:rgba(46,207,120,.07)!important}
.tc10-calendar-stats .negative{color:#e88194!important;background:rgba(240,91,115,.07)!important}
.tc10-calendar-stats .neutral{color:#d6a45f!important;background:rgba(232,177,93,.06)!important}

.tc10-trade-coach .tc10-calendar>i{
    grid-template-rows:1fr auto!important;
    align-items:center!important;
    justify-items:center!important;
    padding:7px 5px 5px!important;
    transition:border-color .18s ease,background .18s ease,transform .18s ease!important;
}
.tc10-trade-coach .tc10-calendar>i:not(.blank):hover{
    transform:translateY(-1px)!important;
    border-color:rgba(111,165,248,.22)!important;
}
.tc10-trade-coach .tc10-calendar>i span{
    align-self:center!important;
    font-weight:700!important;
}
.tc10-trade-coach .tc10-calendar>i small{
    max-width:100%!important;
    align-self:end!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#7d91a9!important;
    font-size:6.5px!important;
    font-weight:700!important;
    font-style:normal!important;
    font-variant-numeric:tabular-nums!important;
}
.tc10-trade-coach .tc10-calendar>i.positive small{color:#5fcf91!important}
.tc10-trade-coach .tc10-calendar>i.negative small{color:#e47b8e!important}
.tc10-trade-coach .tc10-calendar>i.neutral small{color:#d5a15d!important}

/* Today has its own visual layer, independent from profit/loss state */
.tc10-trade-coach .tc10-calendar>i.today{
    box-shadow:inset 0 0 0 1px rgba(47,125,255,.72),0 0 0 1px rgba(47,125,255,.08)!important;
}
.tc10-trade-coach .tc10-calendar>i.today::after{
    content:''!important;
    position:absolute!important;
    top:5px!important;
    right:5px!important;
    width:4px!important;
    height:4px!important;
    border-radius:50%!important;
    background:#4b91ff!important;
    box-shadow:0 0 7px rgba(75,145,255,.55)!important;
}
.tc10-trade-coach .tc10-calendar>i.future{
    opacity:.54!important;
}
.tc10-trade-coach .tc10-calendar>i.future.today{
    opacity:1!important;
}

.tc10-trade-coach .tc10-legend i.today{
    background:transparent!important;
    border:1px solid #4b91ff!important;
    box-shadow:inset 0 0 0 1px rgba(75,145,255,.15)!important;
}

@media(max-width:720px){
    .tc10-trade-coach .tc10-calendar-head{
        gap:9px!important;
    }
    .tc10-trade-coach .tc10-calendar-head>strong{
        padding:6px 8px!important;
    }
    .tc10-trade-coach .tc10-calendar>i{
        padding:5px 3px 4px!important;
    }
    .tc10-trade-coach .tc10-calendar>i small{
        font-size:6px!important;
    }
}

/* ==========================================================================
   RC3.15.7.15 — LOGIN COMPACT POLISH + BRAND UNIFICATION
   ========================================================================== */
body.tc-login-v2.login-underline-body{
    min-height:100vh!important;padding:24px!important;display:grid!important;
    place-items:center!important;overflow:auto!important;
}
body.tc-login-v2 .login-ultra-shell{
    width:min(1100px,calc(100vw - 48px))!important;min-height:0!important;
    height:min(680px,calc(100vh - 48px))!important;max-height:680px!important;
    grid-template-columns:1.04fr .96fr!important;border-radius:22px!important;overflow:hidden!important;
}
body.tc-login-v2 .login-ultra-left,
body.tc-login-v2 .login-ultra-right{min-height:0!important;height:100%!important;box-sizing:border-box!important}
body.tc-login-v2 .login-ultra-left{padding:44px 48px 70px!important}
body.tc-login-v2 .login-ultra-right{padding:40px 42px 70px!important}

body.tc-login-v2 .login-ultra-brand{gap:14px!important;margin-bottom:38px!important}
body.tc-login-v2 .login-ultra-mark{width:52px!important;height:52px!important;border-radius:15px!important}
body.tc-login-v2 .login-ultra-mark svg{width:27px!important;height:27px!important}
body.tc-login-v2 .login-ultra-brand strong{font-size:25px!important}
body.tc-login-v2 .login-ultra-brand em{margin-top:5px!important;font-size:13px!important}

body.tc-login-v2 .login-ultra-copy{max-width:470px!important}
body.tc-login-v2 .login-ultra-copy .eyebrow{font-size:10px!important;letter-spacing:.11em!important}
body.tc-login-v2 .login-ultra-copy h1{margin:13px 0 11px!important;max-width:410px!important;font-size:29px!important;line-height:1.1!important}
body.tc-login-v2 .login-ultra-copy p{max-width:455px!important;font-size:13px!important;line-height:1.65!important}

body.tc-login-v2 .login-ultra-features{max-width:470px!important;margin-top:26px!important;gap:10px!important}
body.tc-login-v2 .login-ultra-features div{min-height:112px!important;padding:16px!important;border-radius:14px!important}
body.tc-login-v2 .login-ultra-features svg{width:21px!important;height:21px!important;margin-bottom:14px!important}
body.tc-login-v2 .login-ultra-features strong{margin-bottom:6px!important;font-size:13px!important}
body.tc-login-v2 .login-ultra-features span{font-size:11px!important;line-height:1.45!important}
body.tc-login-v2 .login-chart-bg{height:150px!important;opacity:.22!important}

body.tc-login-v2 .login-ultra-card{width:min(390px,100%)!important;min-height:0!important;padding:28px 30px!important;border-radius:16px!important}
body.tc-login-v2 .login-lock-icon{width:58px!important;height:58px!important;margin:0 auto 17px!important}
body.tc-login-v2 .login-lock-icon svg{width:26px!important;height:26px!important}
body.tc-login-v2 .login-card-head.center{margin-bottom:22px!important}
body.tc-login-v2 .login-card-head.center h2{margin-bottom:6px!important;font-size:24px!important}
body.tc-login-v2 .login-card-head.center p{font-size:13px!important}
body.tc-login-v2 .login-ultra-card label{gap:7px!important;margin-bottom:14px!important;font-size:12px!important}
body.tc-login-v2 .login-ultra-card .input-icon-wrap input{min-height:46px!important;font-size:13px!important}
body.tc-login-v2 .login-extra-options{margin-top:3px!important;margin-bottom:3px!important;font-size:11px!important}
body.tc-login-v2 .login-ultra-card .login-submit{min-height:46px!important;margin-top:13px!important;border-radius:11px!important;font-size:14px!important}
body.tc-login-v2 .login-secure-note{margin-top:15px!important;font-size:10px!important}
body.tc-login-v2 .login-ultra-footer{min-height:52px!important;padding:0 24px!important;font-size:10px!important}

/* Sidebar usa a mesma assinatura visual do login */
.tc-sidebar .tc-sidebar-brand{min-height:48px!important;margin-bottom:20px!important;gap:10px!important}
.tc-sidebar .tc-sidebar-brand .brand-mark.tc-sidebar-login-mark{
    width:40px!important;height:40px!important;flex:0 0 40px!important;display:grid!important;
    place-items:center!important;border-radius:12px!important;background:rgba(47,125,255,.08)!important;
    border:1px solid rgba(47,125,255,.14)!important;box-shadow:none!important;
}
.tc-sidebar .tc-sidebar-brand .brand-mark.tc-sidebar-login-mark svg{
    width:21px!important;height:21px!important;color:#f4f7fb!important;stroke-width:2.35!important;
}
.tc-sidebar .tc-sidebar-brand-copy strong{
    display:block!important;color:#f1f6fd!important;font-size:12px!important;line-height:1.15!important;
    font-weight:750!important;letter-spacing:-.035em!important;white-space:nowrap!important;
}
.tc-sidebar .tc-sidebar-brand-copy strong .tc-brand-control{
    display:inline!important;margin:0!important;color:#2f7dff!important;font-size:inherit!important;
    line-height:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important;text-transform:none!important;
}
.tc-sidebar .tc-sidebar-brand-copy small{
    display:block!important;margin-top:4px!important;color:#52657e!important;font-size:7.5px!important;
    line-height:1.2!important;font-weight:500!important;white-space:nowrap!important;
}

/* telas desktop baixas / notebooks */
@media (min-width:1021px) and (max-height:760px){
    body.tc-login-v2.login-underline-body{padding:16px!important}
    body.tc-login-v2 .login-ultra-shell{width:min(1040px,calc(100vw - 32px))!important;height:calc(100vh - 32px)!important;max-height:640px!important}
    body.tc-login-v2 .login-ultra-left{padding:32px 40px 58px!important}
    body.tc-login-v2 .login-ultra-right{padding:30px 36px 58px!important}
    body.tc-login-v2 .login-ultra-brand{margin-bottom:25px!important}
    body.tc-login-v2 .login-ultra-features{margin-top:20px!important}
    body.tc-login-v2 .login-ultra-features div{min-height:96px!important;padding:13px!important}
    body.tc-login-v2 .login-ultra-features svg{margin-bottom:9px!important}
    body.tc-login-v2 .login-ultra-card{padding:23px 27px!important}
    body.tc-login-v2 .login-lock-icon{width:50px!important;height:50px!important;margin-bottom:12px!important}
    body.tc-login-v2 .login-card-head.center{margin-bottom:17px!important}
    body.tc-login-v2 .login-ultra-card label{margin-bottom:11px!important}
    body.tc-login-v2 .login-secure-note{margin-top:11px!important}
}

/* mantém o fluxo vertical já existente em tablet/mobile */
@media(max-width:1020px){
    body.tc-login-v2.login-underline-body{padding:18px!important;place-items:start center!important}
    body.tc-login-v2 .login-ultra-shell{width:min(720px,100%)!important;height:auto!important;max-height:none!important;grid-template-columns:1fr!important}
    body.tc-login-v2 .login-ultra-left,body.tc-login-v2 .login-ultra-right{height:auto!important}
    body.tc-login-v2 .login-ultra-left{padding:34px 30px!important}
    body.tc-login-v2 .login-ultra-right{padding:34px 30px 82px!important}
}
@media(max-width:640px){
    body.tc-login-v2.login-underline-body{padding:12px!important}
    body.tc-login-v2 .login-ultra-shell{width:100%!important;border-radius:18px!important}
    body.tc-login-v2 .login-ultra-left,body.tc-login-v2 .login-ultra-right{padding-left:20px!important;padding-right:20px!important}
    body.tc-login-v2 .login-ultra-features{grid-template-columns:1fr!important}
    body.tc-login-v2 .login-ultra-card{width:100%!important;padding:24px 20px!important}
}

