/* =====================================================
   ManutenPRO - Sistema de Manutenção para Locadora
   Identidade Visual: Engenharia e Consultoria
   Paleta: #3A515C (Azul Petróleo) | #85A28C (Verde) | #FEFEFE (Branco)
   Tipografia: Josefin Sans Bold + Inter (corpo)
   ===================================================== */

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

/* ---- CSS VARIABLES / BRAND TOKENS ---- */
:root {
  --primary:        #3A515C;
  --primary-dark:   #2a3c45;
  --primary-light:  #4d6b79;
  --secondary:      #85A28C;
  --secondary-dark: #6b8a72;
  --secondary-light:#a3bfaa;
  --surface:        #FEFEFE;
  --bg:             #f4f6f5;
  --bg-card:        #ffffff;
  --border:         #dce4e1;
  --text-primary:   #1e2e34;
  --text-secondary: #5a6e75;
  --text-muted:     #8fa4ab;
  --success:        #85A28C;
  --warning:        #d4a04a;
  --danger:         #c0514a;
  --info:           #4a8ab4;
  --shadow-sm:      0 1px 3px rgba(58,81,92,0.1);
  --shadow-md:      0 4px 16px rgba(58,81,92,0.12);
  --shadow-lg:      0 8px 32px rgba(58,81,92,0.15);
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --font-head:      'Josefin Sans', 'Montserrat', sans-serif;
  --font-body:      'Inter', 'Segoe UI', sans-serif;
  --sidebar-w:      260px;
  --header-h:       64px;
  --transition:     0.2s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
ul { list-style: none; }

/* ====================================================
   LOGIN PAGE
   ==================================================== */
#login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.login-visual {
  flex: 1;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(133,162,140,0.1);
}
.login-visual::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(133,162,140,0.08);
}

.login-visual .logo-area {
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}

/* Logo real — versão vertical na tela de login
   Estratégia: brightness(0) apaga tudo para preto,
   invert(1) inverte para branco puro.
   Resultado: logo fica toda branca (sem fundo visível) sobre
   qualquer fundo escuro — sem caixa branca, sem borda estranha.
*/
.login-logo-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  /* Leve transparência para o fundo não competir com o visual */
  opacity: 0.95;
}

.login-visual .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1.2;
}

.login-visual .brand-sub {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 3px;
  margin-top: 6px;
}

.login-visual .system-badge {
  z-index: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.login-visual .system-badge h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.login-visual .system-badge p {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 1px;
}

.login-stats {
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.login-stat {
  text-align: center;
}

.login-stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
}

.login-stat .lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-form-area {
  width: 420px;
  min-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--surface);
}

.login-form-inner { width: 100%; }

.login-form-inner h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.login-form-inner .login-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 36px;
}

.login-profiles {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.profile-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-head);
  letter-spacing: 0.5px;
}

.profile-chip:hover, .profile-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-head);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,81,92,0.08);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ====================================================
   APP SHELL
   ==================================================== */
#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width var(--transition);
  position: relative;
  z-index: 100;
}

.sidebar-logo {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo horizontal real da marca no sidebar
   Mesma técnica: brightness(0) invert(1) = logo branca pura
   sem nenhum fundo visível sobre o sidebar petróleo.
*/
.sidebar-logo-img {
  width: 100%;
  max-width: 208px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.sidebar-logo-text {
  overflow: hidden;
}

.sidebar-logo-text .brand-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-logo-text .brand-tag {
  font-family: var(--font-head);
  font-size: 9px;
  color: var(--secondary-light);
  letter-spacing: 1px;
  margin-top: 2px;
  text-transform: uppercase;
}

.sidebar-system {
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.sidebar-system .sys-label {
  font-family: var(--font-head);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar-system .sys-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--secondary-light);
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.nav-section-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  padding: 14px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(133,162,140,0.15);
  color: #fff;
  border-left-color: var(--secondary);
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--font-head);
}

.nav-badge.green { background: var(--secondary); }
.nav-badge.warn  { background: var(--warning); }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px; height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; overflow: hidden; }
.user-info .user-name {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info .user-role {
  font-family: var(--font-head);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

.btn-logout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 4px;
  transition: var(--transition);
}
.btn-logout:hover { color: #fff; }

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.top-bar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.top-bar-title {
  flex: 1;
}

.top-bar-title h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.top-bar-title .breadcrumb {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.top-bar-actions { display: flex; align-items: center; gap: 10px; }

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(58,81,92,0.04);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #a83d37;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.btn-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ====================================================
   CARDS
   ==================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* ====================================================
   KPI CARDS
   ==================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}

.kpi-card.green::before  { background: var(--secondary); }
.kpi-card.orange::before { background: var(--warning); }
.kpi-card.red::before    { background: var(--danger); }
.kpi-card.info::before   { background: var(--info); }

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.kpi-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: rgba(58,81,92,0.08);
  color: var(--primary);
}

.kpi-card.green  .kpi-icon { background: rgba(133,162,140,0.12); color: var(--secondary); }
.kpi-card.orange .kpi-icon { background: rgba(212,160,74,0.12);  color: var(--warning); }
.kpi-card.red    .kpi-icon { background: rgba(192,81,74,0.12);   color: var(--danger); }
.kpi-card.info   .kpi-icon { background: rgba(74,138,180,0.12);  color: var(--info); }

.kpi-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--primary);
  line-height: 1;
}

