/* ═══════════════════════════════════════════════════════════
   main.css — FieldOps · HS Instalações
   Design system completo + dark mode automático
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variáveis ────────────────────────────────────────────────*/
:root {
  /* Superfícies */
  --bg:        #f2f1ed;
  --surface:   #ffffff;
  --surface2:  #f7f6f2;
  --surface3:  #eeede9;

  /* Texto */
  --text:      #1a1917;
  --text2:     #6b6a65;
  --text3:     #9b9a94;

  /* Bordas */
  --border:    rgba(0,0,0,0.09);
  --border2:   rgba(0,0,0,0.055);

  /* Cores semânticas */
  --accent:        #1a5cff;
  --accent-bg:     #e8eeff;
  --accent-text:   #0f3dbf;

  --green:         #0f6e56;
  --green-bg:      #e1f5ee;
  --green-text:    #085041;

  --amber:         #854f0b;
  --amber-bg:      #faeeda;
  --amber-text:    #633806;

  --red:           #a32d2d;
  --red-bg:        #fcebeb;
  --red-text:      #791f1f;

  --purple:        #534ab7;
  --purple-bg:     #eeedfe;
  --purple-text:   #3c3489;

  /* Layout */
  --radius:    8px;
  --radius-lg: 12px;
  --sidebar-w: 228px;
  /* Sidebar — cor escura padrão (sobrescrita pelo tema ativo) */
  --sidebar-bg: #1e293b;

  /* Tipografia */
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Tema padrão aplicado via JS — ver themes.css */
/* O dark mode automático foi removido; use as configurações de tema */

/* ── Base ─────────────────────────────────────────────────── */
html { font-size: 16px; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); }

