/* ===== Gestão de Licenças — tema (menu escuro, cards brancos) ===== */
:root {
    --nav: #1E3A4C;
    --nav-on: #2D4B5E;
    --nav-ink: #E3EAEF;
    --nav-muted: #A9BAC6;
    --bg: #F4F6F8;
    --card: #FFFFFF;
    --line: #E4E8EC;
    --line-soft: #EEF1F4;
    --ink: #1A2B36;
    --ink-2: #4B5865;
    --muted: #6B7785;
    --primary: #1B3445;
    --teal: #2B7A6B;
    --teal-bar: #3FA98C;
    --gold: #C9A15E;
    --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Outfit, system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: #1F5C50; }
h1:focus { outline: none; }
h2 { margin: 0; font-size: 16px; font-weight: 700; }

/* ---- Estrutura ---- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.main { flex: 999 1 560px; min-width: 0; padding: 18px 48px 48px 64px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.crumb { font-size: 13px; color: var(--muted); }
.topbar-right { font-size: 13px; color: var(--ink-2); }

/* ---- Menu lateral ---- */
.sidebar { flex: 1 1 220px; max-width: 100%; background: var(--nav); color: var(--nav-ink); padding: 14px 10px 24px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: #7DD3C0; color: var(--nav); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.brand-name { font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -0.02em; }
.brand-name small { font-size: 11px; font-weight: 500; color: var(--nav-muted); letter-spacing: 0; }
.nav-group { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--nav-muted); padding: 16px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--nav-ink); font-size: 15px; }
.nav-item:hover { background: #26445A; color: #fff; }
.nav-item.active { background: var(--nav-on); color: #fff; font-weight: 500; }
.nav-item .ic { width: 16px; text-align: center; color: var(--nav-muted); }
.nav-item.active .ic { color: #fff; }
.nav-item .lbl { flex: 1; }
.nav-item .cnt { font-size: 12px; color: var(--nav-muted); }
.nav-item.sub { min-height: 38px; padding-left: 30px; font-size: 14px; }
.nav-item.sub .ic { font-size: 11px; }

/* ---- Cabeçalho de página ---- */
.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.page-title { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.page-sub strong { color: var(--ink); }

/* ---- Botões ---- */
.btn, .btn-outline, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn:hover { background: #142836; color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #CDD2DA; font-weight: 500; }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-outline.danger { color: #B42318; }
.btn-danger { background: #B42318; color: #fff; border: 1px solid #B42318; }
button.link { background: none; border: none; padding: 0; color: var(--teal); font: inherit; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- Cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 20px; }
.card.flush { overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.card-head-sm { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; padding: 20px 18px; color: var(--ink); }
.stat-btn { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.stat:hover { border-color: #CDD2DA; color: var(--ink); }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-label { font-size: 14px; color: var(--ink-2); }
.stat-num { font-size: 28px; font-weight: 700; margin-top: 16px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.chip { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.c-red { background: #FDECEC; color: #B42318; }       .c-red-ink { color: #B42318; }
.c-orange { background: #FDF1E3; color: #B4620F; }    .c-orange-ink { color: #B4620F; }
.c-amber { background: #FBF4DF; color: #8A6A12; }     .c-amber-ink { color: #8A6A12; }
.c-teal { background: #E6F4F1; color: var(--teal); }  .c-teal-ink { color: var(--teal); }

.two-col { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-sm h2 { margin-bottom: 4px; }

/* ---- Filtros (pills) ---- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px 20px; }
.pills.big { padding: 0; gap: 8px; }
.pill { min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.pills.big .pill { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.pill.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; }

/* ---- Tabelas ---- */
.table-wrap { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 20px; background: #F7F9FA; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.card.flush > .table-wrap:first-child .t th { border-top: none; }
.t td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr:last-child td { border-bottom: none; }
.t tr.inativo td { color: var(--muted); }
.t tr.tot td { font-weight: 700; border-top: 1px solid var(--line); }
.r, .t th.r { text-align: right; }
.nowrap { white-space: nowrap; }
.sep { color: var(--line); margin: 0 6px; }
.vazio { text-align: center; color: var(--muted); padding: 28px !important; }
.totais { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.dias { font-size: 12px; font-weight: 600; }
.b-red-ink { color: #B42318; } .b-orange-ink { color: #B4620F; } .b-amber-ink { color: #8A6A12; } .b-teal-ink, .b-green-ink { color: var(--teal); } .b-grey-ink { color: var(--muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.b-red { background: #FDECEC; color: #B42318; }
.b-orange { background: #FDF1E3; color: #B4620F; }
.b-amber { background: #FBF4DF; color: #8A6A12; }
.b-teal { background: #E6F4F1; color: var(--teal); }
.b-green { background: #E8F5EC; color: #2F7D4A; }
.b-grey { background: #EEF1F4; color: var(--ink-2); }

/* ---- Lado direito do dashboard ---- */
.bar-row { display: flex; justify-content: space-between; font-size: 12px; margin-top: 14px; }
.bar-row span { color: var(--ink-2); }
.bar { height: 4px; background: var(--line-soft); border-radius: 9px; margin-top: 8px; overflow: hidden; }
.bar > div { height: 4px; border-radius: 9px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.mini-l { font-size: 11px; color: var(--muted); }
.mini-v { font-size: 17px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.act { display: flex; gap: 10px; padding-top: 12px; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 9px; margin-top: 6px; }
.d-teal { background: var(--teal-bar); } .d-gold { background: var(--gold); } .d-grey { background: var(--muted); }

/* ---- Formulários ---- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.span-all { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); flex: 1 1 160px; }
.fld.grow2 { flex: 2 1 260px; }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; padding-top: 22px; }
.fld.chk input { width: 18px; height: 18px; }
.f { width: 100%; min-height: 44px; border: 1px solid #CDD2DA; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 400; background: #fff; color: var(--ink); }
.f:focus { outline: 2px solid #3FA98C55; border-color: var(--teal-bar); }
.f.ro { background: #F4F6F8; color: var(--ink-2); }
.f.ta { padding: 10px 12px; min-height: 80px; resize: vertical; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 2px solid #CDD2DA; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-width: 1px; }
.seg-btn.on { border-color: var(--primary); background: #EEF2F5; }
.seg-btn.sm.on { background: var(--primary); color: #fff; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.kv.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }
.sep-line { border-top: 1px solid var(--line); margin: 4px 0; }
.big-num { font-size: 36px; font-weight: 700; }

/* ---- Gráfico ---- */
.chart { display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr)); gap: 10px; align-items: end; height: 250px; min-width: 640px; border-bottom: 1px solid #CDD2DA; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; }
.chart-lbl { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-bar { width: 100%; max-width: 44px; background: var(--teal-bar); border-radius: 4px 4px 0 0; }
.chart-bar.soon { background: var(--gold); }
.chart-mes { position: absolute; bottom: -24px; font-size: 12px; color: var(--muted); }
.chart-wrap { padding-bottom: 30px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--teal-bar); vertical-align: middle; }
.sw.soon { background: var(--gold); }

/* ---- Pipeline (oportunidades) ---- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.board-col { background: #EBEFF2; border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 4px; }
.board-empty { padding: 8px 4px; }
.opp { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.opp-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.opp-title:hover { color: var(--teal); }
.opp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.opp-actions { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 4px; }

/* ---- Dúvidas ---- */
.quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; border-color: #CDE5DF; background: #FBFDFC; }
.fld.grow3 { flex: 3 1 320px; }
.quick-btn { flex: none; }
.prio { display: inline-block; width: 10px; height: 10px; border-radius: 99px; flex: none; }
.p-alta { background: #D92D20; }
.p-normal { background: #C9A15E; }
.p-baixa { background: #CDD2DA; }
.t td.wrap { white-space: normal; min-width: 260px; max-width: 520px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ink { color: var(--ink); }
.ink:hover { color: var(--teal); }
.resolver { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.resolver .f { flex: 1 1 280px; width: auto; }
.grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.grupo-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.grupo-item .prio { margin-top: 5px; }
.grow { flex: 1; min-width: 0; }

/* ---- Cabeçalhos ordenáveis ---- */
.th-sort { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; margin: 0; font: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.th-sort:hover { color: var(--ink); }
.th-sort.on { color: var(--ink); }
.th-arrow { font-size: 11px; opacity: .35; letter-spacing: 0; }
.th-sort.on .th-arrow { opacity: 1; color: var(--teal); }
.t th.r .th-sort { flex-direction: row-reverse; }
.th-sort:focus-visible { outline: 2px solid var(--teal-bar); outline-offset: 2px; border-radius: 4px; }

/* ---- Seletor de datas ---- */
.df { position: relative; width: 100%; }
.df-input { position: relative; display: flex; }
.df-input .f { padding-right: 46px; font-variant-numeric: tabular-nums; }
.df-input.bad .f { border-color: #D92D20; background: #FFF8F8; }
.df-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.df-btn:hover, .df-btn[aria-expanded="true"] { background: #EEF2F5; color: var(--primary); }
.df-erro { font-size: 12px; font-weight: 400; color: #B42318; }
.df-overlay { position: fixed; inset: 0; z-index: 40; }
.df-pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 296px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 40, 55, .16); padding: 12px; font-weight: 400; }
.df-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.df-nav { width: 36px; height: 36px; border: none; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.df-nav:hover { background: #EEF2F5; }
.df-title { flex: 1; height: 36px; border: none; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.df-title:hover { background: #EEF2F5; }
.df-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.df-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.df-d { height: 36px; border: none; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.df-d:hover { background: #E6F4F1; }
.df-d.fds { color: var(--ink-2); }
.df-d.fora { color: #A9B1BA; }
.df-d.hoje { box-shadow: inset 0 0 0 1.5px var(--teal-bar); font-weight: 600; }
.df-d.sel { background: var(--primary); color: #fff; font-weight: 600; box-shadow: none; }
.df-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.df-m { height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.df-m:hover { border-color: var(--teal-bar); }
.df-m.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.df-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.df-foot .link { min-height: 32px; padding: 0 6px; }
.df button:focus-visible { outline: 2px solid var(--teal-bar); outline-offset: 1px; }

/* ---- Pesquisa de clientes ---- */
.pq { position: relative; width: 100%; max-width: 420px; }
.pq-grande { max-width: none; }
.pq-box { position: relative; }
.pq-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pq-input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 0 42px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.pq-grande .pq-input { min-height: 54px; font-size: 16px; border-radius: 14px; padding-left: 46px; box-shadow: 0 1px 2px rgba(20, 40, 55, .04); }
.pq-input:focus { outline: 2px solid #3FA98C55; border-color: var(--teal-bar); }
.pq-res { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; min-width: 340px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 40, 55, .16); padding: 6px; }
.pq-vazio { padding: 14px; font-size: 13px; color: var(--muted); }
.pq-item { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.pq-item.on, .pq-item:hover { background: #F1F6F5; color: var(--ink); }
.pq-nome { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; }
.pq-onde { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #EEF1F4; color: var(--ink-2); }
.tag-warn { background: #FDF1E3; color: #B4620F; }
.topbar .pq { flex: 1 1 300px; }

/* ---- Ficha do cliente ---- */
.quick-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; }
.quick-inline .f { flex: 1 1 280px; width: auto; }
.chk-inline { display: inline-flex; align-items: center; gap: 6px; }
.lista { padding: 0 20px 8px; }
.lista-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.lista-item .prio { margin-top: 5px; }
.lista-item.inativo { opacity: .65; }

/* ---- Seletor de cliente ---- */
.cs { position: relative; width: 100%; font-weight: 400; }
.cs-box { position: relative; }
.cs-input { padding-right: 58px; cursor: pointer; }
.cs.open .cs-input { cursor: text; border-color: var(--teal-bar); outline: 2px solid #3FA98C55; }
.cs-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }
.cs-clear { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.cs-clear:hover { background: #EEF2F5; color: var(--ink); }
.cs-pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 40, 55, .16); padding: 6px; }
.cs-opt { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 38px; padding: 8px 10px; border: none; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.cs-opt.on { background: #F1F6F5; }
.cs-opt.sel { font-weight: 600; }
.cs-opt.sel::after { content: "✓"; color: var(--teal); font-weight: 700; margin-left: auto; padding-left: 8px; }
.cs-opt.muted { color: var(--muted); font-style: italic; }
.cs-vazio { padding: 12px; font-size: 13px; color: var(--muted); }

/* ---- Paginação ---- */
.pag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pag-info { flex: 1 1 auto; }
.pag-size { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pag-size .f { width: auto; min-height: 36px; padding: 0 8px; }
.pag-nav { display: flex; align-items: center; gap: 4px; }
.pag-btn { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.pag-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.pag-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pag-btn:disabled { opacity: .4; cursor: default; }
.pag-gap { padding: 0 4px; color: var(--muted); }

/* ---- Sessão / login ---- */
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.user-menu { display: flex; align-items: center; gap: 12px; padding-left: 16px; border-left: 1px solid var(--line); }
.user-nome { font-size: 13px; font-weight: 600; color: var(--ink); }
.logout-form { margin: 0; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.f-sm { min-height: 34px; width: auto; font-size: 13px; padding: 0 8px; }
.msg-ok { background: #E8F5EC; color: #2F7D4A; border: 1px solid #BFE3CB; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--nav); }
.login-card { width: 100%; max-width: 400px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login-brand { padding: 0; }
.login-name { color: var(--ink); }
.login-title { margin: 0; font-size: 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-chk { padding-top: 0; font-weight: 400; }
.login-btn { width: 100%; }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* ---- Indicadores ---- */
.sec-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -8px; }
.grid-ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ind { gap: 2px; transition: border-color .15s, box-shadow .15s; }
.ind:hover { border-color: #9FCFC2; }
.ind.sel { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.ind .stat-num { margin-top: 12px; }
.ind-valor { font-size: 17px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.drill { scroll-margin-top: 16px; }

/* ---- Utilitários ---- */
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.small { font-size: 13px; }
.xsmall { font-size: 11px; }
.teal { color: var(--teal); }
.msg-erro { background: #FDECEC; color: #B42318; border: 1px solid #F5C2C2; border-radius: 10px; padding: 12px 16px; font-size: 14px; }

#blazor-error-ui { background: #FDF1E3; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (max-width: 720px) {
    .main { padding: 16px; }
}
.login-form .fld {
    flex: none;
}