.kpi-card.green  .kpi-value { color: var(--secondary-dark); }
.kpi-card.orange .kpi-value { color: var(--warning); }
.kpi-card.red    .kpi-value { color: var(--danger); }
.kpi-card.info   .kpi-value { color: var(--info); }

.kpi-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ====================================================
   ALERTS
   ==================================================== */
.alert-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}

.alert-strip.danger {
  background: rgba(192,81,74,0.08);
  border: 1px solid rgba(192,81,74,0.2);
  color: var(--danger);
}

.alert-strip.warning {
  background: rgba(212,160,74,0.08);
  border: 1px solid rgba(212,160,74,0.2);
  color: var(--warning);
}

.alert-strip.success {
  background: rgba(133,162,140,0.1);
  border: 1px solid rgba(133,162,140,0.25);
  color: var(--secondary-dark);
}

.alert-strip i { font-size: 16px; flex-shrink: 0; }

/* ====================================================
   TABLES
   ==================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(58,81,92,0.03); }

tbody td {
  padding: 12px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}

/* ====================================================
   STATUS BADGES
   ==================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-disponivel   { background: rgba(133,162,140,0.15); color: #4d7a56; }
.badge-locado       { background: rgba(74,138,180,0.12);  color: #2d6b96; }
.badge-reservado    { background: rgba(133,100,165,0.12); color: #6b3a9a; }
.badge-prev         { background: rgba(212,160,74,0.12);  color: #8a6520; }
.badge-corretiva    { background: rgba(192,81,74,0.12);   color: #963428; }
.badge-aguardando   { background: rgba(180,130,74,0.12);  color: #8a5a20; }
.badge-bloqueado    { background: rgba(80,80,80,0.1);     color: #444; }
.badge-desativado   { background: rgba(100,100,100,0.08); color: #888; }
.badge-aberta       { background: rgba(74,138,180,0.12);  color: #2d6b96; }
.badge-em-andamento { background: rgba(212,160,74,0.12);  color: #8a6520; }
.badge-concluida    { background: rgba(133,162,140,0.15); color: #4d7a56; }
.badge-atrasada     { background: rgba(192,81,74,0.12);   color: #963428; }

/* Priority dots */
.priority-alta   { color: var(--danger); font-weight: 700; }
.priority-media  { color: var(--warning); font-weight: 700; }
.priority-baixa  { color: var(--secondary); font-weight: 700; }

/* ====================================================
   FILTERS BAR
   ==================================================== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.filter-select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus { border-color: var(--primary); }

.search-box {
  position: relative;
  flex: 1;
  max-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  background: #fff;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus { border-color: var(--primary); }

.search-box i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

/* ====================================================
   EQUIPMENT CARDS
   ==================================================== */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.equip-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.equip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.equip-card-top {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
}

.equip-card-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.equip-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
}

