/* ============================================================
   REVENDAOS — Gestão de Revendas de Veículos
   Design System · azul racing + carbono
   ============================================================ */

:root {
  /* Cores */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #E8EFFC;
  --ink: #141A24;          /* carbono (sidebar) */
  --ink-2: #1C2431;
  --text: #2B3442;
  --text-soft: #6B7482;
  --line: #E4E4E9;
  --bg: #F5F6F8;           /* cinza gelo */
  --card: #FFFFFF;
  --gold: #D9A521;

  --green: #1E9E6A;
  --green-soft: #E3F5ED;
  --blue: #2D7DD2;
  --blue-soft: #E7F0FA;
  --amber: #D9820B;
  --amber-soft: #FCF1DE;
  --red: #D64545;
  --red-soft: #FBE9E9;
  --purple: #7C5CBF;
  --purple-soft: #F0EBFA;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(20, 26, 36, .08), 0 4px 16px rgba(20, 26, 36, .05);
  --shadow-lg: 0 8px 40px rgba(20, 26, 36, .18);
  --sidebar-w: 248px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: .95rem; }

/* ============ LAYOUT / APP SHELL ============ */
.app-shell { display: flex; min-height: 100vh; }
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.content { padding: 28px 32px 48px; flex: 1; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--ink); color: #C7CDD6;
  display: flex; flex-direction: column; z-index: 50;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar .brand .logo-mark {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.05rem;
}
.sidebar .brand .logo-name { font-weight: 800; color: #fff; font-size: 1.02rem; letter-spacing: .2px; }
.sidebar .brand .logo-sub { font-size: .66rem; color: #8A93A3; text-transform: uppercase; letter-spacing: 1.4px; }

.sidebar nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.sidebar .nav-label {
  font-size: .64rem; text-transform: uppercase; letter-spacing: 1.3px;
  color: #77808F; padding: 14px 10px 6px;
}
.sidebar .nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 2px;
  font-size: .92rem; font-weight: 500; color: #C7CDD6;
  transition: background .15s, color .15s;
}
.sidebar .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar .nav-item .ico { width: 20px; text-align: center; font-size: 1rem; }

.sidebar .user-box {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.sidebar .user-box .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: #141A24; font-weight: 700; font-size: .8rem;
  display: grid; place-items: center;
}
.sidebar .user-box .u-name { font-size: .84rem; font-weight: 600; color: #fff; }
.sidebar .user-box .u-role { font-size: .7rem; color: #8A93A3; }
.sidebar .user-box .logout { margin-left: auto; background: none; border: none; color: #8A93A3; font-size: 1rem; }
.sidebar .user-box .logout:hover { color: #fff; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 14px 32px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.topbar .subtitle { font-size: .8rem; color: var(--text-soft); margin-top: 1px; }
.topbar .spacer { flex: 1; }
.topbar .search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; width: 260px;
}
.topbar .search input { border: none; background: none; outline: none; width: 100%; font-size: .85rem; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; border: none;
  font-size: .88rem; font-weight: 600; transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); border-color: #c6c6cf; }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #d8e4fa; }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 7px; }
.btn-icon { padding: 8px 10px; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #178257; }

/* ============ CARDS / STATS ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
}
.card-header h3 { font-size: .98rem; font-weight: 700; color: var(--ink); }
.card-header .link { font-size: .8rem; font-weight: 600; color: var(--primary); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .s-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card .s-label { font-size: .78rem; color: var(--text-soft); font-weight: 500; }
.stat-card .s-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.stat-card .s-value { font-size: 1.65rem; font-weight: 800; color: var(--ink); margin-top: 6px; letter-spacing: -.5px; }
.stat-card .s-delta { font-size: .74rem; margin-top: 5px; font-weight: 600; }
.s-delta.up { color: var(--green); }
.s-delta.down { color: var(--red); }
.s-delta .muted { color: var(--text-soft); font-weight: 400; }

/* ============ BADGES / CHIPS ============ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.gray { background: #ECECF0; color: var(--text-soft); }
.badge.primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge.gold { background: #FAF3DC; color: #A87F13; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: .8rem; font-weight: 600; color: var(--text-soft);
  cursor: pointer; transition: all .15s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip.active { border-color: var(--ink); color: var(--ink); background: #fff; }
.chip:hover { border-color: #c6c6cf; }

/* ============ TABELAS ============ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-soft); font-weight: 600; padding: 12px 11px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 11px; border-bottom: 1px solid #EFEFF3; font-size: .87rem; vertical-align: middle; }
table.data th:first-child, table.data td:first-child { padding-left: 16px; }
table.data th:last-child, table.data td:last-child { padding-right: 16px; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; cursor: pointer; }
table.data tbody tr:hover { background: #F9FAFC; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; font-size: .68rem; font-weight: 700; color: #fff;
}
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person .p-name { font-weight: 600; color: var(--ink); }
.cell-person .p-sub { font-size: .74rem; color: var(--text-soft); }

/* ============ FORMS ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 80px; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16, 21, 30, .5); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 6vh 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; animation: fadeIn .18s ease; }
.modal {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; max-height: 86vh; display: flex; flex-direction: column;
  animation: slideUp .22s ease;
}
.modal.wide { max-width: 800px; }
.modal-head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.modal-head .close { background: none; border: none; font-size: 1.3rem; color: var(--text-soft); line-height: 1; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ TOAST ============ */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 11px;
  font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; animation: slideUp .25s ease;
  max-width: 360px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue); }

/* ============ TABS ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  padding: 10px 16px; font-size: .88rem; font-weight: 600; color: var(--text-soft);
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

/* ============ PIPELINE / KANBAN ============ */
.kanban {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 18px;
  align-items: flex-start; min-height: 60vh;
}
.kb-col {
  background: #ECEDF1; border-radius: var(--radius); min-width: 272px; width: 272px;
  flex-shrink: 0; display: flex; flex-direction: column; max-height: calc(100vh - 210px);
}
.kb-col-head { padding: 13px 15px 9px; display: flex; align-items: center; gap: 8px; }
.kb-col-head .kb-dot { width: 10px; height: 10px; border-radius: 50%; }
.kb-col-head .kb-title { font-size: .82rem; font-weight: 700; color: var(--ink); }
.kb-col-head .kb-count { font-size: .72rem; font-weight: 700; color: var(--text-soft); background: #fff; border-radius: 999px; padding: 1px 8px; }
.kb-col-head .kb-sum { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--text-soft); }
.kb-cards { padding: 4px 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.kb-col.drag-over .kb-cards { outline: 2px dashed var(--primary); outline-offset: -4px; border-radius: 10px; background: var(--primary-soft); }

.kb-card {
  background: #fff; border-radius: 10px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(20,26,36,.09);
  border: 1px solid transparent; cursor: grab; transition: box-shadow .15s, transform .15s;
}
.kb-card:hover { box-shadow: 0 3px 10px rgba(20,26,36,.13); border-color: var(--line); }
.kb-card.dragging { opacity: .45; transform: rotate(2deg); }
.kb-card .kc-name { font-size: .88rem; font-weight: 700; color: var(--ink); }
.kb-card .kc-prop { font-size: .76rem; color: var(--text-soft); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.kb-card .kc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.kb-card .kc-value { font-size: .82rem; font-weight: 700; color: var(--green); }
.kb-card .kc-meta { display: flex; align-items: center; gap: 6px; }
.kb-card .kc-days { font-size: .68rem; color: var(--text-soft); }

/* ============ ESTOQUE (grid de veículos) ============ */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.veh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.veh-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,26,36,.12); }
.veh-card .v-img { height: 148px; display: grid; place-items: center; font-size: 3rem; position: relative; }
.veh-card .v-img .v-badge { position: absolute; top: 10px; left: 10px; }
.veh-card .v-img .v-days { position: absolute; top: 10px; right: 10px; }
.veh-card .v-body { padding: 14px 16px 16px; }
.veh-card .v-price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.veh-card .v-title { font-size: .86rem; font-weight: 600; color: var(--text); margin-top: 3px; }
.veh-card .v-loc { font-size: .76rem; color: var(--text-soft); margin-top: 2px; }
.veh-card .v-specs { display: flex; gap: 12px; margin-top: 11px; font-size: .74rem; color: var(--text-soft); font-weight: 500; flex-wrap: wrap; }
.veh-card .v-margin { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; font-size: .74rem; }

/* ============ AVALIAÇÃO DE VEÍCULOS ============ */
.aval-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.aval-cat { margin-bottom: 10px; }
.aval-cat-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: #F7F8FA; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; user-select: none;
}
.aval-cat-head .ac-ico { font-size: 1.05rem; }
.aval-cat-head .ac-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.aval-cat-head .ac-progress { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--text-soft); }
.aval-cat-head .ac-arrow { font-size: .8rem; color: var(--text-soft); transition: transform .2s; }
.aval-cat.open .ac-arrow { transform: rotate(90deg); }
.aval-cat-body { display: none; padding: 4px 2px 8px; }
.aval-cat.open .aval-cat-body { display: block; }

.aval-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid #EFEFF3;
}
.aval-item:last-child { border-bottom: none; }
.aval-item .ai-name { font-size: .86rem; font-weight: 500; flex: 1; }
.aval-item .ai-cost { width: 110px; }
.aval-item .ai-cost input {
  width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px;
  font-size: .8rem; text-align: right; outline: none;
}
.aval-item .ai-cost input:focus { border-color: var(--primary); }

