/* ═══════════════════════════════════════════════════════════════════════════
   TJ GESTÃO — Design System Industrial / Corporativo
   Paleta: Amarelo #F5C518 · Preto profundo · Branco · Aço
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Cores principais */
  --yellow:        #F5C518;
  --yellow-dark:   #CFA30E;
  --yellow-dim:    #B8900C;
  --yellow-glow:   rgba(245,197,24,0.12);
  --yellow-glow2:  rgba(245,197,24,0.06);

  /* Superfícies escuras industriais */
  --black:         #060608;
  --surface:       #0D0D10;
  --surface-2:     #121216;
  --surface-3:     #18181E;
  --surface-4:     #202028;
  --surface-5:     #28282F;

  /* Bordas / separadores */
  --border:        rgba(255,255,255,0.06);
  --border-2:      rgba(255,255,255,0.10);
  --border-yellow: rgba(245,197,24,0.25);

  /* Texto */
  --white:         #FFFFFF;
  --text:          #E8E8EC;
  --text-muted:    #6E6E7A;
  --text-dim:      #3D3D45;

  /* Feedback */
  --success:       #16A34A;
  --success-soft:  #22C55E;
  --success-bg:    rgba(22,163,74,0.10);
  --success-border:rgba(22,163,74,0.20);
  --warning:       #D97706;
  --warning-soft:  #F59E0B;
  --warning-bg:    rgba(217,119,6,0.10);
  --warning-border:rgba(217,119,6,0.20);
  --danger:        #DC2626;
  --danger-soft:   #EF4444;
  --danger-bg:     rgba(220,38,38,0.10);
  --danger-border: rgba(220,38,38,0.20);
  --info:          #1D4ED8;
  --info-soft:     #3B82F6;
  --info-bg:       rgba(29,78,216,0.10);
  --info-border:   rgba(29,78,216,0.20);

  /* Layout */
  --sidebar-w:     252px;
  --topbar-h:      56px;

  /* Forma */
  --radius-xs:     3px;
  --radius-sm:     5px;
  --radius:        8px;
  --radius-lg:     10px;

  /* Sombras */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
  --shadow:        0 4px 20px rgba(0,0,0,0.50);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.65);

  /* Transição */
  --t:             0.15s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow-dim); }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

/* Logo / Marca */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}

.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.sidebar-logo:hover::after { opacity: 1; }

.sidebar-logo-mark {
  width: 34px; height: 34px;
  background: var(--yellow);
  display: grid; place-items: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
  position: relative;
}

.sidebar-logo-mark span {
  font-size: 12px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  font-family: 'Inter', sans-serif;
}

.sidebar-logo-text { flex: 1; }
.sidebar-logo-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.sidebar-logo-text em {
  font-style: normal;
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0 10px; }

.nav-section-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 18px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover { background: var(--surface-3); color: var(--text); }

.nav-item.active {
  background: var(--yellow-glow);
  color: var(--yellow);
  border-color: var(--border-yellow);
  font-weight: 600;
}

.nav-item.active .nav-icon svg { stroke: var(--yellow); }

.nav-icon { flex-shrink: 0; display: grid; place-items: center; width: 20px; }
.nav-icon svg { stroke: currentColor; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.sidebar-avatar {
  width: 30px; height: 30px;
  clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 16% 100%, 0 84%);
  background: var(--yellow);
  display: grid; place-items: center;
  font-weight: 900; font-size: 11px; color: var(--black);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.sidebar-user-info { overflow: hidden; flex: 1; }
.sidebar-user-info strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { font-size: 10.5px; color: var(--text-muted); }

/* ── Main ───────────────────────────────────────────────────────────────── */
#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
#topbar {
  position: sticky; top: 0;
  height: var(--topbar-h);
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
}

.topbar-page-info { display: flex; align-items: center; gap: 10px; }
.topbar-page-icon { color: var(--yellow); display: grid; place-items: center; }
.topbar-title { font-size: 14px; font-weight: 700; color: var(--white); }
.topbar-sep { color: var(--text-dim); font-size: 16px; }
.topbar-spacer { flex: 1; }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
  min-width: 180px;
}
.topbar-search:hover { border-color: var(--border-2); color: var(--text); }
.topbar-search svg { flex-shrink: 0; }

.topbar-icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t);
}
.topbar-icon-btn:hover { background: var(--surface-3); color: var(--yellow); border-color: var(--border-yellow); }

/* ── Page ───────────────────────────────────────────────────────────────── */
#page { flex: 1; padding: 24px 28px; overflow-y: auto; max-height: calc(100vh - var(--topbar-h)); }

/* ── Section Header ─────────────────────────────────────────────────────── */
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-header-left { display: flex; flex-direction: column; gap: 2px; }
.section-title {
  font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px;
}
.section-title-bar {
  width: 3px; height: 18px;
  background: var(--yellow);
  border-radius: 1px;
  flex-shrink: 0;
}
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-left: 11px; }
.section-actions { display: flex; align-items: center; gap: 8px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,197,24,0.25); }

.btn-secondary { background: var(--surface-3); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface-4); border-color: var(--border-2); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }

.btn-danger { background: var(--danger-bg); color: var(--danger-soft); border-color: var(--danger-border); }
.btn-danger:hover { background: var(--danger); color: white; }

.btn-success { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.btn-success:hover { background: var(--success); color: white; }

.btn-sm { padding: 5px 12px; font-size: 11.5px; }
.btn-lg { padding: 10px 22px; font-size: 13.5px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--t);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.card-title { font-size: 13px; font-weight: 700; color: var(--text); }
.card-subtitle { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.card-action { font-size: 12px; color: var(--yellow); cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.card-action:hover { opacity: 0.75; }

/* Accent line top */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--yellow);
}

/* ── KPI Cards ──────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }

.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: all var(--t);
}

.kpi-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--yellow); opacity: 0;
  transition: opacity var(--t);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover { border-color: var(--border-2); }

/* Corner industrial mark */
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent var(--border-2) transparent transparent;
}

.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.kpi-icon { color: var(--text-dim); display: grid; place-items: center; }
.kpi-value { font-size: 26px; font-weight: 900; color: var(--white); letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-value.yellow { color: var(--yellow); }
.kpi-value.green  { color: var(--success-soft); }
.kpi-value.red    { color: var(--danger-soft); }
.kpi-value.blue   { color: var(--info-soft); }
.kpi-sub { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.kpi-sub .up   { color: var(--success-soft); }
.kpi-sub .down { color: var(--danger-soft); }

/* ── Status Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-xs);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  white-space: nowrap; border: 1px solid;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.badge-disponivel   { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-disponivel .badge-dot { background: var(--success-soft); }
.badge-alugada      { background: var(--yellow-glow); color: var(--yellow); border-color: var(--border-yellow); }
.badge-alugada .badge-dot { background: var(--yellow); }
.badge-manutencao   { background: var(--warning-bg); color: var(--warning-soft); border-color: var(--warning-border); }
.badge-manutencao .badge-dot { background: var(--warning-soft); }
.badge-parada       { background: var(--danger-bg); color: var(--danger-soft); border-color: var(--danger-border); }
.badge-parada .badge-dot { background: var(--danger-soft); }
.badge-ativa        { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-ativa .badge-dot { background: var(--success-soft); }
.badge-encerrada    { background: var(--surface-4); color: var(--text-muted); border-color: var(--border); }
.badge-encerrada .badge-dot { background: var(--text-muted); }
.badge-aguardando   { background: var(--info-bg); color: var(--info-soft); border-color: var(--info-border); }
.badge-aguardando .badge-dot { background: var(--info-soft); }
.badge-aberto       { background: var(--warning-bg); color: var(--warning-soft); border-color: var(--warning-border); }
.badge-aberto .badge-dot { background: var(--warning-soft); }
.badge-recebido     { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-recebido .badge-dot { background: var(--success-soft); }
.badge-pago         { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-pago .badge-dot { background: var(--success-soft); }
.badge-vencido      { background: var(--danger-bg); color: var(--danger-soft); border-color: var(--danger-border); }
.badge-vencido .badge-dot { background: var(--danger-soft); }
.badge-concluida    { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-concluida .badge-dot { background: var(--success-soft); }
.badge-em_andamento { background: var(--info-bg); color: var(--info-soft); border-color: var(--info-border); }
.badge-em_andamento .badge-dot { background: var(--info-soft); }
.badge-agendada     { background: var(--warning-bg); color: var(--warning-soft); border-color: var(--warning-border); }
.badge-agendada .badge-dot { background: var(--warning-soft); }
.badge-aguardando-mn{ background: var(--surface-4); color: var(--text-muted); border-color: var(--border); }
.badge-preventiva   { background: var(--info-bg); color: var(--info-soft); border-color: var(--info-border); }
.badge-preventiva .badge-dot { background: var(--info-soft); }
.badge-corretiva    { background: var(--danger-bg); color: var(--danger-soft); border-color: var(--danger-border); }
.badge-corretiva .badge-dot { background: var(--danger-soft); }
.badge-saida        { background: var(--yellow-glow); color: var(--yellow); border-color: var(--border-yellow); }
.badge-saida .badge-dot { background: var(--yellow); }
.badge-retorno      { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-retorno .badge-dot { background: var(--success-soft); }
.badge-ativo        { background: var(--success-bg); color: var(--success-soft); border-color: var(--success-border); }
.badge-ativo .badge-dot { background: var(--success-soft); }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

thead th {
  text-align: left;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 8px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
thead th:first-child { padding-left: 20px; }
thead th:last-child { padding-right: 20px; }

tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 12px 14px; font-size: 13px; color: var(--text); vertical-align: middle; }
tbody td:first-child { padding-left: 20px; }
tbody td:last-child { padding-right: 20px; }
tbody td.muted { color: var(--text-muted); }
tbody td.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
tbody td.yellow { color: var(--yellow); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
tbody td.green  { color: var(--success-soft); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
tbody td.red    { color: var(--danger-soft); font-weight: 700; font-family: 'JetBrains Mono', monospace; }

.table-actions { display: flex; gap: 4px; }
.action-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-xs);
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--t);
}
.action-btn:hover { background: var(--surface-4); color: var(--yellow); border-color: var(--border-yellow); }
.action-btn.danger:hover { color: var(--danger-soft); border-color: var(--danger-border); background: var(--danger-bg); }
.action-btn.success:hover { color: var(--success-soft); border-color: var(--success-border); background: var(--success-bg); }

/* ── Filter Bar ─────────────────────────────────────────────────────────── */
.filters-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters-bar-label { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-right: 4px; display: flex; align-items: center; gap: 5px; }
.filters-spacer { flex: 1; }

.filter-input, .filter-select {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 12.5px; padding: 6px 12px;
  font-family: 'Inter', sans-serif; transition: all var(--t); outline: none;
}
.filter-input { min-width: 200px; }
.filter-input::placeholder { color: var(--text-dim); }
.filter-input:focus, .filter-select:focus { border-color: var(--yellow); background: var(--surface-4); box-shadow: 0 0 0 2px var(--yellow-glow2); }
.filter-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236E6E7A' d='M5 7L0 2h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; cursor: pointer; }
.filter-select option { background: var(--surface-4); }

/* ── Form ───────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.form-required { color: var(--yellow); }

.form-input, .form-select, .form-textarea {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; padding: 9px 12px;
  font-family: 'Inter', sans-serif; transition: all var(--t); outline: none; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow-glow2);
  background: var(--surface-4);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236E6E7A' d='M5 7L0 2h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; cursor: pointer; }
.form-select option { background: var(--surface-4); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint { font-size: 11px; color: var(--text-dim); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--t), visibility 0s linear var(--t);
}
.modal-overlay.open { opacity: 1; pointer-events: all; visibility: visible; transition-delay: 0s; }

.modal {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 680px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.99);
  transition: transform var(--t);
  display: flex; flex-direction: column;
  position: relative;
}
.modal::before { /* top accent */ content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--yellow), transparent 70%); }

.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 860px; }
.modal-sm { max-width: 460px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface-2); z-index: 1;
  gap: 12px;
}
.modal-title { font-size: 15px; font-weight: 800; color: var(--white); letter-spacing: -0.2px; }
.modal-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--t); flex-shrink: 0;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger-soft); border-color: var(--danger-border); }

.modal-body { padding: 22px; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab-btn {
  padding: 9px 16px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all var(--t);
  margin-bottom: -1px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ── Info Grid ──────────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.info-value { font-size: 13.5px; color: var(--text); font-weight: 600; }
.info-value.yellow { color: var(--yellow); font-family: 'JetBrains Mono', monospace; }
.info-value.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Stat Row ───────────────────────────────────────────────────────────── */
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.stat-row:last-child { border-bottom: none; }
.stat-row-label { font-size: 12.5px; color: var(--text-muted); }
.stat-row-value { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.stat-row-value.yellow { color: var(--yellow); font-family: 'JetBrains Mono', monospace; }
.stat-row-value.green  { color: var(--success-soft); font-family: 'JetBrains Mono', monospace; }
.stat-row-value.red    { color: var(--danger-soft); font-family: 'JetBrains Mono', monospace; }

/* ── Alert Boxes ────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; border: 1px solid;
}
.alert-icon { display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.alert-content { flex: 1; }
.alert-title { font-weight: 700; margin-bottom: 2px; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-soft); }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger-soft); }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-soft); }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border);    color: var(--info-soft); }

/* ── Progress ───────────────────────────────────────────────────────────── */
.progress-bar { height: 3px; background: var(--surface-4); border-radius: 1px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 1px; background: var(--yellow); transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.progress-fill.green { background: var(--success-soft); }
.progress-fill.red   { background: var(--danger-soft); }

/* ── Horimeter Badge ─────────────────────────────────────────────────────── */
.hor-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 2px 7px;
  font-size: 11.5px; font-weight: 600; color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
}
.hor-badge svg { color: var(--text-dim); }

/* ── Equipment Cards with Real Machine Photos ────────────────────────────── */
.eq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

/* Staggered entry animation */
@keyframes eqCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.eq-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  display: flex; flex-direction: column;
  animation: eqCardIn 0.45s cubic-bezier(0.23,1,0.32,1) both;
}
.eq-card:nth-child(1) { animation-delay: 0.02s; }
.eq-card:nth-child(2) { animation-delay: 0.07s; }
.eq-card:nth-child(3) { animation-delay: 0.12s; }
.eq-card:nth-child(4) { animation-delay: 0.17s; }
.eq-card:nth-child(5) { animation-delay: 0.22s; }
.eq-card:nth-child(6) { animation-delay: 0.27s; }
.eq-card:nth-child(7) { animation-delay: 0.32s; }
.eq-card:nth-child(8) { animation-delay: 0.37s; }
.eq-card:nth-child(9) { animation-delay: 0.42s; }
.eq-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.50), 0 0 0 1px var(--border-yellow), 0 0 40px rgba(245,197,24,0.06);
}
.eq-card:hover .eq-card-photo { transform: scale(1.06); }
.eq-card:hover .eq-card-hover-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }

.eq-card-media {
  position: relative;
  width: 100%;
  height: 165px;
  background: var(--surface-3);
  overflow: hidden;
}

.eq-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.eq-card-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: var(--surface-3);
}

.eq-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,8,0.15) 0%, rgba(6,6,8,0) 35%, rgba(13,13,16,0.96) 100%);
  pointer-events: none;
}

.eq-card-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.eq-card-cat-tag {
  position: absolute;
  bottom: 8px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--yellow);
  background: rgba(6,6,8,0.85);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  backdrop-filter: blur(4px);
}

/* Hover action overlay */
.eq-card-hover-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex; gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.eq-card-hover-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--t);
}
.eq-card-hover-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.eq-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.eq-card-header-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.eq-card-nome { font-size: 14px; font-weight: 800; color: var(--white); line-height: 1.3; flex: 1; }
.eq-card-receita {
  font-size: 13px; font-weight: 800; color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  background: var(--yellow-glow);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(245,197,24,0.15);
}

.eq-card-operador {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 8px;
}
.eq-card-operador svg { color: var(--text-dim); }
.eq-card-operador .nome { color: var(--text); font-weight: 600; }

.eq-card-meta { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }

.eq-card-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid var(--border);
}
.eq-card-meta-row:last-child { border-bottom: none; }
.eq-meta-label { color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.eq-meta-label svg { color: var(--text-dim); }
.eq-meta-val { color: var(--text); font-weight: 600; text-align: right; }

/* Rentability bar */
.eq-card-rent {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.eq-card-rent-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px;
}
.eq-card-rent-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.eq-card-rent-val {
  font-size: 11px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.eq-card-rent-val.positive { color: var(--success-soft); }
.eq-card-rent-val.negative { color: var(--danger-soft); }
.eq-card-rent-bar {
  height: 4px; background: var(--surface-4); border-radius: 2px; overflow: hidden;
}
.eq-card-rent-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.eq-card-rent-fill.positive { background: linear-gradient(90deg, var(--success), var(--success-soft)); }
.eq-card-rent-fill.negative { background: linear-gradient(90deg, var(--danger), var(--danger-soft)); }

/* ── Sortable Table Headers ──────────────────────────────────────────────── */
th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--t);
}
th.sortable:hover { color: var(--yellow); }
th.sortable .sort-icon {
  display: inline-flex; margin-left: 4px;
  color: var(--text-dim);
  transition: color var(--t);
}
th.sortable:hover .sort-icon { color: var(--yellow); }
th.sortable.sort-active { color: var(--yellow); }
th.sortable.sort-active .sort-icon { color: var(--yellow); }

/* ── Equipment Thumbnails ────────────────────────────────────────────────── */
.eq-thumb {
  width: 44px;
  height: 32px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-4);
  flex-shrink: 0;
  display: block;
}

.eq-thumb-fallback {
  width: 44px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ── Equipment Photo Upload ──────────────────────────────────────────────── */
.eq-foto-upload {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.eq-foto-dropzone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.eq-foto-dropzone:hover,
.eq-foto-dropzone.dragover {
  border-color: var(--yellow);
  background: var(--yellow-glow);
}
.eq-foto-dropzone.dragover {
  box-shadow: inset 0 0 30px rgba(245,197,24,0.08);
}
.eq-foto-dropzone-icon { color: var(--text-dim); transition: color var(--t); }
.eq-foto-dropzone:hover .eq-foto-dropzone-icon,
.eq-foto-dropzone.dragover .eq-foto-dropzone-icon { color: var(--yellow); }
.eq-foto-dropzone-text {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: color var(--t);
}
.eq-foto-dropzone:hover .eq-foto-dropzone-text { color: var(--text); }
.eq-foto-dropzone-hint {
  font-size: 10.5px; color: var(--text-dim);
}

.eq-foto-preview {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.eq-foto-preview img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.eq-foto-preview-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,8,0.7);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.eq-foto-preview:hover .eq-foto-preview-overlay { opacity: 1; }

.eq-foto-preview-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-4);
  border: 1px solid var(--border-2);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--t);
}
.eq-foto-preview-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.eq-foto-preview-btn.danger:hover {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

/* ── Equipment Detail Hero Banner ────────────────────────────────────────── */
.eq-detail-hero {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--surface-3);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.eq-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eq-detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,8,0.3) 0%, rgba(6,6,8,0.1) 40%, rgba(18,18,22,1) 100%);
}

