:root {
  --navy: #071f3a;
  --navy-2: #0b2c4d;
  --green: #13b76f;
  --green-dark: #0b8a54;
  --soft: #f3f8f6;
  --line: #dbe7e2;
  --muted: #6c7d8d;
  --danger: #b64233;
  --blue: #2d72d9;
  --amber: #f5a623;
  --shadow: 0 20px 60px rgba(8,35,63,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f8fb; color: var(--navy); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.unified-wallet-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px; }
.unified-wallet-kpis article { background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 16px; box-shadow:var(--shadow); }
.unified-wallet-kpis span { display:block; color:var(--muted); font-size:12px; font-weight:800; }
.unified-wallet-kpis strong { display:block; margin-top:5px; font-size:25px; }
.unified-wallet-panel { overflow:hidden; }
.unified-wallet-table { min-width:900px; }
.unified-wallet-table th, .unified-wallet-table td { padding:12px 13px; vertical-align:middle; }
.unified-wallet-table td:first-child { min-width:190px; }
.unified-wallet-table tbody tr:nth-child(odd) { background:#f4fbf8; }
.unified-wallet-table tbody tr:nth-child(even) { background:#f3f8fd; }
.unified-wallet-table tbody tr:hover { background:#e8f4ef; }
.unified-wallet-table td small { display:block; color:var(--muted); margin-top:3px; }
.unified-wallet-table .wallet-lead-name,
.unified-wallet-table .wallet-customer-name { color:var(--navy); }
.unified-wallet-table .wallet-lead-kind { color:var(--navy); font-weight:700; text-transform:capitalize; }
.unified-wallet-table .tiny-action { padding:8px 10px; border-radius:10px; font-size:12px; white-space:nowrap; }
.unified-wallet-panel .system-table-wrap { overflow-x:hidden; }
.unified-wallet-table { width:100%; min-width:0; table-layout:fixed; }
.unified-wallet-table th, .unified-wallet-table td { padding:10px 8px; white-space:normal; overflow-wrap:anywhere; }
.unified-wallet-table th:nth-child(1), .unified-wallet-table td:nth-child(1) { width:22%; }
.unified-wallet-table th:nth-child(2), .unified-wallet-table td:nth-child(2) { width:13%; }
.unified-wallet-table th:nth-child(3), .unified-wallet-table td:nth-child(3) { width:17%; }
.unified-wallet-table th:nth-child(4), .unified-wallet-table td:nth-child(4) { width:12%; }
.unified-wallet-table th:nth-child(5), .unified-wallet-table td:nth-child(5) { width:21%; }
.unified-wallet-table th:nth-child(6), .unified-wallet-table td:nth-child(6) { width:15%; }
.unified-wallet-table .wallet-seller-number { width:8%; text-align:center; white-space:nowrap; }
.unified-wallet-table .wallet-seller-number strong { display:inline-flex; min-width:2.1em; justify-content:center; padding:4px 5px; border-radius:7px; background:#e8f7f0; color:var(--navy); font-size:13px; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(1), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(1) { width:22%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(2), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(2) { width:8%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(3), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(3) { width:11%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(4), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(4) { width:16%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(5), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(5) { width:10%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(6), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(6) { width:20%; }
.unified-wallet-table:has(.wallet-seller-number) th:nth-child(7), .unified-wallet-table:has(.wallet-seller-number) td:nth-child(7) { width:13%; }
.unified-wallet-table td:nth-child(3) { overflow:hidden; }
.unified-wallet-table td:nth-child(4) { font-size:13px; line-height:1.25; }
.unified-wallet-table .tiny-action { max-width:100%; white-space:normal; line-height:1.15; }
.whatsapp-shell-note { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:14px 16px; border:1px solid #bdebd7; border-radius:14px; background:#eefaf4; margin-bottom:16px; }
.whatsapp-shell-note span { color:var(--muted); font-size:13px; }
.whatsapp-conversation-list { display:grid; gap:8px; }
.whatsapp-conversation { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.whatsapp-conversation:last-child { border-bottom:0; }
.whatsapp-conversation small { display:block; color:var(--muted); margin-top:4px; }
.pilot-workflow-timeline { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; align-items:start; margin:0 0 18px; padding:14px 8px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.pilot-workflow-step { min-width:0; display:grid; justify-items:center; gap:7px; text-align:center; color:var(--muted); font-size:11px; font-weight:800; }
.pilot-workflow-step b { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#e8edf2; color:var(--navy); }
.pilot-workflow-step:nth-child(-n+3) b { background:var(--green); color:#fff; }
.pilot-workflow-step span { line-height:1.2; }
@media (max-width:900px) { .unified-wallet-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .whatsapp-shell-note, .whatsapp-conversation { grid-template-columns:1fr; display:grid; } }
@media (max-width:1100px) { .pilot-workflow-timeline { overflow-x:auto; grid-template-columns:repeat(8,120px); } }

.login-screen { min-height: 100vh; position: relative; display: grid; place-items: center; overflow: hidden; padding: 46px 24px; color: white; }
.login-bg { position: absolute; inset: 0; background: radial-gradient(circle at 74% 46%, rgba(19,183,111,.18), transparent 24%), linear-gradient(115deg, rgba(4,17,32,.96), rgba(7,31,58,.87)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80') center/cover; }
.login-content { position: relative; width: min(1120px, 100%); display: grid; justify-items: center; gap: 28px; }
.login-brand { text-align: center; display: grid; justify-items: center; gap: 8px; }
.login-brand img { width: min(420px, 82vw); background: rgba(255,255,255,.96); padding: 16px 24px; border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.login-brand p { margin: 10px 0 0; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: rgba(255,255,255,.82); }
.login-brand h1 { margin: 6px 0 0; text-transform: uppercase; letter-spacing: .38em; font-size: 18px; }
.login-brand span { color: rgba(255,255,255,.84); font-size: 18px; }
.login-card { width: min(500px, 100%); background: rgba(255,255,255,.98); color: var(--navy); border-radius: 24px; padding: 34px; box-shadow: 0 30px 90px rgba(0,0,0,.32); display: grid; gap: 16px; }
.login-card h2 { text-align: center; margin: 0; font-size: 26px; }
.login-card p { text-align: center; color: var(--muted); margin: -4px 0 8px; }
.login-card label { font-weight: 800; color: #20364e; }
.login-card input, .workspace input, textarea, select { width: 100%; margin-top: 7px; padding: 14px 14px; border: 1px solid #cddbd6; border-radius: 14px; color: var(--navy); background: white; }
.password-field { position: relative; }
.password-field button { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f1f5f4; cursor: pointer; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted) !important; font-weight: 700 !important; }
.check input { width: auto; margin: 0; }
.link-button { border: 0; background: transparent; color: #2874d0; cursor: pointer; font-weight: 800; }
.primary { border: 0; border-radius: 16px; padding: 16px 22px; background: linear-gradient(135deg, var(--green), #0fb15e); color: white; font-weight: 950; cursor: pointer; }
.full { width: 100%; text-transform: uppercase; letter-spacing: .05em; }
.secondary { border: 1px solid #bdebd7; border-radius: 16px; padding: 16px 22px; background: #e9f7f0; color: #0d8054; font-weight: 950; cursor: pointer; }
.login-note { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.login-note span { height: 1px; background: var(--line); }
.login-card > strong { text-align: center; }
.login-trust { width: min(440px, 100%); margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); justify-content: center; gap: 28px; text-align: center; }
.login-trust div { display: grid; gap: 5px; color: rgba(255,255,255,.9); }
.login-trust b { font-size: 28px; }
.login-trust small { color: rgba(255,255,255,.68); }

.app-screen { min-height: 100vh; display: grid; grid-template-columns: 282px minmax(0, 1fr); }
.sidebar {
  color: white;
  padding: 24px 18px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background:
    linear-gradient(180deg, rgba(5,23,44,.96), rgba(7,31,58,.88) 44%, rgba(5,23,44,.98)),
    linear-gradient(90deg, rgba(5,23,44,.94), rgba(5,23,44,.7)),
    url('/assets/showroom-sidebar.webp') center/cover;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.09);
}
.side-logo { text-align: center; padding: 8px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.side-logo img { width: 190px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.65); border-radius: 18px; padding: 9px 12px; box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.side-logo span { display: block; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: rgba(255,255,255,.68); margin-top: 10px; }
.side-nav { display: grid; gap: 7px; max-height: calc(100vh - 210px); overflow-y: auto; padding-right: 4px; scrollbar-gutter: stable; }
.side-nav p { margin: 10px 10px 6px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; color: rgba(255,255,255,.45); font-weight: 850; }
.nav-item {
  width: 100%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 24px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.nav-item:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.34); color: white; }
.nav-item.active { background: linear-gradient(135deg, rgba(19,183,111,.97), rgba(10,167,89,.92)); border-color: rgba(114,240,181,.62); color: white; box-shadow: 0 16px 34px rgba(19,183,111,.26); }
.nav-item.small { font-size: 14px; }
.side-footer { margin-top: auto; display: grid; gap: 6px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; }
.workspace { min-width: 0; }
.workspace-topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 34px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.global-search { flex: 1; max-width: 620px; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.global-search input { border: 0; margin: 0; padding: 13px 0; outline: 0; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.notification { position: relative; font-size: 22px; }
.notification b { position: absolute; right: -7px; top: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #ec3f3f; color: white; font-size: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 950; }
.user-chip small { display: block; color: var(--muted); }
.view { display: none; padding: 34px; }
.active-view { display: block; }
.welcome-row { display: flex; justify-content: space-between; gap: 22px; align-items: start; margin-bottom: 24px; }
.eyebrow { text-transform: uppercase; color: var(--green); letter-spacing: .22em; font-size: 12px; font-weight: 950; margin: 0 0 7px; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -1.7px; color: var(--navy); }
.welcome-row p:not(.eyebrow), .module-hero p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 860px; }
.date-pill { white-space: nowrap; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.metric-grid article { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.metric-grid span { font-size: 28px; }
.metric-grid strong { display: block; font-size: 34px; margin-top: 10px; }
.metric-grid p { color: var(--muted); margin: 4px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 360px; gap: 22px; align-items: start; }
.panel, .card { background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.panel { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.panel h3 { margin: 0; font-size: 21px; }
.panel p { margin: 3px 0 0; color: var(--muted); }
.module-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { border: 1px solid var(--line); background: #fbfdfc; border-radius: 20px; padding: 18px; display: grid; gap: 12px; min-height: 180px; cursor: pointer; transition: .18s ease; }
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #bdebd7; }
.module-card .icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #e9f7f0; color: var(--green-dark); font-size: 22px; }
.module-card h4 { margin: 0; font-size: 17px; }
.module-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.status { width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #eef3f7; color: var(--muted); }
.status.ready { background: #e6f8ef; color: #0d8054; }
.status.next { background: #fff5dd; color: #8a5a04; }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.task-list li { padding-left: 30px; position: relative; color: var(--muted); font-weight: 750; }
.task-list li::before { content: '○'; position: absolute; left: 0; color: #a3b0bc; }
.task-list .done::before { content: '✓'; color: var(--green); }
.task-list .current::before { content: '●'; color: var(--amber); }
.module-hero { margin-bottom: 24px; }
.module-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 24px; align-items: start; }
.form-card, .result-card, .notes { padding: 26px; }
.result-card { position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow: auto; }
.section-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.section-title span { width: 34px; height: 34px; border-radius: 12px; background: var(--green); color: white; font-weight: 950; display: grid; place-items: center; flex: 0 0 auto; }
.section-title h3 { margin: 0; font-size: 21px; }
.section-title p { margin: 4px 0 0; color: var(--muted); }
.compact { margin-top: 28px; }
label { font-weight: 850; color: #18314c; font-size: 14px; }
textarea { min-height: 300px; line-height: 1.45; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; background: #fbfdfc; }
textarea:focus, input:focus, select:focus { outline: 3px solid rgba(20,184,121,.16); border-color: var(--green); }
.two, .costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.costs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.cost-editor { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fbfdfc; }
.cost-editor summary { cursor: pointer; font-weight: 950; color: #0d8054; }
.missing, .warning { border: 1px solid #f0c7bd; background: #fff5f2; color: var(--danger); border-radius: 18px; padding: 14px 16px; margin: 0 0 18px; font-weight: 800; }
.muted-box { color: var(--muted); background: #f7faf9; border: 1px dashed #cddbd6; border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.vehicle-summary strong { color: var(--navy); font-size: 18px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; font-size: 13px; }
.range-box { border: 1px solid #bdebd7; background: #eefaf4; border-radius: 20px; padding: 18px; margin-bottom: 16px; display: grid; gap: 6px; }
.range-box span, .range-box small { color: #0d8054; font-weight: 800; }
.range-box strong { font-size: 24px; color: var(--navy); }
.result-block { border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-bottom: 16px; background: #fbfdfc; }
.result-block h3 { margin: 0 0 12px; font-size: 18px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #dce7e3; }
.row span:first-child { color: var(--muted); }
.recommended { background: #eefaf4; border-color: #bdebd7; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 950; background: #dff7eb; color: #0d8054; margin-bottom: 10px; }
.calc-box { margin-top: 16px; border: 1px solid #dce7e3; border-radius: 18px; overflow: hidden; background: white; }
.calc-box h4 { margin: 0; padding: 13px 15px; background: #f4faf7; border-bottom: 1px solid #dce7e3; }
.calc-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 15px; border-bottom: 1px solid #edf3f1; }
.calc-line:last-child { border-bottom: 0; }
.calc-line span { color: var(--muted); }
.calc-line strong { color: var(--navy); }
.muted-line { background: #fbfdfc; font-weight: 950; }
.total-line { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--navy); color: white; }
.total-line strong { font-size: 24px; }
.placeholder-card { max-width: 860px; background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 34px; }
.placeholder-card .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #e9f7f0; color: var(--green-dark); font-size: 28px; margin-bottom: 18px; }
.placeholder-card h2 { font-size: 36px; }
.placeholder-card p { color: var(--muted); line-height: 1.6; }
.placeholder-card ul { color: var(--muted); line-height: 1.8; }
@media (max-width: 1180px) {
  .app-screen { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .module-grid { grid-template-columns: 1fr; }
  .result-card { position: static; max-height: none; }
  .module-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .login-card { padding: 24px; }
  .login-trust, .metric-grid, .module-cards, .two, .costs, .button-row, .summary-grid { grid-template-columns: 1fr; }
  .workspace-topbar { padding: 14px 18px; height: auto; align-items: stretch; flex-direction: column; }
  .view { padding: 22px; }
  .welcome-row { flex-direction: column; }
  .side-nav { grid-template-columns: 1fr; }
}
.simulator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 24px; align-items: start; }
.simulator-form .wide { grid-column: 1 / -1; display: block; }
.hint-text { display: block; color: var(--muted); line-height: 1.45; margin-top: 6px; font-size: 13px; font-weight: 650; }
.checkline { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #18314c; font-weight: 850; }
.checkline input { width: auto; margin: 0; }
.finance-empty { color: var(--muted); background: #f7faf9; border: 1px dashed #cddbd6; border-radius: 18px; padding: 18px; }
.finance-metrics-system { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.finance-metrics-system div { border: 1px solid var(--line); border-radius: 18px; padding: 15px; background: #fbfdfc; }
.finance-metrics-system small { display: block; color: var(--muted); font-weight: 800; margin-bottom: 7px; }
.finance-metrics-system strong { font-size: 20px; color: var(--navy); }
.finance-detail-box { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.finance-detail-box div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #edf3f1; }
.finance-detail-box div:last-child { border-bottom: 0; }
.finance-detail-box span { color: var(--muted); }
.copy-head-system { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 12px 0; }
.copy-head-system h3 { margin: 0; }
.simulation-copy-system { min-height: 330px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; }
@media (max-width: 1180px) { .simulator-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .finance-metrics-system { grid-template-columns: 1fr; } .finance-detail-box div { flex-direction: column; gap: 4px; } }

.login-error { min-height: 1.4rem; margin: 0.25rem 0 0.8rem; color: #b91c1c; font-weight: 800; text-align: center; }


/* Refinamento visual do dashboard interno */
.workspace { background: #f4f7fb; }
.sidebar { background: linear-gradient(180deg, #06172b 0%, #08223d 58%, #041121 100%); box-shadow: 18px 0 45px rgba(4,17,32,.12); }
.side-logo img { background: rgba(255,255,255,.98); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.workspace-topbar { box-shadow: 0 10px 30px rgba(7,31,58,.04); }
.welcome-row { background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); align-items: center; }
.welcome-row h2 { font-size: clamp(30px, 3.2vw, 44px); }
.metric-grid article { min-height: 136px; display: grid; align-content: center; border: 0; box-shadow: 0 18px 42px rgba(7,31,58,.08); }
.metric-grid article:nth-child(1) { background: linear-gradient(135deg, #ffffff, #effdf6); }
.metric-grid article:nth-child(2) { background: linear-gradient(135deg, #ffffff, #f4f8ff); }
.metric-grid article:nth-child(3) { background: linear-gradient(135deg, #ffffff, #fff8eb); }
.metric-grid article:nth-child(4) { background: linear-gradient(135deg, #ffffff, #eefaf4); }
.panel { border: 0; box-shadow: 0 22px 55px rgba(7,31,58,.08); }
.command-center { padding: 26px; }
.section-kicker { display: inline-flex; color: var(--green-dark); background: #e8f8f0; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.compact-head { display: block; }
.module-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-card { appearance: none; width: 100%; text-align: left; border: 1px solid #e4eee9; background: linear-gradient(145deg, #ffffff 0%, #fbfdfc 100%); border-radius: 22px; padding: 20px; display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 16px; min-height: 168px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; color: var(--navy); }
.module-card:hover, .module-card:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(7,31,58,.12); border-color: #aee6ce; outline: none; }
.module-card .icon { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, #e8f8f0, #d6f5e6); color: var(--green-dark); display: grid; place-items: center; font-size: 26px; }
.module-copy { display: grid; gap: 6px; }
.module-copy strong { font-size: 19px; line-height: 1.15; }
.module-copy small { color: var(--muted); line-height: 1.45; font-weight: 650; }
.module-card .status { grid-column: 2; align-self: end; }
.day-panel { display: grid; gap: 22px; }
.mini-banner { margin-top: 6px; border-radius: 22px; padding: 20px; color: white; background: radial-gradient(circle at right, rgba(19,183,111,.3), transparent 35%), linear-gradient(135deg, #061b31, #0b2c4d); min-height: 150px; display: grid; align-content: end; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mini-banner strong { font-size: 20px; }
.mini-banner span { color: rgba(255,255,255,.72); }
.placeholder-card, .form-card, .result-card, .notes { box-shadow: 0 22px 55px rgba(7,31,58,.08); border: 0; }
@media (max-width: 1180px) { .module-cards { grid-template-columns: 1fr; } }


/* Ajuste de entrada e dashboard conforme referência */
.home-hero-card { margin: 0 0 22px; border-radius: 30px; padding: 30px; color: white; background: radial-gradient(circle at 82% 34%, rgba(19,183,111,.35), transparent 28%), linear-gradient(135deg, #06172b 0%, #0b2c4d 100%); box-shadow: 0 26px 60px rgba(7,31,58,.16); display: flex; justify-content: space-between; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.home-hero-card::after { content: ''; position: absolute; right: -30px; bottom: -70px; width: 260px; height: 180px; border-radius: 50%; border: 34px solid rgba(255,255,255,.06); transform: rotate(-12deg); }
.home-hero-card .section-kicker { background: rgba(255,255,255,.12); color: #69e4a8; }
.home-hero-card h3 { margin: 8px 0 8px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -1.2px; }
.home-hero-card p { margin: 0; max-width: 680px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.5; }
.hero-actions { display: grid; gap: 12px; min-width: 220px; position: relative; z-index: 1; }
.hero-actions .secondary { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.2); }
.metric-grid strong { font-size: 26px; line-height: 1.1; }
.module-card { position: relative; }
.module-open { grid-column: 2; color: var(--green-dark); font-weight: 950; font-size: 14px; align-self: end; }
.module-card .status { grid-column: 1 / -1; justify-self: start; }
.day-panel .task-list { background: #f7faf9; border-radius: 18px; padding: 16px; }
@media (max-width: 900px) { .home-hero-card { flex-direction: column; align-items: stretch; } .hero-actions { min-width: 0; } }

/* Correção: manter menu lateral em telas de notebook/desktop */
@media (min-width: 761px) {
  .app-screen {
    grid-template-columns: 282px minmax(0, 1fr) !important;
  }
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding: 22px 18px !important;
  }
  .side-logo {
    padding: 4px 10px 14px !important;
  }
  .side-logo img {
    width: 172px !important;
    border-radius: 16px !important;
    padding: 8px 10px !important;
  }
  .side-logo span {
    font-size: 10px !important;
    margin-top: 8px !important;
  }
  .side-nav {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .side-footer {
    margin-top: auto !important;
  }
  .workspace-topbar {
    flex-direction: row !important;
    align-items: center !important;
    height: 78px !important;
    padding: 0 34px !important;
  }
}


/* Dashboard limpo: saudação + módulos, sem blocos repetidos */
.user-number { margin-top: 10px; color: var(--navy); font-weight: 800; }
.dashboard-grid { grid-template-columns: 1fr !important; }
.command-center { width: 100%; }
.command-center .panel-head { margin-bottom: 20px; }
.module-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .module-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .module-cards { grid-template-columns: 1fr; }
}


/* Menu lateral mais limpo e intuitivo */
.side-nav { gap: 10px !important; }
.nav-item {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  color: rgba(255,255,255,.86) !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-item:hover {
  transform: translateX(3px);
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.24) !important;
}
.nav-item.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #18c86f, #0fb561) !important;
  border-color: rgba(24,200,111,.9) !important;
  box-shadow: 0 16px 34px rgba(15,181,97,.28);
}
.nav-item.small {
  min-height: 48px;
  background: rgba(255,255,255,.08) !important;
}
.nav-section-title {
  margin-top: 18px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.side-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
}


/* Ajuste final Jamile: menu lateral em botões limpos tipo central */
.sidebar { width: 282px; }
.side-logo { padding-bottom: 18px !important; }
.side-logo img { max-width: 180px !important; }
.nav-section-title {
  margin: 18px 10px 10px !important;
  color: rgba(255,255,255,.55) !important;
  font-size: 11px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}
.side-nav { display: grid !important; gap: 10px !important; }
.nav-item {
  width: 100% !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 16px !important;
  border-radius: 17px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.075) !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.08) !important;
}
.nav-item span:first-child, .nav-item::first-letter { font-size: 18px; }
.nav-item:hover {
  transform: translateX(3px) !important;
  background: rgba(255,255,255,.13) !important;
  border-color: rgba(255,255,255,.28) !important;
}
.nav-item.active {
  background: linear-gradient(135deg, #17c86f, #0bab5a) !important;
  border-color: rgba(32,213,125,.95) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 34px rgba(16,190,100,.32) !important;
}
.nav-item.small {
  min-height: 48px !important;
  background: rgba(255,255,255,.06) !important;
}
.side-footer { gap: 10px !important; }
.date-pill { min-width: 290px; text-align: center; }
@media (max-width: 1180px) {
  .date-pill { min-width: 0; }
}


/* Menu lateral com imagem do showroom e botões translúcidos */
.sidebar {
  background:
    linear-gradient(180deg, rgba(5,23,44,.96), rgba(7,31,58,.88) 44%, rgba(5,23,44,.98)),
    linear-gradient(90deg, rgba(5,23,44,.95), rgba(5,23,44,.7)),
    url('/assets/showroom-sidebar.webp') center/cover !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.09) !important;
}
.side-logo {
  border-bottom-color: rgba(255,255,255,.18) !important;
}
.side-logo img {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.2) !important;
}
.nav-item {
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.94) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 28px rgba(0,0,0,.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-item:hover {
  background: rgba(255,255,255,.21) !important;
  border-color: rgba(255,255,255,.4) !important;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(19,183,111,.98), rgba(10,167,89,.94)) !important;
  border-color: rgba(114,240,181,.68) !important;
  box-shadow: 0 18px 38px rgba(19,183,111,.3) !important;
}
.nav-item.small {
  background: rgba(255,255,255,.12) !important;
}
.nav-item.hidden,
.nav-item[hidden],
.nav-item[aria-hidden="true"] {
  display: none !important;
}


/* Relógio Portugal legível e fixo ao fuso Europe/Lisbon */
.welcome-row { align-items: center !important; }
.portugal-clock {
  flex: 0 0 260px;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(7,31,58,.08);
}
.clock-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#todayLabel {
  font-size: 15px;
  line-height: 1.25;
  white-space: normal;
}
#portugalTimeLabel {
  color: var(--navy);
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .03em;
}
@media (max-width: 980px) {
  .portugal-clock { flex: 1 1 100%; width: 100%; }
}


/* Calculadora inicia limpa */
#results:empty { display: none; }


/* Botão limpar da calculadora */
#clearCalculatorBtn { border-color: #dbe6e2; }

/* Ajuste visual do resultado do simulador: evita textos e valores fora dos cartões */
.simulator-result-card { min-width: 0; }
#financeResult { min-width: 0; }
.finance-metrics-system {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.finance-metrics-system div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
  overflow: hidden;
}
.finance-metrics-system small {
  margin-bottom: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.finance-metrics-system strong {
  display: block;
  max-width: 100%;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.12;
  white-space: nowrap;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finance-detail-box div {
  align-items: center;
  min-width: 0;
}
.finance-detail-box span,
.finance-detail-box strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.finance-detail-box strong { text-align: right; }
@media (max-width: 1380px) {
  .finance-metrics-system { grid-template-columns: 1fr; }
  .finance-metrics-system div { text-align: left; align-items: flex-start; }
  .finance-metrics-system strong { white-space: normal; }
}
@media (max-width: 760px) {
  .finance-detail-box strong { text-align: left; }
}

.finance-link-block { display: grid; gap: 10px; }
.finance-link-block label { display: grid; gap: 8px; }
.finance-link-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finance-link-actions .small-action { width: auto; min-height: 46px; padding: 10px 18px; border-radius: 16px; font-size: 14px; }
.finance-link-actions .clear-small { background: #f4faf7; color: #0d8054; border-color: #ccebdd; }
.simulator-submit-row { grid-template-columns: 1fr; }

/* Módulos comerciais em teste: vendas, documentação, financeiro e acessos */
.system-test-module { display: grid; gap: 22px; }
.system-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 2px;
}
.system-page-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -1.2px;
}
.system-page-head span {
  display: block;
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.system-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.system-kpis.finance-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.system-kpis article {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #f5fbf8);
  box-shadow: 0 18px 42px rgba(7,31,58,.08);
}
.system-kpis span {
  color: #33465e;
  font-size: 13px;
  font-weight: 900;
}
.system-kpis strong {
  color: var(--navy);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.finance-workflow {
  display: grid;
  gap: 18px;
}
.finance-form-grid {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(110px, .7fr) minmax(140px, .8fr) auto;
  gap: 12px;
  align-items: end;
}
.finance-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.finance-form-grid input,
.finance-form-grid select,
.finance-field {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cddbd6;
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--navy);
  font-weight: 800;
  padding: 9px 11px;
}
.finance-form-grid input:focus,
.finance-form-grid select:focus,
.finance-field:focus {
  outline: 3px solid rgba(20,184,121,.16);
  border-color: var(--green);
  background: white;
}
.finance-table {
  min-width: 1180px;
}
.finance-table .finance-field {
  min-width: 120px;
}
.finance-table [data-finance-field="detail"],
.finance-table [data-finance-field="category"] {
  min-width: 190px;
}
.danger-action {
  color: #a2252a;
  border-color: #f3c7cd;
  background: #fff4f5;
}
.error-text {
  color: #a2252a !important;
}
.system-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: start;
}
.system-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
  border-radius: 24px;
  padding: 22px;
  background: white;
  box-shadow: 0 22px 55px rgba(7,31,58,.08);
}
.system-panel + .system-panel { margin-top: 0; }
.system-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.system-panel-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.system-panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 220px;
}
.panel-more-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
.sales-submodule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sales-submodule-card {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1.5px solid var(--navy-2);
  border-radius: 18px;
  background: white;
  color: var(--navy);
  text-align: left;
  padding: 22px 24px 22px 28px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(7,31,58,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sales-submodule-card strong {
  font-size: 24px;
  line-height: 1.05;
}
.sales-submodule-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}
.sales-submodule-card:hover,
.sales-submodule-card:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 24px 54px rgba(7,31,58,.12);
  transform: translateY(-2px);
  outline: none;
}
.system-list,
.system-tasks {
  display: grid;
  gap: 10px;
}
.system-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1px solid #e6eee9;
  border-radius: 18px;
  padding: 12px;
  background: #fbfdfc;
}
.system-row strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}
.system-row small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}
.system-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}
.system-dot.amber { background: var(--amber); }
.system-dot.red { background: #ec3f3f; }
.system-dot.blue { background: var(--blue); }
.system-dot.purple { background: #7357d6; }
.tiny-action {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.system-task {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  color: #33465e;
  cursor: pointer;
}
.system-task input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.system-task span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #c6d0db;
  border-radius: 7px;
  color: white;
  font-size: 12px;
}
.system-task.done span {
  border-color: var(--green);
  background: var(--green);
}
.system-task:focus-within span {
  outline: 3px solid rgba(19, 185, 129, 0.18);
  outline-offset: 2px;
}
.system-task p { margin: 0; }
.system-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #146b32;
  background: #e9f8ee;
  font-size: 12px;
  font-weight: 950;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.system-badge.amber { color: #946000; background: #fff4d1; }
.system-badge.orange { color: #b45309; background: #ffedd5; }
.system-badge.red { color: #a2252a; background: #ffe8ea; }
.system-badge.blue { color: #195aa6; background: #e8f2ff; }
.system-badge.purple { color: #573eb0; background: #efeaff; }
.system-badge.green { color: #146b32; background: #e9f8ee; }
.system-badge.neutral { color: var(--navy); background: #f1f5f7; }
.lp-day, .lp-refill { color: var(--navy) !important; }
.system-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #edf3f1;
  border-radius: 18px;
}
.system-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: white;
}
.system-table th,
.system-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf2;
  text-align: left;
  white-space: nowrap;
}
.system-table th {
  color: #5d6d80;
  font-size: 12px;
  text-transform: uppercase;
}
.system-table tr:last-child td { border-bottom: 0; }
.access-table {
  min-width: 1360px;
}
.access-field {
  min-height: 38px;
  border: 1px solid #cddbd6;
  border-radius: 10px;
  background: #fbfdfc;
  color: var(--navy);
  font-weight: 800;
  padding: 8px 10px;
}
.access-field:focus {
  outline: 3px solid rgba(20,184,121,.16);
  border-color: var(--green);
  background: white;
}
.access-color {
  width: 44px !important;
  min-width: 44px;
  padding: 4px;
  vertical-align: middle;
  margin-right: 8px;
}
.access-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.access-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  min-width: 420px;
}
.access-modules label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9e7e2;
  border-radius: 10px;
  background: #fbfdfc;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 10px;
}
.access-modules input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.access-modules small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.access-modules.fixed {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #bfd1ff;
  border-radius: 12px;
  background: #eef4ff;
  color: #0b2c4d;
  padding: 8px 12px;
}
.system-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.system-field {
  display: grid;
  gap: 7px;
  margin: 0;
}
.system-field.wide { grid-column: 1 / -1; }
.system-field textarea {
  min-height: 110px;
  font-family: inherit;
}
.positive { color: #0d8054; font-weight: 950; }
.negative { color: #b64233; font-weight: 950; }
.seller-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.seller-filter.locked {
  border: 1px solid #e6eee9;
  border-radius: 18px;
  padding: 12px;
  background: #fbfdfc;
  color: var(--muted);
  font-weight: 850;
}
.seller-chip,
.seller-summary-card {
  border: 1px solid color-mix(in srgb, var(--seller-color, #64748b) 34%, #dbe7e2);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}
.seller-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}
.seller-chip i,
.seller-badge i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--seller-color, #64748b);
}
.seller-chip.active {
  color: white;
  background: var(--seller-color, var(--green));
  border-color: var(--seller-color, var(--green));
}
.seller-chip.active i { background: white; }
.seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy);
  background: color-mix(in srgb, var(--seller-color, #64748b) 14%, white);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.seller-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.seller-summary-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  text-align: left;
  border-radius: 18px;
}
.seller-summary-card .seller-strip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--seller-color);
}
.seller-summary-card strong { padding-left: 4px; }
.seller-summary-card small,
.seller-summary-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.seller-summary-card b {
  color: var(--seller-color);
  font-size: 15px;
}
.lead-list {
  display: grid;
  gap: 12px;
}
.lead-card {
  display: grid;
  gap: 13px;
  border: 1px solid color-mix(in srgb, var(--seller-color, #64748b) 18%, #e6eee9);
  border-left: 7px solid var(--seller-color, #64748b);
  border-radius: 18px;
  padding: 15px;
  background: #fff;
}
.lead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}
.lead-main strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.lead-main small,
.lead-note {
  color: var(--muted);
  line-height: 1.35;
}
.lead-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.lead-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #e6eee9;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fbfdfc;
  color: #18314c;
  font-size: 13px;
  font-weight: 850;
}
.lead-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.lead-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f1;
}
.lead-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--seller-color, var(--green));
}
.lead-kpis {
  margin-bottom: 18px;
}
.lead-admin-panel {
  margin-bottom: 18px;
}
.lead-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lead-action-box {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #d7e7df;
  border-radius: 16px;
  background: #fbfdfc;
}
.lead-action-box strong {
  color: var(--navy);
  font-size: 15px;
}
.lead-action-box small,
.lead-rules small {
  color: var(--muted);
  line-height: 1.35;
}
.lead-action-box input,
.lead-action-box select,
.lead-distributor-table select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e7df;
  border-radius: 12px;
  background: white;
  color: var(--navy);
  padding: 8px 10px;
  font-weight: 850;
}
.lead-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
}
.lead-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.lead-rule-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.lead-rule-pill button {
  border: 0;
  background: transparent;
  color: #b64233;
  font-weight: 950;
  cursor: pointer;
}
.lead-distributor-table td {
  vertical-align: top;
}
.lead-distributor-table td strong,
.lead-distributor-table td small {
  display: block;
}
.lead-distributor-table td small {
  color: var(--muted);
  margin-top: 4px;
}
.error-text {
  color: #b64233 !important;
}
@media (max-width: 1180px) {
  .system-kpis,
  .system-kpis.finance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-board { grid-template-columns: 1fr; }
  .seller-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .system-page-head { display: grid; align-items: start; }
  .system-kpis,
  .system-kpis.finance-kpis,
  .system-form-grid,
  .finance-form-grid { grid-template-columns: 1fr; }
  .system-row { grid-template-columns: auto minmax(0, 1fr); }
  .system-row > div:last-child { grid-column: 2; }
  .seller-summary-grid,
  .lead-checks { grid-template-columns: 1fr; }
  .lead-main { grid-template-columns: 1fr; }
}

/* Partner inbox */
.notification-wrap { position: relative; }
button.notification { border: 0; background: transparent; cursor: pointer; padding: 8px; }
.notification b[hidden], .notification-panel[hidden] { display: none; }
.notification-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100; width: min(400px, calc(100vw - 32px)); max-height: 65vh; overflow-y: auto; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px #09243b30; }
.notification-panel h3 { margin: 0 0 12px; }
.notification-entry { border-top: 1px solid var(--line); padding: 14px 0; }
.notification-entry.unread { border-left: 3px solid var(--green); padding-left: 12px; }
.notification-entry p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.notification-entry time { display: block; color: var(--muted); font-size: 12px; margin: 6px 0; }
@media(max-width: 600px) { .notification-panel { position: fixed; top: 100px; right: 16px; } }

/* Partner workspace: sales is the entry point; navigation stays visible. */
.app-screen.partner-shell { height: 100dvh; min-height: 0; overflow: hidden; grid-template-columns: 282px minmax(0,1fr); }
.partner-shell .sidebar { position: relative; height: 100dvh; min-height: 0; overflow-y: auto; gap: 18px; }
.partner-shell .workspace { height: 100dvh; min-height: 0; overflow-y: auto; }
.partner-shell .workspace-topbar { position: sticky; top: 0; z-index: 20; background: #fff; }
.partner-shell .side-nav { grid-template-columns: 1fr; }
.partner-shell .portugal-clock { width: 100%; min-width: 0; padding: 14px 10px; border: 1px solid #ffffff24; background: #ffffff0b; box-shadow: none; border-radius: 14px; color: white; text-align: center; }
.partner-shell .portugal-clock .clock-label { color: #65dfa7; font-size: 10px; letter-spacing: .12em; }
.partner-shell .portugal-clock strong { color: #fff; font-size: 13px; }
.partner-shell #portugalTimeLabel { color: #fff; font-size: 30px; }
.partner-shell #nextDayRequest[hidden] { display: none; }
.partner-shell #nextDayRequest { margin-block: 20px; }
@media (max-width: 900px) {
  .app-screen.partner-shell { grid-template-columns: 205px minmax(0,1fr); }
  .partner-shell .sidebar { padding: 18px 12px; }
  .partner-shell .side-logo img { width: 100%; }
  .partner-shell .workspace-topbar { padding: 12px 18px; gap: 12px; height: auto; flex-wrap: wrap; }
  .partner-shell .global-search { min-width: 120px; }
}
@media (max-width: 600px) {
  .app-screen.partner-shell { grid-template-columns: 116px minmax(0,1fr); }
  .partner-shell .sidebar { padding: 10px 6px; gap: 12px; }
  .partner-shell .side-logo { padding: 4px 2px 12px; }
  .partner-shell .side-logo img { padding: 4px; border-radius: 10px; }
  .partner-shell .side-logo span { font-size: 8px; letter-spacing: .08em; }
  .partner-shell .portugal-clock { padding: 10px 4px; }
  .partner-shell .portugal-clock strong { font-size: 10px; }
  .partner-shell #portugalTimeLabel { font-size: 20px; }
  .partner-shell .nav-item { padding: 11px 8px; font-size: 12px; }
  .partner-shell .view { padding: 16px 12px; }
  .partner-shell .workspace-topbar { padding: 10px 12px; }
  .partner-shell .user-chip { gap: 6px; font-size: 12px; }
  .partner-shell .avatar { width: 30px; height: 30px; }
  .partner-shell .sales-submodule-grid { grid-template-columns: 1fr; }
}

.lead-request-slot { display: flex; min-width: 0; }
.partner-shell #nextDayRequest { margin: 0; }
.lead-request-card { width: 100%; height: 100%; text-align: left; }
.lead-request-card.request-confirmed { background: #e8f8ef; border-color: #0b9957; color: #145a36; opacity: 1; }
.lead-request-card.request-closed { background: #f5f7f9; border-color: #b8c4ce; opacity: 1; cursor: default; }
.lead-request-card.request-error { border-color: #bd443c; }
.lead-request-card[aria-busy=true] { background: #edf7f2; cursor: wait; }
[data-save-accesses][aria-busy=true] { cursor: wait; opacity: .7; }

.partner-shell .sales-submodule-grid { grid-auto-rows: 1fr; }

.replenishment-slot { grid-column: 1; display: flex; }
.replenishment-slot .sales-submodule-card { width: 100%; height: 100%; }
.replenishment-card:disabled { opacity: 1; background: #f5f7f9; border-color: #b8c4ce; cursor: not-allowed; }

.partner-registration { margin-bottom: 20px; }
.partner-registration-grid, .partner-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.partner-registration-grid input, .partner-registration-grid select { width: 100%; max-width: 100%; }
.partner-registration-grid label { display: grid; gap: 6px; }
.partner-registration-grid small { color: var(--muted); }
.partner-profile-grid dt { font-weight: 800; color: var(--muted); }
.partner-profile-grid dd { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:700px) { .partner-registration-grid, .partner-profile-grid { grid-template-columns: 1fr; } }

/* Partner registration cards */
#partnerRegistrationList {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;align-items:start}
.partner-registration {margin:0;padding:22px;min-width:0}
.partner-registration summary {display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;min-height:52px}
.partner-registration summary::-webkit-details-marker {display:none}
.partner-number {background:#e4f7ef;color:#07865a;border-radius:12px;padding:12px;font-weight:800}
.partner-open-label {margin-left:auto;font-size:13px;color:#07865a}
.partner-registration[open] {grid-column:1/-1}
.partner-registration[open] summary {border-bottom:1px solid #dce8e5;padding-bottom:18px;margin-bottom:22px}
.registration-section {grid-column:1/-1;color:#07865a;margin:16px 0 0;border-bottom:1px solid #dce8e5;padding-bottom:10px}
@media(max-width:800px){#partnerRegistrationList{grid-template-columns:1fr}.partner-open-label{max-width:70px}}

.lead-order-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px}.lead-order-panel{padding:28px;border:1px solid #bce9da;border-radius:14px;background:#f0fcf6;display:flex;flex-direction:column;gap:24px;color:#09243d}.lead-order-panel.refill{background:#f1f8ff;border-color:#c5e2f7}.lead-order-panel header{display:flex;align-items:center;gap:20px}.order-icon{font-size:48px;color:#07934e;background:#ddf8eb;border-radius:18px;padding:16px 24px}.refill .order-icon{color:#0674e8;background:#deeeff}.order-tag{font-size:13px;font-weight:800;color:#009349;background:#d4fbea;padding:7px 14px;border-radius:9px}.refill .order-tag{color:#0069dc;background:#d9edff}.lead-order-panel h3{font-size:27px;line-height:1.25;margin:18px 0 0}.lead-order-panel p{font-size:19px;line-height:1.5;margin:0;color:#61738c}.order-status{background:#e7eff3;padding:18px;border-radius:12px;line-height:1.5;margin-bottom:20px}.order-status small{display:block;margin-top:10px}.order-confirm{width:100%;margin:12px 0 24px}.lead-order-panel button:disabled{opacity:.55;cursor:not-allowed}.refill-order{background:white;border:1px solid #dce6ef;border-radius:12px;padding:16px;margin:12px 0;display:grid;grid-template-columns:1fr auto;gap:12px}.refill-order small{display:block;color:#64758d;font-size:14px;margin-top:8px}.refill-order button{background:#e0efff;color:#0767cb;border:1px solid #2686e8;border-radius:8px;padding:12px;font-weight:700}.refill-reason{grid-column:1/-1}.lead-order-panel footer{margin-top:auto;border-top:1px solid #d2dfe5;padding-top:22px;font-size:14px;line-height:1.6;color:#61738c}@media(max-width:1050px){.lead-order-panels{grid-template-columns:1fr}}

/* Partner leads workspace: scoped to its content only. */
.my-lead-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.my-lead-kpis article{display:flex;align-items:center;justify-content:space-between;gap:18px;background:white;border-radius:18px;padding:24px}.my-lead-kpis strong{font-size:38px;display:block}.my-lead-kpis p{margin:4px 0;color:#63758d}.my-lead-kpis button{padding:10px 14px}.my-lead-icon{background:#dff8ed;color:#009858;font-size:32px;padding:18px;border-radius:16px}.my-whatsapp{border:1px solid #00a36a;color:#00a36a;background:white;border-radius:10px;font-size:25px;cursor:pointer}.my-lead-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:22px;align-items:start}.my-lead-columns .system-panel{padding:24px;margin:0;min-width:0}.my-lead-columns h3{margin:0 0 16px;font-size:24px}.my-lead-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.my-lead-toolbar button{background:#f1f4f8;border:1px solid transparent;border-radius:9px;padding:10px;color:#51667f;cursor:pointer}.my-lead-toolbar button.active{background:#e0f6ed;border-color:#00a76a;color:#008350}.my-lead-toolbar input{flex:1;min-width:160px;padding:10px;border:1px solid #d8e1e9;border-radius:9px}.my-lead-table{width:100%;border-collapse:collapse;font-size:14px}.my-lead-table th{text-align:left;font-weight:500;color:#64758b;padding:12px 8px}.my-lead-table td{padding:18px 8px;border-bottom:1px solid #edf0f4}.my-lead-table tr.selected{background:#e6f9f0}.my-lead-table button{padding:8px 12px;white-space:nowrap}.my-client-cell{display:flex;gap:12px;align-items:center}.my-client-cell>span{background:#def7ec;color:#00965b;padding:14px;border-radius:50%;font-weight:800}.my-client-cell small{display:block;color:#64758b;margin-top:6px}.my-lead-badge{background:#edf1f6;border:1px solid #dae1e9;padding:6px 10px;border-radius:8px;font-size:12px;white-space:nowrap}.my-status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#98a4b5;margin-right:6px}.my-status-dot.contactado{background:#1675ee}.my-status-dot.em_negociacao{background:#00a466}.my-lead-list footer{margin-top:24px;color:#64758b;font-size:13px;line-height:1.7}.my-detail-head{display:flex;align-items:start;gap:12px}.my-lead-detail p{color:#64758b;line-height:1.5}.my-contact{display:flex;gap:14px;flex-wrap:wrap;overflow-wrap:anywhere;font-size:14px}.my-lead-flags{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;font-size:12px}.my-lead-flags span{padding:9px;background:#f0f3f7;border-radius:8px}.my-lead-flags .my-deadline{color:#d56b10;background:#fff2e6}.my-lead-detail>.primary{width:100%}.my-lead-form label{display:block;font-weight:700;font-size:14px;margin-top:16px}.my-lead-form select,.my-lead-form textarea{display:block;width:100%;padding:12px;border:1px solid #dae2e9;border-radius:9px;margin-top:7px}.my-lead-form textarea{min-height:90px;resize:vertical}.my-detail-actions{display:flex;gap:10px;margin:16px 0}.my-detail-actions button{flex:1;padding:12px;font-size:13px}.my-lead-detail small{color:#64758b}.my-lead-empty{padding:28px 0;color:#64758b}.my-whatsapp-dialog{width:min(480px,90vw);border:0;border-radius:20px;padding:28px;color:#09243d}.my-whatsapp-dialog::backdrop{background:#09243d80}.my-whatsapp-dialog>button{display:block;width:100%;margin:12px 0}.my-whatsapp-list{max-height:300px;overflow:auto;border:1px solid #dce4eb;border-radius:12px;padding:12px}.my-whatsapp-list>div{display:grid;gap:5px;border-bottom:1px solid #edf0f5;padding:14px}.my-whatsapp-list span,.my-whatsapp-list small{color:#64758b}@media(max-width:1150px){.my-lead-columns{grid-template-columns:1fr}.my-lead-kpis{grid-template-columns:1fr}.my-lead-kpis article{padding:18px}}

.my-lead-columns.my-lead-inline{grid-template-columns:minmax(0,1fr)}.my-lead-inline .my-lead-table{min-width:1000px}.partner-stage-checks{display:flex;flex-direction:column;gap:10px}.partner-stage-checks label{display:flex;align-items:center;gap:7px;font-size:13px;cursor:pointer}.partner-stage-checks input{width:17px;height:17px;accent-color:#00a56b}.my-lead-inline th small{font-size:12px;color:#8190a3}.my-lead-inline td{vertical-align:middle}.my-lead-inline [data-stage-feedback]{display:block;max-width:140px;font-size:12px;margin-top:7px;color:#00865b}.inline-detail{max-width:800px;padding:20px;margin:auto}.my-lead-inline .my-client-cell{min-width:180px}.my-lead-inline .my-client-cell b{font-size:13px}

.customer-draft section{margin-bottom:28px}.customer-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.customer-draft-grid[hidden]{display:none}.customer-draft-grid label{display:grid;gap:8px}.customer-draft-grid input{width:100%;box-sizing:border-box}@media(max-width:700px){.customer-draft-grid{grid-template-columns:1fr}}

.customer-create-confirm{position:fixed;inset:0;margin:auto;width:min(600px,calc(100vw - 40px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;border:1px solid #d8e8e4;border-radius:26px;padding:40px;background:#fff;color:#09243d;box-shadow:0 24px 90px #001a3350;text-align:center}
.customer-create-confirm::backdrop{background:rgba(3,20,35,.6)}
.customer-create-confirm h2{font-size:30px;line-height:1.2;margin:20px 0 16px}
.customer-create-confirm p{font-size:17px;line-height:1.6;color:#62778a;margin:0 0 28px}
.customer-confirm-icon{display:grid;place-items:center;margin:auto;width:64px;height:64px;border-radius:20px;background:#e3f7ee;color:#009d60;font-size:36px}
.customer-confirm-actions{display:flex;justify-content:center;gap:14px}.customer-confirm-actions button{min-height:52px;padding:14px 24px;font-size:16px}.customer-confirm-actions button:focus-visible{outline:3px solid #2284d1;outline-offset:4px}
@media(max-width:520px){.customer-create-confirm{padding:28px 22px}.customer-create-confirm h2{font-size:25px}.customer-confirm-actions{flex-direction:column-reverse}}

.customer-vehicle-import{padding:20px;background:#edf8f3;border-radius:16px;margin:18px 0}.customer-vehicle-import label{display:grid;gap:8px;margin-bottom:12px}.customer-form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.customer-draft input[readonly]{background:#f2f5f7;color:#506579}.customer-draft textarea{display:block;width:100%;min-height:90px;box-sizing:border-box}

.customer-state-head{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.customer-workflow-list{margin-top:24px}.customer-admin-card{padding:24px 0;border-bottom:1px solid #dce6e8}.customer-admin-card:first-child{padding-top:0}.customer-admin-card form>button{margin-top:18px}.customer-admin-card .customer-return{display:flex;gap:16px;align-items:end;margin:24px 0}.customer-return label{display:grid;gap:8px}.customer-due{background:#fff1dc;color:#754400;padding:14px;border-radius:12px}.customer-agenda-filter{display:flex;align-items:center;gap:12px;margin-top:22px}.customer-admin-card details{margin-top:20px}.customer-admin-card dd{margin:4px 0 0}.customer-workflow-list small,.customer-workflow-list td span{display:block}

/* Administration shell: fixed navigation, compact dual-zone clocks. */
.app-screen.admin-shell{height:100dvh;min-height:0;overflow:hidden;grid-template-columns:282px minmax(0,1fr)}
.admin-shell .sidebar{position:relative;width:auto;height:100dvh;min-height:0;overflow-y:auto;gap:18px}
.admin-shell .side-nav{grid-template-columns:1fr}
.admin-shell .workspace{height:100dvh;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden}
.admin-shell .workspace-topbar{position:sticky;top:0;z-index:30;background:#fff;min-height:82px;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px;padding:14px 26px}
.admin-shell .global-search{flex:1 1 220px;max-width:390px;min-width:140px;margin:0}
.admin-shell .global-search input{min-width:0;width:100%;font-size:14px}
.admin-shell .user-chip{margin-left:auto;flex-shrink:0}
.admin-shell .welcome-row{display:none}
.admin-top-clocks{display:none}
.admin-shell .admin-top-clocks,.partner-shell .admin-top-clocks{display:flex;gap:10px;align-items:center;flex-shrink:0}
.admin-top-clock{display:grid;gap:3px;text-align:center;min-width:113px;padding:8px 12px;border-radius:12px;background:#edf7f3;border:1px solid #d8e9e2}
.admin-top-clock span{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#08724c}
.admin-top-clock strong{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums;color:#09243d}
.admin-top-clock small{font-size:10px;color:#62778a}
@media(max-width:1180px){.app-screen.admin-shell{grid-template-columns:220px minmax(0,1fr)}.admin-shell .sidebar{padding:18px 12px}.admin-shell .side-logo img{max-width:100%}.admin-shell .workspace-topbar{gap:10px;padding:12px 16px}.admin-shell .global-search{max-width:280px}.admin-top-clock{min-width:98px;padding:7px 8px}.admin-top-clock strong{font-size:19px}}
@media(max-width:700px){.app-screen.admin-shell{grid-template-columns:118px minmax(0,1fr)}.admin-shell .sidebar{padding:10px 6px}.admin-shell .side-logo{padding:4px 2px 12px}.admin-shell .side-logo img{padding:4px;border-radius:10px}.admin-shell .side-logo span{font-size:8px;letter-spacing:.08em}.admin-shell .nav-item{padding:11px 8px;font-size:12px}.admin-shell .view{padding:16px 12px}.admin-shell .global-search{max-width:none;flex-basis:100%}.admin-shell .workspace-topbar{padding:10px}.admin-shell .user-chip{font-size:12px;gap:6px}.admin-shell .avatar{width:30px;height:30px}.admin-top-clock{min-width:80px}.admin-top-clock strong{font-size:17px}}

/* Documents integrated into the existing administrative cards. */
.document-file-admin{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:center;gap:16px;padding:16px;margin:12px 0;border:1px solid #dce6e8;border-radius:14px;background:#f8fafb;min-width:0;width:100%;box-sizing:border-box}
.document-file-admin>label{display:grid;gap:8px;color:#506579;font-size:14px}
.document-file-admin input[type=file]{width:100%;min-width:0;font:inherit}
.document-file-admin>[data-document-analysis]{grid-column:1/-1}
.document-file-label{display:block;padding:12px;border:1px solid #dce6e8;border-radius:12px}
.document-analysis-summary{margin:16px 0;padding:20px;border:1px solid #dce6e8;border-radius:14px;background:#f7fbf9}
.document-analysis-summary article{padding:16px 0;border-top:1px solid #dce6e8}
.document-analysis-summary li{margin:10px 0;line-height:1.5}
.document-analysis-summary small{color:#6b7e8e}
@media(max-width:900px){.document-file-admin{grid-template-columns:1fr}.document-file-admin>[data-document-analysis]{grid-column:1}}

.document-dropzone{flex:1;min-width:240px;border:2px dashed #85b9a5;border-radius:14px;padding:20px;background:#f5faf8}.document-dropzone.dragging{border-color:#00ad68;background:#e0f6eb}.document-dropzone label{display:grid;gap:8px;cursor:pointer}.document-dropzone input{margin-top:14px}.document-dropzone ul{padding-left:20px}.document-dropzone li{margin:8px 0;overflow-wrap:anywhere}.document-dropzone li button{padding:4px 10px;margin-left:10px}

#customerDocuments [data-upload-customer-document]{align-self:flex-start;min-width:185px;min-height:54px}#customerDocuments [data-upload-customer-document]:disabled{opacity:1;background:#146c52;cursor:progress}.document-upload-status:not(:empty){padding:14px 18px;background:#e9f6ef;border:1px solid #b9ddca;border-radius:10px;font-weight:600;margin:16px 0}

/* Keep the second-holder checkbox next to its label in both customer forms. */
#partnerCustomerForm label:has(> input[name="second"]),
form[data-company-customer] label:has(> input[name="second"]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
}
#partnerCustomerForm input[type="checkbox"][name="second"],
form[data-company-customer] input[type="checkbox"][name="second"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  accent-color: #00a56b;
}

/* Active customer cards: compact accessible disclosure, forms remain unchanged. */
.customer-collapsible > summary {cursor:pointer;list-style:none;position:relative;padding-right:30px;}
.customer-collapsible > summary::-webkit-details-marker {display:none;}
.customer-collapsible > summary::after {content:'⌄';position:absolute;right:4px;top:0;font-size:24px;color:#00865b;}
.customer-collapsible[open] > summary::after {content:'⌃';}
.customer-collapsible > summary:focus-visible {outline:2px solid #00a56b;outline-offset:6px;border-radius:6px;}
.customer-collapsible > summary h3 {margin:0 0 8px;}
.customer-collapsible > summary p {margin:6px 0;}
.customer-collapsible[open] > summary {margin-bottom:24px;}

.workspace-topbar .global-search{position:relative;overflow:visible}
.admin-global-results{position:absolute;top:calc(100% + 8px);left:0;width:min(620px,80vw);max-height:65vh;overflow:auto;z-index:1000;background:#fff;border:1px solid #dce6e8;border-radius:16px;box-shadow:0 14px 35px #09243d26;padding:12px}
.admin-global-results[hidden]{display:none}
.admin-global-results>p{font-size:13px;padding:8px;margin:0;color:#52697e}
.admin-global-results>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;gap:6px;padding:14px;border:0;border-bottom:1px solid #e7eeee;background:#fff;color:#09243d;border-radius:8px;cursor:pointer}
.admin-global-results>button:hover,.admin-global-results>button:focus-visible{background:#e9f7f0;outline:2px solid #00a56b}
.admin-global-results span,.admin-global-results small{font-size:13px;color:#52697e}
[data-search-customer]{scroll-margin-top:140px}

/* Alternating customer backgrounds, shared by management and sales. */
.customer-workflow-list > .customer-admin-card:nth-child(odd),
.customer-summary-table > tbody > tr:nth-child(odd),
.my-lead-table > tbody > tr:nth-child(odd),
.lead-list > .lead-card:nth-child(odd){--customer-tint:#edf5fb;--customer-edge:#cbdfea;background-color:var(--customer-tint)!important}
.customer-workflow-list > .customer-admin-card:nth-child(even),
.customer-summary-table > tbody > tr:nth-child(even),
.my-lead-table > tbody > tr:nth-child(even),
.lead-list > .lead-card:nth-child(even){--customer-tint:#edf8f2;--customer-edge:#cce6d7;background-color:var(--customer-tint)!important}
.customer-workflow-list > .customer-admin-card{border:1px solid var(--customer-edge)!important;border-radius:18px;padding:22px!important;margin:0 0 16px!important}
.customer-workflow-list > .customer-admin-card:last-child{margin-bottom:0!important}
.customer-workflow-list > .customer-admin-card > .customer-state-head{background:transparent!important}
.customer-workflow-list > .customer-admin-card > .system-panel{background:transparent!important;box-shadow:none}
.customer-workflow-list > .customer-admin-card .customer-section{background:rgba(255,255,255,.65)}
.customer-summary-table > tbody > tr > td,.my-lead-table > tbody > tr > td{background-color:inherit}
.customer-summary-table > tbody > tr:hover,.my-lead-table > tbody > tr:hover{box-shadow:inset 3px 0 #14976b}
@media(max-width:600px){.customer-workflow-list > .customer-admin-card{padding:16px!important}}
.customer-draft{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.customer-draft .customer-section{margin:6px 0!important;padding:0 12px!important;background:#fff;border-radius:10px}.customer-draft .customer-section>summary{padding:12px 0!important;font-size:15px}.customer-draft .customer-section[open]{padding-bottom:10px!important}.customer-draft h3{margin:8px 0!important;font-size:16px}.customer-draft .customer-draft-grid{gap:10px 14px}.manual-documents{margin:0 0 8px!important;padding:0 12px!important}

.partner-shell #sidebarClockSlot{display:none!important}

#partnerSoundControl{display:none!important}
