      :root {
        --adm-blue: #003087;
        --adm-green: #00843d;
        --adm-yellow: #ffd100;
        --adm-orange: #e87722;
        --bg: #f3f4f6;
        --panel: #ffffff;
        --text: #1f2937;
        --muted: #6b7280;
        --line: #d8dee8;
      }
      * { box-sizing: border-box; }
      body { margin: 0; background: var(--bg); color: var(--text); font-family: "Open Sans", sans-serif; }
      button, h1, h2, .montserrat { font-family: Montserrat, sans-serif; }
      button, input, select { font: inherit; }
      button { cursor: pointer; }

      .login-screen {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: 24px;
        background: linear-gradient(180deg, #f8fafc 0%, #edf1f7 100%);
      }
      .login-card {
        width: min(440px, 100%);
        background: #fff;
        border: 1px solid var(--line);
        border-top: 4px solid var(--adm-green);
        border-radius: 4px;
        box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
        padding: 28px;
      }
      .login-card .adm-logo { height: 46px; margin-bottom: 24px; }
      .login-card h1 { margin: 0; color: var(--adm-blue); font-size: 22px; line-height: 1.2; text-transform: uppercase; }
      .login-card p { margin: 8px 0 20px; color: var(--muted); }
      .login-form { display: grid; gap: 10px; }
      .login-form input { min-height: 42px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 0 12px; }
      .login-link { border: 0; background: transparent; color: var(--adm-blue); font-weight: 900; text-align: center; padding: 4px 0; cursor: pointer; }
      .login-link:hover { text-decoration: underline; }
      .login-message { min-height: 20px; color: var(--adm-blue); font-size: 13px; font-weight: 800; }
      body.is-authenticated .login-screen { display: none; }
      body:not(.is-authenticated) .shell { display: none; }
      body.auth-checking .login-screen, body.auth-checking .shell { display: none; }
      body.auth-checking::before {
        content: "Carregando painel...";
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: grid;
        place-items: center;
        background: #f3f6fb;
        color: var(--adm-blue);
        font-family: Montserrat, sans-serif;
        font-size: 14px;
        font-weight: 900;
        letter-spacing: .02em;
        text-transform: uppercase;
      }
      .password-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(15,23,42,.42); }
      .password-modal-backdrop[hidden] { display: none; }
      .password-modal { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--adm-green); border-radius: 6px; box-shadow: 0 22px 60px rgba(15,23,42,.24); padding: 24px 28px 26px; }
      .password-modal h2 { margin: 0 0 8px; color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 20px; text-transform: uppercase; }
      .password-modal p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
      .password-form { display: grid; gap: 10px; }
      .password-form input { min-height: 40px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 0 12px; font: 14px Open Sans, sans-serif; }
      .password-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
      .password-message { min-height: 18px; color: var(--adm-blue); font-size: 12px; font-weight: 800; }
      body.must-change-password .shell { pointer-events: none; user-select: none; }
      body.must-change-password .password-modal-backdrop { pointer-events: auto; }
      .shell { min-height: 100vh; display: grid; grid-template-columns: 210px minmax(0, 1fr); transition: grid-template-columns .18s ease; }
      .shell.nav-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
      .main { min-width: 0; }
      .side {
        position: sticky;
        top: 0;
        height: 100vh;
        grid-column: 1;
        grid-row: 1;
        background: var(--adm-blue);
        color: #fff;
        border-right: 4px solid var(--adm-green);
        padding: 10px 8px;
        overflow: hidden;
        box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
      }
      .main { grid-column: 2; grid-row: 1; min-width: 0; }
      .side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin-bottom: 8px; }
      .shell.nav-collapsed .side-top { justify-content: center; }
      .side-logo { width: 88px; height: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 8px 14px rgba(0,0,0,.2)); }
      .side-title { min-width: 0; margin: 5px 0 8px; padding: 0 8px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; }
      .nav-toggle { flex: 0 0 34px; width: 34px; min-height: 34px; display: grid; place-items: center; border: 1px solid rgba(147,197,253,.42); border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
      .nav-toggle:hover { background: rgba(59,130,246,.24); }
      .modules-nav { display: grid; gap: 7px; }
      .module-btn {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        gap: 9px;
        border: 1px solid rgba(96,165,250,.18);
        border-radius: 7px;
        background: rgba(255,255,255,.06);
        color: #eaf2ff;
        padding: 0 10px;
        text-align: left;
        font-size: 12px;
        font-weight: 800;
        font-family: Montserrat, sans-serif;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 14px rgba(0,21,77,.1);
        position: relative;
      }
      .module-btn:hover { background: rgba(37,99,235,.42); border-color: rgba(96,165,250,.38); }
      .module-btn.active { background: rgba(37,99,235,.54); color: #fff; border-color: rgba(96,165,250,.55); }
      .module-btn.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 5px 5px 0; background: var(--adm-green); box-shadow: 0 0 10px rgba(0,150,94,.72); }
      .admin-only[hidden] { display: none !important; }
      .module-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; border-radius: 7px; background: rgba(37,99,235,.72); box-shadow: 0 8px 16px rgba(0,32,105,.18); }
      .module-icon svg, .nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .module-text { white-space: nowrap; overflow: hidden; }
      .auth-panel { position: absolute; left: 8px; right: 8px; bottom: 10px; display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.2); }
      .auth-status { min-height: 34px; display: flex; align-items: center; gap: 8px; color: #dbeafe; font-size: 11px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
      .auth-avatar { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(37,99,235,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
      .auth-avatar svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .auth-identity { min-width: 0; display: grid; gap: 1px; }
      .auth-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 900; }
      .auth-role { color: rgba(219,234,254,.82); font-weight: 600; }
      .auth-btn { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid rgba(96,165,250,.28); border-radius: 7px; background: rgba(255,255,255,.08); color: #fff; font-size: 11px; font-weight: 800; padding: 0 10px; text-align: left; }
      .auth-btn-icon { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; }
      .auth-btn-icon svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .auth-btn-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      #changePasswordBtn::before { content: "⚙"; font-size: 17px; line-height: 1; margin-right: 8px; }
      #logoutBtn::before { content: "↪"; font-size: 18px; line-height: 1; margin-right: 8px; }
      .auth-btn::after { content: ">"; font-size: 17px; line-height: 1; opacity: .86; }
      .auth-btn.primary { background: #fff; color: var(--adm-blue); border-color: #fff; }
      .auth-fields { display: grid; gap: 6px; }
      .auth-fields input { width: 100%; min-height: 32px; border: 0; border-radius: 4px; padding: 0 8px; font-size: 12px; }
      .shell.nav-collapsed .side-logo, .shell.nav-collapsed .side-title, .shell.nav-collapsed .module-text { opacity: 0; width: 0; min-width: 0; padding: 0; overflow: hidden; }
      .shell.nav-collapsed .auth-panel { display: none; }
      .shell.nav-collapsed .side { padding: 10px 4px; }
      .shell.nav-collapsed .side-top { min-height: 48px; margin-bottom: 8px; justify-content: center; }
      .shell.nav-collapsed .nav-toggle { flex: 0 0 34px; width: 34px; min-height: 34px; border-radius: 4px; transform: none; }
      .shell.nav-collapsed .modules-nav { gap: 4px; }
      .shell.nav-collapsed .module-btn { width: 36px; min-height: 36px; justify-content: center; gap: 0; padding: 0; margin-left: auto; margin-right: auto; border-color: transparent; border-radius: 4px; background: transparent; box-shadow: none; }
      .shell.nav-collapsed .module-btn.active { background: #fff; color: var(--adm-blue); }
      .shell.nav-collapsed .module-btn.active::before { display: none; }
      .shell.nav-collapsed .module-icon { flex-basis: 24px; width: 24px; height: 24px; margin: 0 auto; border-radius: 0; background: transparent; box-shadow: none; color: currentColor; }

      .top { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
      .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1500px; margin: 0 auto; height: 80px; padding: 0 14px; }
      .brand { display: flex; align-items: center; gap: 14px; }
      .adm-logo { height: 40px; width: auto; object-fit: contain; display: block; }
      .brand strong { color: var(--adm-blue); font-size: 42px; line-height: 1; letter-spacing: -2px; }
      .caption { margin: 0; color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-align: right; text-transform: uppercase; }
      .caption small { display: block; margin-top: 2px; color: #6b7280; font-family: "Open Sans", sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
      .bar { display: grid; grid-template-columns: 16.8% 17% 17% 17% 32.2%; height: 4px; }
      .bar span:nth-child(1) { background: var(--adm-yellow); }
      .bar span:nth-child(2) { background: var(--adm-green); }
      .bar span:nth-child(3) { background: #7a2cbf; }
      .bar span:nth-child(4) { background: var(--adm-orange); }
      .bar span:nth-child(5) { background: #00a651; }

      .hero { background: var(--adm-blue); color: #fff; height: 118px; padding: 0 24px; display: flex; align-items: center; }
      .hero-inner { width: 100%; max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
      .hero-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--adm-green); border-radius: 4px; color: #fff; }
      .hero-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .hero h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
      .hero p { margin: 2px 0 0; color: #bfdbfe; font-size: 14px; }

      .wrap { max-width: 1500px; margin: 0 auto; padding: 28px 14px 56px; }
      #dashboard .wrap { max-width: 1500px; padding-left: 14px; padding-right: 14px; }
      .panel { display: none; }
      .panel.active { display: block; }
      .module-frame { width: 100%; min-height: 920px; height: 920px; border: 0; background: #fff; display: block; overflow: hidden; }
      .route-module-frame { width: 100%; min-height: 980px; height: 980px; border: 0; background: #f5f7fa; display: block; overflow: hidden; }

      .section-label { display: flex; align-items: center; gap: 8px; color: var(--adm-blue); margin-bottom: 8px; }
      .section-label span { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--adm-blue); color: #fff; border-radius: 4px; font-size: 12px; font-weight: 900; }
      .section-label h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
      .section-title { margin: 0 0 8px; color: var(--adm-blue); font-size: 16px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
      .hint { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

      .filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
      .field { display: grid; gap: 6px; }
      .field label { color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; }
      .field select, .field input {
        min-height: 38px;
        min-width: 190px;
        border: 1px solid #cfd7e3;
        border-radius: 4px;
        background: #fff;
        padding: 0 10px;
        color: var(--text);
      }
      .date-display { cursor: pointer; background: #fff; padding-right: 40px; }
      .date-picker {
        position: fixed;
        z-index: 90;
        width: 292px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 18px 38px rgba(15,23,42,.18);
        padding: 12px;
      }
      .date-picker[hidden] { display: none; }
      .date-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--adm-blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
      .date-picker-head button, .date-picker-day { min-height: 30px; border: 1px solid transparent; border-radius: 4px; background: #fff; color: var(--ink); font-weight: 700; }
      .date-picker-head button { width: 32px; color: var(--adm-blue); font-size: 16px; }
      .date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
      .date-picker-weekday { text-align: center; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; padding: 6px 0; }
      .date-picker-day { font-size: 12px; }
      .date-picker-day.muted { color: #9ca3af; }
      .date-picker-day.selected { background: var(--adm-blue); color: #fff; }
      .date-picker-day.in-range { background: #dbeafe; color: var(--adm-blue); }
      .date-picker-help { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
      textarea {
        width: 100%;
        min-height: 220px;
        resize: vertical;
        border: 1px solid #cfd7e3;
        border-radius: 4px;
        background: #fff;
        padding: 12px;
        color: var(--text);
        font: 13px/1.45 Consolas, monospace;
      }
      .btn { min-height: 38px; border: 0; border-radius: 4px; padding: 0 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
      .btn-blue { background: var(--adm-blue); color: #fff; }
      .btn-outline { background: #fff; color: var(--adm-blue); border: 1px solid var(--adm-blue); }
      .btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
      .btn-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

      .summary { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
      .summary.four { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
      .summary.six { grid-template-columns: repeat(6, minmax(135px, 1fr)); }
      .summary.dash-summary { grid-template-columns: repeat(6, minmax(154px, 1fr)); gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
      .metric { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--adm-green); border-radius: 4px; padding: 14px 16px; }
      .metric.blue { border-left-color: #00558c; }
      .metric.yellow { border-left-color: #eab308; }
      .metric.red { border-left-color: #ef4444; }
      .metric b { display: block; color: var(--adm-blue); font-size: 26px; line-height: 1.1; }
      .metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
      .dash-summary .metric { border-left: 0; padding: 13px 12px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
      .dash-metric { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 88px; }
      .dash-metric b { font-size: 20px; overflow-wrap: normal; white-space: nowrap; }
      .dash-metric small { font-size: 9px; line-height: 1.2; }
      .metric-icon {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        color: #fff;
        background: var(--adm-blue);
        box-shadow: 0 8px 18px rgba(0,48,135,.18);
      }
      .metric-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
      .metric-icon.green { background: var(--adm-green); }
      .metric-icon.yellow { background: #eab308; }
      .metric-icon.orange { background: var(--adm-orange); }
      .metric-icon.red { background: #ef4444; }
      .metric-icon.purple { background: #6d28d9; }
      .metric-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 4px; }
      .rate-card { grid-template-columns: 72px minmax(0, 1fr); border-color: #7aa7ff; }
      .rate-card b { font-size: 10px; line-height: 1.15; white-space: normal; text-transform: uppercase; }
      .rate-card small { font-size: 9px; }
      .rate-card .metric-sub { font-size: 11px; line-height: 1.25; }
      .rate-ring {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: #fff;
        color: var(--adm-blue);
        font-size: 10px;
        font-weight: 900;
        font-family: Montserrat, sans-serif;
        letter-spacing: -.02em;
        position: relative;
      }
      .rate-ring svg { position: absolute; inset: 0; width: 68px; height: 68px; }
      .rate-ring .rate-bg { fill: none; stroke: #e5eaf2; stroke-width: 7; }
      .rate-ring .rate-progress { fill: none; stroke: var(--adm-blue); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--rate-value, 0)); transition: stroke-dashoffset .2s ease; }
      .rate-ring::before { content: none; }
      .rate-ring span { position: relative; z-index: 1; text-align: center; line-height: 1.2; max-width: 46px; word-break: break-all; }
      .dash-insights { display: grid; grid-template-columns: minmax(200px, .95fr) minmax(190px, .9fr) minmax(200px, .95fr) minmax(330px, 1.45fr); gap: 12px; margin-bottom: 18px; }
      .insight-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 12px 14px;
        box-shadow: 0 1px 2px rgba(15,23,42,.05);
      }
      .insight-card.insight-passive { opacity: .42; }
      .insight-card b { display: block; color: var(--adm-blue); font-size: 15px; font-weight: 900; margin-top: 2px; }
      .insight-value-btn { border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; padding: 0; margin: 0; text-align: left; cursor: pointer; }
      .insight-value-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

      .insight-card.anticipation-card b { font-size: 20px; line-height: 1.05; margin-top: 0; }
      .insight-card.anticipation-card .insight-value-btn { font: inherit; font-weight: 950; letter-spacing: -.02em; }
      .insight-card.anticipation-card .insight-label { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
      .insight-card.anticipation-card .insight-note { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.25; }
      .insight-label { color: var(--adm-orange); font-size: 11px; font-weight: 900; text-transform: uppercase; }
      .insight-note { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; }
      .goal-card { grid-template-columns: 48px minmax(0, 1fr); }
      .goal-card.normal .metric-icon { background: var(--adm-green); }
      .goal-card.attention .metric-icon { background: var(--adm-orange); }
      .goal-card.critical .metric-icon { background: #ef4444; }
      .goal-card.normal .insight-label { color: var(--adm-green); }
      .goal-card.attention .insight-label { color: var(--adm-orange); }
      .goal-card.critical .insight-label { color: #ef4444; }
      .goal-meter { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; gap: 14px; margin-top: 10px; }
      .goal-percent { color: var(--adm-blue); font-size: 13px; font-weight: 900; text-align: right; }
      .insight-progress { height: 9px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
      .insight-progress span { display: block; height: 100%; background: var(--adm-green); border-radius: inherit; }
      .goal-card.normal .insight-progress span { background: var(--adm-green); }
      .goal-card.attention .insight-progress span { background: var(--adm-orange); }
      .goal-card.critical .insight-progress span { background: #ef4444; }
      .dash-layout { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(340px, 1.1fr) minmax(300px, .95fr); gap: 12px; align-items: start; }
      .dash-detail-card { margin-top: 16px; }
      .dash-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); padding: 12px; }
      .dash-control-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
      .dash-control-row .filters { margin-bottom: 0; }
      .dash-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin: -2px 0 12px; }
      .dash-control-row .dash-report-actions { margin: 0; flex: 0 0 auto; }
      /* ── Export image buttons — icon only, transparent ── */
      .export-image-btn {
        min-height: 34px;
        min-width: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        border: 1.5px solid #c5d4ec;
        border-radius: 6px;
        background: transparent;
        color: var(--adm-blue);
        padding: 0 8px;
        font-size: 0;
        cursor: pointer;
        transition: border-color .15s, background .15s;
        box-shadow: none;
      }
      .export-image-btn:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .export-image-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
      .dash-report-export-btn { min-height: 36px; min-width: 36px; border-radius: 8px; }
      /* Extrair button (btn-outline btn-icon) inside operational blocks */
      .operational-actions .btn.btn-outline.btn-icon {
        min-height: 34px;
        border-radius: 6px;
        border: 1.5px solid #c5d4ec;
        background: #f5f8ff;
        color: var(--adm-blue);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .04em;
        padding: 0 14px;
        gap: 7px;
        box-shadow: none;
        transition: border-color .15s, background .15s;
      }
      .operational-actions .btn.btn-outline.btn-icon:hover { border-color: var(--adm-blue); background: #eaf0ff; }
      .operational-actions .btn.btn-outline.btn-icon svg { width: 14px; height: 14px; }
      .dash-report-export { display: grid; gap: 0; background: #eef2f7; }
      body.exporting-image .no-export,
      body.exporting-image .map-zoom,
      body.exporting-image button,
      body.exporting-image input,
      body.exporting-image .dash-modal-close { display: none !important; }
      body.exporting-image .dash-report-export,
      body.exporting-image .dash-card,
      body.exporting-image .metric,
      body.exporting-image .insight-card { box-shadow: none !important; }
      body.exporting-image .priority-unit-button {
        display: inline !important;
        color: var(--adm-blue) !important;
        background: transparent !important;
        border: 0 !important;
      }
      body.exporting-image .rate-card {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 88px !important;
        padding: 13px 12px !important;
        overflow: hidden !important;
      }
      body.exporting-image .rate-card > span:last-child {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        min-width: 0 !important;
      }
      body.exporting-image .rate-card .rate-ring {
        width: 68px !important;
        height: 68px !important;
        font-size: 10px !important;
        flex: 0 0 68px !important;
        background: #fff !important;
      }
      body.exporting-image .rate-card .rate-ring svg {
        display: block !important;
      }
      body.exporting-image .rate-card b {
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-transform: uppercase !important;
        max-width: 98px !important;
      }
      body.exporting-image .rate-card .metric-sub {
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin-top: 5px !important;
        white-space: nowrap !important;
      }
      body.exporting-image .detail-body { max-height: none !important; overflow: visible !important; }
      body.exporting-image .detail-summary,
      body.exporting-image .dash-modal-body { overflow: visible !important; }
      body.exporting-image .dash-modal { max-height: none !important; overflow: visible !important; }
      body.exporting-image .operational-block .passages-list { max-height: none !important; overflow: visible !important; }
      .dash-passages-card { margin-top: 16px; }
      .dash-passages-card .table-top { border-bottom: none; }
      .dash-section-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
      .dash-passages { display: grid; gap: 12px; }
      .passages-overview { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; }
      .passages-mini-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 72px; border: 1px solid var(--line); border-radius: 4px; background: #fbfdff; padding: 10px 12px; }
      .passages-mini-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #e8f5ff; color: var(--adm-blue); }
      .passages-mini-icon.orange { background: #fff7ed; color: var(--adm-orange); }
      .passages-mini-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .passages-mini-card b { display: block; color: var(--adm-blue); font: 900 22px/1 Montserrat, sans-serif; }
      .passages-mini-card span span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
      .passages-list { border: 1px solid #dbe6f2; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
      .passages-head, .passages-row { display: grid; grid-template-columns: 132px 1fr 1fr 1.2fr 1.3fr 94px; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #edf2f7; font-size: 12px; }
      .passages-head { background: linear-gradient(180deg, #fbfdff, #f4f8fc); color: var(--adm-blue); font-size: 10px; font-weight: 950; text-transform: uppercase; }
      .passages-head span, .passages-row span, .passages-row b { justify-self: center; text-align: center; }
      .passages-row { min-height: 48px; transition: background .15s ease; }
      .passages-row:hover { background: #f8fbff; }
      .passages-row:last-child { border-bottom: 0; }
      .passages-row b { color: var(--adm-blue); }
      .dash-antecipacoes-summary { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
      .dash-antecipacoes-kpi { min-height: 72px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid #dbe6f2; border-radius: 8px; background: #fff; padding: 12px 14px; }
      .dash-antecipacoes-kpi .metric-icon { width: 38px; height: 38px; }
      .dash-antecipacoes-kpi b { display: block; color: var(--adm-blue); font: 950 26px/1 Montserrat, sans-serif; }
      .dash-antecipacoes-kpi small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; margin-top: 4px; }
      .dash-antecipacoes-empty { border: 1px dashed #c8d6ea; border-radius: 8px; background: #fbfdff; padding: 32px 16px; text-align: center; color: var(--muted); font-weight: 800; }
      .passages-badge { display: inline-flex; justify-content: center; align-items: center; min-height: 22px; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 950; text-transform: uppercase; white-space: nowrap; }
      .passages-badge.antecipacao { background: #e8f5ff; color: var(--adm-blue); }
      .passages-badge.passagem { background: #fff7ed; color: #c2410c; }
      .passages-badge.inactive { background: #f1f5f9; color: #64748b; }
      .operational-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .operational-block { display: grid; gap: 12px; min-width: 0; border: 1px solid #dbe6f2; border-radius: 8px; background: linear-gradient(180deg, #fff, #fbfdff); padding: 14px; box-shadow: 0 2px 8px rgba(15,23,42,.04); overflow: hidden; }
      .operational-block.passagem { border-color: #fed7aa; background: linear-gradient(180deg, #fff, #fffaf4); }
      .operational-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
      .operational-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; overflow: hidden; }
      .operational-title > div { min-width: 0; overflow: hidden; }
      .operational-title-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 999px; background: #e8f5ff; color: var(--adm-blue); box-shadow: 0 8px 18px rgba(0,61,165,.08); }
      .operational-title-icon.passagem { background: #fff1e6; color: var(--adm-orange); }
      .operational-title-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .operational-head h4 { margin: 0; color: var(--adm-blue); font: 950 13px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
      .operational-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
      .operational-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; }
      /* Passage unit filter */
      .passage-unit-filter { position: relative; display: inline-flex; }
      .passage-unit-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid #d8e0ec; border-radius: 4px; background: #fff; color: var(--adm-blue); font-size: 11px; font-weight: 900; font-family: Montserrat, sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .15s; }
      .passage-unit-trigger:hover, .passage-unit-trigger.open { border-color: var(--adm-blue); }
      .passage-unit-trigger svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .passage-unit-badge { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--adm-orange); color: #fff; font-size: 10px; font-weight: 900; display: grid; place-items: center; }
      .passage-unit-caret { opacity: .5; transition: transform .18s; }
      .passage-unit-trigger.open .passage-unit-caret { transform: rotate(180deg); }
      .passage-unit-dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 300; min-width: 200px; background: #fff; border: 1px solid #cfd7e3; border-radius: 6px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 6px 0; }
      .passage-unit-dropdown.open { display: block; }
      .passage-unit-item { display: flex; align-items: center; gap: 9px; padding: 8px 13px; cursor: pointer; font-size: 12px; font-weight: 700; font-family: Montserrat, sans-serif; color: var(--text); transition: background .1s; }
      .passage-unit-item:hover { background: #fff5ed; color: var(--adm-orange); }
      .passage-unit-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--adm-orange); flex: 0 0 15px; cursor: pointer; }
      .passage-unit-item .punit-count { margin-left: auto; font-size: 10px; font-weight: 800; color: #999; background: #f1f5f9; border-radius: 99px; padding: 1px 7px; }
      .operational-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .operational-stat { display: flex; align-items: center; gap: 10px; min-height: 62px; border: 1px solid #dce5ef; border-radius: 7px; background: #fff; padding: 10px; }
      .operational-block.passagem .operational-stat { border-color: #fed7aa; background: #fffaf4; }
      .operational-stat b { display: block; color: var(--adm-blue); font: 950 20px/1 Montserrat, sans-serif; }
      .operational-block.passagem .operational-stat b { color: #c2410c; }
      .operational-stat span span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
      .operational-stat .passages-mini-icon { width: 34px; height: 34px; flex: 0 0 34px; }
      .operational-stat .passages-mini-icon svg { width: 17px; height: 17px; }
      .operational-block .passages-list { max-height: 270px; overflow: auto; }
      .operational-block .btn { justify-self: end; min-height: 34px; padding: 8px 12px; font-size: 11px; }
      .dash-portfolio-card { border-left: 0; }
      .dash-portfolio-passages { display: grid; gap: 14px; }
      .portfolio-snapshot-note {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid #fed7aa;
        border-radius: 8px;
        background: #fff7ed;
        color: #9a3412;
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 800;
      }
      .portfolio-snapshot-note b { color: #c2410c; }
      .portfolio-kpis { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 10px; }
      .portfolio-kpi {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 78px;
        border: 1px solid #dbe6f2;
        border-radius: 8px;
        background: linear-gradient(180deg, #fff, #fbfdff);
        padding: 11px 12px;
        box-shadow: 0 2px 8px rgba(15,23,42,.04);
      }
      .portfolio-kpi-icon {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #e8f5ff;
        color: var(--adm-blue);
      }
      .portfolio-kpi-icon.orange { background: #fff1e6; color: var(--adm-orange); }
      .portfolio-kpi-icon.green { background: #e8f7ef; color: var(--adm-green); }
      .portfolio-kpi-icon.red { background: #ffe4e6; color: #ef4444; }
      .portfolio-kpi-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .portfolio-kpi b { display: block; color: var(--adm-blue); font: 950 22px/1 Montserrat, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .portfolio-kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
      .portfolio-grid { display: grid; grid-template-columns: minmax(270px, .95fr) minmax(310px, 1.15fr) minmax(310px, 1.05fr); gap: 12px; align-items: start; }
      .portfolio-panel { min-width: 0; border: 1px solid #dbe6f2; border-radius: 8px; background: #fff; padding: 12px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
      .portfolio-panel-title { margin: 0 0 10px; color: var(--adm-blue); font: 950 12px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
      .portfolio-bars { display: grid; gap: 9px; }
      .portfolio-bar-row { display: grid; grid-template-columns: minmax(92px, .9fr) minmax(120px, 1.4fr) 70px; gap: 8px; align-items: center; font-size: 11px; font-weight: 850; }
      .portfolio-bar-label { color: var(--adm-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .portfolio-bar-track { height: 8px; border-radius: 999px; background: #edf2f7; overflow: hidden; }
      .portfolio-bar-track i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--adm-orange); }
      .portfolio-bar-value { color: var(--text); text-align: right; white-space: nowrap; }
      .portfolio-detail-list { display: grid; gap: 8px; }
      .portfolio-detail-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 78px; gap: 8px; align-items: center; border-bottom: 1px solid #edf2f7; padding-bottom: 8px; }
      .portfolio-detail-item:last-child { border-bottom: 0; padding-bottom: 0; }
      .portfolio-rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--adm-blue); color: #fff; font-size: 11px; font-weight: 950; }
      .portfolio-detail-item b { display: block; color: var(--adm-blue); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .portfolio-detail-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; }
      .portfolio-chip { justify-self: end; border-radius: 999px; background: #fff7ed; color: #c2410c; padding: 4px 8px; font-size: 10px; font-weight: 950; white-space: nowrap; }
      .portfolio-table { border: 1px solid #edf2f7; border-radius: 7px; overflow: hidden; }
      .portfolio-table-head, .portfolio-table-row { display: grid; grid-template-columns: 1.05fr .5fr .75fr 1fr; gap: 8px; align-items: center; }
      .portfolio-table-head { background: #f8fafc; color: var(--muted); padding: 9px 10px; font-size: 9px; font-weight: 950; text-transform: uppercase; }
      .portfolio-table-row { border-top: 1px solid #edf2f7; padding: 9px 10px; color: var(--text); font-size: 11px; font-weight: 850; }
      .portfolio-table-row b { color: var(--adm-blue); }
      .portfolio-queue { display: grid; gap: 8px; }
      .portfolio-queue-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 86px; gap: 10px; align-items: center; border: 1px solid #edf2f7; border-left: 4px solid var(--adm-orange); border-radius: 7px; background: #fffaf4; padding: 9px 10px; font-size: 11px; }
      .portfolio-queue-row b { color: var(--adm-blue); }
      .portfolio-queue-row span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .portfolio-queue-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; }
      @media (max-width: 1180px) {
        .dash-insights { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
      }

      @media (max-width: 780px) {
        .dash-insights { grid-template-columns: 1fr; }
      }

      @media (max-width: 1180px) {
        .portfolio-kpis { grid-template-columns: repeat(2, minmax(145px, 1fr)); }
        .portfolio-grid { grid-template-columns: 1fr; }
      }
      @media (max-width: 720px) {
        .portfolio-kpis { grid-template-columns: 1fr; }
        .portfolio-snapshot-note { align-items: flex-start; flex-direction: column; }
        .portfolio-table-head, .portfolio-table-row { grid-template-columns: 1fr .5fr .8fr; }
        .portfolio-table-head span:nth-child(4), .portfolio-table-row span:nth-child(4) { display: none; }
        .portfolio-queue-row { grid-template-columns: 72px minmax(0, 1fr); }
        .portfolio-queue-row span:last-child { grid-column: 1 / -1; }
      }

      /* ── Passagens em Carteira | layout visual ADM ── */
      .dash-portfolio-card {
        border-left: 0;
        background: linear-gradient(180deg, #fff, #fbfdff);
      }
      .dash-portfolio-card .table-top {
        align-items: flex-start;
      }
      .wallet-board {
        display: grid;
        gap: 12px;
        padding-top: 2px;
      }
      .wallet-snapshot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 38px;
        border: 1px solid #fed7aa;
        border-left: 1px solid #fed7aa;
        border-radius: 6px;
        background: linear-gradient(180deg, #fffaf4, #fff7ed);
        color: #9a3412;
        padding: 9px 12px;
        font-size: 11px;
        font-weight: 900;
      }
      .wallet-snapshot b { color: #c2410c; }
      .wallet-kpis {
        display: grid;
        grid-template-columns: repeat(5, minmax(148px, 1fr));
        gap: 10px;
      }
      .wallet-kpi {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 78px;
        border: 1px solid #dbe6f2;
        border-left: 4px solid var(--adm-blue);
        border-radius: 8px;
        background: #fff;
        padding: 10px 12px;
        box-shadow: 0 2px 8px rgba(15,23,42,.05);
      }
      .wallet-kpi.orange { border-left-color: var(--adm-orange); }
      .wallet-kpi.green { border-left-color: var(--adm-green); }
      .wallet-kpi.cyan { border-left-color: #0891b2; }
      .wallet-kpi.purple { border-left-color: #7c3aed; }
      .wallet-kpi-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #e8f5ff;
        color: var(--adm-blue);
      }
      .wallet-kpi.orange .wallet-kpi-icon { background: #fff1e6; color: var(--adm-orange); }
      .wallet-kpi.green .wallet-kpi-icon { background: #e8f7ef; color: var(--adm-green); }
      .wallet-kpi.cyan .wallet-kpi-icon { background: #e6faff; color: #0891b2; }
      .wallet-kpi.purple .wallet-kpi-icon { background: #f1edff; color: #7c3aed; }
      .wallet-kpi-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
      .wallet-kpi b { display: block; color: var(--adm-blue); font: 950 22px/1 Montserrat, sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .wallet-kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
      .wallet-kpi .metric-sub { font-size: 10px; line-height: 1.2; }
      .wallet-layout {
        display: grid;
        grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(300px, 1.1fr);
        gap: 12px;
        align-items: stretch;
      }
      .wallet-panel {
        min-width: 0;
        border: 1px solid #dbe6f2;
        border-radius: 8px;
        background: #fff;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(15,23,42,.05);
        overflow: hidden;
      }
      .wallet-panel.wide { grid-column: span 2; }
      .wallet-panel.full { grid-column: 1 / -1; }
      .wallet-panel-title {
        margin: 0;
        color: var(--adm-blue);
        font: 950 13px/1.2 Montserrat, sans-serif;
        text-transform: uppercase;
      }
      .wallet-panel-sub {
        margin: 2px 0 11px;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 700;
      }
      .wallet-panel-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 11px;
      }
      .wallet-panel-head .wallet-panel-sub { margin-bottom: 0; }
      .wallet-panel-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
      .wallet-bars { display: grid; gap: 8px; }

      .wallet-bars.motivos-short-bars .wallet-bar-row {
        grid-template-columns: minmax(132px, 1.02fr) minmax(112px, 1.05fr) 78px;
      }
      .wallet-bars.motivos-short-bars .wallet-bar-label {
        max-width: none;
      }
      .wallet-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(112px, .82fr) minmax(122px, 1.18fr) 124px;
        gap: 6px;
      }
      .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(132px, 1.02fr) minmax(116px, 1.04fr) 116px;
        gap: 6px;
      }
      .wallet-bars.value-with-count .wallet-bar-value {
        display: grid;
        grid-template-columns: minmax(72px, 1fr) 24px;
        align-items: center;
        justify-content: end;
        gap: 5px;
        font-size: 10.5px;
        letter-spacing: -.02em;
        font-variant-numeric: tabular-nums;
      }
      .wallet-value-ton { text-align: right; white-space: nowrap; }
      .wallet-value-sep { display: none; }
      .wallet-value-count { text-align: right; min-width: 20px; white-space: nowrap; }
      @media (max-width: 1380px) {
        .wallet-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(100px, .78fr) minmax(104px, 1.12fr) 118px;
          gap: 6px;
        }
        .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(118px, .95fr) minmax(104px, 1.02fr) 110px;
          gap: 6px;
        }
        .wallet-bars.value-with-count .wallet-bar-value {
          grid-template-columns: minmax(66px, 1fr) 22px;
          font-size: 10px;
        }
      }
      .wallet-bar-row {
        display: grid;
        grid-template-columns: minmax(92px, 1fr) minmax(110px, 1.35fr) 58px;
        gap: 8px;
        align-items: center;
        min-height: 22px;
        color: var(--text);
        font-size: 11px;
        font-weight: 850;
      }
      .wallet-bar-label { color: var(--adm-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .wallet-bar-track { height: 8px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
      .wallet-bar-track i { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: var(--adm-blue); }
      .wallet-bar-track.orange i { background: var(--adm-orange); }
      .wallet-bar-track.green i { background: var(--adm-green); }
      .wallet-bar-value { color: var(--text); text-align: right; white-space: nowrap; }
      .wallet-donut-wrap { display: grid; grid-template-columns: 170px minmax(268px, 1fr); align-items: center; gap: 8px; }
      .wallet-donut {
        width: 166px;
        height: 166px;
        border-radius: 999px;
        background: conic-gradient(var(--adm-blue) 0 100%);
        display: grid;
        place-items: center;
        position: relative;
        box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
      }
      .wallet-donut::after {
        content: "";
        position: absolute;
        width: 108px;
        height: 108px;
        border-radius: inherit;
        background: #fff;
        box-shadow: 0 0 0 1px #edf2f7;
      }
      .wallet-donut-center { position: relative; z-index: 2; text-align: center; color: var(--adm-blue); font-family: Montserrat, sans-serif; }
      .wallet-donut-center b { display: block; font-size: 27px; line-height: .9; letter-spacing: -.05em; }
      .wallet-donut-center small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
      .wallet-legend { display: grid; gap: 8px; min-width: 0; }
      .wallet-legend-row { display: grid; grid-template-columns: 10px minmax(148px,1fr) minmax(104px, max-content); gap: 6px; align-items: center; color: var(--text); font-size: 10.5px; font-weight: 800; }
      .wallet-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--adm-blue); }
      .wallet-legend-row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .wallet-legend-row b { text-align: left; white-space: nowrap; font-size: 10.2px; min-width: 104px; padding-left: 2px; }
      .wallet-donut { background: #eef2f7; }
      .wallet-donut::after { z-index: 1; pointer-events: none; }
      .wallet-donut-svg { position: absolute; inset: 0; width: 166px; height: 166px; z-index: 0; }
      .wallet-donut-slice { cursor: pointer; stroke: #fff; stroke-width: 1.5; transition: transform .15s, opacity .15s, filter .15s; transform-origin: 50% 50%; }
      .wallet-donut-slice:hover, .wallet-donut-slice.active { transform: scale(1.035); filter: drop-shadow(0 4px 8px rgba(15,23,42,.18)); }
      .wallet-donut-slice.muted { opacity: .28; }
      .wallet-legend-button { width: 100%; border: 0; background: transparent; text-align: left; padding: 2px 0; border-radius: 5px; cursor: pointer; font-family: inherit; }
      .wallet-legend-button:hover { background: #f7faff; }
      .wallet-legend-button.active { color: var(--adm-blue); background: #eef5ff; box-shadow: inset 3px 0 0 var(--adm-blue); padding-left: 5px; }
      .wallet-legend-button.muted { opacity: .42; }
      .wallet-daily { display: flex; align-items: end; gap: 8px; min-height: 140px; padding-top: 12px; }
      .wallet-day { flex: 1; min-width: 22px; display: grid; grid-template-rows: 18px 96px 16px; align-items: end; justify-items: center; gap: 4px; color: var(--adm-blue); font-size: 10px; font-weight: 900; }
      .wallet-day-bar { width: min(28px, 100%); border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #2f8df6, var(--adm-blue)); min-height: 5px; }
      .wallet-day small { color: var(--muted); font-size: 9px; font-weight: 800; }
      .wallet-matrix { display: grid; gap: 3px; min-width: 0; }
      .wallet-matrix-row { display: grid; gap: 4px; align-items: center; color: var(--text); font-size: 10px; font-weight: 800; }
      .wallet-matrix-head { color: var(--muted); font-size: 8.5px; font-weight: 950; text-transform: uppercase; }
      .wallet-matrix-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
      .wallet-matrix-row span:first-child { text-align: left; color: var(--adm-blue); font-weight: 950; }
      .wallet-matrix-cell { height: 18px; display: grid; place-items: center; border-radius: 5px; background: #f1f5f9; color: #64748b; font-size: 9px; }
      .wallet-matrix-cell.hot { background: #dbeafe; color: var(--adm-blue); }
      .wallet-matrix-cell.strong { background: var(--adm-blue); color: #fff; }
      .wallet-panel-footer { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf2f7; }
      .wallet-view-all-btn { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c5d4ec; border-radius: 6px; background: #fff; color: var(--adm-blue); padding: 0 12px; font: 900 11px/1 Montserrat, sans-serif; text-transform: uppercase; cursor: pointer; }
      .wallet-view-all-btn:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .wallet-view-all-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
      .wallet-bar-button { width: 100%; border: 0; background: transparent; padding: 0; font: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
      .wallet-bar-button:hover { text-decoration: underline; color: #001f63; }
      .wallet-bar-button.active { color: #c2410c; font-weight: 950; }
      .wallet-matrix-full-wrap { min-width: 900px; display: grid; gap: 6px; padding-top: 12px; }
      .wallet-matrix-full-row { display: grid; gap: 6px; align-items: center; color: var(--text); font-size: 11px; font-weight: 850; }
      .wallet-matrix-full-row span { min-width: 0; border-radius: 6px; padding: 7px 8px; background: #f8fafc; text-align: center; }
      .wallet-matrix-full-head span { background: #eef4ff; color: var(--adm-blue); font: 950 9.5px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
      .wallet-matrix-full-row span:first-child { text-align: left; color: var(--adm-blue); font-weight: 950; background: #fff; border: 1px solid #edf2f7; }
      .wallet-matrix-full-cell { background: #f1f5f9 !important; color: #64748b; }
      .wallet-matrix-full-cell.hot { background: #dbeafe !important; color: var(--adm-blue); }
      .wallet-matrix-full-cell.strong { background: var(--adm-blue) !important; color: #fff; }
      .wallet-matrix-full-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; }
      .wallet-modal-filter-wrap { padding-top: 12px; }
      .wallet-motivos-full { min-width: 780px; display: grid; gap: 6px; padding-top: 12px; }
      .wallet-motivos-full-head, .wallet-motivos-full-row { display: grid; grid-template-columns: minmax(320px, 1.7fr) minmax(90px, .45fr) minmax(130px, .6fr) minmax(90px, .45fr); gap: 8px; align-items: center; }
      .wallet-motivos-full-head { color: var(--muted); font: 950 9.5px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
      .wallet-motivos-full-head span { background: #eef4ff; color: var(--adm-blue); border-radius: 6px; padding: 8px 9px; text-align: center; }
      .wallet-motivos-full-head span:first-child { text-align: left; }
      .wallet-motivos-full-row { border: 1px solid #edf2f7; border-left: 4px solid var(--adm-orange); border-radius: 7px; background: #fff; color: var(--text); font-size: 11px; font-weight: 850; padding: 8px 9px; }
      .wallet-motivos-full-row[data-carteira-motivo-detail] { cursor: pointer; transition: background .14s ease, border-color .14s ease, box-shadow .14s ease; }
      .wallet-motivos-full-row[data-carteira-motivo-detail]:hover,
      .wallet-motivos-full-row[data-carteira-motivo-detail]:focus { background: #f8fbff; border-color: #c5d4ec; box-shadow: 0 4px 12px rgba(15,23,42,.08); outline: none; }
      .wallet-motivos-full-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
      .wallet-motivos-full-row span:first-child { text-align: left; }
      .wallet-motivos-full-row b { color: var(--adm-blue); }
      .wallet-motivo-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #dbe6f2; border-radius: 8px; background: #f8fbff; }
      .wallet-motivo-detail-toolbar b { color: var(--adm-blue); font: 950 12px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
      .wallet-motivo-detail-toolbar small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; }
      .wallet-motivo-back-btn { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c5d4ec; border-radius: 6px; background: #fff; color: var(--adm-blue); padding: 0 12px; font: 900 11px/1 Montserrat, sans-serif; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
      .wallet-motivo-back-btn:hover { border-color: var(--adm-blue); background: #eef5ff; }
      .wallet-queue { display: grid; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .wallet-queue-head, .wallet-queue-row { display: grid; grid-template-columns: minmax(112px,.74fr) minmax(108px,.62fr) minmax(94px,.48fr) minmax(220px,1.18fr) minmax(82px,.42fr) minmax(170px,.82fr) minmax(150px,.72fr) minmax(150px,.72fr); gap: 8px; align-items: center; }
      .wallet-queue-head { padding: 8px 10px; border-radius: 6px 6px 0 0; background: #f8fafc; color: var(--muted); font-size: 9px; font-weight: 950; text-transform: uppercase; }
      .wallet-queue-row { padding: 9px 10px; border: 1px solid #edf2f7; border-left: 4px solid var(--adm-orange); border-radius: 6px; background: #fff; color: var(--text); font-size: 11px; font-weight: 850; }
      .wallet-queue-row b { color: var(--adm-blue); }
      .wallet-queue-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; font-weight: 800; }
      .wallet-queue-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .wallet-queue-full-detail { min-width: 1320px; }
      .wallet-queue-full-detail .wallet-queue-row { min-height: 42px; }
      .wallet-queue-full-detail .wallet-queue-row span:nth-child(4) { white-space: normal; line-height: 1.2; }
      .wallet-pagination {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid #edf2f7;
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
      }
      .wallet-page-btn,
      .wallet-page-select {
        min-height: 30px;
        border: 1.5px solid #c5d4ec;
        border-radius: 6px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 10px;
        font-family: Montserrat, sans-serif;
        font-size: 10.5px;
        font-weight: 950;
      }
      .wallet-page-btn:hover,
      .wallet-page-select:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .wallet-page-btn:disabled { opacity: .42; cursor: default; background: #f8fafc; }
      .wallet-page-select { padding-right: 26px; }

      .wallet-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        border: 1px solid #dbe6f2;
        border-radius: 8px;
        background: #f8fbff;
        padding: 10px 12px;
      }
      .wallet-filter-field {
        position: relative;
        min-width: 0;
      }
      .wallet-filter-trigger {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 1.5px solid #c5d4ec;
        border-radius: 6px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 10px;
        font-family: Montserrat, sans-serif;
        font-size: 11.5px;
        font-weight: 950;
        letter-spacing: .01em;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(15,23,42,.04);
        transition: border-color .15s, background .15s, box-shadow .15s;
      }
      .wallet-filter-trigger:hover,
      .wallet-filter-trigger.open,
      .wallet-filter-trigger.active {
        border-color: var(--adm-blue);
        background: #f0f5ff;
        box-shadow: 0 0 0 2px rgba(0,48,135,.08);
      }
      .wallet-filter-trigger svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
      .wallet-filter-caret { opacity: .56; font-size: 10px; transition: transform .15s; }
      .wallet-filter-trigger.open .wallet-filter-caret { transform: rotate(180deg); }
      .wallet-filter-count {
        min-width: 18px;
        height: 18px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--adm-orange);
        color: #fff;
        padding: 0 5px;
        font-size: 10px;
        font-weight: 950;
      }
      .wallet-filter-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        z-index: 360;
        width: min(330px, 88vw);
        border: 1px solid #cfd7e3;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 18px 44px rgba(15,23,42,.18);
        padding: 10px;
      }
      .wallet-filter-field.open .wallet-filter-menu { display: grid; gap: 8px; }
      .wallet-filter-search {
        width: 100%;
        min-height: 34px;
        border: 1px solid #d7dfec;
        border-radius: 6px;
        background: #fbfdff;
        color: var(--text);
        padding: 0 10px;
        font-size: 12px;
        font-weight: 800;
        outline: none;
      }
      .wallet-filter-search:focus { border-color: var(--adm-blue); box-shadow: 0 0 0 2px rgba(0,48,135,.08); }
      .wallet-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
      .wallet-filter-action {
        min-height: 28px;
        border: 1px solid #d7dfec;
        border-radius: 5px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 8px;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        font-family: Montserrat, sans-serif;
      }
      .wallet-filter-action:hover { background: #f0f5ff; border-color: var(--adm-blue); }
      .wallet-filter-options {
        display: grid;
        gap: 2px;
        max-height: 238px;
        overflow: auto;
        padding-right: 2px;
      }
      .wallet-filter-option {
        min-height: 30px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 5px;
        padding: 5px 6px;
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
      }
      .wallet-filter-option:hover { background: #f7faff; color: var(--adm-blue); }
      .wallet-filter-option[hidden] { display: none !important; }
      .wallet-filter-option input { width: 15px; height: 15px; accent-color: var(--adm-blue); flex: 0 0 15px; }
      .wallet-filter-option-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .wallet-filter-option-count { margin-left: auto; border-radius: 999px; background: #edf2f7; color: #64748b; padding: 1px 7px; font-size: 10px; font-weight: 950; }
      .wallet-filter-empty { padding: 10px 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
      .wallet-filter-clear {
        min-height: 36px;
        border: 1.5px solid #c5d4ec;
        border-radius: 6px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 12px;
        font-size: 10.5px;
        font-weight: 950;
        text-transform: uppercase;
        font-family: Montserrat, sans-serif;
      }
      .wallet-filter-clear:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .wallet-filter-clear:disabled { opacity: .42; cursor: default; }
      .wallet-filter-summary {
        margin: -3px 0 0;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
      }
      .wallet-active-filters { color: var(--adm-blue); font-weight: 950; }
      .wallet-day {
        border: 0;
        background: transparent;
        padding: 0;
        cursor: pointer;
        font-family: Montserrat, sans-serif;
      }
      .wallet-day:hover .wallet-day-bar,
      .wallet-day.active .wallet-day-bar {
        background: linear-gradient(180deg, var(--adm-orange), #c2410c);
      }
      .wallet-day.active small,
      .wallet-day.active b { color: #c2410c; }
      .wallet-insights { display: grid; gap: 8px; }
      .wallet-insight-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--text); font-size: 12px; font-weight: 750; line-height: 1.35; }
      .wallet-insight-item i { width: 8px; height: 8px; margin-top: 4px; border-radius: 999px; background: var(--adm-blue); }
      .wallet-insight-item:nth-child(2) i { background: var(--adm-green); }
      .wallet-insight-item:nth-child(3) i { background: var(--adm-orange); }
      .wallet-insight-item b { color: var(--adm-blue); font-weight: 950; }
      @media (max-width: 1220px) {
        .wallet-kpis { grid-template-columns: repeat(2, minmax(148px, 1fr)); }
        .wallet-filters { align-items: flex-start; }
        .wallet-layout { grid-template-columns: 1fr; }
        .wallet-panel.wide, .wallet-panel.full { grid-column: auto; }
      }
      @media (max-width: 760px) {
        .wallet-kpis { grid-template-columns: 1fr; }
        .wallet-filter-field, .wallet-filter-trigger { width: 100%; justify-content: flex-start; }
        .wallet-filter-menu { width: min(330px, 92vw); }
        .wallet-snapshot { align-items: flex-start; flex-direction: column; }
        .wallet-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
        .wallet-queue-head { display: none; }
        .wallet-queue-row { grid-template-columns: 1fr; }
      }

      .filters .dash-check { min-height: 38px; align-self: end; }
      .dash-options { display: grid; gap: 8px; margin-top: 12px; }
      .dash-check {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 32px;
        padding: 6px 8px;
        border: 1px solid var(--line);
        border-radius: 4px;
        color: var(--adm-blue);
        font-size: 13px;
        font-weight: 800;
      }
      .dash-check input { width: 16px; height: 16px; accent-color: var(--adm-green); }
      /* ── Dropdown de Tipo (flags) ── */
      .dash-type-filter {
        position: relative;
        align-self: end;
      }
      .dash-type-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 0 12px;
        border: 1px solid #cfd7e3;
        border-radius: 4px;
        background: #fff;
        color: var(--adm-blue);
        font-size: 12px;
        font-weight: 900;
        font-family: Montserrat, sans-serif;
        cursor: pointer;
        white-space: nowrap;
        user-select: none;
        transition: border-color .15s, box-shadow .15s;
      }
      .dash-type-trigger:hover { border-color: var(--adm-blue); }
      .dash-type-trigger.open {
        border-color: var(--adm-blue);
        box-shadow: 0 0 0 2px rgba(0,48,135,.12);
      }
      .dash-type-trigger-icon {
        width: 28px; height: 28px;
        display: grid; place-items: center;
        background: var(--adm-blue);
        border-radius: 6px;
        color: #fff;
      }
      .dash-inc-trigger-icon { background: var(--adm-orange); }
      .dash-inc-trigger-badge { background: var(--adm-orange); }
      .dash-unit-trigger-icon { background: var(--adm-blue); }
      .dash-unit-trigger-badge { background: var(--adm-green); }
      #dashUnitDropdown { min-width: 245px; max-height: 330px; overflow: auto; }
      .dash-type-trigger-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
      .dash-type-trigger-label { flex: 1; }
      .dash-type-trigger-badge {
        display: inline-grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--adm-green);
        color: #fff;
        font-size: 11px;
        font-weight: 900;
      }
      .dash-type-trigger-caret { opacity: .55; font-size: 10px; transition: transform .18s; }
      .dash-type-trigger.open .dash-type-trigger-caret { transform: rotate(180deg); }
      .dash-type-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        z-index: 200;
        min-width: 210px;
        background: #fff;
        border: 1px solid #cfd7e3;
        border-radius: 6px;
        box-shadow: 0 12px 32px rgba(15,23,42,.16);
        padding: 6px 0;
        overflow: hidden;
      }
      .dash-type-dropdown.open { display: block; }
      .dash-type-dropdown label {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 14px;
        cursor: pointer;
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
        transition: background .1s;
      }
      .dash-type-dropdown label:hover { background: #f0f4ff; color: var(--adm-blue); }
      .dash-type-dropdown label.active { color: var(--adm-blue); }
      .dash-type-dropdown input[type="checkbox"] {
        width: 16px; height: 16px;
        accent-color: var(--adm-green);
        flex: 0 0 16px;
        cursor: pointer;
      }
      .dash-type-dropdown-divider { height: 1px; background: var(--line); margin: 4px 0; }

      /* ── Dash de Cargas | filtros em modelo Excel ── */
      .dash-type-dropdown.dash-excel-menu {
        min-width: 330px;
        max-width: min(360px, 92vw);
        max-height: none;
        overflow: visible;
        padding: 10px;
      }
      #dashTypeDropdown.dash-excel-menu,
      #dashIncDropdown.dash-excel-menu,
      #dashUnitDropdown.dash-excel-menu {
        min-width: 330px;
        max-height: none;
        overflow: visible;
      }
      .dash-type-dropdown.dash-excel-menu.open { display: grid; gap: 8px; }
      .dash-filter-search {
        width: 100%;
        min-height: 38px;
        border: 1.5px solid #cfd7e3;
        border-radius: 6px;
        background: #fff;
        color: var(--text);
        padding: 0 11px;
        font-size: 12px;
        font-weight: 750;
        outline: none;
      }
      .dash-filter-search:focus { border-color: var(--adm-blue); box-shadow: 0 0 0 2px rgba(0,48,135,.08); }
      .dash-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
      .dash-filter-action {
        min-height: 30px;
        border: 1px solid #c5d4ec;
        border-radius: 6px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 10px;
        font: 900 10.5px/1 Montserrat, sans-serif;
        text-transform: uppercase;
      }
      .dash-filter-action:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .dash-filter-options {
        display: grid;
        gap: 2px;
        max-height: 245px;
        overflow: auto;
        padding: 2px 0;
      }
      .dash-type-dropdown.dash-excel-menu label.dash-filter-option {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 32px;
        padding: 6px 8px;
        border-radius: 6px;
        color: var(--text);
        font: 850 12px/1.25 Montserrat, sans-serif;
      }
      .dash-type-dropdown.dash-excel-menu label.dash-filter-option:hover { background: #f7faff; color: var(--adm-blue); }
      .dash-type-dropdown.dash-excel-menu label.dash-filter-option.active { color: var(--adm-blue); }
      .dash-type-dropdown.dash-excel-menu label.dash-filter-option[hidden] { display: none !important; }
      .dash-type-dropdown.dash-excel-menu label.dash-filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--adm-blue);
      }
      .dash-filter-option-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .dash-filter-option-count {
        min-width: 23px;
        height: 20px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: #edf2f7;
        color: #64748b;
        padding: 0 7px;
        font-size: 10px;
        font-weight: 950;
      }
      @media (max-width: 760px) {
        .dash-type-dropdown.dash-excel-menu { width: min(340px, 92vw); }
      }
      .dash-chart { display: grid; gap: 8px; }
      .dash-table-head,
      .dash-unit-row,
      .typology-row {
        display: grid;
        align-items: center;
        border-bottom: 1px solid #e8edf5;
      }
      .dash-table-head {
        grid-template-columns: 1fr 1.15fr 1.15fr;
        padding: 9px 8px;
        background: #f8fafc;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
      }
      .dash-unit-row {
        grid-template-columns: 1fr 1.15fr 1.15fr;
        gap: 12px;
        padding: 9px 8px;
        background: #fff;
      }
      .dash-unit-row.active {
        border: 1px solid #002f73;
        border-radius: 4px;
        background: var(--adm-blue);
        box-shadow: 0 10px 22px rgba(0, 59, 145, .22), 0 2px 5px rgba(15, 23, 42, .16), inset 0 0 0 1px rgba(255,255,255,.16);
        transform: translateY(-1px);
        position: relative;
        z-index: 1;
      }
      .dash-unit-row.active .dash-unit,
      .dash-unit-row.active .dash-unit-button,
      .dash-unit-row.active .dash-value,
      .dash-unit-row.active .dash-status-line { color: #fff; }
      .dash-unit-row.active .status-ok { color: #057a3b; background: #ffffff; }
      .dash-unit-row.active .status-pending { color: #c25a00; background: #fff2e8; }
      .dash-unit-row.active .dash-bar-track { background: rgba(255,255,255,.42); }
      .dash-unit-row:last-child,
      .typology-row:last-child { border-bottom: 0; }
      .dash-unit { color: var(--adm-blue); font-weight: 900; }
      .dash-unit-button {
        width: 100%;
        border: 0;
        background: transparent;
        color: var(--adm-blue);
        font: inherit;
        font-weight: 900;
        text-align: left;
        cursor: pointer;
        padding: 0;
      }
      .dash-unit-button:hover { text-decoration: underline; }
      .dash-reset-card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid #bfd0ea;
        border-left: 4px solid var(--adm-blue);
        border-radius: 4px;
        background: #f8fbff;
      }
      .dash-reset-card b { color: var(--adm-blue); font-size: 13px; text-transform: uppercase; }
      .dash-reset-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
      .dash-reset-card .btn { min-height: 32px; padding: 0 12px; font-size: 12px; }
      .dash-status, .dash-volume-cell, .typology-share { display: grid; gap: 4px; }
      .dash-status-line { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 900; }
      .status-ok { color: #057a3b; background: #e7f8ee; border-radius: 3px; padding: 2px 5px; }
      .status-pending { color: #c25a00; background: #fff2e8; border-radius: 3px; padding: 2px 5px; }
      .dash-bar-track { display: block; height: 7px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
      .dash-bar-fill { height: 100%; min-width: 4px; background: var(--adm-blue); border-radius: inherit; }
      .dash-bar-fill.typology-fill { display: block; }
      .dash-bar-fill.arrival { background: var(--adm-green); }
      .dash-bar-fill.volume { background: var(--adm-orange); }
      .dash-value { color: var(--adm-blue); font-size: 12px; font-weight: 900; white-space: nowrap; }
      .detail-summary { overflow-x: auto; overflow-y: hidden; }
      .detail-table { min-width: 1040px; display: grid; border: 1px solid #eef2f7; border-radius: 4px; overflow: hidden; background: #fff; }
      .detail-head,
      .detail-row { display: grid; grid-template-columns: 1.25fr .65fr .8fr .8fr 1fr 1fr 1fr 1fr .8fr; align-items: center; gap: 10px; }
      .detail-head { padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e8edf5; color: #526174; font-size: 10px; font-weight: 900; text-transform: uppercase; text-align: center; }
      .detail-head small { display: block; margin-top: 3px; color: #7b8798; font-size: 9px; font-weight: 800; text-transform: none; }
      .detail-body { max-height: 282px; overflow: auto; }
      .dash-modal-body .detail-body { max-height: calc(88vh - 260px); }
      .detail-row { padding: 12px 12px; border-bottom: 1px solid #e8edf5; text-align: center; color: var(--text); font-size: 12px; font-weight: 800; }
      .detail-row:last-child { border-bottom: 0; }
      .detail-unit { display: flex; align-items: center; gap: 10px; text-align: left; color: var(--adm-blue); font-weight: 900; }
      .detail-unit small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
      .detail-unit-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: #e8f7ef; color: var(--adm-green); }
      .detail-unit-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
      .detail-unit-icon.critical { background: #ffe4e6; color: #ef4444; }
      .detail-unit-icon.attention { background: #fff2d8; color: var(--adm-orange); }
      .detail-unit-icon.normal { background: #dcfce7; color: var(--adm-green); }
      .detail-unit-icon.total { background: #dbeafe; color: var(--adm-blue); }
      .detail-positive { color: var(--adm-green); }
      .detail-pending { color: #ef6f1a; }
      .detail-bad { color: #ef4444; }
      .detail-status { display: inline-flex; justify-content: center; min-width: 70px; border-radius: 4px; padding: 5px 8px; font-size: 11px; font-weight: 900; }
      .detail-status.critical { background: #ffe4e6; color: #dc2626; }
      .detail-status.attention { background: #fff2d8; color: #c25a00; }
      .detail-status.normal { background: #dcfce7; color: #057a3b; }
      .detail-progress { display: grid; gap: 5px; }
      .detail-progress b { color: var(--adm-blue); font-size: 14px; }
      .detail-progress span { height: 6px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
      .detail-progress i { display: block; height: 100%; border-radius: inherit; background: var(--adm-orange); }
      .detail-progress i.critical { background: #ef4444; }
      .detail-progress i.attention { background: var(--adm-orange); }
      .detail-progress i.normal { background: var(--adm-green); }
      .detail-actions { display: flex; justify-content: center; padding-top: 14px; border-top: 1px solid #edf1f7; }
      .detail-total-row { background: #f8fbff; border-top: 1px solid #bfd0ea; box-shadow: 0 -8px 18px rgba(15,23,42,.04); text-align: center; font-size: 13px; }
      .detail-total-row .detail-unit { justify-content: center; color: var(--adm-blue); text-align: center; text-transform: uppercase; }
      .detail-total-row b, .detail-total-row .detail-progress b { font-size: 15px; }
      .detail-total-rate { --status-color: var(--adm-blue); --status-soft: #eaf2ff; grid-column: span 2; display: grid; gap: 8px; min-height: 96px; padding: 10px 12px; border-left: 1px solid #dce5f1; border-radius: 8px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 8px 18px rgba(15,23,42,.06); text-align: left; }
      .detail-total-rate.critical { --status-color: #ef4444; --status-soft: #ffe4e6; }
      .detail-total-rate.attention { --status-color: var(--adm-orange); --status-soft: #fff2d8; }
      .detail-total-rate.normal { --status-color: var(--adm-green); --status-soft: #dcfce7; }
      .detail-total-rate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .detail-total-title { display: flex; align-items: center; gap: 8px; color: #12213a; font-size: 13px; font-weight: 950; }
      .detail-total-title svg { width: 22px; height: 22px; padding: 5px; border-radius: 999px; background: var(--status-soft); color: var(--status-color); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
      .detail-total-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 5px 8px; border-radius: 999px; background: var(--status-color); color: #fff; font-size: 10px; font-weight: 950; text-transform: uppercase; box-shadow: 0 6px 14px color-mix(in srgb, var(--status-color) 26%, transparent); }
      .detail-total-main { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
      .detail-total-percent { color: var(--status-color); font-size: 28px; font-weight: 950; line-height: .95; letter-spacing: 0; }
      .detail-total-meta { display: grid; gap: 2px; color: #64748b; font-size: 10px; font-weight: 800; text-align: right; }
      .detail-total-meta b { color: var(--status-color); font-size: 14px !important; }
      .detail-total-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; color: var(--adm-blue); font-size: 11px; font-weight: 900; }
      .detail-total-meter span { height: 8px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
      .detail-total-meter i { display: block; height: 100%; border-radius: inherit; background: var(--status-color); }
      .detail-detail-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
      .dash-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15,23,42,.46); }
      .dash-modal-backdrop.show { display: flex; }
      .dash-modal { width: min(1180px, 96vw); max-height: 88vh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #fff; border: 1px solid #d8e0ec; border-radius: 6px; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
      .dash-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #e8edf5; }
      .dash-modal-head h3 { margin: 0; color: var(--adm-blue); font-size: 18px; text-transform: uppercase; }
      .dash-modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
      .dash-modal-actions { display: flex; align-items: center; gap: 8px; }
      .dash-modal-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--adm-blue); font-size: 20px; font-weight: 900; }
      .dash-modal-body { overflow: auto; padding: 0 14px 16px; }
      .dash-detail-image-sheet {
        position: fixed;
        left: -20000px;
        top: 0;
        width: 1180px;
        display: grid;
        grid-template-rows: auto auto;
        background: #fff;
        border: 1px solid #d8e0ec;
        border-radius: 6px;
        box-shadow: none;
        overflow: visible;
      }
      .dash-detail-image-sheet .dash-modal-body { overflow: visible; padding: 0 14px 16px; }
      .dash-detail-image-sheet .detail-body { max-height: none; overflow: visible; }
      .typology-row { grid-template-columns: .8fr 1.7fr .55fr; gap: 10px; padding: 10px 6px; font-size: 12px; }
      .typology-head { grid-template-columns: .8fr 1.7fr .55fr; }
      .typology-name { color: var(--adm-blue); font-size: 12px; font-weight: 800; line-height: 1.25; letter-spacing: 0; text-transform: uppercase; }
      .typology-need { display: grid; grid-template-columns: 22px minmax(96px, 1fr) 70px; gap: 8px; align-items: center; }
      .vehicle-icon { color: #0050b5; display: grid; place-items: center; }
      .vehicle-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
      .typology-badge { justify-self: start; min-width: 42px; text-align: center; border: 1px solid var(--line); border-radius: 4px; background: #f8fbff; color: var(--adm-blue); padding: 4px 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
      .priority-head,
      .priority-row { display: grid; grid-template-columns: 28px 1.2fr .55fr .9fr 1.35fr; gap: 7px; align-items: center; }
      .priority-head { padding: 8px 5px; background: #f8fafc; border-bottom: 1px solid #e8edf5; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
      .priority-head span:nth-child(3),
      .priority-row span:nth-child(3) { text-align: center; }
      .priority-row { padding: 9px 5px; border-bottom: 1px solid #e8edf5; }
      .priority-row:last-child { border-bottom: 0; }
      .priority-row.is-muted { opacity: .42; }
      .priority-row.is-selected {
        position: relative;
        z-index: 1;
        margin: 4px 0;
        border: 1px solid #bfd0ea;
        border-radius: 5px;
        background: #f8fbff;
        box-shadow: 0 8px 18px rgba(0, 59, 145, .14), 0 1px 4px rgba(15,23,42,.08);
        transform: translateY(-1px);
      }
      .priority-pos { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--adm-blue); font-size: 11px; font-weight: 900; }
      .priority-pos.critical { background: #ef4444; }
      .priority-pos.attention { background: var(--adm-orange); }
      .priority-pos.normal { background: var(--adm-green); }
      .priority-unit { color: var(--adm-blue); font-weight: 900; font-size: 11px; }
      .priority-unit-button { width: 100%; border: 0; background: transparent; color: var(--adm-blue); font: inherit; font-weight: 900; text-align: left; cursor: pointer; padding: 0; }
      .priority-unit-button:hover { text-decoration: underline; }
      .priority-meta { color: var(--text); font-size: 10px; font-weight: 900; }
      .priority-rate { display: grid; grid-template-columns: minmax(58px, 1fr) 30px; gap: 7px; align-items: center; color: var(--text); font-size: 10px; font-weight: 900; }
      .priority-rate span { height: 7px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
      .priority-rate i { display: block; height: 100%; border-radius: inherit; background: var(--adm-orange); }
      .priority-rate i.critical { background: #ef4444; }
      .priority-rate i.attention { background: var(--adm-orange); }
      .priority-rate i.normal { background: var(--adm-green); }
      .unit-map { position: relative; min-height: 342px; border: 1px solid #e8edf5; border-radius: 4px; background: #fff; overflow: hidden; cursor: grab; }
      .unit-map.dragging { cursor: grabbing; }
      .map-layer { position: absolute; left: 50%; top: 51%; width: 72%; height: 88%; transform: translate(-50%, -50%) translate(var(--map-pan-x, 0px), var(--map-pan-y, 0px)) scale(var(--map-zoom, 1)); transform-origin: 50% 50%; transition: transform .16s ease; }
      .unit-map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .58; filter: grayscale(1) brightness(1.45) contrast(.92) drop-shadow(0 5px 14px rgba(15,23,42,.08)); pointer-events: none; }
      .map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 8px; padding: 8px 10px; border: 1px solid #d8e0ec; border-radius: 5px; background: rgba(255,255,255,.96); color: var(--text); font-size: 10px; font-weight: 800; box-shadow: 0 3px 10px rgba(15,23,42,.04); text-align: center; }
      .map-title-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      .map-title-row .table-title { min-width: 0; }
      .map-toggle-btn {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        display: inline-grid;
        place-items: center;
        border: 1.5px solid #c5d4ec;
        border-radius: 6px;
        background: #fff;
        color: var(--adm-blue);
        box-shadow: 0 3px 8px rgba(15,23,42,.05);
      }
      .map-toggle-btn:hover { border-color: var(--adm-blue); background: #f0f5ff; }
      .map-toggle-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.35; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .map-legend b { color: var(--text); font-size: 11px; margin-right: 2px; }
      .map-legend span { display: flex; align-items: center; gap: 6px; }
      .map-legend i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
      .map-legend i.critical { background: #ef4444; }
      .map-legend i.attention { background: var(--adm-orange); }
      .map-legend i.normal { background: var(--adm-green); }
      .map-point { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; }
      .map-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--adm-green); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(15,23,42,.18); z-index: 2; }
      .map-dot::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 5px; height: 5px; border-radius: 50%; background: #fff; }
      .map-dot.attention { background: var(--adm-orange); }
      .map-dot.critical { background: #ef4444; }
      .map-label { position: absolute; left: 14px; top: -18px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--adm-blue); font-size: 8px; line-height: 1.25; font-weight: 900; white-space: nowrap; text-shadow: -2px -2px 0 #fff, 0 -2px 0 #fff, 2px -2px 0 #fff, 2px 0 0 #fff, 2px 2px 0 #fff, 0 2px 0 #fff, -2px 2px 0 #fff, -2px 0 0 #fff, 0 3px 7px rgba(15,23,42,.28); z-index: 3; }
      .map-label b { display: block; font-size: 9px; font-weight: 900; margin-bottom: 2px; }
      .map-rolim .map-label { left: 12px; top: -20px; }
      .map-sao-lourenco .map-label { left: 16px; top: -18px; }
      .map-inhumas .map-label { left: 12px; top: -24px; }
      .map-primavera .map-label { left: -96px; top: -14px; }
      .map-canoas .map-label { left: 13px; top: -18px; }
      .map-descalvado .map-label { left: 14px; top: -21px; }
      .map-descalvado-cd .map-label { left: 13px; top: 10px; }
      .map-apucarana .map-label { left: -62px; top: -14px; }
      .map-zoom-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; z-index: 4; }
      .map-zoom-controls button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d8e0ec; border-radius: 5px; background: #fff; color: var(--adm-blue); font-size: 16px; line-height: 1; font-weight: 900; box-shadow: 0 4px 10px rgba(15,23,42,.10); cursor: pointer; }
      .map-zoom-controls button:hover { background: #f8fbff; }
      .dash-empty { padding: 42px 24px; text-align: center; color: var(--muted); border: 1px dashed #aab7cb; border-radius: 4px; background: #fff; }

      .unit-tabs { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
      .unit-tab { flex: 0 0 auto; min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--adm-blue); padding: 0 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
      .unit-tab.active { background: var(--adm-blue); border-color: var(--adm-blue); color: #fff; }

      .table-shell { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
      .table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
      .table-title { color: var(--adm-blue); font-size: 13px; font-weight: 900; text-transform: uppercase; }
      .table-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
      .table-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
      .table-date-trigger {
        min-height: 34px;
        min-width: 0;
        width: fit-content;
        border: 1px solid #d8e0ec;
        border-radius: 4px;
        background: #fff;
        color: var(--adm-blue);
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
      }
      .table-date-trigger svg, .table-icon-btn svg, .table-filter-clear svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .dash-date-trigger { align-self: end; min-height: 38px; min-width: auto; padding: 0 12px; font-size: 12px; font-weight: 900; box-shadow: none; }
      /* ── Contratação type filter dropdown ── */
      .contr-type-filter { position: relative; display: inline-flex; }
      .contr-type-trigger {
        min-height: 34px;
        padding: 0 10px;
        border: 1px solid #d8e0ec;
        border-radius: 4px;
        background: #fff;
        color: var(--adm-blue);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 800;
        font-family: Montserrat, sans-serif;
        cursor: pointer;
        white-space: nowrap;
        transition: border-color .15s, box-shadow .15s;
      }
      .contr-type-trigger:hover { border-color: var(--adm-blue); }
      .contr-type-trigger.open { border-color: var(--adm-blue); box-shadow: 0 0 0 2px rgba(0,48,135,.12); }
      .contr-type-label { }
      .contr-type-badge {
        min-width: 18px; height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--adm-green);
        color: #fff;
        font-size: 10px;
        font-weight: 900;
        display: grid;
        place-items: center;
      }
      .contr-type-caret { opacity: .5; transition: transform .18s; }
      .contr-type-trigger.open .contr-type-caret { transform: rotate(180deg); }
      .contr-type-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        z-index: 300;
        min-width: 190px;
        background: #fff;
        border: 1px solid #cfd7e3;
        border-radius: 6px;
        box-shadow: 0 12px 32px rgba(15,23,42,.16);
        padding: 6px 0;
      }
      .contr-type-dropdown.open { display: block; }
      .contr-type-dropdown .ctype-item {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 13px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        font-family: Montserrat, sans-serif;
        color: var(--text);
        transition: background .1s;
        user-select: none;
      }
      .contr-type-dropdown .ctype-item:hover { background: #f0f4ff; color: var(--adm-blue); }
      .contr-type-dropdown .ctype-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--adm-green); flex: 0 0 15px; cursor: pointer; }
      .contr-type-dropdown .ctype-item .ctype-count { margin-left: auto; font-size: 10px; font-weight: 800; color: #999; background: #f1f5f9; border-radius: 99px; padding: 1px 7px; }
      .contr-type-dropdown .ctype-divider { height: 1px; background: #e8edf4; margin: 4px 0; }
      .table-filter-clear { min-height: 34px; padding: 0 11px; transition: width .16s ease, min-width .16s ease, padding .16s ease, background .16s ease, color .16s ease; }
      .table-filter-clear.all-active { width: 38px; min-width: 38px; padding: 0; background: var(--adm-blue); color: #fff; border-color: var(--adm-blue); gap: 0; }
      .table-filter-clear.all-active .table-filter-text { display: none; }
      .table-icon-btn {
        width: 38px;
        height: 34px;
        border: 1px solid var(--adm-blue);
        border-radius: 4px;
        background: #fff;
        color: var(--adm-blue);
        display: inline-grid;
        place-items: center;
      }
      .table-wrap { overflow: auto; max-height: clamp(430px, calc(100vh - 110px), 720px); }
      table { width: 100%; min-width: 2232px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
      th {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 9px 8px;
        color: var(--adm-blue);
        background: #fff;
        text-align: center;
        white-space: nowrap;
        font-weight: 900;
        text-transform: uppercase;
        border-bottom: 1px solid #e8edf5;
      }
      th.base-col { color: var(--adm-blue); box-shadow: inset 0 -2px 0 rgba(0,48,135,.20); }
      th.user-col { color: var(--adm-orange); box-shadow: inset 0 -2px 0 rgba(241,113,0,.28); }
      th.lock-col { color: var(--adm-green); box-shadow: inset 0 -2px 0 rgba(0,141,76,.25); }
      .sticky-carga { position: sticky; left: 0; z-index: 4; box-shadow: 1px 0 0 #d8dee8; }
      .row-edit-btn {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #4f8de8;
        display: inline-grid;
        place-items: center;
        padding: 0;
        cursor: pointer;
        transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
      }
      .row-edit-btn:hover:not(:disabled) { background: #eff6ff; color: var(--adm-blue); box-shadow: 0 0 0 1px rgba(0,48,135,.10); transform: translateY(-1px); }
      .row-edit-btn.active { background: #ecfdf5; color: var(--adm-green); box-shadow: 0 0 0 1px rgba(0,141,76,.18); }
      .row-edit-btn:disabled { background: transparent; color: #cbd5e1; cursor: not-allowed; box-shadow: none; transform: none; }
      .row-edit-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      td.sticky-carga { z-index: 2; }
      .cargo-with-status { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; max-width: 100%; padding: 0 2px; white-space: nowrap; }
      .cargo-with-status .cargo-detail-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
      .contract-status-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; }
      .contract-status-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .contract-status-icon.complete { background: #dcfce7; color: var(--adm-green); }
      .contract-status-icon.awaiting { background: #fef3c7; color: #d97706; border-radius: 4px; }
      .contract-status-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 900; text-transform: none; white-space: nowrap; flex: 0 0 auto; }
      .contract-status-pill.complete { background: #dcfce7; color: #047857; }
      .contract-status-pill.awaiting { background: #fef3c7; color: #b45309; }
      .contract-status-pill svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      tr.editing td { background: #f0fdf4; }
      tr.editing td.base-cell { background: #ecfdf5; }
      .th-content { display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 6px; }
      .th-content span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
      .filter-btn { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d8e0ec; border-radius: 3px; background: #f8fafc; color: currentColor; padding: 0; }
      .filter-btn.active { background: #fff8db; border-color: var(--adm-yellow); color: var(--adm-blue); }
      .filter-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .edit-lock-note { display: block; margin-top: 4px; color: #b45309; font-size: 11px; font-weight: 800; }
      .filter-popover { position: fixed; z-index: 30; width: 280px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 36px rgba(15,23,42,.22); padding: 10px; display: none; }
      .filter-popover.show { display: block; }
      .filter-popover h3 { margin: 0 0 8px; color: var(--adm-blue); font-size: 13px; text-transform: uppercase; }
      .filter-search { width: 100%; min-height: 34px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 0 9px; margin-bottom: 8px; }
      .filter-list { max-height: 210px; overflow: auto; border: 1px solid #edf1f6; border-radius: 4px; }
      .filter-option { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 8px; font-size: 12px; }
      .filter-option input { flex: 0 0 auto; }
      .filter-select-all { border-bottom: 1px solid #edf1f6; font-weight: 700; }
      .filter-group { border-top: 1px solid #edf1f6; background: #f8fafc; color: var(--adm-blue); font-weight: 800; cursor: pointer; }
      .filter-month { padding-left: 18px; background: #fff; }
      .filter-group .group-arrow { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 3px; background: var(--adm-blue); color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
      .filter-child { padding-left: 24px; }
      .filter-date { padding-left: 38px; }
      .filter-child.hidden { display: none; }
      .filter-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
      .filter-actions button { min-height: 30px; border-radius: 4px; padding: 0 10px; font-size: 12px; font-weight: 800; }
      .filter-actions .plain { background: #fff; border: 1px solid var(--line); color: var(--adm-blue); }
      .filter-actions .apply { background: var(--adm-blue); border: 1px solid var(--adm-blue); color: #fff; }
      .floating-alert {
        position: fixed;
        right: 20px;
        bottom: 24px;
        z-index: 80;
        width: min(360px, calc(100vw - 32px));
        padding: 14px 16px;
        border: 1px solid #f59e0b;
        border-left: 5px solid #f97316;
        border-radius: 6px;
        background: #fff7ed;
        color: #7c2d12;
        box-shadow: 0 18px 38px rgba(15,23,42,.22);
        transform: translateX(calc(100% + 32px));
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
      }
      .floating-alert.show { transform: translateX(0); opacity: 1; }
      .floating-alert b { display: block; margin-bottom: 4px; color: var(--adm-blue); font-size: 13px; text-transform: uppercase; }
      .floating-alert span { display: block; font-size: 13px; line-height: 1.35; font-weight: 700; }
      td { border-bottom: 1px solid #e5e7eb; padding: 5px; text-align: center; vertical-align: middle; background: #fff; }
      td.base-cell { background: #f9fafb; color: #374151; }
      td.wrap-cell { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
      td input, td select {
        width: 100%;
        min-height: 30px;
        border: 1px solid #d7dee8;
        border-radius: 4px;
        background: #fff;
        padding: 6px 8px;
        color: var(--text);
        font-size: 12px;
        text-align: center;
      }
      td input::placeholder { color: #94a3b8; opacity: .55; }
      td input:disabled { background: #eef2f7; color: #64748b; cursor: not-allowed; }
      .col-carga { width: 190px; }
      .col-programacao { width: 116px; }
      .col-frete { width: 90px; }
      .col-valor { width: 125px; }
      .col-peso { width: 110px; }
      .col-distribuidor { width: 260px; }
      .col-destino { width: 220px; }
      .col-classificacao { width: 130px; }
      .col-empresa { width: 150px; }
      .col-placa { width: 145px; }
      .col-envio { width: 170px; }
      .col-cif { width: 135px; }
      .col-transportadora { width: 240px; }
      .col-complemento { width: 140px; }
      .col-data { width: 145px; }
      .col-obs { width: 260px; }
      .col-tel { width: 160px; }
      .col-chegada { width: 155px; }
      .col-status { width: 150px; }
      .col-passagem1 { width: 190px; }
      .col-passagem2 { width: 250px; }
      .col-passagem-detalhe { width: 260px; }
      .col-passagem-flag { width: 132px; }
      .col-saving { width: 120px; }
      .table-flag { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--adm-blue); font-size: 11px; font-weight: 900; }
      .table-flag input { width: 16px; height: 16px; accent-color: var(--adm-green); }
      .contract-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
      .contract-metric { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 76px; border-left: 0; padding: 12px 14px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
      .contract-metric b { font-size: 20px; white-space: nowrap; }
      .contract-metric b.status-text { font-size: 15px; white-space: normal; line-height: 1.18; }
      .contract-metric small { font-size: 9px; line-height: 1.2; }
      .contract-metric .metric-sub { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: var(--muted); font-weight: 800; }
      .update-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
      .update-summary .metric { border-left: 0; }
      .update-metric { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 76px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
      .update-metric b { font-size: 20px; white-space: nowrap; }
      .update-metric small { font-size: 9px; line-height: 1.2; }
      .update-metric .metric-sub { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: var(--muted); font-weight: 800; }
      .contract-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
      .quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
      .quick-select, .contract-search { min-height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); padding: 0 10px; font-size: 12px; }
      .contract-search { width: min(360px, 100%); }
      .contract-overview { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; margin-bottom: 14px; }
      .contract-main-area { min-width: 0; }
      .contract-main-area .summary { margin-bottom: 12px; gap: 10px; }
      .contract-main-area .unit-tabs { margin-bottom: 12px; }
      .contract-overview .table-shell { min-width: 0; }
      .contract-table { min-width: 1880px; }
      .contract-table tr.selected-detail td { background: #f5f9ff; }
      .contract-table tr.selected-detail td:first-child { box-shadow: inset 4px 0 0 var(--adm-blue); }
      .contract-group th { top: 0; z-index: 3; padding: 8px 8px 5px; background: #fff; border-bottom: 0; font-size: 10px; letter-spacing: .02em; box-shadow: none; }
      .contract-group th span { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; border-radius: 999px; padding: 0 10px; background: #f5f8fc; border: 1px solid #e8edf5; }
      .contract-group .group-read span { color: var(--adm-blue); background: #f5f8ff; }
      .contract-group .group-cs span { color: #c45c00; background: #fff7ed; border-color: #fed7aa; }
      .contract-group .group-transp span { color: var(--adm-green); background: #f0fdf4; border-color: #bbf7d0; }
      .contract-table thead tr:nth-child(2) th { top: 35px; }
      .status-cell { width: 42px; min-width: 42px; }
      .load-status { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 12px; font-weight: 950; }
      .load-status.complete { background: #dcfce7; color: #057a3b; }
      .load-status.attention { background: #fff2d8; color: #c25a00; }
      .load-status.critical { background: #ffe4e6; color: #ef4444; }
      .load-status.pending { background: #eef2f7; color: #64748b; }
      .status-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 14px; color: var(--muted); font-size: 11px; font-weight: 800; border-top: 1px solid #eef2f7; }
      .status-legend span { display: inline-flex; align-items: center; gap: 6px; }
      .status-legend i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
      .status-legend .complete { background: var(--adm-green); }
      .status-legend .attention { background: var(--adm-orange); }
      .status-legend .critical { background: #ef4444; }
      .status-legend .pending { background: #94a3b8; }
      .details-panel { position: sticky; top: 14px; min-height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 22px rgba(15,23,42,.10); overflow: hidden; display: flex; flex-direction: column; }
      .details-panel--expanded { height: auto; }
      .details-head { position: relative; display: block; padding: 12px 44px 12px 14px; border-bottom: 1px solid #e8edf5; flex: 0 0 auto; }
      .details-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
      .details-head h3 { margin: 0 0 8px; color: var(--adm-blue); font-size: 13px; font-weight: 950; text-transform: uppercase; }
      .details-title-row h3 { margin: 0; }
      .details-search-toggle { width: 28px; height: 28px; border: 1px solid #d7dee8; border-radius: 4px; background: #fff; color: var(--adm-blue); display: inline-grid; place-items: center; }
      .details-search-toggle.active, .details-search-toggle:hover { border-color: var(--adm-blue); background: #f8fbff; }
      .details-search-toggle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
      .details-search { position: relative; display: block; width: 100%; margin: 0 0 10px; }
      .details-search svg { position: absolute; left: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); stroke: var(--adm-blue); stroke-width: 2; fill: none; pointer-events: none; }
      .details-search input { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); padding: 0 8px 0 28px; font-size: 11px; }
      .details-id { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 78px; color: var(--adm-blue); font-size: 18px; font-weight: 950; }
      .details-id-code { display: block; min-width: 0; overflow: visible; text-overflow: clip; white-space: nowrap; }
      .details-id-status { flex: 0 0 auto; display: flex; align-items: center; min-height: 22px; }
      .details-edit-icon { position: absolute; top: 12px; right: 46px; width: 28px; height: 28px; border: 1px solid #d7dee8; border-radius: 4px; background: #fff; color: var(--adm-blue); display: inline-grid; place-items: center; }
      .details-edit-icon:hover { border-color: var(--adm-blue); background: #f8fbff; }
      .details-edit-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .details-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--adm-blue); font-weight: 900; }
      /* Fixed info block below header */
      .details-info-block { flex: 0 0 auto; padding: 12px 14px 10px; border-bottom: 1px solid #e8edf5; background: #fff; }
      /* Tab selector */
      .details-tabs { flex: 0 0 auto; display: flex; border-bottom: 2px solid #e8edf5; background: #f7fafd; }
      .details-tab-btn { flex: 1; padding: 9px 6px; border: none; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; font-family: Montserrat, sans-serif; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; display: flex; align-items: center; justify-content: center; gap: 5px; }
      .details-tab-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
      .details-tab-btn:hover { color: var(--adm-blue); }
      .details-tab-btn.active-cs { color: var(--adm-orange); border-bottom-color: var(--adm-orange); }
      .details-tab-btn.active-tr { color: var(--adm-green); border-bottom-color: var(--adm-green); }
      /* Scrollable tab body */
      .details-body { flex: 0 0 auto; overflow-y: visible; padding: 12px 14px 16px; }
      .details-tab-panel { display: none; }
      .details-tab-panel.active { display: block; }
      .details-section { border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 12px; }
      .details-edit-block { border: 1px solid #edf2f7; border-radius: 6px; padding: 11px; background: #fbfdff; }
      .details-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
      .details-section-title { display: flex; align-items: center; gap: 8px; color: var(--adm-blue); font-size: 11px; font-weight: 950; text-transform: uppercase; margin-bottom: 10px; }
      .details-section-title.customer { color: var(--adm-orange); }
      .details-section-title.transport { color: var(--adm-green); }
      .details-section-title svg, .details-row svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
      .details-grid { display: grid; gap: 9px; }
      .details-row { display: grid; grid-template-columns: 18px 96px minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
      .details-row svg { color: var(--adm-blue); }
      .details-row b { color: var(--text); font-size: 12px; text-align: right; }
      .details-row-alert { background: #fff7f7; border: 1px solid #fecaca; border-left: 3px solid var(--danger); border-radius: 5px; padding: 7px 8px; }
      .details-row-alert svg { color: var(--danger); }
      .details-row-alert span { color: #991b1b; }
      .details-row-alert b { color: #7f1d1d; }
      .details-row b .details-alert-icon { display: inline-grid; place-items: center; width: 13px; height: 13px; color: var(--danger); margin-right: 6px; vertical-align: -1px; }
      .details-row b .details-alert-icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.35; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .details-field { display: grid; gap: 5px; color: var(--adm-blue); font-size: 11px; font-weight: 900; }
      .details-field input, .details-field select, .details-field textarea { width: 100%; min-height: 34px; border: 1px solid #d7dee8; border-radius: 4px; background: #fff; padding: 7px 9px; color: var(--text); font: 12px/1.35 Open Sans, sans-serif; }
      .details-field textarea { min-height: 74px; resize: vertical; }
      .details-field input:disabled, .details-field select:disabled, .details-field textarea:disabled { background: #eef2f7; color: #64748b; }
      .details-passage-fields { display: grid; gap: 9px; padding: 10px; border: 1px solid #fde7c7; border-radius: 4px; background: #fffaf3; }
      .details-check { display: flex; align-items: center; gap: 8px; min-height: 34px; color: var(--adm-blue); font-size: 12px; font-weight: 900; }
      .details-check input { width: 18px; height: 18px; accent-color: var(--adm-green); }
      .yes-select-control { position: relative; display: block; }
      .yes-select-control::before { content: ""; position: absolute; left: 10px; top: 50%; width: 18px; height: 18px; border-radius: 999px; transform: translateY(-50%); background: #e5eaf1; z-index: 1; }
      .yes-select-control::after { content: ""; position: absolute; left: 16px; top: 50%; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-60%) rotate(45deg); z-index: 2; opacity: 0; }
      .yes-select-control.has-yes::before { background: var(--adm-green); }
      .yes-select-control.has-yes::after { opacity: 1; }
      .yes-select-control select { padding-left: 40px; font-weight: 800; }
      .details-date-control { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; }
      .details-date-button { border: 1px solid #d7dee8; border-radius: 4px; background: #fff; color: var(--adm-blue); display: grid; place-items: center; }
      .details-date-button:disabled { background: #eef2f7; color: #94a3b8; }
      .details-date-button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
      .details-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
      .details-save-btn {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%; margin-top: 14px; padding: 10px;
        background: var(--adm-green); color: #fff;
        border: none; border-radius: 6px;
        font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 900;
        text-transform: uppercase; letter-spacing: .04em;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,132,61,.25);
        transition: background .15s, box-shadow .15s;
      }
      .details-save-btn:hover { background: #006d32; box-shadow: 0 4px 14px rgba(0,132,61,.35); }
      .cargo-detail-link { border: 0; background: transparent; color: var(--adm-blue); font: inherit; font-weight: 900; cursor: pointer; padding: 0; text-decoration: none; }
      .cargo-detail-link:hover, .cargo-detail-link.active { text-decoration: underline; }
      .row-chevron { color: #64748b; font-size: 18px; font-weight: 900; }
      @media (max-width: 1280px) { .summary.six { grid-template-columns: repeat(3, 1fr); } }
      .empty { padding: 42px 24px; text-align: center; color: var(--muted); }
      .history-search { display: grid; grid-template-columns: minmax(260px, 360px) auto auto; gap: 10px; align-items: end; margin: 14px 0 16px; }
      .history-search label { display: grid; gap: 6px; color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 900; text-transform: uppercase; }
      .history-search input { min-height: 38px; border: 1px solid #cfd8e7; border-radius: 4px; padding: 0 12px; color: var(--ink); font: 14px "Open Sans", sans-serif; text-transform: uppercase; }
      .history-summary { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--adm-green); border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); padding: 12px 14px; margin-bottom: 14px; color: var(--adm-blue); font-weight: 800; }
      .history-summary.empty { border-left-color: #cbd5e1; color: var(--muted); font-weight: 600; }
      .history-results { position: relative; display: grid; gap: 10px; padding-left: 18px; }
      .history-results::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: #dbe4f0; }
      .history-event { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); padding: 12px 14px; }
      .history-event::before { content: ""; position: absolute; left: -18px; top: 18px; width: 10px; height: 10px; border-radius: 999px; background: var(--adm-green); box-shadow: 0 0 0 4px #e5f7ee; }
      .history-event-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
      .history-event-title { display: grid; gap: 2px; }
      .history-event-title b { color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 13px; text-transform: uppercase; }
      .history-event-title span { color: #64748b; font-size: 12px; font-weight: 700; }
      .history-user { color: #334155; font-size: 12px; font-weight: 800; }
      .history-user span { color: #64748b; font-weight: 700; }
      .history-count { border: 1px solid #d8e1ee; border-radius: 999px; padding: 4px 9px; color: var(--adm-blue); font-size: 11px; font-weight: 900; text-transform: uppercase; background: #f8fafc; }
      .history-change-list { display: grid; gap: 8px; }
      .history-change-item { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.8fr); gap: 10px; align-items: center; border: 1px solid #e5eaf2; border-radius: 4px; background: #fbfdff; padding: 9px 10px; }
      .history-change-field { color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 900; text-transform: uppercase; }
      .history-change-values { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #64748b; font-size: 12px; }
      .history-value { border-radius: 999px; padding: 4px 9px; font-weight: 800; font-size: 12px; line-height: 1.2; }
      .history-value.old { background: #fee2e2; color: #991b1b; }
      .history-value.new { background: #dcfce7; color: #047857; }
      .history-value.empty { background: #f1f5f9; color: #64748b; }
      .history-arrow { color: #94a3b8; font-weight: 900; }
      .history-nochange { padding: 10px 0 2px; color: var(--muted); font-size: 13px; }
      .update-layout { display: block; width: 100%; }
      .update-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); padding: 12px; width: 100%; }
      .update-card.has-structured .update-paste-box { display: none; }
      .update-preview-card { display: none !important; }
      .update-paste-box { border: 2px dashed rgba(0,48,135,.3); border-radius: 4px; padding: 16px; text-align: center; margin-bottom: 12px; }
      .update-paste-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 4px; background: #e8eef7; color: var(--adm-blue); }
      .update-paste-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
      .update-paste-title { margin: 0 0 12px; color: var(--adm-blue); font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 900; text-transform: uppercase; }
      .update-paste-box textarea { min-height: 168px; margin-bottom: 10px; }
      .update-paste-help { margin: 0; color: #9ca3af; font-size: 12px; }
      .update-status { margin-top: 12px; min-height: 20px; color: var(--adm-green); font-size: 13px; font-weight: 700; }
      #atualizar .wrap { max-width: 100%; padding-left: 18px; padding-right: 18px; }
      #atualizar .update-card .filters { margin-top: 12px; }
      .update-structured { margin-bottom: 12px; width: 100%; }
      .structured-wrap { overflow: auto; max-height: 540px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; width: 100%; }
      .structured-wrap table { min-width: 2780px; table-layout: fixed; font-size: 12px; border-collapse: separate; border-spacing: 0; }
      .structured-wrap th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--adm-blue);
        color: #fff;
        text-align: center;
        padding: 10px 8px;
        min-height: 38px;
        font: 900 10.5px/1.2 Montserrat, sans-serif;
        letter-spacing: .02em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .structured-wrap td { padding: 6px; text-align: center; }
      .structured-wrap input {
        width: 100%;
        height: 30px;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 0 8px;
        font: inherit;
        color: var(--text);
        background: #fff;
        text-align: center;
      }
      .structured-wrap .col-carga { width: 145px; }
      .structured-wrap .col-programacao { width: 126px; }
      .structured-wrap .col-frete { width: 86px; }
      .structured-wrap .col-valor { width: 132px; }
      .structured-wrap .col-peso { width: 112px; }
      .structured-wrap .col-distribuidor { width: 350px; }
      .structured-wrap .col-destino { width: 230px; }
      .structured-wrap .col-classificacao { width: 130px; }
      .structured-wrap .col-empresa { width: 180px; }
      .structured-wrap .col-passagem-detalhe { width: 310px; }
      .structured-wrap .col-status { width: 300px; }
      .structured-wrap .col-nome-cliente { width: 270px; }
      .structured-wrap .col-nome-supervisor { width: 270px; }
      .structured-wrap .col-del { width: 56px; }
      .structured-delete {
        width: 30px;
        height: 30px;
        border: 1px solid #fecaca;
        border-radius: 4px;
        background: #fff5f5;
        color: #ef4444;
        cursor: pointer;
        font-weight: 900;
      }
      .structured-status {
        margin-top: 10px;
        padding: 10px 12px;
        border: 1px solid #a7f3d0;
        border-radius: 4px;
        background: #ecfdf5;
        color: #007a3d;
        font-size: 13px;
        font-weight: 800;
      }
      .mini-table { overflow: auto; max-height: 440px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
      .mini-table table { min-width: 1880px; table-layout: fixed; font-size: 12px; }
      .mini-table th { background: var(--adm-blue); text-align: center; }
      .mini-table th, .mini-table td { white-space: normal; overflow-wrap: anywhere; }
      .mini-table td { text-align: center; vertical-align: middle; }
      .change-new td:first-child { border-left: 4px solid var(--adm-green); }
      .change-updated td:first-child { border-left: 4px solid var(--adm-orange); }

      @media (max-width: 1080px) {
        .summary.four { grid-template-columns: 1fr 1fr; }
        .summary.six { grid-template-columns: 1fr 1fr 1fr; }
        .dash-control-row { align-items: flex-start; flex-direction: column; }
        .dash-control-row .dash-report-actions { width: 100%; justify-content: flex-start; }
        .dash-layout { grid-template-columns: 1fr; }
        .update-layout { grid-template-columns: 1fr; }
        .history-search { grid-template-columns: 1fr; }
        .history-event-head { grid-template-columns: 1fr; }
        .history-change-item { grid-template-columns: 1fr; }
        .caption { display: none; }
        .contract-overview { grid-template-columns: 1fr; }
        .details-panel { position: static; }
      }


      /* ── Modo notebook: compacta o Painel de Contratação sem precisar reduzir o zoom do navegador ── */
      @media (min-width: 769px) and (max-width: 1440px) {
        .top-inner { height: 68px; padding-left: 10px; padding-right: 10px; }
        .adm-logo { height: 34px; }
        .brand strong { font-size: 36px; letter-spacing: -1.6px; }
        .caption { font-size: 11px; }
        .caption small { font-size: 11px; }
        .hero { height: 96px; padding-left: 16px; padding-right: 16px; }
        .hero-inner { gap: 14px; }
        .hero-icon { width: 42px; height: 42px; }
        .hero-icon svg { width: 22px; height: 22px; }
        .hero h1 { font-size: 22px; line-height: 28px; }
        .hero p { font-size: 13px; }
        .wrap, #dashboard .wrap { padding: 18px 10px 42px; }
        .section-title { font-size: 15px; margin-bottom: 6px; }
        .hint { font-size: 13px; margin-bottom: 12px; }

        .contract-overview {
          grid-template-columns: minmax(0, 1fr) 300px;
          gap: 10px;
          margin-bottom: 10px;
        }
        .contract-main-area .summary { gap: 8px; margin-bottom: 10px; }
        .contract-summary { grid-template-columns: repeat(4, minmax(128px, 1fr)); gap: 8px; }
        .contract-metric {
          min-height: 66px;
          grid-template-columns: 36px minmax(0, 1fr);
          gap: 9px;
          padding: 9px 11px;
          border-radius: 4px;
        }
        .contract-metric .metric-icon { width: 36px; height: 36px; }
        .contract-metric .metric-icon svg { width: 18px; height: 18px; }
        .contract-metric b { font-size: 17px; }
        .contract-metric b.status-text { font-size: 13px; }
        .contract-metric small { font-size: 8.5px; }
        .contract-metric .metric-sub { font-size: 10px; line-height: 1.15; }

        .contract-main-area .unit-tabs { margin-bottom: 9px; }
        .unit-tabs {
          justify-content: center;
          gap: 5px;
          padding-bottom: 3px;
          margin-bottom: 10px;
        }
        .unit-tab {
          min-height: 32px;
          padding: 0 10px;
          font-size: 11px;
          border-radius: 4px;
        }

        .table-top { padding: 9px 12px; gap: 8px; }
        .table-title { font-size: 13px; }
        .table-title-row { gap: 7px; }
        .table-actions { gap: 7px; }
        .btn { min-height: 34px; padding: 0 12px; font-size: 11px; }
        .quick-select, .contract-search { min-height: 34px; font-size: 11px; }

        .contract-table-wrap { max-height: calc(100vh - 410px); overflow: auto; }
        .contract-table { min-width: 1580px; font-size: 11px; }
        .contract-table th,
        .contract-table td { padding: 7px 8px; }
        .contract-group th { padding: 7px 7px 4px; font-size: 9px; }
        .contract-group th span { min-height: 20px; padding: 0 8px; }
        .contract-table thead tr:nth-child(2) th { top: 31px; }
        .contract-status-icon { width: 16px; height: 16px; }
        .contract-status-icon svg { width: 12px; height: 12px; }

        .details-panel {
          top: 10px;
          max-height: none;
          overflow: visible;
          border-radius: 6px;
        }
        .details-head { padding: 10px 40px 9px 12px; }
        .details-head h3 { font-size: 12px; margin-bottom: 6px; }
        .details-title-row { gap: 6px; margin-bottom: 6px; }
        .details-search-toggle,
        .details-edit-icon,
        .details-close { width: 26px; height: 26px; }
        .details-search-toggle svg,
        .details-edit-icon svg { width: 13px; height: 13px; }
        .details-edit-icon { top: 10px; right: 42px; }
        .details-close { top: 10px; right: 10px; }
        .details-id { font-size: 15px; gap: 7px; padding-right: 68px; }
        .details-id-status { min-height: 20px; }
        .contract-status-pill { min-height: 18px; padding: 2px 6px; font-size: 9px; }
        .details-info-block { padding: 9px 12px 8px; }
        .details-tabs { border-bottom-width: 1px; }
        .details-tab-btn { padding: 7px 5px; font-size: 9.5px; gap: 4px; }
        .details-tab-btn svg { width: 12px; height: 12px; }
        .details-body { padding: 10px 12px 12px; }
        .details-section { margin-top: 10px; padding-top: 10px; }
        .details-section-title { font-size: 10px; margin-bottom: 8px; }
        .details-grid { gap: 7px; }
        .details-row {
          grid-template-columns: 16px 82px minmax(0, 1fr);
          gap: 6px;
          font-size: 10px;
        }
        .details-row svg { width: 13px; height: 13px; }
        .details-row b { font-size: 10.5px; }
        .details-field { font-size: 10.5px; gap: 4px; }
        .details-field input,
        .details-field select,
        .details-field textarea {
          min-height: 30px;
          padding: 6px 8px;
          font-size: 11px;
        }
        .details-field textarea { min-height: 62px; }
        .yes-select-control select {
          padding-left: 44px !important;
          text-indent: 0 !important;
          white-space: nowrap;
        }
        .yes-select-control::before { left: 12px; }
        .yes-select-control::after { left: 18px; }
        .details-passage-fields { gap: 7px; padding: 8px; }
        .details-check { min-height: 30px; font-size: 11px; }
        .details-check input { width: 16px; height: 16px; }
        .details-actions { gap: 8px; margin-top: 10px; }
        .details-save-btn { margin-top: 10px; padding: 8px; font-size: 11px; }
      }

      /* ── Mobile nav overlay ── */
      @media (max-width: 768px) {
        /* Nav overlay */
        .shell { grid-template-columns: 1fr !important; position: relative; }
        .side {
          position: fixed !important;
          top: 0; left: 0; bottom: 0;
          width: 240px;
          z-index: 1000;
          transform: translateX(-100%);
          transition: transform .25s ease;
          border-right: 1px solid rgba(255,255,255,.1) !important;
          border-bottom: none !important;
          overflow-y: auto;
        }
        .shell.mobile-nav-open .side { transform: translateX(0); }
        .mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
        .shell.mobile-nav-open .mobile-nav-overlay { display: block; }
        .main { grid-column: 1; grid-row: 1; padding-top: 52px; }
        .mobile-topbar { position: fixed; top: 0; left: 0; right: 0; height: 48px; background: var(--adm-blue); display: flex; align-items: center; gap: 10px; padding: 0 12px; z-index: 998; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
        .mobile-topbar-logo { height: 24px; filter: brightness(0) invert(1); }
        .mobile-menu-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; flex: 0 0 36px; }
        .mobile-menu-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .mobile-page-title { color: #fff; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; flex: 1; }

        /* Navigation */
        .side { padding: 8px 0 !important; }
        .side-collapse-btn { display: none !important; }
        .nav-logo { padding: 8px 12px 10px; }
        .nav-logo img { height: 28px; }
        .nav-item { padding: 8px 12px; font-size: 12px; }
        .nav-item svg { width: 16px; height: 16px; }
        .nav-section { padding: 8px 12px 4px; font-size: 9px; }

        /* Unit tabs — wrap to new lines instead of scrolling sideways */
        .unit-tabs { flex-wrap: wrap !important; min-width: 0 !important; overflow-x: visible !important; justify-content: center !important; }
        .unit-tabs-wrap { overflow-x: visible !important; }
        .unit-tab, .unit-tab-btn { font-size: 11px !important; padding: 5px 10px !important; white-space: nowrap; }
        .contract-main-area .unit-tabs { flex-wrap: wrap !important; min-width: 0 !important; }

        /* Dash layout */
        .dash-layout { gap: 10px; }
        .dash-card { padding: 10px; }
        .dash-section-note { font-size: 10px; }

        /* Insights */
        .dash-insights-grid { grid-template-columns: 1fr !important; gap: 8px; }
        .insight-card { padding: 10px 12px; }
        .insight-label { font-size: 9px; }
        .insight-title { font-size: 15px; }
        .insight-sub { font-size: 10px; }

        /* Ranking */
        .dash-unit-row { grid-template-columns: 28px 1fr 52px 52px 90px 72px !important; font-size: 10px; gap: 6px; padding: 7px 8px; }
        .dash-table-head { grid-template-columns: 28px 1fr 52px 52px 90px 72px !important; font-size: 9px; gap: 6px; padding: 5px 8px; }
        .rank-badge { width: 20px; height: 20px; font-size: 9px; }
        .unit-name-cell { font-size: 11px; }
        .unit-status-label { font-size: 8px; }
        .dash-progress { height: 5px; }

        /* Typology */
        .typology-row { grid-template-columns: 1fr 80px 60px 36px !important; font-size: 10px; padding: 7px 8px; gap: 6px; }
        .typology-head { grid-template-columns: 1fr 80px 60px 36px !important; font-size: 9px; padding: 5px 8px; gap: 6px; }
        .typology-icon { display: none; }

        /* Operational blocks */
        .operational-grid { grid-template-columns: 1fr !important; gap: 12px; }
        .operational-block { padding: 10px; }
        .operational-head { flex-wrap: wrap; gap: 6px; }
        .operational-title { min-width: 0; }
        .operational-actions { flex-wrap: wrap; gap: 6px; width: 100%; justify-content: flex-start; }
        .passages-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .passages-head, .passages-row { min-width: 520px; font-size: 10px; }
        .passages-mini-card { padding: 8px 10px; }

        /* Contratação table */
        .contract-overview { gap: 10px; }
        .table-top { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
        .table-title { font-size: 12px; }
        .table-title-row { flex-wrap: wrap; gap: 6px; }
        .unit-tabs-row { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
        .contract-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .contract-table { min-width: 700px; font-size: 11px; }
        .contract-table th, .contract-table td { padding: 7px 8px; }

        /* Details panel */
        .details-panel { position: static !important; height: auto !important; }
        .details-head { padding: 10px 44px 10px 10px; }
        .details-id { font-size: 14px; }
        .details-info-block { padding: 10px 10px 8px; }
        .details-row { font-size: 10px; gap: 6px; }
        .details-body { padding: 10px 10px 12px; }
        .details-field input, .details-field select, .details-field textarea { min-height: 30px; font-size: 11px; }

        /* Dropdowns */
        .contr-type-filter, .dash-type-filter { position: static; }
        .contr-type-dropdown, .dash-type-dropdown { position: fixed; left: 10px; right: 10px; width: auto; z-index: 9999; }
        .passage-unit-dropdown { position: fixed; left: 10px; right: 10px; width: auto; z-index: 9999; }

        /* Modal */
        .dash-modal { padding: 10px; }
        .dash-modal-inner { padding: 12px; border-radius: 6px; max-height: 95vh; overflow-y: auto; }
        .dash-modal-actions { gap: 6px; }

        /* Detail summary */
        .detail-summary { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .dash-unit-row { min-width: 600px; }
      }

      @media (max-width: 480px) {
        .summary { grid-template-columns: 1fr !important; }
        .summary.six { grid-template-columns: 1fr !important; }
        .metric-card { flex-direction: row; align-items: center; gap: 10px; }
        .dash-insights-grid { grid-template-columns: 1fr !important; }
        .unit-tabs { gap: 3px; }
        .unit-tab-btn { padding: 5px 8px; font-size: 9px; }
        .top-title { font-size: 13px; }
        .main { padding: 8px; }
        .dash-card { padding: 8px; }
        .table-top { padding: 6px 8px; }
        .details-id { font-size: 13px; }
        .details-tab-btn { font-size: 10px; padding: 7px 4px; gap: 3px; }
        .details-tab-btn svg { display: none; }
        .operational-actions .btn.btn-outline.btn-icon span { display: none; }
        .export-image-btn { min-width: 30px; min-height: 30px; padding: 0 6px; }
        .history-change-item { grid-template-columns: 1fr; }
      }




      /* Ajuste notebook: compactação do bloco Passagem em carteira - Detalhamento */
      @media (max-width: 1400px) and (min-width: 761px) {
        #carteiraDetailPanel {
          padding: 10px !important;
        }
        #carteiraDetailPanel .wallet-panel-head {
          margin-bottom: 8px !important;
        }
        #carteiraDetailPanel .wallet-panel-title {
          font-size: 12px !important;
        }
        #carteiraDetailPanel .wallet-panel-sub {
          font-size: 9.5px !important;
          margin-top: 1px !important;
        }
        #carteiraDetailPanel .wallet-panel-actions .export-image-btn {
          min-width: 30px !important;
          min-height: 30px !important;
          padding: 0 6px !important;
        }
        #carteiraDetailPanel .wallet-queue {
          gap: 5px !important;
        }
        #carteiraDetailPanel .wallet-queue-head,
        #carteiraDetailPanel .wallet-queue-row {
          grid-template-columns: minmax(94px,.72fr) minmax(98px,.62fr) minmax(82px,.44fr) minmax(210px,1.55fr) minmax(76px,.38fr) minmax(132px,.78fr) !important;
          gap: 6px !important;
        }
        #carteiraDetailPanel .wallet-queue-head {
          padding: 6px 8px !important;
          font-size: 8px !important;
        }
        #carteiraDetailPanel .wallet-queue-row {
          padding: 7px 8px !important;
          font-size: 10px !important;
          min-height: 42px !important;
        }
        #carteiraDetailPanel .wallet-queue-row small {
          font-size: 8.3px !important;
          margin-top: 1px !important;
        }
        #carteiraDetailPanel .wallet-pagination {
          gap: 6px !important;
          padding-top: 6px !important;
          font-size: 9.5px !important;
        }
        #carteiraDetailPanel .wallet-page-btn,
        #carteiraDetailPanel .wallet-page-select {
          min-height: 28px !important;
          font-size: 9.5px !important;
          padding: 0 8px !important;
        }
      }



      /* Correção: Detalhamento da carteira sem scroll horizontal dentro do card */
      @media (min-width: 761px) {
        #carteiraDetailPanel .wallet-queue {
          width: 100% !important;
          max-width: 100% !important;
          overflow-x: hidden !important;
        }
        #carteiraDetailPanel .wallet-queue-head,
        #carteiraDetailPanel .wallet-queue-row {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          grid-template-columns: minmax(96px,.82fr) minmax(100px,.72fr) minmax(90px,.58fr) minmax(230px,1.78fr) minmax(78px,.48fr) minmax(150px,1.02fr) !important;
          gap: 7px !important;
        }
        #carteiraDetailPanel .wallet-queue-head span,
        #carteiraDetailPanel .wallet-queue-row span {
          min-width: 0 !important;
        }
        #carteiraDetailPanel .wallet-pagination {
          width: 100% !important;
          max-width: 100% !important;
          overflow: hidden !important;
        }
      }
      @media (max-width: 1400px) and (min-width: 761px) {
        #carteiraDetailPanel .wallet-queue-head,
        #carteiraDetailPanel .wallet-queue-row {
          grid-template-columns: minmax(86px,.78fr) minmax(92px,.66fr) minmax(82px,.50fr) minmax(205px,1.75fr) minmax(72px,.42fr) minmax(132px,.92fr) !important;
          gap: 6px !important;
        }
      }

      /* Ajuste notebook: evita corte dos valores no card Passagens por causa macro */
      @media (max-width: 1400px) and (min-width: 761px) {
        .wallet-donut-wrap {
          grid-template-columns: 146px minmax(0, 1fr) !important;
          gap: 6px !important;
          align-items: center !important;
        }
        .wallet-donut {
          width: 146px !important;
          height: 146px !important;
        }
        .wallet-donut-svg {
          width: 146px !important;
          height: 146px !important;
        }
        .wallet-donut::after {
          width: 94px !important;
          height: 94px !important;
        }
        .wallet-donut-center b {
          font-size: 24px !important;
          line-height: .9 !important;
        }
        .wallet-donut-center small {
          font-size: 8px !important;
        }
        .wallet-legend {
          min-width: 0 !important;
          overflow: hidden !important;
          gap: 7px !important;
        }
        .wallet-legend-row {
          grid-template-columns: 9px minmax(0, 1fr) 88px !important;
          gap: 5px !important;
          font-size: 9.4px !important;
          min-width: 0 !important;
        }
        .wallet-legend-row span:nth-child(2) {
          min-width: 0 !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
          white-space: nowrap !important;
        }
        .wallet-legend-row b {
          width: 88px !important;
          min-width: 88px !important;
          max-width: 88px !important;
          padding-left: 0 !important;
          text-align: right !important;
          font-size: 9.2px !important;
          overflow: visible !important;
          white-space: nowrap !important;
        }
        .wallet-dot {
          width: 9px !important;
          height: 9px !important;
        }
      }
    

      /* Telas maiores: legenda da causa macro com texto e valores em tamanho normal */
      @media (min-width: 1401px) {
        .wallet-donut-wrap {
          grid-template-columns: 176px minmax(304px, 1fr);
          gap: 12px;
        }
        .wallet-legend {
          gap: 8px;
        }
        .wallet-legend-row {
          grid-template-columns: 10px minmax(168px, 1fr) minmax(124px, max-content);
          gap: 7px;
          font-size: 11px;
        }
        .wallet-legend-row b {
          min-width: 124px;
          font-size: 11px;
          text-align: right;
          padding-left: 0;
        }
      }
    

      /* Ajuste fino: manter texto legível e aproximar a barra do valor */
      .wallet-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(132px, 1.15fr) minmax(112px, .92fr) 94px;
        gap: 6px;
      }
      .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(158px, 1.38fr) minmax(100px, .82fr) 94px;
        gap: 6px;
      }
      .wallet-bars.value-with-count .wallet-bar-value {
        grid-template-columns: 70px 18px;
        width: 92px;
        justify-self: start;
        justify-content: start;
        gap: 2px;
      }
      .wallet-value-ton { text-align: right; }
      .wallet-value-count { text-align: right; min-width: 18px; }
      @media (max-width: 1380px) {
        .wallet-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(120px, 1.1fr) minmax(100px, .9fr) 90px;
          gap: 6px;
        }
        .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(146px, 1.32fr) minmax(88px, .8fr) 90px;
          gap: 6px;
        }
        .wallet-bars.value-with-count .wallet-bar-value {
          grid-template-columns: 68px 18px;
          width: 88px;
          font-size: 10px;
        }
      }
      @media (max-width: 1180px) {
        .wallet-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(112px, 1.08fr) minmax(86px, .82fr) 88px;
        }
        .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
          grid-template-columns: minmax(136px, 1.25fr) minmax(78px, .72fr) 88px;
        }
      }

    

      /* Ajuste: trazer os valores de Passagens por causa macro mais para a esquerda */
      @media (min-width: 1201px) {
        .wallet-donut-wrap {
          grid-template-columns: 166px minmax(0, 1fr) !important;
          gap: 6px !important;
          align-items: center !important;
        }
        .wallet-legend {
          width: 100% !important;
          max-width: 100% !important;
          overflow: hidden !important;
        }
        .wallet-legend-row {
          grid-template-columns: 10px minmax(118px, 132px) 108px !important;
          width: auto !important;
          max-width: 100% !important;
          gap: 5px !important;
        }
        .wallet-legend-row span:nth-child(2) {
          min-width: 0 !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
          white-space: nowrap !important;
        }
        .wallet-legend-row b {
          width: 108px !important;
          min-width: 108px !important;
          max-width: 108px !important;
          text-align: left !important;
          padding-left: 0 !important;
          overflow: visible !important;
          white-space: nowrap !important;
          font-size: 10.5px !important;
        }
      }
      @media (min-width: 1401px) {
        .wallet-donut-wrap {
          grid-template-columns: 170px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-legend-row {
          grid-template-columns: 10px minmax(128px, 142px) 112px !important;
          gap: 5px !important;
        }
        .wallet-legend-row b {
          width: 112px !important;
          min-width: 112px !important;
          max-width: 112px !important;
          font-size: 10.8px !important;
        }
      }

    

      /* Correção responsiva: manter valores visíveis sem encurtar causas no card Passagens por causa macro */
      @media (min-width: 761px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 132px minmax(0, 1fr) !important;
          gap: 5px !important;
          align-items: center !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 132px !important;
          height: 132px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 86px !important;
          height: 86px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center b {
          font-size: 22px !important;
          line-height: .9 !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center small {
          font-size: 7.6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 100% !important;
          min-width: 0 !important;
          overflow: visible !important;
          gap: 7px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row {
          grid-template-columns: 9px minmax(112px, 1fr) 102px !important;
          gap: 4px !important;
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          font-size: 9.5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row span:nth-child(2) {
          min-width: 0 !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
          white-space: nowrap !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row b {
          width: 102px !important;
          min-width: 102px !important;
          max-width: 102px !important;
          text-align: left !important;
          padding-left: 0 !important;
          overflow: visible !important;
          white-space: nowrap !important;
          font-size: 9.5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-dot {
          width: 9px !important;
          height: 9px !important;
        }
      }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 170px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row {
          grid-template-columns: 10px minmax(128px, 142px) 112px !important;
          gap: 5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row b {
          width: 112px !important;
          min-width: 112px !important;
          max-width: 112px !important;
          font-size: 10.8px !important;
        }
      }


      /* Ajuste final: Passagens por causa macro com peso e percentual em colunas próprias */
      .wallet-donut-wrap .wallet-legend-row {
        grid-template-columns: 10px minmax(126px, 1fr) minmax(58px, max-content) minmax(42px, max-content) !important;
        gap: 6px !important;
      }
      .wallet-donut-wrap .wallet-legend-ton,
      .wallet-donut-wrap .wallet-legend-pct {
        display: inline-block;
        min-width: 0;
        color: var(--text);
        font-weight: 900;
        white-space: nowrap;
        overflow: visible;
        text-align: right;
        font-size: 10.6px;
      }
      .wallet-donut-wrap .wallet-legend-ton { color: var(--text); }
      .wallet-donut-wrap .wallet-legend-pct { color: var(--text); }

      @media (min-width: 1401px) {
        .wallet-donut-wrap .wallet-legend-row {
          grid-template-columns: 10px minmax(132px, 1fr) 62px 46px !important;
          gap: 6px !important;
        }
        .wallet-donut-wrap .wallet-legend-ton,
        .wallet-donut-wrap .wallet-legend-pct {
          font-size: 10.8px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap .wallet-legend-row {
          grid-template-columns: 9px minmax(96px, 1fr) 54px 38px !important;
          gap: 4px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap .wallet-legend-pct {
          font-size: 9.4px !important;
        }
      }

      @media (max-width: 760px) {
        .wallet-donut-wrap .wallet-legend-row {
          grid-template-columns: 9px minmax(92px, 1fr) 52px 36px !important;
          gap: 4px !important;
        }
        .wallet-donut-wrap .wallet-legend-ton,
        .wallet-donut-wrap .wallet-legend-pct {
          font-size: 9px !important;
        }
      }


      /* Correção final: causa legível + peso e % em colunas próprias */
      .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
        grid-template-columns: 150px minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        gap: 7px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        display: grid !important;
        grid-template-columns: 10px minmax(0, 1fr) 64px 46px !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 10.4px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row .wallet-dot {
        grid-column: 1 !important;
        width: 10px !important;
        height: 10px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        grid-column: 2 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        text-align: left !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
        grid-column: 3 !important;
        justify-self: end !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        overflow: visible !important;
        white-space: nowrap !important;
        text-align: right !important;
        color: var(--text) !important;
        font-size: 10.4px !important;
        font-weight: 900 !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
        grid-column: 4 !important;
        justify-self: end !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        overflow: visible !important;
        white-space: nowrap !important;
        text-align: right !important;
        color: var(--text) !important;
        font-size: 10.4px !important;
        font-weight: 900 !important;
      }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 168px minmax(0, 1fr) !important;
          gap: 8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px minmax(0, 1fr) 68px 48px !important;
          gap: 7px !important;
          font-size: 10.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 10.8px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 124px minmax(0, 1fr) !important;
          gap: 5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 124px !important;
          height: 124px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 80px !important;
          height: 80px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center b {
          font-size: 20px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center small {
          font-size: 7px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(0, 1fr) 54px 38px !important;
          gap: 4px !important;
          font-size: 9.2px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row .wallet-dot {
          width: 9px !important;
          height: 9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 9.2px !important;
        }
      }

      @media (max-width: 760px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 120px minmax(0, 1fr) !important;
          gap: 5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(0, 1fr) 52px 36px !important;
          gap: 4px !important;
          font-size: 9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 9px !important;
        }
      }



      /* Ajuste: manter nomes das causas legíveis no macro, sem quebrar peso e percentual */
      .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
        grid-template-columns: 150px minmax(0, 1fr) !important;
        gap: 6px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        grid-template-columns: 10px minmax(126px, 1fr) 54px 38px !important;
        gap: 5px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
      }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 168px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px minmax(150px, 1fr) 58px 40px !important;
          gap: 6px !important;
          font-size: 10.8px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 122px minmax(0, 1fr) !important;
          gap: 4px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 122px !important;
          height: 122px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 78px !important;
          height: 78px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(120px, 1fr) 48px 34px !important;
          gap: 3px !important;
          font-size: 9.1px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 9.1px !important;
        }
      }

      @media (max-width: 760px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 112px minmax(0, 1fr) !important;
          gap: 4px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(112px, 1fr) 46px 32px !important;
          gap: 3px !important;
          font-size: 8.8px !important;
        }
      }


      /* Ajuste final solicitado: aproximar peso/% da legenda sem cortar nomes */
      .wallet-layout > .wallet-panel:first-child .wallet-legend {
        justify-self: start !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        justify-content: start !important;
      }
      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 168px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 262px !important;
          max-width: 262px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px 142px 58px 40px !important;
          width: 262px !important;
          max-width: 262px !important;
          gap: 4px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          overflow: visible !important;
          text-overflow: clip !important;
          white-space: nowrap !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          text-align: right !important;
          justify-self: end !important;
        }
      }
      @media (min-width: 1201px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 236px !important;
          max-width: 236px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 126px 54px 35px !important;
          width: 236px !important;
          max-width: 236px !important;
          gap: 4px !important;
        }
      }
      @media (min-width: 761px) and (max-width: 1200px) {
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 220px !important;
          max-width: 220px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 118px 50px 31px !important;
          width: 220px !important;
          max-width: 220px !important;
          gap: 4px !important;
        }
      }



      /* Layout estável para Passagens por causa macro: texto e valores em áreas úteis */
      .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
        grid-template-columns: 166px minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: center !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend {
        width: min(100%, 292px) !important;
        max-width: 292px !important;
        min-width: 0 !important;
        justify-self: start !important;
        overflow: visible !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        display: grid !important;
        grid-template-columns: 10px minmax(138px, 1fr) max-content max-content !important;
        column-gap: 7px !important;
        row-gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        text-align: left !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-self: end !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: 10.4px !important;
        font-weight: 900 !important;
        color: var(--text) !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton { min-width: 52px !important; }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct { min-width: 34px !important; }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 168px minmax(0, 1fr) !important;
          gap: 10px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: min(100%, 304px) !important;
          max-width: 304px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px minmax(148px, 1fr) max-content max-content !important;
          column-gap: 8px !important;
          font-size: 10.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 10.8px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1200px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 116px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 116px !important;
          height: 116px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 74px !important;
          height: 74px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center b { font-size: 19px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center small { font-size: 7px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: min(100%, 242px) !important;
          max-width: 242px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(108px, 1fr) max-content max-content !important;
          column-gap: 5px !important;
          font-size: 9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row .wallet-dot {
          width: 9px !important;
          height: 9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton { min-width: 45px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct { min-width: 30px !important; }
      }

      @media (max-width: 760px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 108px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 100% !important;
          max-width: 230px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px minmax(96px, 1fr) max-content max-content !important;
          column-gap: 4px !important;
          font-size: 8.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton,
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          font-size: 8.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton { min-width: 44px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct { min-width: 28px !important; }
      }



      /* Ajuste definitivo: macro com área útil fixa entre texto e valores, sem extrapolar o card */
      .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
        grid-template-columns: 166px max-content !important;
        gap: 10px !important;
        align-items: center !important;
        justify-content: start !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        justify-self: start !important;
        overflow: visible !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        display: grid !important;
        grid-template-columns: 10px 136px 52px 36px !important;
        column-gap: 5px !important;
        row-gap: 0 !important;
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        justify-content: start !important;
        align-items: center !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        min-width: 0 !important;
        max-width: 136px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        text-align: left !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        justify-self: end !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        justify-self: end !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: visible !important;
      }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 168px max-content !important;
          gap: 10px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 260px !important;
          max-width: 260px !important;
          min-width: 260px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px 144px 54px 38px !important;
          column-gap: 5px !important;
          width: 260px !important;
          max-width: 260px !important;
          min-width: 260px !important;
          font-size: 10.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 144px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 54px !important;
          min-width: 54px !important;
          max-width: 54px !important;
          font-size: 10.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 38px !important;
          min-width: 38px !important;
          max-width: 38px !important;
          font-size: 10.8px !important;
        }
      }

      @media (min-width: 1201px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 124px max-content !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 228px !important;
          max-width: 228px !important;
          min-width: 228px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 118px 48px 32px !important;
          column-gap: 5px !important;
          width: 228px !important;
          max-width: 228px !important;
          min-width: 228px !important;
          font-size: 9.2px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 118px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 48px !important;
          min-width: 48px !important;
          max-width: 48px !important;
          font-size: 9.2px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 32px !important;
          min-width: 32px !important;
          max-width: 32px !important;
          font-size: 9.2px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1200px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 112px max-content !important;
          gap: 5px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 112px !important;
          height: 112px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 72px !important;
          height: 72px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center b {
          font-size: 18px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center small {
          font-size: 6.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: 214px !important;
          max-width: 214px !important;
          min-width: 214px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 110px 46px 29px !important;
          column-gap: 5px !important;
          width: 214px !important;
          max-width: 214px !important;
          min-width: 214px !important;
          font-size: 8.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 110px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 46px !important;
          min-width: 46px !important;
          max-width: 46px !important;
          font-size: 8.8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 29px !important;
          min-width: 29px !important;
          max-width: 29px !important;
          font-size: 8.8px !important;
        }
      }



      /* Ajuste solicitado: macro com áreas úteis mais equilibradas e filtros do Dash menos coloridos */
      .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
        grid-template-columns: 168px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: center !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend {
        width: min(100%, 276px) !important;
        max-width: 276px !important;
        min-width: 0 !important;
        justify-self: start !important;
        overflow: visible !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        display: grid !important;
        grid-template-columns: 10px 126px 58px 38px !important;
        column-gap: 5px !important;
        width: 242px !important;
        max-width: 242px !important;
        min-width: 242px !important;
        align-items: center !important;
        justify-content: start !important;
        font-size: 10.6px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        max-width: 126px !important;
        min-width: 126px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        text-align: left !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        text-align: right !important;
        justify-self: end !important;
        white-space: nowrap !important;
        overflow: visible !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        text-align: right !important;
        justify-self: end !important;
        white-space: nowrap !important;
        overflow: visible !important;
      }

      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 172px minmax(0, 1fr) !important;
          gap: 14px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend {
          width: min(100%, 292px) !important;
          max-width: 292px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px 136px 62px 40px !important;
          column-gap: 6px !important;
          width: 260px !important;
          max-width: 260px !important;
          min-width: 260px !important;
          font-size: 10.9px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 136px !important;
          min-width: 136px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 62px !important;
          min-width: 62px !important;
          max-width: 62px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 40px !important;
          min-width: 40px !important;
          max-width: 40px !important;
        }
      }

      @media (min-width: 1201px) and (max-width: 1400px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 124px minmax(0, 1fr) !important;
          gap: 8px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 116px 52px 34px !important;
          column-gap: 4px !important;
          width: 225px !important;
          max-width: 225px !important;
          min-width: 225px !important;
          font-size: 9.2px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 116px !important;
          min-width: 116px !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 52px !important;
          min-width: 52px !important;
          max-width: 52px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 34px !important;
          min-width: 34px !important;
          max-width: 34px !important;
        }
      }

      @media (min-width: 761px) and (max-width: 1200px) {
        .wallet-layout > .wallet-panel:first-child .wallet-donut-wrap {
          grid-template-columns: 108px minmax(0, 1fr) !important;
          gap: 6px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut,
        .wallet-layout > .wallet-panel:first-child .wallet-donut-svg {
          width: 108px !important;
          height: 108px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut::after {
          width: 70px !important;
          height: 70px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center b { font-size: 18px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-donut-center small { font-size: 6.8px !important; }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 104px 48px 30px !important;
          column-gap: 4px !important;
          width: 207px !important;
          max-width: 207px !important;
          min-width: 207px !important;
          font-size: 8.7px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 104px !important;
          min-width: 104px !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 48px !important;
          min-width: 48px !important;
          max-width: 48px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 30px !important;
          min-width: 30px !important;
          max-width: 30px !important;
        }
      }

      /* Dash de Cargas: filtros no padrão limpo dos filtros de Passagens */
      #dashboard .dash-type-trigger {
        min-height: 38px !important;
        gap: 7px !important;
        border: 1.5px solid #c5d4ec !important;
        border-radius: 6px !important;
        background: #fff !important;
        color: var(--adm-blue) !important;
        padding: 0 10px !important;
        box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
      }
      #dashboard .dash-type-trigger:hover,
      #dashboard .dash-type-trigger.open {
        border-color: var(--adm-blue) !important;
        background: #f0f5ff !important;
        box-shadow: 0 0 0 2px rgba(0,48,135,.08) !important;
      }
      #dashboard .dash-type-trigger-icon,
      #dashboard .dash-inc-trigger-icon,
      #dashboard .dash-unit-trigger-icon {
        width: 16px !important;
        height: 16px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--adm-blue) !important;
        box-shadow: none !important;
      }
      #dashboard .dash-type-trigger-icon svg {
        width: 15px !important;
        height: 15px !important;
      }
      #dashboard .dash-type-trigger-label {
        color: var(--adm-blue) !important;
        font-size: 12px !important;
        font-weight: 950 !important;
      }
      #dashboard .dash-type-trigger-badge,
      #dashboard .dash-inc-trigger-badge,
      #dashboard .dash-unit-trigger-badge {
        min-width: 18px !important;
        height: 18px !important;
        border: 1px solid #c5d4ec !important;
        background: #eef5ff !important;
        color: var(--adm-blue) !important;
        font-size: 10px !important;
        box-shadow: none !important;
      }
      #dashboard .dash-type-trigger-caret {
        color: var(--adm-blue) !important;
        opacity: .56 !important;
      }



      /* Ajuste final: Passagens por causa macro - valores mais próximos do texto sem quebrar leitura */
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
        grid-template-columns: 10px 116px 52px 34px !important;
        column-gap: 4px !important;
        width: 224px !important;
        max-width: 224px !important;
        min-width: 224px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
        max-width: 116px !important;
        min-width: 116px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
      }
      .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
      }
      @media (min-width: 1401px) {
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 10px 124px 54px 36px !important;
          column-gap: 4px !important;
          width: 236px !important;
          max-width: 236px !important;
          min-width: 236px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 124px !important;
          min-width: 124px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 54px !important;
          min-width: 54px !important;
          max-width: 54px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 36px !important;
          min-width: 36px !important;
          max-width: 36px !important;
        }
      }
      @media (min-width: 761px) and (max-width: 1200px) {
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row.wallet-legend-button {
          grid-template-columns: 9px 104px 46px 30px !important;
          column-gap: 3px !important;
          width: 201px !important;
          max-width: 201px !important;
          min-width: 201px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-row > span:not(.wallet-legend-ton):not(.wallet-legend-pct) {
          max-width: 104px !important;
          min-width: 104px !important;
          overflow: visible !important;
          text-overflow: clip !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-ton {
          width: 46px !important;
          min-width: 46px !important;
          max-width: 46px !important;
        }
        .wallet-layout > .wallet-panel:first-child .wallet-legend-pct {
          width: 30px !important;
          min-width: 30px !important;
          max-width: 30px !important;
        }
      }



      /* Atualizar Base: alinhamento igual aos demais módulos */
      #atualizar .wrap {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 14px;
        padding-right: 14px;
      }
      #atualizar .update-layout {
        max-width: 100%;
        margin: 0;
      }
      #atualizar .update-card {
        width: 100%;
      }
      #atualizar .update-card.has-structured {
        padding: 14px;
      }
      #atualizar .update-summary {
        width: 100%;
      }
      #atualizar .structured-wrap {
        width: 100%;
      }
    

      /* Export Passagens em Carteira: manter dados visíveis e ocupar melhor a área útil */
      body.exporting-image #dashPortfolioCard .wallet-bar-button {
        display: block !important;
        width: 100% !important;
        color: var(--adm-blue) !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        text-decoration: none !important;
        font: inherit !important;
        font-weight: 950 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-legend-button {
        display: grid !important;
        background: transparent !important;
        border: 0 !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-day {
        display: grid !important;
        grid-template-rows: 18px 96px 16px !important;
        align-items: end !important;
        justify-items: center !important;
        gap: 4px !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        color: var(--adm-blue) !important;
        font-family: Montserrat, Arial, sans-serif !important;
        font-size: 10px !important;
        font-weight: 900 !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-day b,
      body.exporting-image #dashPortfolioCard .wallet-day small {
        display: block !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-day-bar {
        display: block !important;
        width: 28px !important;
        border-radius: 7px 7px 2px 2px !important;
        background: linear-gradient(180deg, #2f8df6, var(--adm-blue)) !important;
        min-height: 5px !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-bars,
      body.exporting-image #dashPortfolioCard .wallet-bar-row {
        width: 100% !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(132px, 1.1fr) minmax(170px, 1.55fr) 94px !important;
        gap: 8px !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-bars.motivos-short-bars.value-with-count .wallet-bar-row {
        grid-template-columns: minmax(170px, 1.35fr) minmax(170px, 1.45fr) 98px !important;
        gap: 8px !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-bar-track {
        width: 100% !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-bar-value {
        justify-self: stretch !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-value-ton {
        text-align: right !important;
      }
      body.exporting-image #dashPortfolioCard .wallet-daily {
        min-height: 140px !important;
        display: flex !important;
        align-items: end !important;
        gap: 8px !important;
      }


      /* ── Painel de Contratação | cabeçalho legível e filtros discretos ── */
      .contract-table {
        min-width: 2510px;
      }
      .contract-table th {
        padding: 13px 8px;
        font-size: 11px;
        letter-spacing: .01em;
      }
      .contract-table .th-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
      }
      .contract-table .th-content > span {
        flex: 0 0 auto;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
      }
      .contract-table .filter-btn {
        position: relative;
        flex: 0 0 16px;
        width: 16px;
        height: 22px;
        padding: 0;
        border: 0;
        border-radius: 3px;
        background: transparent;
        color: #94a3b8;
        opacity: .68;
        box-shadow: none;
        transition: background .14s ease, color .14s ease, opacity .14s ease;
      }
      .contract-table .filter-btn:hover,
      .contract-table .filter-btn:focus-visible {
        background: #f1f5f9;
        color: var(--adm-blue);
        opacity: 1;
        outline: none;
      }
      .contract-table .filter-btn.active {
        background: #eef5ff;
        color: var(--adm-blue);
        opacity: 1;
        box-shadow: inset 0 0 0 1px rgba(0,48,135,.10);
      }
      .contract-table .filter-btn.active::after {
        content: "";
        position: absolute;
        right: 1px;
        top: 2px;
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: var(--adm-green);
      }
      .contract-table .filter-btn svg {
        width: 12px;
        height: 14px;
        stroke-width: 1.8;
      }

      /* Larguras reservadas para que nenhum título do cabeçalho seja cortado. */
      .contract-table th.col-carga { width: 200px; }
      .contract-table th.col-programacao { width: 140px; }
      .contract-table th.col-valor { width: 135px; }
      .contract-table th.col-peso { width: 100px; }
      .contract-table th.col-distribuidor { width: 240px; }
      .contract-table th.col-destino { width: 210px; }
      .contract-table th.col-data { width: 170px; }
      .contract-table th.col-envio { width: 210px; }
      .contract-table th.col-cif { width: 155px; }
      .contract-table th.col-obs { width: 240px; }
      .contract-table th.col-placa { width: 155px; }
      .contract-table th.col-transportadora { width: 230px; }
      .contract-table th.col-complemento { width: 145px; }
      .contract-table th.col-chegada { width: 180px; }

      @media (min-width: 769px) and (max-width: 1440px) {
        .contract-table {
          min-width: 2440px;
          font-size: 11px;
        }
        .contract-table th {
          padding: 11px 7px;
          font-size: 10px;
        }
        .contract-table .th-content { gap: 4px; }
        .contract-table .filter-btn { flex-basis: 15px; width: 15px; }
      }

      /* ── Painel de Contratação | coluna CARGAS mais compacta ── */
      .contract-table th.col-carga {
        width: 160px;
      }
      .contract-table .cargo-with-status {
        gap: 6px;
        padding-left: 0;
        padding-right: 0;
      }
      .contract-table .row-edit-btn.inline {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
      }
      .contract-table .row-edit-btn.inline svg {
        width: 15px;
        height: 15px;
      }
