:root {
    --navy: #082f43;
    --navy-2: #0b455b;
    --teal: #0f7184;
    --cyan: #1aa5b7;
    --ink: #12232d;
    --muted: #667985;
    --line: #dce6ea;
    --surface: #ffffff;
    --canvas: #f3f7f8;
    --success: #168a68;
    --danger: #c7493a;
    --warning: #9a6a14;
    --gold: #c9a450;
    --gold-soft: #f5e8c3;
    --shadow: 0 22px 55px rgba(7, 43, 59, .14);
}

/* V19.10.1 - cobertura premium do modo escuro em todos os modulos */
html[data-theme="dark"] .compact-metrics article,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .order-profit-strip article,
html[data-theme="dark"] .reserve-balance-card,
html[data-theme="dark"] .reserve-summary-card,
html[data-theme="dark"] .cash-horizon-grid article,
html[data-theme="dark"] .goal-card,
html[data-theme="dark"] .price-options article,
html[data-theme="dark"] .negotiation-preview,
html[data-theme="dark"] .purchase-detail-summary article,
html[data-theme="dark"] .item-summary-grid article,
html[data-theme="dark"] .permission-grid label,
html[data-theme="dark"] .compensation-model-option,
html[data-theme="dark"] .purchase-step-card,
html[data-theme="dark"] .supplier-line-card,
html[data-theme="dark"] .payment-plan-step,
html[data-theme="dark"] .payment-plan-overview article,
html[data-theme="dark"] .payment-schedule-table,
html[data-theme="dark"] .lead-source-guide article,
html[data-theme="dark"] .manual-attribution-note,
html[data-theme="dark"] .supplier-web-notes,
html[data-theme="dark"] .setup-inline-notice,
html[data-theme="dark"] .reconciliation-status {
    color: var(--ink);
    background: #14272f;
    border-color: #31505b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .report-period input,
html[data-theme="dark"] .report-period select,
html[data-theme="dark"] .profitability-filter select,
html[data-theme="dark"] .category-classification-form select,
html[data-theme="dark"] .category-color-control,
html[data-theme="dark"] .reserve-date-filter input,
html[data-theme="dark"] .percent-input,
html[data-theme="dark"] .lead-filters input,
html[data-theme="dark"] .lead-filters select,
html[data-theme="dark"] .inventory-filters input,
html[data-theme="dark"] .inventory-filters select,
html[data-theme="dark"] .commission-rule-form input,
html[data-theme="dark"] .commission-rule-form select,
html[data-theme="dark"] .crm-filters input,
html[data-theme="dark"] .crm-filters select,
html[data-theme="dark"] .crm-add-tag select,
html[data-theme="dark"] .customer-lookup-control input,
html[data-theme="dark"] .daily-fiscal-filters select,
html[data-theme="dark"] .daily-fiscal-filters input,
html[data-theme="dark"] .reconciliation-filters input,
html[data-theme="dark"] .reconciliation-filters select,
html[data-theme="dark"] .bank-adjustment-reason textarea {
    color: var(--ink);
    background: #0f2027;
    border-color: #35545f;
}

html[data-theme="dark"] .customer-search-results,
html[data-theme="dark"] .customer-search-result {
    color: var(--ink);
    background: #14272f;
    border-color: #31505b;
}
html[data-theme="dark"] .customer-search-result:hover { background: #1a343e; }

html[data-theme="dark"] .profit-danger,
html[data-theme="dark"] .loss-row,
html[data-theme="dark"] .budget-over,
html[data-theme="dark"] .negotiation-preview.is-risk,
html[data-theme="dark"] .cancellation-reason-field,
html[data-theme="dark"] .reconciliation-status.is-different,
html[data-theme="dark"] .bank-adjustment-card.is-negative .bank-adjustment-amount {
    color: #ffc0b9;
    background: #352220;
    border-color: #72463f;
}

html[data-theme="dark"] .profit-warning,
html[data-theme="dark"] .price-floor,
html[data-theme="dark"] .supplier-internal-note,
html[data-theme="dark"] .reconciliation-status.is-pending {
    color: #f0d795;
    background: #332b19;
    border-color: #68562b;
}

html[data-theme="dark"] .finance-filter-check,
html[data-theme="dark"] .finance-navigation-hint kbd {
    color: var(--ink);
    background: #172c34;
    border-color: #35545f;
}
html[data-theme="dark"] .finance-entry-selected td { color: #f3e5af; background: #3a321b !important; }

html[data-theme="dark"] .sidebar-foot {
    color: #d9eef2;
    background: #0a3444;
    border: 1px solid #28515f;
}

html[data-theme="dark"] .form-card,
html[data-theme="dark"] .compact-metrics article { isolation: isolate; }

html[data-theme="dark"] ::selection { color: #07191f; background: #65cfdb; }

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 13px;
    color: var(--navy);
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(8, 47, 67, .07);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.theme-toggle:hover { border-color: var(--cyan); background: #eef9fb; transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid rgba(26, 165, 183, .3); outline-offset: 2px; }
.theme-toggle-icon { display: grid; place-items: center; width: 20px; height: 20px; font-size: 18px; line-height: 1; }

html[data-theme="dark"] {
    --navy: #d9f3f7;
    --navy-2: #bce8ef;
    --teal: #65cfdb;
    --cyan: #45c5d3;
    --ink: #e9f2f4;
    --muted: #9fb1b8;
    --line: #29434d;
    --surface: #14252c;
    --canvas: #0d191f;
    --success: #55d6aa;
    --danger: #ff8375;
    --warning: #e5bd65;
    --gold: #e1c36d;
    --gold-soft: #3b3422;
    --shadow: 0 22px 55px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] body { color: var(--ink); background: var(--canvas); }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .setup-card,
html[data-theme="dark"] .operation-card,
html[data-theme="dark"] .finance-entry-card,
html[data-theme="dark"] .bank-adjustment-card,
html[data-theme="dark"] .bank-adjustment-summary-item,
html[data-theme="dark"] .orders-table-wrap,
html[data-theme="dark"] .theme-toggle { color: var(--ink); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .dashboard-main,
html[data-theme="dark"] .page-shell { background: var(--canvas); }
html[data-theme="dark"] .brand-dark,
html[data-theme="dark"] .page-heading h1,
html[data-theme="dark"] .panel h1,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .user-copy strong,
html[data-theme="dark"] label { color: var(--ink); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--ink);
    background: #0f1f26;
    border-color: #34515c;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #78909a; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 197, 211, .16); }
html[data-theme="dark"] .nav-item { color: #acc1c8; }
html[data-theme="dark"] .nav-item:not(.active):hover { color: #e9fbfd; background: #1b3640; }
html[data-theme="dark"] .nav-item.active { color: #06191f; background: #65cfdb; }
html[data-theme="dark"] .nav-divider { border-color: var(--line); }
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td { border-color: var(--line); }
html[data-theme="dark"] th { color: #b9cbd0; background: #172b33; }
html[data-theme="dark"] tbody tr { background: var(--surface); }
html[data-theme="dark"] tbody tr:hover { background: #19313a; }
html[data-theme="dark"] .button-ghost { color: var(--ink); background: #172b33; border-color: #34515c; }
html[data-theme="dark"] .alert-info { color: #bcecf2; background: #14333c; border-color: #285764; }
html[data-theme="dark"] .alert-warning { color: #f0d795; background: #332b18; border-color: #66562b; }
html[data-theme="dark"] .alert-error { color: #ffc0b9; background: #3a211f; border-color: #70413c; }
html[data-theme="dark"] .status,
html[data-theme="dark"] .period-badge { border-color: var(--line); }
html[data-theme="dark"] .finance-navigation-hint,
html[data-theme="dark"] .panel-heading { background: #12242b; border-color: var(--line); }
html[data-theme="dark"] .bank-adjustment-hero { background: linear-gradient(135deg, #14272f, #102128); border-color: #31515d; }
html[data-theme="dark"] .bank-adjustment-check { background: #102128; border-color: #31515d; }

@media (max-width: 720px) {
    .theme-toggle [data-theme-label] { display: none; }
    .theme-toggle { width: 42px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle { transition: none; }
    .theme-toggle:hover { transform: none; }
}

button, input { font: inherit; }
a { color: inherit; }

.login-page {
    background:
        radial-gradient(circle at 82% 12%, rgba(201, 164, 80, .18), transparent 24%),
        radial-gradient(circle at 13% 15%, rgba(25, 161, 182, .2), transparent 30%),
        linear-gradient(135deg, #082f43 0%, #0a4056 55%, #0e596c 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
    min-height: 100vh;
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 48px clamp(42px, 7vw, 110px);
    color: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: inherit;
    font-size: 17px;
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--cyan), #0d778d);
    box-shadow: 0 8px 22px rgba(5, 38, 53, .25);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(201, 164, 80, .55);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 22px rgba(5, 38, 53, .18);
}

.brand-logo-login { width: 62px; height: 62px; border-width: 3px; }
.brand-logo-header { width: 50px; height: 50px; }
.brand-logo-mobile { width: 54px; height: 54px; }

.login-brand-seal {
    display: block;
    width: clamp(150px, 16vw, 205px);
    height: clamp(150px, 16vw, 205px);
    margin: 0 0 30px;
    border: 5px solid rgba(201, 164, 80, .62);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 24px 70px rgba(1, 25, 39, .3);
}

.brand-copy { max-width: 650px; }

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-brand .eyebrow { color: #75d5df; }
.login-brand .brand > span:last-child { font-size: 18px; }

.brand-copy h1 {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.brand-copy p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.7;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.secure-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #7ce0c3;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 34px;
    background: #f7fafb;
}

.login-card { width: min(100%, 430px); }

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    font-weight: 800;
}

.mobile-brand.always-visible { display: flex; }

.login-card h2,
.setup-card h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(31px, 4vw, 42px);
    letter-spacing: -.04em;
}

.muted {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-form { display: grid; gap: 11px; }

.auth-form label {
    margin-top: 7px;
    color: #263b47;
    font-size: 13px;
    font-weight: 750;
}

.auth-form input {
    width: 100%;
    height: 52px;
    border: 1px solid #cad9df;
    border-radius: 12px;
    outline: none;
    padding: 0 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(26, 165, 183, .13);
}

.password-field { position: relative; }
.password-field input { padding-right: 82px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    border: 0;
    padding: 7px;
    transform: translateY(-50%);
    color: var(--teal);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    margin-top: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), #0b596e);
    box-shadow: 0 12px 26px rgba(13, 102, 122, .22);
}

.button-primary:hover { filter: brightness(1.05); }

.button-ghost {
    min-height: 38px;
    border: 1px solid var(--line);
    color: #314650;
    background: #fff;
}

.help-text {
    margin: 24px 0 0;
    color: #7d8c94;
    font-size: 12px;
    text-align: center;
}

.field-hint {
    margin: -4px 0 2px;
    color: var(--muted);
    font-size: 11px;
}

.alert {
    margin: 18px 0;
    border: 1px solid;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-error { border-color: #efc8c3; color: #8e3027; background: #fff1ef; }
.alert-warning { border-color: #ead9b0; color: #77500d; background: #fff9e9; }
.alert-success { border-color: #b7decf; color: #17664f; background: #edfaf5; }

.setup-page {
    display: grid;
    place-items: center;
    padding: 34px 18px;
    background:
        radial-gradient(circle at 15% 10%, rgba(26, 165, 183, .13), transparent 32%),
        var(--canvas);
}

.setup-shell { width: min(100%, 610px); }

.setup-card {
    border: 1px solid rgba(10, 73, 91, .08);
    border-radius: 24px;
    padding: clamp(28px, 6vw, 56px);
    background: #fff;
    box-shadow: var(--shadow);
}

.setup-card .button-primary { width: 100%; }

.success-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 0 24px;
    border-radius: 20px;
    color: #fff;
    background: var(--success);
    font-size: 30px;
    font-weight: 900;
}

.topbar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.brand-dark { color: var(--navy); }
.brand-dark .brand-logo { box-shadow: 0 6px 18px rgba(8, 47, 67, .13); }
.user-actions { display: flex; align-items: center; gap: 16px; }
.user-copy { display: grid; text-align: right; }
.user-copy strong { font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 11px; }

.dashboard-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); padding: 28px 18px; background: #fff; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; border-radius: 10px; padding: 0 13px; color: #526570; font-size: 13px; font-weight: 700; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.nav-item:not(.active):hover { color: var(--navy); background: #eaf6f8; box-shadow: inset 3px 0 0 var(--cyan); transform: translateX(2px); }
.nav-item:focus-visible { outline: 3px solid rgba(0, 157, 184, .24); outline-offset: 2px; }
.nav-item.active { color: #fff; background: var(--navy); }
.nav-item span { width: 20px; font-size: 17px; }
.nav-item small { margin-left: auto; color: #9aabb3; font-size: 9px; text-transform: uppercase; }
.nav-item:not(.active):hover small { color: #47707b; }

@media (prefers-reduced-motion: reduce) {
    .nav-item { transition: none; }
    .nav-item:not(.active):hover { transform: none; }
}
.muted-item { cursor: default; opacity: .76; }
.sidebar-foot { display: grid; gap: 3px; border-radius: 12px; padding: 14px; color: #d9eef2; background: var(--navy); font-size: 11px; }
.sidebar-foot small { color: #8eb5c0; }

.dashboard-main { min-width: 0; padding: clamp(26px, 4vw, 52px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(31px, 4vw, 46px); letter-spacing: -.045em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.period-badge { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: #566a74; background: #fff; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { display: grid; min-height: 145px; border: 1px solid var(--line); border-radius: 17px; padding: 22px; background: #fff; box-shadow: 0 7px 22px rgba(17, 49, 62, .04); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card strong { align-self: center; color: var(--navy); font-size: clamp(23px, 2.5vw, 34px); letter-spacing: -.04em; }
.metric-card small { color: #8a9aa2; font-size: 10px; }
.metric-card.metric-balance { border-color: transparent; color: #fff; background: linear-gradient(145deg, var(--navy), var(--navy-2)); }
.metric-card.metric-balance span, .metric-card.metric-balance small { color: #a9cbd3; }
.metric-card.metric-balance strong { color: #fff; }
.positive { color: var(--success) !important; }
.negative { color: var(--danger) !important; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 18px; margin-top: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf2f4; padding: 21px 23px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-heading h2 { margin: 0; color: var(--navy); font-size: 18px; }
.empty-state { display: grid; justify-items: center; min-height: 240px; align-content: center; padding: 30px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border-radius: 14px; color: var(--teal); background: #e9f6f8; font-size: 23px; }
.empty-state strong { color: #30434d; }
.empty-state p { max-width: 310px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #edf2f4; padding: 14px 20px; font-size: 12px; text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #fbfcfc; font-size: 10px; text-transform: uppercase; }
.lead-list { display: grid; }
.lead-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; }
.lead-row > div { display: grid; }
.lead-row strong { font-size: 12px; }
.lead-row small { color: var(--muted); font-size: 10px; }
.lead-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--teal); background: #e9f6f8; font-weight: 850; }
.status-pill { border-radius: 999px; padding: 5px 8px; color: var(--teal); background: #e9f6f8; font-size: 9px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 1050px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .mobile-brand { display: flex; }
    .login-panel { padding: 26px 20px; }
    .dashboard-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .topbar { height: 68px; padding: 0 18px; }
    .brand-dark > span:last-child { display: none; }
    .user-copy { display: none; }
}

@media (max-width: 560px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 128px; }
    .dashboard-main { padding: 24px 16px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .period-badge { display: none; }
    .setup-card { border-radius: 18px; padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* Central de operações */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-divider {
    display: block;
    margin: 20px 12px 5px;
    color: #9aabb3;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mobile-nav { display: none; }
.page-heading-top { align-items: center; }
.heading-action { margin-top: 0; white-space: nowrap; }
.period-line { display: flex; justify-content: space-between; margin: -12px 0 22px; color: var(--muted); font-size: 12px; }
.period-line a, .text-link, .back-link { color: var(--teal); font-weight: 750; text-decoration: none; }

.activation-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
}
.activation-panel h2 { margin: 0 0 6px; color: var(--navy); }
.activation-panel p { margin: 0; color: var(--muted); }
.activation-icon { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 18px; color: var(--teal); background: #e9f6f8; font-size: 26px; }

.compact-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.compact-metrics article { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.compact-metrics span { color: var(--muted); font-size: 11px; font-weight: 750; }
.compact-metrics strong { color: var(--navy); font-size: 25px; }

.filters { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 16px 18px; }
.search-field { flex: 1 1 420px; }
.filter-field { flex: 0 1 220px; }
.filters input, .filters select,
.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid #cad9df;
    border-radius: 11px;
    outline: none;
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.filters input, .filters select, .field input, .field select { height: 46px; }
.field textarea { min-height: 96px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.filters input:focus, .filters select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(26, 165, 183, .12); }
.button-secondary { min-height: 44px; color: #fff; background: var(--navy); }
.filter-clear { color: var(--teal); font-size: 12px; font-weight: 750; text-decoration: none; }
.list-panel { overflow: visible; }
.orders-table-wrap { overflow-x: auto; border-radius: 0 0 17px 17px; }
.orders-table td { height: 72px; vertical-align: middle; }
.orders-table td > strong, .orders-table td > small, .orders-table td > a + small { display: block; }
.orders-table td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.order-code { color: var(--navy); font-weight: 850; text-decoration: none; }
.row-action { color: var(--teal); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.late-text { color: var(--danger); font-weight: 750; }
.tall-empty { min-height: 420px; }

.status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 9px; font-size: 9px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.status-neutral { color: #5e7079; background: #edf2f4; }
.status-info { color: #176a87; background: #e6f4fa; }
.status-warning { color: #886018; background: #fff5d9; }
.status-success { color: #166c50; background: #e7f7f0; }
.status-danger { color: #9b3e34; background: #fcece9; }

.operation-form { display: grid; gap: 16px; }
.form-card { border: 1px solid var(--line); border-radius: 17px; padding: clamp(20px, 3vw, 28px); background: #fff; }
.form-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.form-section-heading h2 { margin: 1px 0 4px; color: var(--navy); font-size: 18px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.step-number { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; color: var(--teal); background: #e9f6f8; font-size: 12px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field label, .field > span { color: #2f444f; font-size: 11px; font-weight: 800; }
.field small { color: var(--muted); font-size: 10px; }
.field-span-2 { grid-column: span 2; }
.field-span-full { grid-column: 1 / -1; }
.money-input { position: relative; }
.money-input span { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted); font-size: 11px; font-weight: 800; }
.money-input input { padding-left: 39px; }
.optional-card { cursor: pointer; }
.optional-card summary { color: var(--navy); font-size: 13px; font-weight: 800; }
.optional-fields { margin-top: 22px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.sticky-actions { position: sticky; z-index: 4; bottom: 14px; border: 1px solid rgba(194, 212, 219, .9); border-radius: 15px; padding: 12px; background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(7,43,59,.12); backdrop-filter: blur(10px); }
.sticky-actions .button-primary { margin-top: 0; }
.order-complete-trigger,
.order-complete-confirm { border: 1px solid #148363; color: #fff; background: linear-gradient(135deg, #1ca77d, #117359); box-shadow: 0 9px 22px rgba(17, 115, 89, .2); }
.order-complete-trigger:hover,
.order-complete-confirm:hover { background: linear-gradient(135deg, #20b889, #148064); transform: translateY(-1px); }
.order-complete-trigger:focus-visible,
.order-complete-confirm:focus-visible { outline: 3px solid rgba(28, 167, 125, .25); outline-offset: 2px; }
.order-completion-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 18px; border: 1px solid #9dd8c5; border-radius: 16px; padding: 18px 20px; background: #effbf6; box-shadow: 0 12px 30px rgba(17, 115, 89, .1); }
.order-completion-panel[hidden] { display: none; }
.order-completion-panel > div:first-child { display: grid; gap: 5px; }
.order-completion-panel strong { color: var(--navy); font-size: 16px; }
.order-completion-panel p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.order-completion-panel-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.order-completion-error { color: var(--danger) !important; font-weight: 800; }
.order-completed-badge { display: flex; align-items: center; gap: 10px; min-height: 46px; border: 1px solid #9dd8c5; border-radius: 11px; padding: 8px 12px; color: #0b694f; background: #eaf8f2; }
.order-completed-badge > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--success); font-weight: 900; }
.order-completed-badge > span:last-child { display: grid; gap: 1px; }
.order-completed-badge small { color: #4f7469; font-size: 8px; }

html[data-theme="dark"] .order-completion-panel { background: #142f28; border-color: #326b59; }
html[data-theme="dark"] .order-completion-panel strong { color: var(--ink); }
html[data-theme="dark"] .order-completed-badge { color: #a7ead4; background: #142f28; border-color: #326b59; }
html[data-theme="dark"] .order-completed-badge small { color: #8fb7aa; }

@media (max-width: 760px) {
    .order-completion-panel { align-items: stretch; flex-direction: column; }
    .order-completion-panel-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .order-completion-panel-actions .button { width: 100%; }
    .sticky-actions { flex-wrap: wrap; }
    .sticky-actions .order-complete-trigger { order: -1; width: 100%; }
}

.order-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.back-link { display: inline-flex; margin-bottom: 14px; font-size: 12px; }
.order-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.order-title-row h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }
.order-page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.order-heading-actions { display: flex; gap: 9px; }
.order-heading-actions .button-primary { margin-top: 0; }
.button-whatsapp { color: #fff; background: #168a68; }
.button-disabled { color: #8a9aa2; background: #e8eef0; cursor: not-allowed; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.order-main-column { display: grid; gap: 16px; min-width: 0; }
.order-side-column { display: grid; gap: 16px; position: sticky; top: 94px; }
.detail-card { overflow: visible; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 23px; }
.detail-grid > div { display: grid; gap: 5px; }
.detail-grid span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.detail-grid strong { color: #2d414b; font-size: 13px; }
.detail-grid p { margin: 0; color: #40545e; font-size: 13px; line-height: 1.65; }
.detail-span-full { grid-column: 1 / -1; }
.finance-rule { border-radius: 12px; padding: 13px; background: #eef8f9; }
.finance-rule strong { color: var(--teal); font-size: 11px; line-height: 1.5; }
.summary-list { display: grid; margin: 0; padding: 8px 20px 18px; }
.summary-list > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 12px 0; }
.summary-list dt { color: var(--muted); font-size: 10px; }
.summary-list dd { margin: 0; color: var(--navy); font-size: 11px; font-weight: 800; text-align: right; }
.timeline { display: grid; padding: 18px 20px 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 10px; padding-bottom: 18px; }
.timeline-item::before { content: ""; position: absolute; top: 10px; bottom: -2px; left: 5px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item > span { z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 3px solid #dff1f4; border-radius: 50%; background: var(--teal); }
.timeline-item > div { display: grid; gap: 3px; }
.timeline-item strong { color: #314650; font-size: 11px; }
.timeline-item small { color: var(--muted); font-size: 9px; }
.timeline-item p { margin: 3px 0 0; color: #536772; font-size: 10px; line-height: 1.45; }

.technician-layout { display: grid; grid-template-columns: minmax(290px, .7fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.compact-form-card { position: sticky; top: 94px; }
.team-list { display: grid; }
.team-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto auto; align-items: center; gap: 14px; border-bottom: 1px solid #edf2f4; padding: 16px 20px; }
.team-copy { display: grid; gap: 3px; }
.team-copy strong { font-size: 12px; }
.team-copy span { color: var(--muted); font-size: 10px; }
.team-metrics { display: grid; text-align: center; }
.team-metrics strong { color: var(--navy); font-size: 16px; }
.team-metrics span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.inactive-row { opacity: .58; }
.button-link { border: 0; padding: 4px; background: transparent; cursor: pointer; }

.operations-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); }
.dashboard-order-list, .agenda-list { display: grid; }
.dashboard-order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; color: inherit; text-decoration: none; }
.dashboard-order-row:hover, .agenda-row:hover { background: #f8fbfc; }
.dashboard-order-row > span:nth-child(2), .agenda-row > span:nth-child(2) { display: grid; gap: 3px; }
.dashboard-order-row strong, .agenda-row strong { font-size: 11px; }
.dashboard-order-row small, .agenda-row small { color: var(--muted); font-size: 9px; }
.order-mini-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--teal); background: #e9f6f8; }
.agenda-row { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; color: inherit; text-decoration: none; }
.agenda-time { color: var(--navy); font-size: 15px; font-weight: 850; }

@media (max-width: 1100px) {
    .compact-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .form-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .order-layout { grid-template-columns: 1fr; }
    .order-side-column { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .technician-layout { grid-template-columns: 1fr; }
    .compact-form-card { position: static; }
}

@media (max-width: 820px) {
    .dashboard-main { padding-bottom: 92px; }
    .mobile-nav { position: fixed; z-index: 20; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(7, 1fr); min-height: 64px; border: 1px solid var(--line); border-radius: 18px; padding: 7px; background: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(7,43,59,.18); backdrop-filter: blur(12px); }
    .mobile-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: #60737d; font-size: 8px; font-weight: 750; text-decoration: none; }
    .mobile-nav a span { font-size: 17px; }
    .mobile-nav .mobile-new { border-radius: 13px; color: #fff; background: var(--navy); }
    .page-heading-top, .order-page-heading { align-items: flex-start; flex-direction: column; }
    .heading-action { width: 100%; }
    .order-heading-actions { width: 100%; }
    .order-heading-actions .button { flex: 1; }
    .form-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .field-span-2 { grid-column: span 2; }
    .operations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .compact-metrics { grid-template-columns: 1fr 1fr; }
    .compact-metrics article { align-items: flex-start; flex-direction: column; min-height: 95px; }
    .filters { align-items: stretch; flex-direction: column; }
    .search-field, .filter-field { flex: auto; }
    .orders-table thead { display: none; }
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
    .orders-table tr { position: relative; border-bottom: 1px solid var(--line); padding: 16px; }
    .orders-table td { height: auto; border: 0; padding: 4px 0; }
    .orders-table td:last-child { position: absolute; top: 17px; right: 16px; }
    .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .field-span-2, .field-span-full { grid-column: span 1; }
    .sticky-actions { bottom: 82px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-span-full { grid-column: span 1; }
    .order-side-column { grid-template-columns: 1fr; }
    .team-row { grid-template-columns: auto minmax(0,1fr) auto; }
    .team-row .status, .team-row form { grid-column: 2; }
    .team-metrics { grid-row: span 2; }
    .executive-metrics { grid-template-columns: 1fr; }
}

/* Financeiro operacional */
.financial-metrics { margin-bottom: 18px; }
.finance-filters { flex-wrap: wrap; }
.finance-filters > input, .finance-filters > select { flex: 1 1 145px; }
.finance-filters > input[name="q"] { flex-basis: 240px; }
.money-cell { font-size: 12px; font-weight: 850; white-space: nowrap; }
.category-dot, .category-big-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--teal); }
.category-big-dot { width: 34px; height: 34px; margin: 0; border: 10px solid #e9f6f8; }
.entry-hero-value { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.payment-action-card { display: grid; gap: 13px; padding: 20px; }
.payment-action-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.payment-action-card > strong { color: var(--navy); }
.payment-action-card > small { color: var(--muted); }
.payment-action-card .button-primary { width: 100%; }
.small-success { width: 44px; height: 44px; margin: 0; border-radius: 14px; font-size: 20px; }
.danger-zone { padding: 20px; }
.danger-zone h3 { margin: 0 0 6px; color: #8d392f; font-size: 14px; }
.danger-zone p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.button-danger { min-height: 40px; border: 1px solid #efc8c3; color: #9b3e34; background: #fff1ef; }
.report-period { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -14px 0 18px; }
.report-period label { color: var(--muted); font-size: 11px; font-weight: 750; }
.report-period input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.report-grid { grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); }
.category-report-list { display: grid; padding: 8px 20px 20px; }
.category-report-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px; border-bottom: 1px solid #edf2f4; padding: 13px 0; }
.category-report-row > div { display: grid; gap: 3px; }
.category-report-row strong { color: var(--navy); font-size: 11px; }
.category-report-row span { color: var(--muted); font-size: 9px; }
.category-report-row progress { grid-column: 1 / -1; width: 100%; height: 5px; border: 0; border-radius: 999px; overflow: hidden; }
.category-report-row progress::-webkit-progress-bar { background: #edf2f4; }
.category-report-row progress::-webkit-progress-value { background: var(--teal); }
.category-report-row progress::-moz-progress-bar { background: var(--teal); }
@media (max-width: 1050px) { .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .report-period { align-items: stretch; flex-direction: column; } .finance-filters { flex-direction: column; } .finance-filters > * { width: 100%; } }

/* V4 — rentabilidade e custos diretos */
.order-profit-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.order-profit-strip article { display: grid; gap: 5px; min-height: 92px; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: #fff; box-shadow: 0 8px 24px rgba(7,43,59,.05); }
.order-profit-strip span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.order-profit-strip strong { color: var(--navy); font-size: 19px; }
.order-profit-strip small { color: var(--muted); font-size: 9px; }
.order-profit-strip .profit-highlight { border-left: 4px solid var(--teal); }
.order-profit-strip .profit-danger { border-left-color: var(--danger); background: #fff8f7; }
.order-profit-strip .profit-warning { border-left-color: #d9a832; background: #fffdf5; }
.projection-callout { display: grid; gap: 5px; border: 1px solid #cde9ed; border-radius: 12px; padding: 13px 15px; background: #eef8f9; }
.projection-callout span { color: var(--teal); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.projection-callout strong { color: var(--navy); font-size: 13px; }
.projection-callout small { color: var(--muted); font-size: 10px; }
.checkbox-card { display: flex; align-items: center; gap: 11px; min-height: 67px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.checkbox-card input { width: 18px; height: 18px; accent-color: var(--teal); }
.checkbox-card span { display: grid; gap: 3px; }
.checkbox-card strong { color: var(--navy); font-size: 11px; }
.checkbox-card small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.quick-cost-form { display: grid; gap: 12px; padding: 18px 20px 20px; }
.quick-cost-form .button-primary { width: 100%; margin-top: 2px; }
.cost-entry-list { display: grid; border-top: 1px solid var(--line); }
.cost-entry-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf2f4; padding: 12px 20px; color: inherit; text-decoration: none; }
.cost-entry-list a:hover { background: #f8fbfc; }
.cost-entry-list span { display: grid; gap: 3px; }
.cost-entry-list strong, .cost-entry-list b { color: var(--navy); font-size: 10px; }
.cost-entry-list small { color: var(--muted); font-size: 8px; }
.profitability-filter select { min-width: 190px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--navy); background: #fff; }
.profitability-filter .button { min-height: 42px; }
.profitability-metrics { margin-bottom: 18px; }
.profit-alerts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.profit-alerts .alert { margin: 0; }
.profitability-orders { margin-bottom: 18px; }
.profitability-orders .panel-heading > span { color: var(--muted); font-size: 10px; }
.profitability-table td:first-child span, .profitability-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.loss-row { background: #fff8f7; }
.profitability-rankings { grid-template-columns: repeat(2, minmax(0,1fr)); }
.profit-ranking-list { display: grid; padding: 7px 20px 20px; }
.profit-ranking-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 16px; border-bottom: 1px solid #edf2f4; padding: 13px 0; }
.profit-ranking-row > span { display: grid; gap: 3px; }
.profit-ranking-row > span:nth-child(2) { text-align: right; }
.profit-ranking-row strong, .profit-ranking-row b { color: var(--navy); font-size: 11px; }
.profit-ranking-row small { color: var(--muted); font-size: 8px; }
.profit-ranking-row progress { grid-column: 1 / -1; width: 100%; height: 5px; border: 0; border-radius: 999px; overflow: hidden; }
.profit-ranking-row progress::-webkit-progress-bar { background: #edf2f4; }
.profit-ranking-row progress::-webkit-progress-value { background: var(--teal); }
.profit-ranking-row progress::-moz-progress-bar { background: var(--teal); }

@media (max-width: 1100px) { .order-profit-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) { .profitability-rankings, .profit-alerts { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .order-profit-strip { grid-template-columns: 1fr 1fr; } .profitability-filter select { width: 100%; } }

/* V5 — DRE gerencial e fluxo de caixa projetado */
.report-period select { min-width: 190px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--navy); background: #fff; }
.report-period .button { min-height: 42px; }
.dre-layout { grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); margin-bottom: 18px; }
.dre-statement .panel-heading > span, .cash-layout .panel-heading > span { color: var(--muted); font-size: 9px; }
.dre-lines { display: grid; padding: 10px 22px 22px; }
.dre-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; border-bottom: 1px solid #edf2f4; color: #40545e; font-size: 11px; }
.dre-line strong { color: var(--navy); font-size: 12px; white-space: nowrap; }
.dre-subtract strong { color: var(--danger); }
.dre-total { border-top: 1px solid #cad8dd; color: var(--navy); font-weight: 800; }
.dre-final { min-height: 62px; margin-top: 10px; border: 0; border-radius: 13px; padding: 0 15px; color: #fff; background: var(--navy); }
.dre-final strong { color: #fff; font-size: 18px; }
.dre-loss { background: #9b3e34; }
.dre-category-list { display: grid; padding: 7px 20px 20px; }
.dre-composition-actions { display: flex; align-items: center; gap: 14px; }
.dre-composition-total { display: grid; min-width: 175px; border: 1px solid #c5e4e8; border-radius: 12px; padding: 10px 13px; background: #eef8f9; }
.dre-composition-total small { color: var(--teal); font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.dre-composition-total strong { margin-top: 2px; color: var(--navy); font-size: 16px; line-height: 1.1; }
.dre-composition-total em { margin-top: 3px; color: var(--muted); font-size: 7px; font-style: normal; }
.dre-category-list > div:not(.empty-state) { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf2f4; padding: 13px 0; }
.dre-category-list span { display: grid; gap: 3px; }
.dre-category-list strong, .dre-category-list b { color: var(--navy); font-size: 10px; }
.dre-category-list small { color: var(--muted); font-size: 8px; }
@media (max-width: 680px) { .dre-composition-actions { align-items: flex-end; flex-direction: column; } .dre-composition-total { min-width: 155px; } }
.compact-empty { min-height: 150px; }
.dre-trend-panel { margin-bottom: 18px; }
.dre-trend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 5px 20px 22px; }
.dre-trend-month { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.dre-trend-month > div, .dre-trend-month > span { display: flex; justify-content: space-between; gap: 8px; }
.dre-trend-month strong { color: var(--navy); font-size: 10px; }
.dre-trend-month small, .dre-trend-month span { color: var(--muted); font-size: 8px; }
.dre-trend-month b { color: var(--navy); font-size: 8px; }
.dre-trend-month progress { width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; }
.dre-trend-month progress::-webkit-progress-bar { background: #edf2f4; }
.dre-trend-month .trend-income::-webkit-progress-value { background: var(--success); }
.dre-trend-month .trend-expense::-webkit-progress-value { background: var(--danger); }
.dre-trend-month .trend-income::-moz-progress-bar { background: var(--success); }
.dre-trend-month .trend-expense::-moz-progress-bar { background: var(--danger); }
.category-management-list { display: grid; }
.category-management-row { display: grid; grid-template-columns: auto minmax(140px,1fr) minmax(250px,1.25fr) auto auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; }
.category-classification-form { display: flex; align-items: center; gap: 7px; }
.category-classification-form select { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--navy); background: #fff; }
.category-color-control { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; overflow: hidden; }
.category-color-input { width: 52px; height: 46px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.category-classification-form .button { min-height: 38px; padding: 0 10px; font-size: 8px; }

/* Reserva CDI */
.reserve-hero { display: grid; grid-template-columns: 1.3fr repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.reserve-balance-card, .reserve-summary-card { min-width: 0; min-height: 148px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 0 8px 28px rgba(17,49,62,.05); }
.reserve-balance-card { color: #fff; border-color: transparent; background: linear-gradient(145deg,#083d53,#0f7184); }
.reserve-balance-card > span, .reserve-summary-card > span { display: block; margin-bottom: 16px; color: #aacbd4; font-size: 11px; font-weight: 780; }
.reserve-summary-card > span { color: var(--muted); }
.reserve-balance-card > strong, .reserve-summary-card > strong { display: block; color: inherit; font-size: clamp(25px,2.5vw,36px); letter-spacing: -.04em; }
.reserve-summary-card > strong { color: var(--navy); }
.reserve-balance-card > small, .reserve-summary-card > small { display: block; margin-top: 7px; color: #aacbd4; font-size: 10px; line-height: 1.45; }
.reserve-summary-card > small { color: var(--muted); }
.reserve-balance-card > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 13px; font-size: 11px; }
.reserve-balance-card em { color: #9ce5c5; font-style: normal; font-weight: 850; }
.reserve-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.7fr); gap: 18px; margin-bottom: 18px; }
.reserve-daily-panel, .reserve-settings-panel, .reserve-projection-panel { overflow: visible; }
.reserve-date-filter { display: flex; align-items: center; gap: 8px; }
.reserve-date-filter label { color: var(--muted); font-size: 10px; font-weight: 780; }
.reserve-date-filter input { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--navy); background: #fff; }
.reserve-calculation { display: grid; grid-template-columns: repeat(4,minmax(120px,1fr)); align-items: stretch; gap: 10px; padding: 20px; }
.reserve-calculation article { position: relative; display: grid; align-content: center; min-height: 106px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fbfcfc; }
.reserve-calculation article span { color: var(--muted); font-size: 10px; font-weight: 780; }
.reserve-calculation article strong { margin-top: 8px; color: var(--navy); font-size: 22px; }
.reserve-calculation .reserve-target { border-color: #9edbe2; background: #eef9fa; }
.reserve-calculation .reserve-pending { border-color: #f1c7bc; background: #fff5f2; }
.reserve-calculation .reserve-pending strong { color: var(--danger); }
.reserve-calculation .reserve-complete { border-color: #b8e5d0; background: #eefaf4; }
.reserve-calculation .reserve-complete strong { color: var(--success); }
.reserve-operator { display: none; }
.reserve-daily-panel > .alert { margin: 0 20px 18px; }
.reserve-deposit-form { display: grid; grid-template-columns: 1fr .8fr 1.2fr auto; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding: 20px; }
.reserve-deposit-form .field { margin: 0; }
.reserve-deposit-form input, .reserve-deposit-form select { height: 44px; }
.reserve-deposit-form .button { min-height: 44px; white-space: nowrap; }
.reserve-deposit-form .button:disabled { opacity: .45; cursor: not-allowed; }
.reserve-form-help { margin: -8px 20px 19px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.reserve-settings-form, .reserve-reconcile-form { padding: 20px; }
.reserve-settings-form .field { margin-bottom: 15px; }
.reserve-settings-form small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.reserve-sync-form { display: grid; gap: 6px; border-top: 1px solid var(--line); padding: 17px 20px 20px; }
.reserve-sync-form small { color: var(--muted); font-size: 9px; }
.reserve-projection-panel { margin-bottom: 18px; }
.reserve-projection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 20px; }
.reserve-projection-grid article { display: grid; min-height: 132px; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: linear-gradient(145deg,#fff,#f7fbfc); }
.reserve-projection-grid span { color: var(--muted); font-size: 10px; font-weight: 780; }
.reserve-projection-grid strong { margin-top: 10px; color: var(--navy); font-size: 25px; }
.reserve-projection-grid small { margin-top: 8px; color: var(--muted); font-size: 10px; }
.reserve-projection-grid small b { color: var(--success); }
.reserve-projection-grid em { align-self: end; margin-top: 12px; color: #8aa0aa; font-size: 9px; font-style: normal; }
.reserve-projection-panel > .alert { margin: 0 20px 20px; }
.reserve-history-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.reserve-reconciliation-result { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; border-top: 1px solid var(--line); padding: 17px 20px; }
.reserve-reconciliation-result span { color: var(--muted); font-size: 10px; }
.reserve-reconciliation-result strong { font-size: 18px; }
.reserve-reconciliation-result small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.reserve-history-list { display: grid; max-height: 470px; overflow-y: auto; }
.reserve-history-list article { display: grid; grid-template-columns: auto 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 20px; }
.reserve-history-list article > div { min-width: 0; }
.reserve-history-list strong { color: var(--navy); }
.reserve-history-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.reserve-history-list p { margin: 6px 0 0; color: #526872; font-size: 10px; }
.reserve-history-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--success); background: #e9f8f1; font-weight: 900; }
.reserve-source-note { margin: 0 0 20px; color: var(--muted); font-size: 9px; text-align: center; }
.reserve-source-note a { color: var(--teal); font-weight: 750; }

@media (max-width: 1250px) {
    .reserve-hero { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .reserve-deposit-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .reserve-grid, .reserve-history-grid { grid-template-columns: 1fr; }
    .reserve-calculation { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .reserve-projection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .reserve-hero, .reserve-calculation, .reserve-deposit-form { grid-template-columns: 1fr; }
    .reserve-date-filter { align-items: stretch; flex-direction: column; }
    .reserve-daily-panel .panel-heading { align-items: stretch; flex-direction: column; gap: 14px; }
}
.cash-warning { margin-bottom: 18px; }
.cash-horizon-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.cash-horizon-grid article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.cash-horizon-grid span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.cash-horizon-grid strong { color: var(--navy); font-size: 16px; }
.cash-horizon-grid small { color: var(--muted); font-size: 8px; }
.cash-layout { grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); margin-bottom: 18px; }
.cash-timeline { display: grid; max-height: 610px; overflow: auto; padding: 5px 20px 20px; }
.cash-day { display: grid; grid-template-columns: 54px repeat(3,minmax(0,1fr)); align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 12px 0; }
.cash-day time { color: var(--navy); font-size: 11px; font-weight: 850; }
.cash-day > span { display: grid; gap: 3px; }
.cash-day small { color: var(--muted); font-size: 8px; }
.cash-day strong { color: var(--navy); font-size: 10px; }
.forecast-entry-list { display: grid; max-height: 610px; overflow: auto; }
.forecast-entry-list > a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf2f4; padding: 13px 20px; color: inherit; text-decoration: none; }
.forecast-entry-list > a:hover { background: #f8fbfc; }
.forecast-entry-list > a > span:nth-child(2) { display: grid; gap: 3px; }
.forecast-entry-list strong, .forecast-entry-list b { color: var(--navy); font-size: 10px; }
.forecast-entry-list small { color: var(--muted); font-size: 8px; }
.forecast-type { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 900; }
.forecast-income { color: var(--success); background: #e7f7f0; }
.forecast-expense { color: var(--danger); background: #fcece9; }
.account-balance-panel { margin-bottom: 18px; }
.account-balance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 5px 20px 22px; }
.account-balance-grid article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.account-balance-grid span, .account-balance-grid small { color: var(--muted); font-size: 8px; }
.account-balance-grid strong { color: var(--navy); font-size: 15px; }

@media (max-width: 1100px) { .dre-layout, .cash-layout { grid-template-columns: 1fr; } .category-management-row { grid-template-columns: auto minmax(130px,1fr) minmax(220px,1.2fr); } .category-management-row > .status, .category-management-row > form:last-child { grid-column: 2 / -1; } }
@media (max-width: 820px) { .cash-horizon-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .dre-trend { grid-template-columns: repeat(2,minmax(0,1fr)); } .account-balance-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .dre-trend, .account-balance-grid { grid-template-columns: 1fr; } .category-management-row { grid-template-columns: auto minmax(0,1fr); } .category-classification-form, .category-management-row > .status, .category-management-row > form:last-child { grid-column: 2; } .category-classification-form { align-items: stretch; flex-direction: column; } .cash-day { grid-template-columns: 48px 1fr; } .cash-day > span { grid-column: 2; } }

/* V6 — metas, orçamento e formação inteligente de preços */
.percent-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.percent-input input { flex: 1; min-width: 0; border: 0 !important; }
.percent-input span { display: grid; place-items: center; width: 42px; align-self: stretch; color: var(--muted); background: #f4f8f9; font-size: 10px; font-weight: 800; }
.goal-overview-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.goal-card { display: grid; gap: 8px; min-height: 130px; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: #fff; box-shadow: 0 8px 24px rgba(7,43,59,.05); }
.goal-card > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.goal-card > strong { color: var(--navy); font-size: 17px; line-height: 1.25; }
.goal-card > strong small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
.goal-card > small { color: var(--muted); font-size: 8px; }
.goal-card progress, .budget-row progress { width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; }
.goal-card progress::-webkit-progress-bar, .budget-row progress::-webkit-progress-bar { background: #edf2f4; }
.goal-card progress::-webkit-progress-value, .budget-row progress::-webkit-progress-value { background: var(--teal); }
.goal-card progress::-moz-progress-bar, .budget-row progress::-moz-progress-bar { background: var(--teal); }
.planning-insights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.planning-insights article { display: grid; gap: 4px; border-left: 4px solid var(--teal); border-radius: 13px; padding: 14px 17px; background: #eef8f9; }
.planning-insights span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.planning-insights strong { color: var(--navy); font-size: 14px; }
.planning-insights small { color: var(--muted); font-size: 8px; }
.planning-layout { grid-template-columns: minmax(330px,.75fr) minmax(0,1.25fr); }
.planning-layout .form-card { align-self: start; }
.planning-layout .operation-form { padding: 0 22px 22px; }
.planning-layout .operation-form > .button { width: 100%; margin-top: 15px; }
.budget-panel .panel-heading > span { color: var(--muted); font-size: 9px; }
.budget-list { display: grid; padding: 6px 20px 10px; }
.budget-row { display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 7px 14px; border-bottom: 1px solid #edf2f4; padding: 12px 0; }
.budget-row > span { display: grid; gap: 3px; }
.budget-row strong { color: var(--navy); font-size: 10px; }
.budget-row small { color: var(--muted); font-size: 8px; }
.budget-row progress { grid-column: 1 / -1; }
.budget-over { border-left: 3px solid var(--danger); padding-left: 10px; background: #fff8f7; }
.budget-over progress::-webkit-progress-value { background: var(--danger); }
.budget-over progress::-moz-progress-bar { background: var(--danger); }
.budget-actions { padding: 8px 20px 20px; }
.budget-actions .button { width: 100%; }
.pricing-order-banner { display: flex; align-items: center; gap: 12px; border: 1px solid #cde9ed; border-radius: 13px; margin-bottom: 18px; padding: 13px 16px; background: #eef8f9; }
.pricing-order-banner span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.pricing-order-banner strong { flex: 1; color: var(--navy); font-size: 11px; }
.pricing-order-banner a { font-size: 9px; }
.pricing-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 18px; align-items: start; margin-bottom: 18px; }
.pricing-form { display: grid; gap: 16px; }
.pricing-actions { position: sticky; z-index: 3; bottom: 18px; justify-content: flex-end; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(7,43,59,.1); }
.pricing-side { display: grid; gap: 16px; position: sticky; top: 94px; }
.pricing-result-card { display: grid; gap: 9px; border-radius: 20px; padding: 25px; color: #fff; background: linear-gradient(145deg,var(--navy),#0f6677); box-shadow: 0 16px 40px rgba(7,43,59,.18); }
.pricing-result-card > .eyebrow { color: #87e1ec; }
.pricing-result-card > strong { font-size: 38px; letter-spacing: -.045em; }
.pricing-result-card > small { color: #c8e7eb; font-size: 9px; }
.price-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.price-result-grid > span { display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; padding: 10px; }
.price-result-grid small { color: #a8d7dd; font-size: 7px; }
.price-result-grid b { color: #fff; font-size: 11px; }
.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-options article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fff; }
.price-options span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.price-options strong { color: var(--navy); font-size: 17px; }
.price-options small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.price-options .price-floor { border-color: #f1d7aa; background: #fffbf1; }
.price-options .price-profit-floor { grid-column: 1 / -1; border-color: #a9ddc9; background: #effbf6; }
.price-options .price-profit-floor strong { color: #087c5c; }
.pricing-profit-policy { margin-bottom: 14px; }
.pricing-placeholder { place-items: center; min-height: 270px; text-align: center; }
.pricing-placeholder h2 { margin: 0; font-size: 21px; }
.pricing-placeholder p { margin: 0; color: #c8e7eb; font-size: 10px; line-height: 1.6; }
.pricing-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: #87e1ec; background: rgba(255,255,255,.1); font-size: 24px; }
.quick-settings-form { display: grid; gap: 12px; padding: 5px 20px 20px; }
.settings-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.settings-mini-grid label { display: grid; gap: 4px; }
.settings-mini-grid span { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.settings-mini-grid input { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; }
.quick-settings-form .button { width: 100%; }
.pricing-history { margin-bottom: 18px; }
.pricing-history-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 5px 20px 22px; }
.pricing-history-grid article { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.pricing-history-grid span { display: grid; gap: 3px; }
.pricing-history-grid strong, .pricing-history-grid b { color: var(--navy); font-size: 10px; }
.pricing-history-grid small { color: var(--muted); font-size: 7px; }
.negotiation-card { border-color: #c9dfe4; background: linear-gradient(145deg,#fff 0%,#fbfdfd 70%,#f2fafb 100%); }
.negotiation-guide { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 24px 18px; border: 1px solid #d8e9ec; border-radius: 12px; padding: 11px 13px; background: #f6fbfc; }
.negotiation-guide strong { color: var(--navy); font-size: 10px; }
.negotiation-guide span { color: var(--muted); font-size: 9px; text-align: right; }
.negotiation-fields { padding-bottom: 20px; }
.negotiation-preview { display: grid; grid-template-columns: minmax(150px,.8fr) auto minmax(190px,1fr); gap: 14px; align-items: center; margin: 0 24px 22px; border: 1px solid #cde2e6; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 12px 28px rgba(8,47,67,.06); }
.negotiation-preview > article { display: grid; gap: 5px; }
.negotiation-preview > article > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.negotiation-preview > article > strong { color: var(--navy); font-size: 24px; letter-spacing: -.04em; }
.negotiation-preview > article > small { color: var(--muted); font-size: 8px; }
.negotiation-preview > article > small b { color: var(--danger); }
.negotiation-flow-arrow { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--teal); background: #e9f7f9; font-size: 17px; font-weight: 900; }
.negotiation-final { border-left: 3px solid var(--teal); padding-left: 15px; }
.negotiation-preview.has-discount .negotiation-final > strong { color: var(--teal); }
.negotiation-impact-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.negotiation-impact-grid > span { display: grid; gap: 4px; border-radius: 11px; padding: 10px; background: #f6f9fa; }
.negotiation-impact-grid small { color: var(--muted); font-size: 8px; }
.negotiation-impact-grid b { color: var(--navy); font-size: 11px; }
.negotiation-preview.has-discount .negotiation-impact-grid > span:nth-child(2) b,
.negotiation-preview.has-discount .negotiation-impact-grid > span:nth-child(3) b { color: var(--teal); }
.negotiation-preview.has-discount .negotiation-impact-grid > span:nth-child(4) b { color: var(--danger); }
.negotiation-preview.is-risk { border-color: #e9bcb5; background: #fff8f7; }
.negotiation-risk { margin: -8px 24px 22px; border: 1px solid #efc8c3; border-radius: 11px; padding: 11px 13px; color: #8e3027; background: #fff1ef; font-size: 10px; font-weight: 800; line-height: 1.5; }
.negotiation-risk[hidden] { display: none; }
.negotiation-result-impact { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 12px; background: rgba(255,255,255,.07); }
.negotiation-result-impact span { display: grid; gap: 3px; color: #a8d7dd; font-size: 7px; }
.negotiation-result-impact b { color: #fff; font-size: 11px; }
.negotiation-result-impact i { color: #87e1ec; font-size: 15px; font-style: normal; }
.negotiation-result-impact small { grid-column: 1 / -1; color: #ffd7cf; font-size: 8px; }
.negotiation-os-summary { display: grid; gap: 9px; border: 1px solid #c8e1e5; border-radius: 13px; padding: 14px !important; background: #f3fafb; }
.negotiation-os-summary > span { color: var(--teal); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.negotiation-os-summary > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.negotiation-os-summary strong { color: var(--navy); font-size: 10px; }
.negotiation-os-summary b { color: var(--danger); font-size: 10px; }
.negotiation-os-summary em { border-radius: 8px; padding: 6px 9px; color: #fff; background: var(--teal); font-size: 10px; font-style: normal; font-weight: 900; }
.negotiation-os-summary small { color: var(--muted); font-size: 9px; }
.dashboard-target-banner { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(180px,1fr) auto auto; align-items: center; gap: 15px; border: 1px solid #cde9ed; border-radius: 15px; margin: 0 0 18px; padding: 15px 18px; color: inherit; background: #eef8f9; text-decoration: none; }
.dashboard-target-banner > span { display: grid; gap: 3px; }
.dashboard-target-banner small { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.dashboard-target-banner strong { color: var(--navy); font-size: 12px; }
.dashboard-target-banner progress { width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; }
.dashboard-target-banner progress::-webkit-progress-bar { background: #dcebed; }
.dashboard-target-banner progress::-webkit-progress-value { background: var(--teal); }
.dashboard-target-banner progress::-moz-progress-bar { background: var(--teal); }
.dashboard-target-banner b { color: var(--navy); font-size: 11px; }
.dashboard-target-banner em { color: var(--teal); font-size: 9px; font-style: normal; font-weight: 800; }

@media (max-width: 1200px) { .goal-overview-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .pricing-history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1050px) { .planning-layout, .pricing-layout { grid-template-columns: 1fr; } .pricing-side { position: static; grid-template-columns: 1fr 1fr; } .pricing-settings-card { grid-column: 1 / -1; } }
@media (max-width: 820px) { .goal-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .planning-insights { grid-template-columns: 1fr; } .dashboard-target-banner { grid-template-columns: 1fr auto; } .dashboard-target-banner progress { grid-column: 1 / -1; } }
@media (max-width: 620px) { .goal-overview-grid, .pricing-side, .pricing-history-grid { grid-template-columns: 1fr; } .budget-row { grid-template-columns: 1fr; } .budget-row progress { grid-column: 1; } .pricing-order-banner { align-items: flex-start; flex-direction: column; } .price-options { grid-template-columns: 1fr; } .pricing-actions { bottom: 82px; } .negotiation-guide { align-items: flex-start; flex-direction: column; margin: 0 14px 15px; } .negotiation-guide span { text-align: left; } .negotiation-preview { grid-template-columns: 1fr; margin: 0 14px 18px; } .negotiation-flow-arrow { transform: rotate(0deg); } .negotiation-final { border-top: 3px solid var(--teal); border-left: 0; padding-top: 13px; padding-left: 0; } .negotiation-impact-grid { grid-template-columns: 1fr 1fr; } .negotiation-risk { margin: -5px 14px 18px; } }

/* V7 — leads e Google Ads ligados à margem */
.lead-metrics { margin-bottom: 18px; }
.lead-workspace { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 18px; align-items: start; }
.lead-create-card { top: 94px; }
.lead-create-card .operation-form { padding: 0 20px 20px; }
.lead-create-card .button-primary { width: 100%; }
.lead-attribution-details { border: 1px solid var(--line); border-radius: 11px; padding: 11px; }
.lead-attribution-details summary { color: var(--teal); font-size: 9px; font-weight: 800; cursor: pointer; }
.lead-attribution-details .form-grid { margin-top: 12px; }
.lead-filters { display: grid; grid-template-columns: minmax(180px,1fr) 155px 155px auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.lead-filters input, .lead-filters select { min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--navy); background: #fff; }
.lead-filters .button { min-height: 40px; }
.lead-list { display: grid; }
.lead-row { display: grid; grid-template-columns: auto minmax(150px,1fr) auto 125px auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; color: inherit; text-decoration: none; }
.lead-row:hover { background: #f8fbfc; }
.lead-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--teal); background: #e9f6f8; font-size: 13px; font-weight: 900; }
.lead-main, .lead-value { display: grid; gap: 3px; }
.lead-main strong, .lead-value strong { color: var(--navy); font-size: 10px; }
.lead-main small, .lead-value small { color: var(--muted); font-size: 8px; }
.lead-main em { color: var(--teal); font-size: 8px; font-style: normal; }
.lead-value { text-align: right; }
.lead-source-banner { display: flex; align-items: center; gap: 12px; border: 1px solid #cde9ed; border-radius: 13px; margin-bottom: 18px; padding: 13px 16px; background: #eef8f9; }
.lead-source-banner span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.lead-source-banner strong { flex: 1; color: var(--navy); font-size: 11px; }
.lead-source-banner a { font-size: 9px; }
.lead-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 18px; align-items: start; }
.lead-detail-layout > .operation-form { display: grid; gap: 16px; }
.lead-detail-side { display: grid; gap: 16px; position: sticky; top: 94px; }
.lead-orders-list { display: grid; }
.lead-orders-list > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf2f4; padding: 13px 20px; color: inherit; text-decoration: none; }
.lead-orders-list > a:hover { background: #f8fbfc; }
.lead-orders-list span { display: grid; gap: 3px; }
.lead-orders-list strong, .lead-orders-list b { color: var(--navy); font-size: 10px; }
.lead-orders-list small { color: var(--muted); font-size: 8px; }
.marketing-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 18px; }
.campaign-performance-panel { margin-bottom: 18px; }
.campaign-performance-panel .panel-heading > span { color: var(--muted); font-size: 8px; }
.campaign-table { min-width: 1120px; }
.campaign-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.marketing-detail-grid, .ads-import-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 18px; }
.marketing-ranking { display: grid; padding: 6px 20px 20px; }
.marketing-ranking > div:not(.empty-state) { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 12px 0; }
.marketing-ranking span { display: grid; gap: 3px; }
.marketing-ranking strong, .marketing-ranking b { color: var(--navy); font-size: 10px; }
.marketing-ranking small { color: var(--muted); font-size: 8px; }
.ads-import-grid .operation-form { padding: 0 20px 20px; }
.ads-import-grid .button-primary { width: 100%; margin-top: 13px; }

@media (max-width: 1200px) { .marketing-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1050px) { .lead-workspace, .lead-detail-layout { grid-template-columns: 1fr; } .lead-create-card, .lead-detail-side { position: static; } }
@media (max-width: 820px) { .marketing-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .marketing-detail-grid, .ads-import-grid { grid-template-columns: 1fr; } .lead-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .marketing-metrics { grid-template-columns: 1fr 1fr; } .lead-filters { grid-template-columns: 1fr; } .lead-row { grid-template-columns: auto minmax(0,1fr) auto; } .lead-row .status, .lead-value { grid-column: 2; text-align: left; } .lead-profit-strip { grid-template-columns: 1fr 1fr; } .lead-source-banner { align-items: flex-start; flex-direction: column; } }

/* V8 — estoque de peças, compras e fornecedores */
.inventory-metrics { margin-bottom: 18px; }
.supplier-layout, .purchase-layout { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; align-items: start; }
.compact-form-card .operation-form { padding: 0 20px 20px; }
.compact-form-card .button-primary { width: 100%; }
.supplier-list, .purchase-list { display: grid; }
.supplier-row { display: grid; grid-template-columns: auto minmax(160px,1fr) 80px 130px auto auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; }
.supplier-row > span:not(.supplier-icon) { display: grid; gap: 3px; }
.supplier-row strong { color: var(--navy); font-size: 10px; }
.supplier-row small { color: var(--muted); font-size: 8px; }
.supplier-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--teal); background: #e9f6f8; font-size: 16px; }
.inactive-row { opacity: .58; }
.button-link { border: 0; padding: 5px; color: var(--teal); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.inventory-workspace { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.inventory-forms { display: grid; gap: 16px; }
.inventory-forms .operation-form { padding: 0 20px 20px; }
.inventory-new-item summary { padding: 19px 20px; color: var(--navy); font-size: 11px; font-weight: 850; cursor: pointer; }
.inventory-new-item[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.inventory-order-banner { display: flex; align-items: center; gap: 13px; border: 1px solid #cde9ed; border-radius: 13px; margin-bottom: 18px; padding: 13px 16px; background: #eef8f9; }
.inventory-order-banner span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.inventory-order-banner strong { flex: 1; color: var(--navy); font-size: 11px; }
.inventory-order-banner a { color: var(--teal); font-size: 9px; font-weight: 800; }
.inventory-filters { display: grid; grid-template-columns: minmax(180px,1fr) 150px auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.inventory-filters input, .inventory-filters select { min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--navy); background: #fff; }
.inventory-filters .button { min-height: 40px; }
.inventory-table { min-width: 920px; }
.inventory-table td:first-child strong, .purchase-items-table td:first-child strong { display: block; color: var(--navy); font-size: 10px; }
.inventory-table td:first-child small, .purchase-items-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.stock-low-row { background: #fffaf4; }
.row-link { color: var(--teal); font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.recent-stock-panel { margin-bottom: 18px; }
.stock-movement-list, .item-movement-history { display: grid; }
.stock-movement-list article, .item-movement-history article { display: grid; grid-template-columns: auto minmax(150px,1fr) 110px 110px; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 13px 20px; }
.stock-movement-list article > span:nth-child(2), .item-movement-history article > span:nth-child(2) { display: grid; gap: 3px; }
.stock-movement-list strong, .stock-movement-list b, .item-movement-history strong, .item-movement-history b { color: var(--navy); font-size: 10px; }
.stock-movement-list small, .item-movement-history small { color: var(--muted); font-size: 8px; }
.stock-movement-list em, .item-movement-history em { color: var(--navy); font-size: 9px; font-style: normal; font-weight: 800; text-align: right; }
.stock-direction { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; font-weight: 900; }
.stock-in { color: var(--success); background: #e7f7f0; }
.stock-out { color: var(--danger); background: #fcece9; }
.purchase-status-filters { display: flex; gap: 7px; overflow: auto; border-bottom: 1px solid var(--line); padding: 12px 20px; }
.purchase-status-filters a { border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: var(--muted); font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.purchase-status-filters a.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.purchase-row { display: grid; grid-template-columns: minmax(170px,1fr) 60px 130px 110px auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; color: inherit; text-decoration: none; }
.purchase-row:hover { background: #f8fbfc; }
.purchase-row > span:not(.status) { display: grid; gap: 3px; }
.purchase-row strong, .purchase-row b { color: var(--navy); font-size: 10px; }
.purchase-row small { color: var(--muted); font-size: 8px; }
.purchase-detail-summary, .item-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.purchase-detail-summary article, .item-summary-grid article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: #fff; }
.purchase-detail-summary span, .item-summary-grid span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.purchase-detail-summary strong, .item-summary-grid strong { color: var(--navy); font-size: 16px; }
.purchase-detail-summary small, .item-summary-grid small { color: var(--muted); font-size: 8px; }
.purchase-total-card, .item-stock-card { color: #fff; background: linear-gradient(145deg,var(--navy),#0f6677) !important; }
.purchase-total-card span, .purchase-total-card strong, .purchase-total-card small, .item-stock-card span, .item-stock-card strong, .item-stock-card small { color: #fff; }
.purchase-detail-layout, .item-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 18px; align-items: start; margin-bottom: 18px; }
.item-detail-layout { grid-template-columns: 390px minmax(0,1fr); }
.purchase-side { display: grid; gap: 16px; }
.purchase-side .compact-form-card { position: static; top: auto; }
.purchase-side > .panel, .purchase-side > .form-card { min-width: 0; }
.purchase-action-form, .purchase-receive-copy { display: grid; gap: 12px; padding: 5px 20px 20px; }
.purchase-action-form input, .purchase-action-form textarea { width: 100%; }
.purchase-action-form .button, .purchase-receive-copy .button { width: 100%; }
.purchase-receive-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.purchase-cancel-form { border-top: 1px solid var(--line); padding: 10px 20px; text-align: center; }
.purchase-financial-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 5px 20px 20px; border: 1px solid #cde9ed; border-radius: 11px; padding: 13px; color: var(--teal); background: #eef8f9; font-size: 9px; text-decoration: none; }
.received-movement-list { display: grid; border-top: 1px solid var(--line); }
.received-movement-list > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf2f4; padding: 12px 20px; }
.received-movement-list span { display: grid; gap: 3px; }
.received-movement-list strong, .received-movement-list b { color: var(--navy); font-size: 9px; }
.received-movement-list small { color: var(--muted); font-size: 8px; }
.item-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.item-detail-layout .operation-form { padding: 0 20px 20px; }

@media (max-width: 1100px) { .supplier-layout, .purchase-layout, .inventory-workspace, .purchase-detail-layout, .item-detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .supplier-row { grid-template-columns: auto minmax(0,1fr) auto; } .supplier-row > span:nth-child(3), .supplier-row > span:nth-child(4) { grid-column: 2; } .supplier-row form { grid-column: 3; } .purchase-detail-summary, .item-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .inventory-filters { grid-template-columns: 1fr; } .purchase-row { grid-template-columns: minmax(0,1fr) auto; } .purchase-row > span:nth-child(2), .purchase-row > span:nth-child(3) { grid-column: 1; } .purchase-row .status { grid-column: 2; grid-row: 1; } .stock-movement-list article, .item-movement-history article { grid-template-columns: auto minmax(0,1fr); } .stock-movement-list b, .stock-movement-list em, .item-movement-history b, .item-movement-history em { grid-column: 2; text-align: left; } .purchase-detail-summary, .item-summary-grid { grid-template-columns: 1fr; } }

/* V9 — comissões, permissões, aprovações e fechamento */
.button-small { min-height: 34px; margin: 0; padding: 0 12px; font-size: 8px; white-space: nowrap; }
.commission-metrics, .closing-metrics { margin-bottom: 18px; }
.commission-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.commission-toolbar > form:last-child { margin-bottom: 18px; }
.governance-table { min-width: 920px; }
.governance-table td:first-child strong, .governance-table td:first-child small { display: block; }
.governance-table td:first-child strong { color: var(--navy); font-size: 10px; }
.governance-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.governance-table td:first-child a { color: var(--teal); text-decoration: none; }
.approval-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; align-items: start; }
.approval-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); padding: 12px 20px; }
.approval-tabs a { border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: var(--muted); font-size: 8px; font-weight: 800; text-decoration: none; }
.approval-tabs a.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.approval-list { display: grid; }
.approval-list article { display: grid; grid-template-columns: auto minmax(170px,1fr) 110px minmax(250px,auto); align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 15px 20px; }
.approval-list article > span:nth-child(2) { display: grid; gap: 4px; }
.approval-list strong, .approval-list b { color: var(--navy); font-size: 10px; }
.approval-list small { color: var(--muted); font-size: 8px; }
.approval-list em { color: #6d5a33; font-size: 8px; font-style: normal; }
.approval-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--warning); background: #fff7df; font-weight: 900; }
.approval-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.approval-actions input { min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; font-size: 8px; }
.users-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 18px; align-items: start; }
.user-access-list { display: grid; }
.user-access-list > a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf2f4; padding: 13px 18px; color: inherit; text-decoration: none; }
.user-access-list > a.active { border-left: 4px solid var(--teal); background: #eef8f9; }
.user-access-list > a > span:nth-child(2) { display: grid; gap: 3px; }
.user-access-list strong { color: var(--navy); font-size: 10px; }
.user-access-list small { color: var(--muted); font-size: 8px; }
.user-create-details { border-top: 1px solid var(--line); }
.user-create-details summary { padding: 16px 20px; color: var(--teal); font-size: 9px; font-weight: 850; cursor: pointer; }
.user-create-details .operation-form { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.permission-editor .operation-form { padding: 0 20px 20px; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.permission-grid label { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fff; }
.permission-grid label:has(input:checked) { border-color: #9ed8df; background: #eef8f9; }
.permission-grid input { margin-top: 2px; accent-color: var(--teal); }
.permission-grid span { display: grid; gap: 3px; }
.permission-grid strong { color: var(--navy); font-size: 9px; }
.permission-grid small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.reset-permissions-form { border-top: 1px solid var(--line); padding: 11px 20px; text-align: right; }
.closing-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 18px; margin-bottom: 18px; }
.closing-status-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 17px; border-radius: 18px; padding: 23px; color: #fff; box-shadow: 0 15px 38px rgba(7,43,59,.14); }
.closing-status-card.is-open { background: linear-gradient(145deg,#0d6172,#168a80); }
.closing-status-card.is-closed { background: linear-gradient(145deg,var(--navy),#102a38); }
.closing-lock { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: rgba(255,255,255,.08); font-size: 26px; }
.closing-status-card small { color: #9edce3; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.closing-status-card h2 { margin: 4px 0; font-size: 24px; }
.closing-status-card p { margin: 0; color: #c8e5e8; font-size: 10px; line-height: 1.55; }
.closing-status-card form { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.closing-status-card input { min-width: 0; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 0 12px; color: #fff; background: rgba(255,255,255,.08); }
.closing-status-card input::placeholder { color: #b7d6db; }
.closing-status-card .button { margin: 0; }
.closing-checklist { display: grid; padding: 5px 20px 20px; }
.closing-checklist > div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 10px; border-bottom: 1px solid #edf2f4; padding: 13px 0; }
.closing-checklist > div > span { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 900; }
.closing-checklist .ok > span { color: var(--success); background: #e7f7f0; }
.closing-checklist .blocked > span { color: var(--danger); background: #fcece9; }
.closing-checklist strong { color: var(--navy); font-size: 9px; }
.closing-checklist small { color: var(--muted); font-size: 8px; }
.closing-history { margin-bottom: 18px; }
.closing-history-list { display: grid; }
.closing-history-list article { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf2f4; padding: 13px 20px; }
.closing-history-list time, .closing-history-list strong { color: var(--navy); font-size: 10px; font-weight: 850; }
.closing-history-list span:nth-child(2) { display: grid; gap: 3px; }
.closing-history-list small { color: var(--muted); font-size: 8px; }
.team-row { grid-template-columns: auto minmax(150px,1fr) auto auto auto minmax(220px,auto) auto; }
.commission-rule-form { display: grid; grid-template-columns: 65px 85px auto; gap: 5px; align-items: center; }
.commission-rule-form input, .commission-rule-form select { min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; color: var(--navy); background: #fff; font-size: 8px; }

@media (max-width: 1150px) { .approval-layout, .users-layout, .closing-layout { grid-template-columns: 1fr; } .approval-list article { grid-template-columns: auto minmax(0,1fr) 100px; } .approval-actions { grid-column: 2 / -1; } .team-row { grid-template-columns: auto minmax(0,1fr) auto; } .team-row .commission-rule-form, .team-row .status, .team-row > form:last-child { grid-column: 2; } }
@media (max-width: 720px) { .permission-grid { grid-template-columns: 1fr; } .approval-list article { grid-template-columns: auto minmax(0,1fr); } .approval-list b, .approval-list .status, .approval-actions { grid-column: 2; } .approval-actions { grid-template-columns: 1fr 1fr; } .approval-actions input { grid-column: 1 / -1; } .closing-status-card form { grid-template-columns: 1fr; } }

/* V10 — CRM de clientes e relacionamento */
.crm-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 18px; }
@media (max-width: 1250px) { .crm-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 820px) { .crm-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .crm-metrics { grid-template-columns: 1fr; } }
.crm-workspace { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; align-items: start; }
.crm-workspace.crm-readonly { grid-template-columns: 1fr; }
.crm-create-card { position: sticky; top: 94px; }
.crm-filters { display: grid; grid-template-columns: minmax(210px,1fr) 160px 190px auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.crm-filters input, .crm-filters select { min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--navy); background: #fff; }
.crm-filters .button { min-height: 40px; }
.crm-customer-list { display: grid; }
.crm-customer-row { display: grid; grid-template-columns: auto minmax(180px,1.3fr) auto minmax(130px,.7fr) 86px auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf2f4; padding: 14px 20px; color: inherit; text-decoration: none; }
.crm-customer-row:hover { background: #f8fbfc; }
.crm-customer-row.has-overdue { box-shadow: inset 4px 0 #c34635; }
.crm-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal)); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.crm-customer-main, .crm-customer-value, .crm-followup { display: grid; gap: 3px; }
.crm-customer-main strong, .crm-customer-value strong, .crm-followup strong { color: var(--navy); font-size: 10px; }
.crm-customer-main small, .crm-customer-value small, .crm-followup small { color: var(--muted); font-size: 8px; }
.crm-customer-main em { color: var(--teal); font-size: 8px; font-style: normal; }
.crm-customer-value { text-align: right; }
.crm-followup { border-left: 1px solid var(--line); padding-left: 13px; text-align: center; }
.crm-followup.is-overdue strong, .crm-followup.is-overdue small { color: var(--danger); }
.crm-profile-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.crm-profile-identity { display: grid; gap: 13px; }
.crm-profile-identity > div { display: flex; align-items: center; gap: 14px; }
.crm-profile-identity > div > span:last-child { display: grid; gap: 3px; }
.crm-profile-identity h1 { margin: 0; color: var(--navy); font-size: clamp(26px,3vw,42px); letter-spacing: -.04em; }
.crm-profile-identity small { color: var(--muted); font-size: 9px; }
.crm-avatar-large { width: 58px; height: 58px; border-radius: 17px; font-size: 14px; box-shadow: 0 10px 24px rgba(7,43,59,.16); }
.crm-value-strip { grid-template-columns: repeat(5,minmax(0,1fr)); }
.crm-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; align-items: start; }
.crm-profile-main, .crm-profile-side { display: grid; gap: 18px; }
.crm-profile-side { position: sticky; top: 94px; }
.crm-profile-editor > summary { padding: 18px 20px; color: var(--navy); font-size: 11px; font-weight: 850; cursor: pointer; }
.crm-profile-editor[open] > summary { border-bottom: 1px solid var(--line); }
.crm-profile-editor > .operation-form { padding: 18px 20px 20px; }
.crm-contact-card .panel-heading > small { color: var(--muted); font-size: 8px; }
.crm-contact-form { padding: 0 20px 20px; }
.crm-contact-form > .button { margin-top: 12px; }
.crm-timeline { display: grid; padding: 4px 20px 20px; }
.crm-timeline-event { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; position: relative; padding: 14px 0; }
.crm-timeline-event:not(:last-child) { border-bottom: 1px solid #edf2f4; }
.crm-event-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--teal); background: #e9f6f8; font-size: 13px; font-weight: 900; }
.crm-event-order .crm-event-icon { color: #2b7dbd; background: #eaf3fb; }
.crm-event-lead .crm-event-icon { color: #8b6b24; background: #fff7df; }
.crm-timeline-event > div { display: grid; gap: 4px; }
.crm-timeline-event strong { color: var(--navy); font-size: 10px; }
.crm-timeline-event small { color: var(--muted); font-size: 8px; }
.crm-timeline-event p { margin: 2px 0; color: #425d68; font-size: 9px; line-height: 1.55; }
.crm-timeline-event em { color: var(--teal); font-size: 8px; font-style: normal; }
.crm-timeline-event a { width: max-content; color: var(--teal); font-size: 8px; font-weight: 850; text-decoration: none; }
.crm-task-form { display: grid; gap: 10px; padding: 0 20px 18px; }
.crm-task-form .button { width: 100%; }
.crm-task-list { display: grid; border-top: 1px solid var(--line); }
.crm-task { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; align-items: start; padding: 12px 20px; border-bottom: 1px solid #edf2f4; }
.crm-task > span { width: 9px; height: 9px; margin-top: 3px; border-radius: 99px; background: var(--teal); box-shadow: 0 0 0 4px #e9f6f8; }
.crm-task > div { display: grid; gap: 3px; }
.crm-task strong { color: var(--navy); font-size: 9px; }
.crm-task small { color: var(--muted); font-size: 8px; }
.crm-task em { color: var(--teal); font-size: 8px; font-style: normal; }
.crm-task p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.crm-task.is-overdue > span { background: var(--danger); box-shadow: 0 0 0 4px #fcece9; }
.crm-task.is-overdue em { color: var(--danger); }
.crm-task.is-completed { opacity: .56; }
.crm-task.is-completed strong { text-decoration: line-through; }
.compact-empty { padding: 25px 15px; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 20px 15px; }
.crm-tags > span { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb,var(--tag-color),#fff 65%); border-radius: 99px; padding: 6px 9px; color: var(--tag-color); background: color-mix(in srgb,var(--tag-color),#fff 91%); font-size: 8px; font-weight: 850; }
.crm-tags form { display: inline; }
.crm-tags button { border: 0; padding: 0; color: inherit; background: transparent; font-size: 11px; cursor: pointer; }
.crm-tags > small { color: var(--muted); font-size: 8px; }
.crm-add-tag { display: grid; grid-template-columns: 1fr auto; gap: 7px; border-top: 1px solid var(--line); padding: 12px 20px; }
.crm-add-tag select { min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--navy); background: #fff; font-size: 8px; }
.customer-card-links { display: flex; align-items: center; gap: 12px; }

@media (max-width: 1220px) { .crm-value-strip { grid-template-columns: repeat(3,minmax(0,1fr)); } .crm-customer-row { grid-template-columns: auto minmax(170px,1fr) auto 120px auto; } .crm-followup { grid-column: 2; border-left: 0; padding-left: 0; text-align: left; } }
@media (max-width: 1080px) { .crm-workspace, .crm-profile-layout { grid-template-columns: 1fr; } .crm-create-card, .crm-profile-side { position: static; } }
@media (max-width: 820px) { .crm-filters { grid-template-columns: 1fr 1fr; } .crm-profile-heading { align-items: flex-start; flex-direction: column; } .crm-value-strip { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .crm-filters { grid-template-columns: 1fr; } .crm-customer-row { grid-template-columns: auto minmax(0,1fr) auto; } .crm-customer-row .status, .crm-customer-value, .crm-followup { grid-column: 2; text-align: left; } .crm-value-strip { grid-template-columns: 1fr 1fr; } .customer-card-links { align-items: flex-end; flex-direction: column; } }

/* V11 — contratos e remuneração técnica fixa/variável */
.team-contract { display: grid; gap: 3px; min-width: 150px; }
.team-contract strong { color: var(--navy); font-size: 9px; }
.team-contract span { color: var(--muted); font-size: 8px; }
.technician-contract-metrics { margin-bottom: 18px; }
.technician-contract-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 18px; align-items: start; margin-bottom: 18px; }
.technician-contract-card > .operation-form { display: grid; gap: 18px; padding: 0 20px 20px; }
.technician-contract-side { display: grid; gap: 16px; position: sticky; top: 94px; }
.compensation-model-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.compensation-model-option { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; cursor: pointer; }
.compensation-model-option:has(input:checked) { border-color: #65bdc7; background: #eef8f9; box-shadow: 0 8px 20px rgba(15,109,131,.08); }
.compensation-model-option input { margin-top: 2px; accent-color: var(--teal); }
.compensation-model-option span { display: grid; gap: 4px; }
.compensation-model-option strong { color: var(--navy); font-size: 9px; }
.compensation-model-option small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.contract-section { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: #fbfdfe; }
.contract-section[hidden] { display: none !important; }
.contract-section > div:first-child span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.contract-section > div:first-child h3 { margin: 3px 0 0; color: var(--navy); font-size: 13px; }
.contract-section > div:first-child p { margin: 5px 0 0; max-width: 720px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.contract-validity-section { border-color: #bfe2e6; background: linear-gradient(145deg,#f1fafb,#fbfefe); }
.contract-model-feedback { border: 1px solid #bfe2e6; border-radius: 12px; padding: 12px 14px; color: #31596a; background: #eff9fa; font-size: 9px; line-height: 1.55; }
.contract-model-feedback strong { color: var(--navy); }
.contract-history-notice { margin: 0; }
.percent-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.percent-input input { flex: 1; min-width: 0; border: 0 !important; }
.percent-input span { padding: 0 12px; color: var(--teal); font-size: 9px; font-weight: 850; }
.contract-explainer { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px 10px; padding: 4px 20px 20px; }
.contract-explainer span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--teal); background: #e9f6f8; font-size: 8px; font-weight: 900; }
.contract-explainer p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.technician-history-grid { margin-bottom: 18px; }
.simple-list { display: grid; }
.simple-list > div:not(.empty-state) { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf2f4; padding: 12px 20px; }
.simple-list > div > span:first-child { display: grid; gap: 3px; }
.simple-list strong, .simple-list b { color: var(--navy); font-size: 9px; }
.simple-list small { color: var(--muted); font-size: 8px; }
.commission-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.fixed-compensation-panel { margin-bottom: 18px; }
.fixed-payment-table { min-width: 1050px; }
.fixed-payment-table td:first-child a { color: var(--navy); text-decoration: none; }
.fixed-installment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 230px; }
.fixed-installment-actions > a { border: 1px solid #cde9ed; border-radius: 99px; padding: 5px 8px; color: var(--teal); background: #eef8f9; font-size: 7px; font-weight: 800; text-decoration: none; }
.fixed-installment-actions > small { color: var(--muted); font-size: 8px; }

@media (max-width: 1200px) { .commission-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .compensation-model-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .technician-contract-layout { grid-template-columns: 1fr; } .technician-contract-side { position: static; } }
@media (max-width: 760px) { .commission-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .technician-contract-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .commission-metrics, .technician-contract-metrics { grid-template-columns: 1fr 1fr; } .simple-list > div:not(.empty-state) { grid-template-columns: 1fr auto; } .simple-list .status { grid-column: 1 / -1; width: max-content; } }

/* V12 — busca no CRM e preenchimento automático de CEP */
.customer-lookup { display: grid; gap: 10px; position: relative; margin: 0 20px 20px; border: 1px solid #bfe2e6; border-radius: 15px; padding: 16px; background: linear-gradient(145deg,#f1fafb,#fbfefe); }
.customer-lookup-copy { display: grid; gap: 3px; }
.customer-lookup-copy > span { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.customer-lookup-copy strong { color: var(--navy); font-size: 12px; }
.customer-lookup-copy small { color: var(--muted); font-size: 8px; }
.customer-lookup-control { position: relative; }
.customer-lookup-control input { width: 100%; height: 46px; border: 1px solid #a9d4da; border-radius: 11px; padding: 0 42px 0 13px; color: var(--navy); background: #fff; font-size: 10px; outline: none; }
.customer-lookup-control input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,109,131,.1); }
.customer-search-icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--teal); font-size: 18px; font-weight: 900; pointer-events: none; }
.customer-search-status { min-height: 13px; color: var(--muted); font-size: 8px; }
.customer-search-status.is-success { color: var(--success); }
.customer-search-status.is-error { color: var(--danger); }
.customer-search-status.is-loading { color: var(--teal); }
.customer-search-results { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 15px 35px rgba(7,43,59,.13); }
.customer-search-result { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; border: 0; border-bottom: 1px solid #edf2f4; padding: 12px; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.customer-search-result:last-child { border-bottom: 0; }
.customer-search-result:hover, .customer-search-result:focus { background: #f2fafb; outline: none; }
.customer-result-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal)); font-size: 9px; font-weight: 900; }
.customer-search-result > span:nth-child(2) { display: grid; gap: 3px; }
.customer-search-result strong { color: var(--navy); font-size: 9px; }
.customer-search-result small { color: var(--muted); font-size: 8px; }
.customer-search-result em { color: var(--teal); font-size: 8px; font-style: normal; }
.customer-search-result b { color: var(--teal); font-size: 8px; white-space: nowrap; }
.selected-customer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid #9ddcc4; border-radius: 11px; padding: 11px 12px; background: #edf9f4; }
.selected-customer[hidden] { display: none; }
.selected-customer-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--success); font-size: 10px; font-weight: 900; }
.selected-customer > span:nth-child(2) { display: grid; gap: 3px; }
.selected-customer strong { color: var(--navy); font-size: 9px; }
.selected-customer small { color: var(--muted); font-size: 8px; }
.selected-customer button { border: 0; padding: 5px; color: var(--teal); background: transparent; font-size: 8px; font-weight: 850; cursor: pointer; }
.cep-input-wrap { position: relative; }
.cep-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.cep-search-row .cep-input-wrap { min-width: 0; }
.cep-search-button { min-height: 0; padding: 0 14px; white-space: nowrap; }
.cep-search-button:disabled { cursor: wait; opacity: .65; }
.cep-input-wrap input { padding-right: 36px !important; }
.cep-loader { display: none; position: absolute; top: 50%; right: 12px; width: 13px; height: 13px; margin-top: -7px; border: 2px solid #cde9ed; border-top-color: var(--teal); border-radius: 99px; animation: cep-spin .7s linear infinite; }
.cep-input-wrap.is-loading .cep-loader { display: block; }
.cep-status { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.cep-status.is-success { color: var(--success); }
.cep-status.is-error { color: var(--danger); }
.cep-status.is-loading { color: var(--teal); }
@keyframes cep-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) { .customer-lookup { margin: 0 14px 16px; padding: 13px; } .selected-customer { grid-template-columns: auto minmax(0,1fr); } .selected-customer button { grid-column: 2; justify-self: start; padding-left: 0; } .customer-search-result { grid-template-columns: auto minmax(0,1fr); } .customer-search-result b { grid-column: 2; } .cep-search-row { grid-template-columns: 1fr; } .cep-search-button { min-height: 42px; } }

/* Central de Fornecedores V15 */
.supplier-metrics { margin-bottom: 22px; }
.supplier-metrics .metric-card strong small { font-size: 14px; font-weight: 750; }
.supplier-directory { overflow: visible; }
.supplier-directory-heading { align-items: center; }
.supplier-directory-heading .button { width: auto; }
.supplier-filters { display: grid; grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(130px, .75fr)) auto auto; gap: 12px; align-items: end; padding: 18px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fbfc; }
.supplier-filters .field { margin: 0; }
.supplier-filters .button { width: auto; min-height: 46px; }
.supplier-filters .filter-clear { align-self: center; padding: 14px 2px 0; }
.supplier-premium-list { padding: 10px 18px 18px; }
.supplier-premium-row { display: grid; grid-template-columns: 52px minmax(210px, 1.45fr) minmax(155px, .9fr) minmax(175px, 1fr) minmax(130px, .65fr) 22px; gap: 16px; align-items: center; padding: 18px 12px; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.supplier-premium-row:hover { border-radius: 14px; background: #f4fafb; transform: translateY(-1px); }
.supplier-premium-row.is-inactive { opacity: .58; }
.supplier-company-mark, .supplier-profile-mark { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--teal), #0f5a70); box-shadow: 0 9px 24px rgba(13, 117, 137, .18); font-weight: 900; letter-spacing: .04em; }
.supplier-company-mark { width: 46px; height: 46px; border-radius: 13px; font-size: 13px; }
.supplier-company-copy, .supplier-contact-summary, .supplier-performance, .supplier-confidence { min-width: 0; }
.supplier-company-copy > small, .supplier-contact-summary small, .supplier-performance small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.supplier-name-line { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.supplier-name-line strong { font-size: 14px; }
.supplier-name-line em, .supplier-preferred-badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 99px; color: #7a5600; background: #fff3c9; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.supplier-line-preview { display: block; margin-top: 7px; color: var(--teal); font-size: 9px; font-weight: 750; }
.supplier-contact-summary strong, .supplier-performance strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-confidence { display: grid; gap: 8px; justify-items: start; }
.supplier-confidence > strong { color: #d89b10; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.supplier-row-arrow { color: var(--teal); font-size: 17px; }

.supplier-create-heading { margin-bottom: 18px; }
.supplier-create-heading .eyebrow { display: block; margin-top: 24px; }
.supplier-master-form { display: grid; gap: 18px; padding-bottom: 94px; }
.supplier-form-section { padding-bottom: 26px; }
.supplier-form-section .form-section-heading { margin-bottom: 20px; }

/* Central de compras executiva V16.2 */
.purchase-executive-layout { display: grid; gap: 22px; align-items: start; }
.purchase-wizard-panel { overflow: visible; border: 1px solid #cddde5; box-shadow: 0 18px 48px rgba(9,49,68,.08); }
.purchase-wizard-heading { padding: 24px 28px 20px; align-items: center; }
.purchase-wizard-heading h2 { margin: 3px 0 5px; font-size: 24px; }
.purchase-wizard-heading p { margin: 0; color: var(--muted); }
.purchase-wizard-badge { padding: 9px 13px; border-radius: 999px; background: #e9f7f8; color: #087b8e; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.purchase-progress { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(90deg,#f8fbfc,#f1f8fa); }
.purchase-progress > div { display: grid; grid-template-columns: 34px auto; column-gap: 10px; align-items: center; min-width: 150px; }
.purchase-progress span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--navy); color: white; font-weight: 900; }
.purchase-progress strong { color: var(--navy); font-size: 13px; }
.purchase-progress small { color: var(--muted); font-size: 10px; }
.purchase-progress i { width: clamp(30px,5vw,82px); height: 1px; background: #bfd4dc; }
.purchase-wizard-form { padding: 24px 28px 0; }
.purchase-wizard-sections { display: grid; grid-template-columns: minmax(340px,.82fr) minmax(560px,1.35fr); gap: 20px; align-items: start; }
.purchase-step-card { padding: 22px; border: 1px solid #d5e2e8; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(14,54,72,.045); }
.purchase-step-service { background: linear-gradient(145deg,#f4fbfc,#fff 62%); }
.purchase-step-logistics { grid-column: 1 / -1; }
.purchase-step-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e6eef2; }
.purchase-step-heading > span { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; }
.purchase-step-heading h3 { margin: 1px 0 4px; color: var(--navy); font-size: 18px; }
.purchase-step-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.purchase-step-card .field label { margin-bottom: 7px; }
.purchase-step-card .field-disabled { opacity: .5; }
.purchase-part-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; }
.purchase-part-grid > .field { grid-column: span 3; }
.purchase-part-grid .purchase-part-name { grid-column: 1 / -1; }
.purchase-part-grid > .field:nth-child(4) { grid-column: span 1; }
.purchase-part-grid > .field:nth-child(5) { grid-column: span 2; }
.purchase-part-grid .purchase-diagnosis { grid-column: span 3; }
.purchase-logistics-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; align-items: start; }
.purchase-logistics-grid > .field { grid-column: span 1; }
.purchase-logistics-grid .purchase-supplier { grid-column: span 2; }
.purchase-logistics-grid .purchase-notes { grid-column: 1 / -1; }
.purchase-action-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 22px 0 24px; padding: 16px 18px; border: 1px solid #b9d4dc; border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 16px 40px rgba(6,45,62,.15); backdrop-filter: blur(12px); }
.purchase-live-summary { display: flex; align-items: center; gap: 30px; min-width: 0; }
.purchase-live-summary span { display: grid; gap: 3px; min-width: 0; }
.purchase-live-summary span + span { padding-left: 28px; border-left: 1px solid #d7e4e9; }
.purchase-live-summary small,.purchase-action-copy small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.purchase-live-summary strong { max-width: 460px; overflow: hidden; color: var(--navy); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-live-summary span:last-child strong { color: #087f63; font-size: 20px; }
.purchase-action-copy { display: flex; align-items: center; gap: 16px; }
.purchase-action-copy .button { min-width: 250px; }
.purchase-executive-layout .purchase-list-panel { position: static; }

@media (max-width: 1280px) {
    .purchase-wizard-sections { grid-template-columns: 1fr; }
    .purchase-step-logistics { grid-column: auto; }
    .purchase-logistics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .purchase-logistics-grid .purchase-supplier { grid-column: span 2; }
}
@media (max-width: 800px) {
    .purchase-wizard-heading { padding: 20px; align-items: flex-start; }
    .purchase-wizard-badge { display: none; }
    .purchase-progress { justify-content: space-between; gap: 6px; padding: 14px 18px; }
    .purchase-progress > div { display: flex; min-width: 0; }
    .purchase-progress strong,.purchase-progress small,.purchase-progress i { display: none; }
    .purchase-wizard-form { padding: 16px 16px 0; }
    .purchase-step-card { padding: 18px; }
    .purchase-part-grid,.purchase-logistics-grid,.purchase-step-service .form-grid-2 { grid-template-columns: 1fr; }
    .purchase-part-grid > .field,.purchase-part-grid > .field:nth-child(4),.purchase-part-grid > .field:nth-child(5),.purchase-part-grid .purchase-diagnosis,.purchase-logistics-grid > .field,.purchase-logistics-grid .purchase-supplier,.purchase-logistics-grid .purchase-notes { grid-column: 1; }
    .purchase-action-bar,.purchase-action-copy { align-items: stretch; flex-direction: column; }
    .purchase-live-summary { justify-content: space-between; width: 100%; gap: 12px; }
    .purchase-live-summary span + span { padding-left: 12px; }
    .purchase-action-copy .button { width: 100%; min-width: 0; }
}
.supplier-form-section .form-grid { padding: 0 26px; }
.supplier-line-onboarding { border-color: #aadce3; background: linear-gradient(145deg, #fff, #f5fbfc); }
.supplier-form-actions { position: sticky; z-index: 8; bottom: 12px; display: flex; justify-content: flex-end; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 16px 38px rgba(9, 49, 64, .16); backdrop-filter: blur(12px); }
.supplier-form-actions .button { width: auto; min-width: 170px; }
.input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.input-suffix input { min-width: 0; border-radius: 11px 0 0 11px !important; }
.input-suffix span { display: grid; min-width: 48px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 11px 11px 0; color: var(--muted); background: #f5f8f9; font-size: 9px; font-weight: 800; }

.supplier-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.supplier-profile-actions { display: flex; gap: 9px; }
.supplier-profile-actions .button { width: auto; }
.supplier-profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, .48fr); gap: 22px; align-items: center; margin-bottom: 20px; padding: 28px 30px; border: 1px solid #cfe2e6; border-radius: 22px; background: linear-gradient(128deg, #fff 0%, #f5fbfc 68%, #e9f7f9 100%); box-shadow: 0 18px 50px rgba(7, 48, 65, .07); }
.supplier-profile-mark { width: 76px; height: 76px; border-radius: 21px; font-size: 22px; }
.supplier-profile-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.supplier-profile-identity h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.supplier-profile-identity > p { margin: 8px 0 12px; color: var(--muted); }
.supplier-profile-rating { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.supplier-profile-rating strong { color: #d89b10; letter-spacing: 2px; }
.supplier-profile-rating span { color: var(--muted); font-size: 10px; }
.supplier-profile-contact { display: grid; gap: 5px; padding: 18px; border: 1px solid rgba(14, 126, 147, .16); border-radius: 16px; background: rgba(255,255,255,.8); }
.supplier-profile-contact > span { color: var(--teal); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.supplier-profile-contact strong { font-size: 15px; }
.supplier-profile-contact small { color: var(--muted); }
.supplier-detail-metrics { margin-bottom: 20px; }
.supplier-profile-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.supplier-profile-main, .supplier-profile-side { display: grid; gap: 20px; }
.supplier-profile-side { position: sticky; top: 18px; }
.supplier-lines-panel .panel-heading, .supplier-contacts-panel .panel-heading { align-items: flex-start; }
.panel-heading p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel-count { padding: 6px 10px; border-radius: 99px; color: var(--teal); background: #e8f7f9; font-size: 9px; font-weight: 850; }
.supplier-line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 18px 22px; border-top: 1px solid var(--line); }
.supplier-line-card { display: grid; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(8, 45, 59, .04); }
.supplier-line-card.is-inactive, .supplier-contact-card.is-inactive { opacity: .55; background: #f6f7f7; }
.supplier-line-category { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.supplier-line-card h3 { margin: 0 0 8px; font-size: 16px; }
.supplier-line-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.supplier-line-facts { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.supplier-line-facts span { min-width: 0; }
.supplier-line-facts small, .supplier-line-facts strong { display: block; }
.supplier-line-facts small { margin-bottom: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.supplier-line-facts strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.supplier-inline-create { border-top: 1px solid var(--line); }
.supplier-inline-create summary { padding: 16px 22px; color: var(--teal); font-size: 11px; font-weight: 850; cursor: pointer; list-style: none; }
.supplier-inline-create summary::-webkit-details-marker { display: none; }
.supplier-inline-create[open] summary { background: #f6fbfc; }
.supplier-inline-create form { padding: 20px 22px 24px; background: #f9fcfd; }
.supplier-inline-create .button { width: auto; margin-top: 15px; }
.supplier-contact-list { display: grid; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line); }
.supplier-contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
.supplier-contact-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--teal); background: #eaf7f8; font-weight: 900; }
.supplier-contact-card strong, .supplier-contact-card small { display: block; }
.supplier-contact-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.supplier-contact-actions { display: flex; gap: 10px; align-items: center; }
.supplier-contact-actions > a { color: var(--teal); font-size: 9px; font-weight: 850; text-decoration: none; }
.supplier-facts-card dl { margin: 0; padding: 0 20px 18px; }
.supplier-facts-card dl > div { padding: 11px 0; border-top: 1px solid var(--line); }
.supplier-facts-card dt { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.supplier-facts-card dd { margin: 0; color: var(--navy); font-size: 10px; font-weight: 750; line-height: 1.5; }
.supplier-facts-card dd a { color: var(--teal); }
.supplier-risk-card > p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.supplier-internal-note { margin: 0 20px 20px; padding: 13px; border-radius: 13px; background: #fff8e5; }
.supplier-internal-note strong { font-size: 9px; }
.supplier-internal-note p { margin: 5px 0 0; color: #6b5b36; font-size: 9px; line-height: 1.5; }
.supplier-status-form .button { width: 100%; }
.supplier-edit-panel { margin-top: 20px; overflow: hidden; }
.supplier-edit-panel > summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; }
.supplier-edit-panel > summary::-webkit-details-marker { display: none; }
.supplier-edit-panel > summary span strong, .supplier-edit-panel > summary span small { display: block; }
.supplier-edit-panel > summary span small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.supplier-edit-panel > summary b { color: var(--teal); font-size: 10px; }
.supplier-edit-form { padding: 24px; border-top: 1px solid var(--line); background: #f9fcfd; }
.supplier-edit-form .form-actions { margin-top: 18px; }

@media (max-width: 1260px) {
    .supplier-filters { grid-template-columns: minmax(230px, 1.5fr) repeat(3, 1fr); }
    .supplier-filters .button, .supplier-filters .filter-clear { justify-self: start; }
    .supplier-premium-row { grid-template-columns: 48px minmax(210px, 1.4fr) minmax(150px, .8fr) minmax(160px, .9fr) 115px 18px; gap: 11px; }
}
@media (max-width: 1040px) {
    .supplier-premium-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .supplier-contact-summary, .supplier-performance, .supplier-confidence { grid-column: 2; }
    .supplier-row-arrow { grid-column: 3; grid-row: 1 / span 4; }
    .supplier-profile-layout { grid-template-columns: 1fr; }
    .supplier-profile-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supplier-risk-card, .supplier-status-form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .supplier-filters { grid-template-columns: 1fr; padding: 16px; }
    .supplier-filters .button { width: 100%; }
    .supplier-premium-list { padding: 8px; }
    .supplier-premium-row { padding: 16px 10px; }
    .supplier-profile-heading { align-items: flex-start; flex-direction: column; }
    .supplier-profile-actions { width: 100%; }
    .supplier-profile-actions .button { flex: 1; }
    .supplier-profile-hero { grid-template-columns: auto 1fr; padding: 20px; }
    .supplier-profile-mark { width: 58px; height: 58px; border-radius: 17px; font-size: 17px; }
    .supplier-profile-contact { grid-column: 1 / -1; }
    .supplier-line-grid { grid-template-columns: 1fr; padding: 14px; }
    .supplier-profile-side { grid-template-columns: 1fr; }
    .supplier-risk-card, .supplier-status-form { grid-column: auto; }
    .supplier-contact-card { grid-template-columns: auto minmax(0, 1fr); }
    .supplier-contact-actions { grid-column: 2; }
    .supplier-form-section .form-grid { padding: 0 16px; }
    .supplier-form-actions { bottom: 74px; }
    .supplier-form-actions .button { min-width: 0; flex: 1; }
}

/* V18.3 · Condições de recebimento e parcelamento */
.payment-plan-builder { display: grid; gap: 18px; }
.payment-plan-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 18px 20px; border: 1px solid #b9dfe5; border-radius: 16px; background: linear-gradient(135deg,#effafb,#fff); }
.payment-plan-total span { color: var(--muted); font-size: 11px; font-weight: 750; }
.payment-plan-total strong { grid-row: span 2; color: var(--navy); font-size: 24px; }
.payment-plan-total small { color: var(--muted); }
.payment-plan-step { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.payment-plan-step[hidden] { display: none; }
.payment-plan-step-heading { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.payment-plan-step-heading > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #fff; background: var(--navy); font-weight: 900; }
.payment-plan-step-heading div { display: grid; gap: 3px; }
.payment-plan-step-heading strong { font-size: 15px; }
.payment-plan-step-heading small { color: var(--muted); }
.payment-account-required select { border-color: #18a28a; box-shadow: 0 0 0 3px rgba(24,162,138,.1); }
.payment-plan-preview { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; padding: 20px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,var(--navy),#126a79); }
.payment-plan-preview div { display: grid; gap: 4px; }
.payment-plan-preview span { color: #bce9ef; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.payment-plan-preview strong { font-size: 20px; }
.payment-plan-preview > small { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); color: #d7f1f4; }
.payment-preview-plus,.payment-preview-equals { color: #fff!important; font-size: 20px!important; }
.payment-plan-guidance { margin: 0; }
.payment-plan-aftercare { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.payment-plan-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.payment-plan-overview article { display: grid; gap: 6px; min-height: 88px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.payment-plan-overview span { color: var(--muted); font-size: 10px; font-weight: 750; }
.payment-plan-overview strong { font-size: 16px; }
.payment-schedule-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.payment-schedule-row { display: grid; grid-template-columns: 1.15fr .9fr 1fr .75fr .75fr 1fr; gap: 12px; align-items: center; min-width: 850px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.payment-schedule-row:last-child { border-bottom: 0; }
.payment-schedule-head { color: var(--muted); background: #f7fafb; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.payment-plan-note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; color: var(--muted); background: #f3f8f9; line-height: 1.55; }
.machine-explainer { display: flex; align-items: flex-start; gap: 15px; max-width: 1160px; margin: 0 0 22px; padding: 18px 20px; border: 1px solid #bde2e8; border-radius: 17px; background: linear-gradient(135deg,#effcfd,#fff); }
.machine-explainer-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--teal); font-weight: 900; font-size: 21px; }
.machine-explainer strong { color: var(--navy); font-size: 15px; }
.machine-explainer p { max-width: 940px; margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.machine-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 22px; }
.machine-metrics .metric-card:last-child strong { font-size: 16px; }
.machine-layout { display: grid; grid-template-columns: minmax(330px,.82fr) minmax(500px,1.18fr); gap: 20px; align-items: start; }
.machine-capture-card { min-width: 0; }
.machine-open-panel { overflow: hidden; }
.machine-open-list { display: grid; border-bottom: 1px solid var(--line); }
.machine-receivable-row { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 15px 20px; border-top: 1px solid #edf2f4; cursor: pointer; transition: background .18s ease; }
.machine-receivable-row:hover { background: #f4fbfc; }
.machine-receivable-row input { position: absolute; opacity: 0; pointer-events: none; }
.machine-check { width: 18px; height: 18px; border: 2px solid #9bc3cc; border-radius: 6px; background: #fff; }
.machine-receivable-row input:checked + .machine-check { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.machine-receivable-row strong { display: block; color: var(--navy); font-size: 13px; }
.machine-receivable-row small, .machine-history-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.machine-receivable-row b { color: #127d65; white-space: nowrap; }
.machine-settlement-form { display: grid; }
.machine-settlement-summary { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin: 18px 20px; padding: 16px 18px; border-radius: 14px; color: #d9f4f6; background: linear-gradient(135deg,var(--navy),#0e7787); }
.machine-settlement-summary span { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.machine-settlement-summary strong { color: #fff; text-align: right; }
.machine-settlement-fields { padding: 0 20px 4px; }
.machine-settlement-form .form-actions { padding: 0 20px 22px; }
.machine-history-panel { margin-top: 22px; overflow: hidden; }
.machine-history-table { min-width: 780px; }
.machine-history-head, .machine-history-row { display: grid; grid-template-columns: 1.2fr 1.05fr .7fr .7fr .7fr .55fr; gap: 14px; align-items: center; padding: 14px 22px; }
.machine-history-head { color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.machine-history-row { border-bottom: 1px solid #edf2f4; color: var(--navy); font-size: 12px; }
.machine-history-row:last-child { border-bottom: 0; }
.machine-history-row strong { font-size: 13px; }
@media (max-width: 1100px) { .machine-layout { grid-template-columns: 1fr; } .machine-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .machine-explainer { margin-top: 10px; } .machine-metrics { grid-template-columns: 1fr; } .machine-open-panel { overflow-x: auto; } .machine-history-panel { overflow-x: auto; } .machine-receivable-row { padding: 14px; } .machine-settlement-fields, .machine-settlement-form .form-actions { padding-left: 14px; padding-right: 14px; } }

@media (max-width: 900px) {
    .payment-plan-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payment-plan-preview { grid-template-columns: 1fr; }
    .payment-preview-plus,.payment-preview-equals { display: none; }
}
@media (max-width: 620px) {
    .payment-plan-total { grid-template-columns: 1fr; }
    .payment-plan-total strong { grid-row: auto; }
    .payment-plan-overview { grid-template-columns: 1fr; }
}

/* Orientação de origem dos leads V15.1 */
.lead-source-guide { overflow: hidden; border: 1px solid #cfe6ea; border-radius: 14px; background: #f7fcfd; }
.lead-source-guide summary { padding: 12px 14px; color: var(--teal); font-size: 9px; font-weight: 850; line-height: 1.45; cursor: pointer; list-style: none; }
.lead-source-guide summary::-webkit-details-marker { display: none; }
.lead-source-guide summary::after { content: '＋'; float: right; font-size: 13px; }
.lead-source-guide[open] summary::after { content: '−'; }
.lead-source-guide > div { display: grid; gap: 8px; padding: 0 12px 12px; }
.lead-source-guide article { padding: 10px 11px; border: 1px solid rgba(16, 128, 148, .12); border-radius: 11px; background: #fff; }
.lead-source-guide article strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 9px; }
.lead-source-guide article p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }

/* Atribuição manual compatível com a operação atual V15.2 */
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.manual-attribution-details { border-color: #b9dfe5; background: #f8fcfd; }
.manual-attribution-details > summary { line-height: 1.45; }
.manual-attribution-note { display: grid; gap: 3px; margin-top: 11px; padding: 10px 11px; border: 1px solid #d5e8ec; border-radius: 10px; color: var(--navy); background: #fff; }
.manual-attribution-note strong { font-size: 9px; }
.manual-attribution-note span { color: var(--muted); font-size: 8px; line-height: 1.45; }

/* Proteção de ordens concluídas V16.8 */
.order-history-lock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 20px; padding: 20px 22px; border: 1px solid #b9dfd2; border-radius: 18px; background: linear-gradient(135deg, #f4fcf8 0%, #edf9f5 100%); box-shadow: 0 12px 30px rgba(12, 100, 72, .08); }
.history-lock-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: #0c7254; background: #d9f3e8; font-size: 18px; }
.order-history-lock h2 { margin: 3px 0 5px; color: var(--navy); font-size: 17px; }
.order-history-lock p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.order-history-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.order-history-fields .form-card { background: #f8fafb; box-shadow: none; }
.order-history-fields :is(input, select, textarea):disabled { opacity: 1; color: #526873; border-color: #d8e2e6; background: #eef3f5; -webkit-text-fill-color: #526873; cursor: not-allowed; }
.order-history-cancelled { border-color: #efc2bb; background: linear-gradient(135deg, #fff8f7 0%, #fdf0ee 100%); box-shadow: 0 12px 30px rgba(158, 57, 47, .08); }
.order-history-cancelled .history-lock-icon { color: #9c3e34; background: #f8ddd9; }
.order-history-cancelled .eyebrow { color: #a4483d; }
.order-history-cancelled p strong { color: #7f3028; }
.cancellation-reason-field { border: 1px solid #efc8c2; border-radius: 13px; padding: 14px; background: #fff8f7; }
.cancellation-reason-field[hidden] { display: none; }
.history-lock-action { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 11px; color: #55707b; background: #edf3f5; font-size: 10px; font-weight: 850; }
.order-history-note { margin: 0 18px 16px; padding: 13px 14px; border: 1px solid #d7e5e9; border-radius: 12px; background: #f7fafb; }
.order-history-note strong { display: block; color: var(--navy); font-size: 10px; }
.order-history-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.cost-entry-list .cost-entry-history { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf2f4; padding: 12px 20px; color: inherit; background: #fafcfc; }
.cost-entry-list .cost-entry-correction { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-left: 3px solid #0b90a6; background: linear-gradient(90deg, #edf9fa, #fff); }
.cost-entry-list .cost-entry-correction small { color: #087287; font-weight: 750; }
.cost-entry-list .cost-entry-correction:hover { background: #eaf8fa; }
.correction-only-note { margin: 0; }
.cost-entry-correction-label { display: inline-flex !important; align-items: center; justify-content: center; min-height: 25px; padding: 0 8px; border-radius: 999px; color: #fff; background: #078198; font-size: 8px !important; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.manual-cost-correction-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; margin: 0 18px 16px; padding: 15px; border: 1px solid #9ed6de; border-radius: 14px; background: linear-gradient(135deg, #effbfd, #fff); box-shadow: 0 8px 20px rgba(6, 104, 124, .08); }
.manual-cost-correction-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #0aa3b8, #076d83); font-size: 20px; font-weight: 700; }
.manual-cost-correction-card h3 { margin: 2px 0 4px; color: var(--navy); font-size: 13px; }
.manual-cost-correction-card p { margin: 0; color: #496672; font-size: 9px; line-height: 1.52; }
.manual-cost-correction-card ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; counter-reset: correction; }
.manual-cost-correction-card li { position: relative; min-height: 32px; padding: 8px 8px 8px 27px; border: 1px solid #d4e9ec; border-radius: 9px; color: #335461; background: rgba(255,255,255,.8); font-size: 8px; font-weight: 700; line-height: 1.35; counter-increment: correction; }
.manual-cost-correction-card li::before { position: absolute; top: 8px; left: 8px; content: counter(correction); display: grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; color: #087287; background: #d9f2f5; font-size: 8px; font-weight: 850; }
.manual-cost-correction-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 15px; margin: 16px 0 20px; padding: 19px 21px; border: 1px solid #9ed6de; border-radius: 16px; background: linear-gradient(125deg, #ecfafc, #fff); box-shadow: 0 10px 26px rgba(5, 92, 110, .09); }
.manual-cost-correction-hero h2 { margin: 3px 0 5px; color: var(--navy); font-size: 19px; }
.manual-cost-correction-hero p { margin: 0; color: #4e6b75; font-size: 10px; line-height: 1.55; }
.manual-cost-correction-hero ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.manual-cost-correction-hero li { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #d5e8ec; border-radius: 10px; color: #34535f; background: rgba(255,255,255,.78); font-size: 9px; font-weight: 750; line-height: 1.35; }
.manual-cost-correction-hero li b { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #087f95; font-size: 10px; }
@media (max-width: 760px) { .manual-cost-correction-card ol, .manual-cost-correction-hero ol { grid-template-columns: 1fr; } .cost-entry-list .cost-entry-correction { grid-template-columns: minmax(0, 1fr) auto; } .cost-entry-correction-label { grid-column: 1 / -1; justify-self: start; } }

@media (max-width: 760px) {
    .order-history-lock { grid-template-columns: auto minmax(0, 1fr); padding: 17px; }
    .order-history-lock > .status { grid-column: 2; justify-self: start; }
}

/* Fornecedores web e compras em marketplace V17 */
.supplier-web-form-section { border-color: #b9dfe5; background: linear-gradient(145deg, #fff 0%, #f4fbfc 100%); }
.supplier-web-form-section .step-number { width: auto; min-width: 42px; padding: 0 9px; color: #fff; background: var(--teal); font-size: 8px; letter-spacing: .08em; }
.supplier-channel-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; color: #07687b; background: #e1f5f7; font-size: 8px; font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.supplier-directory-actions, .supplier-web-links, .purchase-online-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.supplier-web-profile-card { border-color: #b9dfe5; background: linear-gradient(155deg, #fff 0%, #f0fafb 100%); }
.supplier-web-links { padding: 0 18px 18px; }
.supplier-web-links .button { flex: 1; min-width: 110px; }
.supplier-web-notes { margin: 0 18px 18px; padding: 12px; border-radius: 10px; color: var(--muted); background: #fff; font-size: 9px; line-height: 1.55; }
.purchase-supplier-helper a { color: var(--teal); font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.purchase-product-link input { border-color: #9ed7df; background: #f8fdfe; }
.purchase-logistics-grid .purchase-product-link { grid-column: span 2; }
.purchase-online-card { margin-bottom: 18px; overflow: hidden; border-color: #b9dfe5; }
.purchase-online-card .operation-form { padding: 18px 20px; background: linear-gradient(135deg, #f5fcfd 0%, #fff 72%); }
.purchase-online-card .form-actions { margin-top: 13px; }
.supplier-web-compact { width: min(100%, 1120px); margin-right: auto; margin-left: auto; }
.supplier-web-optional { margin-top: 16px; overflow: hidden; border: 1px dashed #b9dfe5; border-radius: 13px; background: rgba(255,255,255,.72); }
.supplier-web-optional summary { padding: 13px 15px; color: var(--teal); font-size: 9px; font-weight: 850; cursor: pointer; list-style: none; }
.supplier-web-optional summary::-webkit-details-marker { display: none; }
.supplier-web-optional summary::after { content: '＋'; float: right; }
.supplier-web-optional[open] summary::after { content: '−'; }
.supplier-web-optional > .form-grid { padding: 2px 15px 15px; }

@media (max-width: 760px) {
    .supplier-directory-actions, .supplier-web-links, .purchase-online-actions { width: 100%; }
    .supplier-directory-actions .button, .purchase-online-actions .button { flex: 1; }
}

/* Central de reembolsos técnicos V18.4 */
.reimbursement-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 20px; }
.reimbursement-guide { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 22px 24px; border: 1px solid #bee2e7; border-radius: 18px; background: linear-gradient(115deg,#f0fbfc,#fff); }
.reimbursement-guide h2 { margin: 4px 0 0; font-size: 19px; }
.reimbursement-guide ol { display: grid; grid-template-columns: repeat(3,minmax(160px,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.reimbursement-guide li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; color: var(--muted); font-size: 9px; line-height: 1.45; }
.reimbursement-guide li strong { grid-column: 1 / -1; color: var(--navy); font-size: 10px; }
.reimbursement-layout { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 20px; align-items: start; margin-bottom: 20px; }
.reimbursement-form-card { margin: 0; }
.reimbursement-allocation-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 25px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.reimbursement-allocation-heading h2 { margin: 3px 0; font-size: 17px; }
.reimbursement-allocation-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.reimbursement-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #f9fcfc; }
.reimbursement-item-list { min-width: 820px; padding: 13px; }
.reimbursement-item-row { display: grid; grid-template-columns: 2.1fr 1.7fr .5fr 1fr auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid #e5eef0; }
.reimbursement-item-row:first-child { padding-top: 0; }
.reimbursement-item-row:last-child { padding-bottom: 0; border-bottom: 0; }
.reimbursement-item-row .field { margin: 0; }
.reimbursement-item-row .field label { font-size: 8px; }
.reimbursement-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border: 1px solid #087287; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #0793a9, #07697f); box-shadow: 0 10px 20px rgba(4, 91, 111, .22); font-weight: 850; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.reimbursement-add span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 18px; font-weight: 500; line-height: 1; }
.reimbursement-add:hover { color: #fff; background: linear-gradient(135deg, #0aa6bd, #075e73); box-shadow: 0 14px 24px rgba(4, 91, 111, .3); transform: translateY(-1px); }
.reimbursement-add:focus-visible, .reimbursement-remove:focus-visible { outline: 3px solid rgba(8, 147, 169, .25); outline-offset: 3px; }
.reimbursement-remove { align-self: end; display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; color: #9c372d; border: 1px solid #edb6af; border-radius: 10px; background: #fff7f6; box-shadow: 0 3px 8px rgba(142, 58, 48, .06); font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.reimbursement-remove > span:first-child { font-size: 17px; font-weight: 500; line-height: 1; }
.reimbursement-remove:hover { color: #fff; border-color: #ae4338; background: #ae4338; box-shadow: 0 9px 18px rgba(142, 58, 48, .22); transform: translateY(-1px); }
.reimbursement-check { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 14px 0 20px; padding: 16px 18px; border: 1px solid #cde3e7; border-radius: 13px; background: #f5fbfc; }
.reimbursement-check div { display: flex; flex-direction: column; gap: 4px; }
.reimbursement-check span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.reimbursement-check strong { color: var(--navy); font-size: 17px; }
.reimbursement-check .is-ok strong { color: #0e8b68; }
.reimbursement-check .is-error strong { color: #c34b3f; }
.reimbursement-check p { grid-column: 1 / -1; margin: 1px 0 0; color: var(--muted); font-size: 9px; }
.reimbursement-side-note { padding: 22px; background: linear-gradient(145deg,#093c4e,#0b6977); color: #fff; }
.reimbursement-side-note .eyebrow { color: #8de8f1; }
.reimbursement-side-note h2 { margin: 5px 0 13px; color: #fff; font-size: 19px; }
.reimbursement-side-note ol { display: grid; gap: 11px; margin: 0; padding-left: 19px; color: #d4eef1; font-size: 10px; line-height: 1.45; }
.reimbursement-side-note p { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); color: #d4eef1; font-size: 10px; line-height: 1.55; }
.reimbursement-side-note p strong { color: #fff; }
.reimbursement-history { margin-bottom: 20px; overflow: hidden; }
.reimbursement-empty-state { display: flex; min-height: 190px; padding: 30px 24px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.reimbursement-empty-state strong { display: block; max-width: 100%; color: var(--navy); font-size: 16px; }
.reimbursement-empty-state span { display: block; max-width: 520px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: normal; }
.reimbursement-history-list { display: grid; }
.reimbursement-history-row { display: grid; grid-template-columns: minmax(0,1fr) 160px 155px auto; gap: 16px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.reimbursement-history-row:hover { background: #f6fbfc; }
.reimbursement-history-row div { display: grid; gap: 3px; }
.reimbursement-history-row strong { color: var(--navy); font-size: 11px; }
.reimbursement-history-row span { color: var(--muted); font-size: 9px; }
.reimbursement-history-row > b { color: var(--teal); font-size: 15px; }
.reimbursement-record-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding: 17px 20px; border: 1px solid #bce3d4; border-radius: 16px; background: #effbf5; }
.reimbursement-record-banner > span { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #fff; background: #14956f; font-weight: 900; }
.reimbursement-record-banner strong { color: #0c604b; font-size: 12px; }
.reimbursement-record-banner p { margin: 4px 0 0; color: #47736a; font-size: 10px; }
.reimbursement-detail-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; }
.reimbursement-detail-table { overflow-x: auto; }
.reimbursement-detail-row { display: grid; grid-template-columns: 1fr 1.4fr 1.5fr .6fr .7fr; min-width: 750px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.reimbursement-detail-row a { display: grid; gap: 2px; color: var(--teal); text-decoration: none; }
.reimbursement-detail-row strong { color: var(--navy); font-size: 11px; }
.reimbursement-detail-row small { color: var(--muted); font-size: 8px; }
.reimbursement-detail-head { color: var(--muted); background: #f7fafb; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.reimbursement-audit { margin: 20px 0; padding: 20px; }
.reimbursement-audit h2 { margin: 4px 0 16px; }
.reimbursement-audit .form-grid > div { display: grid; gap: 5px; }
.reimbursement-audit small { color: var(--muted); font-size: 9px; }
.reimbursement-audit strong { color: var(--navy); font-size: 11px; }
.reimbursement-audit p { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.setup-inline-notice { max-width: 740px; margin: 40px auto; padding: 34px; border: 1px solid #bddfe4; border-radius: 18px; background: #fff; }
.setup-inline-notice h1 { margin: 7px 0; }
.setup-inline-notice p { color: var(--muted); }
@media (max-width: 1000px) { .reimbursement-layout { grid-template-columns: 1fr; } .reimbursement-side-note { order: -1; } .reimbursement-guide { display: grid; } }
@media (max-width: 760px) { .reimbursement-metrics,.reimbursement-detail-metrics { grid-template-columns: 1fr; } .reimbursement-guide { padding: 18px; } .reimbursement-guide ol { grid-template-columns: 1fr; } .reimbursement-allocation-heading { align-items: start; flex-direction: column; } .reimbursement-history-row { grid-template-columns: 1fr auto; gap: 8px; padding: 14px; } .reimbursement-history-row > div:nth-child(2) { grid-column: 1; } .reimbursement-history-row > b { grid-column: 2; grid-row: 1 / span 2; } }

/* Leitura de recebimentos parcelados na central financeira */
.finance-navigation-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fbfdfe; font-size: 10px; }
.finance-navigation-hint kbd { min-width: 20px; border: 1px solid #d7e3e7; border-bottom-width: 2px; border-radius: 5px; padding: 1px 4px; color: var(--navy); background: #fff; font-size: 10px; font-weight: 850; text-align: center; }
.finance-table-navigator { outline: none; }
.finance-table-navigator:focus { box-shadow: 0 0 0 3px rgba(226, 169, 45, .18); }
.finance-plan-summary td { height: auto; padding: 0; background: #eef9fa; border-top: 1px solid #bde4e7; border-bottom: 1px solid #bde4e7; }
.finance-plan-summary-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; }
.finance-plan-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.finance-plan-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--teal); background: #d7f0f3; font-weight: 900; }
.finance-plan-title div { display: grid; min-width: 0; gap: 2px; }
.finance-plan-title span:not(.finance-plan-icon) { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.finance-plan-title strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.finance-plan-title small { color: #5e7881; font-size: 9px; }
.finance-plan-totals { display: flex; flex: 0 0 auto; align-items: center; gap: 15px; }
.finance-plan-totals span { display: grid; gap: 2px; color: #607b84; font-size: 9px; }
.finance-plan-totals b { color: var(--navy); font-size: 11px; }
.finance-plan-totals .finance-plan-paid b { color: #168a68; }
.finance-plan-totals .finance-plan-pending b { color: #aa7312; }
.finance-plan-entry td:first-child { border-left: 3px solid #7dd4db; padding-left: 17px; }
.finance-plan-entry.finance-entry-paid td:first-child { border-left-color: #60c6a6; }
.finance-plan-entry.finance-entry-pending td:first-child { border-left-color: #f0c664; }
.finance-entry-selected td { background: #fff8dc !important; }
.finance-entry-selected td:first-child { box-shadow: inset 4px 0 0 #e2a92d; }
.finance-entry-selected .row-action { color: #805600; }
.finance-entry-cell-selected { box-shadow: inset 0 -3px 0 #e2a92d; }
.finance-table [data-finance-row] { cursor: pointer; transition: background .15s ease; }
.finance-table [data-finance-row]:hover td { background: #f8fcfd; }
.finance-filter-check { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #c9dbe0; border-radius: 11px; color: #405963; background: #fff; font-size: 10px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.finance-filter-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.finance-filter-check span { line-height: 1.2; }
.reconciliation-filter-panel { margin-bottom: 20px; }
.reconciliation-filters { display: grid; grid-template-columns: minmax(190px,1.35fr) minmax(135px,.8fr) minmax(135px,.8fr) minmax(190px,1fr) auto; gap: 12px; align-items: end; padding: 0 20px 4px; }
.reconciliation-filters label { display: grid; gap: 6px; color: var(--navy); font-size: 9px; font-weight: 850; }
.reconciliation-filters input,.reconciliation-filters select { width: 100%; min-height: 44px; border: 1px solid #c9dbe0; border-radius: 11px; padding: 0 12px; color: var(--navy); background: #fff; font: inherit; }
.reconciliation-filters .button { min-height: 44px; white-space: nowrap; }
.reconciliation-help { margin: 15px 20px 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.reconciliation-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; }
.reconciliation-status { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 22px; border: 1px solid #d6e2e5; border-radius: 17px; background: #fff; }
.reconciliation-status.is-pending { border-color: #efd595; background: #fffaf0; }
.reconciliation-status.is-matched { border-color: #bde4d3; background: #effbf5; }
.reconciliation-status.is-different { border-color: #f1c5bf; background: #fff5f3; }
.reconciliation-status-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #8b6415; background: #fff0c9; font-size: 22px; font-weight: 900; }
.is-matched .reconciliation-status-icon { color: #fff; background: #14956f; }
.is-different .reconciliation-status-icon { color: #fff; background: #c34b3f; }
.reconciliation-status h2 { margin: 3px 0 5px; color: var(--navy); font-size: 18px; }
.reconciliation-status p { margin: 0; color: #58717a; font-size: 10px; line-height: 1.5; }
.reconciliation-summary-panel,.reconciliation-movements-panel { margin-bottom: 18px; }
.reconciliation-period,.reconciliation-note { color: var(--muted); font-size: 10px; font-weight: 750; }
.reconciliation-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.reconciliation-summary-grid > div { display: grid; gap: 6px; min-height: 86px; padding: 17px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reconciliation-summary-grid > div:nth-child(3n) { border-right: 0; }
.reconciliation-summary-grid span { color: var(--muted); font-size: 9px; font-weight: 800; }
.reconciliation-summary-grid strong { color: var(--navy); font-size: 18px; }
.reconciliation-source { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #355b66; background: #edf6f8; font-size: 9px; font-weight: 850; }
.reconciliation-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.bank-adjustment-card { margin-bottom: 18px; overflow: hidden; border-color: #cfe0e4; box-shadow: 0 15px 40px rgba(16,55,70,.07); }
.bank-adjustment-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; background: linear-gradient(135deg,#f6fbfc 0%,#fff 70%); border-bottom: 1px solid var(--line); }
.bank-adjustment-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #fff; background: #12849a; font-size: 27px; font-weight: 900; box-shadow: 0 9px 22px rgba(18,132,154,.22); }
.bank-adjustment-card.is-negative .bank-adjustment-icon { background: #c64d40; box-shadow: 0 9px 22px rgba(198,77,64,.2); }
.bank-adjustment-hero h2 { margin: 4px 0 5px; color: var(--navy); font-size: 22px; }
.bank-adjustment-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.bank-adjustment-amount { display: grid; gap: 4px; min-width: 185px; padding: 13px 16px; border: 1px solid #cce8df; border-radius: 13px; background: #effaf6; text-align: right; }
.bank-adjustment-card.is-negative .bank-adjustment-amount { border-color: #f0d0ca; background: #fff3f1; }
.bank-adjustment-amount span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bank-adjustment-amount strong { color: #138b68; font-size: 20px; }
.bank-adjustment-card.is-negative .bank-adjustment-amount strong { color: #c44236; }
.bank-adjustment-form { display: grid; gap: 18px; padding: 22px 24px 24px; }
.bank-adjustment-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.bank-adjustment-details > div { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #dce8eb; border-radius: 12px; background: #f9fcfd; }
.bank-adjustment-details span { color: var(--muted); font-size: 9px; font-weight: 800; }
.bank-adjustment-details strong { color: var(--navy); font-size: 12px; }
.bank-adjustment-reason { display: grid; gap: 7px; color: var(--navy); font-size: 10px; font-weight: 850; }
.bank-adjustment-reason textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid #c9dbe0; border-radius: 13px; padding: 14px 15px; color: var(--navy); background: #fff; font: inherit; line-height: 1.5; transition: border-color .2s,box-shadow .2s; }
.bank-adjustment-reason textarea:focus { outline: 0; border-color: #14879c; box-shadow: 0 0 0 4px rgba(20,135,156,.12); }
.bank-adjustment-reason small { color: var(--muted); font-size: 9px; font-weight: 500; }
.bank-adjustment-confirm { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #d9e6e9; border-radius: 13px; background: #f8fbfc; cursor: pointer; }
.bank-adjustment-confirm input { width: 18px; height: 18px; margin-top: 1px; accent-color: #117d91; }
.bank-adjustment-confirm span { display: grid; gap: 3px; }
.bank-adjustment-confirm b { color: var(--navy); font-size: 11px; }
.bank-adjustment-confirm small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.bank-adjustment-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 2px; }
.bank-adjustment-actions p { margin: 0; color: var(--muted); font-size: 9px; }
.bank-adjustment-actions .button { min-width: 260px; min-height: 46px; }
.bank-adjustment-history { margin-top: 18px; }
.bank-adjustment-history td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.bank-adjustment-history-reason { min-width: 230px; max-width: 430px; line-height: 1.45; }
.bank-adjustment-cancel-form { display: grid; grid-template-columns: minmax(150px,1fr) auto; gap: 7px; min-width: 265px; }
.bank-adjustment-cancel-form input { min-height: 36px; border: 1px solid #d1e0e4; border-radius: 9px; padding: 0 10px; font: inherit; }
@media (max-width: 760px) {
    .finance-navigation-hint { display: none; }
    .finance-plan-summary-content { align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px 15px; }
    .finance-plan-totals { width: 100%; justify-content: space-between; gap: 8px; }
    .finance-plan-entry td:first-child { padding-left: 12px; }
    .finance-filter-check { width: 100%; }
    .reconciliation-filters { grid-template-columns: 1fr; padding: 0 15px 2px; }
    .reconciliation-filters .button { width: 100%; }
    .reconciliation-help { margin: 15px; }
    .reconciliation-metrics { grid-template-columns: 1fr; }
    .reconciliation-status { grid-template-columns: auto 1fr; padding: 16px; }
    .reconciliation-status .button { grid-column: 1 / -1; width: 100%; }
    .reconciliation-summary-grid { grid-template-columns: 1fr; }
    .reconciliation-summary-grid > div,.reconciliation-summary-grid > div:nth-child(3n) { border-right: 0; }
    .bank-adjustment-hero { grid-template-columns: auto 1fr; padding: 18px; }
    .bank-adjustment-amount { grid-column: 1 / -1; min-width: 0; text-align: left; }
    .bank-adjustment-form { padding: 18px; }
    .bank-adjustment-details { grid-template-columns: 1fr; }
    .bank-adjustment-actions { align-items: stretch; flex-direction: column; }
    .bank-adjustment-actions .button { width: 100%; min-width: 0; }
}
/* V18.5.8 - Relatório diário de caixa */
.daily-fiscal-filter-panel { overflow: visible; margin-bottom: 18px; }
.daily-fiscal-filters { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(160px, .7fr) minmax(175px, .8fr) auto; gap: 12px; align-items: end; padding: 18px 20px; }
.daily-fiscal-filters label { display: grid; gap: 7px; color: var(--navy); font-size: 10px; font-weight: 800; }
.daily-fiscal-filters select, .daily-fiscal-filters input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--navy); background: #fff; }
.daily-fiscal-filters .button { min-height: 43px; white-space: nowrap; }
.daily-fiscal-metrics { margin-bottom: 18px; }
.daily-fiscal-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; border: 1px solid #bfe6ea; border-radius: 16px; padding: 18px 20px; background: linear-gradient(100deg, #effbfc, #fbffff); }
.daily-fiscal-strip h2 { margin: 4px 0; color: var(--navy); font-size: 18px; }
.daily-fiscal-strip p { margin: 0; color: var(--muted); font-size: 11px; }
.daily-fiscal-list-panel { overflow: hidden; }
.daily-fiscal-table { min-width: 900px; }
.daily-fiscal-table td { vertical-align: middle; }
.daily-fiscal-table td:first-child strong, .daily-fiscal-table td:first-child small { display: block; }
.daily-fiscal-table td:first-child small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.daily-fiscal-type { display: inline-flex; border-radius: 99px; padding: 6px 9px; font-size: 9px; font-weight: 850; }
.daily-fiscal-type.is-income { color: #0c765a; background: #e7f7f0; }
.daily-fiscal-type.is-expense { color: #b64437; background: #fff0ed; }
.daily-fiscal-cancelled-row { background: #fbfcfd; opacity: .72; }
.status-cancelled { color: #9a473d; background: #f8e9e6; }
@media (max-width: 900px) { .daily-fiscal-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .daily-fiscal-filters { grid-template-columns: 1fr; } .daily-fiscal-strip { align-items: stretch; flex-direction: column; } .daily-fiscal-strip .button { width: 100%; } }

/* V19.10.8 - botoes globais consistentes e Reserva CDI completa no modo escuro */
.button {
    position: relative;
    gap: 8px;
    border: 1px solid transparent;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.button:hover:not(:disabled):not(.button-disabled) { transform: translateY(-1px); }
.button:active:not(:disabled):not(.button-disabled) { transform: translateY(0); box-shadow: none; }
.button:focus-visible { outline: 3px solid rgba(26,165,183,.28); outline-offset: 3px; }
.button:disabled,
.button[aria-disabled="true"],
.button-disabled { opacity: .52; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }

.button-primary {
    color: #fff;
    border-color: #08788e;
    background: linear-gradient(135deg,#11a9bd 0%,#087287 58%,#075b70 100%);
    box-shadow: 0 10px 24px rgba(5,103,124,.24);
}
.button-primary:hover:not(:disabled):not(.button-disabled) {
    color: #fff;
    border-color: #16bfd2;
    background: linear-gradient(135deg,#19b8ca 0%,#087f95 58%,#075e73 100%);
    box-shadow: 0 14px 28px rgba(5,103,124,.3);
    filter: none;
}
.button-secondary {
    color: #fff;
    border-color: #082f43;
    background: linear-gradient(135deg,#0b455b,#082f43);
    box-shadow: 0 8px 20px rgba(7,43,59,.18);
}
.button-secondary:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #0f7184; background: linear-gradient(135deg,#0d586d,#0a3b4e); }
.button-ghost { color: #24434f; border-color: #c9dce1; background: #fff; box-shadow: 0 4px 12px rgba(7,43,59,.05); }
.button-ghost:hover:not(:disabled):not(.button-disabled) { color: #075f73; border-color: #67c7d1; background: #eef9fa; box-shadow: 0 8px 18px rgba(8,105,123,.1); }
.button-danger { color: #a13c31; border-color: #edb9b2; background: #fff4f2; box-shadow: 0 5px 14px rgba(151,55,45,.07); }
.button-danger:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #ad4035; background: #ad4035; box-shadow: 0 10px 22px rgba(151,55,45,.2); }
.button-whatsapp { color: #fff; border-color: #117457; background: linear-gradient(135deg,#20a77d,#117457); box-shadow: 0 9px 22px rgba(17,116,87,.2); }
.button-whatsapp:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #34c899; background: linear-gradient(135deg,#28b98b,#0f6c51); }

html[data-theme="dark"] .button-primary { color: #06191f; border-color: #65cfdb; background: linear-gradient(135deg,#72dbe4,#43bac8); box-shadow: 0 11px 26px rgba(35,176,191,.18); }
html[data-theme="dark"] .button-primary:hover:not(:disabled):not(.button-disabled) { color: #041418; border-color: #9ae8ee; background: linear-gradient(135deg,#91e7ed,#58cbd6); box-shadow: 0 14px 30px rgba(35,176,191,.25); }
html[data-theme="dark"] .button-secondary { color: #eaf7f9; border-color: #3c606c; background: linear-gradient(135deg,#1c3a45,#142c35); }
html[data-theme="dark"] .button-secondary:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #65cfdb; background: linear-gradient(135deg,#244b57,#193640); }
html[data-theme="dark"] .button-ghost { color: #d8e9ed; border-color: #3a5964; background: #172b33; box-shadow: none; }
html[data-theme="dark"] .button-ghost:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #65cfdb; background: #1d3943; box-shadow: 0 9px 20px rgba(0,0,0,.2); }
html[data-theme="dark"] .button-danger { color: #ffb3aa; border-color: #724840; background: #352321; }
html[data-theme="dark"] .button-danger:hover:not(:disabled):not(.button-disabled) { color: #fff; border-color: #ff8375; background: #8d3d34; }
html[data-theme="dark"] .button-whatsapp { color: #eafff7; border-color: #2ca77f; background: linear-gradient(135deg,#188866,#11664e); }

html[data-theme="dark"] .reserve-balance-card {
    color: #fff;
    border-color: #2f7483;
    background: linear-gradient(145deg,#093b4c,#0b6575);
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
html[data-theme="dark"] .reserve-summary-card {
    color: var(--ink);
    border-color: #31515c;
    background: linear-gradient(145deg,#172d35,#12252c);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
html[data-theme="dark"] .reserve-summary-card > span,
html[data-theme="dark"] .reserve-summary-card > small { color: #9eb3ba; }
html[data-theme="dark"] .reserve-summary-card > strong { color: #edf9fb; }

html[data-theme="dark"] .reserve-calculation article {
    color: var(--ink);
    border-color: #34535e;
    background: #12252c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .reserve-calculation article span { color: #a8bbc1; }
html[data-theme="dark"] .reserve-calculation article strong { color: #eef9fb; }
html[data-theme="dark"] .reserve-calculation .reserve-target { border-color: #2f7784; background: linear-gradient(145deg,#15383f,#122b32); }
html[data-theme="dark"] .reserve-calculation .reserve-target strong { color: #80dce5; }
html[data-theme="dark"] .reserve-calculation .reserve-pending { border-color: #724840; background: linear-gradient(145deg,#352321,#2d201f); }
html[data-theme="dark"] .reserve-calculation .reserve-pending strong { color: #ff8d80; }
html[data-theme="dark"] .reserve-calculation .reserve-complete { border-color: #326c58; background: linear-gradient(145deg,#17372e,#132c27); }
html[data-theme="dark"] .reserve-calculation .reserve-complete strong { color: #63d8ad; }

html[data-theme="dark"] .reserve-projection-grid article {
    color: var(--ink);
    border-color: #31515c;
    background: linear-gradient(145deg,#172d35,#11242b);
    box-shadow: 0 10px 24px rgba(0,0,0,.17);
}
html[data-theme="dark"] .reserve-projection-grid span,
html[data-theme="dark"] .reserve-projection-grid small,
html[data-theme="dark"] .reserve-projection-grid em { color: #9fb3ba; }
html[data-theme="dark"] .reserve-projection-grid strong { color: #edf9fb; }
html[data-theme="dark"] .reserve-projection-grid small b { color: #63d8ad; }

html[data-theme="dark"] .reserve-history-list p { color: #a8bbc1; }
html[data-theme="dark"] .reserve-history-icon { color: #63d8ad; background: #17382f; }
html[data-theme="dark"] .reserve-reconciliation-result { border-color: #29434d; }
html[data-theme="dark"] .reserve-source-note a { color: #78d8e2; }
html[data-theme="dark"] .percent-input > span { color: #75d5df; background: #172e36; }

/* V19.10.9 - atalho para novo lancamento apos a baixa */
.entry-completion-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
    border: 1px solid #b9e3d3;
    border-radius: 16px;
    padding: 17px 20px;
    background: linear-gradient(120deg,#effbf5,#f8fdfb);
    box-shadow: 0 9px 24px rgba(14,118,86,.08);
}
.entry-completion-actions > div { display: grid; gap: 3px; min-width: 0; }
.entry-completion-actions strong { color: var(--navy); font-size: 15px; }
.entry-completion-actions small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.entry-completion-actions .button { flex: 0 0 auto; min-width: 190px; margin: 0; }
html[data-theme="dark"] .entry-completion-actions { border-color: #326b58; background: linear-gradient(120deg,#15352d,#132a27); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
html[data-theme="dark"] .entry-completion-actions strong { color: #eef9f6; }
html[data-theme="dark"] .entry-completion-actions small { color: #9fb8b0; }
@media (max-width: 650px) {
    .entry-completion-actions { align-items: stretch; flex-direction: column; padding: 16px; }
    .entry-completion-actions .button { width: 100%; min-width: 0; }
}
/* V19.10.10 - filtro por intervalo de datas em lancamentos */
.finance-date-filter { display: grid; flex: 1 1 155px; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.finance-date-filter input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; color: var(--navy); background: var(--surface, #fff); font: inherit; color-scheme: light; }
html[data-theme="dark"] .finance-date-filter input { color: var(--text, #edf8fa); background: var(--surface, #112a32); color-scheme: dark; }

/* V19.10.11 - atalho de novo lancamento sempre visivel no detalhe */

/* V19.10.12 - central da maquininha completa no modo escuro */
html[data-theme="dark"] .machine-explainer {
    color: #eaf7f9;
    border-color: #2f5965;
    background: linear-gradient(135deg,#15343d,#12272f);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
html[data-theme="dark"] .machine-explainer strong { color: #eefbfc; }
html[data-theme="dark"] .machine-explainer p { color: #a9c1c8; }
html[data-theme="dark"] .machine-explainer p b { color: #dff6f8; }
html[data-theme="dark"] .machine-explainer-icon { color: #06191f; background: #65cfdb; }
html[data-theme="dark"] .machine-capture-card,
html[data-theme="dark"] .machine-open-panel,
html[data-theme="dark"] .machine-history-panel { color: var(--ink); background: #14272f; border-color: #31505b; }
html[data-theme="dark"] .machine-capture-card .form-section-heading h2,
html[data-theme="dark"] .machine-open-panel h2,
html[data-theme="dark"] .machine-history-panel h2,
html[data-theme="dark"] .machine-receivable-row strong,
html[data-theme="dark"] .machine-history-row,
html[data-theme="dark"] .machine-history-row strong { color: #edf8fa; }
html[data-theme="dark"] .machine-capture-card .form-section-heading p,
html[data-theme="dark"] .machine-open-panel .panel-heading p,
html[data-theme="dark"] .machine-history-panel .panel-heading p,
html[data-theme="dark"] .machine-receivable-row small,
html[data-theme="dark"] .machine-history-row small { color: #9fb5bc; }
html[data-theme="dark"] .machine-capture-card .empty-state strong,
html[data-theme="dark"] .machine-open-panel .empty-state strong,
html[data-theme="dark"] .machine-history-panel .empty-state strong { color: #dcecef; }
html[data-theme="dark"] .machine-capture-card .empty-state p,
html[data-theme="dark"] .machine-open-panel .empty-state p,
html[data-theme="dark"] .machine-history-panel .empty-state p { color: #a5bcc3; }
html[data-theme="dark"] .machine-capture-card .empty-state > span,
html[data-theme="dark"] .machine-open-panel .empty-state > span,
html[data-theme="dark"] .machine-history-panel .empty-state > span { color: #74d8e2; background: #193b45; border: 1px solid #315964; }
html[data-theme="dark"] .machine-receivable-row,
html[data-theme="dark"] .machine-history-row { border-color: #29434d; }
html[data-theme="dark"] .machine-receivable-row:hover { background: #19343d; }
html[data-theme="dark"] .machine-check { border-color: #527681; background: #102229; }
html[data-theme="dark"] .machine-receivable-row input:checked + .machine-check { border-color: #65cfdb; background: #65cfdb; box-shadow: inset 0 0 0 3px #102229; }

/* V19.10.13 - ajuste auditavel da conciliacao completo no modo escuro */
html[data-theme="dark"] .bank-adjustment-card {
    color: #eaf5f7;
    border-color: #31505b;
    background: #14272f;
    box-shadow: 0 15px 40px rgba(0,0,0,.22);
}
html[data-theme="dark"] .bank-adjustment-hero {
    border-color: #31505b;
    background: linear-gradient(135deg,#172f38 0%,#13272f 72%);
}
html[data-theme="dark"] .bank-adjustment-hero h2 { color: #eef9fb; }
html[data-theme="dark"] .bank-adjustment-hero p { color: #a4b9c0; }
html[data-theme="dark"] .bank-adjustment-details > div {
    color: #eaf5f7;
    border-color: #34545f;
    background: linear-gradient(145deg,#172e36,#13272f);
}
html[data-theme="dark"] .bank-adjustment-details span { color: #9fb5bc; }
html[data-theme="dark"] .bank-adjustment-details strong { color: #e8f5f7; }
html[data-theme="dark"] .bank-adjustment-reason { color: #e6f3f5; }
html[data-theme="dark"] .bank-adjustment-reason textarea {
    color: #eaf5f7;
    border-color: #3a5c67;
    background: #102229;
}
html[data-theme="dark"] .bank-adjustment-reason textarea::placeholder { color: #7f9ba4; }
html[data-theme="dark"] .bank-adjustment-confirm {
    color: #e7f3f5;
    border-color: #35555f;
    background: #162c34;
}
html[data-theme="dark"] .bank-adjustment-confirm:hover { border-color: #4c7a86; background: #19343d; }
html[data-theme="dark"] .bank-adjustment-confirm b { color: #eaf7f9; }
html[data-theme="dark"] .bank-adjustment-confirm small { color: #9fb5bc; }
html[data-theme="dark"] .bank-adjustment-confirm input { color-scheme: dark; }
html[data-theme="dark"] .bank-adjustment-card.is-negative .bank-adjustment-amount {
    color: #ffc0b9;
    border-color: #75483f;
    background: linear-gradient(145deg,#3b2522,#30201e);
}
html[data-theme="dark"] .bank-adjustment-card.is-negative .bank-adjustment-amount span { color: #d9aaa4; }
html[data-theme="dark"] .bank-adjustment-card.is-negative .bank-adjustment-amount strong { color: #ff8375; }

/* V19.10.14 - menu lateral segmentado por funcao */
.sidebar .nav-groups { display: grid; gap: 15px; }
.nav-group { display: grid; gap: 6px; }
.nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: 14px; }
.nav-group-title { padding: 0 13px; color: #7b9099; font-size: 9px; font-weight: 900; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }
.nav-group-items { display: grid; gap: 5px; }
.nav-group .nav-item { min-height: 41px; }
html[data-theme="dark"] .nav-group + .nav-group { border-color: #29434d; }
html[data-theme="dark"] .nav-group-title { color: #76929b; }
html[data-theme="dark"] .nav-group:has(.nav-item.active) .nav-group-title { color: #65cfdb; }
@media (max-width: 980px) { .nav-group-title { display: none; } .sidebar .nav-groups { gap: 5px; } .nav-group + .nav-group { border-top: 0; padding-top: 0; } }

/* V19.10.15 - conferencia e cobertura da analise Google Ads */
.campaign-table { min-width: 1450px; }
.ads-analysis-status { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; margin-bottom: 18px; border: 1px solid #bde4d3; border-radius: 17px; padding: 18px 22px; background: #effbf5; }
.ads-analysis-status.is-partial { border-color: #efd595; background: #fff9ec; }
.ads-analysis-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: #15936f; font-size: 21px; font-weight: 900; }
.ads-analysis-status.is-partial .ads-analysis-icon { color: #7a5510; background: #ffe4a0; }
.ads-analysis-status h2 { margin: 3px 0 5px; color: var(--navy); font-size: 17px; }
.ads-analysis-status p { max-width: 950px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.ads-analysis-status > strong { color: #168a68; font-size: 26px; }
.ads-analysis-status.is-partial > strong { color: #a06b0b; }
.ads-daily-panel { margin: 18px 0; overflow: hidden; }
.ads-daily-table { min-width: 720px; }
.ads-batch-preview { margin: 20px 0; overflow: hidden; border: 2px solid #50bdca; box-shadow: 0 18px 45px rgba(15,113,132,.12); }
.ads-preview-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; padding: 18px 20px; background: #f6fbfc; }
.ads-preview-summary article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fff; }
.ads-preview-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ads-preview-summary strong { color: var(--navy); font-size: 16px; }
.warning-text { color: #a06b0b !important; }
.ads-confirm-form { display: grid; gap: 14px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.ads-confirm-check { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #b9ddd3; border-radius: 13px; padding: 14px 16px; background: #f0faf6; cursor: pointer; }
.ads-confirm-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #168a68; }
.ads-confirm-check span { display: grid; gap: 4px; }
.ads-confirm-check b { color: var(--navy); font-size: 12px; }
.ads-confirm-check small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.ads-confirm-form .form-actions { justify-content: flex-end; }
html[data-theme="dark"] .ads-analysis-status { border-color: #326b59; background: #15362e; }
html[data-theme="dark"] .ads-analysis-status.is-partial { border-color: #6c582c; background: #352c1b; }
html[data-theme="dark"] .ads-analysis-status h2 { color: #eef9fb; }
html[data-theme="dark"] .ads-analysis-status p { color: #a8bbc1; }
html[data-theme="dark"] .ads-analysis-status > strong { color: #63d8ad; }
html[data-theme="dark"] .ads-analysis-status.is-partial > strong { color: #e9c36d; }
html[data-theme="dark"] .ads-batch-preview { border-color: #3e9eaa; background: #14272f; }
html[data-theme="dark"] .ads-preview-summary { background: #102229; }
html[data-theme="dark"] .ads-preview-summary article { border-color: #34545f; background: #172e36; }
html[data-theme="dark"] .ads-preview-summary strong { color: #edf8fa; }
html[data-theme="dark"] .warning-text { color: #e9c36d !important; }
html[data-theme="dark"] .ads-confirm-check { border-color: #326b59; background: #15362e; }
html[data-theme="dark"] .ads-confirm-check b { color: #eef9fb; }
html[data-theme="dark"] .ads-confirm-check small { color: #a6bbb5; }
@media (max-width: 1100px) { .ads-preview-summary { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) { .ads-analysis-status { grid-template-columns: auto 1fr; padding: 16px; } .ads-analysis-status > strong { grid-column: 1 / -1; } .ads-preview-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* V19.10.16 - Leads premium no modo escuro e campanhas oficiais do Google Ads */
html[data-theme="dark"] .lead-create-card,
html[data-theme="dark"] .lead-list-panel,
html[data-theme="dark"] .lead-detail-layout .form-card,
html[data-theme="dark"] .lead-detail-side .panel {
    background: #12262e !important;
    border-color: #2b4b56 !important;
    color: #edf8fa !important;
}
html[data-theme="dark"] .lead-create-card .form-section-heading,
html[data-theme="dark"] .lead-list-panel .panel-heading,
html[data-theme="dark"] .lead-detail-layout .form-section-heading,
html[data-theme="dark"] .lead-detail-side .panel-heading {
    background: #142c35 !important;
    border-color: #2b4b56 !important;
}
html[data-theme="dark"] .lead-create-card h2,
html[data-theme="dark"] .lead-list-panel h2,
html[data-theme="dark"] .lead-detail-layout h2,
html[data-theme="dark"] .lead-detail-side h2,
html[data-theme="dark"] .lead-create-card label,
html[data-theme="dark"] .lead-detail-layout label { color: #f4fbfc !important; }
html[data-theme="dark"] .lead-create-card input,
html[data-theme="dark"] .lead-create-card select,
html[data-theme="dark"] .lead-create-card textarea,
html[data-theme="dark"] .lead-filters input,
html[data-theme="dark"] .lead-filters select,
html[data-theme="dark"] .lead-detail-layout input,
html[data-theme="dark"] .lead-detail-layout select,
html[data-theme="dark"] .lead-detail-layout textarea {
    background: #0b1d24 !important;
    border-color: #315562 !important;
    color: #f3fbfc !important;
    color-scheme: dark;
}
html[data-theme="dark"] .lead-create-card input::placeholder,
html[data-theme="dark"] .lead-create-card textarea::placeholder,
html[data-theme="dark"] .lead-filters input::placeholder,
html[data-theme="dark"] .lead-detail-layout input::placeholder,
html[data-theme="dark"] .lead-detail-layout textarea::placeholder { color: #86a8b4 !important; opacity: 1; }
html[data-theme="dark"] .lead-source-guide,
html[data-theme="dark"] .manual-attribution-details,
html[data-theme="dark"] .manual-attribution-note {
    background: #0e222a !important;
    border-color: #315562 !important;
    color: #dceff3 !important;
}
html[data-theme="dark"] .lead-source-guide article { background: #142d36 !important; border-color: #315562 !important; }
html[data-theme="dark"] .lead-source-guide article strong,
html[data-theme="dark"] .manual-attribution-note strong { color: #f1fafb !important; }
html[data-theme="dark"] .lead-source-guide article p,
html[data-theme="dark"] .manual-attribution-note span,
html[data-theme="dark"] .lead-create-card .field-help,
html[data-theme="dark"] .lead-detail-layout .field-help { color: #a8c4cd !important; }
html[data-theme="dark"] .lead-row { background: #12262e !important; border-color: #2b4b56 !important; color: #eef9fb !important; }
html[data-theme="dark"] .lead-row:hover { background: #193640 !important; border-color: #55c7d7 !important; transform: translateX(3px); }
html[data-theme="dark"] .lead-row strong { color: #f4fbfc !important; }
html[data-theme="dark"] .lead-row small { color: #a9c6cf !important; }
html[data-theme="dark"] .lead-row em { color: #62d5e3 !important; }
html[data-theme="dark"] .campaign-field select { font-weight: 750; }
/* V19.10.18 - estados históricos e bloqueados compatíveis com modo escuro */
html[data-theme="dark"] .order-history-lock {
    color: #eaf7f9 !important;
    border-color: #286054 !important;
    background: linear-gradient(135deg, #102c29 0%, #133732 100%) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}
html[data-theme="dark"] .order-history-lock .history-lock-icon {
    color: #63dec1 !important;
    background: #16483f !important;
}
html[data-theme="dark"] .order-history-lock .eyebrow { color: #58d3df !important; }
html[data-theme="dark"] .order-history-lock h2 { color: #f3fbfc !important; }
html[data-theme="dark"] .order-history-lock p { color: #b4cdd4 !important; }
html[data-theme="dark"] .order-history-lock p strong { color: #e8f6f8 !important; }
html[data-theme="dark"] .order-history-lock > .status-danger {
    color: #ffc0b8 !important;
    border-color: #82463f !important;
    background: #422622 !important;
}
html[data-theme="dark"] .order-history-cancelled {
    border-color: #78443d !important;
    background: linear-gradient(135deg, #321d1d 0%, #412421 100%) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}
html[data-theme="dark"] .order-history-cancelled .history-lock-icon {
    color: #ffb4aa !important;
    background: #582f2a !important;
}
html[data-theme="dark"] .order-history-cancelled .eyebrow { color: #ff9f93 !important; }
html[data-theme="dark"] .order-history-cancelled h2 { color: #fff1ef !important; }
html[data-theme="dark"] .order-history-cancelled p { color: #dcb9b4 !important; }
html[data-theme="dark"] .order-history-cancelled p strong { color: #ffd1cb !important; }
html[data-theme="dark"] .order-history-fields .form-card {
    color: #eaf7f9 !important;
    border-color: #294b56 !important;
    background: #122730 !important;
}
html[data-theme="dark"] .order-history-fields :is(input, select, textarea):disabled,
html[data-theme="dark"] fieldset:disabled :is(input, select, textarea) {
    opacity: 1 !important;
    color: #c5dbe1 !important;
    border-color: #315562 !important;
    background: #0c2028 !important;
    -webkit-text-fill-color: #c5dbe1 !important;
}
html[data-theme="dark"] .history-lock-action {
    color: #c7dde3 !important;
    border: 1px solid #315562 !important;
    background: #112a33 !important;
}

/* V19.10.19 - atendimento integralmente compativel com modo escuro */
html[data-theme="dark"] .order-update-form .finance-rule {
    color: #e8f7f9 !important;
    border: 1px solid #315864 !important;
    background: linear-gradient(135deg, #112b33 0%, #15343c 100%) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16) !important;
}
html[data-theme="dark"] .order-update-form .finance-rule > span { color: #b7d2d9 !important; }
html[data-theme="dark"] .order-update-form .finance-rule strong { color: #61d3df !important; }

html[data-theme="dark"] .order-update-form .projection-callout {
    color: #eaf8fa !important;
    border-color: #315864 !important;
    background: linear-gradient(135deg, #102932 0%, #15343d 100%) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .order-update-form .projection-callout span { color: #5bd3e1 !important; }
html[data-theme="dark"] .order-update-form .projection-callout strong { color: #f2fbfc !important; }
html[data-theme="dark"] .order-update-form .projection-callout small { color: #a9c4cc !important; }

html[data-theme="dark"] .order-update-form .negotiation-os-summary {
    color: #eaf8fa !important;
    border-color: #315864 !important;
    background: linear-gradient(135deg, #102932 0%, #162f38 100%) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .order-update-form .negotiation-os-summary > span { color: #5bd3e1 !important; }
html[data-theme="dark"] .order-update-form .negotiation-os-summary strong { color: #dceef2 !important; }
html[data-theme="dark"] .order-update-form .negotiation-os-summary b { color: #ff8f83 !important; }
html[data-theme="dark"] .order-update-form .negotiation-os-summary small { color: #a9c4cc !important; }
html[data-theme="dark"] .order-update-form .negotiation-os-summary em {
    color: #062b34 !important;
    background: #61d3df !important;
}

html[data-theme="dark"] .order-update-form .sticky-actions {
    border-color: #315864 !important;
    background: rgba(13, 35, 43, .96) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .4) !important;
}
html[data-theme="dark"] .order-update-form .sticky-actions .button-ghost {
    color: #edf9fb !important;
    border-color: #3b6571 !important;
    background: #17333c !important;
}
html[data-theme="dark"] .order-update-form .sticky-actions .button-ghost:hover {
    border-color: #59c9d8 !important;
    background: #20434e !important;
}

/* V19.10.20 - plano de pagamento da O.S. em modo escuro */
html[data-theme="dark"] .order-update-form .payment-plan-total {
    color: #eaf8fa !important;
    border-color: #315864 !important;
    background: linear-gradient(135deg, #102932 0%, #15343d 100%) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-total span {
    color: #a9c4cc !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-total strong {
    color: #f2fbfc !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-total small {
    color: #9fbbc4 !important;
}

html[data-theme="dark"] .order-update-form .payment-plan-step {
    color: #eaf8fa !important;
    border-color: #31515c !important;
    background: #132a33 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-step-heading {
    border-bottom-color: #294b56 !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-step-heading > span {
    color: #062b34 !important;
    background: #dff6f9 !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-step-heading strong {
    color: #f2fbfc !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-step-heading small {
    color: #a9c4cc !important;
}

html[data-theme="dark"] .order-update-form .payment-plan-preview {
    color: #f4fbfc !important;
    border: 1px solid #347080 !important;
    background: linear-gradient(120deg, #12323c 0%, #174753 52%, #126475 100%) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24) !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-preview span {
    color: #9ddbe3 !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-preview strong {
    color: #ffffff !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-preview > small {
    color: #b9dbe1 !important;
    border-top-color: rgba(181, 226, 233, .22) !important;
}

html[data-theme="dark"] .order-update-form .payment-plan-note {
    color: #b7d0d7 !important;
    border: 1px solid #31515c !important;
    background: #10262e !important;
}
html[data-theme="dark"] .order-update-form .payment-plan-note strong {
    color: #eff9fb !important;
}

/* DARK PROXIMOS MOVIMENTOS V19.13.4 */
html[data-theme="dark"] .forecast-entry-list > a,
html[data-theme="dark"] .forecast-entry-list > a:link,
html[data-theme="dark"] .forecast-entry-list > a:visited {
    color: #e9f6f8 !important;
    background: #102831 !important;
    border-bottom-color: #31515c !important;
}
html[data-theme="dark"] .forecast-entry-list > a:nth-child(even),
html[data-theme="dark"] .forecast-entry-list > a:nth-child(even):visited {
    background: #132f39 !important;
}
html[data-theme="dark"] .forecast-entry-list > a:hover,
html[data-theme="dark"] .forecast-entry-list > a:focus-visible {
    color: #ffffff !important;
    background: #18404b !important;
    outline: 2px solid #50cad8;
    outline-offset: -2px;
}
html[data-theme="dark"] .forecast-entry-list > a strong,
html[data-theme="dark"] .forecast-entry-list > a b {
    color: #f5fcfd !important;
}
html[data-theme="dark"] .forecast-entry-list > a small {
    color: #a9c6ce !important;
}
html[data-theme="dark"] .forecast-entry-list .forecast-income {
    color: #55ddb2 !important;
    background: #143c34 !important;
}
html[data-theme="dark"] .forecast-entry-list .forecast-expense {
    color: #ff8278 !important;
    background: #402523 !important;
}


/* CHAGAS-DARK-HOVER-DASHBOARD-V19-14-1:START */
.dashboard-order-row,
.agenda-row {
    transition: background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

html[data-theme="dark"] .dashboard-order-row:hover,
html[data-theme="dark"] .dashboard-order-row:focus-visible,
html[data-theme="dark"] .agenda-row:hover,
html[data-theme="dark"] .agenda-row:focus-visible {
    color: #eff9fb;
    background: #19343d !important;
    box-shadow: inset 3px 0 0 #55c7d7;
    outline: none;
}

html[data-theme="dark"] .dashboard-order-row:hover strong,
html[data-theme="dark"] .dashboard-order-row:focus-visible strong,
html[data-theme="dark"] .agenda-row:hover strong,
html[data-theme="dark"] .agenda-row:focus-visible strong {
    color: #f4fcfd;
}

html[data-theme="dark"] .dashboard-order-row:hover small,
html[data-theme="dark"] .dashboard-order-row:focus-visible small,
html[data-theme="dark"] .agenda-row:hover small,
html[data-theme="dark"] .agenda-row:focus-visible small {
    color: #acd0d8;
}

html[data-theme="dark"] .dashboard-order-row:focus-visible,
html[data-theme="dark"] .agenda-row:focus-visible {
    box-shadow: inset 3px 0 0 #7ce0e9, 0 0 0 2px rgba(99, 209, 223, .28);
}
/* CHAGAS-DARK-HOVER-DASHBOARD-V19-14-1:END */

/* CHAGAS-DARK-HOVER-DASHBOARD-V19-14-3:START */
html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:hover,
html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:focus-visible,
html[data-theme="dark"] .agenda-list .agenda-row:hover,
html[data-theme="dark"] .agenda-list .agenda-row:focus-visible {
    color: #eff9fb !important;
    background: #19343d !important;
    background-color: #19343d !important;
    box-shadow: inset 3px 0 0 #55c7d7 !important;
    outline: none;
}

html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:hover strong,
html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:focus-visible strong,
html[data-theme="dark"] .agenda-list .agenda-row:hover strong,
html[data-theme="dark"] .agenda-list .agenda-row:focus-visible strong {
    color: #f4fcfd !important;
}

html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:hover small,
html[data-theme="dark"] .dashboard-order-list .dashboard-order-row:focus-visible small,
html[data-theme="dark"] .agenda-list .agenda-row:hover small,
html[data-theme="dark"] .agenda-list .agenda-row:focus-visible small {
    color: #acd0d8 !important;
}
/* CHAGAS-DARK-HOVER-DASHBOARD-V19-14-3:END */

/* CHAGAS-USUARIOS-DARK-V19-14-23:START */
html[data-theme="dark"] .user-access-list > a {
    border-bottom-color: #294751;
}

html[data-theme="dark"] .user-access-list > a.active {
    color: #eff9fb;
    background: #19343d;
    border-left-color: #58c9d8;
}

html[data-theme="dark"] .user-access-list > a.active .lead-avatar {
    color: #a9eff5;
    background: #21434d;
}

html[data-theme="dark"] .user-access-list > a strong,
html[data-theme="dark"] .permission-grid strong {
    color: #f2fafb;
}

html[data-theme="dark"] .user-access-list > a small,
html[data-theme="dark"] .permission-grid small {
    color: #a9c6ce;
}

html[data-theme="dark"] .permission-grid label,
html[data-theme="dark"] .permission-grid label:has(input:checked) {
    color: #eaf5f7;
    background: #142a32;
    border-color: #355762;
    box-shadow: none;
}

html[data-theme="dark"] .permission-grid label:has(input:checked) {
    background: #193740;
    border-color: #4faebc;
}

html[data-theme="dark"] .permission-grid label:hover {
    background: #1b3942;
    border-color: #58c9d8;
}

html[data-theme="dark"] .permission-grid label:focus-within {
    outline: 2px solid rgba(88, 201, 216, .34);
    outline-offset: 2px;
}
/* CHAGAS-USUARIOS-DARK-V19-14-23:END */

/* CHAGAS-REDEFINIR-SENHAS-V19-14-26:START */
.user-password-reset { margin:0 20px 20px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--surface); }
.user-password-reset .form-section-heading { margin:0; padding:18px 20px; border-bottom:1px solid var(--line); }
.user-password-reset .form-section-heading h3 { margin:2px 0 3px; color:var(--navy); font-size:1.08rem; }
.user-password-reset .form-section-heading p { margin:0; color:var(--muted); }
.user-password-reset .operation-form { padding:18px 20px 20px; }
.user-password-reset .field-help { margin:0; color:var(--muted); font-size:.82rem; }
html[data-theme="dark"] .user-password-reset { color:var(--ink); background:#122932; border-color:#355762; }
html[data-theme="dark"] .user-password-reset .form-section-heading { border-bottom-color:#355762; }
html[data-theme="dark"] .user-password-reset .form-section-heading h3 { color:#f2fafb; }
html[data-theme="dark"] .user-password-reset .form-section-heading p,
html[data-theme="dark"] .user-password-reset .field-help { color:#a9c6ce; }
@media (max-width:720px) { .user-password-reset { margin:0 12px 16px; } }
/* CHAGAS-REDEFINIR-SENHAS-V19-14-26:END */
/* V19.10.21 - novo atendimento: contraste completo no modo escuro */
html[data-theme="dark"] .operation-form .customer-lookup {
    color: #eaf8fa;
    border-color: #315864;
    background: linear-gradient(145deg, #102932 0%, #142f38 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .operation-form .customer-lookup-copy > span,
html[data-theme="dark"] .operation-form .customer-search-icon {
    color: #65cfdb;
}
html[data-theme="dark"] .operation-form .customer-lookup-copy strong,
html[data-theme="dark"] .operation-form .customer-search-result strong,
html[data-theme="dark"] .operation-form .selected-customer strong {
    color: #f2fbfc;
}
html[data-theme="dark"] .operation-form .customer-lookup-copy small,
html[data-theme="dark"] .operation-form .customer-search-result small,
html[data-theme="dark"] .operation-form .selected-customer small,
html[data-theme="dark"] .operation-form .customer-search-status {
    color: #a9c4cc;
}
html[data-theme="dark"] .operation-form .customer-lookup-control input {
    color: #edf9fb;
    border-color: #355d69;
    background: #0d2027;
}
html[data-theme="dark"] .operation-form .customer-lookup-control input::placeholder {
    color: #89a5ae;
}
html[data-theme="dark"] .operation-form .customer-lookup-control input:focus {
    border-color: #65cfdb;
    box-shadow: 0 0 0 3px rgba(101, 207, 219, .16);
}
html[data-theme="dark"] .operation-form .customer-search-results,
html[data-theme="dark"] .operation-form .customer-search-result {
    color: #eaf8fa;
    border-color: #31505b;
    background: #14272f;
}
html[data-theme="dark"] .operation-form .customer-search-result:hover,
html[data-theme="dark"] .operation-form .customer-search-result:focus {
    background: #1a343e;
}
html[data-theme="dark"] .operation-form .selected-customer {
    color: #eaf8fa;
    border-color: #34745f;
    background: #15352e;
}
html[data-theme="dark"] .operation-form .selected-customer button {
    color: #70d8e4;
}
html[data-theme="dark"] .operation-form > .sticky-actions {
    border-color: #315864;
    background: rgba(13, 35, 43, .96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .operation-form > .sticky-actions .button-ghost {
    color: #edf9fb;
    border-color: #3b6571;
    background: #17333c;
}
html[data-theme="dark"] .operation-form > .sticky-actions .button-ghost:hover,
html[data-theme="dark"] .operation-form > .sticky-actions .button-ghost:focus {
    border-color: #59c9d8;
    background: #20434e;
}

/* 2026-10-07: historico de custos da OS legivel nos dois temas.
   Campos bloqueados, orçamento e barra fixa usam as regras dark acima. */
html[data-theme="dark"] .manual-cost-correction-card,
html[data-theme="dark"] .manual-cost-correction-hero {
    color: #eaf7f9;
    border-color: #315864;
    background: linear-gradient(135deg, #112b33, #16343d);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .manual-cost-correction-card h3,
html[data-theme="dark"] .manual-cost-correction-hero h2 { color: #edf9fb; }
html[data-theme="dark"] .manual-cost-correction-card p,
html[data-theme="dark"] .manual-cost-correction-hero p { color: #b7d2d9; }
html[data-theme="dark"] .manual-cost-correction-card .eyebrow,
html[data-theme="dark"] .manual-cost-correction-hero .eyebrow { color: #70d8e4; }
html[data-theme="dark"] .manual-cost-correction-card li,
html[data-theme="dark"] .manual-cost-correction-hero li {
    color: #dceef2;
    border-color: #355762;
    background: #102832;
}
html[data-theme="dark"] .manual-cost-correction-card li::before {
    color: #85e2eb;
    background: #204752;
}
html[data-theme="dark"] .cost-entry-list .cost-entry-correction {
    color: #eaf7f9;
    border-color: #315864;
    border-left-color: #58c9d8;
    background: linear-gradient(90deg, #16343d, #112730);
}
html[data-theme="dark"] .cost-entry-list .cost-entry-correction strong,
html[data-theme="dark"] .cost-entry-list .cost-entry-correction b { color: #edf9fb; }
html[data-theme="dark"] .cost-entry-list .cost-entry-correction small { color: #b7d2d9; }
html[data-theme="dark"] .cost-entry-list .cost-entry-correction:hover,
html[data-theme="dark"] .cost-entry-list .cost-entry-correction:focus-visible {
    background: #20434e;
    border-left-color: #85e2eb;
}
.cost-entry-list .cost-entry-correction:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -3px;
}
