/* ===================================================================
   Sillis Experience — Design System
   Marca: navy #191C49 + verde #8CC63E. Tema claro + sidebar navy.
   Tipografia: Montserrat (display) + Inter (UI).
   =================================================================== */
:root {
  --navy: #191C49;
  --navy-900: #10133A;
  --navy-700: #232A6B;
  --navy-600: #2E3688;
  --green: #8CC63E;
  --green-600: #7AB72E;
  --green-700: #6FA32F;
  --green-050: #F1F8E6;
  --ink: #2B2D42;
  --ink-soft: #4A4D68;
  --muted: #808793;
  --line: #E6E9F1;
  --page: #F4F6F9;
  --card: #FFFFFF;
  --danger: #E0394F;
  --danger-050: #FDECEE;
  --warn: #E8920C;
  --warn-050: #FDF3E3;
  --info: #2E3688;
  --info-050: #ECEEF8;
  --shadow-sm: 0 1px 2px rgba(16,19,58,.06), 0 1px 3px rgba(16,19,58,.04);
  --shadow-md: 0 4px 12px rgba(16,19,58,.08), 0 2px 4px rgba(16,19,58,.04);
  --shadow-lg: 0 16px 40px rgba(16,19,58,.16);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sidebar-w: 256px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display { font-family: 'Montserrat', 'Inter', sans-serif; color: var(--navy); margin: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; vertical-align: -.18em; flex-shrink: 0; } /* tamanho-base dos ícones (sobrescrito por componentes) */
.hl { color: var(--green-700); }
.text-muted { color: var(--muted); }
.uppercase-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ============================ Layout shell ============================ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: fixed; inset: 0 auto 0 0; z-index: 40;
  background: linear-gradient(185deg, var(--navy-900) 0%, var(--navy) 60%, var(--navy-700) 100%);
  color: #fff; display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-brand { padding: 22px 22px 14px; position: relative; z-index: 1; }
.sidebar-brand img { height: 30px; display: block; }
.sidebar-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-top: 8px; }
.nav { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; overflow-y: auto; }
.nav-section { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.38); padding: 16px 12px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.74); font-weight: 500; position: relative; transition: .15s;
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(140,198,62,.14); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; background: var(--green); border-radius: 0 4px 4px 0; }
.nav-item.active svg { opacity: 1; color: var(--green); }
.sidebar-switch { margin-top: auto; padding: 10px 12px 2px; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); }
.nav-switch { background: rgba(255,255,255,.06); color: #fff; }
.nav-switch svg { opacity: 1; color: var(--green); }
.nav-switch:hover { background: rgba(140,198,62,.16); }
.sidebar-switch + .sidebar-foot { margin-top: 0; }
.sidebar-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: rgba(255,255,255,.4); position: relative; z-index: 1; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 30;
}
.topbar .title { font-size: 18px; font-weight: 700; }
.topbar .subtitle { font-size: 12px; color: var(--muted); margin-top: 1px; }
.content { padding: 28px 32px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* user chip on topbar */
.userchip { display: flex; align-items: center; gap: 11px; }
.userchip .meta { text-align: right; line-height: 1.2; }
.userchip .meta .nm { font-weight: 600; font-size: 13px; color: var(--navy); }
.userchip .meta .rl { font-size: 11px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-600); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* hamburger (mobile) */
.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 24px; height: 24px; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(16,19,58,.4); z-index: 39; }

/* ============================ Page header ============================ */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================ Cards ============================ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card.pad { padding: 20px 22px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 18px 20px; }
.grid { display: grid; gap: 18px; }
/* grades de KPI com nº de colunas fixo (evita "órfãos" do auto-fit) */
.grid.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.cols-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* KPI */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .k-value { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 6px; letter-spacing: -.01em; }
.kpi .k-ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.kpi .k-ico svg { width: 20px; height: 20px; }
.kpi.accent-green .k-ico { background: var(--green-050); color: var(--green-700); }
.kpi.accent-navy .k-ico { background: var(--info-050); color: var(--navy-600); }
.kpi.accent-warn .k-ico { background: var(--warn-050); color: var(--warn); }
.kpi.accent-danger .k-ico { background: var(--danger-050); color: var(--danger); }

