:root {
  --v7-navy: #101936;
  --v7-navy-2: #182549;
  --v7-blue: #315bd6;
  --v7-cyan: #0b8fad;
  --v7-green: #0e8b59;
  --v7-purple: #6956c9;
  --v7-amber: #b2680d;
  --v7-red: #bd3328;
  --v7-canvas: #f3f6fa;
  --v7-line: #dce3ed;
  --v7-ink: #111a32;
  --v7-muted: #5d6980;
  --sidebar-width: 274px;
  --topbar-height: 78px;
}

body {
  font-size: 16px;
  line-height: 1.52;
  background: var(--v7-canvas);
  color: var(--v7-ink);
}

.page {
  padding: 34px 38px 48px;
}

.page-heading h1 {
  font-size: clamp(30px, 2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-heading p {
  max-width: 780px;
  color: var(--v7-muted);
  font-size: 16px;
}

.page-heading .eyebrow,
.panel .eyebrow,
.v7-kicker {
  font-size: 12px;
  letter-spacing: .12em;
}

.panel {
  border: 1px solid var(--v7-line);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(16, 25, 54, .055);
}

.panel-head h2 {
  font-size: 21px;
  letter-spacing: -.025em;
}

.panel-head p,
.empty-mini,
.security-copy {
  font-size: 14px;
}

.button {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
}

.button--compact { min-height: 40px; }
.button--tiny { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button--light { background: #fff; color: var(--v7-navy); box-shadow: 0 9px 24px rgba(0,0,0,.15); }

.sidebar { width: var(--sidebar-width); }
.app-main { margin-left: var(--sidebar-width); }
.sidebar-nav { padding: 8px 16px 18px; }
.nav-item { min-height: 46px; padding: 11px 13px; font-size: 14.5px; }
.nav-section { font-size: 11px; }
.sidebar-head { padding: 22px 18px 18px; }
.brand-logo {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-lockup strong { font-size: 17px; }
.brand-lockup small { font-size: 10.5px; }
.sidebar-user strong { font-size: 14px; }
.sidebar-user small, .sync-card small { font-size: 11px; }
.topbar { height: var(--topbar-height); padding: 0 38px; }
.global-search { width: min(520px, 45vw); }
.global-search input { font-size: 14px; }

.v7-notifications { position:relative; }
.notification-button { position:relative; }
.notification-button > span { position:absolute; top:-4px; right:-5px; display:grid; min-width:19px; height:19px; padding:0 5px; place-items:center; border:2px solid #fff; border-radius:999px; background:var(--v7-blue); color:#fff; font-size:10px; font-weight:900; line-height:1; }
.v7-notification-panel { position:absolute; z-index:90; top:calc(100% + 13px); right:-46px; width:min(390px,calc(100vw - 28px)); padding:15px; border:1px solid var(--v7-line); border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(16,25,54,.22); }
.v7-notification-panel[hidden] { display:none; }
.v7-notification-panel header { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:3px 3px 12px; }
.v7-notification-panel h2 { margin:2px 0 0; font-size:20px; letter-spacing:-.025em; }
.v7-notification-panel header > b { padding:5px 9px; border-radius:999px; background:#edf3ff; color:var(--v7-blue); font-size:11px; }
.v7-notification-list { display:grid; max-height:430px; overflow-y:auto; margin:0 -4px 12px; padding:0 4px; }
.v7-notification-item { display:grid; grid-template-columns:38px minmax(0,1fr); gap:11px; padding:12px 8px; border-top:1px solid #edf0f5; border-radius:11px; color:var(--v7-ink); }
.v7-notification-item:hover { background:#f5f8fd; }
.v7-notification-item > i { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; background:#eef2f8; color:var(--v7-navy); font-style:normal; }
.v7-notification-item > i .icon { width:18px; height:18px; }
.v7-notification-item strong,.v7-notification-item small,.v7-notification-item time { display:block; }
.v7-notification-item strong { font-size:13.5px; }
.v7-notification-item small { margin-top:2px; color:var(--v7-muted); font-size:12px; line-height:1.35; }
.v7-notification-item time { margin-top:5px; color:#8a95a8; font-size:10.5px; }
.v7-notification-item.is-unread { background:#f5f8ff; }
.v7-notification-item.is-unread > i { background:#e1eaff; color:var(--v7-blue); }

/* A V7 mantém também as telas herdadas confortáveis no desktop. */
.data-table th { font-size:12px; }
.data-table td { font-size:14px; line-height:1.45; }
.field-label > span,.form-grid label > span,.form-section label > span { font-size:13px; }
input,select,textarea { font-size:15px; }
.status,.chip,.tag { font-size:11.5px; }
.lead-card strong,.client-card strong,.vehicle-card strong { font-size:15px; }
.lead-card small,.client-card small,.vehicle-card small,.profile-card small { font-size:12px; }

@media (min-width: 821px) {
  .v7-table-head { font-size:11.5px!important; }
  .v7-priority-why b,.v7-priority-next b,.v7-score small { font-size:11.5px; }
  .v7-priority-tag,.v7-finance-status { font-size:11.5px!important; }
  .v7-appointment-list time span,.v7-credit-hero small,.v7-client-strip small,.v7-term-grid small { font-size:11.5px; }
  .v7-bank-card small,.v7-bank-card label,.v7-proposal-table span > em,.v7-automation small { font-size:11.5px; }
  .form-grid label small,.favorite-signal-time,.attachment-list > a,.favorite-vehicle-title span,.vehicle-interest-badge,.radar-insights span,.radar-insights small { font-size:12px; }
  .command-score span,.command-recommendation span,.command-task-meta small,.command-task-meta b,.command-person small,.priority-dashboard-card em,.priority-next-action span,.client-ai-copy > span,.client-ai-score span,.client-ai-score small,.ai-command-label em,.ai-command-snapshot small { font-size:11.5px; }
  .command-recommendation strong,.client-ai-copy p { font-size:13.5px; }
}

.v7-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: #fff;
  color: var(--v7-muted);
  font-size: 13px;
  font-weight: 800;
}

.v7-briefing {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 22px;
  align-items: start;
  margin: 24px 0;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(128deg, #101936 0%, #182957 62%, #274da6 100%);
  box-shadow: 0 20px 52px rgba(16, 25, 54, .18);
  color: #fff;
}
.v7-briefing-icon { display:grid; width:52px; height:52px; place-items:center; border-radius:16px; background:rgba(255,255,255,.12); }
.v7-briefing-icon .icon { width:26px; height:26px; }
.v7-briefing-main { min-width:0; }
.v7-briefing .v7-kicker { color:#aebfe9; font-weight:850; text-transform:uppercase; }
.v7-briefing .v7-kicker span { display:inline-block; margin-left:8px; padding:3px 8px; border-radius:999px; background:#dfe8ff; color:#172758; font-size:10px; letter-spacing:.04em; }
.v7-briefing h2 { max-width:950px; margin:7px 0 10px; font-size:clamp(22px,2vw,31px); line-height:1.18; letter-spacing:-.035em; }
.v7-briefing ul { display:flex; flex-wrap:wrap; gap:8px 24px; margin:0 0 8px; padding:0; list-style:none; color:#e0e7f8; font-size:14px; }
.v7-briefing li::before { content:""; display:inline-block; width:6px; height:6px; margin:0 8px 2px 0; border-radius:50%; background:#7ee2bf; }
.v7-briefing p { margin:0; color:#bdc9e4; font-size:14px; }
.v7-briefing .button { align-self:center; }

.v7-alert-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.v7-alert { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:11px; align-items:center; padding:14px 15px; border:1px solid var(--v7-line); border-radius:15px; background:#fff; }
.v7-alert > .icon:first-child { width:22px; height:22px; }
.v7-alert > .icon:last-child { width:17px; height:17px; color:#8a95a8; }
.v7-alert strong,.v7-alert small { display:block; }
.v7-alert strong { font-size:13.5px; }
.v7-alert small { margin-top:2px; color:var(--v7-muted); font-size:11.5px; line-height:1.3; }
.v7-alert--danger { border-color:#f2c9c5; background:#fff7f6; color:var(--v7-red); }
.v7-alert--warning { border-color:#efd6ae; background:#fffbf2; color:var(--v7-amber); }
.v7-alert--info { border-color:#cbd9f4; background:#f7f9ff; color:var(--v7-blue); }

.v7-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 22px; }
.v7-metric-grid--four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.v7-metric-grid--six { grid-template-columns:repeat(6,minmax(0,1fr)); }
.v7-metric { display:flex; min-width:0; min-height:126px; gap:15px; align-items:center; padding:19px; border:1px solid var(--v7-line); border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(16,25,54,.045); }
.v7-metric-icon { display:grid; width:46px; height:46px; flex:0 0 auto; place-items:center; border-radius:14px; }
.v7-metric > span:last-child { min-width:0; }
.v7-metric small,.v7-metric strong,.v7-metric em { display:block; }
.v7-metric small { color:var(--v7-muted); font-size:12px; font-weight:750; }
.v7-metric strong { margin:3px 0 2px; color:var(--v7-ink); font-size:clamp(22px,1.65vw,30px); line-height:1.12; letter-spacing:-.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v7-metric em { color:#7b8699; font-size:12px; font-style:normal; }
.v7-metric--blue .v7-metric-icon { background:#edf3ff; color:var(--v7-blue); }
.v7-metric--green .v7-metric-icon { background:#e8f8f1; color:var(--v7-green); }
.v7-metric--amber .v7-metric-icon { background:#fff4df; color:var(--v7-amber); }
.v7-metric--purple .v7-metric-icon { background:#f0edff; color:var(--v7-purple); }
.v7-metric--navy { background:var(--v7-navy); border-color:var(--v7-navy); }
.v7-metric--navy small,.v7-metric--navy em { color:#b8c4df; }
.v7-metric--navy strong { color:#fff; }
.v7-metric--navy .v7-metric-icon { background:rgba(255,255,255,.1); color:#fff; }

.v7-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr); gap:18px; margin-bottom:18px; }
.v7-dashboard-grid--hero { grid-template-columns:minmax(0,1.65fr) minmax(360px,.8fr); }
.v7-dashboard-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.v7-dashboard-grid--agenda { grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr); }
.v7-dashboard-grid--credit { grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr); }
.v7-dashboard-grid--reports { grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr); }

.v7-chart-panel,.v7-forecast-panel { min-height:355px; }
.v7-legend { display:flex; gap:16px; color:var(--v7-muted); font-size:12px; font-weight:750; }
.v7-legend span { display:flex; align-items:center; gap:7px; }
.v7-legend i { width:18px; height:3px; border-radius:4px; background:var(--v7-blue); }
.v7-legend i.is-sale { background:var(--v7-green); }
.v7-line-chart { position:relative; margin-top:10px; padding-bottom:24px; }
.v7-line-chart svg { display:block; width:100%; height:245px; overflow:visible; }
.v7-line-chart .grid-line { stroke:#e7ebf2; stroke-width:1; }
.v7-line-chart polyline { fill:none; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.v7-line-chart .line-leads { stroke:var(--v7-blue); }
.v7-line-chart .line-sales { stroke:var(--v7-green); }
.v7-chart-labels { position:absolute; right:2.8%; bottom:0; left:3.4%; height:20px; color:#8792a5; font-size:10.5px; }
.v7-chart-labels span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
.v7-forecast-number { margin:14px 0 20px; padding:20px; border-radius:16px; background:#f1f4fb; }
.v7-forecast-number span,.v7-forecast-number strong,.v7-forecast-number small { display:block; }
.v7-forecast-number span { color:var(--v7-muted); font-size:12px; font-weight:800; text-transform:uppercase; }
.v7-forecast-number strong { margin:5px 0; font-size:30px; letter-spacing:-.04em; }
.v7-forecast-number small { color:var(--v7-muted); font-size:12px; }
.v7-stage-stack { display:grid; gap:9px; }
.v7-stage-stack > div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; padding:9px 0; border-bottom:1px solid #edf0f5; font-size:13px; }
.v7-stage-stack b { color:var(--v7-muted); font-weight:650; }

.v7-priority-panel { margin-bottom:18px; }
.v7-priority-list { display:grid; gap:2px; }
.v7-priority-row { display:grid; grid-template-columns:34px 42px minmax(180px,1.1fr) minmax(190px,1.25fr) minmax(190px,1.25fr) 58px auto; gap:13px; align-items:center; padding:14px 4px; border-top:1px solid #edf0f5; }
.v7-priority-row:first-child { border-top:0; }
.v7-priority-rank { display:grid; width:28px; height:28px; place-items:center; border-radius:9px; background:#f0f3f8; color:#6e7a90; font-size:12px; font-weight:900; }
.v7-priority-person strong,.v7-priority-person small { display:block; }
.v7-priority-person strong { font-size:15px; }
.v7-priority-person small { max-width:260px; margin:2px 0 5px; overflow:hidden; color:var(--v7-muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.v7-priority-why,.v7-priority-next { display:grid; gap:2px; }
.v7-priority-why b,.v7-priority-next b { color:#8792a5; font-size:10px; letter-spacing:.07em; text-transform:uppercase; }
.v7-priority-why span,.v7-priority-next span { color:#364159; font-size:12.5px; line-height:1.35; }
.v7-priority-next span { color:var(--v7-navy); font-weight:750; }
.v7-score { text-align:center; }
.v7-score strong { display:block; font-size:20px; }
.v7-score small { color:var(--v7-muted); font-size:10px; }

.v7-funnel,.v7-stock-bars { display:grid; gap:13px; margin-top:16px; }
.v7-funnel > div,.v7-stock-bars > div { display:grid; grid-template-columns:130px minmax(80px,1fr) 32px; gap:12px; align-items:center; font-size:12.5px; }
.v7-funnel i,.v7-stock-bars i { height:8px; overflow:hidden; border-radius:999px; background:#edf0f5; }
.v7-funnel i b,.v7-stock-bars i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--v7-navy),#4469d5); }
.v7-stock-bars i b { background:linear-gradient(90deg,#2f61d6,#0f99a5); }
.v7-compact-table,.v7-bank-ranking,.v7-agenda-mini { display:grid; margin-top:11px; }
.v7-compact-table > div,.v7-bank-ranking > div,.v7-agenda-mini > a { display:flex; gap:12px; align-items:center; min-height:53px; padding:8px 0; border-bottom:1px solid #edf0f5; }
.v7-compact-table span,.v7-bank-ranking span,.v7-agenda-mini span { min-width:0; flex:1; }
.v7-compact-table strong,.v7-compact-table small,.v7-bank-ranking strong,.v7-bank-ranking small,.v7-agenda-mini strong,.v7-agenda-mini small { display:block; }
.v7-compact-table small,.v7-bank-ranking small,.v7-agenda-mini small { color:var(--v7-muted); font-size:11.5px; }
.v7-bank-ranking > div > b { display:grid; width:27px; height:27px; place-items:center; border-radius:8px; background:#eef2f8; font-size:11px; }
.v7-bank-ranking em { color:var(--v7-green); font-size:13px; font-style:normal; font-weight:850; }
.v7-agenda-mini time { width:43px; color:var(--v7-blue); font-size:13px; font-weight:850; }
.v7-dot { width:8px; height:8px; border-radius:50%; background:#a4adbd; }
.v7-dot--high,.v7-dot--urgent { background:var(--v7-amber); }
.v7-stock-money { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; }
.v7-stock-money span { padding:13px; border-radius:12px; background:#f4f6fa; color:var(--v7-muted); font-size:11px; }
.v7-stock-money strong { display:block; margin-top:4px; color:var(--v7-ink); font-size:15px; }
.v7-goal-ring { display:grid; width:170px; height:170px; margin:16px auto; place-items:center; border-radius:50%; background:conic-gradient(var(--v7-blue) calc(var(--progress)*1%),#e9edf4 0); }
.v7-goal-ring::before { content:""; grid-area:1/1; width:126px; height:126px; border-radius:50%; background:#fff; }
.v7-goal-ring div { z-index:1; grid-area:1/1; text-align:center; }
.v7-goal-ring strong,.v7-goal-ring small { display:block; }
.v7-goal-ring strong { font-size:30px; letter-spacing:-.04em; }
.v7-goal-ring small { color:var(--v7-muted); font-size:11px; }
.v7-goal-copy { margin:0; text-align:center; color:var(--v7-muted); font-size:13px; }

.v7-ranking-panel { margin-bottom:18px; }
.v7-ranking-table,.v7-report-table,.v7-bank-table,.v7-activity-table,.v7-proposal-table { overflow-x:auto; }
.v7-ranking-table > div,.v7-report-table > div,.v7-bank-table > div,.v7-activity-table > div { display:grid; grid-template-columns:minmax(190px,1.4fr) repeat(5,minmax(85px,.7fr)); gap:12px; align-items:center; min-width:760px; padding:13px 8px; border-top:1px solid #edf0f5; font-size:13px; }
.v7-table-head { border-top:0!important; color:#7b869a; font-size:10.5px!important; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.v7-ranking-table > div > span:first-child,.v7-bank-table > div > span:first-child { display:flex; gap:10px; align-items:center; }
.avatar--small { width:34px; height:34px; font-size:11px; }

.v7-task-list,.v7-appointment-list { display:grid; }
.v7-task { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:13px; align-items:center; padding:14px 0; border-bottom:1px solid #edf0f5; }
.v7-task.is-overdue { margin:0 -10px; padding:14px 10px; border-radius:12px; background:#fff8ed; }
.v7-task-check { display:grid; width:35px; height:35px; place-items:center; border:1px solid #ccd5e2; border-radius:50%; background:#fff; color:transparent; }
.v7-task-check:hover { border-color:var(--v7-green); color:var(--v7-green); }
.v7-task-time,.v7-task strong,.v7-task small { display:block; }
.v7-task-time { color:var(--v7-blue); font-size:11px; font-weight:850; }
.v7-task strong { font-size:14px; }
.v7-task small { margin-top:2px; color:var(--v7-muted); font-size:11.5px; }
.v7-priority-tag { padding:5px 9px; border-radius:999px; background:#eef1f6; color:#667188; font-size:10px; font-weight:850; text-transform:uppercase; }
.v7-priority-tag--high,.v7-priority-tag--urgent { background:#fff0d6; color:#945709; }
.v7-appointment-list article { display:grid; grid-template-columns:54px minmax(0,1fr) auto; gap:13px; align-items:center; padding:14px 0; border-bottom:1px solid #edf0f5; }
.v7-appointment-list time { display:grid; width:52px; height:55px; place-items:center; align-content:center; border-radius:13px; background:#edf2ff; color:var(--v7-blue); }
.v7-appointment-list time strong { font-size:19px; line-height:1; }
.v7-appointment-list time span { font-size:9px; font-weight:900; }
.v7-appointment-list article > div span,.v7-appointment-list article > div strong,.v7-appointment-list article > div small { display:block; }
.v7-appointment-list article > div span { color:var(--v7-blue); font-size:10.5px; font-weight:800; }
.v7-appointment-list article > div strong { margin:2px 0; font-size:14px; }
.v7-appointment-list article > div small { color:var(--v7-muted); font-size:11.5px; }

.v7-modal { position:fixed; z-index:200; inset:0; display:none; place-items:center; padding:24px; }
.v7-modal.is-open { display:grid; }
.v7-modal-backdrop { position:absolute; inset:0; border:0; background:rgba(10,17,38,.67); backdrop-filter:blur(4px); }
.v7-modal-card { position:relative; z-index:1; display:grid; width:min(620px,100%); max-height:calc(100vh - 48px); gap:15px; overflow:auto; padding:25px; border-radius:22px; background:#fff; box-shadow:0 30px 90px rgba(0,0,0,.3); }
.v7-modal-card--wide { width:min(880px,100%); }
.v7-modal-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.v7-modal-head h2 { margin:0; font-size:25px; }
.v7-modal-head p { margin:5px 0 0; color:var(--v7-muted); font-size:13px; }
.v7-modal-card label { display:grid; gap:6px; color:#374158; font-size:12px; font-weight:800; }
.v7-modal-card input,.v7-modal-card select,.v7-modal-card textarea { width:100%; min-height:46px; padding:10px 12px; border:1px solid #d6dde8; border-radius:11px; background:#fff; color:var(--v7-ink); }
.v7-modal-card textarea { min-height:84px; resize:vertical; }
.form-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.v7-file-field { position:relative; }
.v7-file-field > span { display:flex; gap:12px; align-items:center; padding:16px; border:1px dashed #b9c5d8; border-radius:13px; background:#f8faff; }
.v7-file-field strong,.v7-file-field small { display:block; }
.v7-file-field small { color:var(--v7-muted); font-weight:500; }
.v7-file-field input { min-height:auto; border:0; padding:0; }
body.v7-modal-open { overflow:hidden; }

.v7-filter-pills { display:flex; flex-wrap:wrap; gap:7px; }
.v7-filter-pills button { padding:7px 11px; border:1px solid #dce2eb; border-radius:999px; background:#fff; color:var(--v7-muted); font-size:11px; font-weight:800; }
.v7-filter-pills button.is-active { border-color:var(--v7-navy); background:var(--v7-navy); color:#fff; }
.v7-finance-list { display:grid; }
.v7-finance-case { display:grid; grid-template-columns:minmax(210px,1.25fr) minmax(190px,1fr) minmax(130px,.75fr) minmax(145px,.75fr) minmax(125px,.65fr) minmax(130px,.65fr) auto auto; gap:16px; align-items:center; padding:17px 4px; border-top:1px solid #e9edf3; }
.v7-finance-client { display:flex!important; gap:11px; align-items:center; }
.v7-finance-case > div { min-width:0; }
.v7-finance-case small,.v7-finance-case strong,.v7-finance-case span { display:block; }
.v7-finance-case small { color:#7c879a; font-size:10.5px; font-weight:750; }
.v7-finance-case strong { max-width:230px; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.v7-finance-case span { color:var(--v7-muted); font-size:11.5px; }
.v7-progress-cell i { display:block; height:7px; margin:6px 0 4px; overflow:hidden; border-radius:99px; background:#e9edf4; }
.v7-progress-cell b { display:block; height:100%; border-radius:inherit; background:var(--v7-green); }
.v7-finance-status { display:inline-flex!important; width:max-content; padding:6px 9px; border-radius:999px; background:#edf1f6; color:#596579!important; font-size:10px!important; font-weight:850; white-space:nowrap; }
.v7-finance-status--approved,.v7-finance-status--partially_approved,.v7-finance-status--contracted { background:#e5f7ef; color:#08784c!important; }
.v7-finance-status--submitted { background:#edf1ff; color:#3154bd!important; }
.v7-finance-status--requested,.v7-finance-status--collecting { background:#fff1d9; color:#965808!important; }

.v7-credit-hero { display:grid; grid-template-columns:minmax(300px,1.5fr) repeat(4,minmax(125px,.55fr)) auto; gap:17px; align-items:center; margin:22px 0 14px; padding:20px; border-radius:20px; background:var(--v7-navy); color:#fff; }
.v7-credit-vehicle { display:flex; gap:14px; align-items:center; }
.v7-credit-vehicle > img,.v7-credit-vehicle > .vehicle-fallback { width:100px; height:70px; border-radius:11px; object-fit:cover; }
.v7-credit-hero small,.v7-credit-hero strong,.v7-credit-hero em { display:block; }
.v7-credit-hero small { color:#aebbd6; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.v7-credit-hero strong { margin-top:4px; font-size:14px; }
.v7-credit-hero em { color:#d8e2fa; font-size:12px; font-style:normal; }
.v7-credit-hero > div:not(.v7-credit-vehicle) strong { font-size:17px; }
.v7-client-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; margin-bottom:18px; overflow:hidden; border:1px solid var(--v7-line); border-radius:16px; background:var(--v7-line); }
.v7-client-strip > div { padding:13px 16px; background:#fff; }
.v7-client-strip small,.v7-client-strip strong { display:block; }
.v7-client-strip small { color:var(--v7-muted); font-size:10px; text-transform:uppercase; }
.v7-client-strip strong { margin-top:3px; font-size:13px; }
.v7-document-list { display:grid; }
.v7-document-list form { display:grid; grid-template-columns:auto minmax(0,1fr) 145px; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid #edf0f5; }
.v7-doc-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:11px; background:#f0f3f7; color:#7b879b; }
.v7-doc-icon--verified { background:#e5f8ef; color:var(--v7-green); }
.v7-document-list strong,.v7-document-list small { display:block; }
.v7-document-list strong { font-size:13px; }
.v7-document-list small { color:var(--v7-muted); font-size:11px; }
.v7-document-list select { min-height:38px; border:1px solid #d9e0ea; border-radius:9px; background:#fff; font-size:12px; }
.v7-help { color:var(--v7-muted); font-size:10.5px; }
.v7-term-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.v7-term-grid > div { padding:15px 11px; border:1px solid #e0e5ed; border-radius:13px; background:#f8f9fb; text-align:center; }
.v7-term-grid > div.has-proposal { border-color:#bcd1f7; background:#f1f6ff; }
.v7-term-grid span,.v7-term-grid strong,.v7-term-grid small { display:block; }
.v7-term-grid span { color:var(--v7-blue); font-size:12px; font-weight:900; }
.v7-term-grid strong { margin:4px 0; font-size:15px; }
.v7-term-grid small { color:var(--v7-muted); font-size:10px; }
.v7-bank-workflow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.v7-bank-card { display:grid; gap:10px; padding:15px; border:1px solid #dfe5ed; border-radius:15px; background:#fff; }
.v7-bank-card--approved { border-color:#a9dfc9; background:#f6fffa; }
.v7-bank-card--under_review,.v7-bank-card--sent { border-color:#bfd0f2; background:#f8faff; }
.v7-bank-card > div:first-child { display:flex; gap:10px; align-items:center; }
.v7-bank-logo { display:grid!important; width:35px; height:35px; flex:0 0 auto; place-items:center; border-radius:10px; background:var(--v7-navy); color:#fff!important; font-size:10px!important; font-weight:900; }
.v7-bank-card strong,.v7-bank-card small { display:block; }
.v7-bank-card strong { font-size:13px; }
.v7-bank-card small { color:var(--v7-muted); font-size:10px; }
.v7-bank-card label { display:grid; gap:4px; color:#69758a; font-size:10px; font-weight:800; }
.v7-bank-card input,.v7-bank-card select { width:100%; min-height:37px; padding:7px 9px; border:1px solid #d9e0ea; border-radius:8px; background:#fff; font-size:11px; }
.v7-bank-deadline { color:var(--v7-amber)!important; }
.v7-proposal-table > div { display:grid; grid-template-columns:minmax(140px,1.1fr) 60px 100px 75px 75px 110px 85px 90px 92px; gap:10px; align-items:center; min-width:910px; padding:13px 8px; border-top:1px solid #edf0f5; font-size:12px; }
.v7-proposal-table > div.is-best { margin:0 -8px; padding:13px 16px; border:1px solid #b8d3c6; border-radius:12px; background:#f4fcf8; }
.v7-proposal-table span > em { display:block; color:var(--v7-green); font-size:9px; font-style:normal; font-weight:900; text-transform:uppercase; }
.v7-proposal-status { display:inline-flex; width:max-content; padding:5px 8px; border-radius:99px; background:#eef1f6; font-size:9.5px; font-weight:850; }
.v7-proposal-status--approved,.v7-proposal-status--selected { background:#e5f7ef; color:#08784c; }
.v7-proposal-status--rejected { background:#ffebea; color:#a82820; }
.v7-row-actions { display:flex; gap:5px; align-items:center; }

.v7-range-form select { min-height:42px; padding:8px 34px 8px 12px; border:1px solid #d4dce7; border-radius:11px; background:#fff; font-weight:750; }
.v7-report-table > div { grid-template-columns:minmax(150px,1.4fr) repeat(4,minmax(85px,.7fr)); min-width:620px; }
.v7-loss-list { display:grid; gap:14px; margin-top:16px; }
.v7-loss-list > div { display:grid; grid-template-columns:minmax(120px,1fr) minmax(90px,1.3fr) 30px; gap:12px; align-items:center; font-size:12px; }
.v7-loss-list i { height:8px; overflow:hidden; border-radius:99px; background:#edf0f5; }
.v7-loss-list i b { display:block; height:100%; border-radius:inherit; background:var(--v7-amber); }
.v7-stock-summary { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.v7-stock-summary > div { padding:18px; border-radius:14px; background:#f3f6fa; }
.v7-stock-summary span,.v7-stock-summary strong { display:block; }
.v7-stock-summary span { color:var(--v7-muted); font-size:11px; }
.v7-stock-summary strong { margin-top:5px; font-size:19px; }

.v7-automation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-bottom:18px; }
.v7-automation { display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; opacity:.68; }
.v7-automation.is-enabled { opacity:1; border-color:#c9d7ef; }
.v7-automation-icon { display:grid; width:43px; height:43px; place-items:center; border-radius:13px; background:#eef1f6; color:#7e899b; }
.v7-automation.is-enabled .v7-automation-icon { background:#ebeefe; color:var(--v7-purple); }
.v7-automation h2 { margin:4px 0; font-size:17px; }
.v7-automation p { min-height:42px; margin:0 0 7px; color:var(--v7-muted); font-size:12px; }
.v7-automation small { color:#8490a4; font-size:10px; }
.v7-automation form { grid-column:1/-1; }
.v7-switch { display:flex; width:100%; gap:9px; align-items:center; justify-content:flex-end; border:0; background:transparent; color:var(--v7-muted); font-size:11px; font-weight:850; }
.v7-switch i { position:relative; width:37px; height:21px; border-radius:99px; background:#cbd3df; }
.v7-switch i::after { content:""; position:absolute; top:3px; left:3px; width:15px; height:15px; border-radius:50%; background:#fff; transition:.2s; }
.v7-switch.is-on i { background:var(--v7-green); }
.v7-switch.is-on i::after { transform:translateX(16px); }
.v7-activity-table > div { grid-template-columns:minmax(180px,1.2fr) minmax(120px,.8fr) minmax(240px,1.6fr) 150px; min-width:720px; }
.v7-run-status--failed { color:var(--v7-red); }

.v7-auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(380px,.9fr) minmax(520px,1.1fr); background:#f4f6fa; }
.v7-auth-brand { display:flex; flex-direction:column; justify-content:center; padding:clamp(40px,7vw,110px); background:linear-gradient(145deg,#101936,#1a2a57); color:#fff; }
.v7-auth-brand img { width:min(340px,80%); margin-bottom:28px; filter:brightness(0) invert(1); }
.v7-auth-brand > span { color:#aebce0; font-size:13px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.v7-auth-brand h1 { max-width:600px; margin:16px 0; font-size:clamp(38px,4vw,66px); line-height:1; letter-spacing:-.06em; }
.v7-auth-brand p { max-width:560px; color:#c5cee2; font-size:17px; }
.v7-auth-panel { display:grid; place-items:center; padding:32px; }
.v7-auth-panel .auth-card { width:min(460px,100%); }
.v7-auth-link,.v7-forgot-link { display:inline-block; color:var(--v7-blue); font-size:13px; font-weight:800; }
.v7-forgot-link { justify-self:end; margin-top:-7px; }

@media (max-width: 1500px) {
  .v7-metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .v7-metric-grid--six { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v7-alert-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v7-priority-row { grid-template-columns:32px 40px minmax(160px,1fr) minmax(180px,1fr) 56px auto; }
  .v7-priority-next { display:none; }
  .v7-finance-case { grid-template-columns:minmax(190px,1.2fr) minmax(170px,1fr) repeat(3,minmax(115px,.7fr)) auto auto; }
  .v7-finance-case > div:nth-child(6) { display:none; }
  .v7-bank-workflow { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v7-credit-hero { grid-template-columns:minmax(280px,1.5fr) repeat(3,minmax(120px,.55fr)) auto; }
  .v7-credit-hero > div:nth-child(5) { display:none; }
}

@media (max-width: 1180px) {
  .page { padding:28px 24px 40px; }
  .topbar { padding:0 24px; }
  .v7-metric-grid,.v7-metric-grid--four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v7-dashboard-grid,.v7-dashboard-grid--hero,.v7-dashboard-grid--three,.v7-dashboard-grid--agenda,.v7-dashboard-grid--credit,.v7-dashboard-grid--reports { grid-template-columns:1fr; }
  .v7-priority-row { grid-template-columns:34px 42px minmax(0,1fr) 56px auto; }
  .v7-priority-why { display:none; }
  .v7-finance-case { grid-template-columns:minmax(200px,1.3fr) minmax(160px,1fr) minmax(120px,.7fr) auto auto; }
  .v7-finance-case > div:nth-child(4),.v7-finance-case > div:nth-child(5),.v7-finance-case > div:nth-child(6) { display:none; }
  .v7-bank-workflow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v7-credit-hero { grid-template-columns:minmax(260px,1.4fr) repeat(2,minmax(120px,.6fr)) auto; }
  .v7-credit-hero > div:nth-child(4),.v7-credit-hero > div:nth-child(5) { display:none; }
  .v7-client-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v7-automation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  body { font-size:15px; }
  .page { padding:22px 16px 36px; }
  .topbar { padding:0 16px; }
  .v7-briefing { grid-template-columns:auto minmax(0,1fr); padding:21px; }
  .v7-briefing .button { grid-column:1/-1; width:100%; }
  .v7-alert-row { grid-template-columns:1fr; }
  .v7-metric { min-height:112px; }
  .v7-metric-grid--six { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v7-finance-case { grid-template-columns:minmax(0,1fr) auto; }
  .v7-finance-case > div:not(.v7-finance-client) { display:none; }
  .v7-finance-case .v7-finance-status { display:none!important; }
  .v7-credit-hero { grid-template-columns:1fr 1fr; }
  .v7-credit-vehicle { grid-column:1/-1; }
  .v7-credit-hero > div:nth-child(n+4) { display:none; }
  .v7-client-strip { grid-template-columns:1fr 1fr; }
  .v7-bank-workflow { grid-template-columns:1fr; }
  .v7-automation-grid { grid-template-columns:1fr; }
  .v7-auth-shell { grid-template-columns:1fr; }
  .v7-auth-brand { display:none; }
  .v7-auth-panel { min-height:100vh; padding:20px; }
}

@media (max-width: 620px) {
  .v7-notification-panel { position:fixed; top:72px; right:14px; left:14px; width:auto; }
  .page-heading { align-items:flex-start; }
  .page-actions { width:100%; flex-wrap:wrap; }
  .page-actions .button,.page-actions .v7-role-chip { flex:1; }
  .v7-metric-grid,.v7-metric-grid--four,.v7-metric-grid--six { grid-template-columns:1fr 1fr; gap:10px; }
  .v7-metric { min-height:104px; padding:14px; gap:10px; }
  .v7-metric-icon { width:38px; height:38px; }
  .v7-metric strong { font-size:20px; }
  .v7-briefing { grid-template-columns:1fr; }
  .v7-briefing-icon { width:44px; height:44px; }
  .v7-priority-row { grid-template-columns:34px minmax(0,1fr) auto; }
  .v7-priority-row > .avatar,.v7-priority-row > .v7-score { display:none; }
  .v7-funnel > div,.v7-stock-bars > div { grid-template-columns:105px minmax(60px,1fr) 25px; }
  .v7-stock-money,.v7-stock-summary { grid-template-columns:1fr; }
  .v7-task { grid-template-columns:auto minmax(0,1fr) auto; }
  .v7-task .button { display:none; }
  .v7-priority-tag { font-size:8px; }
  .v7-appointment-list article { grid-template-columns:48px minmax(0,1fr); }
  .v7-appointment-list form { display:none; }
  .v7-modal { padding:0; align-items:end; }
  .v7-modal-card { width:100%; max-height:92vh; border-radius:22px 22px 0 0; }
  .form-grid,.form-grid--three { grid-template-columns:1fr; }
  .v7-term-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v7-client-strip { grid-template-columns:1fr; }
  .v7-line-chart svg { height:200px; }
}