/* ── Layout principal ─────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar — tom escuro da paleta ───────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}
.sidebar-logo {
  padding: 16px 14px 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Logo + nome lado a lado */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-img-wrap {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo-img-wrap img {
  max-width: 38px; max-height: 38px;
  object-fit: contain;
}
.sidebar-brand-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sidebar-logo-name {
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: -0.2px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.sidebar-logo-sub  { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.sidebar-logo-conn {
  font-size: 9px; color: #6ee7b7; margin-top: 3px;
  display: flex; align-items: center; gap: 4px;
}
.sidebar-logo-conn::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #6ee7b7; flex-shrink: 0;
}
.sidebar-logo-conn.offline { color: rgba(255,255,255,0.3); }
.sidebar-logo-conn.offline::before { background: rgba(255,255,255,0.3); }

/* Nav — ocupa o espaço restante e rola */
.sidebar-nav { padding:10px 8px; flex:1; overflow-y:auto; overflow-x:hidden; }
.nav-section { margin-bottom:18px; }
.nav-section-label {
  font-size:10px; font-weight:600; color:rgba(255,255,255,0.28);
  text-transform:uppercase; letter-spacing:0.8px; padding:0 8px; margin-bottom:4px;
}
.nav-item {
  display:flex; align-items:center; gap:8px;
  padding:7px 8px; border-radius:var(--radius);
  cursor:pointer; color:rgba(255,255,255,0.55);
  font-size:13px; transition:background 0.12s, color 0.12s;
  user-select:none;
}
.nav-item:hover { background:rgba(255,255,255,0.08); color:#fff; }
.nav-item.active {
  background:rgba(255,255,255,0.13); color:#fff; font-weight:600;
  box-shadow:inset 3px 0 0 var(--accent);
}
.nav-item svg { width:15px; height:15px; flex-shrink:0; opacity:0.6; }
.nav-item.active svg { opacity:1; }
.nav-badge {
  margin-left:auto; font-size:10px; font-weight:600;
  border-radius:20px; padding:1px 6px; line-height:16px;
}
.nav-badge-blue  { background:var(--accent); color:#fff; }
.nav-badge-green { background:rgba(110,231,183,0.2); color:#6ee7b7; }
.nav-badge-amber { background:rgba(251,191,36,0.2);  color:#fbbf24; }
.nav-badge-red   { background:rgba(248,113,113,0.2); color:#f87171; }

/* Footer sidebar */
.sidebar-footer {
  padding:12px 14px 10px;
  border-top:0.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.user-chip { display:flex; align-items:center; gap:9px; }
.avatar {
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:600; flex-shrink:0;
}
.user-name { font-size:12px; font-weight:500; color:#fff; }
.user-role { font-size:10px; color:rgba(255,255,255,0.4); }
.sidebar-version {
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.18);
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ── Main area ────────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topbar-title  { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.topbar-sync   { font-size: 11px; color: var(--text3); }

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Pages */
.page { display: none; flex-direction: column; gap: 18px; }
.page.active { display: flex; animation: fadeUp 0.18s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ── Botões ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  transition: background 0.1s, color 0.1s, opacity 0.1s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { background: var(--surface2); color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.88; background: var(--accent); color: #fff; }
.btn-green  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { opacity: 0.88; }
.btn-sm { padding: 4px 9px; font-size: 11px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title span { font-size: 11px; font-weight: 400; color: var(--text3); }
.card-action {
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
.card-action:hover { text-decoration: underline; }

/* ── Grids ────────────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.g5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.g6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }

/* ── KPI Cards ────────────────────────────────────────────── */
/* KPIs — botões compactos em linha única */
.kpi {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.kpi:hover {
  border-color: var(--accent);
  background: var(--surface2);
}
.kpi:active { opacity: .85; }
.kpi-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.kpi-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}
.kpi-delta { font-size: 10px; font-weight: 500; flex-shrink: 0; }
.kpi-delta.up   { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.nt   { color: var(--text3); }

/* Borda esquerda colorida */
.kpi.kpi-blue   { border-left: 3px solid var(--accent); }
.kpi.kpi-green  { border-left: 3px solid var(--green);  }
.kpi.kpi-amber  { border-left: 3px solid var(--amber);  }
.kpi.kpi-red    { border-left: 3px solid var(--red);    }
.kpi.kpi-purple { border-left: 3px solid var(--purple); }

/* Valor colorido */
.kpi.kpi-blue   .kpi-value { color: var(--accent); }
.kpi.kpi-green  .kpi-value { color: var(--green);  }
.kpi.kpi-amber  .kpi-value { color: var(--amber);  }
.kpi.kpi-red    .kpi-value { color: var(--red);    }
.kpi.kpi-purple .kpi-value { color: var(--purple); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  white-space: nowrap;
}
.badge-green  { background: var(--green-bg);  color: var(--green-text); }
.badge-blue   { background: var(--accent-bg); color: var(--accent-text); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber-text); }
.badge-red    { background: var(--red-bg);    color: var(--red-text); }
.badge-purple { background: var(--purple-bg); color: var(--purple-text); }
.badge-gray   { background: var(--surface3);  color: var(--text2); border: 0.5px solid var(--border); }

/* ── Tabelas ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
}
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead tr { border-bottom: 0.5px solid var(--border); }
th {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-align: left;
  padding: 9px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: var(--surface2);
}
td {
  font-size: 12px;
  color: var(--text);
  padding: 9px 12px;
  border-bottom: 0.5px solid var(--border2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr.tr-click:hover td { background: var(--surface2); cursor: pointer; }
.td-muted { font-size: 11px; color: var(--text2); }
.td-ellipsis { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Inputs e formulários ─────────────────────────────────── */
.input {
  width: 100%;
  padding: 8px 11px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus { border-color: var(--accent); background: var(--surface); }
.input::placeholder { color: var(--text3); }

select.input { cursor: pointer; }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-full   { grid-column: 1 / -1; }

/* Barra de busca */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.search-bar input::placeholder { color: var(--text3); }

/* Filter chips */
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  transition: all 0.1s;
  user-select: none;
}
.chip:hover, .chip.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}

/* Tabs */
.tab-row { display: flex; border-bottom: 0.5px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: all 0.12s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Progress bar ─────────────────────────────────────────── */
.prog-bar { height: 5px; border-radius: 3px; background: var(--border2); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 3px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 13px 13px; }
.tl-dot {
  position: absolute;
  left: -15px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.tl-green  .tl-dot { background: var(--green); }
.tl-amber  .tl-dot { background: var(--amber); }
.tl-blue   .tl-dot { background: var(--accent); }
.tl-red    .tl-dot { background: var(--red); }
.tl-time { font-size: 10px; color: var(--text3); }
.tl-text { font-size: 12px; color: var(--text); font-weight: 500; margin-top: 1px; }
.tl-sub  { font-size: 11px; color: var(--text2); }

/* ── Carry Over boxes ─────────────────────────────────────── */
.co-box { border-radius: var(--radius); padding: 16px; text-align: center; }
.co-box-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.co-box-val   { font-size: 22px; font-weight: 600; }
.co-box-n     { font-size: 12px; margin-top: 3px; }
.co-efetivado { background: var(--green-bg); }
.co-efetivado .co-box-label { color: var(--green); }
.co-efetivado .co-box-val   { color: var(--green-text); }
.co-efetivado .co-box-n     { color: var(--green); }
.co-previsto  { background: var(--amber-bg); }
.co-previsto  .co-box-label { color: var(--amber); }
.co-previsto  .co-box-val   { color: var(--amber-text); }
.co-previsto  .co-box-n     { color: var(--amber); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 18px 20px 14px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header h3 { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.modal-close {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  border: none;
  background: var(--surface2);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
}
.modal-close:hover { background: var(--surface3); }
.modal-body   { padding: 20px; overflow-y: auto; flex: 1; }
#modal-os .modal-body { padding: 0; overflow: hidden; }
.modal-footer {
  padding: 14px 20px;
  border-top: 0.5px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* ── Alertas / banners ────────────────────────────────────── */
.banner {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.banner-blue   { background: var(--accent-bg); color: var(--accent-text); border: 0.5px solid var(--accent); }
.banner-green  { background: var(--green-bg);  color: var(--green-text);  border: 0.5px solid var(--green); }
.banner-amber  { background: var(--amber-bg);  color: var(--amber-text);  border: 0.5px solid var(--amber); }
.banner-red    { background: var(--red-bg);    color: var(--red-text);    border: 0.5px solid var(--red); }

/* ── Loading / Empty ──────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  text-align: center;
  padding: 36px;
  color: var(--text3);
  font-size: 13px;
}

/* ── Login screen ─────────────────────────────────────────── */
#login-screen {
  position: fixed; inset: 0;
  background: var(--sidebar-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 340px;
}
.login-logo   { text-align: center; margin-bottom: 22px; }
.login-logo img { height: 52px; object-fit: contain; }
.login-title  { font-size: 20px; font-weight: 700; color: var(--text); text-align: center; letter-spacing: -0.3px; margin-bottom: 4px; }
.login-sub    { font-size: 13px; color: var(--text3); text-align: center; margin-bottom: 24px; }
.login-error  { background: var(--red-bg); color: var(--red-text); font-size: 12px; border-radius: 6px; padding: 8px 12px; margin-top: 10px; display: none; }

/* ── Equipe cards ─────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.team-card:hover { border-color: var(--accent); }
.team-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 10px;
}
.team-stats {
  display: flex; gap: 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 0.5px solid var(--border2);
}
.ts { text-align: center; flex: 1; }
.ts-val { font-size: 14px; font-weight: 600; color: var(--text); }
.ts-lbl { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .g6 { grid-template-columns: repeat(3, 1fr); }
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g6 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
}

/* ═══════════════════════════════════════════════════════════
   Dashboard — layout com agenda fixada à direita
   ═══════════════════════════════════════════════════════════ */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}
.dash-left-col  { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-right-col { position: sticky; top: 0; align-self: start; }

.dash-agenda-sticky {
  border: 0.5px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg), 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}
.dash-agenda-sticky .card-title {
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border2);
  margin-bottom: 8px;
}

/* Responsivo */
@media (max-width: 900px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-right-col  { position: static; order: -1; }
}

/* ═══════════════════════════════════════════════════════════
   ESCALA TIPOGRÁFICA PROFISSIONAL
   Base: 15px · Escala: 10/11/12/13/14/15/16/18/20px
   ═══════════════════════════════════════════════════════════ */

/* Topbar */
.topbar-title  { font-size: 16px; font-weight: 600; }
.topbar-sync   { font-size: 12px; }

/* Navegação sidebar */
.nav-section-label { font-size: 10px; }
.nav-item          { font-size: 13px; }
.nav-badge         { font-size: 10px; }

/* Cards */
.card-title        { font-size: 13px; }
.card-title span   { font-size: 12px; }
.card-action       { font-size: 12px; }

/* KPIs */
.kpi-label { font-size: 11px; }
.kpi-value { font-size: 22px; }
.kpi-delta { font-size: 11px; }

/* Botões */
.btn         { font-size: 13px; padding: 6px 14px; }
.btn-sm      { font-size: 12px; padding: 4px 10px; }
.btn-primary { font-size: 14px; }

/* Inputs / labels */
.input       { font-size: 14px; padding: 8px 12px; }
.form-label  { font-size: 12px; }

/* Tabelas */
table thead th { font-size: 11px; }
table tbody td { font-size: 13px; }

/* Badges / chips */
.badge  { font-size: 11px; }
.chip   { font-size: 12px; }

/* Empty / placeholder */
.empty  { font-size: 13px; }

/* Dashboard — OS em aberto */
.dash-os-num  { font-size: 11px; }
.dash-os-name { font-size: 13px; }
.dash-os-meta { font-size: 11px; }
.dash-os-dias { font-size: 11px; }

/* Sidebar footer */
.user-name { font-size: 13px; }
.user-role { font-size: 11px; }
.sidebar-version { font-size: 10px; }

/* Conn status */
.sidebar-logo-conn { font-size: 10px; }

/* Barra despesas */
.desp-bar-cat       { font-size: 10px; }
.desp-bar-val       { font-size: 13px; }
.desp-bar-media-cat { font-size: 10px; }
.desp-bar-media-val { font-size: 13px; }

/* Carry Over */
.co-box-label { font-size: 11px; }
.co-box-val   { font-size: 18px; }
.co-box-n     { font-size: 12px; }

/* ── Escala tipográfica 16px base ────────────────────────── */
.topbar-title        { font-size: 17px; }
.nav-item            { font-size: 14px; }
.card-title          { font-size: 14px; font-weight: 700; }
.btn                 { font-size: 14px; }
.btn-sm              { font-size: 12px; }
.btn-primary         { font-size: 15px; }
.input               { font-size: 15px; }
.form-label          { font-size: 13px; }
.kpi-label           { font-size: 12px; }
.kpi-value           { font-size: 24px; }
table thead th       { font-size: 12px; }
table tbody td       { font-size: 14px; }
.tab                 { font-size: 14px; }
.empty               { font-size: 14px; }
.user-name           { font-size: 14px; }
.user-role           { font-size: 12px; }
.desp-bar-val        { font-size: 14px; }
.desp-bar-cat        { font-size: 11px; }
.sidebar-logo-name   { font-size: 14px; }