.equip-card-code {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.equip-card-badge {
  position: absolute;
  top: 16px; right: 16px;
}

.equip-card-body {
  padding: 16px 20px;
}

.equip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.equip-row:last-child { border-bottom: none; }
.equip-row strong { color: var(--text-primary); font-size: 12px; }

.equip-card-footer {
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ====================================================
   CALENDAR
   ==================================================== */
.calendar-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
}

.cal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day-header {
  padding: 10px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.cal-day {
  min-height: 80px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: rgba(58,81,92,0.03); }
.cal-day.today { background: rgba(133,162,140,0.06); }

.cal-day-num {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cal-day.today .cal-day-num {
  background: var(--secondary);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.cal-event {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.prev     { background: rgba(212,160,74,0.2);  color: #8a6520; }
.cal-event.corret   { background: rgba(192,81,74,0.15);  color: #963428; }
.cal-event.inspect  { background: rgba(74,138,180,0.15); color: #2d6b96; }
.cal-event.ok       { background: rgba(133,162,140,0.2); color: #4d7a56; }

/* ====================================================
   MODAL
   ==================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,46,52,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.25); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Form inside modal */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,81,92,0.08);
}

.modal .form-group textarea { resize: vertical; min-height: 80px; }

.form-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ====================================================
   CHECKLIST
   ==================================================== */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--bg);
  transition: var(--transition);
}

.checklist-item.ok {
  background: rgba(133,162,140,0.06);
  border-color: rgba(133,162,140,0.3);
}

.checklist-item.nok {
  background: rgba(192,81,74,0.04);
  border-color: rgba(192,81,74,0.25);
}

.checklist-item-text { flex: 1; font-size: 13px; }

.checklist-btns { display: flex; gap: 6px; }

.chk-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  transition: var(--transition);
  font-family: var(--font-head);
  letter-spacing: 0.5px;
}

.chk-btn.ok    { border-color: var(--secondary); color: var(--secondary); }
.chk-btn.ok.active    { background: var(--secondary); color: #fff; }
.chk-btn.nok   { border-color: var(--danger); color: var(--danger); }
.chk-btn.nok.active   { background: var(--danger); color: #fff; }
.chk-btn.na    { border-color: var(--text-muted); color: var(--text-muted); }
.chk-btn.na.active    { background: var(--text-muted); color: #fff; }

/* ====================================================
   PROGRESS BARS
   ==================================================== */
.progress-bar-wrap {
  background: var(--bg);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s ease;
}

.progress-bar-fill.danger { background: linear-gradient(90deg, #c0514a, #d47a74); }
.progress-bar-fill.warn   { background: linear-gradient(90deg, #d4a04a, #e8c07a); }

/* ====================================================
   TIMELINE
   ==================================================== */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-item.alert::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.timeline-item.warning::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }

.timeline-date {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ====================================================
   STOCK / INVENTORY
   ==================================================== */
.stock-level {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.stock-label { color: var(--text-secondary); min-width: 80px; }
.stock-val { font-weight: 700; color: var(--text-primary); min-width: 30px; }

/* ====================================================
   REPORTS
   ==================================================== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ====================================================
   STAT PILLS
   ==================================================== */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.stat-pill.up    { background: rgba(133,162,140,0.12); color: var(--secondary-dark); }
.stat-pill.down  { background: rgba(192,81,74,0.1);    color: var(--danger); }
.stat-pill.flat  { background: rgba(212,160,74,0.1);   color: var(--warning); }

/* ====================================================
   SETTINGS
   ==================================================== */
.settings-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.settings-section-header {
  padding: 16px 24px;
  background: linear-gradient(90deg, rgba(58,81,92,0.04), transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-section-header i {
  color: var(--secondary);
  font-size: 18px;
}

.settings-section-header h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-row label {
  font-size: 13px;
  color: var(--text-primary);
}

.settings-row .meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ====================================================
   TOGGLE SWITCH
   ==================================================== */
.toggle {
  position: relative;
  width: 44px; height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider { background: var(--secondary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ====================================================
   VIEW TOGGLE
   ==================================================== */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-toggle-btn {
  padding: 8px 14px;
  background: #fff;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
  border-right: 1px solid var(--border);
}

.view-toggle-btn:last-child { border-right: none; }

.view-toggle-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ====================================================
   INSPECTION FORM
   ==================================================== */
.insp-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.insp-header-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
}

.insp-header-info .equip-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.insp-header-info .equip-code {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.horim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.horim-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.horim-card .lbl {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.horim-card input {
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-head);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  background: #fff;
  outline: none;
}

.horim-card input:focus { border-color: var(--secondary); }

/* ====================================================
   EMPTY STATE
   ==================================================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }

.empty-state h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.empty-state p { font-size: 13px; }

/* ====================================================
   SCROLLBAR
   ==================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(58,81,92,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(58,81,92,0.4); }

/* ====================================================
   UTILITIES
   ==================================================== */
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-right { text-align: right; }
.fw-700 { font-weight: 700; }
.font-head { font-family: var(--font-head); }
.text-primary-color { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.full-span { grid-column: 1 / -1; }

/* ====================================================
   RESPONSIVE — TABLET & MOBILE
   ==================================================== */

/* ---- TABLET (≤ 1200px) ---- */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
}

/* ---- SMALL TABLET (≤ 960px) ---- */
@media (max-width: 960px) {
  :root { --sidebar-w: 220px; }
}

/* ====================================================
   MOBILE (≤ 768px) — SISTEMA COMPLETO
   ==================================================== */
@media (max-width: 768px) {

  /* --- LOGIN --- */
  #login-page {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-visual {
    flex: none;
    padding: 36px 24px 28px;
    min-height: auto;
  }

  .login-logo-img {
    width: 170px;
  }

  .login-visual .brand-sub {
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 8px;
  }

  .login-visual .system-badge {
    padding: 16px 20px;
  }

  .login-visual .system-badge h2 {
    font-size: 15px;
  }

  .login-stats {
    margin-top: 24px;
    gap: 20px;
  }

  .login-stats .num { font-size: 22px; }

  .login-form-area {
    flex: none;
    min-width: unset;
    width: 100%;
    padding: 32px 24px 40px;
  }

  .login-form-inner h1 { font-size: 20px; }

  .login-profiles {
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-chip {
    flex: 1 1 40%;
    min-width: 80px;
    font-size: 11px;
  }

  /* --- APP SHELL --- */
  #app-shell {
    flex-direction: column;
    position: relative;
  }

  /* --- SIDEBAR: oculta por padrão, desliza por cima --- */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px !important;
    min-width: 280px !important;
    height: 100%;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.22);
  }

  /* Overlay escuro ao abrir sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,46,52,0.5);
    z-index: 499;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.open { display: block; }

  /* --- MAIN CONTENT: ocupa toda a tela --- */
  .main-content {
    width: 100%;
    min-width: 0;
  }

  /* --- TOP BAR --- */
  .top-bar {
    padding: 0 16px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .top-bar-title h2 {
    font-size: 15px;
  }

  .top-bar-title .breadcrumb {
    display: none;
  }

  /* Botão hamburguer */
  .btn-hamburger {
    display: flex !important;
  }

  /* Esconder botão de refresh no mobile (ocupa espaço) */
  .btn-refresh-mobile { display: none !important; }

  /* Botão de ação: só ícone no mobile */
  #top-action-btn .btn-label { display: none; }
  #top-action-btn { padding: 9px 12px; }

  /* --- PAGE CONTENT --- */
  .page-content {
    padding: 16px;
  }

  /* --- KPI GRID: 2 colunas no mobile --- */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .kpi-card { padding: 14px 14px; }

  .kpi-value { font-size: 24px !important; }

  .kpi-icon { width: 30px; height: 30px; font-size: 14px; }

  .kpi-meta { font-size: 10px; }

  /* --- GRIDS INLINE (dashboard, agenda, relatórios) --- */
  .dash-charts-row {
    grid-template-columns: 1fr !important;
  }

  .dash-bottom-row {
    grid-template-columns: 1fr !important;
  }

  .report-grid {
    grid-template-columns: 1fr !important;
  }

  .agenda-grid {
    grid-template-columns: 1fr !important;
  }

  .inspecao-grid {
    grid-template-columns: 1fr !important;
  }

  .equip-stats-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  /* --- CARDS --- */
  .card { padding: 16px; }

  /* --- TABELAS: scroll horizontal --- */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table { min-width: 560px; }

  /* Tabelas com menos colunas não precisam de min-width grande */
  .table-compact table { min-width: 340px; }

  thead th { font-size: 10px; padding: 10px 12px; }
  tbody td  { padding: 10px 12px; font-size: 12px; }

  /* --- EQUIPMENT CARDS GRID --- */
  .equip-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- FILTERS BAR --- */
  .filters-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-box { max-width: 100%; flex: 1 1 100%; }
  .filter-select { flex: 1 1 calc(50% - 4px); font-size: 12px; }

  /* --- VIEW TOGGLE: empurra para nova linha --- */
  .filters-bar .view-toggle-wrap {
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  /* --- CALENDÁRIO: scroll horizontal --- */
  .calendar-wrap { overflow-x: auto; }
  .cal-grid { min-width: 500px; }
  .cal-day { min-height: 60px; padding: 4px; }
  .cal-event { font-size: 9px; padding: 1px 4px; }
  .cal-day-num { font-size: 11px; }

  /* --- MODAL --- */
  .modal-overlay { padding: 0; align-items: flex-end; }

  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: modalMobileIn 0.3s cubic-bezier(.4,0,.2,1);
  }

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

  .modal-header { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 20px 20px 16px; }
  .modal-title  { font-size: 15px; }
  .modal-body   { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px; flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }

  /* --- FORM GRID 2 → 1 col no mobile --- */
  .form-grid-2 { grid-template-columns: 1fr; }
  .full-span    { grid-column: 1; }

  /* --- CHECKLIST: stack vertical --- */
  .checklist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .checklist-btns { width: 100%; justify-content: flex-start; }

  .chk-btn { flex: 1; text-align: center; padding: 6px 10px; }

  /* --- HORÍMETRO ROW --- */
  .horim-row { grid-template-columns: 1fr; }

  /* --- INSPEÇÃO CARDS --- */
  .insp-header { flex-direction: column; text-align: center; padding: 16px; }
  .insp-header-icon { margin: 0 auto; }

  /* --- ESTOQUE: stats grid --- */
  .estoque-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- SIDEBAR FOOTER --- */
  .user-info .user-role { display: none; }

  /* --- ALERT STRIP --- */
  .alert-strip { padding: 12px 14px; font-size: 12px; }

  /* --- SETTINGS --- */
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .settings-row input[type="number"] { width: 100% !important; text-align: left; }

  /* --- CONFIGURACOES form --- */
  .settings-section .form-grid-2 { grid-template-columns: 1fr; }

  /* --- TOP BAR responsive: esconde breadcrumb --- */
  .top-bar-actions .btn-icon:not(.btn-hamburger):not(.btn-bell) {
    display: none;
  }

  /* --- LOGIN LOGO sidebar --- */
  .sidebar-logo-img {
    max-width: 180px;
  }
}

/* ---- VERY SMALL (≤ 380px) ---- */
@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card { padding: 12px; }
  .kpi-value { font-size: 20px !important; }
  .page-content { padding: 12px; }
  .login-form-area { padding: 24px 16px 32px; }
  .login-visual { padding: 28px 16px 20px; }
  .login-logo-img { width: 140px; }
  .profile-chip { flex: 1 1 100%; }
}

/* ====================================================
   MOBILE EXTRA — ajustes finos
   ==================================================== */
@media (max-width: 768px) {

  /* Configurações: form dentro da section */
  .settings-section > div > .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Equip card top — sem tanto espaço */
  .equip-card-top { padding: 16px; }
  .equip-card-icon { width: 40px; height: 40px; font-size: 18px; }
  .equip-card-name { font-size: 13px; }

  /* Chart cards: altura menor no mobile */
  .chart-card > div[style*="height"] { height: 200px !important; }
  .chart-card { padding: 14px; }
  .chart-card-title { font-size: 12px; margin-bottom: 10px; }

  /* Agenda sidebar: oculta no mobile, o calendário ocupa tudo */
  .agenda-sidebar-mobile { display: none !important; }
  /* Lista de eventos mobile: visível só no mobile */
  .agenda-events-mobile { display: block; }

  /* Estoque: tabela mais compacta */
  .estoque-kpi-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* Inspecao: 1 coluna */
  .inspecao-grid { grid-template-columns: 1fr !important; }

  /* OS detail modal: status cards 1 col */
  .os-status-grid { grid-template-columns: 1fr !important; }

  /* Top action btn: compacto */
  #top-action-btn { font-size: 12px; padding: 8px 10px; }

  /* Nav badges: menores */
  .nav-badge { font-size: 9px; padding: 1px 5px; }

  /* Sidebar footer: mais compacto */
  .sidebar-footer { padding: 12px 16px; }

  /* Progress bars em tabelas */
  .progress-bar-wrap { min-width: 60px; }

  /* Relatório bottom table */
  .report-grid + .card { margin-top: 0; }
}

/* Agenda events mobile: oculto no desktop */
.agenda-events-mobile { display: none; }

/* ---- Botão hamburguer: oculto no desktop --- */
.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-hamburger:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Overlay de sidebar — só existe no mobile, portanto oculto por padrão */
.sidebar-overlay { display: none; }