/* Saldo em destaque (navy + bokeh + verde) */
.saldo-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: 26px 28px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, var(--navy-700));
  box-shadow: var(--shadow-md);
}
.saldo-card .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.saldo-card .b1 { width: 230px; height: 230px; right: -70px; top: -90px; background: radial-gradient(circle, rgba(140,198,62,.30), transparent 62%); }
.saldo-card .b2 { width: 180px; height: 180px; right: 60px; bottom: -110px; background: radial-gradient(circle, rgba(46,54,136,.55), transparent 60%); }
.saldo-card .dots { position: absolute; right: 22px; bottom: 18px; width: 90px; height: 54px; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.6) 1.4px, transparent 1.5px); background-size: 13px 13px; }
.saldo-card .s-label { position: relative; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.saldo-card .s-value { position: relative; font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 800; color: var(--green); margin: 6px 0 2px; letter-spacing: -.02em; }
.saldo-card .s-sub { position: relative; font-size: 13px; color: rgba(255,255,255,.72); }

/* ============================ Buttons ============================ */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: .15s; line-height: 1; text-align: center; }
.btn svg { width: 17px; height: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); color: var(--navy); font-weight: 700; box-shadow: 0 2px 8px rgba(140,198,62,.3); }
.btn-primary:hover:not(:disabled) { background: var(--green-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-700); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy-600); background: #fafbff; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(16,19,58,.05); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c92f44; }
.btn-success { background: var(--green); color: var(--navy); font-weight: 700; }
.btn-pill { border-radius: 999px; padding: 12px 26px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================ Badges / chips ============================ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; }
.badge-success { background: var(--green-050); color: var(--green-700); }
.badge-warn { background: var(--warn-050); color: var(--warn); }
.badge-danger { background: var(--danger-050); color: var(--danger); }
.badge-info { background: var(--info-050); color: var(--navy-600); }
.badge-muted { background: #EEF0F4; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #EEF0F4; color: var(--ink-soft); }
.chip-green { background: var(--green-050); color: var(--green-700); }
.chip-admin { background: var(--info-050); color: var(--navy-600); }

/* ============================ Tables ============================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.tbl th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: #FAFBFD; }
.tbl .strong { font-weight: 600; color: var(--navy); }
.tbl .num { font-variant-numeric: tabular-nums; }
.money-pos { color: var(--green-700); font-weight: 600; }
.money-neg { color: var(--danger); font-weight: 600; }

/* ============================ Forms ============================ */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; color: var(--ink);
  background: #fff; transition: .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(140,198,62,.18); }
.textarea { resize: vertical; min-height: 84px; }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix { display: inline-flex; align-items: center; padding: 0 12px; background: #F1F3F8; border: 1px solid var(--line); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search .input { padding-left: 38px; }

/* toggle */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: #CBD0DB; border-radius: 999px; transition: .15s; }
.switch .track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* ============================ Benefit cards ============================ */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s; display: flex; flex-direction: column; }
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-cover { height: 116px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-700)); }
.benefit-cover img { max-height: 64px; max-width: 76%; object-fit: contain; position: relative; z-index: 1; }
.benefit-cover .label { color: #fff; font-family: 'Montserrat'; font-weight: 800; font-size: 18px; position: relative; z-index: 1; text-align:center; padding:0 12px; }
.benefit-cover .dots { position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(255,255,255,.7) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.benefit-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.benefit-body h3 { font-size: 15.5px; font-weight: 700; }
.benefit-body p { color: var(--muted); font-size: 13px; margin: 7px 0 16px; flex: 1; }

/* ============================ Timeline (extrato) ============================ */
.timeline { position: relative; padding-left: 8px; }
.tl-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.tl-ico svg { width: 19px; height: 19px; }
.tl-credit { background: var(--green-050); color: var(--green-700); }
.tl-debit { background: var(--info-050); color: var(--navy-600); }
.tl-estorno { background: var(--warn-050); color: var(--warn); }
.tl-main { flex: 1; min-width: 0; }
.tl-main .t1 { font-weight: 600; color: var(--navy); }
.tl-main .t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-val { font-family: 'Montserrat'; font-weight: 700; white-space: nowrap; }
.tl-ref { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 4px; background: var(--info-050); border-radius: 999px; padding: 2px 9px 2px 7px; }
.tl-ref svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Banner de correção no modal de lançamento */
.ajuste-context { background: var(--green-050); border: 1px solid #DBEBC2; border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }
.ajuste-context svg { width: 13px; height: 13px; vertical-align: -1px; }

/* Seletor de colaboradores do Workspace */
.dir-list { margin-top: 8px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.dir-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.dir-item:last-child { border-bottom: 0; }
.dir-item:hover { background: var(--info-050); }
.dir-item.sel { background: var(--green-050); }
.dir-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; overflow: hidden; }
.dir-av img { width: 100%; height: 100%; object-fit: cover; }
.dir-meta { display: flex; flex-direction: column; min-width: 0; }
.dir-nm { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-em { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.dir-selected { margin-top: 8px; font-size: 13px; color: var(--green-700); background: var(--green-050); border-radius: var(--r-sm); padding: 8px 10px; }

/* ============================ Empty / loading ============================ */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .e-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-050); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.empty .e-ico svg { width: 30px; height: 30px; }
.empty h3 { color: var(--ink-soft); font-size: 16px; margin-bottom: 6px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ Modal / Drawer ============================ */
.overlay { position: fixed; inset: 0; background: rgba(16,19,58,.45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw; background: #fff; z-index: 61; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; }
.iconbtn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-flex; align-self: center; flex: 0 0 auto; line-height: 0; }
.iconbtn:hover { background: rgba(16,19,58,.06); color: var(--navy); }

/* ============================ Flash / toast ============================ */
.flash-wrap { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash { background: #fff; border-left: 4px solid var(--green); border-radius: var(--r-sm); box-shadow: var(--shadow-md); padding: 13px 16px; display: flex; gap: 10px; align-items: flex-start; animation: slideIn .25s ease; }
.flash.error { border-left-color: var(--danger); }
.flash .f-ico { flex-shrink: 0; margin-top: 1px; }
.flash .f-msg { font-size: 13.5px; color: var(--ink); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }

/* ============================ Login ============================ */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%); }
.login-hero .lh-blob2 { position: absolute; width: 320px; height: 320px; left: -110px; bottom: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,54,136,.5), transparent 60%); }
.login-hero .lh-dots { position: absolute; right: 50px; bottom: 60px; width: 150px; height: 110px; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.55) 1.6px, transparent 1.7px); background-size: 16px 16px; }
.login-hero .lh-logo { height: 80px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.login-hero .lh-title { position: relative; z-index: 1; font-family: 'Montserrat'; font-weight: 800; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; }
.login-hero .lh-sub { position: relative; z-index: 1; color: rgba(255,255,255,.8); font-size: 16px; max-width: 420px; margin-top: 16px; }
.login-hero .lh-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.login-hero .lh-point { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-size: 14.5px; }
.login-hero .lh-point .dot { width: 30px; height: 30px; border-radius: 9px; background: rgba(140,198,62,.18); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-hero .lh-point svg { width: 16px; height: 16px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-box .lb-mark { display: block; height: 40px; margin: 0 auto 22px; }
.login-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.login-box p { color: var(--muted); margin-bottom: 28px; }
.btn-google { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; transition: .15s; font-size: 15px; }
.btn-google:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.btn-google img { width: 20px; height: 20px; }
.login-note { font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.login-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.login-badge svg { width: 15px; height: 15px; color: var(--green); }
.login-switch { font-size: 13px; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-switch a { color: var(--navy); font-weight: 600; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }
/* Acento admin: barra verde no topo do cartão de login */
.login-wrap.is-admin .login-box { position: relative; }
.login-wrap.is-admin .login-box::before { content: ""; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 54px; height: 4px; border-radius: 3px; background: var(--green); }
.login-error { background: var(--danger-050); color: var(--danger); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; margin-bottom: 20px; text-align: left; }

/* ============================ utils ============================ */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.wrap { flex-wrap: wrap; } .flex-1 { flex: 1; }
.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:18px}.mt-4{margin-top:24px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:18px}.mb-4{margin-bottom:24px}
.tabs { display: inline-flex; background: #EEF0F4; border-radius: 999px; padding: 4px; gap: 2px; }
.tab { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s; }
.tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.row-active { background: rgba(140,198,62,.04); }
/* lista de e-mails em cards (cadastro de acessos) */
.email-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.email-card .email-addr { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-card .avatar.sm { background: var(--green-050); color: var(--green-700); }
.is-locked { opacity: .55; }
.is-locked input:not([type=checkbox]) { background: #f4f5f8; }
.lote-row:has(.chk-incluir:not(:checked)) { opacity: .45; }
.lote-row:has(.chk-incluir:not(:checked)) .out-cred { text-decoration: line-through; }
#fechamento-calc.sem-credito .s-value { opacity: .5; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; color: var(--ink); font-weight: 500; }
.hidden { display: none; }

/* ============================ Responsive ============================ */
@media (max-width: 1200px) { .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.kpis-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid.kpis { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .cols-2, .cols-2-eq { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 560px) {
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 0 16px; }
  .userchip .meta { display: none; }
  .saldo-card .s-value { font-size: 33px; }
}