/* segmented control de estado do item */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.seg button {
  border: none; background: #fff; padding: 6px 10px; font-size: .72rem; font-weight: 600;
  color: var(--text-soft); border-right: 1px solid var(--line); transition: all .12s;
}
.seg button:last-child { border-right: none; }
.seg button:hover { background: #F5F6F8; }
.seg button.sel-otimo { background: var(--green); color: #fff; }
.seg button.sel-bom { background: var(--blue); color: #fff; }
.seg button.sel-regular { background: var(--amber); color: #fff; }
.seg button.sel-ruim { background: var(--red); color: #fff; }
.seg button.sel-na { background: var(--ink); color: #fff; }

/* score circular */
.score-ring { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .sr-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: var(--ink);
}
.score-ring .sr-num small { font-size: .62rem; font-weight: 600; color: var(--text-soft); display: block; text-align: center; }

.aval-resumo-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #EFEFF3; font-size: .85rem; }
.aval-resumo-row:last-child { border-bottom: none; }
.aval-resumo-row .r-label { color: var(--text-soft); }
.aval-resumo-row .r-value { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.aval-resumo-row.total { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 12px; }
.aval-resumo-row.total .r-value { font-size: 1.15rem; color: var(--primary-dark); }

/* ============ PROPRIETÁRIOS / DOCUMENTOS ============ */
.doc-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: #fff;
}
.doc-item .d-ico { font-size: 1.05rem; }
.doc-item .d-info { flex: 1; min-width: 0; }
.doc-item .d-name { font-size: .84rem; font-weight: 600; color: var(--ink); }
.doc-item .d-sub { font-size: .7rem; color: var(--text-soft); margin-top: 1px; }

.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }

/* ============ INTEGRADOR ============ */
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 1; margin: 0; }
.switch .sl { position: absolute; inset: 0; background: #D5D7DE; border-radius: 99px; transition: background .18s; }
.switch .sl::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl::after { left: 19px; }

.mx-cell {
  width: 36px; height: 30px; border-radius: 8px; border: 1px dashed var(--line);
  background: #fff; font-size: .88rem; display: grid; place-items: center;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.mx-cell:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(20,26,36,.14); }
.mx-cell.pub { background: var(--green-soft); border: 1px solid transparent; }
.mx-cell.fila { background: var(--amber-soft); border: 1px solid transparent; }
.mx-cell.erro { background: var(--red-soft); border: 1px solid transparent; }

/* ============ FINANCEIRO ============ */
.fin-bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 6px 0; }
.fin-bar-chart .fb-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.fin-bar-chart .fb-bars { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.fin-bar-chart .fb-bar { width: 22px; border-radius: 5px 5px 0 0; min-height: 4px; transition: height .4s ease; }
.fin-bar-chart .fb-label { font-size: .7rem; color: var(--text-soft); font-weight: 600; }

/* ============ MISC ============ */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.page-head .sub { font-size: .85rem; color: var(--text-soft); margin-top: 3px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-soft); font-size: .88rem; }
.progress { height: 7px; background: #ECECF0; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: var(--primary); }

/* Timeline (histórico) */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.tl-item .tl-date { font-size: .7rem; color: var(--text-soft); font-weight: 600; }
.tl-item .tl-text { font-size: .84rem; margin-top: 2px; }

/* Lista de compromissos / follow-ups */
.day-list .dl-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EFEFF3; }
.day-list .dl-item:last-child { border-bottom: none; }
.day-list .dl-time { font-size: .78rem; font-weight: 700; color: var(--ink); min-width: 44px; }
.day-list .dl-title { font-size: .85rem; font-weight: 600; color: var(--ink); }
.day-list .dl-sub { font-size: .74rem; color: var(--text-soft); margin-top: 2px; }
.day-list .dl-bar { width: 4px; border-radius: 4px; flex-shrink: 0; }

/* ============ LOGIN ============ */
.login-page { display: flex; min-height: 100vh; }
.login-hero {
  flex: 1.15; background: var(--ink); color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px;
}
.login-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(37,99,235,.32), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(217,165,33,.13), transparent 60%);
  pointer-events: none;
}
.login-hero .hero-quote { font-size: 1.7rem; font-weight: 800; line-height: 1.3; max-width: 480px; letter-spacing: -.5px; position: relative; z-index: 1; }
.login-hero .hero-quote em { color: #6C97F5; font-style: normal; }
.login-hero .hero-stats { display: flex; gap: 36px; position: relative; z-index: 1; }
.login-hero .hs .n { font-size: 1.5rem; font-weight: 800; }
.login-hero .hs .l { font-size: .76rem; color: #9AA3B2; margin-top: 2px; }
.login-form-side { flex: 1; display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 18px 0 4px; }
.login-card .l-sub { color: var(--text-soft); font-size: .9rem; margin-bottom: 26px; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .aval-layout { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 20px 16px 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
}