.eq-detail-hero-content {
  position: absolute;
  bottom: 16px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.eq-detail-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.eq-detail-sub {
  font-size: 12px;
  color: var(--text);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 12px; top: 28px; bottom: 0;
  width: 1px; background: var(--border); z-index: 0;
}
.timeline-dot {
  width: 26px; height: 26px; border-radius: var(--radius-xs);
  background: var(--surface-3); border: 1px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0; z-index: 1;
  color: var(--text-muted);
}
.timeline-dot.yellow { border-color: var(--border-yellow); color: var(--yellow); background: var(--yellow-glow); }
.timeline-dot.green  { border-color: var(--success-border); color: var(--success-soft); background: var(--success-bg); }
.timeline-dot.red    { border-color: var(--danger-border); color: var(--danger-soft); background: var(--danger-bg); }
.timeline-content { flex: 1; padding-top: 3px; }
.timeline-title { font-size: 13px; font-weight: 600; color: var(--text); }
.timeline-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline-body { font-size: 12px; color: var(--text-muted); margin-top: 6px; padding: 8px 10px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ── Chart ──────────────────────────────────────────────────────────────── */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-bottom: 20px; }
.chart-bar-group { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.chart-bar {
  width: 100%; min-height: 3px;
  background: var(--yellow);
  border-radius: 2px 2px 0 0;
  transition: height 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative; cursor: default;
  opacity: 0.85;
}
.chart-bar:hover { opacity: 1; }
.chart-bar-val {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; color: var(--yellow);
  white-space: nowrap; font-family: 'JetBrains Mono', monospace;
}
.chart-bar-label { font-size: 10px; color: var(--text-muted); font-weight: 600; }

/* ── Result Card ─────────────────────────────────────────────────────────── */
.result-card {
  background: var(--surface-3); border: 1px solid var(--border-yellow);
  border-radius: var(--radius-lg); padding: 16px;
  position: relative; overflow: hidden;
}
.result-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--yellow); }
.result-total { font-size: 24px; font-weight: 900; letter-spacing: -1px; font-family: 'JetBrains Mono', monospace; }
.result-total.positive { color: var(--success-soft); }
.result-total.negative { color: var(--danger-soft); }

/* ── Financial result row ────────────────────────────────────────────────── */
.fin-eq-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.fin-eq-row:last-child { border-bottom: none; }
.fin-eq-row:hover { background: rgba(255,255,255,0.02); }
.fin-eq-icon { color: var(--yellow); display: grid; place-items: center; flex-shrink: 0; }
.fin-eq-info { flex: 1; min-width: 0; }
.fin-eq-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.fin-eq-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.fin-eq-values { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fin-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 80px; }
.fin-val-label { font-size: 9.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.fin-val-num { font-size: 13px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.fin-val-num.green { color: var(--success-soft); }
.fin-val-num.red   { color: var(--danger-soft); }
.fin-val-num.yellow{ color: var(--yellow); }
.fin-val-num.muted { color: var(--text-muted); font-weight: 600; }

/* ── View Toggle ─────────────────────────────────────────────────────────── */
.view-toggle { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
.view-btn { width: 28px; height: 26px; border-radius: 3px; border: none; background: none; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: all var(--t); }
.view-btn.active { background: var(--yellow); color: var(--black); }

/* ── Check-in steps ─────────────────────────────────────────────────────── */
.checkin-steps { display: flex; align-items: center; margin-bottom: 24px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 14px; left: calc(50% + 14px); right: calc(-50% + 14px);
  height: 1px; background: var(--border); z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--yellow); }
.step-dot {
  width: 28px; height: 28px;
  border-radius: var(--radius-xs);
  background: var(--surface-3); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  position: relative; z-index: 1; transition: all var(--t);
  font-family: 'JetBrains Mono', monospace;
}
.step-item.done .step-dot { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.step-item.active .step-dot { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); }
.step-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }
.step-item.active .step-label { color: var(--yellow); }

/* ── Checkin Card ───────────────────────────────────────────────────────── */
.checkin-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.checkin-card:hover { border-color: var(--border-2); }

/* ── Fuel indicator ─────────────────────────────────────────────────────── */
.fuel-bar { display: flex; align-items: center; gap: 6px; }
.fuel-track { width: 50px; height: 6px; background: var(--surface-4); border-radius: 1px; overflow: hidden; }
.fuel-fill { height: 100%; border-radius: 1px; }
.fuel-fill.high { background: var(--success-soft); }
.fuel-fill.mid  { background: var(--warning-soft); }
.fuel-fill.low  { background: var(--danger-soft); }
.fuel-pct { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; gap: 10px; color: var(--text-muted);
}
.empty-state-icon { color: var(--text-dim); opacity: 0.6; }
.empty-state-title { font-size: 14px; font-weight: 700; color: var(--text); }
.empty-state-desc { font-size: 12.5px; text-align: center; max-width: 280px; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-lg); min-width: 260px;
  animation: toastIn 0.25s cubic-bezier(0.4,0,0.2,1) forwards;
  color: var(--text); font-size: 13px; font-weight: 500;
}
.toast-icon { flex-shrink: 0; color: var(--text-muted); }
.toast.success { border-left: 3px solid var(--success-soft); }
.toast.error   { border-left: 3px solid var(--danger-soft); }
.toast.warning { border-left: 3px solid var(--warning-soft); }
.toast.info    { border-left: 3px solid var(--info-soft); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Divider ────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider-label { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.divider-label span { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* ── Industrial decorative elements ─────────────────────────────────────── */

/* Hatched section divider */
.hatch-divider {
  height: 3px;
  background: repeating-linear-gradient(
    45deg, var(--yellow), var(--yellow) 3px,
    transparent 3px, transparent 9px
  );
  opacity: 0.25;
  margin: 20px 0;
}

/* Metric block (technical readout style) */
.metric-block {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  position: relative;
}
.metric-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--yellow);
  border-radius: 2px 0 0 2px;
}
.metric-label { font-size: 9.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.metric-value { font-size: 20px; font-weight: 900; color: var(--white); font-family: 'JetBrains Mono', monospace; letter-spacing: -0.5px; margin-top: 3px; }
.metric-value.yellow { color: var(--yellow); }
.metric-value.green  { color: var(--success-soft); }
.metric-value.red    { color: var(--danger-soft); }
.metric-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }

/* Status strip */
.status-strip {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.status-strip-item {
  flex: 1; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--border);
  transition: background var(--t);
}
.status-strip-item:last-child { border-right: none; }
.status-strip-item:hover { background: var(--surface-3); }
.status-strip-label { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; }
.status-strip-val { font-size: 18px; font-weight: 900; font-family: 'JetBrains Mono', monospace; }

/* Equipment KPI Strip */
.eq-kpi-strip {
  display: flex; gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.eq-kpi-item {
  flex: 1; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--border);
  transition: background var(--t);
  position: relative;
}
.eq-kpi-item:last-child { border-right: none; }
.eq-kpi-item:hover { background: var(--surface-3); }
.eq-kpi-item-label {
  font-size: 9px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.7px;
  display: flex; align-items: center; gap: 5px;
}
.eq-kpi-item-label svg { color: var(--text-dim); }
.eq-kpi-item-val {
  font-size: 22px; font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.eq-kpi-item-sub {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}
.eq-kpi-utilization {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--radius-xs);
  margin-top: 2px;
}
.eq-kpi-utilization.high { background: var(--success-bg); color: var(--success-soft); border: 1px solid var(--success-border); }
.eq-kpi-utilization.mid  { background: var(--warning-bg); color: var(--warning-soft); border: 1px solid var(--warning-border); }
.eq-kpi-utilization.low  { background: var(--danger-bg);  color: var(--danger-soft);  border: 1px solid var(--danger-border); }

/* Tag chip */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 2px 8px;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}

/* ── Obras / Contratos Cards & Layout ────────────────────────────────────── */
.obra-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

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

.obra-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: obraCardIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.obra-card:hover {
  border-color: var(--border-yellow);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}
.obra-card.status-ativa {
  border-left: 3px solid var(--yellow);
}
.obra-card.status-aguardando {
  border-left: 3px solid var(--info-soft);
}
.obra-card.status-encerrada {
  border-left: 3px solid var(--text-dim);
  opacity: 0.85;
}

.obra-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.obra-card-client-wrap {
  flex: 1;
  min-width: 0;
}
.obra-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.obra-card-cliente {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 2px;
}
.obra-card-nome {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.obra-card-valor-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.obra-card-valor {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.obra-card-tipo {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Timeline progress */
.obra-timeline-box {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.obra-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.obra-timeline-dates {
  font-weight: 600;
  color: var(--text);
}
.obra-timeline-label {
  font-size: 10.5px;
  font-weight: 600;
}
.obra-timeline-label.normal  { color: var(--text-muted); }
.obra-timeline-label.warning { color: var(--warning-soft); }
.obra-timeline-label.ended   { color: var(--text-dim); }
.obra-timeline-label.waiting { color: var(--info-soft); }

.obra-timeline-bar {
  height: 5px;
  background: var(--surface-4);
  border-radius: 3px;
  overflow: hidden;
}
.obra-timeline-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--yellow);
  transition: width 0.5s ease;
}
.obra-timeline-fill.warning { background: var(--warning-soft); }
.obra-timeline-fill.ended   { background: var(--text-dim); }
.obra-timeline-fill.waiting { background: var(--info-soft); }

/* Details & Chips */
.obra-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.obra-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.obra-detail-row svg {
  color: var(--text-dim);
  flex-shrink: 0;
}
.obra-detail-text {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obra-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.obra-chip-eq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 8px 3px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}
.obra-chip-eq img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}
.obra-chip-operator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.obra-chip-operator svg { color: var(--yellow); }
.obra-chip-operator strong { color: var(--text); font-weight: 600; }

.obra-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.obra-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--yellow);
  font-weight: 700;
}
.obra-hours-badge svg { color: var(--text-dim); }

/* Dashboard Active Contracts List */
.dash-contract-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--t);
  cursor: pointer;
  margin-bottom: 8px;
}
.dash-contract-item:last-child { margin-bottom: 0; }
.dash-contract-item:hover {
  background: var(--surface-3);
  border-color: var(--border-yellow);
  transform: translateX(2px);
}
.dash-contract-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.dash-contract-client {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
}
.dash-contract-val {
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--yellow);
}
.dash-contract-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-contract-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}


/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-2-1, .grid-1-2, .grid-3 { grid-template-columns: 1fr; }
  .eq-kpi-strip { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .eq-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 640px) {
  :root { --sidebar-w: 0px; }
  #sidebar { transform: translateX(-252px); width: 252px; transition: transform var(--t); }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  #page { padding: 14px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .eq-cards { grid-template-columns: 1fr; }
  .eq-kpi-strip { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TJ GESTÃO — Refinamento visual 2026
   Operacional premium: menos cor, mais hierarquia, profundidade e movimento
═══════════════════════════════════════════════════════════════════════════ */
:root {
  --yellow: #f2c94c;
  --yellow-dark: #d9ad2b;
  --yellow-dim: #a98418;
  --yellow-glow: rgba(242, 201, 76, 0.10);
  --yellow-glow2: rgba(242, 201, 76, 0.035);
  --black: #0b0c0e;
  --surface: #101114;
  --surface-2: #15171b;
  --surface-3: #1b1d22;
  --surface-4: #23262c;
  --surface-5: #2c3037;
  --border: rgba(255, 255, 255, 0.075);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-yellow: rgba(242, 201, 76, 0.30);
  --text: #e7e9ed;
  --text-muted: #969ca7;
  --text-dim: #626873;
  --sidebar-w: 264px;
  --topbar-h: 68px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 8px 24px rgba(0, 0, 0, .10);
  --shadow: 0 18px 42px rgba(0, 0, 0, .24);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .48);
  --t: .22s cubic-bezier(.2, .8, .2, 1);
}

html { background: var(--black); }

body {
  background:
    radial-gradient(circle at 78% -10%, rgba(242, 201, 76, .055), transparent 28rem),
    linear-gradient(145deg, #0d0e11 0%, #0b0c0e 52%, #0e0f12 100%);
  font-size: 14px;
  letter-spacing: -.005em;
}

button, input, select, textarea { font: inherit; }
button, .nav-item, .card-action, .topbar-icon-btn, .topbar-search { touch-action: manipulation; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-item:focus-visible,
.card-action:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#sidebar {
  background: rgba(15, 16, 19, .92);
  border-right-color: rgba(255, 255, 255, .085);
  box-shadow: 18px 0 60px rgba(0, 0, 0, .16);
  backdrop-filter: blur(24px) saturate(120%);
}

.sidebar-logo {
  height: var(--topbar-h);
  padding: 0 20px;
  gap: 13px;
}

.sidebar-logo::after { left: 20px; right: 20px; }

.sidebar-logo-mark {
  width: 38px;
  height: 38px;
  clip-path: none;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(242, 201, 76, .16);
}

.sidebar-logo-mark span { font-size: 13px; letter-spacing: -.7px; }
.sidebar-logo-text strong { font-size: 14px; letter-spacing: -.2px; }
.sidebar-logo-text em { margin-top: 3px; font-size: 9px; letter-spacing: 1.4px; }
.sidebar-nav { padding: 18px 10px; }
.nav-section-label { padding: 10px 10px 8px; color: #6f747d; }

.nav-item {
  min-height: 44px;
  padding: 10px 12px;
  margin: 3px 0;
  border-radius: 10px;
  color: #8f959f;
  font-weight: 520;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .055);
  color: #f5f6f7;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(242, 201, 76, .15), rgba(242, 201, 76, .045));
  color: #f6d970;
  border-color: rgba(242, 201, 76, .16);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.nav-icon { width: 22px; opacity: .88; }
.nav-badge { min-width: 20px; padding: 2px 6px; border-radius: 20px; text-align: center; }
.sidebar-footer { padding: 14px; }

.sidebar-user {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.sidebar-avatar { clip-path: none; border-radius: 9px; }

#topbar {
  padding: 0 32px;
  gap: 10px;
  background: rgba(11, 12, 14, .74);
  border-bottom-color: rgba(255, 255, 255, .075);
  backdrop-filter: blur(24px) saturate(130%);
}

.topbar-page-info { gap: 12px; }
.topbar-page-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--yellow-glow);
  border: 1px solid rgba(242, 201, 76, .13);
}
.topbar-title { font-size: 14px; letter-spacing: -.15px; }
.topbar-search { min-width: 220px; min-height: 38px; padding: 8px 13px; background: rgba(255, 255, 255, .035); }
.topbar-search:hover { background: rgba(255, 255, 255, .06); }
.topbar-icon-btn { width: 38px; height: 38px; background: rgba(255, 255, 255, .035); }
.topbar-icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

#page {
  padding: 32px clamp(24px, 3vw, 48px) 48px;
  max-width: 1780px;
  width: 100%;
  margin: 0 auto;
}

#page.page-enter > * { animation: page-rise .34s cubic-bezier(.2, .8, .2, 1) both; }
#page.page-enter > *:nth-child(2) { animation-delay: 35ms; }
#page.page-enter > *:nth-child(3) { animation-delay: 70ms; }
#page.page-enter > *:nth-child(4) { animation-delay: 105ms; }

@keyframes page-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header { margin-bottom: 28px; align-items: center; }
.section-header-left { gap: 5px; }
.section-title { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.65px; gap: 11px; }
.section-title-bar { width: 4px; height: 24px; border-radius: 4px; box-shadow: 0 0 18px rgba(242, 201, 76, .20); }
.section-subtitle { margin-left: 15px; font-size: 12.5px; text-transform: capitalize; color: #838994; }
.section-actions { gap: 10px; }

.btn {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 9px;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:active { transform: scale(.98); }
.btn-primary { box-shadow: 0 8px 22px rgba(242, 201, 76, .11); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 201, 76, .19); }
.btn-secondary, .btn-ghost { background: rgba(255, 255, 255, .035); }
.btn-sm { min-height: 36px; }

.card,
.kpi-card,
.status-strip {
  background: linear-gradient(145deg, rgba(27, 29, 34, .92), rgba(20, 22, 26, .96));
  border-color: rgba(255, 255, 255, .085);
  box-shadow: var(--shadow-sm);
}

.card { padding: 22px; border-radius: 16px; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.card:hover { border-color: rgba(255, 255, 255, .13); box-shadow: var(--shadow); }
.card-header { margin-bottom: 19px; }
.card-title { font-size: 13.5px; letter-spacing: -.1px; }
.card-subtitle { margin-top: 4px; color: #858b96; }
.card-action {
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 9px;
  color: #c2c6cd;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.card-action:hover { opacity: 1; color: var(--yellow); border-color: var(--border-yellow); transform: translateX(2px); }

.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card { min-height: 142px; padding: 20px; gap: 13px; border-radius: 16px; }
.kpi-card::before { height: 2px; background: linear-gradient(90deg, var(--yellow), transparent 68%); }
.kpi-card::after { display: none; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi-label { color: #858b96; letter-spacing: .9px; }
.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #a6abb4;
  background: rgba(255, 255, 255, .045);
}
.kpi-value,
.kpi-value.yellow,
.kpi-value.green,
.kpi-value.blue { color: #f5f6f7; font-size: 29px; font-weight: 780; letter-spacing: -1.2px; }
.kpi-sub { color: #858b96; }

.status-strip { border-radius: 14px; overflow: hidden; }
.status-strip-item { min-height: 82px; padding: 16px 18px; border-right-color: var(--border); transition: background var(--t); }
.status-strip-item:hover { background: rgba(255, 255, 255, .035); }
.status-strip-label { color: #7f8590; }
.status-strip-val { font-size: 21px; color: #f0f1f3 !important; }

.grid-2, .grid-2-1, .grid-1-2, .grid-3 { gap: 18px; }
.dash-contract-item { border-radius: 12px; transition: transform var(--t), background var(--t), border-color var(--t); }
.dash-contract-item:hover { transform: translateX(3px); }
.stat-row { min-height: 48px; transition: background var(--t), padding var(--t); }
.stat-row[onclick]:hover { background: rgba(255, 255, 255, .025); padding-left: 8px; padding-right: 8px; }

.badge { border-radius: 999px; padding: 4px 8px; font-weight: 650; }
.badge-dot { width: 6px; height: 6px; }
.progress-bar { background: rgba(255, 255, 255, .055); }

.table-wrapper { border-radius: 12px; border: 1px solid var(--border); }
table { border-collapse: separate; border-spacing: 0; }
thead { background: rgba(255, 255, 255, .035); }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: rgba(255, 255, 255, .028); }

input, select, textarea, .form-control {
  min-height: 44px;
  border-radius: 9px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: rgba(242, 201, 76, .48);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, .08);
}

.modal-overlay { background: rgba(4, 5, 7, .72); backdrop-filter: blur(8px); }
.modal { border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal-overlay.open .modal { animation: modal-in .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.toast { border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  #topbar { padding: 0 20px; }
  #page { padding: 24px 20px 40px; }
  .topbar-search { min-width: 0; width: 42px; justify-content: center; padding: 0; }
  .topbar-search span { display: none; }
}

@media (max-width: 640px) {
  :root { --sidebar-w: 0px; --topbar-h: 60px; }
  #sidebar { width: 264px; transform: translateX(-264px); }
  #page { padding: 20px 14px 36px; }
  .section-header { align-items: flex-start; }
  .section-actions { width: 100%; }
  .section-actions .btn { flex: 1; justify-content: center; }
  .kpi-grid { grid-template-columns: 1fr; }
  .status-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
  .status-strip-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIREÇÃO HÍBRIDA — sidebar industrial + workspace editorial claro
═══════════════════════════════════════════════════════════════════════════ */
body { background: #101114; }

#main {
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f3f4f6;
  --surface-4: #e9ebee;
  --surface-5: #dfe2e6;
  --border: #e6e8eb;
  --border-2: #d5d9de;
  --border-yellow: rgba(172, 132, 9, .30);
  --white: #181b20;
  --text: #24272d;
  --text-muted: #68707c;
  --text-dim: #9aa1ab;
  --yellow: #e4b82e;
  --yellow-dark: #c99d16;
  --yellow-dim: #8b6b08;
  --yellow-glow: rgba(228, 184, 46, .13);
  --yellow-glow2: rgba(228, 184, 46, .07);
  --success-soft: #168455;
  --warning-soft: #b3620b;
  --danger-soft: #c23b3b;
  --info-soft: #386ba5;
  background:
    radial-gradient(circle at 88% 0%, rgba(228, 184, 46, .08), transparent 30rem),
    #f5f6f7;
  color: var(--text);
}

#main .cash-kpis strong,
#main .cash-account-list b,
#main .cash-forecast-flow strong,
#main .cash-alert-row strong,
#main .cash-closing-status strong { color: var(--text); }
#main .cash-kpis strong.green,
#main .cash-account-list b.green,
#main .cash-forecast-flow .positive strong { color: var(--success-soft); }
#main .cash-kpis strong.red,
#main .cash-account-list b.red,
#main .cash-forecast-flow .negative strong { color: var(--danger-soft); }

#topbar {
  color: var(--text);
  background: rgba(250, 250, 250, .86);
  border-bottom-color: rgba(28, 31, 36, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.topbar-page-icon {
  color: #8c6d10;
  background: #fff8dd;
  border-color: #f1e3ad;
}
.topbar-title { color: #26292e; }
.topbar-search,
.topbar-icon-btn { color: #727985; background: rgba(255, 255, 255, .82); border-color: #e1e4e8; }
.topbar-search:hover,
.topbar-icon-btn:hover { color: #292c31; background: #fff; border-color: #cfd3d8; box-shadow: 0 6px 18px rgba(25, 29, 35, .08); }

#page { background: transparent; }
.dashboard-header { margin: 4px 0 32px; }
.dashboard-header .section-title { font-size: clamp(25px, 2.4vw, 34px); font-weight: 720; color: #1c1f24; letter-spacing: -1.15px; }
.dashboard-header .section-title-bar { display: none; }
.dashboard-header .section-subtitle { margin-left: 0; font-size: 13px; color: #717985; }
.dashboard-header .section-actions { align-self: flex-end; }

#main .btn-primary { color: #191b1f; background: #f1c538; border-color: #e6b925; box-shadow: 0 6px 16px rgba(177, 133, 4, .12); }
#main .btn-primary:hover { background: #e7b92b; border-color: #d8a91d; box-shadow: 0 10px 22px rgba(177, 133, 4, .18); }
#main .btn-ghost,
#main .btn-secondary { color: #424850; background: #fff; border-color: #dde0e4; box-shadow: 0 1px 2px rgba(25, 29, 35, .03); }
#main .btn-ghost:hover,
#main .btn-secondary:hover { background: #fafafa; color: #191c20; border-color: #cdd1d6; }

#main .status-strip {
  background: #1b1d21;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(22, 24, 28, .14);
}
#main .status-strip-item { min-height: 88px; border-right-color: rgba(255, 255, 255, .09); }
#main .status-strip-item:hover { background: rgba(255, 255, 255, .045); }
#main .status-strip-label { color: #9298a2; }
#main .status-strip-val { color: #fff !important; font-size: 23px; }

#main .kpi-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
#main .kpi-card {
  grid-column: span 3;
  min-height: 150px;
  background: #fff;
  border-color: #e5e7ea;
  box-shadow: 0 1px 2px rgba(24, 27, 31, .025), 0 10px 28px rgba(24, 27, 31, .045);
}
#main .kpi-card:first-child { grid-column: span 4; }
#main .kpi-card:nth-child(2) { grid-column: span 3; }
#main .kpi-card:nth-child(3) { grid-column: span 2; }
#main .kpi-card:nth-child(4) { grid-column: span 3; }
#main .kpi-card:hover { border-color: #d5d8dc; box-shadow: 0 16px 34px rgba(24, 27, 31, .08); }
#main .kpi-card::before { opacity: 0; height: 3px; }
#main .kpi-card:hover::before { opacity: 1; }
#main .kpi-label { color: #747c87; }
#main .kpi-icon { color: #666e79; background: #f2f3f5; }
#main .kpi-value,
#main .kpi-value.yellow,
#main .kpi-value.green,
#main .kpi-value.blue { color: #202329; }
#main .kpi-sub { color: #767e89; }

#main .card {
  background: #fff;
  border-color: #e4e7ea;
  box-shadow: 0 1px 2px rgba(24, 27, 31, .025), 0 12px 30px rgba(24, 27, 31, .045);
}
#main .card:hover { border-color: #d7dade; box-shadow: 0 18px 38px rgba(24, 27, 31, .075); }
#main .card-title { color: #24272d; }
#main .card-subtitle { color: #78808b; }
#main .card-action { color: #59616c; background: #f5f6f7; border-color: #e7e9ec; }
#main .card-action:hover { color: #775b08; background: #fff8dd; border-color: #eddfa9; }

#main .grid-2 { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
#main .grid-2:last-child { grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); }
#main .dash-contract-item { background: #f8f9fa; border-color: #e8eaed; }
#main .dash-contract-item:hover { background: #f3f4f5; border-color: #d9dde1; }
#main .dash-contract-client,
#main .dash-contract-val { color: #262a30; }
#main .dash-contract-sub { color: #737b87; }

#main .obra-timeline-box,
#main .obra-chip-eq { background: #fff; border-color: #e4e7ea; }
#main .progress-bar { background: #eceef1; }
#main .stat-row { border-bottom-color: #eceef0; }
#main .stat-row[onclick]:hover { background: #f7f8f9; }
#main .stat-row-label { color: #626a75; }
#main .stat-row-value { color: #25292f; }

#main .alert { box-shadow: none; }
#main .alert-warning { background: #fff9eb; border-color: #f0dfb5; color: #745119; }
#main .alert-success { background: #eef8f3; border-color: #cfe8dc; color: #17653f; }
#main .alert-danger { background: #fff1f1; border-color: #efd2d2; color: #8f3030; }
#main .alert-info { background: #f0f5fb; border-color: #d5e2f1; color: #315d8c; }

#main .badge { font-weight: 650; }
#main .badge-disponivel,
#main .badge-ativa,
#main .badge-recebido,
#main .badge-pago,
#main .badge-concluida,
#main .badge-retorno,
#main .badge-ativo { background: #eef8f3; color: #176b44; border-color: #cee8dc; }
#main .badge-alugada,
#main .badge-saida { background: #fff8df; color: #80620b; border-color: #efe0a6; }
#main .badge-manutencao,
#main .badge-aberto,
#main .badge-agendada { background: #fff4e7; color: #9b5711; border-color: #efd7bb; }
#main .badge-parada,
#main .badge-vencido,
#main .badge-corretiva { background: #fff0f0; color: #a53636; border-color: #efd0d0; }

#main .table-wrapper { background: #fff; border-color: #e3e6e9; }
#main table { color: #30343a; }
#main thead { background: #f6f7f8; }
#main thead th { color: #6a727d; border-bottom-color: #e4e7ea; }
#main tbody tr { border-bottom-color: #eceef0; }
#main tbody tr:hover { background: #f8f9fa; }
#main tbody td { color: #3c424a; }

#main input,
#main select,
#main textarea,
#main .form-control { color: #25292f; background: #fff; border-color: #d9dde2; }
#main input::placeholder,
#main textarea::placeholder { color: #9ba1aa; }

#main .modal-overlay { background: rgba(14, 16, 19, .55); }
#main .modal { background: #fff; border-color: #e0e3e6; }
#main .modal { color: var(--text); }
#main .modal-header,
#main .modal-footer { background: #fff; border-color: #e7e9ec; }
#main .modal-title { color: #202329; }
#main .modal-subtitle { color: #757d87; }
#main .modal-close { color: #666e78; background: #f4f5f6; border-color: #e4e6e9; }

@media (max-width: 1180px) {
  #main .kpi-card,
  #main .kpi-card:first-child,
  #main .kpi-card:nth-child(2),
  #main .kpi-card:nth-child(3),
  #main .kpi-card:nth-child(4) { grid-column: span 6; }
  #main .grid-2,
  #main .grid-2:last-child { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #main .kpi-grid { grid-template-columns: 1fr; }
  #main .kpi-card,
  #main .kpi-card:first-child,
  #main .kpi-card:nth-child(2),
  #main .kpi-card:nth-child(3),
  #main .kpi-card:nth-child(4) { grid-column: auto; }
  #main .status-strip { grid-template-columns: 1fr 1fr; }
  #main .status-strip-item { border-color: rgba(255, 255, 255, .08); }
  .dashboard-header .section-actions { align-self: stretch; }
}

/* ── Alternância de tema ───────────────────────────────────────────────── */
.theme-toggle { appearance: none; padding: 0; font-family: inherit; }

body.theme-dark #main {
  --surface: #14161a;
  --surface-2: #191b20;
  --surface-3: #202329;
  --surface-4: #292d34;
  --surface-5: #323740;
  --border: rgba(255, 255, 255, .075);
  --border-2: rgba(255, 255, 255, .14);
  --border-yellow: rgba(242, 201, 76, .28);
  --white: #f5f6f7;
  --text: #e5e7eb;
  --text-muted: #969da8;
  --text-dim: #656c76;
  --yellow: #f2c94c;
  --yellow-dark: #d9ad2b;
  --yellow-dim: #b08b1b;
  --yellow-glow: rgba(242, 201, 76, .11);
  --yellow-glow2: rgba(242, 201, 76, .04);
  --success-soft: #58bd89;
  --warning-soft: #e3a34d;
  --danger-soft: #e46b6b;
  --info-soft: #74a3d7;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 201, 76, .055), transparent 30rem),
    #0d0f12;
}

body.theme-dark #topbar {
  color: var(--text);
  background: rgba(13, 15, 18, .84);
  border-bottom-color: rgba(255, 255, 255, .075);
  box-shadow: none;
}
body.theme-dark .topbar-page-icon { color: #f2c94c; background: rgba(242, 201, 76, .10); border-color: rgba(242, 201, 76, .14); }
body.theme-dark .topbar-title { color: #f0f1f3; }
body.theme-dark .topbar-search,
body.theme-dark .topbar-icon-btn { color: #9aa1ab; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
body.theme-dark .topbar-search:hover,
body.theme-dark .topbar-icon-btn:hover { color: #f5f6f7; background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .14); box-shadow: none; }

body.theme-dark .dashboard-header .section-title { color: #f2f3f5; }
body.theme-dark .dashboard-header .section-subtitle { color: #969da8; }

body.theme-dark #main .btn-ghost,
body.theme-dark #main .btn-secondary { color: #d2d5da; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .10); box-shadow: none; }
body.theme-dark #main .btn-ghost:hover,
body.theme-dark #main .btn-secondary:hover { color: #fff; background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .16); }

body.theme-dark #main .kpi-card,
body.theme-dark #main .card {
  background: linear-gradient(145deg, #191b20, #15171b);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 14px 32px rgba(0, 0, 0, .13);
}
body.theme-dark #main .kpi-card:hover,
body.theme-dark #main .card:hover { border-color: rgba(255, 255, 255, .14); box-shadow: 0 20px 44px rgba(0, 0, 0, .22); }
body.theme-dark #main .kpi-label,
body.theme-dark #main .kpi-sub,
body.theme-dark #main .card-subtitle { color: #9299a4; }
body.theme-dark #main .kpi-icon,
body.theme-dark #main .card-action { color: #abb1ba; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .07); }
body.theme-dark #main .kpi-value,
body.theme-dark #main .kpi-value.yellow,
body.theme-dark #main .kpi-value.green,
body.theme-dark #main .kpi-value.blue,
body.theme-dark #main .card-title { color: #f1f2f4; }
body.theme-dark #main .card-action:hover { color: #f2c94c; background: rgba(242, 201, 76, .09); border-color: rgba(242, 201, 76, .22); }

body.theme-dark #main .dash-contract-item { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .075); }
body.theme-dark #main .dash-contract-item:hover { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .12); }
body.theme-dark #main .dash-contract-client,
body.theme-dark #main .dash-contract-val { color: #eceef1; }
body.theme-dark #main .dash-contract-sub { color: #989fa9; }
body.theme-dark #main .obra-timeline-box,
body.theme-dark #main .obra-chip-eq { color: #d7dae0; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
body.theme-dark #main .progress-bar { background: rgba(255, 255, 255, .07); }
body.theme-dark #main .stat-row { border-bottom-color: rgba(255, 255, 255, .075); }
body.theme-dark #main .stat-row[onclick]:hover { background: rgba(255, 255, 255, .03); }
body.theme-dark #main .stat-row-label { color: #a1a7b0; }
body.theme-dark #main .stat-row-value { color: #e5e7ea; }

body.theme-dark #main .alert-warning { background: rgba(184, 111, 23, .11); border-color: rgba(227, 163, 77, .22); color: #e7b66e; }
body.theme-dark #main .alert-success { background: rgba(32, 137, 84, .11); border-color: rgba(88, 189, 137, .22); color: #78cba0; }
body.theme-dark #main .alert-danger { background: rgba(176, 55, 55, .11); border-color: rgba(228, 107, 107, .22); color: #ec8c8c; }
body.theme-dark #main .alert-info { background: rgba(54, 104, 160, .11); border-color: rgba(116, 163, 215, .22); color: #8fb8e5; }

body.theme-dark #main .badge-disponivel,
body.theme-dark #main .badge-ativa,
body.theme-dark #main .badge-recebido,
body.theme-dark #main .badge-pago,
body.theme-dark #main .badge-concluida,
body.theme-dark #main .badge-retorno,
body.theme-dark #main .badge-ativo { background: rgba(32, 137, 84, .13); color: #78cba0; border-color: rgba(88, 189, 137, .22); }
body.theme-dark #main .badge-alugada,
body.theme-dark #main .badge-saida { background: rgba(242, 201, 76, .10); color: #efd36f; border-color: rgba(242, 201, 76, .22); }
body.theme-dark #main .badge-manutencao,
body.theme-dark #main .badge-aberto,
body.theme-dark #main .badge-agendada { background: rgba(184, 111, 23, .12); color: #e7b66e; border-color: rgba(227, 163, 77, .22); }
body.theme-dark #main .badge-parada,
body.theme-dark #main .badge-vencido,
body.theme-dark #main .badge-corretiva { background: rgba(176, 55, 55, .12); color: #ec8c8c; border-color: rgba(228, 107, 107, .22); }

body.theme-dark #main .table-wrapper,
body.theme-dark #main .modal,
body.theme-dark #main .modal-header,
body.theme-dark #main .modal-footer { color: #e2e4e8; background: #191b20; border-color: rgba(255, 255, 255, .08); }
body.theme-dark #main table { color: #d9dce1; }
body.theme-dark #main thead { background: rgba(255, 255, 255, .035); }
body.theme-dark #main thead th { color: #9ca3ad; border-bottom-color: rgba(255, 255, 255, .08); }
body.theme-dark #main tbody tr { border-bottom-color: rgba(255, 255, 255, .065); }
body.theme-dark #main tbody tr:hover { background: rgba(255, 255, 255, .03); }
body.theme-dark #main tbody td { color: #d5d8dd; }
body.theme-dark #main input,
body.theme-dark #main select,
body.theme-dark #main textarea,
body.theme-dark #main .form-control { color: #e7e9ec; background: #121419; border-color: rgba(255, 255, 255, .12); }
body.theme-dark #main input::placeholder,
body.theme-dark #main textarea::placeholder { color: #6f7680; }
body.theme-dark #main .modal-title { color: #f1f2f4; }
body.theme-dark #main .modal-subtitle { color: #959ca6; }
body.theme-dark #main .modal-close { color: #a6adb7; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .08); }

@media (prefers-color-scheme: dark) {
  body:not(.theme-dark) { color-scheme: light; }
}

/* ── Autenticação e sessão ─────────────────────────────────────────────── */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  color: #eef0f3;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 201, 76, .13), transparent 28rem),
    linear-gradient(140deg, #111317, #08090b 72%);
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.auth-brand { grid-column: 1 / -1; align-self: start; display: flex; align-items: center; gap: 12px; }
.auth-brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #15171a; background: #f2c94c; font-size: 13px; font-weight: 900; box-shadow: 0 10px 30px rgba(242, 201, 76, .17); }
.auth-brand strong { display: block; color: #fff; font-size: 15px; }
.auth-brand span { display: block; margin-top: 2px; color: #858c97; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.auth-copy { max-width: 590px; }
.auth-eyebrow { color: #e7c654; font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.auth-copy h1 { max-width: 560px; margin-top: 18px; color: #f7f8f9; font-size: clamp(38px, 5.5vw, 68px); font-weight: 710; line-height: 1.02; letter-spacing: -2.8px; }
.auth-copy p { max-width: 520px; margin-top: 24px; color: #969da7; font-size: 16px; line-height: 1.7; }

.auth-card { padding: 32px; border: 1px solid rgba(255, 255, 255, .10); border-radius: 22px; background: rgba(255, 255, 255, .055); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); backdrop-filter: blur(20px); }
.auth-card-header h2 { color: #fff; font-size: 23px; letter-spacing: -.6px; }
.auth-card-header p { margin-top: 7px; color: #9299a4; font-size: 13px; }
.auth-card form { margin-top: 26px; }
.auth-field { display: block; margin-bottom: 17px; }
.auth-field > span { display: block; margin-bottom: 7px; color: #c6cad0; font-size: 12px; font-weight: 650; }
.auth-field input { width: 100%; min-height: 50px; padding: 0 14px; color: #f2f3f5; background: rgba(7, 8, 10, .50); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; outline: 0; }
.auth-field input::placeholder { color: #626975; }
.auth-field input:focus { border-color: rgba(242, 201, 76, .58); box-shadow: 0 0 0 3px rgba(242, 201, 76, .09); }
.auth-message { min-height: 21px; margin: 2px 0 10px; color: #aeb3bb; font-size: 12px; line-height: 1.5; }
.auth-message.error { color: #ef9292; }
.auth-message.success { color: #7ed0a7; }
.auth-submit { width: 100%; min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #15171a; background: #f2c94c; border: 1px solid #f2c94c; border-radius: 11px; cursor: pointer; font-weight: 750; transition: transform var(--t), background var(--t), box-shadow var(--t); }
.auth-submit:hover { background: #e7bc39; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 201, 76, .18); }
.auth-submit:active { transform: scale(.99); }
.auth-submit:disabled { cursor: wait; opacity: .75; transform: none; }
.auth-switch { width: 100%; min-height: 44px; margin-top: 10px; color: #adb2ba; background: transparent; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.auth-switch:hover { color: #f1d46e; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #7d838d; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-auth-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.google-auth-button:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); background: var(--surface-hover); transform: translateY(-1px); }
.google-auth-button:disabled { opacity: .65; cursor: wait; transform: none; }
.google-mark { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; background: #fff; border: 1px solid #dadce0; font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; }
.auth-spinner { width: 16px; height: 16px; border: 2px solid rgba(21, 23, 26, .25); border-top-color: #15171a; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.google-spinner { border-color: color-mix(in srgb, var(--text) 22%, transparent); border-top-color: var(--text); }
.demo-access-button { width: 100%; min-height: 38px; margin-top: 2px; border: 0; color: #f1d46e; background: transparent; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 700; }
.demo-access-button:hover { text-decoration: underline; }

/* ── Equipe e permissões ─────────────────────────────────────────────── */
.team-access-panel { margin-bottom: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.team-access-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.team-access-heading strong { display: block; color: var(--text); font-size: 14px; }
.team-access-heading span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11.5px; }
.team-access-count { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: var(--text) !important; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.access-card { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.access-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #15171a; background: var(--yellow); font-size: 13px; font-weight: 900; }
.access-avatar.pending { color: var(--text); background: var(--surface-3); }
.access-info { min-width: 0; flex: 1; }
.access-info strong, .access-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-info strong { color: var(--text); font-size: 12px; }
.access-info span { margin-top: 3px; color: var(--text-muted); font-size: 10.5px; }
.access-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.access-status.active { color: var(--success); background: var(--success-bg); }
.access-status.pending { color: var(--warning); background: var(--warning-bg); }
.access-note, .access-security-note { margin-top: 12px; color: var(--text-muted); font-size: 10.5px; }
.access-security-note { padding: 10px 12px; border-radius: 10px; background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-option { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface-2); cursor: pointer; font-size: 11.5px; font-weight: 650; }
.permission-option input { accent-color: var(--yellow); }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .team-access-heading { flex-direction: column; } .permission-grid { grid-template-columns: 1fr; } }

/* ── Portal do operador ──────────────────────────────────────────────── */
.operator-shell { max-width: 1180px; margin: 0 auto; }
.operator-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; border-radius: 20px; color: #fff; background: linear-gradient(125deg, #171a1f 0%, #252a31 72%, #3b3522 100%); box-shadow: var(--shadow-lg); }
.operator-hero::after { content:''; position:absolute; right:-70px; top:-100px; width:260px; height:260px; border-radius:50%; background:rgba(245,197,24,.13); }
.operator-hero > * { position:relative; z-index:1; }
.operator-kicker { color:#f5c518; font-size:10px; font-weight:900; letter-spacing:.14em; }
.operator-hero h1 { margin:7px 0 5px; font-size:30px; line-height:1.05; }
.operator-hero p { color:#adb3bc; font-size:12px; text-transform:capitalize; }
.operator-hero-actions { display:flex; gap:9px; }
.operator-action { min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:1px solid rgba(255,255,255,.14); border-radius:12px; color:#fff; background:rgba(255,255,255,.07); cursor:pointer; font:inherit; font-size:12px; font-weight:800; }
.operator-action.primary { color:#17191d; background:#f5c518; border-color:#f5c518; }
.operator-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0 24px; }
.operator-summary > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 17px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.operator-summary span { color:var(--text-muted); font-size:11px; }
.operator-summary strong { color:var(--text); font-size:18px; }
.operator-section { margin-top:22px; }
.operator-section-title { display:flex; align-items:end; justify-content:space-between; margin-bottom:12px; }
.operator-section-title span { color:var(--text-muted); font-size:9px; font-weight:900; letter-spacing:.12em; }
.operator-section-title h2 { margin-top:4px; color:var(--text); font-size:17px; }
.operator-machine-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.operator-machine-card { overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-sm); }
.operator-machine-photo { position:relative; height:180px; overflow:hidden; background:var(--surface-3); }
.operator-machine-photo img { width:100%; height:100%; object-fit:cover; }
.operator-machine-photo > span:not(.operator-machine-status) { height:100%; display:grid; place-items:center; color:var(--yellow); }
.operator-machine-status { position:absolute; top:12px; right:12px; padding:6px 9px; border-radius:999px; color:#17191d; background:#f5c518; font-size:9px; font-weight:900; text-transform:uppercase; }
.operator-machine-body { padding:17px; }
.operator-patrimony { color:var(--text-muted); font-size:9px; font-weight:850; letter-spacing:.08em; }
.operator-machine-body h3 { margin:4px 0 14px; color:var(--text); font-size:17px; }
.operator-machine-stats { display:grid; grid-template-columns:1fr 1.5fr; gap:8px; }
.operator-machine-stats > div { padding:10px; border-radius:10px; background:var(--surface-2); }
.operator-machine-stats span,.operator-machine-stats strong { display:block; }
.operator-machine-stats span { color:var(--text-muted); font-size:9px; text-transform:uppercase; }
.operator-machine-stats strong { margin-top:4px; color:var(--text); font-size:11px; }
.operator-contract { margin-top:11px; padding:13px; border-left:3px solid var(--yellow); border-radius:4px 11px 11px 4px; background:var(--surface-2); }
.operator-contract > span { color:var(--yellow); font-size:8.5px; font-weight:900; letter-spacing:.1em; }
.operator-contract strong { display:block; margin-top:4px; color:var(--text); font-size:12.5px; }
.operator-contract p { margin-top:3px; color:var(--text-muted); font-size:10.5px; }
.operator-contract > div { display:flex; gap:14px; margin-top:9px; color:var(--text-muted); }
.operator-no-contract { margin-top:11px; padding:13px; border-radius:10px; color:var(--text-muted); background:var(--surface-2); font-size:11px; }
.operator-card-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.operator-card-actions button { min-height:40px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface-2); cursor:pointer; font:inherit; font-size:11px; font-weight:750; }
.operator-card-actions button:first-child { color:#17191d; background:var(--yellow); border-color:var(--yellow); }
.shift-type-banner { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; padding:12px 14px; border-radius:11px; color:var(--text); background:var(--surface-2); border-left:3px solid var(--yellow); }
.shift-type-banner span { color:var(--text-muted); font-size:9px; font-weight:900; letter-spacing:.1em; }
.shift-type-banner strong { font-size:12px; }
.shift-confirm-head { padding:16px; border-radius:14px; color:#17191d; background:linear-gradient(120deg,#f5c518,#f7d85a); }
.shift-confirm-head.checkout { color:#fff; background:linear-gradient(120deg,#252a31,#3a414b); }
.shift-confirm-head span { font-size:9px; font-weight:900; letter-spacing:.14em; }
.shift-confirm-head strong { display:block; margin-top:6px; font-size:17px; }
.shift-confirm-head p { margin-top:3px; font-size:10.5px; opacity:.72; }
.shift-start-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.shift-start-summary > div,.shift-review-grid > div { padding:11px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); }
.shift-start-summary span,.shift-start-summary strong,.shift-review-grid span,.shift-review-grid strong { display:block; }
.shift-start-summary span,.shift-review-grid span { color:var(--text-muted); font-size:9px; text-transform:uppercase; letter-spacing:.04em; }
.shift-start-summary strong,.shift-review-grid strong { margin-top:5px; color:var(--text); font-size:11.5px; line-height:1.35; }
.shift-review-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:12px; }
.shift-review-grid .wide { grid-column:1/-1; }
.shift-confirm-warning { margin-top:12px; padding:10px 12px; border:1px solid var(--warning-border); border-radius:10px; color:var(--warning); background:var(--warning-bg); font-size:10.5px; }
.operator-timeline { overflow:hidden; border:1px solid var(--border); border-radius:15px; background:var(--surface); }
.operator-update { display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); }
.operator-update:last-child { border-bottom:0; }
.operator-update-dot { width:9px; height:9px; flex:0 0 auto; margin-top:4px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 4px color-mix(in srgb,var(--yellow) 14%,transparent); }
.operator-update strong { color:var(--text); font-size:12px; }
.operator-update p { margin:3px 0; color:var(--text-muted); font-size:11px; }
.operator-update small { color:var(--text-dim); font-size:9.5px; }
.operator-empty { grid-column:1/-1; padding:28px; border:1px dashed var(--border); border-radius:15px; color:var(--text-muted); background:var(--surface); text-align:center; font-size:12px; }
.operator-empty.compact { border:0; }
@media (max-width: 760px) {
  .operator-hero { align-items:flex-start; flex-direction:column; padding:20px; }
  .operator-hero-actions { width:100%; }
  .operator-action { flex:1; }
  .operator-summary { grid-template-columns:1fr; }
  .operator-machine-grid { grid-template-columns:1fr; }
  .operator-machine-photo { height:200px; }
  .operator-card-actions { grid-template-columns:1fr; }
  .shift-start-summary,.shift-review-grid { grid-template-columns:1fr; }
  .shift-review-grid .wide { grid-column:auto; }
}

/* ── Operação em campo: início simples + fluxo guiado ────────────────── */
.field-home { max-width: 920px; margin: 0 auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.field-hero { overflow: hidden; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--border); border-radius: 24px; color: #f8fafc; background: linear-gradient(145deg,#171a1f 0%,#242931 72%,#34301e 100%); box-shadow: var(--shadow-lg); }
.field-hero.is-active { background: linear-gradient(145deg,#111d19,#1d3029 70%,#293e34); }
.field-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.field-eyebrow { color: #f5c518; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.field-hero h1 { margin: 9px 0 6px; font-size: clamp(28px,5vw,42px); line-height: 1.05; letter-spacing: -.035em; }
.field-hero p { max-width: 560px; color: #c4cad2; font-size: 13px; line-height: 1.55; text-transform: capitalize; }
.field-status { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d4d8de; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; white-space: nowrap; }
.field-status i { width: 8px; height: 8px; border-radius: 50%; background: #8b949e; }
.field-status.online i { background: #5ee29c; box-shadow: 0 0 0 4px rgba(94,226,156,.13); }
.field-guide { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.05); }
.field-guide > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #17191d; background: #f5c518; font-size: 13px; font-weight: 900; }
.field-guide p,.field-guide strong,.field-guide small { display: block; margin: 0; }
.field-guide strong { color: #fff; font-size: 12px; }.field-guide small { margin-top: 3px; color: #aeb5bf; font-size: 10px; }
.field-active-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 25px; padding: 16px; border: 1px solid rgba(94,226,156,.22); border-radius: 15px; background: rgba(94,226,156,.08); }
.field-active-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #79e9ae; background: rgba(94,226,156,.1); }
.field-active-card span,.field-active-card strong,.field-active-card p { display: block; margin: 0; }.field-active-card span { color: #8ed9b4; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.field-active-card strong { margin-top: 4px; color: #fff; font-size: 15px; }.field-active-card p { margin-top: 3px; color: #a8bdb3; font-size: 10px; }
.field-active-time { text-align: right; }.field-active-time strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.field-primary-cta { width: 100%; min-height: 82px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 18px; border: 0; border-radius: 17px; color: #15171b; background: #f5c518; box-shadow: 0 12px 28px rgba(245,197,24,.2); cursor: pointer; text-align: left; touch-action: manipulation; transition: transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.field-primary-cta:hover { filter: brightness(1.03); box-shadow: 0 16px 34px rgba(245,197,24,.27); }.field-primary-cta:active { transform: scale(.985); }.field-primary-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.field-primary-cta.checkout { color: #fff; background: #277b58; box-shadow: 0 12px 28px rgba(39,123,88,.24); }.field-primary-cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.field-primary-cta > span:first-child { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.09); }.field-primary-cta > span:nth-child(2) strong,.field-primary-cta > span:nth-child(2) small { display: block; }.field-primary-cta > span:nth-child(2) strong { font: 850 18px/1.2 'Inter',sans-serif; }.field-primary-cta > span:nth-child(2) small { margin-top: 4px; opacity: .72; font-size: 10.5px; }.field-primary-cta > i { display: grid; place-items: center; font-style: normal; }
.field-unavailable { margin-top: 10px; padding: 10px; border-radius: 10px; color: #f6d9a6; background: rgba(255,255,255,.06); font-size: 10.5px; text-align: center; }
.field-section { margin-top: 26px; }.field-section-heading { margin-bottom: 11px; }.field-section-heading span { color: var(--text-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; }.field-section-heading h2 { margin-top: 4px; color: var(--text); font-size: 17px; }
.field-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.field-quick-action { min-height: 82px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 15px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; touch-action: manipulation; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.field-quick-action:hover { border-color: var(--border-yellow); background: var(--yellow-glow2); }.field-quick-action:active { transform: scale(.985); }.field-quick-action:focus-visible { outline: 3px solid var(--yellow-glow); outline-offset: 2px; }
.field-quick-action > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--yellow-dark); background: var(--yellow-glow); }.field-quick-action strong,.field-quick-action small { display: block; }.field-quick-action strong { font-size: 11.5px; }.field-quick-action small { margin-top: 4px; color: var(--text-muted); font-size: 9px; }.field-quick-action > svg { color: var(--text-dim); }
.field-machine-list { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }.field-machine-row { min-height: 68px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--border); }.field-machine-row:last-child { border-bottom: 0; }.field-machine-row > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--yellow-dark); background: var(--yellow-glow); }.field-machine-row strong,.field-machine-row small { display: block; }.field-machine-row strong { color: var(--text); font-size: 11.5px; }.field-machine-row small { margin-top: 4px; color: var(--text-muted); font-size: 9px; }.field-machine-row b { color: var(--text); font: 700 10px 'JetBrains Mono',monospace; }
.field-wizard-modal { width: min(680px,calc(100vw - 24px)); max-height: min(860px,calc(100dvh - 24px)); overflow: auto; }.field-wizard-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; }.field-wizard-header span,.field-wizard-header strong { display: block; }.field-wizard-header span { color: var(--yellow-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }.field-wizard-header strong { margin-top: 4px; color: var(--text); font-size: 13px; }
.field-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 0 20px 17px; border-bottom: 1px solid var(--border); }.field-progress > div { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-dim); }.field-progress > div::before { content: ''; position: absolute; z-index: 0; left: 0; right: 0; top: 14px; height: 3px; background: var(--surface-3); }.field-progress > div span { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 3px solid var(--surface); border-radius: 50%; color: var(--text-muted); background: var(--surface-3); font-size: 9px; font-weight: 850; }.field-progress > div small { position: relative; z-index: 1; padding-right: 5px; overflow: hidden; background: var(--surface); font-size: 8.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.field-progress > div.active span,.field-progress > div.done span { color: #17191d; background: var(--yellow); }.field-progress > div.active small { color: var(--text); }
.field-wizard-body { min-height: 330px; padding: 24px 20px; }.field-wizard-copy { margin-bottom: 18px; }.field-wizard-copy h2 { color: var(--text); font-size: 20px; line-height: 1.2; }.field-wizard-copy p { margin-top: 5px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.field-choice-grid { display: grid; gap: 9px; }.field-choice { width: 100%; min-height: 72px; display: grid; grid-template-columns: 46px minmax(0,1fr) 28px; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 13px; color: var(--text); background: var(--surface-2); cursor: pointer; text-align: left; touch-action: manipulation; transition: border-color .18s ease,background .18s ease,box-shadow .18s ease; }.field-choice:hover { border-color: var(--border-yellow); }.field-choice.selected { border-color: var(--yellow); background: var(--yellow-glow2); box-shadow: 0 0 0 3px var(--yellow-glow); }.field-choice > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--yellow-dark); background: var(--yellow-glow); }.field-choice strong,.field-choice small { display: block; }.field-choice strong { font-size: 12px; }.field-choice small { margin-top: 4px; color: var(--text-muted); font-size: 9.5px; }.field-choice i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: #17191d; background: var(--surface); font-size: 11px; font-style: normal; font-weight: 900; }.field-choice.selected i { border-color: var(--yellow); background: var(--yellow); }
.field-selected-machine { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; background: var(--surface-3); }.field-selected-machine > span { color: var(--yellow-dark); }.field-selected-machine strong,.field-selected-machine small { display: block; }.field-selected-machine strong { color: var(--text); font-size: 11px; }.field-selected-machine small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.field-data-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.field-form-group { min-width: 0; }.field-form-group:last-child { grid-column: 1/-1; }.field-form-group label,.field-fuel legend { display: block; margin-bottom: 7px; color: var(--text); font-size: 10px; font-weight: 800; }.field-form-group input,.field-form-group textarea { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: var(--surface-2); font: 600 16px 'Inter',sans-serif; outline: 0; }.field-form-group textarea { min-height: 92px; padding-top: 12px; resize: vertical; }.field-form-group input:focus,.field-form-group textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-glow); }.field-form-group > small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 8.5px; }.field-input-unit { position: relative; }.field-input-unit input { padding-right: 42px; }.field-input-unit span { position: absolute; right: 14px; top: 50%; color: var(--text-muted); transform: translateY(-50%); font-size: 11px; font-weight: 800; }.field-fuel { grid-column: 1/-1; border: 0; }.field-fuel > div { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }.field-fuel button { min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); background: var(--surface-2); cursor: pointer; font: 750 10px 'Inter',sans-serif; }.field-fuel button span { width: 7px; height: 14px; border: 2px solid currentColor; border-radius: 2px; }.field-fuel button.selected { color: var(--text); border-color: var(--yellow); background: var(--yellow-glow2); box-shadow: 0 0 0 2px var(--yellow-glow); }
.field-wizard-intro { display: flex; flex-direction: column; align-items: center; padding: 8px 0 20px; text-align: center; }.field-wizard-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: var(--success); background: var(--success-bg); }.field-wizard-intro h2 { margin-top: 12px; color: var(--text); font-size: 20px; }.field-wizard-intro p { margin-top: 4px; color: var(--text-muted); font-size: 11px; }.field-service-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.field-service-summary > div,.field-review-grid > div { padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }.field-service-summary span,.field-service-summary strong,.field-review-grid span,.field-review-grid strong { display: block; }.field-service-summary span,.field-review-grid span { color: var(--text-muted); font-size: 8.5px; font-weight: 750; text-transform: uppercase; }.field-service-summary strong,.field-review-grid strong { margin-top: 6px; color: var(--text); font-size: 11px; line-height: 1.4; }
.field-review-head { padding: 16px; border-radius: 13px; color: #17191d; background: linear-gradient(120deg,#f5c518,#f7d85a); }.field-review-head.checkout { color: #fff; background: linear-gradient(120deg,#236c4e,#318665); }.field-review-head span,.field-review-head strong,.field-review-head small { display: block; }.field-review-head span { font-size: 9px; font-weight: 900; letter-spacing: .12em; }.field-review-head strong { margin-top: 6px; font-size: 16px; }.field-review-head small { margin-top: 4px; opacity: .75; font-size: 10px; }.field-review-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 10px; }.field-review-grid .wide { grid-column: 1/-1; }.field-confirm-note { margin-top: 11px; padding: 10px 12px; border-radius: 10px; color: var(--text-muted); background: var(--surface-3); font-size: 9.5px; line-height: 1.5; }
.field-wizard-footer { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(180px,1fr); gap: 9px; padding: 14px 20px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }.field-wizard-footer button { min-height: 50px; padding: 0 17px; border-radius: 11px; cursor: pointer; font: 800 11px 'Inter',sans-serif; }.field-back { border: 1px solid var(--border); color: var(--text-muted); background: var(--surface-2); }.field-next { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--yellow); color: #17191d; background: var(--yellow); }.field-next.danger { border-color: #277b58; color: #fff; background: #277b58; }.field-wizard-footer button:focus-visible { outline: 3px solid var(--yellow-glow); outline-offset: 2px; }
@media (max-width: 720px) { .field-home { margin: -4px -2px 0; }.field-hero { padding: 22px 18px; border-radius: 20px; }.field-hero-top { flex-direction: column; }.field-status { align-self: flex-start; }.field-quick-grid { grid-template-columns: 1fr; }.field-quick-action { min-height: 68px; }.field-machine-overview { margin-bottom: 12px; }.field-wizard-modal { width: 100%; max-height: calc(100dvh - 8px); margin-top: auto; border-radius: 20px 20px 0 0; }.field-wizard-body { min-height: 300px; }.field-data-form { grid-template-columns: 1fr; }.field-form-group:last-child,.field-fuel { grid-column: auto; }.field-fuel > div { grid-template-columns: repeat(3,1fr); }.field-progress small { display: none; }.field-progress { gap: 8px; }.field-progress > div::before { right: -8px; }.field-active-card { grid-template-columns: 44px minmax(0,1fr); }.field-active-icon { width: 44px; height: 44px; }.field-active-time { grid-column: 2; text-align: left; }.field-primary-cta { min-height: 86px; padding: 14px; }.field-service-summary,.field-review-grid { grid-template-columns: 1fr; }.field-review-grid .wide { grid-column: auto; } }
@media (max-width: 420px) { .field-wizard-body { padding: 20px 16px; }.field-wizard-header,.field-progress,.field-wizard-footer { padding-left: 16px; padding-right: 16px; }.field-wizard-footer { grid-template-columns: 1fr 2fr; }.field-primary-cta > span:nth-child(2) strong { font-size: 16px; }.field-primary-cta > span:nth-child(2) small { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .field-primary-cta,.field-quick-action,.field-choice { transition: none; } }
.field-progress { grid-template-columns: repeat(auto-fit,minmax(92px,1fr)); }

/* ── Central operacional administrativa ──────────────────────────────── */
.ops-kpi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:16px; }
.ops-kpi { display:flex; align-items:center; gap:12px; padding:16px; border:1px solid var(--border); border-radius:15px; background:var(--surface); box-shadow:var(--shadow-sm); }
.ops-kpi-icon { width:40px; height:40px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; }
.ops-kpi-icon.active { color:var(--success); background:var(--success-bg); }
.ops-kpi-icon.pending { color:var(--yellow); background:var(--yellow-glow); }
.ops-kpi-icon.danger { color:var(--danger); background:var(--danger-bg); }
.ops-kpi small,.ops-kpi strong { display:block; }
.ops-kpi small { color:var(--text-muted); font-size:10.5px; }
.ops-kpi strong { margin-top:3px; color:var(--text); font-size:22px; }
.ops-layout { display:grid; grid-template-columns:.9fr 1.1fr; gap:14px; margin-bottom:14px; }
.ops-panel { min-width:0; }
.ops-active-list,.ops-update-list { padding:0 16px 14px; }
.ops-active-item { display:flex; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid var(--border); }
.ops-active-item:last-child { border-bottom:0; }
.ops-live-dot { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:var(--success); box-shadow:0 0 0 5px var(--success-bg); }
.ops-active-main { min-width:0; flex:1; }
.ops-active-main strong,.ops-active-main span,.ops-active-meta strong,.ops-active-meta span { display:block; }
.ops-active-main strong { color:var(--text); font-size:12px; }
.ops-active-main span { margin-top:3px; overflow:hidden; color:var(--text-muted); font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.ops-active-meta { text-align:right; }
.ops-active-meta strong { color:var(--success); font-size:11px; }
.ops-active-meta span { margin-top:3px; color:var(--text-muted); font-size:9.5px; }
.ops-admin-update { display:grid; grid-template-columns:auto 1fr auto; align-items:start; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.ops-admin-update:last-child { border-bottom:0; }
.ops-admin-update.urgent { margin:0 -8px; padding:12px 8px; border-radius:10px; background:var(--danger-bg); border-bottom-color:transparent; }
.ops-update-type { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:var(--yellow); background:var(--yellow-glow); }
.ops-admin-update.urgent .ops-update-type { color:var(--danger); background:color-mix(in srgb,var(--danger) 12%,transparent); }
.ops-admin-update strong { color:var(--text); font-size:11.5px; }
.ops-admin-update p { margin:3px 0; color:var(--text-muted); font-size:10.5px; }
.ops-admin-update small { color:var(--text-dim); font-size:9.5px; }
.ops-review-btn { align-self:center; padding:7px 9px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--surface); cursor:pointer; font:inherit; font-size:9.5px; font-weight:750; }
.ops-empty { padding:24px 12px; color:var(--text-muted); text-align:center; font-size:11px; }
.ops-history { margin-bottom:18px; }
.ops-shift-badge { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:850; text-transform:uppercase; }
.ops-shift-badge.in { color:var(--success); background:var(--success-bg); }
.ops-shift-badge.out { color:var(--text-muted); background:var(--surface-3); }
@media (max-width: 900px) { .ops-layout { grid-template-columns:1fr; } }
@media (max-width: 680px) { .ops-kpi-grid { grid-template-columns:1fr; } .ops-admin-update { grid-template-columns:auto 1fr; } .ops-review-btn { grid-column:2; justify-self:start; } }

/* ── Histórico pessoal do operador ───────────────────────────────────── */
.operator-history-shell { max-width:1100px; margin:0 auto; }
.history-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; border-radius:18px; color:#fff; background:linear-gradient(125deg,#1b1e23,#30353d); }
.history-hero > div > span { color:var(--yellow); font-size:9px; font-weight:900; letter-spacing:.13em; }
.history-hero h1 { margin:5px 0 3px; font-size:23px; }
.history-hero p { color:#aeb4bd; font-size:11px; }
.history-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 0 24px; }
.history-summary-grid > div { position:relative; padding:15px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.history-summary-grid > div > span { position:absolute; right:13px; top:13px; color:var(--yellow); }
.history-summary-grid small,.history-summary-grid strong { display:block; }
.history-summary-grid small { padding-right:24px; color:var(--text-muted); font-size:10px; }
.history-summary-grid strong { margin-top:8px; color:var(--text); font-size:18px; }
.history-section { margin-top:20px; }
.history-service-list { display:grid; gap:10px; }
.history-service-card { display:grid; grid-template-columns:120px 1fr; overflow:hidden; border:1px solid var(--border); border-radius:15px; background:var(--surface); }
.history-service-card.active { border-color:color-mix(in srgb,var(--success) 40%,var(--border)); }
.history-service-date { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:18px; background:var(--surface-2); border-right:1px solid var(--border); }
.history-service-date strong { color:var(--text); font-size:12px; }
.history-service-date span { margin-top:7px; padding:4px 7px; border-radius:999px; color:var(--text-muted); background:var(--surface-3); font-size:8px; font-weight:850; text-transform:uppercase; }
.history-service-card.active .history-service-date span { color:var(--success); background:var(--success-bg); }
.history-service-main { padding:15px 17px; }
.history-service-main h3 { color:var(--text); font-size:14px; }
.history-service-main > p { margin-top:3px; color:var(--text-muted); font-size:10.5px; }
.history-service-details { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:12px; }
.history-service-details > span { padding:8px; border-radius:8px; color:var(--text-muted); background:var(--surface-2); font-size:8.5px; text-transform:uppercase; }
.history-service-details strong { display:block; margin-top:4px; color:var(--text); font-size:10px; text-transform:none; }
.history-note { margin-top:9px; padding:8px 10px; border-left:2px solid var(--yellow); color:var(--text-muted); background:var(--surface-2); font-size:10.5px; }
.history-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.history-mini-list { overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.history-mini-item,.history-fuel-item { display:flex; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border); }
.history-mini-item:last-child,.history-fuel-item:last-child { border-bottom:0; }
.history-mini-item > span,.history-fuel-item > span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; color:var(--yellow); background:var(--yellow-glow); }
.history-mini-item > span.danger { color:var(--danger); background:var(--danger-bg); }
.history-mini-item strong,.history-fuel-item strong { color:var(--text); font-size:11.5px; }
.history-mini-item p,.history-fuel-item p { margin:3px 0; color:var(--text-muted); font-size:10.5px; }
.history-mini-item small,.history-fuel-item small { color:var(--text-dim); font-size:9px; }
@media (max-width:850px) { .history-summary-grid { grid-template-columns:repeat(2,1fr); } .history-columns { grid-template-columns:1fr; } }
@media (max-width:600px) { .history-hero { align-items:flex-start; flex-direction:column; } .history-service-card { grid-template-columns:1fr; } .history-service-date { align-items:flex-start; border-right:0; border-bottom:1px solid var(--border); } .history-service-details { grid-template-columns:repeat(2,1fr); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.sidebar-signout { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; color: var(--text-muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; transition: all var(--t); }
.sidebar-signout:hover { color: var(--danger-soft); background: var(--danger-bg); }
.sidebar-signout span,.sidebar-mobile-close,.mobile-menu-button,#sidebar-backdrop{display:none}

/* Navegação mobile: gaveta lateral completa e rota de saída sempre acessível */
@media(max-width:640px){
  #topbar{padding:0 12px;gap:8px}
  .mobile-menu-button{display:grid;width:44px;height:44px;place-items:center;flex:0 0 auto;color:var(--text)}
  .topbar-page-info{min-width:0;gap:7px}.topbar-page-icon{display:none}.topbar-title{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
  .topbar-search{display:none}.topbar-icon-btn{width:40px;height:40px}.topbar-spacer{min-width:0}
  #sidebar{display:flex;visibility:hidden;z-index:310;width:min(86vw,320px);height:100dvh;transform:translateX(-105%);transition:transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s linear .24s;box-shadow:0 24px 70px rgba(0,0,0,.48)}
  #sidebar.open{visibility:visible;transform:translateX(0);transition:transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s}
  .sidebar-logo{height:68px;padding-left:16px;padding-right:10px}
  .sidebar-mobile-close{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);cursor:pointer;flex:0 0 auto}
  .sidebar-nav{padding-top:12px}.nav-item{min-height:48px;margin:2px 10px;padding:0 13px;border-radius:9px;font-size:13px}
  .sidebar-footer{padding:12px 12px max(12px,env(safe-area-inset-bottom))}
  .sidebar-user{display:grid;grid-template-columns:34px minmax(0,1fr);padding:10px;gap:10px}
  .sidebar-signout{display:flex;grid-column:1/-1;width:100%;height:46px;align-items:center;justify-content:center;gap:8px;margin-top:2px;border:1px solid color-mix(in srgb,var(--danger-soft) 20%,var(--border));background:color-mix(in srgb,var(--danger-soft) 7%,var(--surface-2));color:var(--danger-soft);font-size:12px;font-weight:800}
  .sidebar-signout span{display:inline}
  #sidebar-backdrop{position:fixed;inset:0;z-index:300;width:100%;height:100%;padding:0;border:0;background:rgba(3,4,6,.58);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s;cursor:pointer}
  body.mobile-menu-open #sidebar-backdrop{display:block;opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s}
  body.mobile-menu-open{overflow:hidden;touch-action:none}
}

@media(prefers-reduced-motion:reduce){#sidebar,#sidebar-backdrop{transition:none!important}}

/* Formato mobile dedicado para módulos administrativos densos */
@media(max-width:720px){
  html,body,#main,#page{max-width:100%;overflow-x:hidden}
  #page{padding-left:12px;padding-right:12px}
  .section-header{gap:14px;margin-bottom:16px}.section-header-left{min-width:0}.section-title{font-size:17px;line-height:1.25}.section-subtitle{font-size:11px;line-height:1.45}
  .section-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px}.section-actions>.btn,.section-actions>button{width:100%;min-height:44px}.section-actions .view-toggle{width:100%;display:grid;grid-template-columns:1fr 1fr}.view-btn{width:auto;min-height:42px}
  .filters-bar,.accounting-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px;padding:10px}.filters-bar-label{margin:0 0 2px}.filters-bar .filter-input,.filters-bar .filter-select,.accounting-toolbar .filter-select,.filter-input-wrap{width:100%;min-width:0}.filter-search-wrap{min-width:0;width:100%}
  .finance-tabs{margin-left:-2px;margin-right:-2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.finance-tab{min-height:44px;scroll-snap-align:start;white-space:nowrap}
  .finance-table-head{align-items:flex-start;gap:10px;flex-direction:column}.finance-table-head .btn{width:100%;min-height:44px;justify-content:center}
  .table-wrapper{overflow:visible!important;border:0!important;background:transparent!important}
  .responsive-table-ready,.responsive-table-ready tbody{display:block;width:100%;min-width:0!important}
  .responsive-table-ready thead{display:none}
  .responsive-table-ready tbody{display:grid;gap:10px}
  .responsive-table-ready tbody tr{display:block;overflow:hidden;width:100%;border:1px solid var(--border)!important;border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm)}
  .responsive-table-ready tbody td{display:grid;grid-template-columns:minmax(92px,.72fr) minmax(0,1.28fr);align-items:start;gap:12px;width:100%;min-width:0;padding:10px 12px!important;border:0!important;border-bottom:1px solid var(--border)!important;text-align:right;white-space:normal;overflow-wrap:anywhere}
  .responsive-table-ready tbody td:last-child{border-bottom:0!important}
  .responsive-table-ready tbody td::before{content:attr(data-label);align-self:start;color:var(--text-muted);font-size:9px;font-weight:800;letter-spacing:.055em;line-height:1.4;text-align:left;text-transform:uppercase}
  .responsive-table-ready tbody td>*,.responsive-table-ready tbody td>div{min-width:0;max-width:100%;justify-self:end;text-align:right}
  .responsive-table-ready tbody td strong,.responsive-table-ready tbody td small,.responsive-table-ready tbody td span{white-space:normal}
  .responsive-table-ready tbody td .table-actions{display:flex;justify-content:flex-end;gap:8px}.responsive-table-ready .action-btn{width:42px;height:42px}
  .responsive-table-ready tbody td.mobile-table-empty{display:block;padding:22px 14px!important;text-align:center;border-bottom:0!important}.responsive-table-ready tbody td.mobile-table-empty::before{display:none}.responsive-table-ready tbody td.mobile-table-empty>*{justify-self:stretch;text-align:center}
  .card>.table-wrapper{margin:0}.accounting-card,.finance-shell .card:has(.table-wrapper),#page[data-route="checkin"] .card:has(.table-wrapper),#page[data-route="central"] .card:has(.table-wrapper){padding:10px;background:var(--surface-3)}
  .form-grid-2,.form-grid-3{grid-template-columns:1fr!important;gap:12px}.form-grid-2>*[style*="grid-column"],.form-grid-3>*[style*="grid-column"],.form-group.wide{grid-column:1!important}
  .modal-overlay{align-items:flex-end;padding:0;overflow:hidden}.modal,.modal-lg,.running-services-modal{width:100%!important;max-width:100%!important;height:min(100%,calc(100dvh - 8px));max-height:calc(100dvh - 8px);margin:0;overflow:hidden;border-radius:18px 18px 0 0!important}.modal-header{position:relative;top:auto;flex:0 0 auto;padding:16px 16px 13px}.modal-body{min-height:0;padding:16px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.modal-footer{position:relative;bottom:auto;z-index:2;display:grid;grid-template-columns:1fr 1.35fr;flex:0 0 auto;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:var(--surface-2);box-shadow:0 -10px 24px rgba(0,0,0,.08)}.modal-footer .btn{width:100%;min-width:0;min-height:48px;justify-content:center}.modal-close{width:44px;height:44px}
  .accounting-kpis{grid-template-columns:1fr 1fr}.accounting-kpis>div{min-width:0;padding:12px}.accounting-kpis strong{font-size:15px;overflow-wrap:anywhere}.accounting-upload{align-items:flex-start;padding:14px}.accounting-upload div{min-width:0}.accounting-upload strong,.accounting-upload small{white-space:normal;overflow-wrap:anywhere}
  .finance-kpis,.profit-summary,.billing-grid{grid-template-columns:1fr!important}.profit-numbers{grid-template-columns:1fr 1fr!important}.billing-measure,.settlement-open{min-width:0}.projection-row{grid-template-columns:42px minmax(0,1fr)!important}.projection-row>div:nth-child(3),.projection-row>b{grid-column:2;text-align:left}
  #page[data-route="checkin"] .grid-2,#page[data-route="central"] .ops-layout{grid-template-columns:1fr}.checkin-actions,.table-actions{flex-wrap:wrap}
}

@media(max-width:390px){
  .accounting-kpis,.profit-numbers{grid-template-columns:1fr!important}.responsive-table-ready tbody td{grid-template-columns:82px minmax(0,1fr);padding:9px 10px!important}.modal-footer{grid-template-columns:1fr}.status-strip{grid-template-columns:1fr 1fr}
}

/* Relatórios gerenciais */
.reports-shell{display:flex;flex-direction:column;gap:16px}.reports-header{margin-bottom:0}.report-period{min-width:170px}.report-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted)}.report-scope span{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:var(--text)}.report-scope small{font-size:9.5px}
.report-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.report-kpis article{position:relative;overflow:hidden;padding:15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm)}.report-kpis article>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:9px;background:var(--surface-3)}.report-kpis article>span.green{color:var(--success-soft)}.report-kpis article>span.red{color:var(--danger-soft)}.report-kpis article>span.yellow{color:var(--yellow-dim)}.report-kpis article>span.blue{color:var(--info-soft)}.report-kpis article>small,.report-kpis article>strong,.report-kpis article>p{display:block}.report-kpis article>small{font-size:9.5px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:var(--text-muted)}.report-kpis article>strong{margin-top:5px;font:800 19px 'JetBrains Mono',monospace;color:var(--text)}.report-kpis article>strong.red{color:var(--danger-soft)}.report-kpis article>p{margin:4px 0 0;font-size:9.5px;color:var(--text-muted)}
.reports-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:16px}.reports-grid-main{grid-template-columns:1fr 1fr}.report-panel,.report-section{min-width:0}.report-bars{display:flex;flex-direction:column;gap:14px}.report-bar-row{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(100px,1fr) auto;align-items:center;gap:12px}.report-bar-copy strong,.report-bar-copy span{display:block}.report-bar-copy strong{font-size:11px;color:var(--text)}.report-bar-copy span{font-size:9px;color:var(--text-muted)}.report-bar-track{height:7px;overflow:hidden;border-radius:5px;background:var(--surface-4)}.report-bar-track i{display:block;height:100%;border-radius:inherit;background:var(--yellow)}.report-bar-track i.danger{background:var(--danger-soft)}.report-bar-track i.warning{background:var(--warning-soft)}.report-bar-track i.info{background:var(--info-soft)}.report-bar-row>b{font:700 10.5px 'JetBrains Mono',monospace;color:var(--text)}
.report-insights{display:flex;flex-direction:column;gap:7px}.report-insight{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;width:100%;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer;transition:border-color var(--t),background var(--t)}.report-insight:hover{border-color:var(--border-2);background:var(--surface-3)}.report-insight>span{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--surface-3)}.report-insight.danger>span{color:var(--danger-soft)}.report-insight.warning>span{color:var(--warning-soft)}.report-insight.info>span{color:var(--info-soft)}.report-insight.success>span{color:var(--success-soft)}.report-insight strong{display:block;font-size:10.5px}.report-insight p{margin:2px 0 0;font-size:9.5px;line-height:1.4;color:var(--text-muted)}.report-insight>svg{color:var(--text-dim)}
.report-count{padding:5px 8px;border-radius:7px;background:var(--surface-3);font-size:9.5px;font-weight:700;color:var(--text-muted)}.report-entity{display:flex;align-items:center;gap:8px;min-width:190px}.report-entity>div{min-width:0}.report-entity strong,.report-entity small{display:block}.report-entity small{margin-top:2px;font-size:9px;color:var(--text-muted)}.report-margin{display:inline-flex;padding:4px 7px;border-radius:6px;font:800 10px 'JetBrains Mono',monospace}.report-margin.positive{color:var(--success-soft);background:var(--success-bg)}.report-margin.negative{color:var(--danger-soft);background:var(--danger-bg)}
.report-team-list{display:flex;flex-direction:column}.report-team-row{display:grid;grid-template-columns:26px minmax(140px,.7fr) minmax(80px,1fr) auto auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}.report-team-row:last-child{border-bottom:0}.report-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--surface-3);font:800 9px 'JetBrains Mono',monospace;color:var(--text-muted)}.report-team-person strong,.report-team-person small,.report-team-values strong,.report-team-values span{display:block}.report-team-person strong{font-size:11px;color:var(--text)}.report-team-person small,.report-team-values span{margin-top:2px;font-size:9px;color:var(--text-muted)}.report-team-bar{height:6px;overflow:hidden;border-radius:4px;background:var(--surface-4)}.report-team-bar i{display:block;height:100%;border-radius:inherit;background:var(--yellow)}.report-team-values{text-align:right}.report-team-values strong{font:700 10.5px 'JetBrains Mono',monospace}.report-team-row>b{padding:4px 6px;border-radius:5px;background:var(--success-bg);font-size:8.5px;color:var(--success-soft)}
.report-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.report-summary-grid>div{padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.report-summary-grid span,.report-summary-grid strong,.report-summary-grid small{display:block}.report-summary-grid span{font-size:9px;font-weight:800;text-transform:uppercase;color:var(--text-muted)}.report-summary-grid strong{margin:5px 0 3px;font:800 18px 'JetBrains Mono',monospace;color:var(--text)}.report-summary-grid small{font-size:9px;color:var(--text-muted)}
@media(max-width:1050px){.report-kpis{grid-template-columns:repeat(2,1fr)}.reports-grid,.reports-grid-main{grid-template-columns:1fr}}
@media(max-width:720px){.reports-shell{gap:12px}.reports-header .section-actions{grid-template-columns:1fr!important}.report-period{width:100%}.report-scope{align-items:flex-start;flex-direction:column}.report-kpis{grid-template-columns:1fr 1fr}.report-kpis article{padding:12px}.report-kpis article>strong{font-size:15px}.report-bar-row{grid-template-columns:1fr auto}.report-bar-track{grid-column:1/-1;grid-row:2}.report-team-row{grid-template-columns:26px minmax(0,1fr) auto}.report-team-bar{grid-column:2/-1;width:100%}.report-team-values{grid-column:2;text-align:left}.report-team-row>b{grid-column:3;grid-row:1}.report-section{padding:12px}.report-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.report-kpis,.report-summary-grid{grid-template-columns:1fr}.report-insight{grid-template-columns:32px 1fr}.report-insight>svg{display:none}}
@media print{#sidebar,#topbar,#sidebar-backdrop,.reports-header .section-actions{display:none!important}#main{margin:0!important;background:#fff!important}#page{padding:0!important;overflow:visible}.reports-shell{color:#111}.card,.report-kpis article{break-inside:avoid;box-shadow:none}.reports-grid,.reports-grid-main{grid-template-columns:1fr}.table-wrapper{overflow:visible}body{background:#fff!important}}

body.auth-required #sidebar,
body.auth-required #main { visibility: hidden; }
.notification-button { position:relative; }
.notification-button > span { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; display:grid; place-items:center; padding:0 4px; border:2px solid var(--surface); border-radius:999px; color:#111; background:var(--yellow); font-size:8px; font-weight:900; }
.notification-list { display:grid; gap:8px; max-height:65vh; overflow:auto; }
.notification-item { width:100%; display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:11px; color:var(--text); background:var(--surface-2); text-align:left; cursor:pointer; }
.notification-item > span { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; color:var(--yellow); background:var(--yellow-glow); }
.notification-item.danger > span { color:var(--danger); background:var(--danger-bg); }
.notification-item strong,.notification-item p { display:block; margin:0; }
.notification-item strong { font-size:11px; }.notification-item p { margin-top:3px; color:var(--text-muted); font-size:10px; }
.connection-status { position:fixed; z-index:10000; left:50%; bottom:18px; transform:translate(-50%,20px); padding:9px 14px; border-radius:999px; color:#fff; background:#24282f; box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:.2s; font-size:10px; font-weight:750; }
.connection-status.offline,.connection-status.visible { transform:translate(-50%,0); opacity:1; }.connection-status.offline { color:#161616; background:var(--yellow); }
.auth-legal-link { width:100%; margin-top:8px; border:0; color:var(--text-muted); background:transparent; cursor:pointer; font:inherit; font-size:10px; }
.privacy-copy p { margin:0 0 12px; color:var(--text-muted); font-size:12px; line-height:1.65; }
.ops-update-actions { display:flex; flex-direction:column; gap:5px; }
.equipment-selector-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.equipment-selector-heading > span { color:var(--text-muted); font-size:10px; font-weight:650; }
.equipment-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; border:1px solid var(--border); border-radius:12px; background:var(--surface-3); }
.equipment-selector-item { min-height:54px; display:grid; grid-template-columns:20px 34px minmax(0,1fr); align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--border); border-radius:9px; color:var(--text); background:var(--surface); cursor:pointer; transition:border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.equipment-selector-item:hover { border-color:var(--border-yellow); background:var(--yellow-glow2); }
.equipment-selector-item:focus-within { border-color:var(--yellow); box-shadow:0 0 0 3px var(--yellow-glow); }
.equipment-selector-item input { width:17px!important; height:17px; margin:0; accent-color:var(--yellow); }
.equipment-selector-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; color:var(--yellow-dark); background:var(--yellow-glow); }
.equipment-selector-copy { min-width:0; }.equipment-selector-copy strong,.equipment-selector-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.equipment-selector-copy strong { color:var(--text); font-size:11.5px; line-height:1.35; }.equipment-selector-copy small { margin-top:3px; color:var(--text-muted); font-size:9px; }
.equipment-selector-empty { grid-column:1/-1; display:flex; align-items:flex-start; gap:10px; padding:18px; color:var(--text-muted); }
.equipment-selector-empty > span { color:var(--yellow-dark); }.equipment-selector-empty strong { display:block; color:var(--text); font-size:12px; }.equipment-selector-empty p { margin:4px 0 0; font-size:10.5px; line-height:1.5; }
@media (max-width:680px){.connection-status{width:calc(100% - 28px);text-align:center}.notification-modal{width:calc(100% - 24px)}}
@media (max-width:680px){.equipment-selector{grid-template-columns:1fr}.equipment-selector-item{min-height:58px}}

/* ── Financeiro v2 ────────────────────────────────────────────────────── */
.finance-shell { max-width:1500px; margin:0 auto; }
.finance-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.finance-kpi { min-height:122px; display:flex; justify-content:space-between; gap:14px; padding:18px; border:1px solid var(--border); border-radius:15px; background:var(--surface); box-shadow:0 8px 26px rgba(20,24,30,.04); }
.finance-kpi > div span,.finance-kpi > div strong,.finance-kpi > div small { display:block; }.finance-kpi span { color:var(--text-muted); font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }.finance-kpi strong { margin-top:11px; color:var(--text); font:800 20px/1.1 'JetBrains Mono',monospace; }.finance-kpi small { margin-top:8px; color:var(--text-muted); font-size:9.5px; }.finance-kpi i { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:var(--text-muted); background:var(--surface-3); }
.finance-kpi.incoming i { color:var(--success-soft); background:var(--success-bg); }.finance-kpi.outgoing i { color:var(--danger-soft); background:var(--danger-bg); }.finance-kpi.balance { border-top:3px solid var(--yellow); }.finance-kpi.result i { color:var(--yellow-dark); background:var(--yellow-glow); }
.finance-tabs { display:flex; gap:4px; margin-bottom:14px; padding:4px; overflow-x:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface-3); }
.finance-tab { min-height:40px; display:flex; align-items:center; justify-content:center; gap:7px; flex:1; padding:8px 12px; border:0; border-radius:8px; color:var(--text-muted); background:transparent; white-space:nowrap; cursor:pointer; font:700 10.5px/1 'Inter',sans-serif; transition:.18s ease; }.finance-tab:hover { color:var(--text); }.finance-tab.active { color:var(--text); background:var(--surface); box-shadow:0 2px 8px rgba(20,24,30,.07); }.finance-tab.active svg { color:var(--yellow-dark); }
.finance-overview-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr); gap:14px; }.finance-projection,.finance-health,.finance-recent { padding:18px; }.finance-recent { margin-top:14px; }
.projection-row { display:grid; grid-template-columns:58px minmax(120px,1fr) 130px 100px; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--border); }.projection-row > strong { color:var(--text); font-size:11px; }.projection-row > div:nth-child(3) span { display:block; font:650 9px/1.6 'JetBrains Mono',monospace; }.projection-row > b { text-align:right; font:750 10px/1 'JetBrains Mono',monospace; }.projection-bars { display:grid; gap:5px; }.projection-bars > div { height:6px; overflow:hidden; border-radius:9px; background:var(--surface-3); }.projection-bars > div span { height:100%; display:block; border-radius:inherit; background:var(--success-soft); }.projection-bars > div.out span { background:var(--danger-soft); }.projection-legend { display:flex; gap:18px; margin-top:12px; color:var(--text-muted); font-size:9px; }.projection-legend span::before { content:''; display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:var(--success-soft); }.projection-legend span.out::before { background:var(--danger-soft); }
.finance-health-list > div { display:flex; gap:10px; padding:13px 0; border-bottom:1px solid var(--border); }.finance-health-list > div:last-child { border:0; }.finance-health-list > div > span { width:32px; height:32px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; }.finance-health-list .ok { color:var(--success-soft); background:var(--success-bg); }.finance-health-list .warning { color:var(--warning-soft); background:var(--warning-bg); }.finance-health-list .danger { color:var(--danger-soft); background:var(--danger-bg); }.finance-health-list p { margin:0; }.finance-health-list strong,.finance-health-list small { display:block; }.finance-health-list strong { color:var(--text); font-size:11px; }.finance-health-list small { margin-top:4px; color:var(--text-muted); font-size:9.5px; }
.finance-movement-list > div { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }.finance-movement-list > div:last-child { border:0; }.movement-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; }.movement-icon.receber { color:var(--success-soft); background:var(--success-bg); }.movement-icon.pagar { color:var(--danger-soft); background:var(--danger-bg); }.finance-movement-list p { margin:0; }.finance-movement-list strong,.finance-movement-list small { display:block; }.finance-movement-list strong { color:var(--text); font-size:10.5px; }.finance-movement-list small { margin-top:3px; color:var(--text-muted); font-size:9px; }.finance-movement-list b { font:750 10px 'JetBrains Mono',monospace; }
.finance-table-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 0 14px; }.finance-table-head strong,.finance-table-head span { display:block; }.finance-table-head strong { color:var(--text); font-size:13px; }.finance-table-head span { margin-top:3px; color:var(--text-muted); font-size:9.5px; }.finance-link { display:block; margin-top:3px; color:var(--text-muted); }.money { font-family:'JetBrains Mono',monospace; white-space:nowrap; }
.billing-intro { margin-bottom:14px; padding:21px 22px; border-radius:16px; color:#fff; background:linear-gradient(125deg,#1a1d22,#30353d); }.billing-intro span { color:var(--yellow); font-size:9px; font-weight:850; letter-spacing:.12em; }.billing-intro h2 { margin:5px 0 4px; font-size:18px; }.billing-intro p { color:#aeb4bd; font-size:10.5px; }.billing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.billing-card { padding:17px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }.billing-card-head { display:flex; justify-content:space-between; gap:10px; }.billing-card-head span { color:var(--text-muted); font-size:9px; }.billing-card-head h3 { margin-top:3px; color:var(--text); font-size:13px; }.billing-measure { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin:14px 0; }.billing-measure > div { padding:9px; border-radius:9px; background:var(--surface-3); }.billing-measure span,.billing-measure strong { display:block; }.billing-measure span { color:var(--text-muted); font-size:8px; }.billing-measure strong { margin-top:5px; color:var(--text); font-size:10.5px; }.billing-total { display:flex; align-items:end; justify-content:space-between; margin:13px 0; padding-top:12px; border-top:1px solid var(--border); }.billing-total span { color:var(--text-muted); font-size:9px; }.billing-total strong { color:var(--text); font:800 15px 'JetBrains Mono',monospace; }.billing-card .btn { width:100%; justify-content:center; min-height:40px; }.billing-card .btn:disabled { opacity:.55; cursor:not-allowed; }
.billing-dashboard{display:grid;gap:16px}.billing-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(135deg,var(--surface-1),var(--surface-2))}.billing-hero span,.billing-section header span{color:var(--yellow);font-size:9px;font-weight:850;letter-spacing:.12em}.billing-hero h2{margin:5px 0 4px;color:var(--text);font-size:20px}.billing-hero p,.billing-section header p{margin:0;color:var(--text-muted);font-size:10.5px;line-height:1.5}.billing-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.billing-kpis button{min-height:108px;padding:15px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .18s ease,background .18s ease}.billing-kpis button:hover{border-color:var(--border-yellow);background:var(--surface-2)}.billing-kpis span,.billing-kpis strong,.billing-kpis small{display:block}.billing-kpis span{color:var(--text-muted);font-size:9px;font-weight:750;text-transform:uppercase}.billing-kpis strong{margin:9px 0 5px;font:800 17px 'JetBrains Mono',monospace}.billing-kpis small{color:var(--text-muted);font-size:9px}.billing-section{overflow:hidden;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.billing-section>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid var(--border)}.billing-section header h3{margin:4px 0;color:var(--text);font-size:14px}.billing-issued-list{display:grid}.billing-issued-row{display:grid;grid-template-columns:38px minmax(190px,1.5fr) minmax(90px,.6fr) minmax(120px,.7fr) auto;align-items:center;gap:12px;min-height:76px;padding:11px 16px;border-bottom:1px solid var(--border)}.billing-issued-row:last-child{border-bottom:0}.billing-issued-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--yellow);background:var(--yellow-glow)}.billing-issued-icon.paid{color:var(--success-soft);background:var(--success-bg)}.billing-issued-icon.overdue{color:var(--danger-soft);background:var(--danger-bg)}.billing-issued-main strong,.billing-issued-main small,.billing-issued-due span,.billing-issued-due strong,.billing-issued-value strong,.billing-issued-value small{display:block}.billing-issued-main strong{font-size:11px}.billing-issued-main small,.billing-issued-due span,.billing-issued-value small{margin-top:3px;color:var(--text-muted);font-size:9px}.billing-issued-due strong,.billing-issued-value strong{margin-top:4px;font-size:10.5px}.billing-issued-value strong{font-family:'JetBrains Mono',monospace}.billing-issued-actions{display:flex;gap:6px}.billing-ready .billing-grid{padding:14px}.billing-ready .billing-card{background:var(--surface-2)}
.profit-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }.profit-summary > div { padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }.profit-summary span,.profit-summary strong { display:block; }.profit-summary span { color:var(--text-muted); font-size:9px; }.profit-summary strong { margin-top:7px; color:var(--text); font:750 14px 'JetBrains Mono',monospace; }.profit-list { display:grid; gap:9px; }.profit-card { display:grid; grid-template-columns:54px minmax(170px,.8fr) minmax(520px,2fr); align-items:center; gap:13px; padding:13px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }.profit-main strong,.profit-main span { display:block; }.profit-main strong { color:var(--text); font-size:11px; }.profit-main span { margin-top:3px; color:var(--text-muted); font-size:9px; }.profit-bar { height:5px; margin-top:9px; overflow:hidden; border-radius:8px; background:var(--surface-3); }.profit-bar span { display:block; height:100%; border-radius:inherit; background:var(--success-soft); }.profit-bar span.negative { background:var(--danger-soft); }.profit-numbers { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }.profit-numbers span,.profit-numbers strong,.profit-numbers small { display:block; }.profit-numbers span { color:var(--text-muted); font-size:8px; }.profit-numbers strong { margin-top:4px; color:var(--text); font:650 9.5px 'JetBrains Mono',monospace; }.profit-numbers small { margin-top:3px; color:var(--text-muted); font-size:8px; }.settlement-open { margin-bottom:14px; padding:13px; border-radius:10px; background:var(--surface-3); }.settlement-open span,.settlement-open strong { display:block; }.settlement-open span { color:var(--text-muted); font-size:9px; }.settlement-open strong { margin-top:5px; color:var(--text); font:800 18px 'JetBrains Mono',monospace; }.form-group.wide { grid-column:1/-1; }
@media(max-width:1100px){.finance-kpis,.profit-summary{grid-template-columns:repeat(2,1fr)}.finance-overview-grid{grid-template-columns:1fr}.profit-card{grid-template-columns:54px 1fr}.profit-numbers{grid-column:1/-1}}
@media(max-width:720px){.finance-kpis,.profit-summary,.billing-grid{grid-template-columns:1fr}.projection-row{grid-template-columns:50px 1fr}.projection-row>div:nth-child(3),.projection-row>b{grid-column:2;text-align:left}.profit-numbers{grid-template-columns:repeat(2,1fr)}.finance-tab{flex:0 0 auto}.billing-measure{grid-template-columns:1fr}.finance-shell .section-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.finance-shell .section-actions .btn{justify-content:center}}
@media(max-width:900px){.billing-kpis{grid-template-columns:1fr 1fr}.billing-issued-row{grid-template-columns:38px minmax(0,1fr) auto}.billing-issued-due{grid-column:2}.billing-issued-value{grid-column:3;grid-row:1/3}.billing-issued-actions{grid-column:2/-1}}
@media(max-width:600px){.billing-hero,.billing-section>header{align-items:flex-start;flex-direction:column}.billing-hero .btn,.billing-section>header .btn{width:100%;justify-content:center}.billing-kpis{grid-template-columns:1fr 1fr;gap:8px}.billing-kpis button{min-height:104px;padding:12px}.billing-kpis strong{font-size:14px}.billing-issued-row{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:13px}.billing-issued-due,.billing-issued-value,.billing-issued-actions{grid-column:2}.billing-issued-value{grid-row:auto}.billing-issued-actions{display:grid;grid-template-columns:1fr}.billing-issued-actions .btn{min-height:44px;justify-content:center}.billing-measure{grid-template-columns:repeat(3,1fr)}.billing-ready .billing-grid{padding:10px}}
@media(max-width:390px){.billing-kpis{grid-template-columns:1fr}.billing-measure{grid-template-columns:1fr}}

/* ── Fiscal & Contábil ────────────────────────────────────────────────── */
.accounting-shell { max-width:1500px; margin:0 auto; }.accounting-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:11px; margin-bottom:15px; }.accounting-kpis > div { display:flex; align-items:center; gap:11px; min-height:88px; padding:15px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }.accounting-kpis > div > span { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:var(--yellow-dark); background:var(--yellow-glow); }.accounting-kpis p { margin:0; }.accounting-kpis small,.accounting-kpis strong { display:block; }.accounting-kpis small { color:var(--text-muted); font-size:9px; }.accounting-kpis strong { margin-top:6px; color:var(--text); font:800 16px 'JetBrains Mono',monospace; }
.accounting-toolbar { display:grid; grid-template-columns:minmax(280px,1fr) 210px 180px; gap:8px; margin-bottom:12px; }.filter-input-wrap { min-height:42px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid var(--border); border-radius:9px; color:var(--text-muted); background:var(--surface); }.filter-input-wrap .filter-input { width:100%; min-width:0; padding:0; border:0; background:transparent; box-shadow:none; }.accounting-card { padding:0; overflow:hidden; }.accounting-doc-cell { display:flex; align-items:center; gap:9px; }.accounting-doc-cell > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; color:var(--yellow-dark); background:var(--yellow-glow); }.accounting-doc-cell strong,.accounting-doc-cell small { display:block; }.accounting-doc-cell strong { color:var(--text); font-size:10.5px; }.accounting-doc-cell small { margin-top:3px; color:var(--text-muted); font-size:8.5px; }.accounting-empty { display:flex; flex-direction:column; align-items:center; padding:44px; color:var(--text-muted); text-align:center; }.accounting-empty > span { color:var(--yellow-dark); }.accounting-empty strong { margin-top:9px; color:var(--text); font-size:12px; }.accounting-empty p { margin-top:5px; font-size:10px; }
.accounting-upload { min-height:82px; display:flex; align-items:center; justify-content:center; gap:12px; padding:14px; border:1px dashed var(--border-2); border-radius:11px; color:var(--text); background:var(--surface-3); cursor:pointer; transition:.18s ease; }.accounting-upload:hover,.accounting-upload:focus-within { border-color:var(--yellow); background:var(--yellow-glow2); }.accounting-upload input { position:absolute; width:1px!important; height:1px; opacity:0; pointer-events:none; }.accounting-upload > span { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; color:var(--yellow-dark); background:var(--yellow-glow); }.accounting-upload strong,.accounting-upload small { display:block; }.accounting-upload strong { color:var(--text); font-size:11px; }.accounting-upload small { margin-top:4px; color:var(--text-muted); font-size:9px; }.accounting-checkbox { min-height:44px; display:flex; align-items:center; gap:9px; color:var(--text); cursor:pointer; font-size:10.5px; }.accounting-checkbox input { width:17px!important; height:17px; accent-color:var(--yellow); }
@media(max-width:900px){.accounting-kpis{grid-template-columns:repeat(2,1fr)}.accounting-toolbar{grid-template-columns:1fr 1fr}.filter-input-wrap{grid-column:1/-1}}
@media(max-width:560px){.accounting-kpis,.accounting-toolbar{grid-template-columns:1fr}.filter-input-wrap{grid-column:auto}.accounting-shell .section-actions{width:100%}.accounting-shell .section-actions .btn{width:100%;justify-content:center}}
body.app-loading { cursor: wait; }

/* Evidências e sincronização da operação de campo */
.field-evidence-block { grid-column:1/-1; display:grid; gap:12px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface-3); }
.field-evidence-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.field-evidence-heading strong,.field-evidence-heading small { display:block; }.field-evidence-heading strong { color:var(--text); font-size:11.5px; }.field-evidence-heading small { margin-top:4px; color:var(--text-muted); font-size:9px; }
.field-evidence-heading button { min-height:44px; display:flex; align-items:center; gap:7px; padding:0 12px; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface); cursor:pointer; font:750 9.5px 'Inter',sans-serif; }
.field-evidence-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.field-evidence-upload { min-height:72px; display:grid; grid-template-columns:40px 1fr; align-items:center; gap:10px; padding:11px; border:1px dashed var(--border-2); border-radius:11px; color:var(--text); background:var(--surface); cursor:pointer; }
.field-evidence-upload:focus-within,.field-evidence-upload:hover { border-color:var(--yellow); background:var(--yellow-glow2); }.field-evidence-upload input { position:absolute; width:1px; height:1px; opacity:0; }
.field-evidence-upload > span { width:40px; height:40px; display:grid; place-items:center; border-radius:10px; color:var(--yellow-dark); background:var(--yellow-glow); }.field-evidence-upload strong,.field-evidence-upload small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.field-evidence-upload strong { font-size:10.5px; }.field-evidence-upload small { margin-top:4px; color:var(--text-muted); font-size:8.5px; }
.field-signature { padding:11px; border:1px solid var(--border); border-radius:11px; background:var(--surface); }.field-signature > div { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }.field-signature strong { color:var(--text); font-size:10px; }.field-signature button { min-height:36px; padding:0 10px; border:0; border-radius:8px; color:var(--text-muted); background:var(--surface-3); cursor:pointer; font:700 9px 'Inter',sans-serif; }.field-signature canvas { width:100%; height:110px; display:block; border:1px dashed var(--border-2); border-radius:8px; background:var(--surface-2); touch-action:none; }.field-signature > small { display:block; margin-top:6px; color:var(--text-muted); font-size:8.5px; }
.operational-sync-pill { position:fixed; z-index:9000; right:18px; bottom:18px; min-height:40px; display:flex; align-items:center; gap:7px; padding:0 12px; border:1px solid var(--border); border-radius:999px; color:var(--success); background:var(--surface); box-shadow:var(--shadow-lg); cursor:pointer; font:750 9.5px 'Inter',sans-serif; transition:opacity .2s ease,transform .2s ease; }.operational-sync-pill.pending { color:var(--warning); border-color:var(--warning-border); }.operational-sync-pill.quiet { opacity:.45; transform:translateY(4px); }.operational-sync-pill:hover,.operational-sync-pill:focus-visible { opacity:1; transform:none; }
@media(max-width:620px){.field-evidence-grid{grid-template-columns:1fr}.field-evidence-heading{align-items:flex-start;flex-direction:column}.field-evidence-heading button{width:100%;justify-content:center}.operational-sync-pill{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}}

@media (max-width: 780px) {
  .auth-shell { width: min(100% - 28px, 520px); padding: 24px 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 36px; }
  .auth-brand { grid-column: 1; }
  .auth-copy h1 { font-size: clamp(34px, 11vw, 48px); letter-spacing: -1.8px; }
  .auth-copy p { margin-top: 16px; font-size: 14px; }
  .auth-card { padding: 24px; }
}
/* Dashboard: monitoramento de serviços ativos */
.dashboard-live-action{min-height:44px;padding:6px 10px 6px 12px;gap:9px;text-align:left}
.dashboard-live-action>span:nth-child(2){display:flex;flex-direction:column;line-height:1.15}
.dashboard-live-action strong{font-size:12px}
.dashboard-live-action small{font-size:9.5px;font-weight:600;opacity:.72;margin-top:3px}
.dashboard-live-action>b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:7px;background:rgba(0,0,0,.2);font:800 11px 'JetBrains Mono',monospace}
.dashboard-live-dot,.running-live-label i{width:8px;height:8px;border-radius:50%;background:var(--success-soft);box-shadow:0 0 0 4px color-mix(in srgb,var(--success-soft) 18%,transparent);flex:0 0 auto;animation:running-pulse 1.8s ease-in-out infinite}
.running-services-modal{width:min(820px,calc(100vw - 24px));max-width:820px}
.running-services-body{background:var(--bg);max-height:min(68vh,650px);overflow:auto}
.running-service-list{display:grid;gap:12px}
.running-service-card{padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm)}
.running-service-card.long-running{border-color:color-mix(in srgb,var(--warning-soft) 48%,var(--border))}
.running-service-top,.running-service-machine{display:flex;align-items:center;justify-content:space-between;gap:12px}
.running-live-label{display:inline-flex;align-items:center;gap:7px;color:var(--success-soft);font-size:10px;font-weight:900;letter-spacing:.1em}
.running-clock{display:flex;align-items:center;gap:7px;color:var(--text-muted)}
.running-clock strong{color:var(--text);font:800 18px 'JetBrains Mono',monospace;font-variant-numeric:tabular-nums}
.running-service-machine{justify-content:flex-start;margin:13px 0;padding-bottom:13px;border-bottom:1px solid var(--border)}
.running-service-machine h3{font-size:14px;color:var(--text);margin:0 0 3px}.running-service-machine p{font-size:10.5px;color:var(--text-muted);margin:0;font-family:'JetBrains Mono',monospace}
.running-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 18px}
.running-service-grid>div{min-width:0}.running-service-grid span{display:block;margin-bottom:4px;color:var(--text-muted);font-size:9.5px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.running-service-grid strong{display:block;overflow:hidden;color:var(--text);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.running-services-empty{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text-muted)}
.running-services-empty svg{color:var(--yellow);margin-bottom:12px}.running-services-empty h3{margin:0 0 6px;color:var(--text);font-size:14px}.running-services-empty p{max-width:390px;margin:0;font-size:12px;line-height:1.6}
@keyframes running-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)}}
@media(max-width:640px){.dashboard-live-action{width:100%;justify-content:flex-start}.dashboard-live-action>b{margin-left:auto}.running-service-grid{grid-template-columns:1fr 1fr}.running-services-modal .modal-footer{flex-wrap:wrap}.running-services-modal .modal-footer .btn{flex:1}.running-clock strong{font-size:16px}}
@media(max-width:420px){.running-service-grid{grid-template-columns:1fr}.running-service-grid strong{white-space:normal}.running-service-card{padding:13px}}
@media(prefers-reduced-motion:reduce){.dashboard-live-dot,.running-live-label i{animation:none}}
/* Clareza operacional: contratos e equipe */
.contract-attention-bar{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--success-soft) 25%,var(--border));border-radius:10px;background:color-mix(in srgb,var(--success-soft) 5%,var(--surface))}
.contract-attention-bar.has-alerts{border-color:color-mix(in srgb,var(--warning-soft) 38%,var(--border));background:color-mix(in srgb,var(--warning-soft) 6%,var(--surface))}.contract-attention-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--surface-3);color:var(--success-soft);flex:0 0 auto}.has-alerts .contract-attention-icon{color:var(--warning-soft)}.contract-attention-bar strong,.contract-attention-bar span{display:block}.contract-attention-bar strong{font-size:12px;color:var(--text)}.contract-attention-bar span{margin-top:3px;font-size:10.5px;color:var(--text-muted)}
.filter-search-wrap{display:flex;align-items:center;flex:1;min-width:220px;border:1px solid var(--border);border-radius:var(--radius-xs);background:var(--surface-3);color:var(--text-muted);padding-left:11px}.filter-search-wrap:focus-within{border-color:var(--yellow);box-shadow:0 0 0 3px color-mix(in srgb,var(--yellow) 13%,transparent)}.filter-search-wrap .filter-input{width:100%;border:0;background:transparent;box-shadow:none}.filter-search-wrap .filter-input:focus{box-shadow:none}
.obra-card-state{display:flex;align-items:center;justify-content:space-between;margin:-2px 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border)}.obra-card-state>span{font-size:9px;font-weight:900;letter-spacing:.11em;color:var(--text-muted)}.obra-card-state>strong{display:flex;align-items:center;gap:5px;font-size:9.5px}.obra-card-state .ready{color:var(--success-soft)}.obra-card-state .pending{color:var(--warning-soft)}.obra-card-billing{margin-top:4px;font-size:9.5px;color:var(--text-muted)}
.staff-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.staff-overview-card{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-sm)}.staff-overview-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--surface-3);color:var(--info-soft);flex:0 0 auto}.staff-overview-card.live .staff-overview-icon{color:var(--success-soft)}.staff-overview-card.warning .staff-overview-icon{color:var(--warning-soft)}.staff-overview-card.danger .staff-overview-icon{color:var(--danger-soft)}.staff-overview-card small,.staff-overview-card strong,.staff-overview-card p{display:block;margin:0}.staff-overview-card small{font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;color:var(--text-muted)}.staff-overview-card strong{margin-top:2px;font:800 20px 'JetBrains Mono',monospace;color:var(--text)}.staff-overview-card p{font-size:9.5px;color:var(--text-muted)}
.staff-card{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm);cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.staff-card:hover,.staff-card:focus-visible{border-color:color-mix(in srgb,var(--yellow) 45%,var(--border));box-shadow:var(--shadow-md);outline:none}.staff-card.is-working{border-top:2px solid var(--success-soft)}.staff-card-head{display:flex;align-items:center;gap:11px;padding:14px}.staff-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--yellow);color:var(--black);font-size:16px;font-weight:900;flex:0 0 auto}.staff-identity{min-width:0;flex:1}.staff-name{font-size:13.5px;font-weight:800;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-role{margin-top:3px;font-size:10px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-status{padding:5px 7px;border-radius:20px;font-size:9px;font-weight:800;background:var(--surface-3);color:var(--text-muted);white-space:nowrap}.staff-status.working{display:flex;align-items:center;gap:5px;color:var(--success-soft)}.staff-status.working i{width:6px;height:6px;border-radius:50%;background:currentColor}.staff-status.available{color:var(--info-soft)}.staff-status.inactive{color:var(--danger-soft)}
.staff-live-service{display:grid;grid-template-columns:1fr auto;gap:3px 10px;margin:0 14px 12px;padding:10px 11px;border-radius:8px;background:color-mix(in srgb,var(--success-soft) 7%,var(--surface-3));border:1px solid color-mix(in srgb,var(--success-soft) 22%,var(--border))}.staff-live-service span{display:flex;align-items:center;gap:5px;grid-column:1/-1;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--success-soft)}.staff-live-service strong{font-size:11.5px;color:var(--text)}.staff-live-service small{font-size:9.5px;color:var(--text-muted)}
.staff-info-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--border)}.staff-info-grid>div{min-width:0;padding:10px 14px;border-bottom:1px solid var(--border)}.staff-info-grid>div:nth-child(odd){border-right:1px solid var(--border)}.staff-info-grid span,.staff-info-grid strong{display:block}.staff-info-grid span{margin-bottom:4px;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}.staff-info-grid strong{font-size:10.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-info-grid strong.attention{color:var(--warning-soft)}.staff-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;color:var(--text-muted);font-size:9.5px}.staff-card-foot span,.staff-card-foot strong{display:flex;align-items:center;gap:5px}.staff-card-foot strong{color:var(--yellow)}
@media(max-width:1000px){.staff-overview-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.staff-overview-grid{grid-template-columns:1fr}.filter-search-wrap{min-width:100%;width:100%}.obra-card-state{align-items:flex-start;gap:8px}.staff-card-head{align-items:flex-start}.staff-status{margin-left:auto}}
/* Relatórios avançados */
.advanced-reports{display:flex;flex-direction:column;gap:16px}.report-filterbar{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr)) auto;gap:10px;padding:14px;background:var(--bg-card);border:1px solid var(--border);border-radius:14px}.report-filterbar label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.report-filterbar select{min-height:40px;padding:0 34px 0 12px;border:1px solid var(--border);border-radius:9px;background:var(--bg-input);color:var(--text-primary);font:inherit;text-transform:none;letter-spacing:0}.report-clear{align-self:end}.report-view-tabs{display:flex;gap:4px;padding:4px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;overflow-x:auto}.report-view-tabs button{flex:1;min-width:max-content;min-height:38px;padding:0 16px;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font-weight:650;cursor:pointer;transition:.18s ease}.report-view-tabs button:hover{color:var(--text-primary);background:var(--bg-card)}.report-view-tabs button.active{color:var(--text-primary);background:var(--bg-card);box-shadow:0 1px 4px rgba(15,23,42,.1)}.report-kpis-advanced{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-kpis-advanced.report-kpis-four{grid-template-columns:repeat(4,minmax(0,1fr))}.report-kpi-advanced{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:'icon label' 'value value' 'detail detail' 'delta delta';gap:5px 9px;min-height:148px;padding:17px;text-align:left;border:1px solid var(--border);border-radius:14px;background:var(--bg-card);color:var(--text-primary);cursor:pointer;transition:.2s ease}.report-kpi-advanced:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:0 8px 24px rgba(15,23,42,.08)}.report-kpi-advanced>i{position:absolute;right:14px;top:17px;color:var(--text-muted)}.report-kpi-icon{grid-area:icon;width:30px;height:30px;display:grid;place-items:center;border-radius:8px}.report-kpi-icon.green{color:#15803d;background:#dcfce7}.report-kpi-icon.red{color:#b91c1c;background:#fee2e2}.report-kpi-icon.yellow{color:#a16207;background:#fef3c7}.report-kpi-icon.blue{color:#1d4ed8;background:#dbeafe}.report-kpi-label{grid-area:label;align-self:center;font-size:12px;font-weight:700;color:var(--text-secondary)}.report-kpi-advanced>strong{grid-area:value;margin-top:6px;font-size:23px;line-height:1.1}.report-kpi-advanced>small{grid-area:detail;color:var(--text-muted)}.report-delta{grid-area:delta;width:max-content;margin-top:5px;padding:3px 7px;border-radius:20px;font-size:10px;font-weight:700}.report-delta.up{color:#15803d;background:#dcfce7}.report-delta.down{color:#b91c1c;background:#fee2e2}.report-delta.neutral{color:var(--text-muted);background:var(--bg-secondary)}.report-chart-legend{display:flex;justify-content:flex-end;gap:15px;margin:6px 0 12px;font-size:11px;color:var(--text-muted)}.report-chart-legend span{display:flex;align-items:center;gap:6px}.report-chart-legend i{width:8px;height:8px;border-radius:2px}.report-chart-legend .income,.report-columns .income{background:#2563eb}.report-chart-legend .expense,.report-columns .expense{background:#f59e0b}.report-month-chart{height:230px;display:flex;align-items:stretch;gap:8px;padding:8px 4px 0;border-bottom:1px solid var(--border)}.report-month{flex:1;min-width:20px;display:flex;flex-direction:column;align-items:center;gap:7px}.report-columns{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}.report-columns i{width:min(14px,38%);min-height:1px;border-radius:4px 4px 0 0;transition:.2s ease}.report-month small{font-size:9px;text-transform:capitalize;color:var(--text-muted)}.report-goal{display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px;border-radius:12px;background:var(--bg-secondary)}.report-goal div:first-child{display:flex;flex-direction:column;gap:3px}.report-goal span,.report-goal small{color:var(--text-muted);font-size:11px}.report-goal strong{font-size:22px}.report-goal>b{font-size:21px;color:var(--primary)}.report-goal-track{grid-column:1/-1;height:7px;overflow:hidden;border-radius:9px;background:var(--border)}.report-goal-track i{display:block;height:100%;border-radius:inherit;background:var(--primary)}.report-insights.compact{margin-top:12px}.table-subline{display:block;margin-top:3px;color:var(--text-muted)}.report-alert-tag{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:9px;background:#fee2e2;color:#b91c1c;font-size:9px;font-weight:700}.report-drilldown{max-width:650px}.report-detail-list{display:flex;flex-direction:column;gap:8px}.report-detail-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--bg-secondary)}.report-detail-list article div{display:flex;flex-direction:column;gap:3px;min-width:0}.report-detail-list article strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-detail-list article small{color:var(--text-muted)}.report-detail-list article>b{white-space:nowrap}
@media(max-width:900px){.report-filterbar{grid-template-columns:repeat(2,1fr)}.report-kpis-advanced,.report-kpis-advanced.report-kpis-four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.advanced-reports{gap:12px}.report-filterbar{grid-template-columns:1fr;padding:11px}.report-clear{width:100%}.report-view-tabs{margin:0 -4px}.report-view-tabs button{font-size:11px;padding:0 12px}.report-kpis-advanced,.report-kpis-advanced.report-kpis-four{grid-template-columns:1fr 1fr;gap:8px}.report-kpi-advanced{min-height:142px;padding:13px}.report-kpi-advanced>strong{font-size:18px}.report-kpi-advanced>i{right:10px;top:13px}.report-month-chart{height:180px;gap:3px}.report-month small{font-size:8px}.report-columns{gap:1px}.report-columns i{width:42%}.report-drilldown{width:calc(100% - 18px);max-height:90vh}.report-detail-list article{align-items:flex-start}.report-detail-list article>b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.report-kpi-advanced,.report-view-tabs button,.report-columns i{transition:none}}
.advanced-reports{display:flex!important;visibility:visible;--bg-card:var(--surface);--bg-input:var(--surface-2);--bg-secondary:var(--surface-2);--text-primary:var(--text);--text-secondary:var(--text-muted);--primary:var(--yellow)}.advanced-reports .report-filterbar,.advanced-reports .report-view-tabs,.advanced-reports .report-kpi-advanced{background-color:var(--surface)}
.report-source-hint{display:flex;align-items:flex-start;gap:9px;padding:11px 14px;border:1px solid var(--border-yellow);border-radius:10px;background:var(--yellow-glow);color:var(--text-muted);font-size:12px;line-height:1.5}.report-source-hint svg{flex:0 0 auto;color:var(--yellow)}.report-source-hint strong{color:var(--text)}.report-goal-button{width:100%;border:0;color:var(--text);font:inherit;text-align:left;cursor:pointer}.report-goal-button:hover{outline:1px solid var(--border-yellow)}.report-goal-button em{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--yellow);font-size:10px;font-style:normal;font-weight:700}.report-formula{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:14px;border:1px solid var(--border-yellow);border-radius:10px;background:var(--yellow-glow)}.report-formula>span{color:var(--yellow)}.report-formula div{display:flex;flex-direction:column;gap:4px}.report-formula p{margin:0;color:var(--text-muted);font-size:12px;line-height:1.5}.report-formula>b{font-size:17px;white-space:nowrap}.report-source-columns{display:flex;justify-content:space-between;margin:18px 4px 6px;color:var(--text-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.report-source-main{align-items:flex-start!important}.report-source-tag{display:inline-flex;width:max-content;padding:2px 7px;border-radius:20px;background:var(--surface-4);color:var(--yellow);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.report-source-main time{color:var(--text-dim);font-size:9px}.report-drilldown .modal-body{overflow:auto}.report-drilldown .modal-footer{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:600px){.report-formula{grid-template-columns:auto 1fr}.report-formula>b{grid-column:2}.report-source-columns{display:none}.report-source-hint{font-size:11px}.report-drilldown .modal-footer .btn{flex:1}.report-source-main strong{white-space:normal!important}}
.report-kpi-action{grid-column:1/-1;margin-top:5px;color:var(--yellow);font-size:9px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.report-detail-page{max-width:1280px;margin:0 auto}.report-detail-header{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:end}.report-back{grid-column:1/-1;width:max-content}.report-detail-heading{display:flex;align-items:center;gap:13px}.report-detail-heading>.report-kpi-icon{width:46px;height:46px}.report-detail-heading small{color:var(--yellow);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.report-detail-heading h1{margin:3px 0;font-size:23px}.report-detail-heading p{margin:0;color:var(--text-muted);font-size:11px}.report-detail-hero{display:grid;grid-template-columns:minmax(180px,.8fr) 1.5fr minmax(160px,.6fr);gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--border)}.report-detail-hero>div{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:140px;padding:20px;background:var(--surface)}.report-detail-hero span{color:var(--text-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.report-detail-hero strong{font-size:28px;font-variant-numeric:tabular-nums}.report-detail-hero small{color:var(--text-muted)}.report-detail-formula span{display:flex;align-items:center;gap:7px;color:var(--yellow)!important}.report-detail-formula p{max-width:62ch;margin:3px 0 0;color:var(--text);font-size:13px;line-height:1.6}.report-detail-explanation{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:20px}.report-detail-explanation>div{position:relative;padding-left:42px}.report-step{position:absolute;left:0;top:0;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--yellow-glow);color:var(--yellow);font-size:10px;font-weight:900}.report-detail-explanation h2{margin:0 0 6px;font-size:14px}.report-detail-explanation p{max-width:65ch;margin:0;color:var(--text-muted);font-size:12px;line-height:1.6}.report-detail-sources,.report-detail-records{padding:18px}.report-source-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.report-source-group-grid article{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.report-source-group-grid article span,.report-source-group-grid article small{color:var(--text-muted);font-size:10px}.report-source-group-grid article strong{font-size:22px}.report-detail-footer{display:flex;justify-content:space-between;gap:12px;padding:4px 0 16px}
@media(max-width:720px){.report-detail-header{grid-template-columns:1fr}.report-detail-header .section-actions{width:100%}.report-detail-header .section-actions .btn{flex:1}.report-detail-hero{grid-template-columns:1fr}.report-detail-hero>div{min-height:auto}.report-detail-explanation{grid-template-columns:1fr;gap:20px}.report-detail-footer{flex-direction:column-reverse}.report-detail-footer .btn{width:100%}.report-detail-heading h1{font-size:19px}.report-detail-page .report-detail-records{padding:12px}}
/* Navegação financeira agrupada */
.nav-group{margin:2px 0}.nav-group-trigger{width:100%;border:0;font:inherit;text-align:left}.nav-group-trigger>i{display:grid;place-items:center;margin-left:auto;color:var(--text-muted);transition:transform var(--t)}.nav-group.open .nav-group-trigger>i{transform:rotate(90deg)}.nav-group-trigger.group-active{color:var(--text);background:var(--surface-3)}.nav-submenu{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .2s ease,opacity .2s ease}.nav-submenu>*{overflow:hidden}.nav-group.open .nav-submenu{grid-template-rows:1fr;opacity:1}.nav-submenu::before{content:"";position:absolute}.nav-subitem{position:relative;display:flex;align-items:center;gap:9px;min-height:38px;margin:1px 10px 1px 28px;padding:0 11px;border:0;border-left:1px solid var(--border-2);border-radius:0 7px 7px 0;background:transparent;color:var(--text-muted);font:inherit;font-size:11px;font-weight:600;text-align:left;cursor:pointer;transition:var(--t)}.nav-subitem:hover{background:var(--surface-3);color:var(--text)}.nav-subitem.active{border-left-color:var(--yellow);background:var(--yellow-glow);color:var(--yellow)}.nav-subitem svg{flex:0 0 auto}
/* Caixa */
.cash-shell{display:flex;flex-direction:column;gap:16px}.cash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.cash-kpis article{position:relative;display:flex;flex-direction:column;gap:6px;min-height:125px;padding:16px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.cash-kpis article.primary{border-color:var(--border-yellow);background:linear-gradient(145deg,var(--yellow-glow),var(--surface) 60%)}.cash-kpis article>svg{position:absolute;right:14px;top:14px;color:var(--text-dim)}.cash-kpis span{color:var(--text-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.cash-kpis strong{margin-top:auto;font-size:22px;font-variant-numeric:tabular-nums}.cash-kpis small{color:var(--text-muted);font-size:10px}.cash-grid{display:grid;grid-template-columns:.85fr 1.5fr;gap:12px}.cash-grid .card,.cash-movements{padding:17px}.cash-account-list{display:flex;flex-direction:column;gap:8px}.cash-account-list article{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.cash-account-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:var(--yellow-glow);color:var(--yellow)}.cash-account-list article div{display:flex;flex-direction:column;gap:3px}.cash-account-list small{color:var(--text-muted);font-size:9px}.cash-account-list b{font-size:13px;font-variant-numeric:tabular-nums}.cash-forecast-flow{display:grid;grid-template-columns:repeat(7,auto);align-items:center;justify-content:space-between;gap:8px;padding:15px;border-radius:10px;background:var(--surface-2)}.cash-forecast-flow>div{display:flex;flex-direction:column;gap:4px}.cash-forecast-flow span{color:var(--text-muted);font-size:9px;text-transform:uppercase}.cash-forecast-flow strong{font-size:13px;white-space:nowrap}.cash-forecast-flow .positive strong{color:var(--success-soft)}.cash-forecast-flow .negative strong{color:var(--danger-soft)}.cash-forecast-flow .total{padding:9px;border-radius:8px;background:var(--surface-4)}.cash-forecast-flow>i{color:var(--text-dim)}.cash-alert-row{display:flex;align-items:center;gap:10px;margin-top:11px;padding:10px;border:1px solid var(--border);border-radius:9px}.cash-alert-row>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px}.cash-alert-row>span.ok{color:var(--success-soft);background:var(--success-bg)}.cash-alert-row>span.danger{color:var(--danger-soft);background:var(--danger-bg)}.cash-alert-row>div{display:flex;flex-direction:column;gap:2px}.cash-alert-row small{color:var(--text-muted);font-size:9px}.cash-source,.cash-reconciled,.cash-pending{display:inline-flex;padding:3px 7px;border-radius:20px;font-size:9px;font-weight:700}.cash-source{background:var(--surface-4);color:var(--text-muted)}.cash-reconciled{background:var(--success-bg);color:var(--success-soft)}.cash-pending{background:var(--warning-bg);color:var(--warning-soft)}.cash-bottom{grid-template-columns:1.2fr .8fr}.cash-closing-status{display:flex;align-items:center;gap:11px;margin-bottom:13px;padding:13px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.cash-closing-status>span{color:var(--yellow)}.cash-closing-status>div{display:flex;flex-direction:column;gap:3px}.cash-closing-status small{color:var(--text-muted);font-size:9px}.cash-reconciliation{display:flex;flex-direction:column}.cash-reconciliation>strong{font-size:34px;color:var(--warning-soft)}.cash-reconciliation>span{margin:3px 0 14px;color:var(--text-muted);font-size:11px}.cash-reconciliation>.btn{margin-top:auto}
@media(max-width:1000px){.cash-kpis{grid-template-columns:repeat(2,1fr)}.cash-grid{grid-template-columns:1fr}.cash-forecast-flow{grid-template-columns:1fr auto 1fr}.cash-forecast-flow>div{padding:8px}.cash-forecast-flow>i:nth-of-type(2),.cash-forecast-flow>i:nth-of-type(3){display:none}.cash-forecast-flow .negative,.cash-forecast-flow .total{grid-row:2}}
@media(max-width:600px){.cash-shell{gap:12px}.cash-kpis{grid-template-columns:1fr 1fr;gap:8px}.cash-kpis article{min-height:112px;padding:13px}.cash-kpis strong{font-size:17px}.cash-grid .card,.cash-movements{padding:12px}.cash-forecast-flow{grid-template-columns:1fr}.cash-forecast-flow>i{display:none}.cash-forecast-flow .negative,.cash-forecast-flow .total{grid-row:auto}.cash-bottom{grid-template-columns:1fr}.nav-subitem{min-height:44px;margin-left:24px}}

/* Financeiro simplificado — realizado, previsto e tarefas claras */
.finance-context{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:14px;padding:20px 22px;border:1px solid var(--border);border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--surface-2),var(--surface-1))}.finance-context>div>span{display:block;margin-bottom:6px;color:var(--yellow);font-size:9px;font-weight:800;letter-spacing:.12em}.finance-context h2{margin:0;color:var(--text);font-size:22px;line-height:1.2}.finance-context p{margin:7px 0 0;color:var(--text-muted);font-size:12px}.finance-context-status{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 12px;border:1px solid var(--border);border-radius:999px;font-size:10px;font-weight:700}.finance-context-status.ok{border-color:color-mix(in srgb,var(--success-soft) 32%,var(--border));color:var(--success-soft);background:color-mix(in srgb,var(--success-soft) 8%,transparent)}.finance-context-status.warning{border-color:color-mix(in srgb,var(--danger-soft) 32%,var(--border));color:var(--danger-soft);background:color-mix(in srgb,var(--danger-soft) 8%,transparent)}
.finance-shell-guided .finance-tabs{position:sticky;top:0;z-index:4;margin-bottom:16px;background:var(--bg);box-shadow:0 8px 18px color-mix(in srgb,var(--bg) 90%,transparent)}.finance-period-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:13px 15px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-1)}.finance-period-toolbar>div:first-child{margin-right:auto}.finance-period-toolbar strong,.finance-period-toolbar span{display:block}.finance-period-toolbar strong{font-size:11px;color:var(--text)}.finance-period-toolbar span{margin-top:2px;font-size:9px;color:var(--text-muted)}.finance-period-buttons{display:flex;gap:4px;padding:3px;border-radius:9px;background:var(--surface-3)}.finance-period-buttons button{min-height:34px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--text-muted);font:inherit;font-size:10px;font-weight:700;cursor:pointer}.finance-period-buttons button:hover{color:var(--text)}.finance-period-buttons button.active{background:var(--surface-1);color:var(--yellow);box-shadow:var(--shadow-sm)}.finance-custom-range{display:flex;gap:8px}.finance-custom-range label{color:var(--text-muted);font-size:9px;font-weight:700}.finance-custom-range input{display:block;min-height:34px;margin-top:3px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--text);font:inherit;font-size:10px}
.finance-reading-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.finance-reading-block{padding:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-1)}.finance-reading-block>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.finance-reading-block>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px}.finance-reading-block.realized>header>span{color:var(--success-soft);background:color-mix(in srgb,var(--success-soft) 10%,transparent)}.finance-reading-block.forecast>header>span{color:var(--yellow);background:var(--yellow-glow)}.finance-reading-block header strong,.finance-reading-block header small{display:block}.finance-reading-block header strong{font-size:13px;color:var(--text)}.finance-reading-block header small{margin-top:2px;color:var(--text-muted);font-size:9px}.finance-summary-grid{display:grid;gap:8px}.finance-summary-card{display:grid;grid-template-columns:34px 1fr 14px;align-items:center;gap:10px;width:100%;min-height:72px;padding:10px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .18s ease,background .18s ease}.finance-summary-card:hover{border-color:var(--border-2);background:var(--surface-3)}.finance-summary-card:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.finance-summary-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--surface-3);color:var(--text-muted)}.finance-summary-card.incoming .finance-summary-icon{color:var(--success-soft)}.finance-summary-card.outgoing .finance-summary-icon{color:var(--danger-soft)}.finance-summary-card.projection .finance-summary-icon{color:var(--yellow)}.finance-summary-card small,.finance-summary-card strong,.finance-summary-card em{display:block}.finance-summary-card small{color:var(--text-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.finance-summary-card strong{margin:2px 0;color:var(--text);font-family:'JetBrains Mono',monospace;font-size:16px}.finance-summary-card em{color:var(--text-muted);font-size:9px;font-style:normal}.finance-summary-card>svg{color:var(--text-muted)}
.finance-attention{display:grid;grid-template-columns:1.25fr repeat(4,1fr);gap:1px;margin-bottom:16px;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--border)}.finance-attention>*{background:var(--surface-1)}.finance-attention-title{display:flex;align-items:center;gap:9px;padding:13px 14px}.finance-attention-title>span{color:var(--yellow)}.finance-attention-title strong,.finance-attention-title small{display:block}.finance-attention-title strong{font-size:11px}.finance-attention-title small{margin-top:2px;color:var(--text-muted);font-size:9px}.finance-attention button{min-height:62px;padding:10px 12px;border:0;color:var(--text);font:inherit;text-align:left;cursor:pointer}.finance-attention button:hover{background:var(--surface-3)}.finance-attention button b,.finance-attention button span{display:block}.finance-attention button b{font-size:12px}.finance-attention button span{margin-top:3px;color:var(--text-muted);font-size:9px;line-height:1.35}.finance-shell-guided .ops-empty strong,.finance-shell-guided .ops-empty span{display:block}.finance-shell-guided .ops-empty span{margin-top:4px;color:var(--text-muted);font-size:10px}
@media(max-width:1000px){.finance-reading-grid{grid-template-columns:1fr}.finance-attention{grid-template-columns:1fr 1fr}.finance-attention-title{grid-column:1/-1}.finance-period-toolbar{align-items:flex-start;flex-wrap:wrap}.finance-period-toolbar>div:first-child{width:100%}.finance-custom-range{width:100%}}
@media(max-width:600px){.finance-context{align-items:flex-start;flex-direction:column;padding:16px}.finance-context h2{font-size:18px}.finance-context-status{width:100%;justify-content:center}.finance-shell-guided .finance-tabs{position:static;display:flex;overflow-x:auto;scrollbar-width:none}.finance-shell-guided .finance-tabs::-webkit-scrollbar{display:none}.finance-shell-guided .finance-tab{flex:0 0 auto;min-height:44px}.finance-period-toolbar{padding:12px}.finance-period-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}.finance-period-buttons button{min-height:44px}.finance-custom-range{display:grid;grid-template-columns:1fr 1fr}.finance-custom-range input{width:100%;min-height:44px}.finance-attention{grid-template-columns:1fr}.finance-attention-title{grid-column:auto}.finance-attention button{min-height:56px}.finance-summary-card{min-height:76px}.finance-summary-card strong{font-size:15px}}

.finance-active-filter{display:flex;align-items:center;gap:12px;min-height:64px;margin:0 0 14px;padding:10px 12px;border:1px solid rgba(245,190,27,.38);border-radius:12px;background:rgba(245,190,27,.08)}
.finance-active-filter>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;color:var(--yellow);background:var(--yellow-glow)}
.finance-active-filter>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.finance-active-filter strong{font-size:13px}.finance-active-filter small{color:var(--text-muted);font-size:12px}
.finance-attention>button{position:relative;display:flex;align-items:center;gap:8px}.finance-attention>button>b,.finance-attention>button>span{min-width:0}.finance-attention>button>span{flex:1}.finance-attention>button>svg:last-child{margin-left:auto;flex:0 0 auto}
@media(max-width:600px){.finance-active-filter{align-items:flex-start;flex-wrap:wrap}.finance-active-filter>div{width:calc(100% - 48px)}.finance-active-filter>button{width:100%}}

/* Financeiro bancário — saldo, ações, compromissos e extrato */
.finance-shell-guided>.section-header,.finance-shell-guided>.finance-context,.finance-shell-guided>.finance-tabs{display:none}
.bank-balance-card{position:relative;overflow:hidden;margin-bottom:14px;padding:22px;border:1px solid color-mix(in srgb,var(--yellow) 35%,var(--border));border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--surface-1) 92%,var(--yellow)),var(--surface-1) 55%,color-mix(in srgb,var(--surface-2) 90%,var(--yellow)));box-shadow:var(--shadow-sm)}
.bank-balance-card:after{content:"";position:absolute;right:-80px;top:-110px;width:270px;height:270px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--yellow) 14%,transparent),transparent 68%);pointer-events:none}.bank-balance-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px}.bank-account-link,.bank-visibility{border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}.bank-account-link{display:flex;align-items:center;gap:10px;padding:0;text-align:left}.bank-account-link>span:first-child,.bank-visibility{display:grid;place-items:center;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--yellow) 32%,var(--border));border-radius:11px;background:var(--yellow-glow);color:var(--yellow)}.bank-account-link>span:nth-child(2) small,.bank-account-link>span:nth-child(2) strong{display:block}.bank-account-link small{margin-bottom:2px;color:var(--text-muted);font-size:9px;font-weight:800;letter-spacing:.08em}.bank-account-link strong{font-size:12px}.bank-account-link>svg{color:var(--text-muted)}.bank-visibility{position:relative;z-index:2;min-width:44px;min-height:44px;border-color:var(--border);background:var(--surface-2);color:var(--text-muted)}.bank-account-link:focus-visible,.bank-visibility:focus-visible,.bank-balance-metrics button:focus-visible,.bank-quick-actions button:focus-visible,.bank-forecast-card button:focus-visible,.finance-movement-list button:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.bank-balance-value{position:relative;z-index:1;margin:30px 0 24px}.bank-balance-value span,.bank-balance-value small,.bank-balance-value strong{display:block}.bank-balance-value span{color:var(--text-muted);font-size:11px;font-weight:700}.bank-balance-value strong{min-height:42px;margin:5px 0 4px;color:var(--text);font-family:'JetBrains Mono',monospace;font-size:34px;line-height:1.2;letter-spacing:-.045em}.bank-balance-value small{color:var(--text-muted);font-size:10px}
.bank-balance-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--border)}.bank-balance-metrics button{min-width:0;padding:13px 14px;border:0;background:color-mix(in srgb,var(--surface-1) 92%,transparent);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background .18s ease}.bank-balance-metrics button:hover{background:var(--surface-2)}.bank-balance-metrics span,.bank-balance-metrics strong,.bank-balance-metrics small{display:block}.bank-balance-metrics span{display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:9px;font-weight:700}.bank-balance-metrics span.positive{color:var(--success-soft)}.bank-balance-metrics span.negative{color:var(--danger-soft)}.bank-balance-metrics strong{margin:5px 0 3px;font-family:'JetBrains Mono',monospace;font-size:15px}.bank-balance-metrics small{color:var(--text-muted);font-size:9px}
.bank-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.bank-quick-actions button{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;min-height:68px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .18s ease,background .18s ease}.bank-quick-actions button:hover{border-color:color-mix(in srgb,var(--yellow) 45%,var(--border));background:var(--surface-2)}.bank-quick-actions button>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--surface-3);color:var(--yellow)}.bank-quick-actions strong{align-self:end;font-size:11px}.bank-quick-actions small{align-self:start;margin-top:2px;color:var(--text-muted);font-size:9px}
.bank-finance-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr);align-items:start;gap:16px}.bank-finance-main,.bank-finance-side{min-width:0}.bank-activity{margin:0}.bank-activity .finance-period-toolbar{margin:14px 0 4px;padding:10px;border:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0;background:transparent}.bank-activity .finance-period-toolbar>div:first-child span{display:none}.bank-activity .finance-movement-list>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto 14px;align-items:center;gap:10px;width:100%;min-height:66px;padding:10px 2px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background .18s ease}.bank-activity .finance-movement-list>button:hover{background:var(--surface-2)}.bank-activity .finance-movement-list>button:last-child{border-bottom:0}.bank-activity .finance-movement-list p{min-width:0;margin:0}.bank-activity .finance-movement-list p strong,.bank-activity .finance-movement-list p small{display:block}.bank-activity .finance-movement-list p strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.bank-activity .finance-movement-list p small{margin-top:3px;color:var(--text-muted);font-size:9px}.bank-activity .finance-movement-list b{font-family:'JetBrains Mono',monospace;font-size:11px}.bank-activity .finance-movement-list>button>svg{color:var(--text-muted)}
.bank-finance-side{display:grid;gap:14px}.bank-finance-side .finance-attention{display:block;margin:0;border-radius:14px;background:var(--surface-1)}.bank-finance-side .finance-attention-title{border-bottom:1px solid var(--border)}.bank-finance-side .finance-attention button{width:100%;min-height:58px;border-bottom:1px solid var(--border)}.bank-finance-side .finance-attention button:last-child{border-bottom:0}.bank-forecast-card{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--surface-1)}.bank-forecast-card>div{padding:14px;border-bottom:1px solid var(--border)}.bank-forecast-card>div span,.bank-forecast-card>div small{display:block}.bank-forecast-card>div span{font-size:11px;font-weight:700}.bank-forecast-card>div small{margin-top:3px;color:var(--text-muted);font-size:9px}.bank-forecast-card button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:10px 14px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);font:inherit;cursor:pointer}.bank-forecast-card button:last-child{border-bottom:0}.bank-forecast-card button:hover{background:var(--surface-2)}.bank-forecast-card button span{color:var(--text-muted);font-size:10px}.bank-forecast-card button strong{font-family:'JetBrains Mono',monospace;font-size:11px}
@media(max-width:1000px){.bank-finance-layout{grid-template-columns:1fr}.bank-finance-side{grid-template-columns:1fr 1fr}.bank-quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.bank-balance-card{padding:16px;border-radius:15px}.bank-balance-value{margin:24px 0 18px}.bank-balance-value strong{font-size:27px}.bank-balance-metrics{grid-template-columns:1fr}.bank-balance-metrics button{min-height:68px}.bank-quick-actions{grid-template-columns:1fr 1fr;gap:8px}.bank-quick-actions button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;min-height:96px;padding:10px;text-align:center}.bank-quick-actions button>span{width:38px;height:38px}.bank-quick-actions small{margin:0}.bank-finance-side{grid-template-columns:1fr}.bank-activity .card-header{align-items:flex-start}.bank-activity .finance-period-toolbar{display:block}.bank-activity .finance-period-buttons{margin-top:10px}.bank-activity .finance-movement-list>button{grid-template-columns:36px minmax(0,1fr) auto}.bank-activity .finance-movement-list>button>svg{display:none}.bank-activity .finance-movement-list b{font-size:10px}.bank-account-link>span:nth-child(2) strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
