:root {
  --bg: #edf2f7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #17212f;
  --muted: #6b7280;
  --primary: #123b67;
  --primary-2: #1f5f99;
  --primary-soft: #eaf2fb;
  --border: #d8e2ee;
  --border-strong: #c5d3e3;
  --shadow: 0 8px 24px rgba(18, 59, 103, 0.08);
  --shadow-soft: 0 4px 14px rgba(18, 59, 103, 0.06);
  --radius: 18px;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
body {
  background:
    radial-gradient(circle at top left, rgba(31, 95, 153, 0.06), transparent 28%),
    linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
  color: var(--text);
  min-height: 100vh;
}
.hidden-app { display: none; }
#authView.hidden-app { display: none !important; }
.container { max-width: 1520px; margin: 0 auto; padding: 24px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.auth-brand h1 { color: var(--primary); font-size: 30px; margin-bottom: 12px; }
.auth-brand p { color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.auth-brand { display: flex; align-items: center; gap: 18px; }
.auth-brand-text { min-width: 0; }
.auth-logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand-text { min-width: 0; }
.header-logo {
  width: 170px;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.auth-tab { border: 1px solid var(--border); background: #edf2f7; color: var(--primary); border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.auth-tab.active { background: var(--primary); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: grid; gap: 12px; }
.auth-message { margin-top: 14px; border: 1px solid var(--border); background: #f8fbff; border-radius: 14px; padding: 14px; line-height: 1.4; }
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding: 4px 2px;
}
.header h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 6px;
}
.header p {
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
  line-height: 1.45;
}
.header-right { display: flex; gap: 10px; align-items: center; }
.header-right-stack { align-items: flex-start; flex-direction: column; }
.clock-box, .sync-chip, .user-box {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px 14px;
  color: var(--primary);
  backdrop-filter: blur(8px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.clock-box, .sync-chip { font-weight: 700; }
.user-box { display: grid; gap: 2px; min-width: 230px; }
.user-box strong { font-size: 14px; }
.user-box span { font-size: 12px; color: var(--muted); }
.link-btn { background: transparent; color: var(--primary); font-weight: 700; border: 1px solid transparent; cursor: pointer; padding: 10px 6px; border-radius: 12px; min-height: 48px; }
.link-btn:hover { background: rgba(18, 59, 103, 0.06); border-color: var(--border); }
.top-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.tab-btn { border: 1px solid var(--border); background: #edf2f7; color: var(--primary); border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-header h2, .report-box h3 { color: var(--primary); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.form-card { padding-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: #374151; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; font-size: 14px; background: #fcfdff; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-strong); background: #ffffff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(31, 106, 165, 0.12); background: #fff; }
.field textarea { min-height: 92px; resize: vertical; }
.full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: none; border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: 800; transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 8px 18px rgba(18, 59, 103, 0.18); }
.btn-light { background: #eef3f8; color: var(--primary); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.content-area { display: grid; gap: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; }
.compact-stats { align-items: stretch; }
.compact-stats .stat-card { min-height: 74px; padding: 12px 14px; }
.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0.9;
}
.stat-card span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding-left: 10px; }
.stat-card strong { font-size: 28px; line-height: 1; color: var(--primary); font-weight: 800; padding-left: 10px; }
.badge-info, .badge-count { background: #edf5ff; color: var(--primary); font-size: 12px; padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.filters-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(150px, 1fr)); gap: 12px; padding: 18px 18px 0; }
.table-wrap { overflow: auto; padding: 18px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1250px; table-layout: fixed; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
th { color: var(--primary); background: #f5f8fc; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; z-index: 1; }
tbody tr { transition: background 0.2s ease, transform 0.2s ease; }
tbody tr:hover { background: #f8fbff; }
.ticket-row { cursor: pointer; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-aberto { background: #dbeafe; color: #1d4ed8; }
.status-em-andamento { background: #fef3c7; color: #92400e; }
.status-finalizado { background: #d1fae5; color: #065f46; }
.status-cancelado { background: #fee2e2; color: #991b1b; }
.sla-ok { color: var(--success); font-weight: 700; }
.sla-alerta { color: var(--warning); font-weight: 700; }
.sla-estourado { color: var(--danger); font-weight: 700; }
.muted { color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 24px; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ellipsis-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.report-card { padding-bottom: 20px; }
.report-filters { display: flex; gap: 10px; }
.report-filters select { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.report-box { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: linear-gradient(180deg, #ffffff, #f8fbff); }
.summary-list { display: grid; gap: 10px; margin-top: 12px; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 999; }
.modal-backdrop[hidden] { display: none !important; }
.modal-card { width: 100%; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.18); overflow: hidden; max-height: 90vh; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 16px 18px; display: grid; gap: 12px; }
.modal-actions { padding: 16px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
.modal-ticket-info { background: #f8fbff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 6px; font-size: 14px; }
.modal-ticket-info div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { border: none; background: #eef3f9; color: var(--primary); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 20px; line-height: 1; }
.table-wrap table th,
.table-wrap table td,
.report-table th,
.report-table td { white-space: nowrap; }
.table-wrap table td,
.report-table td { overflow: hidden; text-overflow: ellipsis; }
.table-wrap table th:nth-child(1), .table-wrap table td:nth-child(1) { width: 72px; }
.table-wrap table th:nth-child(2), .table-wrap table td:nth-child(2) { width: 160px; }
.table-wrap table th:nth-child(3), .table-wrap table td:nth-child(3) { width: 130px; }
.table-wrap table th:nth-child(4), .table-wrap table td:nth-child(4) { width: 82px; }
.table-wrap table th:nth-child(5), .table-wrap table td:nth-child(5) { width: 135px; }
.table-wrap table th:nth-child(6), .table-wrap table td:nth-child(6) { width: 84px; }
.table-wrap table th:nth-child(7), .table-wrap table td:nth-child(7) { width: 110px; }
.table-wrap table th:nth-child(8), .table-wrap table td:nth-child(8) { width: 165px; }
.table-wrap table th:nth-child(9), .table-wrap table td:nth-child(9) { width: 180px; }
.table-wrap table th:nth-child(10), .table-wrap table td:nth-child(10) { width: 150px; }
.table-wrap table th:nth-child(11), .table-wrap table td:nth-child(11) { width: 200px; }
.report-stats-6 { grid-template-columns: repeat(6, 1fr); }
.report-stats-8 { grid-template-columns: repeat(8, 1fr); }
.report-table-wrap { margin: 0 20px 20px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.report-table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.report-table { width: 100%; min-width: 1100px; border-collapse: collapse; }
@media (max-width: 1400px) {
  .report-stats-6 { grid-template-columns: repeat(3, 1fr); }
  .report-stats-8 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .layout, .stats-grid, .filters-grid, .form-grid, .report-grid { grid-template-columns: 1fr; }
  .header, .top-actions { flex-direction: column; align-items: flex-start; }
  .sync-chip, .user-box { width: 100%; }
}

.kpi-strip { margin-bottom: 2px; }

@media (max-width: 1200px) {
  .layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 16px; }
  .brand-block,
  .auth-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo,
  .auth-logo {
    width: 150px;
  }
  .header,
  .top-actions { flex-direction: column; align-items: flex-start; }
  .header-right,
  .header-right-stack { width: 100%; justify-content: flex-start; }
  .header-right-stack { flex-direction: column; align-items: flex-start; }
  .clock-box,
  .sync-chip,
  .user-box,
  .link-btn { width: 100%; }
  .stats-grid,
  .filters-grid,
  .form-grid,
  .report-stats-6,
  .report-stats-8 { grid-template-columns: 1fr; }
}


.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ===== AJUSTE FINAL: TOPO EM LINHA E RELATÓRIO COMPLETO ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap !important;
}

.clock-box,
.user-box,
.link-btn {
  white-space: nowrap;
}

.report-table-wrap,
.report-table-scroll {
  overflow: hidden !important;
  max-height: none !important;
}

.report-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 12px !important;
  padding: 12px 6px !important;
  vertical-align: middle !important;
}

.report-table th {
  font-size: 10px !important;
  letter-spacing: 0.02em !important;
}

.report-table th:nth-child(1), .report-table td:nth-child(1) { width: 4% !important; }   /* Nº */
.report-table th:nth-child(2), .report-table td:nth-child(2) { width: 9% !important; }   /* Assunto */
.report-table th:nth-child(3), .report-table td:nth-child(3) { width: 7% !important; }   /* Status */
.report-table th:nth-child(4), .report-table td:nth-child(4) { width: 10% !important; }  /* Abertura */
.report-table th:nth-child(5), .report-table td:nth-child(5) { width: 10% !important; }  /* Início */
.report-table th:nth-child(6), .report-table td:nth-child(6) { width: 10% !important; }  /* Fechamento */
.report-table th:nth-child(7), .report-table td:nth-child(7) { width: 7% !important; }   /* Tempo gasto */
.report-table th:nth-child(8), .report-table td:nth-child(8) { width: 7% !important; }   /* Aprovação */
.report-table th:nth-child(9), .report-table td:nth-child(9) { width: 10% !important; }  /* Aprovado por */
.report-table th:nth-child(10), .report-table td:nth-child(10) { width: 10% !important; } /* Data aprovação */
.report-table th:nth-child(11), .report-table td:nth-child(11) { width: 8% !important; }  /* Responsável */
.report-table th:nth-child(12), .report-table td:nth-child(12) { width: 8% !important; }  /* Ação tomada */

.report-table td:nth-child(12),
.report-table th:nth-child(12) {
  white-space: normal !important;
  line-height: 1.2 !important;
}

.report-table .ellipsis-cell,
.report-table td.ellipsis-cell {
  max-width: none !important;
}

.modal-actions-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.field textarea:disabled,
.field select:disabled,
.field input:disabled {
  background: #f4f7fb;
  color: #4b5563;
  opacity: 1;
  cursor: default;
}

@media (max-width: 768px) {
  .header-right {
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: flex-start;
  }

  .clock-box,
  .user-box,
  .link-btn {
    width: auto;
  }
}


/* ajuste mínimo solicitado */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-tab:nth-child(2) {
  display: flex;
  justify-content: center;
}


/* ===== LOGIN LIMPO ===== */
.auth-card-clean {
  max-width: 460px;
  padding: 30px 24px 24px;
}
.auth-brand-center {
  justify-content: center;
  margin-bottom: 24px;
}
.auth-logo-center {
  width: 220px;
  margin: 0 auto;
}
.auth-actions-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-message:empty {
  display: none;
}
.auth-tabs {
  display: none !important;
}

/* ===== RELATÓRIO EXPORTÁVEL ===== */
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.report-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.report-actions .btn {
  min-height: 42px;
}
.report-total-hours {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--primary);
  font-size: 16px;
}
.report-total-hours span {
  font-weight: 800;
  font-size: 22px;
}
.report-print-meta {
  display: none;
  align-items: center;
  gap: 18px;
  margin: 20px 20px 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}
.report-print-logo {
  width: 170px;
  height: auto;
  object-fit: contain;
}
.report-print-meta-text {
  display: grid;
  gap: 4px;
}
.report-print-meta-text h3 {
  color: var(--primary);
  font-size: 22px;
  margin: 0 0 4px;
}

@media (max-width: 1100px) {
  .report-toolbar,
  .report-controls,
  .report-actions {
    width: 100%;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  #authView,
  .header,
  .top-actions,
  .report-actions,
  #logoutBtn {
    display: none !important;
  }

  #tab-operacao {
    display: none !important;
  }

  #tab-relatorio,
  .tab-panel.active,
  .tab-panel {
    display: block !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .card,
  .report-card,
  .report-box,
  .report-table-wrap,
  .report-total-hours {
    box-shadow: none !important;
    background: #fff !important;
  }

  .report-card {
    border: none !important;
    border-radius: 0 !important;
  }

  .report-grid,
  .report-stats-6 {
    break-inside: avoid;
  }

  .report-print-meta {
    display: flex !important;
  }

  .report-filters {
    display: none !important;
  }

  .report-table-wrap {
    overflow: visible !important;
    margin: 0 20px 20px;
  }

  .report-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  .report-table th,
  .report-table td {
    font-size: 10px !important;
    padding: 8px 4px !important;
  }

  .report-total-hours {
    margin-top: 12px !important;
    page-break-inside: avoid;
  }
}


/* ===== VISITA TÉCNICA + RELATÓRIO UNIFICADO ===== */
.report-table th:nth-child(1), .report-table td:nth-child(1) { width: 8% !important; }   /* Tipo */
.report-table th:nth-child(2), .report-table td:nth-child(2) { width: 6% !important; }   /* Nº */
.report-table th:nth-child(3), .report-table td:nth-child(3) { width: 10% !important; }  /* Assunto */
.report-table th:nth-child(4), .report-table td:nth-child(4) { width: 7% !important; }   /* Status */
.report-table th:nth-child(5), .report-table td:nth-child(5) { width: 9% !important; }   /* Abertura */
.report-table th:nth-child(6), .report-table td:nth-child(6) { width: 9% !important; }   /* Início */
.report-table th:nth-child(7), .report-table td:nth-child(7) { width: 9% !important; }   /* Fechamento */
.report-table th:nth-child(8), .report-table td:nth-child(8) { width: 7% !important; }   /* Tempo gasto */
.report-table th:nth-child(9), .report-table td:nth-child(9) { width: 7% !important; }   /* Aprovação */
.report-table th:nth-child(10), .report-table td:nth-child(10) { width: 8% !important; } /* Aprovado por */
.report-table th:nth-child(11), .report-table td:nth-child(11) { width: 8% !important; } /* Data aprovação */
.report-table th:nth-child(12), .report-table td:nth-child(12) { width: 6% !important; } /* Responsável */
.report-table th:nth-child(13), .report-table td:nth-child(13) { width: 10% !important; }/* Ação tomada */

#tab-visitas .table-wrap table th:nth-child(1), #tab-visitas .table-wrap table td:nth-child(1) { width: 110px; }
#tab-visitas .table-wrap table th:nth-child(2), #tab-visitas .table-wrap table td:nth-child(2) { width: 180px; }
#tab-visitas .table-wrap table th:nth-child(3), #tab-visitas .table-wrap table td:nth-child(3) { width: 180px; }
#tab-visitas .table-wrap table th:nth-child(4), #tab-visitas .table-wrap table td:nth-child(4) { width: 170px; }
#tab-visitas .table-wrap table th:nth-child(5), #tab-visitas .table-wrap table td:nth-child(5) { width: 170px; }
#tab-visitas .table-wrap table th:nth-child(6), #tab-visitas .table-wrap table td:nth-child(6) { width: 120px; }
#tab-visitas .table-wrap table th:nth-child(7), #tab-visitas .table-wrap table td:nth-child(7) { width: 320px; }


.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfdff;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.visit-responsibles {
  justify-content: flex-start;
}

/* ===== AJUSTE SOLICITADO NO RELATÓRIO ===== */
.report-stats-8 .stat-card:nth-child(6) strong,
.report-stats-8 .stat-card:nth-child(7) strong,
.report-stats-8 .stat-card:nth-child(8) strong {
  font-size: 22px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.report-stats-8 .stat-card:nth-child(6),
.report-stats-8 .stat-card:nth-child(7),
.report-stats-8 .stat-card:nth-child(8) {
  min-height: 74px;
}

.report-table-wrap {
  overflow: hidden !important;
}

.report-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.report-table th,
.report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-size: 10px !important;
  padding: 10px 4px !important;
  letter-spacing: 0 !important;
}

.report-table th {
  font-size: 9px !important;
}

.report-table th:nth-child(1), .report-table td:nth-child(1) { width: 5% !important; }   /* Tipo */
.report-table th:nth-child(2), .report-table td:nth-child(2) { width: 6% !important; }   /* Nº */
.report-table th:nth-child(3), .report-table td:nth-child(3) { width: 10% !important; }  /* Assunto */
.report-table th:nth-child(4), .report-table td:nth-child(4) { width: 7% !important; }   /* Status */
.report-table th:nth-child(5), .report-table td:nth-child(5) { width: 9% !important; }   /* Abertura */
.report-table th:nth-child(6), .report-table td:nth-child(6) { width: 9% !important; }   /* Início */
.report-table th:nth-child(7), .report-table td:nth-child(7) { width: 9% !important; }   /* Fechamento */
.report-table th:nth-child(8), .report-table td:nth-child(8) { width: 7% !important; }   /* Tempo gasto */
.report-table th:nth-child(9), .report-table td:nth-child(9) { width: 7% !important; }   /* Aprovação */
.report-table th:nth-child(10), .report-table td:nth-child(10) { width: 9% !important; } /* Aprovado por */
.report-table th:nth-child(11), .report-table td:nth-child(11) { width: 9% !important; } /* Data aprovação */
.report-table th:nth-child(12), .report-table td:nth-child(12) { width: 9% !important; } /* Responsável */
.report-table th:nth-child(13), .report-table td:nth-child(13) {
  width: 4% !important;   /* Ação tomada */
  text-overflow: ellipsis !important;
}



/* ===== AJUSTE FINAL: BARRA VERTICAL APÓS 7 REGISTROS ===== */
#tab-relatorio .report-table-wrap {
  margin: 0 20px 20px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
}

#tab-relatorio .report-table-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--border) !important;
  background: #fff !important;
}

#tab-relatorio .report-table-scroll {
  height: 386px !important;      /* cabeçalho da grade + 7 linhas visíveis */
  max-height: 386px !important;
  overflow-y: scroll !important; /* força a barra vertical */
  overflow-x: auto !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

#tab-relatorio .report-table {
  width: 100% !important;
  min-width: 1400px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

#tab-relatorio .report-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #f5f8fc !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}

@media print {
  #tab-relatorio .report-table-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* ===== AJUSTE PONTUAL: ROLAGEM EM "POR TIPO DE SOLICITAÇÃO" APÓS 5 ITENS ===== */
#reportByType {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

#reportByType::-webkit-scrollbar {
  width: 10px;
}

#reportByType::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

#reportByType::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}



/* ===== FIX MODAL (ESCOPADO - NÃO QUEBRA LAYOUT) ===== */
#ticketModal .modal-card {
  width: 90%;
  max-width: 700px;
}

#ticketModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#ticketModal .modal-ticket-info div {
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}


/* ===== HOVER CARD APENAS NO RELATÓRIO MENSAL ===== */
.report-hover-card {
  position: fixed;
  z-index: 1200;
  width: min(430px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 16px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.report-hover-card[hidden] {
  display: none !important;
}

.report-hover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.report-hover-header strong {
  color: var(--primary);
  font-size: 15px;
}

.report-hover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.report-hover-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-hover-item.full {
  grid-column: 1 / -1;
}

.report-hover-item span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.report-hover-item div {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

#tab-relatorio .report-hover-row {
  cursor: default;
}

#tab-relatorio .report-hover-row:hover {
  background: #f8fbff;
}


/* ===== AJUSTE RELATÓRIO: BOTÃO ÚNICO + QUEBRA SÓ EM AÇÃO TOMADA ===== */
#tab-relatorio .report-actions {
  justify-content: flex-end;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: top !important;
}

#tab-relatorio .report-table th:nth-child(13),
#tab-relatorio .report-table td:nth-child(13) {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}


/* ===== RELATÓRIO GERADO EM NOVA TELA ===== */
#tab-relatorio .report-table-scroll {
  height: 386px !important;
  max-height: 386px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
}

#tab-relatorio .report-table {
  min-width: 1400px !important;
  table-layout: fixed !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td {
  font-size: 10px !important;
  padding: 10px 6px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 44px !important;
}

#tab-relatorio .report-table th:nth-child(13),
#tab-relatorio .report-table td:nth-child(13) {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

.generated-report-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  z-index: 2000;
  padding: 22px;
}

.generated-report-backdrop[hidden] {
  display: none !important;
}

.generated-report-shell {
  width: min(1500px, 100%);
  height: calc(100vh - 44px);
  margin: 0 auto;
  background: #f3f7fb;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.generated-report-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.generated-report-topbar strong {
  color: var(--primary);
  display: block;
  font-size: 18px;
}

.generated-report-topbar span {
  color: var(--muted);
  font-size: 13px;
}

.generated-report-scroll {
  overflow: auto;
  padding: 22px;
}

.generated-report-sheet {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.generated-report-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.generated-report-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.generated-report-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.generated-report-brand h2 {
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 6px;
}

.generated-report-brand p {
  color: var(--muted);
}

.generated-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.generated-report-meta div,
.generated-kpi-card,
.generated-panel,
.generated-report-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.generated-report-meta div {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.generated-report-meta span,
.generated-kpi-card span,
.generated-panel-title,
.generated-report-footer span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.generated-report-meta strong,
.generated-kpi-card strong,
.generated-report-footer strong {
  color: var(--primary);
}

.generated-kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  gap: 14px;
}

.generated-kpi-card {
  padding: 14px 16px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.generated-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.generated-kpi-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.generated-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.generated-panel {
  padding: 18px;
}

.generated-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.generated-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--border);
}

.generated-summary-item span {
  color: var(--text);
}

.generated-summary-item strong {
  color: var(--primary);
  font-size: 18px;
}

.generated-table-panel {
  padding: 0;
  overflow: hidden;
}

.generated-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.generated-table-header h3 {
  color: var(--primary);
  font-size: 18px;
}

.generated-table-header span {
  color: var(--muted);
}

.generated-table-wrap {
  overflow: auto;
}

.generated-report-table {
  width: 100%;
  min-width: 1480px;
  table-layout: fixed;
  border-collapse: collapse;
}

.generated-report-table th,
.generated-report-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generated-report-table th {
  background: #f5f8fc;
  color: var(--primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.generated-report-table tbody tr:hover {
  background: #f8fbff;
}

.generated-report-table th:nth-child(1), .generated-report-table td:nth-child(1) { width: 6%; }
.generated-report-table th:nth-child(2), .generated-report-table td:nth-child(2) { width: 6%; }
.generated-report-table th:nth-child(3), .generated-report-table td:nth-child(3) { width: 12%; }
.generated-report-table th:nth-child(4), .generated-report-table td:nth-child(4) { width: 8%; }
.generated-report-table th:nth-child(5), .generated-report-table td:nth-child(5) { width: 10%; }
.generated-report-table th:nth-child(6), .generated-report-table td:nth-child(6) { width: 10%; }
.generated-report-table th:nth-child(7), .generated-report-table td:nth-child(7) { width: 10%; }
.generated-report-table th:nth-child(8), .generated-report-table td:nth-child(8) { width: 8%; }
.generated-report-table th:nth-child(9), .generated-report-table td:nth-child(9) { width: 8%; }
.generated-report-table th:nth-child(10), .generated-report-table td:nth-child(10) { width: 10%; }
.generated-report-table th:nth-child(11), .generated-report-table td:nth-child(11) { width: 10%; }
.generated-report-table th:nth-child(12), .generated-report-table td:nth-child(12) { width: 10%; }
.generated-report-table th:nth-child(13), .generated-report-table td:nth-child(13) { width: 18%; }

.generated-report-table td.actions-col,
.generated-report-table th:nth-child(13) {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.generated-report-footer {
  padding: 18px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.generated-report-footer strong {
  font-size: 30px;
}

@media (max-width: 1200px) {
  .generated-report-header,
  .generated-summary-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .generated-report-meta,
  .generated-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .generated-report-backdrop {
    padding: 10px;
  }

  .generated-report-shell {
    height: calc(100vh - 20px);
  }

  .generated-report-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .generated-report-meta,
  .generated-kpi-grid,
  .generated-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== AJUSTE: AÇÃO TOMADA COM QUEBRA DE LINHA ===== */
.table-wrap table th:nth-child(11),
.table-wrap table td:nth-child(11) {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}

#tab-relatorio .report-table th:nth-child(13),
#tab-relatorio .report-table td:nth-child(13),
.generated-report-table th:nth-child(13),
.generated-report-table td:nth-child(13),
.actions-col {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}



/* ===== AJUSTE FINAL SOMENTE NA TELA OPERAÇÃO ===== */
/* mantém visual normal; barra vertical aparece só quando precisar */
#tab-operacao .table-card {
  overflow: hidden !important;
}

#tab-operacao .table-card .table-wrap {
  max-height: 540px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 18px 18px !important;
  scrollbar-gutter: auto !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 10px;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f5f8fc !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}

#tab-operacao .table-card th:nth-child(1), #tab-operacao .table-card td:nth-child(1) { width: 6% !important; }
#tab-operacao .table-card th:nth-child(2), #tab-operacao .table-card td:nth-child(2) { width: 12% !important; }
#tab-operacao .table-card th:nth-child(3), #tab-operacao .table-card td:nth-child(3) { width: 10% !important; }
#tab-operacao .table-card th:nth-child(4), #tab-operacao .table-card td:nth-child(4) { width: 7% !important; }
#tab-operacao .table-card th:nth-child(5), #tab-operacao .table-card td:nth-child(5) { width: 12% !important; }
#tab-operacao .table-card th:nth-child(6), #tab-operacao .table-card td:nth-child(6) { width: 7% !important; }
#tab-operacao .table-card th:nth-child(7), #tab-operacao .table-card td:nth-child(7) { width: 10% !important; }
#tab-operacao .table-card th:nth-child(8), #tab-operacao .table-card td:nth-child(8) { width: 12% !important; }
#tab-operacao .table-card th:nth-child(9), #tab-operacao .table-card td:nth-child(9) { width: 12% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 13% !important; }

#tab-operacao .table-card th:nth-child(11) {
  width: 19% !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

#tab-operacao .table-card td:nth-child(11) {
  width: 19% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}




/* ===== AJUSTE FINAL LIMPO: OPERAÇÃO + RELATÓRIO MENSAL ===== */
/* Objetivo:
   - manter tudo em uma linha
   - aumentar o layout para caber melhor
   - só "Ação tomada / Ação realizada" pode ficar resumido com ...
*/

/* largura maior da área principal */
.container {
  max-width: 1860px !important;
}

/* =========================
   OPERAÇÃO
   ========================= */
#tab-operacao .content-area {
  min-width: 0 !important;
}

#tab-operacao .table-card {
  overflow: hidden !important;
}

#tab-operacao .table-card .table-wrap {
  max-height: 540px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 18px 18px !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 0 !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f5f8fc !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 12px !important;
  padding: 10px 8px !important;
  line-height: 1.15 !important;
}

/* todas as colunas em uma linha */
#tab-operacao .table-card td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  padding: 10px 8px !important;
}

/* larguras da operação */
#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 5% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 12% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 12% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 5% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 12% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 6% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 14% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 11% !important; }

/* só Ação realizada fica resumida */
#tab-operacao .table-card th:nth-child(11),
#tab-operacao .table-card td:nth-child(11) {
  width: 3% !important;
}
#tab-operacao .table-card th:nth-child(11) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#tab-operacao .table-card td:nth-child(11) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================
   RELATÓRIO MENSAL
   ========================= */
#tab-relatorio .report-card {
  overflow: hidden !important;
}

#tab-relatorio .report-table-wrap {
  margin: 0 20px 20px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
}

#tab-relatorio .report-table-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--border) !important;
  background: #fff !important;
}

#tab-relatorio .report-table-scroll {
  height: 386px !important;
  max-height: 386px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 0 !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}

#tab-relatorio .report-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-relatorio .report-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #f5f8fc !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 11px !important;
  padding: 10px 6px !important;
  line-height: 1.15 !important;
}

/* todas as colunas em uma linha */
#tab-relatorio .report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
  font-size: 11px !important;
  padding: 10px 6px !important;
}

/* larguras do relatório */
#tab-relatorio .report-table th:nth-child(1),  #tab-relatorio .report-table td:nth-child(1)  { width: 5% !important; }
#tab-relatorio .report-table th:nth-child(2),  #tab-relatorio .report-table td:nth-child(2)  { width: 6% !important; }
#tab-relatorio .report-table th:nth-child(3),  #tab-relatorio .report-table td:nth-child(3)  { width: 13% !important; }
#tab-relatorio .report-table th:nth-child(4),  #tab-relatorio .report-table td:nth-child(4)  { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(5),  #tab-relatorio .report-table td:nth-child(5)  { width: 9% !important; }
#tab-relatorio .report-table th:nth-child(6),  #tab-relatorio .report-table td:nth-child(6)  { width: 9% !important; }
#tab-relatorio .report-table th:nth-child(7),  #tab-relatorio .report-table td:nth-child(7)  { width: 9% !important; }
#tab-relatorio .report-table th:nth-child(8),  #tab-relatorio .report-table td:nth-child(8)  { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(9),  #tab-relatorio .report-table td:nth-child(9)  { width: 7% !important; }
#tab-relatorio .report-table th:nth-child(10), #tab-relatorio .report-table td:nth-child(10) { width: 10% !important; }
#tab-relatorio .report-table th:nth-child(11), #tab-relatorio .report-table td:nth-child(11) { width: 10% !important; }
#tab-relatorio .report-table th:nth-child(12), #tab-relatorio .report-table td:nth-child(12) { width: 11% !important; }

/* só Ação tomada fica resumida */
#tab-relatorio .report-table th:nth-child(13),
#tab-relatorio .report-table td:nth-child(13) {
  width: 3% !important;
}
#tab-relatorio .report-table th:nth-child(13) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#tab-relatorio .report-table td:nth-child(13) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* mantém hover bonito no relatório */
#tab-relatorio .report-hover-row {
  cursor: default;
}
#tab-relatorio .report-hover-row:hover {
  background: #f8fbff;
}


.helper-text {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.mono-cell {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 12px;
}

#tab-usuarios .table-wrap {
  max-height: 620px;
  overflow: auto;
}


.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: visible !important;
  min-width: 170px;
}

.actions-cell .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.user-delete-btn {
  font-weight: 700;
}


/* ===== MELHORIA ITEM 2/3: HIERARQUIA VISUAL E SLA POR PRIORIDADE ===== */
.priority-row td:first-child {
  border-left: 5px solid transparent;
}

.priority-critical td:first-child {
  border-left-color: #b91c1c;
}

.priority-high td:first-child {
  border-left-color: #ea580c;
}

.priority-medium td:first-child {
  border-left-color: #1f5f99;
}

.priority-low td:first-child {
  border-left-color: #0f766e;
}

.priority-critical {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.055), transparent 42%);
}

.priority-high {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.045), transparent 42%);
}

#tab-operacao .table-card tr.priority-critical:hover,
#tab-operacao .table-card tr.priority-high:hover {
  background: #fff7ed;
}

.badge-info {
  white-space: nowrap;
}


/* ===== CORREÇÃO FINAL: RELATÓRIO GERADO - HORAS E META EM UMA LINHA ===== */
/* Mantém os cards elegantes e evita quebra feia em datas, nomes e horas. */

.generated-report-meta {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
}

.generated-report-meta div {
  min-width: 0 !important;
  padding: 12px 14px !important;
}

.generated-report-meta strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.generated-kpi-grid {
  grid-template-columns: repeat(8, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

.generated-kpi-card {
  min-height: 78px !important;
  padding: 12px 12px !important;
  min-width: 0 !important;
}

.generated-kpi-card span {
  font-size: 9px !important;
  line-height: 1.05 !important;
  margin-bottom: 6px !important;
  white-space: normal !important;
}

.generated-kpi-card strong {
  font-size: 24px !important;
  line-height: 1 !important;
  letter-spacing: -0.6px !important;
  white-space: nowrap !important;
}

/* Somente os cards de horas precisam ser menores para caber: Horas chamados, Horas visitas e Tempo total atendido */
.generated-kpi-card:nth-child(6) strong,
.generated-kpi-card:nth-child(7) strong,
.generated-kpi-card:nth-child(8) strong {
  font-size: 17px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Garante que o relatório impresso/exportado mantenha a mesma leitura */
@media print {
  .generated-kpi-card strong {
    white-space: nowrap !important;
  }

  .generated-kpi-card:nth-child(6) strong,
  .generated-kpi-card:nth-child(7) strong,
  .generated-kpi-card:nth-child(8) strong {
    font-size: 15px !important;
  }
}


/* ===== AJUSTE: BOTÃO IMPRIMIR NO RELATÓRIO GERADO ===== */
.generated-report-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.generated-report-topbar-actions .btn {
  min-height: 38px;
  padding: 10px 14px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .generated-report-topbar {
    align-items: flex-start;
  }

  .generated-report-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* ===== BOTÃO EXPORTAR EXCEL ===== */
#exportReportExcelBtn,
#generatedReportExcelBtn {
  min-width: 150px;
  font-weight: 800;
  white-space: nowrap;
}

#generatedReportExcelBtn {
  min-height: 38px;
  padding: 10px 14px;
}

/* ===== CORREÇÕES 15/05: LAYOUT EXPANDIDO + COLUNA AÇÃO VISÍVEL ===== */
.container {
  max-width: 2240px !important;
  width: min(100%, 2240px) !important;
}

.layout {
  grid-template-columns: 320px minmax(0, 1fr) !important;
}

#tab-operacao .table-card .table-wrap {
  max-height: 720px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  padding: 0 18px 18px !important;
}

#tab-operacao .table-card table {
  min-width: 1580px !important;
  width: 100% !important;
  table-layout: fixed !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 5% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 12% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 7% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 7% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 13% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 11% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 14% !important; }

#tab-operacao .table-card th:nth-child(11),
#tab-operacao .table-card td:nth-child(11) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px !important;
}

@media (min-width: 1900px) {
  #tab-operacao .table-card table {
    min-width: 0 !important;
  }
}

/* ===== ADMIN: RECALCULAR SEM ESCONDER BOTÃO ===== */
#adminTicketCalculatedTime[readonly] {
  min-width: 0;
}

#adminTicketRecalculateTimeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== ADMIN ORLANDO: PAINEL DE CORREÇÃO MANUAL ===== */
.admin-tools-card { padding-bottom: 20px; }
.admin-subtitle { margin-top: 6px; font-size: 13px; }
.admin-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 20px;
}
.admin-search-actions,
.admin-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-ticket-message {
  margin: 0 20px 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--primary);
  font-weight: 700;
}
.admin-ticket-message.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.admin-ticket-message.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.admin-ticket-editor { padding: 0 20px 20px; }
.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}
.admin-edit-grid .field.full { grid-column: 1 / -1; }
.admin-edit-grid textarea { min-height: 90px; }
.admin-edit-actions { justify-content: flex-end; padding-top: 4px; }
#adminTicketSavedTime[readonly],
#adminTicketCalculatedTime[readonly],
#tab-admin-tools .admin-edit-grid input[readonly] {
  background: #eef3f8;
  color: var(--primary);
  font-weight: 800;
}
#adminTicketRecalculateTimeBtn {
  border: 1px solid var(--border-strong);
}
@media (max-width: 1200px) {
  .admin-edit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .admin-search-row,
  .admin-edit-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   VISUAL CORPORATIVO PREMIUM - JLX TECH
   Melhoria visual sem alterar regras, IDs ou lógica do sistema.
   ========================================================== */
:root {
  --bg: #071421;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #132033;
  --muted: #64748b;
  --primary: #082f49;
  --primary-2: #0ea5e9;
  --primary-soft: #e0f2fe;
  --accent: #f59e0b;
  --accent-soft: #fff7ed;
  --border: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(14, 165, 233, 0.42);
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.16);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(14, 165, 233, 0.26), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(135deg, #071421 0%, #0f2742 42%, #eef6ff 42%, #f8fafc 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
}

.container {
  max-width: 1640px;
  padding: 28px;
}

.header {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8,47,73,.96), rgba(12,74,110,.88)),
    radial-gradient(circle at right, rgba(14,165,233,.32), transparent 34%);
  box-shadow: 0 24px 80px rgba(2, 8, 23, .22);
  color: #fff;
}

.header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .18);
  box-shadow: 0 0 0 34px rgba(255,255,255,.035);
}

.header-logo {
  width: 190px;
  background: rgba(255,255,255,.98);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.20);
}

.header h1 {
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.05em;
}

.header p {
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,.14);
  color: #bae6fd;
  border: 1px solid rgba(186,230,253,.20);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.header-right { position: relative; z-index: 1; }
.clock-box, .user-box, .sync-chip {
  background: rgba(255,255,255,.94);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 14px 34px rgba(2, 8, 23, .16);
}

.header .link-btn {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  padding-inline: 18px;
}
.header .link-btn:hover { background: rgba(255,255,255,.12); }

.top-actions {
  position: sticky;
  top: 10px;
  z-index: 20;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 18px 42px rgba(15,23,42,.10);
  backdrop-filter: blur(18px);
}

.tab-btn, .auth-tab {
  background: #ffffff;
  border-color: rgba(148,163,184,.32);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.tab-btn:hover, .auth-tab:hover { transform: translateY(-1px); border-color: var(--primary-2); }
.tab-btn.active, .auth-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #082f49);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14,165,233,.28);
}

.layout { grid-template-columns: 360px minmax(0, 1fr); gap: 22px; }
.card {
  background: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.card-header {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.22));
}
.card-header h2, .report-box h3 { font-size: 18px; }
.form-card { position: sticky; top: 94px; }

.field label { color: #334155; font-size: 12px; text-transform: uppercase; letter-spacing: .045em; }
.field input, .field select, .field textarea {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(14,165,233,.16), 0 10px 24px rgba(14,165,233,.08);
}
.helper-text { color: var(--muted); line-height: 1.35; }

.btn {
  border-radius: 15px;
  min-height: 46px;
  letter-spacing: -.01em;
}
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #075985 52%, #082f49);
  box-shadow: 0 16px 34px rgba(14,165,233,.28);
}
.btn-light { background: #f8fafc; border: 1px solid rgba(148,163,184,.28); }
.btn-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); }

.stats-grid { gap: 16px; }
.stat-card {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,.75);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,249,255,.88));
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.stat-card::before {
  width: 6px;
  background: linear-gradient(180deg, #0ea5e9, #f59e0b);
}
.stat-card span { font-size: 11px; color: #64748b; }
.stat-card strong { font-size: 34px; color: #082f49; }

.badge-info, .badge-count {
  background: linear-gradient(135deg, #e0f2fe, #fff7ed);
  color: #075985;
  border: 1px solid rgba(14,165,233,.18);
}

.filters-grid {
  background: rgba(248,250,252,.72);
  margin: 18px 18px 0;
  padding: 16px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 20px;
}

.table-wrap {
  margin: 18px;
  padding: 0;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
th {
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
  color: #075985;
  font-size: 11px;
}
td { background: rgba(255,255,255,.96); }
tbody tr:hover td {
  background: #f0f9ff;
}
.ticket-row:hover { transform: none; }

.badge { border: 1px solid rgba(255,255,255,.72); box-shadow: 0 8px 16px rgba(15,23,42,.06); }
.status-aberto { background: #dbeafe; color: #1e40af; }
.status-em-andamento { background: #fef3c7; color: #92400e; }
.status-finalizado { background: #dcfce7; color: #166534; }
.status-cancelado { background: #fee2e2; color: #991b1b; }

.modal-backdrop { background: rgba(2,8,23,.62); backdrop-filter: blur(8px); }
.modal-card {
  border-radius: 26px;
  box-shadow: 0 34px 90px rgba(2,8,23,.34);
  border: 1px solid rgba(255,255,255,.68);
}
.modal-header { background: linear-gradient(135deg, #082f49, #075985); color: #fff; }
.modal-header h2, .modal-header h3 { color: #fff; }
.icon-btn { background: rgba(255,255,255,.16); color: #fff; }
.modal-ticket-info { background: linear-gradient(135deg, #f8fafc, #eff6ff); }

.auth-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(14,165,233,.34), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(245,158,11,.20), transparent 28%),
    linear-gradient(135deg, #071421, #0f2742 60%, #082f49);
}
.auth-card-clean {
  max-width: 500px;
  padding: 34px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}
.auth-brand-center {
  display: grid;
  justify-items: center;
  text-align: center;
}
.auth-title-block h1 {
  color: #082f49;
  font-size: 28px;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.auth-title-block p { color: var(--muted); margin-bottom: 10px; }
.auth-title-block .eyebrow { color: #075985; background: #e0f2fe; margin-inline: auto; }
.auth-logo-center {
  width: 235px;
  filter: drop-shadow(0 16px 22px rgba(15,23,42,.14));
}

.report-box, .generated-panel, .generated-kpi-card {
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

@media (max-width: 1200px) {
  .form-card { position: static; }
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 14px; }
  .header { padding: 20px; border-radius: 24px; }
  .header-logo { width: 155px; }
  .top-actions { position: static; }
  .top-actions, .header-right { width: 100%; }
  .tab-btn, .sync-chip { width: 100%; justify-content: center; }
  .auth-card-clean { padding: 26px 20px; }
}

/* ==========================================================
   V11 - ENCAIXE CORRETO EM TELAS GRANDES E PEQUENAS
   Regra principal: o sistema inteiro fica como um bloco único.
   Monitor grande: centralizado com respiro dos dois lados.
   Notebook/telas menores: ocupa a largura toda sem quebrar.
   ========================================================== */

:root {
  --system-max-width: 1720px;
  --side-width: 152px;
  --side-width-compact: 104px;
}

html,
body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  display: block;
  padding: 0;
}

/* O app deixa de estourar a tela toda: vira um bloco central */
#appView.app-shell:not(.hidden-app) {
  width: min(100vw, var(--system-max-width)) !important;
  max-width: var(--system-max-width) !important;
  min-height: 100vh;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: var(--side-width) minmax(0, 1fr) !important;
  align-items: stretch;
  overflow: visible !important;
  background: transparent;
}

#appView.hidden-app {
  display: none !important;
}

/* Menu grudado no sistema, sem correr para o canto do monitor */
.side-menu {
  position: sticky !important;
  top: 0 !important;
  align-self: start;
  height: 100vh;
  min-height: 720px;
  width: var(--side-width) !important;
  padding: 22px 12px 14px !important;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(3, 23, 43, .98), rgba(4, 38, 70, .96)),
    radial-gradient(circle at top, rgba(14,165,233,.18), transparent 35%);
  border-right: 1px solid rgba(125, 211, 252, .18);
  box-shadow: 18px 0 44px rgba(2, 8, 23, .18);
  z-index: 30;
  overflow: hidden;
}

.side-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  margin-bottom: 18px;
}

.side-logo {
  width: 118px !important;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 8px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.22));
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-btn,
.side-shortcut {
  width: 100%;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255,255,255,.88) !important;
  box-shadow: none !important;
  font-size: clamp(10px, .66vw, 12px) !important;
  font-weight: 800 !important;
  text-align: left;
  line-height: 1.08;
  cursor: pointer;
}

.side-nav-btn:hover,
.side-shortcut:hover,
.side-nav-btn.active,
.side-shortcut.active {
  background: linear-gradient(135deg, #0ea5e9, #075985) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(14,165,233,.24) !important;
}

.side-icon,
.side-shortcut b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,.10);
  color: #bfdbfe;
  font-size: 12px;
}

/* tira a poluição dos atalhos, mantendo só navegação principal */
.side-shortcuts {
  display: none !important;
}

.side-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 10px;
}

.side-footer span,
.side-footer small {
  display: block;
  line-height: 1.3;
}

/* Conteúdo acompanha o menu e não invade a tela inteira */
.app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: clamp(14px, 1.15vw, 24px) !important;
}

.header {
  margin: 0 0 14px !important;
  min-height: clamp(112px, 8vw, 154px);
  padding: clamp(18px, 1.55vw, 28px) !important;
}

.header-logo {
  display: none !important;
}

.header h1 {
  font-size: clamp(26px, 2.15vw, 38px) !important;
}

.header p {
  font-size: clamp(12px, .82vw, 15px) !important;
}

.header-right {
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.clock-box,
.user-box,
.header .link-btn {
  min-height: 44px !important;
  padding: 9px 13px !important;
  font-size: clamp(11px, .72vw, 14px) !important;
}

.user-box {
  min-width: clamp(170px, 12vw, 230px) !important;
}

.top-actions {
  position: relative !important;
  top: auto !important;
  margin-bottom: 14px !important;
  padding: 8px !important;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.top-actions .tab-btn,
.top-actions .sync-chip {
  flex: 0 0 auto;
  min-height: 38px !important;
  padding: 9px 13px !important;
  font-size: clamp(10px, .66vw, 12px) !important;
}

.card,
.dashboard-hero,
.report-card,
.table-card,
.form-card {
  border-radius: clamp(18px, 1.25vw, 24px) !important;
}

.dashboard-hero {
  padding: clamp(18px, 1.35vw, 26px) !important;
  min-height: 118px;
}

.dashboard-hero h2,
.card-header h2 {
  font-size: clamp(18px, 1.25vw, 24px) !important;
}

/* KPIs: cabem melhor e não ficam gigantes */
.stats-grid,
.report-stats-8 {
  gap: 12px !important;
}

.stat-card {
  min-height: clamp(68px, 5vw, 86px) !important;
  padding: 12px 14px !important;
}

.stat-card span {
  font-size: clamp(9px, .6vw, 11px) !important;
}

.stat-card strong {
  font-size: clamp(22px, 1.55vw, 32px) !important;
}

#tab-relatorio .report-stats-8 {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  padding: 14px 18px 10px !important;
}

#tab-relatorio .report-stats-8 .stat-card {
  min-height: 72px !important;
  padding: 10px 12px !important;
}

#tab-relatorio .report-stats-8 .stat-card strong {
  font-size: clamp(18px, 1.15vw, 24px) !important;
  white-space: nowrap;
}

/* divisórias limpas no relatório */
#tab-relatorio .report-stats-8 .stat-card,
.generated-kpi-card {
  border-left: 4px solid rgba(14,165,233,.65) !important;
}

#tab-relatorio .report-grid {
  gap: 12px !important;
  padding: 12px 18px !important;
}

#tab-relatorio .report-box,
#tab-relatorio .report-table-wrap,
.report-total-hours {
  border: 1px solid rgba(148,163,184,.32) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.06) !important;
}

#tab-relatorio .report-table-wrap {
  margin: 0 18px 18px !important;
}

/* Responsivo real */
@media (min-width: 1800px) {
  :root { --system-max-width: 1740px; }
  body {
    background-size: auto;
  }
}

@media (max-width: 1500px) {
  :root {
    --side-width: 132px;
  }

  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .side-logo { width: 104px !important; }
  .side-nav-btn { font-size: 10.5px !important; }

  #tab-relatorio .report-stats-8 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  :root { --side-width: 82px; }

  .side-menu {
    padding: 18px 8px 12px !important;
  }

  .side-logo {
    width: 58px !important;
    padding: 6px;
  }

  .side-nav-btn {
    justify-content: center;
    padding: 10px 6px !important;
    font-size: 0 !important;
  }

  .side-icon { margin: 0; }

  .side-footer {
    display: none !important;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap !important;
  }

  #tab-relatorio .report-stats-8 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 1fr !important;
  }

  .side-menu {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 0 0 22px 22px;
  }

  .side-brand { display: none; }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .side-nav-btn {
    font-size: 10px !important;
  }

  .app-main.container { padding: 12px !important; }
  #tab-relatorio .report-stats-8 { grid-template-columns: 1fr !important; }
}

/* ==========================================================
   V12 - SISTEMA DENTRO DO RETÂNGULO CENTRAL
   Tela grande: menu fica na lateral e o sistema fica centralizado,
   com respiro dos dois lados. Notebook/telas menores: ocupa toda a tela.
   ========================================================== */
:root {
  --system-max-width: 1900px;
  --content-max-width: 1600px;
  --side-width: 96px;
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, .10), transparent 28%),
    linear-gradient(135deg, #08233d 0%, #092a49 20%, #eef6ff 20.2%, #f8fbff 100%) !important;
}

#appView.app-shell:not(.hidden-app) {
  width: 100% !important;
  max-width: var(--system-max-width) !important;
  margin: 0 auto !important;
  grid-template-columns: var(--side-width) minmax(0, 1fr) !important;
  column-gap: 0 !important;
}

.side-menu {
  width: var(--side-width) !important;
  border-radius: 0 0 22px 0 !important;
}

.app-main.container {
  width: min(100%, var(--content-max-width)) !important;
  max-width: var(--content-max-width) !important;
  margin-inline: auto !important;
  padding: clamp(14px, 1vw, 20px) !important;
}

.header,
.top-actions,
.tab-panel.active,
#tab-dashboard,
#tab-operacao,
#tab-relatorio,
#tab-visitas,
#tab-usuarios,
#tab-admin-tools {
  width: 100% !important;
  max-width: 100% !important;
}

/* segura a tabela para não virar uma avenida em monitor grande */
.table-card,
.report-card,
.dashboard-hero,
.card {
  overflow: hidden;
}

.table-wrap table {
  min-width: 1120px !important;
}

#tab-operacao .layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 18px !important;
}

#tab-operacao .form-card,
#tab-visitas .form-card,
#tab-usuarios .form-card {
  max-width: 310px !important;
}

#tab-operacao .content-area,
#tab-visitas .content-area,
#tab-usuarios .content-area {
  min-width: 0 !important;
}

/* relatório mais alinhado dentro do bloco central */
#tab-relatorio .report-stats-8 {
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#tab-relatorio .report-stats-8 .stat-card {
  min-height: 66px !important;
  padding: 9px 10px !important;
}

#tab-relatorio .report-stats-8 .stat-card strong {
  font-size: clamp(17px, 1vw, 22px) !important;
}

/* em telas médias e notebook, preenche a tela toda sem sobras */
@media (max-width: 1680px) {
  :root {
    --system-max-width: 100vw;
    --content-max-width: none;
    --side-width: 88px;
  }

  #appView.app-shell:not(.hidden-app) {
    max-width: 100vw !important;
  }

  .app-main.container {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
}



@media (max-width: 1366px) {
  :root { --side-width: 78px; }

  #tab-operacao .layout,
  #tab-visitas .layout,
  #tab-usuarios .layout {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  #tab-operacao .form-card,
  #tab-visitas .form-card,
  #tab-usuarios .form-card {
    max-width: 290px !important;
  }

  .table-wrap table { min-width: 1040px !important; }
}

@media (max-width: 1180px) {
  #tab-operacao .layout,
  #tab-visitas .layout,
  #tab-usuarios .layout {
    grid-template-columns: 1fr !important;
  }

  #tab-operacao .form-card,
  #tab-visitas .form-card,
  #tab-usuarios .form-card {
    max-width: none !important;
  }
}

/* ==========================================================
   V13 - MENU COLADO AO CONTEÚDO E SISTEMA CENTRALIZADO
   Em monitor grande: o bloco inteiro (menu + sistema) fica no centro.
   Em notebook/tela menor: ocupa 100% da largura disponível.
   ========================================================== */
:root {
  --system-max-width: 1720px;
  --side-width: 132px;
}

#appView.app-shell:not(.hidden-app) {
  width: min(100vw, var(--system-max-width)) !important;
  max-width: var(--system-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: var(--side-width) minmax(0, 1fr) !important;
  column-gap: 0 !important;
  justify-content: center !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.side-menu {
  position: sticky !important;
  top: 0 !important;
  width: var(--side-width) !important;
  min-width: var(--side-width) !important;
  height: 100vh !important;
  border-radius: 0 0 24px 24px !important;
  z-index: 40 !important;
}

.app-main.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: clamp(14px, 1vw, 20px) !important;
}

/* O conteúdo interno respeita o retângulo central, sem criar avenida vazia entre menu e tela */
.header,
.top-actions,
.tab-panel.active,
.dashboard-hero,
.report-card,
.table-card,
.form-card,
.card {
  max-width: 100% !important;
}

/* Menu mais limpo no bloco lateral */
.side-brand {
  margin-bottom: 16px !important;
}

.side-logo {
  width: 112px !important;
  opacity: 1 !important;
}

.side-nav-btn,
.side-shortcut {
  font-size: 11px !important;
  min-height: 38px !important;
  padding: 8px 9px !important;
}

/* Tela média/notebook: usa tudo, mas mantém menu junto */
@media (max-width: 1720px) {
  :root { --system-max-width: 100vw; --side-width: 96px; }

  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .side-logo { width: 74px !important; padding: 6px !important; }
  .side-nav-btn { font-size: 10px !important; }
}

@media (max-width: 1180px) {
  :root { --side-width: 78px; }

  .side-nav-btn {
    font-size: 0 !important;
    justify-content: center !important;
  }

  .side-icon { margin: 0 !important; }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 1fr !important;
  }

  .side-menu {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
}

/* ==========================================================
   V14 - FLUXO FINAL: DASHBOARD NA ABERTURA + CHAMADOS SEPARADO
   Sistema centralizado em telas grandes e fluido em telas menores.
   ========================================================== */
:root {
  --system-max-width-final: 1780px;
  --side-width-final: 154px;
  --side-width-compact-final: 86px;
  --app-gap-final: 20px;
}

html, body {
  width: 100%;
  overflow-x: hidden !important;
}

body {
  background:
    radial-gradient(circle at 22% 0%, rgba(14,165,233,.12), transparent 28%),
    linear-gradient(135deg, #08243f 0%, #0b2f50 22%, #eef6ff 22.2%, #f7fbff 100%) !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(100vw, var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  min-height: 100vh !important;
  margin-inline: auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  background: transparent !important;
  overflow: visible !important;
}

#appView.hidden-app { display: none !important; }

.side-menu {
  position: sticky !important;
  top: 0 !important;
  width: var(--side-width-final) !important;
  min-width: var(--side-width-final) !important;
  height: 100vh !important;
  min-height: 720px !important;
  padding: 22px 12px 16px !important;
  border-radius: 0 0 24px 24px !important;
  background:
    linear-gradient(180deg, rgba(4, 28, 52, .98), rgba(3, 41, 77, .97)),
    radial-gradient(circle at top, rgba(14,165,233,.20), transparent 38%) !important;
  border-right: 1px solid rgba(125,211,252,.20) !important;
  box-shadow: 18px 0 42px rgba(2, 8, 23, .18) !important;
  z-index: 30 !important;
  overflow: hidden !important;
}

.side-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 76px !important;
  margin-bottom: 18px !important;
}

.side-logo {
  width: 122px !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: rgba(255,255,255,.96) !important;
  border-radius: 16px !important;
  padding: 9px !important;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.22)) !important;
}

.side-nav {
  display: grid !important;
  gap: 9px !important;
}

.side-nav-btn,
.side-shortcut {
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(10px, .58vw, 12px) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  text-align: left !important;
  white-space: normal !important;
  box-shadow: none !important;
}

.side-nav-btn:hover,
.side-nav-btn.active {
  color: #fff !important;
  background: linear-gradient(135deg, #0ea5e9, #075985) !important;
  box-shadow: 0 14px 28px rgba(14,165,233,.26) !important;
}

.side-icon {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.12) !important;
  color: #bfdbfe !important;
  font-size: 12px !important;
}

.side-sync-pill {
  margin-top: 6px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #dcfce7 !important;
  background: rgba(22,163,74,.18) !important;
  border: 1px solid rgba(134,239,172,.20) !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

.side-shortcuts { display: none !important; }
.side-footer {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 16px !important;
  padding: 10px !important;
  border-radius: 15px !important;
  color: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.06) !important;
  font-size: 10px !important;
}
.side-footer span, .side-footer small { display: block !important; line-height: 1.35 !important; }

.app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: clamp(12px, 1.1vw, 22px) !important;
  overflow: visible !important;
}

.header {
  margin: 0 0 14px !important;
  min-height: clamp(108px, 7.4vw, 150px) !important;
  padding: clamp(18px, 1.5vw, 28px) !important;
  border-radius: 24px !important;
}
.header-logo { display: none !important; }
.header h1 { font-size: clamp(25px, 1.9vw, 36px) !important; }
.header p { font-size: clamp(11px, .75vw, 14px) !important; }
.header-right { gap: 10px !important; }
.clock-box, .user-box, .link-btn { min-height: 46px !important; }
.user-box { min-width: clamp(160px, 12vw, 220px) !important; }

.top-actions {
  margin: 0 0 14px !important;
  padding: 10px !important;
  min-height: 56px !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(226,232,240,.92) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.08) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}
.top-actions .tab-btn {
  min-height: 38px !important;
  padding: 9px 14px !important;
  border-radius: 13px !important;
  font-size: clamp(10px, .62vw, 12px) !important;
}
.sync-chip { font-size: clamp(10px,.62vw,12px) !important; min-height: 38px !important; }

.tab-panel { display: none !important; }
.tab-panel.active { display: block !important; }

.layout {
  display: grid !important;
  grid-template-columns: clamp(250px, 16vw, 320px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}
.form-card { border-radius: 20px !important; overflow: hidden !important; }
.form-card .card-header h2 { font-size: clamp(18px, 1.2vw, 24px) !important; }
.form-grid { gap: 11px !important; padding: 16px !important; }
.field label { font-size: clamp(10px,.58vw,12px) !important; }
.field input, .field select, .field textarea { font-size: clamp(11px,.65vw,13px) !important; padding: 11px 12px !important; }

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.stat-card {
  min-height: 74px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
}
.stat-card span { font-size: clamp(9px,.52vw,11px) !important; }
.stat-card strong { font-size: clamp(22px,1.55vw,30px) !important; }

.card, .table-card, .dashboard-hero, .dashboard-kpi, .dash-panel {
  border-radius: 22px !important;
  box-shadow: 0 22px 56px rgba(15,23,42,.08) !important;
}

/* Dashboard executivo */
.dashboard-hero {
  padding: clamp(20px, 1.6vw, 30px) !important;
  margin-bottom: 14px !important;
  min-height: 132px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,255,.96)) !important;
  border: 1px solid rgba(203,213,225,.85) !important;
}
.dashboard-hero h2 { font-size: clamp(22px, 1.5vw, 30px) !important; color: #082f49 !important; margin: 8px 0 6px !important; }
.dashboard-hero p { color: #64748b !important; font-size: clamp(12px,.78vw,15px) !important; max-width: 760px !important; line-height: 1.45 !important; }
.dashboard-open-btn { min-width: 190px !important; }

.dashboard-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
.dashboard-kpi {
  min-height: 106px !important;
  padding: 18px 18px !important;
  display: grid !important;
  grid-template-columns: 54px 1fr !important;
  grid-template-areas: 'dot label' 'dot value' 'dot small' !important;
  align-items: center !important;
  column-gap: 14px !important;
  background: linear-gradient(180deg,#fff,#f8fbff) !important;
  border: 1px solid #dbe7f3 !important;
}
.kpi-dot { grid-area: dot; width: 48px; height: 48px; border-radius: 16px; display:block; box-shadow: 0 16px 26px rgba(15,23,42,.12); }
.kpi-dot.total { background: linear-gradient(135deg,#0ea5e9,#0369a1); }
.kpi-dot.open { background: linear-gradient(135deg,#22c55e,#15803d); }
.kpi-dot.progress { background: linear-gradient(135deg,#fbbf24,#d97706); }
.kpi-dot.done { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.kpi-dot.late { background: linear-gradient(135deg,#fb7185,#dc2626); }
.dashboard-kpi span { grid-area: label; color:#64748b; font-size: clamp(10px,.55vw,12px); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-kpi strong { grid-area: value; color:#082f49; font-size: clamp(28px,1.9vw,38px); line-height: 1; }
.dashboard-kpi small { grid-area: small; color:#64748b; font-weight: 750; }
.dashboard-executive-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) clamp(180px, 11vw, 230px) !important;
  gap: 14px !important;
}
.dash-panel { padding: 22px !important; background: rgba(255,255,255,.96) !important; border: 1px solid #dbe7f3 !important; }
.panel-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:18px; }
.panel-title-row h3, .dash-panel h3 { color:#082f49; font-size: clamp(18px,1.12vw,24px); margin: 6px 0 0; }
.eyebrow { display:inline-flex; align-items:center; width:max-content; padding:5px 10px; border-radius:999px; background:#e0f2fe; color:#0369a1; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.dash-bars { display:grid; gap:13px; }
.dash-bar-row { display:grid; grid-template-columns: 130px 1fr 34px; align-items:center; gap:12px; font-weight:850; color:#0f2f4a; font-size:12px; }
.dash-bar-row b { height:10px; border-radius:999px; background:#e6eef7; overflow:hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,.08); }
.dash-bar-row i { display:block; height:100%; min-width:2px; border-radius:999px; background: linear-gradient(90deg,#38bdf8,#2563eb); }
.performance-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.performance-card { padding:17px; min-height:92px; border:1px solid #dbe7f3; border-radius:18px; background:linear-gradient(180deg,#fff,#f8fbff); }
.performance-card span { display:block; color:#64748b; text-transform:uppercase; font-weight:900; font-size:10px; letter-spacing:.05em; margin-bottom:8px; }
.performance-card strong { display:block; color:#082f49; font-size: clamp(24px,1.4vw,30px); line-height:1; }
.performance-card small { display:block; margin-top:7px; color:#64748b; font-weight:700; }
.sla-health-card { display:grid; place-items:center; text-align:center; }
.sla-ring { --sla: 0%; width: clamp(120px,8vw,160px); aspect-ratio:1; border-radius:50%; display:grid; place-items:center; background: conic-gradient(#16a34a var(--sla), #e8f0f8 0); position:relative; box-shadow:0 18px 36px rgba(34,197,94,.15); }
.sla-ring::before { content:""; position:absolute; inset:14px; border-radius:50%; background:#fff; }
.sla-ring span, .sla-ring small { position:relative; z-index:1; display:block; color:#082f49; font-weight:950; }
.sla-ring span { font-size: clamp(26px,1.8vw,38px); }
.sla-ring small { font-size:11px; text-transform:uppercase; margin-top:34px; position:absolute; }

/* Relatório: 9 cartões menores na mesma linha em telas grandes */
.report-toolbar { gap: 14px !important; align-items: center !important; }
.report-controls, .report-filters, .report-actions { gap: 10px !important; flex-wrap: wrap !important; }
.report-stats-8 {
  grid-template-columns: repeat(9, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  padding: 14px 18px 10px !important;
}
.report-stats-8 .stat-card {
  min-height: 70px !important;
  padding: 10px 11px !important;
  border-radius: 15px !important;
}
.report-stats-8 .stat-card span { font-size: 9px !important; letter-spacing:.03em !important; }
.report-stats-8 .stat-card strong { font-size: clamp(18px,1.1vw,25px) !important; }
.report-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; padding: 14px 18px !important; }
.report-table-wrap { margin: 0 18px 14px !important; }
.report-total-hours { margin: 0 18px 18px !important; }

.generated-report-topbar-actions .generated-close-btn {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  color: #082f49 !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
}

/* Tabelas: sem vãos exagerados, com scroll controlado quando precisar */
.table-wrap, .report-table-scroll { overflow: auto !important; }
table { min-width: 1080px !important; }
.table-wrap table th, .table-wrap table td { font-size: clamp(10px,.58vw,12px) !important; padding: 11px 9px !important; }
.report-table th, .report-table td { font-size: clamp(9px,.55vw,11px) !important; padding: 10px 7px !important; }

/* Em telas grandes, mantém o sistema como bloco central, não parede inteira */
@media (min-width: 1900px) {
  :root { --system-max-width-final: 1840px; --side-width-final: 160px; }
  .app-main.container { padding: 18px !important; }
}

@media (max-width: 1450px) {
  :root { --system-max-width-final: 100vw; --side-width-final: 132px; }
  .dashboard-kpi-grid { grid-template-columns: repeat(5, minmax(130px,1fr)) !important; }
  .dashboard-executive-grid { grid-template-columns: 1fr 1fr !important; }
  .sla-health-card { grid-column: 1 / -1; min-height: 190px; }
  .report-stats-8 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 1180px) {
  :root { --side-width-final: 92px; }
  #appView.app-shell:not(.hidden-app) { grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important; }
  .side-logo { width: 70px !important; padding: 6px !important; }
  .side-nav-btn { justify-content:center !important; padding: 9px 6px !important; }
  .side-nav-btn span:not(.side-icon), .side-sync-pill { font-size: 0 !important; }
  .side-icon { margin: 0 !important; }
  .side-footer { display:none !important; }
  .layout { grid-template-columns: 1fr !important; }
  .stats-grid, .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .dashboard-executive-grid { grid-template-columns: 1fr !important; }
  .report-stats-8 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  :root { --side-width-final: 0px; }
  #appView.app-shell:not(.hidden-app) { display:block !important; width:100vw !important; }
  .side-menu { display:none !important; }
  .app-main.container { padding: 10px !important; }
  .header, .dashboard-hero { flex-direction: column !important; align-items: flex-start !important; }
  .header-right { flex-wrap: wrap !important; width:100% !important; }
  .clock-box, .user-box, .link-btn { width: 100% !important; }
  .top-actions .tab-btn, .sync-chip { flex: 1 1 100% !important; }
  .stats-grid, .dashboard-kpi-grid, .performance-grid, .report-grid, .report-stats-8 { grid-template-columns: 1fr !important; }
  .dashboard-open-btn { width:100% !important; }
}


/* ==========================================================
   CORREÇÃO FINAL - BASE DO MENU + GRADE TRAVADA + EXPANSÃO
   Data: ajuste solicitado pelo Orlando
   ========================================================== */

/* O sistema vira um bloco único: menu e conteúdo terminam juntos */
:root {
  --system-max-width-final: 1900px !important;
  --side-width-final: 154px !important;
}

html,
body {
  min-height: 100% !important;
  overflow-x: hidden !important;
}

/* Expande para a direita sem deixar avenida sobrando */
#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 40px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  align-items: stretch !important;
  column-gap: 0 !important;
  overflow: visible !important;
}

/* Área principal manda na altura real do sistema */
.app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(12px, 1vw, 20px) !important;
  overflow: visible !important;
}

/* Menu lateral deixa de seguir 100vh e passa a seguir a altura do conteúdo */
.side-menu {
  position: relative !important;
  top: auto !important;
  align-self: stretch !important;
  width: var(--side-width-final) !important;
  min-width: var(--side-width-final) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 0 0 24px 24px !important;
  overflow: hidden !important;
}

/* Rodapé do menu fica dentro do menu, sem passar da base */
.side-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

/* Grade de chamados: depois da 10ª linha aparece rolagem interna */
#tab-operacao .table-card {
  overflow: hidden !important;
}

#tab-operacao .table-card .table-wrap {
  height: auto !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  margin: 18px !important;
  padding: 0 !important;
  border-radius: 20px !important;
}

/* Cabeçalho da grade fica preso enquanto rola */
#tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
}

/* Mantém a tabela aproveitando melhor a largura */
#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 1500px !important;
  table-layout: fixed !important;
}

/* Em telas bem grandes, evita scroll horizontal desnecessário */
@media (min-width: 1850px) {
  #tab-operacao .table-card table {
    min-width: 0 !important;
  }
}

/* Ajuste fino em notebook: continua alinhado e sem estourar */
@media (max-width: 1720px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 86px !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    display: block !important;
  }

  .side-menu {
    display: none !important;
  }
}


/* ===== MENU SUPERIOR ALINHADO ===== */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;

  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 18px;
  flex-wrap: nowrap;
}

.top-actions .tab-btn,
.top-actions .sync-chip {
  height: 42px;
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;
  margin: 0;

  border-radius: 12px;
  white-space: nowrap;
  box-sizing: border-box;
}

.top-actions .sync-chip {
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== RELATÓRIO: ROLAGEM NOS RESUMOS A PARTIR DA 4ª LINHA ===== */
#tab-relatorio .report-box {
  max-height: 230px;
  overflow: hidden;
}

#tab-relatorio .report-box .summary-list {
  max-height: 118px;
  overflow-y: auto;
  padding-right: 8px;
}

/* mantém cada linha no mesmo padrão e evita o quadro crescer para baixo */
#tab-relatorio .report-box .summary-item {
  min-height: 32px;
  align-items: center;
}

/* visual mais limpo da barra */
#tab-relatorio .report-box .summary-list::-webkit-scrollbar {
  width: 8px;
}

#tab-relatorio .report-box .summary-list::-webkit-scrollbar-track {
  background: #edf2f7;
  border-radius: 999px;
}

#tab-relatorio .report-box .summary-list::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 999px;
}

/* ===== AJUSTE VISUAL DO MENU LATERAL E SLA ===== */
.side-menu {
  padding: 26px 14px 18px !important;
  background:
    linear-gradient(180deg, rgba(8, 37, 65, .98), rgba(7, 55, 89, .98)) !important;
  border-right: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 18px 0 44px rgba(15, 23, 42, .16) !important;
}

.side-brand {
  display: grid !important;
  place-items: center !important;
  padding: 0 0 18px !important;
  margin-bottom: 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}

.side-logo {
  width: min(126px, 100%) !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .22) !important;
}

.side-nav {
  gap: 11px !important;
  padding-top: 4px !important;
}

.side-nav-btn {
  min-height: 48px !important;
  padding: 10px 12px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  color: rgba(255, 255, 255, .86) !important;
  font-weight: 850 !important;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease !important;
}

.side-nav-btn:hover {
  transform: translateX(2px) !important;
  background: rgba(255, 255, 255, .13) !important;
}

.side-nav-btn.active {
  background: linear-gradient(135deg, #18b7f0, #075985) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .28) !important;
  box-shadow: 0 16px 30px rgba(14, 165, 233, .28) !important;
}

.side-icon {
  width: 27px !important;
  height: 27px !important;
  flex-basis: 27px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #dff4ff !important;
}

.side-nav-btn.active .side-icon {
  background: rgba(255, 255, 255, .2) !important;
  color: #fff !important;
}

.side-sync-pill {
  justify-content: center !important;
  min-height: 38px !important;
  margin-top: 2px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, .14) !important;
  border: 1px solid rgba(52, 211, 153, .3) !important;
  color: #dcfce7 !important;
  box-shadow: none !important;
}

.side-footer {
  padding: 12px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: rgba(255, 255, 255, .78) !important;
}

.sla-ring {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.sla-ring span {
  line-height: .9 !important;
}

.sla-ring small {
  position: relative !important;
  margin-top: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: .02em !important;
}

@media (max-width: 1180px) {
  .side-menu {
    padding: 20px 9px 14px !important;
  }

  .side-nav-btn {
    min-height: 46px !important;
    padding: 9px 7px !important;
  }

  .side-icon {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }
}

/* ===== CORREÇÃO SOLICITADA: MENU SEM ESTOURAR + BOTÃO DO DASHBOARD REMOVIDO ===== */
:root {
  --side-width-final: 174px !important;
}

.side-menu {
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.side-nav,
.side-brand,
.side-footer,
.side-sync-pill {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.side-nav-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 9px !important;
  overflow: hidden !important;
}

.side-nav-btn span:not(.side-icon) {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.12 !important;
}

.side-icon {
  grid-column: 1 !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
}

.side-sync-pill {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.dashboard-open-btn {
  display: none !important;
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 92px !important;
  }

  .side-nav-btn {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
}

/* ==========================================================
   CORRECAO VISUAL FINAL DO MENU - 25/05/2026
   ========================================================== */
:root {
  --side-width-final: 188px !important;
  --side-menu-text: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) {
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.side-menu {
  width: var(--side-width-final) !important;
  min-width: var(--side-width-final) !important;
  padding: 18px 14px 16px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #073654 0%, #073f63 48%, #073653 100%) !important;
}

.side-brand {
  width: 100% !important;
  padding: 0 0 14px !important;
  margin: 0 0 8px !important;
}

.side-logo {
  width: 128px !important;
  max-width: calc(100% - 8px) !important;
  padding: 9px 11px !important;
  border-radius: 13px !important;
}

.side-nav {
  width: 100% !important;
  gap: 10px !important;
}

.side-nav-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 9px 11px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  color: var(--side-menu-text) !important;
  background: rgba(255, 255, 255, .095) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
}

.side-nav-btn:hover {
  background: rgba(255, 255, 255, .16) !important;
  transform: none !important;
}

.side-nav-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1fb7ea, #0876a8) !important;
  border-color: rgba(255, 255, 255, .34) !important;
  box-shadow: 0 12px 24px rgba(3, 32, 54, .24) !important;
}

.side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28) !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.side-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, .18) !important;
}

.side-nav-btn.active .side-icon {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .22) !important;
}

.side-sync-pill {
  display: none !important;
}

.side-footer {
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  color: rgba(255, 255, 255, .9) !important;
  font-weight: 750 !important;
}

.top-actions {
  display: none !important;
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 96px !important;
  }

  .side-menu {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .side-nav-btn {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding: 9px 6px !important;
  }

  .side-nav-btn span:not(.side-icon) {
    display: none !important;
  }
}

/* ==========================================================
   AJUSTES VISITAS TECNICAS + AVATAR USUARIO - 25/05/2026
   ========================================================== */
.user-box {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-width: 258px !important;
  padding: 7px 12px !important;
}

.user-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #1fb7ea, #075985) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 8px 18px rgba(7, 89, 133, .22) !important;
}

.user-text {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

.user-text strong,
.user-text span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#tab-visitas .layout {
  grid-template-columns: minmax(285px, 340px) minmax(0, 1fr) !important;
  gap: 18px !important;
}

#tab-visitas .form-card .card-header {
  display: block !important;
  padding: 18px 20px 12px !important;
}

#tab-visitas .form-card .card-header h2 {
  max-width: 100% !important;
  margin: 0 !important;
  color: #0b2f4a !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

#tab-visitas .form-card .card-header .badge-info {
  display: none !important;
}

#tab-visitas .content-area,
#tab-visitas .table-card {
  min-width: 0 !important;
}

#tab-visitas .table-wrap {
  width: auto !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  margin: 14px 18px 18px !important;
  padding: 0 !important;
}

#tab-visitas .table-wrap table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#tab-visitas .table-wrap th,
#tab-visitas .table-wrap td {
  padding: 9px 8px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}

#tab-visitas .table-wrap th {
  font-size: 10px !important;
  letter-spacing: .03em !important;
}

#tab-visitas .table-wrap .nowrap {
  white-space: normal !important;
}

#tab-visitas .table-wrap .ellipsis-cell {
  max-width: none !important;
  white-space: normal !important;
}

#tab-visitas .table-wrap table th:nth-child(1), #tab-visitas .table-wrap table td:nth-child(1) { width: 8% !important; }
#tab-visitas .table-wrap table th:nth-child(2), #tab-visitas .table-wrap table td:nth-child(2) { width: 15% !important; }
#tab-visitas .table-wrap table th:nth-child(3), #tab-visitas .table-wrap table td:nth-child(3) { width: 14% !important; }
#tab-visitas .table-wrap table th:nth-child(4), #tab-visitas .table-wrap table td:nth-child(4) { width: 11% !important; }
#tab-visitas .table-wrap table th:nth-child(5), #tab-visitas .table-wrap table td:nth-child(5) { width: 12% !important; }
#tab-visitas .table-wrap table th:nth-child(6), #tab-visitas .table-wrap table td:nth-child(6) { width: 12% !important; }
#tab-visitas .table-wrap table th:nth-child(7), #tab-visitas .table-wrap table td:nth-child(7) { width: 9% !important; }
#tab-visitas .table-wrap table th:nth-child(8), #tab-visitas .table-wrap table td:nth-child(8) { width: 14% !important; }
#tab-visitas .table-wrap table th:nth-child(9), #tab-visitas .table-wrap table td:nth-child(9) { width: 13% !important; }

#tab-visitas .visit-edit-btn,
#tab-visitas .visit-delete-btn {
  min-height: 30px !important;
  padding: 7px 9px !important;
  font-size: 10px !important;
}

@media (min-width: 1500px) {
  #tab-visitas .layout {
    grid-template-columns: 350px minmax(0, 1fr) !important;
  }

  #tab-visitas .table-wrap th,
  #tab-visitas .table-wrap td {
    font-size: 12px !important;
  }
}

@media (max-width: 1180px) {
  .user-box {
    min-width: 0 !important;
  }

  #tab-visitas .layout {
    grid-template-columns: 1fr !important;
  }
}

/* Ajuste fino: visitas cabem tambem com coluna de acoes */
#tab-visitas .table-wrap table th:nth-child(1), #tab-visitas .table-wrap table td:nth-child(1) { width: 8% !important; }
#tab-visitas .table-wrap table th:nth-child(2), #tab-visitas .table-wrap table td:nth-child(2) { width: 13% !important; }
#tab-visitas .table-wrap table th:nth-child(3), #tab-visitas .table-wrap table td:nth-child(3) { width: 13% !important; }
#tab-visitas .table-wrap table th:nth-child(4), #tab-visitas .table-wrap table td:nth-child(4) { width: 10% !important; }
#tab-visitas .table-wrap table th:nth-child(5), #tab-visitas .table-wrap table td:nth-child(5) { width: 11% !important; }
#tab-visitas .table-wrap table th:nth-child(6), #tab-visitas .table-wrap table td:nth-child(6) { width: 11% !important; }
#tab-visitas .table-wrap table th:nth-child(7), #tab-visitas .table-wrap table td:nth-child(7) { width: 8% !important; }
#tab-visitas .table-wrap table th:nth-child(8), #tab-visitas .table-wrap table td:nth-child(8) { width: 14% !important; }
#tab-visitas .table-wrap table th:nth-child(9), #tab-visitas .table-wrap table td:nth-child(9) { width: 12% !important; }

/* ==========================================================
   CORRECAO FINAL: TABELAS SEM TEXTO CORTADO + APROVACAO
   25/05/2026
   ========================================================== */
:root {
  --system-max-width-final: 100vw !important;
  --side-width-final: 180px !important;
}

html,
body {
  width: 100% !important;
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  border-radius: 0 !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.app-main.container {
  padding: 10px 12px 18px !important;
}

.header {
  margin-bottom: 14px !important;
}

#tab-operacao .layout {
  grid-template-columns: 278px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#tab-operacao .form-card {
  min-width: 0 !important;
}

#tab-operacao .content-area,
#tab-operacao .table-card {
  min-width: 0 !important;
  width: 100% !important;
}

#tab-operacao .kpi-strip {
  grid-template-columns: repeat(6, minmax(135px, 1fr)) !important;
  gap: 10px !important;
}

#tab-operacao .kpi-strip .stat-card {
  min-height: 74px !important;
}

#tab-operacao .kpi-strip .stat-card span {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 10px !important;
}

#tab-operacao .table-card .table-wrap {
  width: auto !important;
  max-width: calc(100vw - var(--side-width-final) - 330px) !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 14px 16px 18px !important;
  border-radius: 14px !important;
}

#tab-operacao .table-card table {
  width: 1640px !important;
  min-width: 1640px !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 10px 8px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

#tab-operacao .table-card th {
  overflow: visible !important;
  text-overflow: clip !important;
  color: #005f8f !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

#tab-operacao .table-card .badge,
#tab-relatorio .report-table .badge,
.generated-report-table .badge {
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 64px !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 128px !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 150px !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 118px !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 155px !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 108px !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 176px !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 148px !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 235px !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 150px !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 208px !important; }

#tab-operacao .table-card td:nth-child(7) {
  overflow: visible !important;
}

#tab-operacao .table-card td:nth-child(9) {
  color: #dc2626 !important;
  font-weight: 850 !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar,
#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  height: 10px !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb,
#tab-relatorio .report-table-scroll::-webkit-scrollbar-thumb {
  background: #9fb6c9 !important;
  border-radius: 999px !important;
}

#tab-relatorio .report-card {
  overflow: visible !important;
}

#tab-relatorio .report-table-wrap {
  overflow: hidden !important;
}

#tab-relatorio .report-table-scroll {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}

#tab-relatorio .report-table {
  width: 1860px !important;
  min-width: 1860px !important;
  max-width: none !important;
  table-layout: fixed !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  padding: 10px 8px !important;
}

#tab-relatorio .report-table th {
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
}

#tab-relatorio .report-table th:nth-child(1),  #tab-relatorio .report-table td:nth-child(1)  { width: 72px !important; }
#tab-relatorio .report-table th:nth-child(2),  #tab-relatorio .report-table td:nth-child(2)  { width: 78px !important; }
#tab-relatorio .report-table th:nth-child(3),  #tab-relatorio .report-table td:nth-child(3)  { width: 215px !important; }
#tab-relatorio .report-table th:nth-child(4),  #tab-relatorio .report-table td:nth-child(4)  { width: 180px !important; }
#tab-relatorio .report-table th:nth-child(5),  #tab-relatorio .report-table td:nth-child(5)  { width: 145px !important; }
#tab-relatorio .report-table th:nth-child(6),  #tab-relatorio .report-table td:nth-child(6)  { width: 145px !important; }
#tab-relatorio .report-table th:nth-child(7),  #tab-relatorio .report-table td:nth-child(7)  { width: 145px !important; }
#tab-relatorio .report-table th:nth-child(8),  #tab-relatorio .report-table td:nth-child(8)  { width: 112px !important; }
#tab-relatorio .report-table th:nth-child(9),  #tab-relatorio .report-table td:nth-child(9)  { width: 108px !important; }
#tab-relatorio .report-table th:nth-child(10), #tab-relatorio .report-table td:nth-child(10) { width: 150px !important; }
#tab-relatorio .report-table th:nth-child(11), #tab-relatorio .report-table td:nth-child(11) { width: 145px !important; }
#tab-relatorio .report-table th:nth-child(12), #tab-relatorio .report-table td:nth-child(12) { width: 170px !important; }
#tab-relatorio .report-table th:nth-child(13), #tab-relatorio .report-table td:nth-child(13) { width: 195px !important; }

@media (min-width: 1850px) {
  #tab-operacao .table-card .table-wrap {
    max-width: calc(100vw - var(--side-width-final) - 324px) !important;
  }
}

@media (max-width: 1180px) {
  #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }

  #tab-operacao .table-card .table-wrap {
    max-width: calc(100vw - 24px) !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: SISTEMA CENTRALIZADO, SEM OCUPAR A TELA TODA
   25/05/2026
   ========================================================== */
:root {
  --system-max-width-final: 1840px !important;
  --side-width-final: 180px !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 48px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  margin: 12px auto !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.app-main.container {
  padding: 14px 18px 18px !important;
}

.header {
  border-radius: 20px !important;
}

.side-menu {
  border-radius: 0 !important;
}

#tab-operacao .table-card .table-wrap {
  max-width: calc(100% - 32px) !important;
}

#tab-relatorio .report-table-scroll {
  max-width: 100% !important;
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: MAIS LARGO, SEM 100%, SEM BARRA HORIZONTAL
   25/05/2026
   ========================================================== */
:root {
  --system-max-width-final: 1980px !important;
  --side-width-final: 180px !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 24px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  margin: 10px auto !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.app-main.container {
  padding: 12px 14px 18px !important;
}

#tab-operacao .layout {
  grid-template-columns: 276px minmax(0, 1fr) !important;
  gap: 12px !important;
}

#tab-operacao .table-card .table-wrap,
#tab-relatorio .report-table-scroll {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#tab-operacao .table-card .table-wrap {
  margin: 14px 16px 18px !important;
}

#tab-operacao .table-card table,
#tab-relatorio .report-table,
.generated-report-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  padding: 10px 6px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-operacao .table-card th {
  font-size: 10px !important;
  letter-spacing: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card .badge {
  font-size: 10.5px !important;
  padding: 4px 7px !important;
  white-space: nowrap !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 4% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 7% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 9% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 9% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 7% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 12% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 9% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 13% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 9% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 11% !important; }

#tab-operacao .table-card td:nth-child(7),
#tab-operacao .table-card td:nth-child(9) {
  overflow: hidden !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  height: 0 !important;
  display: none !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td,
.generated-report-table th,
.generated-report-table td {
  padding: 9px 5px !important;
  font-size: 9.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-relatorio .report-table th,
.generated-report-table th {
  font-size: 9px !important;
  letter-spacing: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#tab-relatorio .report-table th:nth-child(1),  #tab-relatorio .report-table td:nth-child(1),
.generated-report-table th:nth-child(1), .generated-report-table td:nth-child(1) { width: 4% !important; }
#tab-relatorio .report-table th:nth-child(2),  #tab-relatorio .report-table td:nth-child(2),
.generated-report-table th:nth-child(2), .generated-report-table td:nth-child(2) { width: 5% !important; }
#tab-relatorio .report-table th:nth-child(3),  #tab-relatorio .report-table td:nth-child(3),
.generated-report-table th:nth-child(3), .generated-report-table td:nth-child(3) { width: 10% !important; }
#tab-relatorio .report-table th:nth-child(4),  #tab-relatorio .report-table td:nth-child(4),
.generated-report-table th:nth-child(4), .generated-report-table td:nth-child(4) { width: 11% !important; }
#tab-relatorio .report-table th:nth-child(5),  #tab-relatorio .report-table td:nth-child(5),
.generated-report-table th:nth-child(5), .generated-report-table td:nth-child(5) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(6),  #tab-relatorio .report-table td:nth-child(6),
.generated-report-table th:nth-child(6), .generated-report-table td:nth-child(6) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(7),  #tab-relatorio .report-table td:nth-child(7),
.generated-report-table th:nth-child(7), .generated-report-table td:nth-child(7) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(8),  #tab-relatorio .report-table td:nth-child(8),
.generated-report-table th:nth-child(8), .generated-report-table td:nth-child(8) { width: 7% !important; }
#tab-relatorio .report-table th:nth-child(9),  #tab-relatorio .report-table td:nth-child(9),
.generated-report-table th:nth-child(9), .generated-report-table td:nth-child(9) { width: 7% !important; }
#tab-relatorio .report-table th:nth-child(10), #tab-relatorio .report-table td:nth-child(10),
.generated-report-table th:nth-child(10), .generated-report-table td:nth-child(10) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(11), #tab-relatorio .report-table td:nth-child(11),
.generated-report-table th:nth-child(11), .generated-report-table td:nth-child(11) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(12), #tab-relatorio .report-table td:nth-child(12),
.generated-report-table th:nth-child(12), .generated-report-table td:nth-child(12) { width: 10% !important; }
#tab-relatorio .report-table th:nth-child(13), #tab-relatorio .report-table td:nth-child(13),
.generated-report-table th:nth-child(13), .generated-report-table td:nth-child(13) { width: 14% !important; }

@media (max-width: 1500px) {
  #tab-operacao .layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 9.5px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   CORRECAO DEFINITIVA: SEM BARRA HORIZONTAL NAS TABELAS
   25/05/2026
   ========================================================== */
#tab-operacao .table-card,
#tab-operacao .table-card .table-wrap,
#tab-relatorio .report-table-wrap,
#tab-relatorio .report-table-scroll {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar,
#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

#tab-operacao .table-card .table-wrap {
  margin: 14px 14px 18px !important;
  padding: 0 !important;
}

#tab-operacao .table-card table,
#tab-relatorio .report-table,
.generated-report-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  box-sizing: border-box !important;
  padding: 8px 4px !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  hyphens: none !important;
}

#tab-operacao .table-card th {
  font-size: 8.5px !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card .badge {
  max-width: 100% !important;
  padding: 3px 5px !important;
  font-size: 8.5px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 4.2% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 6.2% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 9.6% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 8.1% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 9.4% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 6.5% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10.8% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 8.7% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 12.4% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 9.1% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 15% !important; }

#tab-operacao .table-card td:nth-child(7),
#tab-operacao .table-card td:nth-child(9),
#tab-operacao .table-card td:nth-child(10),
#tab-operacao .table-card td:nth-child(11) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td,
.generated-report-table th,
.generated-report-table td {
  box-sizing: border-box !important;
  padding: 8px 4px !important;
  font-size: 8.5px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-relatorio .report-table th,
.generated-report-table th {
  font-size: 8px !important;
  letter-spacing: 0 !important;
}

#tab-relatorio .report-table .badge,
.generated-report-table .badge {
  max-width: 100% !important;
  padding: 3px 5px !important;
  font-size: 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-relatorio .report-table th:nth-child(1),  #tab-relatorio .report-table td:nth-child(1),
.generated-report-table th:nth-child(1), .generated-report-table td:nth-child(1) { width: 4% !important; }
#tab-relatorio .report-table th:nth-child(2),  #tab-relatorio .report-table td:nth-child(2),
.generated-report-table th:nth-child(2), .generated-report-table td:nth-child(2) { width: 4.8% !important; }
#tab-relatorio .report-table th:nth-child(3),  #tab-relatorio .report-table td:nth-child(3),
.generated-report-table th:nth-child(3), .generated-report-table td:nth-child(3) { width: 9.2% !important; }
#tab-relatorio .report-table th:nth-child(4),  #tab-relatorio .report-table td:nth-child(4),
.generated-report-table th:nth-child(4), .generated-report-table td:nth-child(4) { width: 9.5% !important; }
#tab-relatorio .report-table th:nth-child(5),  #tab-relatorio .report-table td:nth-child(5),
.generated-report-table th:nth-child(5), .generated-report-table td:nth-child(5) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(6),  #tab-relatorio .report-table td:nth-child(6),
.generated-report-table th:nth-child(6), .generated-report-table td:nth-child(6) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(7),  #tab-relatorio .report-table td:nth-child(7),
.generated-report-table th:nth-child(7), .generated-report-table td:nth-child(7) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(8),  #tab-relatorio .report-table td:nth-child(8),
.generated-report-table th:nth-child(8), .generated-report-table td:nth-child(8) { width: 6.5% !important; }
#tab-relatorio .report-table th:nth-child(9),  #tab-relatorio .report-table td:nth-child(9),
.generated-report-table th:nth-child(9), .generated-report-table td:nth-child(9) { width: 6.5% !important; }
#tab-relatorio .report-table th:nth-child(10), #tab-relatorio .report-table td:nth-child(10),
.generated-report-table th:nth-child(10), .generated-report-table td:nth-child(10) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(11), #tab-relatorio .report-table td:nth-child(11),
.generated-report-table th:nth-child(11), .generated-report-table td:nth-child(11) { width: 8% !important; }
#tab-relatorio .report-table th:nth-child(12), #tab-relatorio .report-table td:nth-child(12),
.generated-report-table th:nth-child(12), .generated-report-table td:nth-child(12) { width: 9.5% !important; }
#tab-relatorio .report-table th:nth-child(13), #tab-relatorio .report-table td:nth-child(13),
.generated-report-table th:nth-child(13), .generated-report-table td:nth-child(13) { width: 10% !important; }

/* ==========================================================
   AJUSTE FINO FINAL: FONTE MAIOR + SCROLL VERTICAL + MAIS LARGURA
   25/05/2026
   ========================================================== */
:root {
  --system-max-width-final: 2020px !important;
  --side-width-final: 176px !important;
}

html,
body {
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 12px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  margin: 6px auto !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.app-main.container {
  padding: 10px 12px 16px !important;
}

#tab-operacao .layout {
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 12px !important;
}

#tab-operacao .table-card .table-wrap {
  max-width: 100% !important;
  max-height: 560px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #9fb6c9 #edf3f8 !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 10px !important;
  height: 0 !important;
  display: block !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar:horizontal {
  height: 0 !important;
  display: none !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar:vertical {
  width: 10px !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #9fb6c9 !important;
  border-radius: 999px !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-track {
  background: #edf3f8 !important;
  border-radius: 999px !important;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  padding: 9px 5px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

#tab-operacao .table-card th {
  font-size: 10px !important;
  font-weight: 900 !important;
}

#tab-operacao .table-card .badge {
  font-size: 10px !important;
  padding: 4px 6px !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 4.1% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 6.1% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 9.4% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 7.9% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 9.2% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 6.4% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10.8% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 8.7% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 12.2% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 9.2% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 15.9% !important; }

#tab-relatorio .report-table-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #9fb6c9 #edf3f8 !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  width: 10px !important;
  height: 0 !important;
  display: block !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar:horizontal {
  height: 0 !important;
  display: none !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td,
.generated-report-table th,
.generated-report-table td {
  font-size: 9.5px !important;
  padding: 8px 5px !important;
}

#tab-relatorio .report-table th,
.generated-report-table th {
  font-size: 9px !important;
}

@media (max-width: 1500px) {
  #tab-operacao .layout {
    grid-template-columns: 258px minmax(0, 1fr) !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 9.8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  #tab-operacao .table-card .badge {
    font-size: 9.4px !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: BASE ALINHADA + FONTE MAIOR + SCROLL APOS 10 LINHAS
   25/05/2026
   ========================================================== */
#tab-operacao .layout {
  align-items: stretch !important;
}

#tab-operacao .form-card,
#tab-operacao .content-area,
#tab-operacao .table-card {
  height: 100% !important;
}

#tab-operacao .form-card {
  min-height: 760px !important;
  display: flex !important;
  flex-direction: column !important;
}

#tab-operacao .form-card .form-grid {
  flex: 1 1 auto !important;
  align-content: start !important;
}

#tab-operacao .table-card {
  min-height: 760px !important;
  display: flex !important;
  flex-direction: column !important;
}

#tab-operacao .table-card .filters-grid {
  flex: 0 0 auto !important;
}

#tab-operacao .table-card .table-wrap {
  flex: 0 0 auto !important;
  max-height: 432px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#tab-operacao .table-card table {
  margin: 0 !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

#tab-operacao .table-card th {
  font-size: 10.5px !important;
}

#tab-operacao .table-card .badge {
  font-size: 10.5px !important;
  padding: 4px 7px !important;
}

#tab-relatorio .report-table-scroll {
  max-height: 432px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td,
.generated-report-table th,
.generated-report-table td {
  font-size: 10px !important;
  line-height: 1.22 !important;
}

#tab-relatorio .report-table th,
.generated-report-table th {
  font-size: 9.5px !important;
}

@media (max-width: 1500px) {
  #tab-operacao .form-card,
  #tab-operacao .table-card {
    min-height: 740px !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 10.5px !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: 12 LINHAS SEM SCROLL + RELATORIO IGUAL AO PAINEL
   25/05/2026
   ========================================================== */
#tab-operacao .table-card .table-wrap {
  max-height: 548px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  font-size: 11.2px !important;
  line-height: 1.22 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

#tab-operacao .table-card th {
  color: #005f8f !important;
  font-size: 10.8px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

#tab-operacao .table-card .badge {
  font-size: 10.6px !important;
  font-weight: 900 !important;
}

#tab-relatorio .report-table-scroll {
  max-height: 548px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: #9fb6c9 #edf3f8 !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar {
  width: 10px !important;
  height: 0 !important;
  display: block !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar:horizontal {
  height: 0 !important;
  display: none !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-thumb {
  background: #9fb6c9 !important;
  border-radius: 999px !important;
}

#tab-relatorio .report-table-scroll::-webkit-scrollbar-track {
  background: #edf3f8 !important;
  border-radius: 999px !important;
}

#tab-relatorio .report-table th,
#tab-relatorio .report-table td,
.generated-report-table th,
.generated-report-table td {
  font-size: 11.2px !important;
  line-height: 1.22 !important;
  padding: 9px 5px !important;
  color: #17212f !important;
}

#tab-relatorio .report-table th,
.generated-report-table th {
  color: #005f8f !important;
  background: #eef5fa !important;
  font-size: 10.8px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

#tab-relatorio .report-table .badge,
.generated-report-table .badge {
  font-size: 10.6px !important;
  font-weight: 900 !important;
  padding: 4px 7px !important;
}

#tab-relatorio .report-table td.sla-estourado,
#tab-relatorio .report-table .sla-estourado,
.generated-report-table td.sla-estourado,
.generated-report-table .sla-estourado {
  color: #dc2626 !important;
  font-weight: 900 !important;
}

@media (max-width: 1500px) {
  #tab-operacao .table-card .table-wrap,
  #tab-relatorio .report-table-scroll {
    max-height: 528px !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td,
  #tab-relatorio .report-table th,
  #tab-relatorio .report-table td,
  .generated-report-table th,
  .generated-report-table td {
    font-size: 10.6px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: MENU SEM CORTE + AVATAR COM 3 LETRAS
   25/05/2026
   ========================================================== */
:root {
  --side-width-final: 194px !important;
}

#appView.app-shell:not(.hidden-app) {
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.side-menu {
  width: var(--side-width-final) !important;
  min-width: var(--side-width-final) !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.side-logo {
  width: 136px !important;
  max-width: 100% !important;
}

.side-nav-btn {
  min-height: 48px !important;
  grid-template-columns: 31px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  padding: 9px 10px !important;
}

.side-nav-btn span:not(.side-icon) {
  display: block !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.side-icon {
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  flex-basis: 31px !important;
}

.user-box {
  grid-template-columns: 40px minmax(0, 1fr) !important;
}

.user-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 96px !important;
  }

  .side-nav-btn span:not(.side-icon) {
    display: none !important;
  }
}

/* ==========================================================
   AJUSTE VISUAL: STATUS COM VERDE CLARO DE SISTEMA
   25/05/2026
   ========================================================== */
.badge.status-aberto,
.status-aberto {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

.badge.status-em-andamento,
.status-em-andamento {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.badge.status-finalizado,
.status-finalizado {
  background: #d1fae5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.badge.status-cancelado,
.status-cancelado {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

#tab-operacao .table-card .badge,
#tab-relatorio .report-table .badge,
.generated-report-table .badge {
  box-shadow: none !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

#tab-operacao .table-card td:nth-child(7) .badge.status-aberto {
  background: #e7f8ee !important;
  color: #15803d !important;
  border-color: #bfeccc !important;
}

/* ==========================================================
   AJUSTE: REMOVER FAIXAS COLORIDAS DOS CARDS + SLA VERDE/VERMELHO
   26/05/2026
   ========================================================== */
.stat-card::before,
.dashboard-kpi::before,
.generated-kpi-card::before {
  display: none !important;
  content: none !important;
}

.stat-card,
.dashboard-kpi,
.report-stats-8 .stat-card,
#tab-relatorio .report-stats-8 .stat-card,
.generated-kpi-card {
  border-left: 1px solid var(--border) !important;
}

.stat-card span,
.stat-card strong {
  padding-left: 0 !important;
}

#tab-operacao .kpi-strip .stat-card,
#tab-relatorio .report-stats-8 .stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
}

.sla-ok {
  color: #15803d !important;
  font-weight: 900 !important;
}

.sla-estourado {
  color: #dc2626 !important;
  font-weight: 950 !important;
}

.sla-alerta {
  color: #15803d !important;
  font-weight: 900 !important;
}

/* ==========================================================
   GRAFICO TEMPO REAL DASHBOARD
   ========================================================== */
.dashboard-chart-panel {
  margin-top: 16px !important;
  padding: 20px 22px !important;
  min-height: 430px !important;
  background: rgba(255,255,255,.96) !important;
}

.dashboard-chart-panel .panel-title-row {
  margin-bottom: 10px !important;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 4px 0 14px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.chart-open { background: #22c55e; }
.chart-progress { background: #f59e0b; }
.chart-done { background: #3b82f6; }
.chart-late { background: #ef4444; }
.chart-canceled { background: #64748b; }

.dashboard-chart-wrap {
  width: 100%;
  height: 330px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px 14px 8px;
  overflow: hidden;
}

#dashboardMonthlyChart {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 1180px) {
  .dashboard-chart-panel { min-height: 380px !important; }
  .dashboard-chart-wrap { height: 300px; }
}

/* ==========================================================
   AJUSTE DASHBOARD COMPACTO SEM ROLAGEM
   26/05/2026
   ========================================================== */
@media (min-width: 1200px) {
  #tab-dashboard {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #tab-dashboard .dashboard-hero {
    min-height: 88px !important;
    padding: 14px 22px !important;
    margin-bottom: 0 !important;
    align-items: center !important;
  }

  #tab-dashboard .dashboard-hero h2 {
    font-size: clamp(20px, 1.18vw, 25px) !important;
    margin: 4px 0 4px !important;
    line-height: 1.08 !important;
  }

  #tab-dashboard .dashboard-hero p {
    font-size: clamp(11px, .68vw, 13px) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-width: 820px !important;
  }

  #tab-dashboard .eyebrow {
    padding: 4px 9px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  #tab-dashboard .dashboard-kpi-grid {
    gap: 12px !important;
    margin-bottom: 0 !important;
  }

  #tab-dashboard .dashboard-kpi {
    min-height: 78px !important;
    padding: 12px 16px !important;
    grid-template-columns: 44px 1fr !important;
    column-gap: 12px !important;
  }

  #tab-dashboard .kpi-dot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
  }

  #tab-dashboard .dashboard-kpi span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  #tab-dashboard .dashboard-kpi strong {
    font-size: clamp(26px, 1.45vw, 31px) !important;
  }

  #tab-dashboard .dashboard-kpi small {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  #tab-dashboard .dashboard-executive-grid {
    gap: 12px !important;
  }

  #tab-dashboard .dash-panel {
    padding: 16px !important;
  }

  #tab-dashboard .panel-title-row {
    margin-bottom: 10px !important;
    align-items: center !important;
  }

  #tab-dashboard .panel-title-row h3,
  #tab-dashboard .dash-panel h3 {
    font-size: clamp(17px, .95vw, 21px) !important;
    margin-top: 4px !important;
    line-height: 1.1 !important;
  }

  #tab-dashboard .dash-bars {
    gap: 8px !important;
  }

  #tab-dashboard .dash-bar-row {
    grid-template-columns: 116px 1fr 28px !important;
    gap: 9px !important;
    font-size: 11px !important;
  }

  #tab-dashboard .dash-bar-row b {
    height: 8px !important;
  }

  #tab-dashboard .performance-grid {
    gap: 10px !important;
  }

  #tab-dashboard .performance-card {
    min-height: 72px !important;
    padding: 12px 14px !important;
    border-radius: 15px !important;
  }

  #tab-dashboard .performance-card span {
    font-size: 9px !important;
    margin-bottom: 5px !important;
  }

  #tab-dashboard .performance-card strong {
    font-size: clamp(22px, 1.18vw, 27px) !important;
  }

  #tab-dashboard .performance-card small {
    font-size: 10px !important;
    margin-top: 5px !important;
    line-height: 1.12 !important;
  }

  #tab-dashboard .sla-health-card {
    min-height: 190px !important;
  }

  #tab-dashboard .sla-ring {
    width: clamp(108px, 6.5vw, 132px) !important;
  }

  #tab-dashboard .sla-ring::before {
    inset: 12px !important;
  }

  #tab-dashboard .sla-ring span {
    font-size: clamp(24px, 1.45vw, 31px) !important;
  }

  #tab-dashboard .sla-ring small {
    font-size: 9px !important;
    margin-top: 28px !important;
  }

  #tab-dashboard .dashboard-chart-panel {
    min-height: 292px !important;
    margin-top: 0 !important;
    padding: 14px 16px !important;
  }

  #tab-dashboard .dashboard-chart-legend {
    gap: 8px 14px !important;
    margin: 2px 0 8px !important;
    font-size: 11px !important;
  }

  #tab-dashboard .legend-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 3px !important;
  }

  #tab-dashboard .dashboard-chart-wrap {
    height: 210px !important;
    padding: 8px 12px 6px !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 1200px) and (max-height: 900px) {
  #tab-dashboard {
    gap: 10px !important;
  }

  #tab-dashboard .dashboard-hero {
    min-height: 78px !important;
    padding: 12px 20px !important;
  }

  #tab-dashboard .dashboard-kpi {
    min-height: 70px !important;
    padding: 10px 14px !important;
  }

  #tab-dashboard .dashboard-chart-panel {
    min-height: 260px !important;
  }

  #tab-dashboard .dashboard-chart-wrap {
    height: 185px !important;
  }
}

/* ==========================================================
   CORRECAO: DASHBOARD SOMENTE NA ABA DASHBOARD
   26/05/2026
   ========================================================== */
#tab-dashboard.tab-panel:not(.active) {
  display: none !important;
}

#tab-operacao.tab-panel:not(.active),
#tab-usuarios.tab-panel:not(.active),
#tab-admin-tools.tab-panel:not(.active),
#tab-visitas.tab-panel:not(.active),
#tab-relatorio.tab-panel:not(.active) {
  display: none !important;
}

@media (min-width: 1200px) {
  #tab-dashboard.tab-panel.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

@media (min-width: 1200px) and (max-height: 900px) {
  #tab-dashboard.tab-panel.active {
    gap: 10px !important;
  }
}

/* ==========================================================
   TELA DE CHAMADOS MAIS PROXIMA DA PRODUCAO
   26/05/2026
   ========================================================== */
#tab-operacao.tab-panel.active {
  background: transparent !important;
}

#tab-operacao .layout {
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

#tab-operacao .form-card {
  max-width: 270px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.97) !important;
  border: 1px solid #d8e3ef !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.07) !important;
}

#tab-operacao .form-card .card-header {
  padding: 17px 18px !important;
  min-height: 64px !important;
}

#tab-operacao .form-card .card-header h2 {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

#tab-operacao .form-grid {
  padding: 16px !important;
  gap: 10px !important;
}

#tab-operacao .field label {
  color: #334155 !important;
  font-size: 11px !important;
  letter-spacing: .025em !important;
}

#tab-operacao .field input,
#tab-operacao .field select,
#tab-operacao .field textarea {
  min-height: 40px !important;
  border-radius: 11px !important;
  border-color: #d5e1ee !important;
  background: #fbfdff !important;
  color: #25364a !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

#tab-operacao .field textarea {
  min-height: 76px !important;
}

#tab-operacao .helper-text {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.32 !important;
}

#tab-operacao .actions .btn {
  min-height: 42px !important;
  border-radius: 11px !important;
  padding: 0 15px !important;
}

#tab-operacao .content-area {
  gap: 13px !important;
  min-width: 0 !important;
}

#tab-operacao .kpi-strip {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 0 !important;
}

#tab-operacao .kpi-strip .stat-card {
  min-height: 70px !important;
  padding: 13px 16px !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  border: 1px solid #d8e3ef !important;
  box-shadow: 0 14px 28px rgba(15,23,42,.06) !important;
}

#tab-operacao .kpi-strip .stat-card span {
  color: #64748b !important;
  font-size: 10px !important;
  letter-spacing: .035em !important;
}

#tab-operacao .kpi-strip .stat-card strong {
  color: #0b3456 !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

#tab-operacao .table-card {
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8e3ef !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.07) !important;
  overflow: hidden !important;
}

#tab-operacao .table-card .card-header {
  padding: 17px 18px !important;
  min-height: 62px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #d8e3ef !important;
}

#tab-operacao .table-card .card-header h2 {
  font-size: 22px !important;
  line-height: 1.1 !important;
  color: #0b3456 !important;
}

#tab-operacao .filters-grid {
  margin: 14px 16px 12px !important;
  padding: 13px !important;
  gap: 10px !important;
  border-radius: 13px !important;
  background: #f8fbff !important;
  border: 1px solid #dce6f1 !important;
}

#tab-operacao .filters-grid .field input,
#tab-operacao .filters-grid .field select {
  min-height: 39px !important;
}

#tab-operacao .table-card .table-wrap {
  margin: 0 16px 16px !important;
  padding: 0 !important;
  height: auto !important;
  max-height: 610px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 1px solid #dce6f1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background: #f3f7fb !important;
  color: #075985 !important;
  border-bottom: 1px solid #d8e3ef !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  padding: 10px 8px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  color: #1f3147 !important;
  border-bottom: 1px solid #dfe8f2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-operacao .table-card th {
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

#tab-operacao .table-card tbody tr:hover td {
  background: #f7fbff !important;
}

#tab-operacao .table-card .badge {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 4px 9px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

#tab-operacao .table-card .badge.status-aberto,
#tab-operacao .table-card td:nth-child(7) .badge.status-aberto,
.badge.status-aberto,
.status-aberto {
  background: #dbeafe !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
}

#tab-operacao .table-card .badge.status-finalizado,
.badge.status-finalizado,
.status-finalizado {
  background: #d1fae5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

#tab-operacao .table-card .badge.status-aguardando-aprovacao,
.badge.status-aguardando-aprovacao,
.status-aguardando-aprovacao {
  background: #fff2c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

#tab-operacao .table-card .badge.status-em-andamento,
.badge.status-em-andamento,
.status-em-andamento {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

#tab-operacao .table-card .sla-ok,
#tab-operacao .table-card td.sla-ok {
  color: #0f9f78 !important;
  font-weight: 900 !important;
}

#tab-operacao .table-card .sla-estourado,
#tab-operacao .table-card td.sla-estourado {
  color: #ef4444 !important;
  font-weight: 900 !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 4.2% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 8.2% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 9% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 9.3% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 6.3% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10.4% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 9.2% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 12.6% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 9.6% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 11.2% !important; }

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 9px !important;
  height: 0 !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #b8c8d8 !important;
  border-radius: 999px !important;
  border: 2px solid #f3f7fb !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-track {
  background: #f3f7fb !important;
}

@media (min-width: 1700px) {
  #tab-operacao .layout {
    grid-template-columns: 282px minmax(0, 1fr) !important;
  }

  #tab-operacao .form-card {
    max-width: 282px !important;
  }

  #tab-operacao .table-card .table-wrap {
    max-height: 660px !important;
  }
}

/* ==========================================================
   OPERACAO FIEL A PRODUCAO - BASE C:\JLX Tech-Chamados
   26/05/2026
   ========================================================== */
#tab-operacao.tab-panel.active {
  display: block !important;
}

#tab-operacao .layout {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
}

#tab-operacao .form-card {
  max-width: 320px !important;
  padding-bottom: 14px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}

#tab-operacao .form-card .card-header,
#tab-operacao .table-card .card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px 20px !important;
  min-height: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  background: #ffffff !important;
}

#tab-operacao .form-card .card-header h2,
#tab-operacao .table-card .card-header h2 {
  color: var(--primary) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

#tab-operacao .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 18px !important;
}

#tab-operacao .field {
  display: grid !important;
  gap: 6px !important;
}

#tab-operacao .field label {
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#tab-operacao .field input,
#tab-operacao .field select,
#tab-operacao .field textarea {
  width: 100% !important;
  min-height: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 12px 13px !important;
  font-size: 14px !important;
  background: #fcfdff !important;
  color: var(--text) !important;
  outline: none !important;
  box-shadow: none !important;
}

#tab-operacao .field input:hover,
#tab-operacao .field select:hover,
#tab-operacao .field textarea:hover {
  border-color: var(--border-strong) !important;
  background: #ffffff !important;
}

#tab-operacao .field input:focus,
#tab-operacao .field select:focus,
#tab-operacao .field textarea:focus {
  border-color: var(--primary-2) !important;
  box-shadow: 0 0 0 4px rgba(31, 106, 165, 0.12) !important;
  background: #fff !important;
}

#tab-operacao .field textarea {
  min-height: 92px !important;
  resize: vertical !important;
}

#tab-operacao .helper-text {
  display: block !important;
  margin-top: 6px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

#tab-operacao .actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#tab-operacao .btn {
  border-radius: 12px !important;
  padding: 12px 16px !important;
  min-height: 0 !important;
  font-weight: 800 !important;
}

#tab-operacao .content-area {
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
}

#tab-operacao .stats-grid.kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
}

#tab-operacao .compact-stats .stat-card,
#tab-operacao .kpi-strip .stat-card {
  min-height: 74px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

#tab-operacao .kpi-strip .stat-card::before {
  display: none !important;
  content: none !important;
}

#tab-operacao .kpi-strip .stat-card span {
  display: block !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  margin-bottom: 6px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding-left: 0 !important;
}

#tab-operacao .kpi-strip .stat-card strong {
  color: var(--primary) !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  padding-left: 0 !important;
}

#tab-operacao .table-card {
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}

#tab-operacao .filters-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(4, minmax(150px, 1fr)) !important;
  gap: 12px !important;
  padding: 18px 18px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#tab-operacao .table-card .table-wrap {
  max-height: 720px !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  scrollbar-gutter: stable !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar {
  width: 10px !important;
  height: 0 !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #c5d3e3 !important;
  border-radius: 999px !important;
}

#tab-operacao .table-card .table-wrap::-webkit-scrollbar-track {
  background: #eef3f8 !important;
  border-radius: 999px !important;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-operacao .table-card thead th,
#tab-operacao .table-card th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  color: var(--primary) !important;
  background: #f5f8fc !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 13px 10px !important;
  line-height: 1.15 !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#tab-operacao .table-card td {
  padding: 13px 10px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background: transparent !important;
}

#tab-operacao .table-card tbody tr {
  transition: background 0.2s ease !important;
}

#tab-operacao .table-card tbody tr:hover td {
  background: #f8fbff !important;
}

#tab-operacao .table-card .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#tab-operacao .table-card .status-aberto,
#tab-operacao .table-card .badge.status-aberto,
.status-aberto {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 0 !important;
}

#tab-operacao .table-card .status-em-andamento,
#tab-operacao .table-card .badge.status-em-andamento,
.status-em-andamento {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 0 !important;
}

#tab-operacao .table-card .status-finalizado,
#tab-operacao .table-card .badge.status-finalizado,
.status-finalizado {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border: 0 !important;
}

#tab-operacao .table-card .status-cancelado,
#tab-operacao .table-card .badge.status-cancelado,
.status-cancelado {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 0 !important;
}

#tab-operacao .table-card .status-aguardando-aprovacao,
#tab-operacao .table-card .badge.status-aguardando-aprovacao,
.status-aguardando-aprovacao {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 0 !important;
}

#tab-operacao .table-card .sla-ok,
#tab-operacao .table-card td.sla-ok {
  color: var(--success) !important;
  font-weight: 700 !important;
}

#tab-operacao .table-card .sla-alerta,
#tab-operacao .table-card td.sla-alerta {
  color: var(--warning) !important;
  font-weight: 700 !important;
}

#tab-operacao .table-card .sla-estourado,
#tab-operacao .table-card td.sla-estourado {
  color: var(--danger) !important;
  font-weight: 700 !important;
}

#tab-operacao .table-card th:nth-child(1),  #tab-operacao .table-card td:nth-child(1)  { width: 5% !important; }
#tab-operacao .table-card th:nth-child(2),  #tab-operacao .table-card td:nth-child(2)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(3),  #tab-operacao .table-card td:nth-child(3)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(4),  #tab-operacao .table-card td:nth-child(4)  { width: 8% !important; }
#tab-operacao .table-card th:nth-child(5),  #tab-operacao .table-card td:nth-child(5)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(6),  #tab-operacao .table-card td:nth-child(6)  { width: 7% !important; }
#tab-operacao .table-card th:nth-child(7),  #tab-operacao .table-card td:nth-child(7)  { width: 10% !important; }
#tab-operacao .table-card th:nth-child(8),  #tab-operacao .table-card td:nth-child(8)  { width: 11% !important; }
#tab-operacao .table-card th:nth-child(9),  #tab-operacao .table-card td:nth-child(9)  { width: 13% !important; }
#tab-operacao .table-card th:nth-child(10), #tab-operacao .table-card td:nth-child(10) { width: 10% !important; }
#tab-operacao .table-card th:nth-child(11), #tab-operacao .table-card td:nth-child(11) { width: 13% !important; }

@media (max-width: 1500px) {
  #tab-operacao .layout {
    grid-template-columns: 300px minmax(0, 1fr) !important;
  }

  #tab-operacao .form-card {
    max-width: 300px !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 12px !important;
    padding: 11px 8px !important;
  }
}

/* ==========================================================
   AJUSTE FINAL OPERAÇÃO: ALTURA, CABEÇALHO FIXO E COLUNAS
   26/05/2026
   ========================================================== */
:root {
  --system-max-width-final: 2060px !important;
  --content-max-width: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 8px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
}

.app-main.container {
  max-width: none !important;
  width: 100% !important;
}

#tab-operacao .layout {
  grid-template-columns: 305px minmax(0, 1fr) !important;
  gap: 18px !important;
}

#tab-operacao .form-card {
  max-width: 305px !important;
}

#tab-operacao .table-card .table-wrap {
  height: clamp(650px, calc(100vh - 345px), 805px) !important;
  max-height: 805px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 18px 18px !important;
  position: relative !important;
  background: #ffffff !important;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-operacao .table-card thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

#tab-operacao .table-card thead tr {
  position: relative !important;
  z-index: 51 !important;
}

#tab-operacao .table-card thead th,
#tab-operacao .table-card th {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: #f5f8fc !important;
  background-clip: padding-box !important;
  box-shadow: 0 1px 0 var(--border), 0 8px 12px rgba(15,23,42,.05) !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card tbody td {
  position: relative !important;
  z-index: 1 !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  padding: 12px 8px !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
}

#tab-operacao .table-card th {
  font-size: 11px !important;
  letter-spacing: .025em !important;
}

#tab-operacao .table-card th:nth-child(1),
#tab-operacao .table-card td:nth-child(1) {
  width: 4.8% !important;
  min-width: 56px !important;
}

#tab-operacao .table-card th:nth-child(2),
#tab-operacao .table-card td:nth-child(2) { width: 7.4% !important; }

#tab-operacao .table-card th:nth-child(3),
#tab-operacao .table-card td:nth-child(3) { width: 10.1% !important; }

#tab-operacao .table-card th:nth-child(4),
#tab-operacao .table-card td:nth-child(4) {
  width: 9.2% !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card th:nth-child(5),
#tab-operacao .table-card td:nth-child(5) { width: 10% !important; }

#tab-operacao .table-card th:nth-child(6),
#tab-operacao .table-card td:nth-child(6) { width: 6.4% !important; }

#tab-operacao .table-card th:nth-child(7),
#tab-operacao .table-card td:nth-child(7) {
  width: 12.2% !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card th:nth-child(8),
#tab-operacao .table-card td:nth-child(8) { width: 9.9% !important; }

#tab-operacao .table-card th:nth-child(9),
#tab-operacao .table-card td:nth-child(9) {
  width: 8.1% !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card th:nth-child(10),
#tab-operacao .table-card td:nth-child(10) {
  width: 12.1% !important;
  text-overflow: clip !important;
}

#tab-operacao .table-card th:nth-child(11),
#tab-operacao .table-card td:nth-child(11) { width: 9.8% !important; }

#tab-operacao .table-card td:nth-child(1),
#tab-operacao .table-card td:nth-child(4),
#tab-operacao .table-card td:nth-child(7),
#tab-operacao .table-card td:nth-child(9),
#tab-operacao .table-card td:nth-child(10) {
  white-space: nowrap !important;
}

#tab-operacao .table-card td:nth-child(4),
#tab-operacao .table-card td:nth-child(10) {
  overflow: hidden !important;
}

#tab-operacao .table-card .badge {
  max-width: 100% !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
}

#tab-operacao .table-card td:nth-child(7) .badge {
  justify-content: flex-start !important;
}

#tab-operacao .table-card .sla-ok,
#tab-operacao .table-card .sla-estourado,
#tab-operacao .table-card td.sla-ok,
#tab-operacao .table-card td.sla-estourado {
  font-size: 12.5px !important;
  white-space: nowrap !important;
}

@media (min-width: 1900px) {
  #tab-operacao .layout {
    grid-template-columns: 315px minmax(0, 1fr) !important;
  }

  #tab-operacao .form-card {
    max-width: 315px !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 13px !important;
    padding: 13px 9px !important;
  }
}

/* ==========================================================
   AJUSTE FINAL: REMOVER FUNDO CINZA DO SISTEMA
   01/06/2026
   ========================================================== */
html,
body {
  background: #ffffff !important;
}

body::before {
  display: none !important;
  content: none !important;
}

#appView.app-shell:not(.hidden-app),
.app-main.container,
.tab-panel.active,
#tab-dashboard.tab-panel.active {
  background: #ffffff !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
.app-main.container,
.app-main.container::before,
.app-main.container::after {
  box-shadow: none !important;
  filter: none !important;
}

#tab-dashboard .card,
#tab-dashboard .dashboard-hero,
#tab-dashboard .dashboard-kpi,
#tab-dashboard .dashboard-card,
#tab-dashboard .dash-panel,
#tab-dashboard .dashboard-chart-panel,
#tab-dashboard .dashboard-chart-wrap,
#tab-dashboard .performance-card,
#tab-dashboard .sla-ring {
  box-shadow: none !important;
  filter: none !important;
}

/* Remove halos cinza em volta do sistema em todas as telas. */
#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) *,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) *::before,
#appView.app-shell:not(.hidden-app) *::after {
  box-shadow: none !important;
  filter: none !important;
}

/* ==========================================================
   RESTAURACAO: QUADRADOS DECORATIVOS DO FUNDO
   ========================================================== */
body::before {
  display: block !important;
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.052) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.62), transparent 74%) !important;
  animation: manitech-bg-squares 22s linear infinite !important;
}

.auth-shell,
#appView.app-shell:not(.hidden-app) {
  position: relative !important;
  isolation: isolate !important;
}

.auth-shell {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(18px, 2.6vh, 28px) 20px !important;
  overflow: hidden !important;
  background:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,255,255,.032), rgba(255,255,255,0) 58%) 8% 18% / 96px 96px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.026), rgba(255,255,255,0) 58%) 88% 20% / 132px 132px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.022), rgba(255,255,255,0) 58%) 76% 78% / 110px 110px no-repeat,
    radial-gradient(circle at 20% 10%, rgba(14,165,233,.34), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(245,158,11,.20), transparent 28%),
    linear-gradient(135deg, #071421, #0f2742 60%, #082f49) !important;
  background-size:
    42px 42px,
    42px 42px,
    96px 96px,
    132px 132px,
    110px 110px,
    auto,
    auto,
    auto !important;
  background-position:
    0 0,
    0 0,
    8% 18%,
    88% 20%,
    76% 78%,
    center,
    center,
    center !important;
}

.auth-shell::before,
#appView.app-shell:not(.hidden-app)::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  opacity: .36 !important;
  animation: manitech-bg-squares 22s linear infinite !important;
}

.auth-shell::after,
#appView.app-shell:not(.hidden-app)::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.034), rgba(255,255,255,0) 58%) 8% 18% / 96px 96px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.028), rgba(255,255,255,0) 58%) 88% 20% / 132px 132px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.024), rgba(255,255,255,0) 58%) 76% 78% / 110px 110px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.02), rgba(255,255,255,0) 58%) 14% 76% / 126px 126px no-repeat !important;
  opacity: .34 !important;
  animation: manitech-floating-squares 16s ease-in-out infinite alternate !important;
}

.auth-card,
.side-menu,
.app-main.container {
  position: relative !important;
  z-index: 1 !important;
}

.auth-card.auth-card-clean {
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  padding: 30px 24px 24px !important;
  border-radius: 22px !important;
}

.auth-brand.auth-brand-center {
  margin-bottom: 24px !important;
}

.auth-logo.auth-logo-center {
  width: 220px !important;
}

.auth-title-block h1 {
  font-size: 26px !important;
  margin-bottom: 6px !important;
}

.auth-shell {
  background:
    linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(14,165,233,.32), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(245,158,11,.16), transparent 28%),
    linear-gradient(135deg, #071421, #0f2742 60%, #082f49) !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto !important;
  background-position: 0 0, 0 0, center, center, center !important;
}

.auth-shell::before {
  background:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  opacity: .38 !important;
}

.auth-shell::after {
  background: none !important;
  opacity: 0 !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#tab-dashboard.tab-panel.active {
  background-color: #ffffff !important;
  background-image:
    linear-gradient(rgba(8,47,73,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,47,73,.034) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  animation: manitech-bg-squares 22s linear infinite !important;
}

@keyframes manitech-bg-squares {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes manitech-floating-squares {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(10px, -14px, 0); }
}

/* Login alinhado ao visual original de C:\JLX Tech-Hom\V-01\styles.css. */
body:has(#authView:not(.hidden-app)) {
  background:
    radial-gradient(circle at 8% 4%, rgba(14, 165, 233, 0.26), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(135deg, #071421 0%, #0f2742 42%, #eef6ff 42%, #f8fafc 100%) !important;
  background-attachment: fixed !important;
}

body:has(#authView:not(.hidden-app))::before {
  display: block !important;
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%) !important;
  animation: none !important;
}

#authView.auth-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(14,165,233,.34), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(245,158,11,.20), transparent 28%),
    linear-gradient(135deg, #071421, #0f2742 60%, #082f49) !important;
}

#authView.auth-shell::before {
  display: block !important;
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%) !important;
  opacity: 1 !important;
  animation: none !important;
}

#authView.auth-shell::after {
  content: none !important;
  display: none !important;
}

body:has(#authView.hidden-app)::before {
  display: none !important;
  content: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  border-radius: 22px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

/* Ajuste visual: paleta corporativa neutra, sem camada quadriculada. */
#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active {
  background-color: transparent !important;
  background-image: none !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  animation: none !important;
}

#tab-dashboard .dashboard-hero,
#tab-dashboard .dashboard-kpi,
#tab-dashboard .dash-panel,
#tab-dashboard .dashboard-chart-panel,
#tab-dashboard .dashboard-chart-wrap,
#tab-dashboard .performance-card,
#tab-dashboard .sla-health-card,
.card,
.table-card,
.report-card,
.form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
  border-color: #d5e0ea !important;
}

#tab-dashboard .performance-card,
#tab-dashboard .dashboard-chart-wrap,
.field input,
.field select,
.field textarea,
.filters-grid,
.report-table-wrap {
  background: #f8fafc !important;
  border-color: #d8e2ec !important;
}

/* Remove a placa grande atras do conteudo; a cor fica apenas nos cards. */
#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#tab-dashboard.tab-panel.active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
  border-color: #d5e0ea !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: #f8fafc !important;
  border-color: #d8e2ec !important;
}

/* Paleta corporativa refinada: cinza azulado, menos branco puro. */
#appView.app-shell:not(.hidden-app) {
  --surface-main: #f1f5f8;
  --surface-panel: #f7f9fb;
  --surface-panel-soft: #eef4f8;
  --surface-panel-strong: #ffffff;
  --surface-line: #c9d7e3;
  --surface-line-soft: #d9e4ed;
  --surface-text-muted: #63788c;
}

#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  background: linear-gradient(180deg, var(--surface-panel-strong) 0%, var(--surface-panel) 48%, var(--surface-panel-soft) 100%) !important;
  border-color: var(--surface-line) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, #f8fafc 0%, #edf3f7 100%) !important;
  border-color: var(--surface-line-soft) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  background: linear-gradient(180deg, #f9fbfd 0%, #edf5fa 100%) !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .panel-title-row {
  border-color: var(--surface-line-soft) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .field label {
  color: var(--surface-text-muted) !important;
}

/* Paleta final: superficies mais escuras e corporativas. */
#appView.app-shell:not(.hidden-app) {
  --surface-panel: #e7eef4;
  --surface-panel-soft: #dfe9f1;
  --surface-panel-strong: #f3f7fa;
  --surface-line: #b9ccdc;
  --surface-line-soft: #c7d7e4;
  --surface-text-muted: #526a80;
}

#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  background: linear-gradient(180deg, #f2f6f9 0%, #e5edf4 100%) !important;
  border-color: #b9ccdc !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, #edf3f7 0%, #dbe6ef 100%) !important;
  border-color: #c0d1df !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: #dce7ef !important;
}

/* Padrao corporativo premium: limpo, com contraste e acentos JLX Tech. */
#appView.app-shell:not(.hidden-app) {
  --corp-card: #ffffff;
  --corp-soft: #f4f8fb;
  --corp-soft-2: #eef5f9;
  --corp-border: #bfd2e2;
  --corp-border-soft: #d8e5ef;
  --corp-accent: #0ea5d8;
  --corp-accent-dark: #075985;
  --corp-shadow: 0 16px 34px rgba(8, 47, 73, .075);
  --corp-shadow-soft: 0 8px 22px rgba(8, 47, 73, .055);
}

#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  background: linear-gradient(180deg, var(--corp-card) 0%, var(--corp-soft) 100%) !important;
  border: 1px solid var(--corp-border) !important;
  box-shadow: var(--corp-shadow-soft) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  background:
    linear-gradient(90deg, rgba(14,165,216,.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #edf6fb 100%) !important;
  border-color: #b8d3e6 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, #fbfdff 0%, var(--corp-soft-2) 100%) !important;
  border-color: var(--corp-border-soft) !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .table-card .card-header,
#appView.app-shell:not(.hidden-app) .form-card .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7fb 100%) !important;
  border-bottom: 1px solid var(--corp-border-soft) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  position: relative !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--corp-accent), #38bdf8) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff3fb !important;
  color: var(--corp-accent-dark) !important;
  border: 1px solid #bee3f2 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .field label {
  color: #526b7f !important;
}

/* Tema azul + preto corporativo. */
#appView.app-shell:not(.hidden-app) {
  --dark-panel: #0f2533;
  --dark-panel-2: #132f40;
  --dark-panel-soft: #18394c;
  --dark-card: #f7fbff;
  --dark-card-soft: #eaf3f8;
  --dark-border: rgba(14, 165, 216, .34);
  --dark-border-soft: rgba(148, 190, 211, .38);
  --dark-title: #eaf7ff;
  --dark-muted: #a9c4d4;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .card {
  background:
    linear-gradient(135deg, rgba(14,165,216,.10), transparent 38%),
    linear-gradient(180deg, var(--dark-panel) 0%, #0b1c28 100%) !important;
  border-color: var(--dark-border) !important;
  box-shadow: 0 18px 38px rgba(2, 8, 23, .18) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, var(--dark-panel-2) 0%, var(--dark-panel-soft) 100%) !important;
  border-color: var(--dark-border-soft) !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .table-card .card-header,
#appView.app-shell:not(.hidden-app) .form-card .card-header {
  background: linear-gradient(180deg, #132f40 0%, #0f2533 100%) !important;
  border-bottom-color: var(--dark-border) !important;
}

#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .card-header h2,
#appView.app-shell:not(.hidden-app) .panel-title-row h3,
#appView.app-shell:not(.hidden-app) .dash-panel h3,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: var(--dark-title) !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: var(--dark-muted) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: rgba(14,165,216,.18) !important;
  border-color: rgba(56,189,248,.34) !important;
  color: #bdefff !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row b {
  background: rgba(226, 242, 250, .14) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: #102839 !important;
}

/* Mantem os agrupadores grandes transparentes; tema escuro so nos cards internos. */
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  border: 1px solid rgba(14, 165, 216, .22) !important;
  background: linear-gradient(180deg, rgba(15, 37, 51, .92), rgba(11, 28, 40, .92)) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-panel > .panel-title-row,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel > .dashboard-chart-legend,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel > .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel > .eyebrow {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

/* Recuperacao: base clara premium com acentos azul/preto. */
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%) !important;
  border: 1px solid #bed6e7 !important;
  box-shadow: 0 12px 26px rgba(8, 47, 73, .08) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, #fbfdff 0%, #edf5fa 100%) !important;
  border-color: #d2e2ee !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  background:
    linear-gradient(90deg, rgba(7, 89, 133, .10), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #eef7fb 100%) !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .table-card .card-header,
#appView.app-shell:not(.hidden-app) .form-card .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #edf6fb 100%) !important;
  border-bottom: 1px solid #d2e2ee !important;
}

#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .card-header h2,
#appView.app-shell:not(.hidden-app) .panel-title-row h3,
#appView.app-shell:not(.hidden-app) .dash-panel h3,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: #082f49 !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: #506b82 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  border-top: 3px solid #0ea5d8 !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row b {
  background: #e5eff6 !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: #ffffff !important;
}

/* Remove definitivamente a camada/placa de fundo dos agrupadores do dashboard. */
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-dashboard.tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel > .eyebrow,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel > .panel-title-row,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel > .dashboard-chart-legend {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

/* Tema corporativo inspirado no Controle de Turno: azul/preto consistente. */
#appView.app-shell:not(.hidden-app) {
  --turn-bg: #061522;
  --turn-panel: rgba(9, 31, 49, .94);
  --turn-panel-2: rgba(12, 43, 65, .90);
  --turn-soft: rgba(255, 255, 255, .055);
  --turn-line: rgba(148, 197, 220, .22);
  --turn-line-strong: rgba(45, 212, 191, .38);
  --turn-text: #eaf6ff;
  --turn-muted: #9bb5c8;
  --turn-muted-2: #c4d7e5;
  --turn-brand: #16c6a5;
  --turn-brand-2: #0ea5e9;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#tab-dashboard.tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  color: var(--turn-text) !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .08), transparent 42%),
    linear-gradient(180deg, var(--turn-panel), rgba(6, 24, 39, .94)) !important;
  border: 1px solid var(--turn-line) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  color: var(--turn-text) !important;
  background: linear-gradient(180deg, var(--turn-panel-2), rgba(8, 31, 50, .88)) !important;
  border-color: var(--turn-line) !important;
}

#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .table-card .card-header,
#appView.app-shell:not(.hidden-app) .form-card .card-header {
  background: linear-gradient(180deg, rgba(17, 48, 72, .96), rgba(12, 37, 58, .96)) !important;
  border-bottom: 1px solid var(--turn-line) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .card-header h2,
#appView.app-shell:not(.hidden-app) .panel-title-row h3,
#appView.app-shell:not(.hidden-app) .dash-panel h3,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: var(--turn-text) !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: var(--turn-muted) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  color: #c2f6ee !important;
  background: rgba(22, 198, 165, .12) !important;
  border: 1px solid rgba(45, 212, 191, .28) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  border-top: 3px solid var(--turn-brand-2) !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row b {
  background: rgba(255, 255, 255, .10) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: #071e2d !important;
}

/* ==========================================================
   TEMA DEFINITIVO NO FIM DO ARQUIVO
   Modelo Controle de Turno: fundo fotografico e app sem placa geral.
   ========================================================== */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100% !important;
  background:
    linear-gradient(90deg, rgba(2, 10, 18, .88), rgba(2, 14, 24, .56) 45%, rgba(2, 10, 18, .88)),
    linear-gradient(180deg, rgba(2, 10, 18, .62), rgba(2, 10, 18, .74)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app)) {
  margin: 0 !important;
  color: #eaf6ff !important;
  overflow-x: hidden !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(1540px, calc(100vw - 44px)) !important;
  max-width: 1540px !important;
  margin: 18px auto 30px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
  gap: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .top-actions,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .filters-grid {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .14), rgba(14, 165, 233, .08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(7, 28, 45, .88), rgba(4, 18, 31, .88)) !important;
  border: 1px solid rgba(113, 184, 204, .26) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 148px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 36px) !important;
}

#appView.app-shell:not(.hidden-app) .top-actions {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  padding: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card {
  background: rgba(5, 20, 34, .58) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) strong,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #bdd3e2 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info,
#appView.app-shell:not(.hidden-app) .badge-count {
  color: #ccfff7 !important;
  background: rgba(22, 198, 165, .16) !important;
  border: 1px solid rgba(45, 212, 191, .32) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #102638 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(210, 226, 238, .95) !important;
}

/* Ajuste de organizacao do dashboard: proporcao e alinhamento. */
#appView.app-shell:not(.hidden-app) {
  width: min(1720px, calc(100vw - 56px)) !important;
  max-width: 1720px !important;
  grid-template-columns: 196px minmax(0, 1fr) !important;
  gap: 18px !important;
  margin: 16px auto 28px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 32px) !important;
  padding: 18px 14px !important;
  border-radius: 22px !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  width: 136px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 48px !important;
  padding: 10px 12px !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 136px !important;
  padding: 24px 28px !important;
  border-radius: 20px !important;
}

#appView.app-shell:not(.hidden-app) .brand-text h1 {
  font-size: clamp(30px, 2.3vw, 42px) !important;
  line-height: 1.02 !important;
}

#appView.app-shell:not(.hidden-app) .header-right {
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .clock-box {
  min-width: 156px !important;
}

#appView.app-shell:not(.hidden-app) .user-box {
  min-width: 230px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard {
  display: grid !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  min-height: auto !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero h2 {
  font-size: 28px !important;
  line-height: 1.12 !important;
  margin: 8px 0 6px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  min-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong {
  font-size: 32px !important;
  line-height: .95 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  display: grid !important;
  grid-template-columns: minmax(520px, 1.45fr) minmax(420px, 1fr) minmax(230px, .42fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel {
  min-height: 204px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel h3,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel h3 {
  font-size: 24px !important;
  line-height: 1.1 !important;
}

#appView.app-shell:not(.hidden-app) .dash-bars {
  margin-top: 14px !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row {
  grid-template-columns: 132px minmax(0, 1fr) 28px !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .performance-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .performance-card {
  min-height: 76px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
}

#appView.app-shell:not(.hidden-app) .sla-health-card {
  min-width: 230px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) .sla-health-card h3 {
  max-width: 190px !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring {
  width: 134px !important;
  height: 134px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  min-height: 254px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  height: 178px !important;
  min-height: 178px !important;
  border-radius: 14px !important;
}

@media (max-width: 1360px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 28px, 1280px) !important;
    grid-template-columns: 176px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .sla-health-card {
    grid-column: 1 / -1 !important;
    min-height: 170px !important;
  }
}

@media (max-width: 980px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 18px, 760px) !important;
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
  #appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
  #appView.app-shell:not(.hidden-app) .performance-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) .header,
  #appView.app-shell:not(.hidden-app) .header-right {
    flex-wrap: wrap !important;
  }
}

#appView.app-shell:not(.hidden-app) input::placeholder,
#appView.app-shell:not(.hidden-app) textarea::placeholder {
  color: #71859a !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .link-btn {
  color: #0f2a3d !important;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(210, 226, 238, .8) !important;
}

#appView.app-shell:not(.hidden-app) .link-btn {
  color: #eaf6ff !important;
  background: rgba(8, 38, 58, .46) !important;
  border-color: rgba(148, 197, 220, .36) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(148, 197, 220, .18) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active {
  background: linear-gradient(135deg, #24c7eb, #0d8fb8) !important;
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: rgba(5, 20, 34, .90) !important;
}

@media (max-width: 980px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 18px, 760px) !important;
    grid-template-columns: 1fr !important;
    margin: 10px auto 22px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    min-height: auto !important;
  }
}

/* ==========================================================
   TEMA DEFINITIVO - MODELO CONTROLE DE TURNO
   Fundo fotografico + paineis de vidro, sem placa/camada geral.
   ========================================================== */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100% !important;
  background:
    linear-gradient(90deg, rgba(2, 10, 18, .88), rgba(2, 14, 24, .56) 45%, rgba(2, 10, 18, .88)),
    linear-gradient(180deg, rgba(2, 10, 18, .62), rgba(2, 10, 18, .74)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app)) {
  margin: 0 !important;
  color: #eaf6ff !important;
  overflow-x: hidden !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(1540px, calc(100vw - 44px)) !important;
  max-width: 1540px !important;
  margin: 18px auto 30px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
  gap: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .top-actions,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .filters-grid {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .14), rgba(14, 165, 233, .08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(7, 28, 45, .88), rgba(4, 18, 31, .88)) !important;
  border: 1px solid rgba(113, 184, 204, .26) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 148px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 36px) !important;
}

#appView.app-shell:not(.hidden-app) .top-actions {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  padding: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  padding: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card {
  background: rgba(5, 20, 34, .58) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) strong,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #bdd3e2 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info,
#appView.app-shell:not(.hidden-app) .badge-count {
  color: #ccfff7 !important;
  background: rgba(22, 198, 165, .16) !important;
  border: 1px solid rgba(45, 212, 191, .32) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #102638 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(210, 226, 238, .95) !important;
}

#appView.app-shell:not(.hidden-app) input::placeholder,
#appView.app-shell:not(.hidden-app) textarea::placeholder {
  color: #71859a !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .link-btn {
  color: #0f2a3d !important;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(210, 226, 238, .8) !important;
}

#appView.app-shell:not(.hidden-app) .link-btn {
  color: #eaf6ff !important;
  background: rgba(8, 38, 58, .46) !important;
  border-color: rgba(148, 197, 220, .36) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(148, 197, 220, .18) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active {
  background: linear-gradient(135deg, #24c7eb, #0d8fb8) !important;
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: rgba(5, 20, 34, .90) !important;
}

@media (max-width: 980px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 18px, 760px) !important;
    grid-template-columns: 1fr !important;
    margin: 10px auto 22px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    min-height: auto !important;
  }
}

/* ==========================================================
   TEMA FINAL - REFERENCIA CONTROLE DE TURNO
   Fundo com imagem, estrutura transparente, paineis sobrepostos.
   ========================================================== */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100% !important;
  background:
    linear-gradient(90deg, rgba(3, 15, 27, .62), rgba(3, 15, 27, .28) 48%, rgba(3, 15, 27, .62)),
    linear-gradient(180deg, rgba(3, 15, 27, .22), rgba(3, 15, 27, .48)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(1540px, calc(100vw - 44px)) !important;
  max-width: 1540px !important;
  margin: 18px auto 28px !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .10), transparent 44%),
    linear-gradient(180deg, rgba(8, 31, 50, .88), rgba(6, 24, 39, .88)) !important;
  border: 1px solid rgba(148, 197, 220, .18) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(14px) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background: rgba(3, 16, 28, .62) !important;
  border-color: rgba(148, 197, 220, .16) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: #9bb5c8 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  color: #c2f6ee !important;
  background: rgba(22, 198, 165, .12) !important;
  border: 1px solid rgba(45, 212, 191, .28) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #102638 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(203, 213, 225, .92) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: rgba(7, 30, 45, .96) !important;
}

/* Fundo institucional com imagem + paineis sobrepostos, sem camada cinza. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(3, 15, 27, .72), rgba(3, 15, 27, .42) 48%, rgba(3, 15, 27, .68)),
    linear-gradient(180deg, rgba(3, 15, 27, .36), rgba(3, 15, 27, .58)),
    url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=2200&q=80") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .08), transparent 44%),
    linear-gradient(180deg, rgba(8, 31, 50, .92), rgba(6, 24, 39, .88)) !important;
  border: 1px solid rgba(148, 197, 220, .20) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(10px) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background: linear-gradient(180deg, rgba(12, 43, 65, .86), rgba(8, 31, 50, .82)) !important;
  border-color: rgba(148, 197, 220, .22) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #0f2435 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(203, 213, 225, .92) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: #c4d7e5 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  color: #c2f6ee !important;
  background: rgba(22, 198, 165, .13) !important;
  border: 1px solid rgba(45, 212, 191, .30) !important;
}

/* Reset visual final: fundo corporativo + sistema sobreposto sem camada cinza. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(4, 18, 29, .58), rgba(4, 18, 29, .25) 46%, rgba(4, 18, 29, .62)),
    linear-gradient(180deg, rgba(4, 18, 29, .24), rgba(4, 18, 29, .46)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 80px), 1800px) !important;
  max-width: 1800px !important;
  margin: 18px auto 34px !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: 14px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  color: #eefaff !important;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .10), transparent 44%),
    linear-gradient(180deg, rgba(8, 31, 50, .86), rgba(6, 24, 39, .82)) !important;
  border: 1px solid rgba(148, 197, 220, .22) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(14px) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background: linear-gradient(180deg, rgba(12, 43, 65, .78), rgba(8, 31, 50, .74)) !important;
  border-color: rgba(148, 197, 220, .20) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #102638 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(210, 226, 238, .94) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: #f3fbff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: #c7ddeb !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  color: #bff8ee !important;
  background: rgba(22, 198, 165, .15) !important;
  border: 1px solid rgba(45, 212, 191, .32) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: rgba(7, 30, 45, .96) !important;
}

#appView.app-shell:not(.hidden-app) input::placeholder,
#appView.app-shell:not(.hidden-app) textarea::placeholder {
  color: #829aad !important;
}

/* Definitivo: remove a camada de fundo dos agrupadores. */
#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Mantem estilo somente nos cards/caixas reais. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  color: var(--turn-text) !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .08), transparent 42%),
    linear-gradient(180deg, var(--turn-panel), rgba(6, 24, 39, .94)) !important;
  border: 1px solid var(--turn-line) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel > .panel-title-row,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel > .dash-bars,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel > .performance-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel > .eyebrow {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

/* Correção final do tema: fundo global escuro, sem placa grande, campos visíveis. */
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(2, 10, 18, .88), rgba(2, 14, 24, .56) 45%, rgba(2, 10, 18, .88)),
    linear-gradient(180deg, rgba(2, 10, 18, .62), rgba(2, 10, 18, .74)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before {
  display: none !important;
  content: none !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .08), transparent 42%),
    linear-gradient(180deg, rgba(9, 31, 49, .94), rgba(6, 24, 39, .94)) !important;
  border: 1px solid rgba(148, 197, 220, .20) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .filters-grid {
  color: #eaf6ff !important;
  background: linear-gradient(180deg, rgba(12, 43, 65, .90), rgba(8, 31, 50, .88)) !important;
  border-color: rgba(148, 197, 220, .22) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .stat-card strong {
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row,
#appView.app-shell:not(.hidden-app) .field label {
  color: #9bb5c8 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info {
  color: #c2f6ee !important;
  background: rgba(22, 198, 165, .12) !important;
  border: 1px solid rgba(45, 212, 191, .28) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: #071e2d !important;
}

/* Trava final: replica o Controle de Turno sem camada geral por baixo. */
body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
#appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
#appView.app-shell:not(.hidden-app) .layout,
#appView.app-shell:not(.hidden-app) .content-area {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(1540px, calc(100vw - 44px)) !important;
  max-width: 1540px !important;
  margin: 18px auto 30px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .filters-grid {
  color: #eaf6ff !important;
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .14), rgba(14, 165, 233, .08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(7, 28, 45, .88), rgba(4, 18, 31, .88)) !important;
  border: 1px solid rgba(113, 184, 204, .26) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

#appView.app-shell:not(.hidden-app) .top-actions {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 148px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 36px) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  padding: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card {
  background: rgba(5, 20, 34, .58) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) strong {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #bdd3e2 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info,
#appView.app-shell:not(.hidden-app) .badge-count {
  color: #ccfff7 !important;
  background: rgba(22, 198, 165, .16) !important;
  border: 1px solid rgba(45, 212, 191, .32) !important;
}

#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  color: #102638 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(210, 226, 238, .95) !important;
}

/* Layout final do dashboard - organizacao e proporcao. */
#appView.app-shell:not(.hidden-app) {
  width: min(1720px, calc(100vw - 56px)) !important;
  max-width: 1720px !important;
  grid-template-columns: 196px minmax(0, 1fr) !important;
  gap: 18px !important;
  margin: 16px auto 28px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 32px) !important;
  padding: 18px 14px !important;
  border-radius: 22px !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  width: 136px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 48px !important;
  padding: 10px 12px !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 136px !important;
  padding: 24px 28px !important;
  border-radius: 20px !important;
}

#appView.app-shell:not(.hidden-app) .brand-text h1 {
  font-size: clamp(30px, 2.3vw, 42px) !important;
  line-height: 1.02 !important;
}

#appView.app-shell:not(.hidden-app) .header-right {
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .clock-box {
  min-width: 156px !important;
}

#appView.app-shell:not(.hidden-app) .user-box {
  min-width: 230px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard {
  display: grid !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero {
  min-height: auto !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero h2 {
  font-size: 28px !important;
  line-height: 1.12 !important;
  margin: 8px 0 6px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  min-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong {
  font-size: 32px !important;
  line-height: .95 !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
  display: grid !important;
  grid-template-columns: minmax(520px, 1.45fr) minmax(420px, 1fr) minmax(230px, .42fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel {
  min-height: 204px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel h3,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel h3 {
  font-size: 24px !important;
  line-height: 1.1 !important;
}

#appView.app-shell:not(.hidden-app) .dash-bars {
  margin-top: 14px !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row {
  grid-template-columns: 132px minmax(0, 1fr) 28px !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) .performance-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .performance-card {
  min-height: 76px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
}

#appView.app-shell:not(.hidden-app) .sla-health-card {
  min-width: 230px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) .sla-health-card h3 {
  max-width: 190px !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring {
  width: 134px !important;
  height: 134px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-panel {
  min-height: 254px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  height: 178px !important;
  min-height: 178px !important;
  border-radius: 14px !important;
}

@media (max-width: 1360px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 28px, 1280px) !important;
    grid-template-columns: 176px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .dashboard-executive-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .sla-health-card {
    grid-column: 1 / -1 !important;
    min-height: 170px !important;
  }
}

@media (max-width: 980px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(100% - 18px, 760px) !important;
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) .dashboard-kpi-grid,
  #appView.app-shell:not(.hidden-app) .dashboard-executive-grid,
  #appView.app-shell:not(.hidden-app) .performance-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) .header,
  #appView.app-shell:not(.hidden-app) .header-right {
    flex-wrap: wrap !important;
  }
}

/* Correção crítica: cada menu mostra somente a própria tela ativa. */
#appView.app-shell:not(.hidden-app) .tab-panel {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active {
  display: block !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard.active {
  display: grid !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao.active,
#appView.app-shell:not(.hidden-app) #tab-usuarios.active,
#appView.app-shell:not(.hidden-app) #tab-admin-tools.active,
#appView.app-shell:not(.hidden-app) #tab-visitas.active,
#appView.app-shell:not(.hidden-app) #tab-relatorio.active {
  display: block !important;
}

/* Ajuste fino: respiro interno dos cards do dashboard. */
#appView.app-shell:not(.hidden-app) #tab-dashboard.active {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel {
  padding: 22px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
  padding: 18px 22px !important;
  column-gap: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .panel-title-row {
  margin: 0 0 16px !important;
  align-items: flex-start !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bars {
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-grid {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card {
  padding: 16px 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  padding: 24px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend {
  margin: 8px 0 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  box-sizing: border-box !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  padding: 20px 16px !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  margin: auto 0 0 !important;
  padding: 12px 14px !important;
}

/* Alinha a altura do menu lateral com o sistema, sem passar do final. */
#appView.app-shell:not(.hidden-app) {
  align-items: stretch !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  align-self: stretch !important;
}

/* Mantem o conjunto do sistema ocupando a altura da tela, sem faixa solta embaixo. */
#appView.app-shell:not(.hidden-app) {
  min-height: calc(100vh - 32px) !important;
  align-items: stretch !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: calc(100vh - 32px) !important;
  height: auto !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  min-height: calc(100vh - 32px) !important;
  display: flex !important;
  flex-direction: column !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active {
  flex: 1 1 auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard.active {
  align-content: start !important;
}

/* Grafico mensal: maior e mais legivel. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  min-height: 330px !important;
  padding: 24px 26px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  height: 250px !important;
  min-height: 250px !important;
  padding: 20px 24px 18px !important;
}

#appView.app-shell:not(.hidden-app) #dashboardMonthlyChart {
  width: 100% !important;
  height: 100% !important;
}

@media (min-width: 1500px) {
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
    height: 285px !important;
    min-height: 285px !important;
  }
}

/* Alinhamento final: menu termina na mesma linha do conteudo. */
#appView.app-shell:not(.hidden-app) {
  min-height: 0 !important;
  align-items: stretch !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  min-height: 0 !important;
  align-self: stretch !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  min-height: 0 !important;
  height: auto !important;
  align-self: stretch !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  margin-top: auto !important;
}

/* Fundo real: remove a sombra/degrade global sobre a imagem. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16) !important;
}

/* Fundo limpo: deixa a imagem real, sem faixa/sombra global ao trocar telas. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  min-height: 100% !important;
  background-color: #071421 !important;
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body:has(#appView.app-shell:not(.hidden-app))::before,
body:has(#appView.app-shell:not(.hidden-app))::after,
#appView.app-shell:not(.hidden-app)::before,
#appView.app-shell:not(.hidden-app)::after,
#appView.app-shell:not(.hidden-app) .app-main.container::before,
#appView.app-shell:not(.hidden-app) .app-main.container::after,
#appView.app-shell:not(.hidden-app) .tab-panel.active::before,
#appView.app-shell:not(.hidden-app) .tab-panel.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) .content-area,
#appView.app-shell:not(.hidden-app) .layout {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Operacao: mais largura e painel interno na mesma cor do hover. */
#appView.app-shell:not(.hidden-app) {
  width: min(1880px, calc(100vw - 28px)) !important;
  max-width: 1880px !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  width: 100% !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao.active {
  width: 100% !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .16), rgba(14, 165, 233, .09) 42%, transparent 72%),
    linear-gradient(180deg, rgba(8, 38, 58, .82), rgba(5, 22, 36, .82)) !important;
  border-color: rgba(113, 184, 204, .30) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  background: rgba(8, 38, 58, .46) !important;
  color: #dbeefa !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td {
  background: rgba(8, 38, 58, .46) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th {
  background: #eef6fb !important;
  color: #075985 !important;
  font-size: 10px !important;
  letter-spacing: .02em !important;
  padding: 12px 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td {
  font-size: 10.5px !important;
  padding: 12px 8px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  overflow-x: auto !important;
  overflow-y: auto !important;
  max-height: 760px !important;
  padding: 0 !important;
  scrollbar-gutter: stable both-edges !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: max-content !important;
  min-width: 1540px !important;
  table-layout: fixed !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 60px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 130px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 165px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 130px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 130px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 105px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 170px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 110px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 210px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 165px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) { width: 230px !important; }

/* Correcao Operacao: sem barra horizontal, tudo dentro do painel e miolo claro. */
#appView.app-shell:not(.hidden-app) {
  width: min(1740px, calc(100vw - 40px)) !important;
  max-width: 1740px !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap {
  color: #123047 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,247,252,.96)) !important;
  border-color: rgba(177, 207, 225, .82) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10) !important;
  backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background: linear-gradient(180deg, #ffffff, #eef6fb) !important;
  border-bottom: 1px solid rgba(177, 207, 225, .82) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card p,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card small {
  color: #123047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid.kpi-strip {
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card {
  min-width: 0 !important;
  padding: 10px 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,247,252,.96)) !important;
  border: 1px solid rgba(177, 207, 225, .82) !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span {
  color: #7c98aa !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong {
  color: #123047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 16px 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 0 16px 16px !important;
  scrollbar-gutter: stable !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap::-webkit-scrollbar:horizontal {
  height: 0 !important;
  display: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th {
  background: #eef6fb !important;
  color: #075985 !important;
  font-size: 8.8px !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  padding: 9px 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  background: rgba(255,255,255,.90) !important;
  color: #18384e !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td {
  background: #eef6fb !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td {
  font-size: 9px !important;
  line-height: 1.18 !important;
  padding: 9px 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  max-width: 100% !important;
  padding: 3px 6px !important;
  font-size: 8.5px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 4.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 7.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 10.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 8.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 11.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 7.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 8.8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 10.8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 7.2% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 11.8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) { width: 13.2% !important; }

/* Operacao: padrao visual claro com destaque na cor do sistema. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card {
  color: #0f2f44 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(239,247,252,.97)) !important;
  border: 1px solid rgba(173, 206, 225, .86) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10) !important;
  backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%) !important;
  border-bottom: 1px solid rgba(173, 206, 225, .86) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong {
  color: #123047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .badge-info,
#appView.app-shell:not(.hidden-app) #tab-operacao .badge-count {
  color: #075985 !important;
  background: #dff5fb !important;
  border: 1px solid rgba(14, 165, 216, .38) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(239,247,252,.97)) !important;
  border-top: 1px solid rgba(173, 206, 225, .78) !important;
  border-bottom: 1px solid rgba(173, 206, 225, .78) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao input,
#appView.app-shell:not(.hidden-app) #tab-operacao select,
#appView.app-shell:not(.hidden-app) #tab-operacao textarea,
#appView.app-shell:not(.hidden-app) #tab-operacao .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .field textarea {
  color: #123047 !important;
  background: #ffffff !important;
  border: 1px solid rgba(173, 206, 225, .95) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao input::placeholder,
#appView.app-shell:not(.hidden-app) #tab-operacao textarea::placeholder {
  color: #7893a6 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th {
  background: #eaf4fa !important;
  color: #075985 !important;
  border-bottom: 1px solid rgba(173, 206, 225, .95) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  background: rgba(255,255,255,.94) !important;
  color: #16384f !important;
  border-bottom: 1px solid rgba(203, 221, 232, .88) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td {
  background: #eef6fb !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  background: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-operacao .tab-btn.active,
#appView.app-shell:not(.hidden-app) #tab-operacao .side-nav-btn.active {
  background: linear-gradient(135deg, #16a7d4, #075985) !important;
  color: #ffffff !important;
}

/* Operacao: base azul do sistema, mantendo tabela e campos brancos. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .92), rgba(5, 22, 36, .92)) !important;
  border: 1px solid rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background: rgba(8, 38, 58, .88) !important;
  border-bottom: 1px solid rgba(113, 184, 204, .34) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2 {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card small {
  color: #d5e8f4 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid {
  padding: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(239,247,252,.97)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid small {
  color: #123047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  background: #ffffff !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  min-height: 690px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap table {
  background: #ffffff !important;
}

/* Operacao: areas de base marcadas no azul padrao do sistema. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .94), rgba(5, 22, 36, .94)) !important;
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid small,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .helper-text {
  color: #d5e8f4 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao input,
#appView.app-shell:not(.hidden-app) #tab-operacao select,
#appView.app-shell:not(.hidden-app) #tab-operacao textarea,
#appView.app-shell:not(.hidden-app) #tab-operacao .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .field textarea {
  background: #ffffff !important;
  color: #123047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  background: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  background: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td {
  background: #eef6fb !important;
}

/* Ajuste solicitado: areas destacadas na cor padrao do sistema. */
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .94), rgba(5, 22, 36, .94)) !important;
  border-color: rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  border-bottom: 1px solid rgba(113, 184, 204, .34) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header h2 {
  color: #f4fbff !important;
}

/* Ajuste final: corpo do formulario e filtros no azul padrao do sistema. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .filters-grid {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .94), rgba(5, 22, 36, .94)) !important;
  border-color: rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid small,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .helper-text,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .filters-grid label {
  color: #d5e8f4 !important;
}

/* Ajuste de espacos e legibilidade na tela de chamados. */
#appView.app-shell:not(.hidden-app) {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .filters-grid {
  gap: 10px !important;
  padding: 12px 16px 8px !important;
  align-items: end !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .filters-grid .field {
  gap: 4px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  min-height: 0 !important;
  padding: 0 10px 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  padding: 9px 5px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th {
  font-size: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 9.5px !important;
  padding: 4px 7px !important;
}

#ticketModal .modal-card {
  width: min(92vw, 860px) !important;
  max-width: 860px !important;
  font-size: 16.5px !important;
}

#ticketModal .modal-body,
#ticketModal .modal-ticket-info,
#ticketModal .modal-body input,
#ticketModal .modal-body select,
#ticketModal .modal-body textarea {
  font-size: 16.5px !important;
}

#ticketModal .modal-ticket-info {
  gap: 10px !important;
  padding: 16px !important;
}

/* Modal de chamado: informacoes sempre legiveis e fechamento acessivel. */
#ticketModal .modal-ticket-info {
  background: #f8fbff !important;
  border: 1px solid rgba(173, 206, 225, .95) !important;
  color: #123047 !important;
}

#ticketModal .modal-ticket-info div,
#ticketModal .modal-ticket-info strong {
  color: #123047 !important;
}

#ticketModal .modal-ticket-info div {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  line-height: 1.45 !important;
}

#ticketModal #modalReadonlyClose {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
}

#ticketModal #modalReadonlyClose[hidden] {
  display: none !important;
}

/* Ajuste global: respiro padrao entre menu, conteudo e fundo. */
:root {
  --app-gap-final: 32px;
}

#appView.app-shell:not(.hidden-app) {
  width: min(1880px, calc(100vw - 56px)) !important;
  max-width: 1880px !important;
  gap: 32px !important;
  column-gap: 32px !important;
  margin: 16px auto 28px !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  gap: 14px !important;
}

/* Ajuste solicitado: menu, formulario e indicadores da tela de chamados. */
#appView.app-shell:not(.hidden-app) .side-nav {
  margin-top: 26px !important;
  gap: 18px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 62px !important;
  padding: 14px 16px !important;
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  width: 36px !important;
  height: 36px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .form-grid {
  padding-top: 34px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field {
  gap: 8px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field + .field {
  margin-top: 4px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .94), rgba(5, 22, 36, .94)) !important;
  border: 1px solid rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span {
  color: #b9d7e8 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong {
  color: #f4fbff !important;
}

/* Padrao visual JLX Tech aplicado nas demais telas. */
#appView.app-shell:not(.hidden-app) .tab-panel:not(#tab-operacao).active {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-usuarios,
#appView.app-shell:not(.hidden-app) #tab-admin-tools,
#appView.app-shell:not(.hidden-app) #tab-visitas,
#appView.app-shell:not(.hidden-app) #tab-relatorio {
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .content-area,
#appView.app-shell:not(.hidden-app) #tab-visitas .content-area {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-ticket-editor,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-box,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card {
  background:
    linear-gradient(135deg, rgba(21, 190, 174, .13), rgba(14, 165, 233, .08) 44%, transparent 74%),
    linear-gradient(180deg, rgba(8, 38, 58, .94), rgba(5, 22, 36, .94)) !important;
  border: 1px solid rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14) !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .card-header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .panel-title-row,
#appView.app-shell:not(.hidden-app) #tab-usuarios .card-header,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .card-header,
#appView.app-shell:not(.hidden-app) #tab-visitas .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header {
  background: rgba(8, 38, 58, .88) !important;
  border-bottom: 1px solid rgba(113, 184, 204, .34) !important;
  color: #eaf6ff !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard strong,
#appView.app-shell:not(.hidden-app) #tab-usuarios h2,
#appView.app-shell:not(.hidden-app) #tab-admin-tools h2,
#appView.app-shell:not(.hidden-app) #tab-visitas h2,
#appView.app-shell:not(.hidden-app) #tab-relatorio h2,
#appView.app-shell:not(.hidden-app) #tab-relatorio h3,
#appView.app-shell:not(.hidden-app) #tab-relatorio .stat-card strong {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard p,
#appView.app-shell:not(.hidden-app) #tab-dashboard small,
#appView.app-shell:not(.hidden-app) #tab-dashboard span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .eyebrow,
#appView.app-shell:not(.hidden-app) #tab-usuarios label,
#appView.app-shell:not(.hidden-app) #tab-usuarios small,
#appView.app-shell:not(.hidden-app) #tab-admin-tools label,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .muted,
#appView.app-shell:not(.hidden-app) #tab-visitas label,
#appView.app-shell:not(.hidden-app) #tab-visitas .check-option,
#appView.app-shell:not(.hidden-app) #tab-relatorio .muted,
#appView.app-shell:not(.hidden-app) #tab-relatorio .stat-card span,
#appView.app-shell:not(.hidden-app) #tab-relatorio .summary-item {
  color: #d5e8f4 !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-grid,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-row,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-grid,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-grid,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-toolbar,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-controls {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-grid,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-grid {
  padding-top: 34px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .field,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .field,
#appView.app-shell:not(.hidden-app) #tab-visitas .field {
  gap: 8px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios input,
#appView.app-shell:not(.hidden-app) #tab-usuarios select,
#appView.app-shell:not(.hidden-app) #tab-usuarios textarea,
#appView.app-shell:not(.hidden-app) #tab-admin-tools input,
#appView.app-shell:not(.hidden-app) #tab-admin-tools select,
#appView.app-shell:not(.hidden-app) #tab-admin-tools textarea,
#appView.app-shell:not(.hidden-app) #tab-visitas input,
#appView.app-shell:not(.hidden-app) #tab-visitas select,
#appView.app-shell:not(.hidden-app) #tab-visitas textarea,
#appView.app-shell:not(.hidden-app) #tab-relatorio select {
  background: #ffffff !important;
  border: 1px solid rgba(173, 206, 225, .95) !important;
  color: #123047 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90) !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios input::placeholder,
#appView.app-shell:not(.hidden-app) #tab-usuarios textarea::placeholder,
#appView.app-shell:not(.hidden-app) #tab-admin-tools input::placeholder,
#appView.app-shell:not(.hidden-app) #tab-admin-tools textarea::placeholder,
#appView.app-shell:not(.hidden-app) #tab-visitas input::placeholder,
#appView.app-shell:not(.hidden-app) #tab-visitas textarea::placeholder {
  color: #7893a6 !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll {
  background: transparent !important;
  padding: 0 10px 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios table,
#appView.app-shell:not(.hidden-app) #tab-visitas table,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios th,
#appView.app-shell:not(.hidden-app) #tab-visitas th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th {
  background: #eaf4fa !important;
  color: #075985 !important;
  border-bottom: 1px solid rgba(173, 206, 225, .95) !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios td,
#appView.app-shell:not(.hidden-app) #tab-visitas td,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td {
  background: #ffffff !important;
  color: #16384f !important;
  border-bottom: 1px solid rgba(203, 221, 232, .88) !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios tbody tr:hover td,
#appView.app-shell:not(.hidden-app) #tab-visitas tbody tr:hover td,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table tbody tr:hover td {
  background: #eef6fb !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .badge-count,
#appView.app-shell:not(.hidden-app) #tab-usuarios .badge-info,
#appView.app-shell:not(.hidden-app) #tab-usuarios .badge-count,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .badge-info,
#appView.app-shell:not(.hidden-app) #tab-visitas .badge-count,
#appView.app-shell:not(.hidden-app) #tab-relatorio .badge-count,
#appView.app-shell:not(.hidden-app) #tab-relatorio .badge-info {
  color: #075985 !important;
  background: #dff5fb !important;
  border: 1px solid rgba(14, 165, 216, .38) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row strong,
#appView.app-shell:not(.hidden-app) #tab-relatorio .summary-item strong,
#appView.app-shell:not(.hidden-app) #tab-relatorio .summary-item span {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours {
  margin: 0 20px 20px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
}

/* Chamados: numero do chamado legivel na primeira coluna. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td:nth-child(1) strong {
  color: #075985 !important;
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:hover td:nth-child(1) strong {
  color: #023047 !important;
}

/* Relatorio: numero e status com contraste forte. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table tbody td:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table tbody td:nth-child(2) strong,
.generated-report-table tbody td:nth-child(2),
.generated-report-table tbody td:nth-child(2) strong {
  color: #075985 !important;
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table tbody tr:hover td:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table tbody tr:hover td:nth-child(2) strong,
.generated-report-table tbody tr:hover td:nth-child(2),
.generated-report-table tbody tr:hover td:nth-child(2) strong {
  color: #023047 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table .badge.status-aberto,
.generated-report-table .badge.status-aberto {
  background: #dbeafe !important;
  border: 1px solid #93c5fd !important;
  color: #1d4ed8 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table .badge.status-aguardando-aprovacao,
.generated-report-table .badge.status-aguardando-aprovacao {
  background: #fef3c7 !important;
  border: 1px solid #f59e0b !important;
  color: #92400e !important;
}

/* Chamados: rolagem vertical apenas quando passar de 18 registros. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  max-height: 735px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  scrollbar-gutter: stable !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
}

/* Fundo do sistema: imagem mais relacionada a TI e infraestrutura. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(2, 12, 22, .62), rgba(2, 12, 22, .28) 42%, rgba(2, 12, 22, .58)),
    linear-gradient(180deg, rgba(2, 12, 22, .32), rgba(2, 12, 22, .68)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2600&q=88") center / cover fixed no-repeat !important;
  background-color: #071421 !important;
}

/* Header: data e usuario dentro de um bloco unico e mais legivel. */
#appView.app-shell:not(.hidden-app) .header {
  align-items: center !important;
  gap: 22px !important;
}

#appView.app-shell:not(.hidden-app) .header-right {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "user logout"
    "clock logout" !important;
  align-items: center !important;
  gap: 6px 12px !important;
  min-width: min(100%, 390px) !important;
  max-width: 430px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(148, 197, 220, .32) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(4, 31, 49, .76), rgba(8, 73, 96, .42)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 42px rgba(0, 0, 0, .14) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box {
  grid-area: clock !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: auto !important;
  padding: 0 !important;
  color: #bfeeff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

#appView.app-shell:not(.hidden-app) .user-box {
  grid-area: user !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: auto !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .user-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border: 2px solid rgba(255, 255, 255, .72) !important;
  background: linear-gradient(135deg, #2bd4ff, #0d8fb8) !important;
  box-shadow: 0 8px 18px rgba(6, 182, 212, .24) !important;
}

#appView.app-shell:not(.hidden-app) .user-text {
  gap: 1px !important;
}

#appView.app-shell:not(.hidden-app) .user-text strong {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

#appView.app-shell:not(.hidden-app) .user-text span {
  color: #9fe7ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

#appView.app-shell:not(.hidden-app) .header .link-btn {
  grid-area: logout !important;
  min-width: 54px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(180, 224, 244, .34) !important;
  border-radius: 12px !important;
}

#appView.app-shell:not(.hidden-app) .header .link-btn:hover {
  background: rgba(34, 211, 238, .20) !important;
  border-color: rgba(180, 224, 244, .58) !important;
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) .header-right {
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  #appView.app-shell:not(.hidden-app) .header-right {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "user"
      "clock"
      "logout" !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) .header .link-btn {
    width: 100% !important;
  }
}

/* Header: avatar maior e dados alinhados, sem caixa em volta. */
#appView.app-shell:not(.hidden-app) .header-right {
  display: grid !important;
  grid-template-columns: 58px minmax(220px, 1fr) auto !important;
  grid-template-areas:
    "avatar user logout"
    "avatar clock logout" !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 2px !important;
  min-width: min(100%, 420px) !important;
  max-width: 520px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .user-box {
  display: contents !important;
}

#appView.app-shell:not(.hidden-app) .user-avatar {
  grid-area: avatar !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  font-size: 14px !important;
  border: 2px solid rgba(255, 255, 255, .82) !important;
}

#appView.app-shell:not(.hidden-app) .user-text {
  grid-area: user !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
  align-self: end !important;
}

#appView.app-shell:not(.hidden-app) .user-text strong {
  font-size: 15px !important;
  line-height: 1.05 !important;
}

#appView.app-shell:not(.hidden-app) .user-text span {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

#appView.app-shell:not(.hidden-app) .clock-box {
  grid-area: clock !important;
  align-self: start !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  color: #e5f7ff !important;
}

#appView.app-shell:not(.hidden-app) .header .link-btn {
  grid-area: logout !important;
  align-self: center !important;
}

@media (max-width: 640px) {
  #appView.app-shell:not(.hidden-app) .header-right {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-areas:
      "avatar user"
      "avatar clock"
      "logout logout" !important;
    width: 100% !important;
  }
}

/* Refinamento final: avatar 3D sem aro e titulos sem linha/faixa. */
#appView.app-shell:not(.hidden-app) .header-right {
  grid-template-columns: 64px minmax(220px, 1fr) auto !important;
}

#appView.app-shell:not(.hidden-app) .user-avatar {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .72) 0 8%, transparent 28%),
    linear-gradient(145deg, #42d9ff 0%, #14aed6 46%, #087ea2 100%) !important;
  box-shadow:
    inset 4px 5px 9px rgba(255, 255, 255, .30),
    inset -7px -8px 12px rgba(2, 69, 94, .54),
    0 12px 18px rgba(0, 0, 0, .30),
    0 3px 0 rgba(2, 69, 94, .62) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 3px rgba(0, 65, 88, .55) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .panel-title-row {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .panel-title-row h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3 {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  #appView.app-shell:not(.hidden-app) .header-right {
    grid-template-columns: 60px minmax(0, 1fr) !important;
  }
}

/* Usuarios: titulo inteiro e orientacao fora da pilula do cabecalho. */
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header {
  display: block !important;
  padding: 22px 22px 8px !important;
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header h2 {
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 23px !important;
  line-height: 1.12 !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-profile-note {
  margin: 0 22px 10px !important;
  padding: 0 !important;
  max-width: 260px !important;
  color: #bfeeff !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .form-grid {
  padding-top: 18px !important;
}

/* Menu lateral: marca e rodape sem retangulos. */
#appView.app-shell:not(.hidden-app) .side-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 1px !important;
  padding: 20px 10px 18px !important;
  margin: 0 0 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(180, 224, 244, .18) !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .side-brand::before {
  content: "JLX TECH" !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42) !important;
}

#appView.app-shell:not(.hidden-app) .side-brand::after {
  content: "TECNOLOGIA" !important;
  color: #bfeeff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .28em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .38) !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  display: grid !important;
  gap: 4px !important;
  padding: 0 8px 4px !important;
  margin: auto 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .42) !important;
}

#appView.app-shell:not(.hidden-app) .side-footer small {
  color: #bfeeff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .38) !important;
}

/* Menu lateral: simbolo da marca junto do nome, sem fundo branco. */
#appView.app-shell:not(.hidden-app) .side-brand {
  grid-template-columns: 38px auto !important;
  grid-template-rows: auto !important;
  justify-content: center !important;
  align-items: center !important;
  column-gap: 8px !important;
  padding: 20px 8px 18px !important;
}

#appView.app-shell:not(.hidden-app) .side-brand::before,
#appView.app-shell:not(.hidden-app) .side-brand::after {
  content: none !important;
  display: none !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-mark {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .34)) !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-mark svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

#appView.app-shell:not(.hidden-app) .side-mark-shell,
#appView.app-shell:not(.hidden-app) .side-mark-m {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#appView.app-shell:not(.hidden-app) .side-mark-shell {
  stroke-width: 6 !important;
}

#appView.app-shell:not(.hidden-app) .side-mark-m {
  stroke-width: 7 !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-text {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-text strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42) !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-text small {
  color: #bfeeff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .22em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .38) !important;
}

/* Visitas: responsaveis e codigo sempre legiveis. */
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles {
  background: #ffffff !important;
  border: 1px solid rgba(173, 206, 225, .95) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90) !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles .check-option {
  color: #123047 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles input {
  accent-color: #0ea5d8 !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap tbody td:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap tbody td:nth-child(1) strong {
  color: #075985 !important;
  font-weight: 950 !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap tbody td:nth-child(2) {
  color: #123047 !important;
  font-weight: 850 !important;
}

/* Visitas: painel menos branco e tabela sem quebra, exceto descricao. */
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles {
  background:
    linear-gradient(180deg, rgba(232, 247, 252, .98), rgba(214, 235, 244, .96)) !important;
  border: 1px solid rgba(113, 184, 204, .42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 10px 20px rgba(2, 20, 34, .10) !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap {
  overflow-x: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td {
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:not(:nth-child(8)),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:not(:nth-child(8)) {
  width: auto !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td.ellipsis-cell:not(:nth-child(8)) {
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(8) {
  width: 210px !important;
  max-width: 210px !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(8) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Visitas: espacamento padrao entre formulario e tabela. */
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  grid-template-columns: 276px minmax(0, 1fr) !important;
  gap: 14px !important;
  column-gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
  width: 100% !important;
  max-width: 276px !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .content-area,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card {
  margin-left: 0 !important;
  min-width: 0 !important;
}

/* Dashboard: area interna do grafico clara para destacar meses e valores. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(231, 242, 248, .96)) !important;
  border: 1px solid rgba(160, 190, 208, .78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 12px 24px rgba(2, 20, 34, .14) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Dashboard: legenda do grafico mensal visivel no painel escuro. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 8px 18px 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(180, 224, 244, .20) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend .legend-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16) !important;
}

/* Dashboard: legenda sem retangulos, apenas cor e texto. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend {
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend .legend-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) !important;
}

/* Dashboard: remove faixa azul clara no topo dos indicadores. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
  border-top: 1px solid rgba(113, 184, 204, .34) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* Chamados: botoes do formulario mais baixos e centralizados. */
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding-top: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  min-width: 112px !important;
}

/* Usuarios e visitas: mesmo alinhamento dos botoes do formulario. */
#appView.app-shell:not(.hidden-app) #tab-usuarios #userForm .actions,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions {
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding-top: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions .btn {
  min-width: 112px !important;
}

/* Usuarios e administracao: mais respiro nos botoes. */
#appView.app-shell:not(.hidden-app) #tab-usuarios #userForm .actions {
  margin-top: 28px !important;
  padding-top: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-row {
  gap: 18px !important;
  align-items: end !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-actions,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-actions {
  padding-top: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions {
  margin-top: 28px !important;
  padding-top: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-actions .btn,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions .btn {
  min-width: 128px !important;
}

/* Menu lateral: versao no rodape acompanhando a altura do menu. */
#appView.app-shell:not(.hidden-app) .side-menu {
  display: flex !important;
  flex-direction: column !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  padding-bottom: 0 !important;
  margin-bottom: 24px !important;
  flex: 0 0 auto !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  position: static !important;
  margin-top: auto !important;
  flex: 0 0 auto !important;
}

/* Relatorio gerado: aparencia de documento formal. */
.generated-report-backdrop {
  background: rgba(2, 14, 25, .72) !important;
  backdrop-filter: blur(8px) !important;
}

.generated-report-shell {
  width: min(96vw, 1320px) !important;
  height: min(94vh, 900px) !important;
  border-radius: 12px !important;
  background: #e8edf2 !important;
  border: 1px solid rgba(188, 199, 211, .9) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36) !important;
}

.generated-report-topbar {
  min-height: 58px !important;
  padding: 10px 16px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #d4dce5 !important;
}

.generated-report-topbar strong {
  color: #0b2f48 !important;
  font-size: 15px !important;
}

.generated-report-topbar span {
  color: #64748b !important;
  font-size: 12px !important;
}

.generated-report-scroll {
  padding: 26px !important;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
    #dfe6ed !important;
  background-size: 24px 24px !important;
}

.generated-report-sheet {
  width: min(100%, 1180px) !important;
  margin: 0 auto !important;
  padding: 38px 42px 34px !important;
  display: block !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 4px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 18px 42px rgba(15, 23, 42, .18) !important;
  color: #172033 !important;
}

.generated-report-header {
  display: grid !important;
  grid-template-columns: minmax(405px, .8fr) minmax(645px, 1.2fr) !important;
  gap: 18px !important;
  align-items: center !important;
  padding-bottom: 18px !important;
  border-bottom: 3px solid #0b3a56 !important;
}

.generated-report-brand {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

.generated-report-logo {
  width: 148px !important;
  max-height: 54px !important;
  object-fit: contain !important;
}

.generated-report-summary span {
  display: block !important;
  color: #0d6f98 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.generated-report-brand h2 {
  margin: 0 !important;
  color: #082a40 !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.generated-report-brand p {
  max-width: 560px !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.generated-report-meta {
  display: grid !important;
  grid-template-columns: 115px 160px 155px minmax(205px, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.generated-report-meta div {
  min-width: 0 !important;
  padding: 12px 9px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.generated-report-meta div + div {
  border-left: 1px solid #cbd5e1 !important;
}

.generated-report-meta span,
.generated-kpi-card span,
.generated-panel-title,
.generated-report-footer span {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.generated-report-meta strong {
  color: #0f2638 !important;
  font-size: 10.4px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.generated-report-summary {
  margin: 18px 0 16px !important;
  padding: 14px 18px !important;
  background: #f8fafc !important;
  border-left: 4px solid #0d6f98 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.generated-report-summary p {
  margin-top: 6px !important;
  color: #334155 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.generated-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 18px 0 18px !important;
  border-top: 1px solid #cbd5e1 !important;
  border-left: 1px solid #cbd5e1 !important;
}

.generated-kpi-card {
  min-height: 78px !important;
  padding: 14px 16px !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.generated-kpi-card::before {
  content: none !important;
}

.generated-kpi-card strong {
  color: #082a40 !important;
  font-size: 23px !important;
  line-height: 1.15 !important;
  margin-top: 5px !important;
}

.generated-summary-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.generated-panel {
  padding: 16px 18px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.generated-panel-title {
  padding-bottom: 8px !important;
  border-bottom: 1px solid #dbe4ee !important;
  color: #0b3a56 !important;
}

.generated-summary-list {
  gap: 0 !important;
  margin-top: 4px !important;
}

.generated-summary-item {
  min-height: 34px !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.generated-summary-item strong {
  color: #0b3a56 !important;
  font-size: 15px !important;
}

.generated-table-panel {
  padding: 0 !important;
  overflow: visible !important;
}

.generated-table-header {
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.generated-table-header h3 {
  color: #082a40 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.generated-table-wrap {
  overflow: visible !important;
}

.generated-report-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
}

.generated-report-table th,
.generated-report-table td {
  padding: 9px 7px !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1f2937 !important;
  font-size: 10.5px !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  vertical-align: top !important;
}

.generated-report-table th {
  position: static !important;
  background: #eaf2f7 !important;
  color: #0b3a56 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.generated-report-table tbody tr:nth-child(even) {
  background: #fbfdff !important;
}

.generated-report-table tbody tr:hover {
  background: inherit !important;
}

.generated-report-table .badge {
  border-radius: 999px !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: normal !important;
}

.generated-report-table th:nth-child(1), .generated-report-table td:nth-child(1) { width: 5.2% !important; }
.generated-report-table th:nth-child(2), .generated-report-table td:nth-child(2) { width: 5.2% !important; }
.generated-report-table th:nth-child(3), .generated-report-table td:nth-child(3) { width: 9% !important; }
.generated-report-table th:nth-child(4), .generated-report-table td:nth-child(4) { width: 8.8% !important; }
.generated-report-table th:nth-child(5), .generated-report-table td:nth-child(5) { width: 8.2% !important; }
.generated-report-table th:nth-child(6), .generated-report-table td:nth-child(6) { width: 8.2% !important; }
.generated-report-table th:nth-child(7), .generated-report-table td:nth-child(7) { width: 8.2% !important; }
.generated-report-table th:nth-child(8), .generated-report-table td:nth-child(8) { width: 6.8% !important; }
.generated-report-table th:nth-child(9), .generated-report-table td:nth-child(9) { width: 7% !important; }
.generated-report-table th:nth-child(10), .generated-report-table td:nth-child(10) { width: 8.5% !important; }
.generated-report-table th:nth-child(11), .generated-report-table td:nth-child(11) { width: 8.5% !important; }
.generated-report-table th:nth-child(12), .generated-report-table td:nth-child(12) { width: 8.4% !important; }
.generated-report-table th:nth-child(13), .generated-report-table td:nth-child(13) { width: 11% !important; }

.generated-report-footer {
  margin-top: 18px !important;
  padding: 16px 18px !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.generated-report-footer strong {
  color: #082a40 !important;
  font-size: 27px !important;
}

@media (max-width: 980px) {
  .generated-report-header,
  .generated-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .generated-report-meta,
  .generated-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .generated-report-meta div + div {
    border-left: 0 !important;
    border-top: 1px solid #cbd5e1 !important;
  }
}

@media print {
  .generated-report-backdrop,
  .generated-report-shell,
  .generated-report-scroll,
  .generated-report-sheet {
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .generated-report-sheet {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .generated-report-header,
  .generated-report-summary,
  .generated-kpi-grid,
  .generated-summary-grid,
  .generated-panel,
  .generated-report-footer {
    break-inside: avoid !important;
  }

  .generated-report-table th,
  .generated-report-table td {
    font-size: 8.6px !important;
    padding: 5px 4px !important;
  }

  .generated-report-table th {
    font-size: 7.6px !important;
  }
}

/* Status finalizado/concluido: destaque verde igual ao cartao de detalhes. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table .badge.status-finalizado,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-hover-card .badge.status-finalizado,
.generated-report-table .badge.status-finalizado,
.badge.status-finalizado {
  background: #bbf7d0 !important;
  color: #047857 !important;
  border: 1px solid #86efac !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .12) inset, 0 6px 12px rgba(4, 120, 87, .12) !important;
  filter: none !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

/* Chamados: descricao e acao tomada com area maior e mais apresentavel. */
#appView.app-shell:not(.hidden-app) #tab-operacao #description {
  min-height: 158px !important;
  height: 158px !important;
  resize: vertical !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas #visitDescription {
  min-height: 158px !important;
  height: 158px !important;
  resize: vertical !important;
}

#ticketModal #modalActionTaken {
  min-height: 230px !important;
  height: 230px !important;
  resize: vertical !important;
}

/* Dashboard: indicador e grafico com status em aprovacao separado. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .kpi-dot.approval,
.kpi-dot.approval {
  background: linear-gradient(135deg, #2dd4bf, #0f766e) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .chart-approval,
.chart-approval {
  background: #14b8a6 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard #dashBarOpen,
.bar-open {
  background: linear-gradient(90deg, #22c55e, #16a34a) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard #dashBarProgress,
.bar-progress {
  background: linear-gradient(90deg, #fbbf24, #f59e0b) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard #dashBarApproval,
.bar-approval {
  background: linear-gradient(90deg, #2dd4bf, #14b8a6) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard #dashBarDone,
.bar-done {
  background: linear-gradient(90deg, #60a5fa, #3b82f6) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard #dashBarCanceled,
.bar-canceled {
  background: linear-gradient(90deg, #fb7185, #ef4444) !important;
}

/* Relatorio mensal: paineis de resumo na cor do sistema. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .report-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(34, 211, 238, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 24px rgba(2, 20, 34, .14) !important;
  color: #123047 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .report-box h3 {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(8, 60, 75, .96) 0%, rgba(4, 39, 58, .98) 100%) !important;
  border-bottom: 1px solid rgba(34, 211, 238, .34) !important;
  margin: 0 !important;
  padding: 16px 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .summary-item {
  border-bottom: 1px dashed rgba(173, 206, 225, .95) !important;
  color: #16384f !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .summary-item span {
  color: #16384f !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .summary-item strong {
  color: #075985 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .summary-list {
  padding: 12px 18px 16px !important;
  margin-top: 0 !important;
  background: transparent !important;
}

/* ===== TEMA PREMIUM SUAVE - AZUL PETROLEO JLX TECH ===== */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(7, 29, 42, .50), rgba(7, 29, 42, .22) 44%, rgba(7, 29, 42, .48)),
    linear-gradient(180deg, rgba(7, 29, 42, .24), rgba(7, 29, 42, .44)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
  background-color: #071d2a !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .report-total-hours {
  background:
    linear-gradient(135deg, rgba(32, 184, 214, .10), rgba(15, 52, 66, .08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(18, 63, 80, .90), rgba(12, 43, 58, .88)) !important;
  border-color: rgba(82, 177, 195, .38) !important;
  box-shadow: 0 18px 42px rgba(2, 12, 22, .20), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(180deg, rgba(19, 75, 92, .94), rgba(8, 33, 49, .94)),
    linear-gradient(135deg, rgba(32, 184, 214, .12), transparent 58%) !important;
}

#appView.app-shell:not(.hidden-app) .header {
  background:
    radial-gradient(circle at 86% 18%, rgba(32, 184, 214, .18), transparent 34%),
    linear-gradient(135deg, rgba(20, 78, 96, .92), rgba(11, 40, 58, .88)) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi {
  background:
    linear-gradient(135deg, rgba(32, 184, 214, .11), transparent 54%),
    linear-gradient(180deg, rgba(20, 70, 89, .92), rgba(11, 39, 56, .90)) !important;
}

#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  background:
    linear-gradient(135deg, rgba(32, 184, 214, .08), transparent 58%),
    linear-gradient(180deg, rgba(18, 63, 80, .88), rgba(10, 37, 54, .86)) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  background: linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(231, 242, 248, .96)) !important;
  border-color: rgba(203, 219, 230, .95) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) strong,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong {
  color: #f4fbff !important;
  text-shadow: 0 1px 0 rgba(2, 12, 22, .20) !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #c7d8e3 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-info,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) #dashboardChartInfo {
  color: #0f3442 !important;
  background: #dff7fb !important;
  border: 1px solid rgba(32, 184, 214, .45) !important;
}

#appView.app-shell:not(.hidden-app) .btn-primary,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .side-shortcut.active {
  background: linear-gradient(135deg, #20b8d6, #168eb0) !important;
  box-shadow: 0 14px 26px rgba(24, 168, 201, .20) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn,
#appView.app-shell:not(.hidden-app) .side-shortcut {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(172, 215, 226, .20) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:hover,
#appView.app-shell:not(.hidden-app) .side-shortcut:hover {
  background: rgba(32, 184, 214, .18) !important;
  border-color: rgba(32, 184, 214, .38) !important;
}

#appView.app-shell:not(.hidden-app) .side-icon,
#appView.app-shell:not(.hidden-app) .side-shortcut b {
  background: rgba(255, 255, 255, .16) !important;
}

#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  background: #f8fbff !important;
  color: #102638 !important;
  border-color: rgba(198, 219, 232, .95) !important;
}

#appView.app-shell:not(.hidden-app) .field input:focus,
#appView.app-shell:not(.hidden-app) .field select:focus,
#appView.app-shell:not(.hidden-app) .field textarea:focus,
#appView.app-shell:not(.hidden-app) input:focus,
#appView.app-shell:not(.hidden-app) select:focus,
#appView.app-shell:not(.hidden-app) textarea:focus {
  border-color: #20b8d6 !important;
  box-shadow: 0 0 0 4px rgba(32, 184, 214, .18) !important;
}

#appView.app-shell:not(.hidden-app) th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-usuarios th,
#appView.app-shell:not(.hidden-app) #tab-visitas th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th {
  background: #e8f4f8 !important;
  color: #0f3442 !important;
}

#appView.app-shell:not(.hidden-app) td,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td,
#appView.app-shell:not(.hidden-app) #tab-usuarios td,
#appView.app-shell:not(.hidden-app) #tab-visitas td,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td {
  background: #ffffff !important;
  color: #173044 !important;
  border-bottom-color: #d8e7ef !important;
}

#appView.app-shell:not(.hidden-app) tbody tr:hover td {
  background: #eef8fb !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  background: #123f50 !important;
}

/* ===== LAYOUT CENTRALIZADO NA PROPORCAO DO SISTEMA ===== */
#appView.app-shell:not(.hidden-app) {
  width: min(max(1500px, 70vw), calc(100vw - 32px), 1700px) !important;
  max-width: 1700px !important;
  min-width: 0 !important;
  min-height: auto !important;
  grid-template-columns: 210px minmax(0, 1fr) !important;
  gap: 18px !important;
  column-gap: 18px !important;
  margin: 14px auto 28px !important;
  transform: none !important;
  zoom: 1 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 210px !important;
  min-width: 210px !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container,
#appView.app-shell:not(.hidden-app) .tab-panel.active,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-operacao {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) .header {
  min-height: 116px !important;
  padding: 22px 30px !important;
}

#appView.app-shell:not(.hidden-app) .header h1 {
  font-size: 34px !important;
  line-height: 1.05 !important;
}

#appView.app-shell:not(.hidden-app) .header p {
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 56px !important;
  font-size: 12px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  padding: 11px 12px !important;
  overflow: visible !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span,
#appView.app-shell:not(.hidden-app) .side-footer small {
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .side-footer small {
  font-size: 9px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2 {
  font-size: 28px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
  min-height: 82px !important;
  padding: 14px 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi strong {
  font-size: 30px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi span {
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi small {
  font-size: 10px !important;
  line-height: 1.15 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  grid-template-columns: minmax(0, 1.34fr) minmax(0, .96fr) minmax(170px, .42fr) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  padding: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3 {
  font-size: 22px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card strong {
  font-size: 26px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  height: 300px !important;
  min-height: 300px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(280px, 305px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td {
  font-size: 12px !important;
  line-height: 1.28 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th {
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .field label,
#appView.app-shell:not(.hidden-app) #tab-operacao .helper-text {
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .field textarea {
  font-size: 14px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 12px !important;
    column-gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 190px !important;
    min-width: 190px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .header {
    min-height: 108px !important;
    padding: 20px 26px !important;
  }

  #appView.app-shell:not(.hidden-app) .header h1 {
    font-size: 31px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
    min-height: 76px !important;
    padding: 12px 14px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi strong {
    font-size: 28px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .95fr) minmax(160px, .42fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
    height: 260px !important;
    min-height: 260px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 16px) !important;
    grid-template-columns: 140px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 140px !important;
    min-width: 140px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid,
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }
}

/* ===== TABELA DE CHAMADOS LEGIVEL EM NOTEBOOKS E MONITORES MENORES ===== */
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable both-edges;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 1760px !important;
  min-width: 1760px !important;
  table-layout: fixed !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td {
  font-size: 12px !important;
  line-height: 1.3 !important;
  padding: 10px 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) strong {
  display: inline-block !important;
  min-width: 54px !important;
  color: #075985 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) {
  width: 130px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) {
  width: 190px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) {
  width: 125px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) {
  width: 190px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) {
  width: 110px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) {
  width: 170px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) {
  width: 170px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) {
  width: 135px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) {
  width: 190px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) {
  width: 270px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  max-width: none !important;
  font-size: 11px !important;
  padding: 5px 9px !important;
}

@media (max-width: 1900px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: minmax(280px, 305px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1360px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   V15 - EXPANSÃO ATÉ A MARCA VERMELHA + SEM BARRA HORIZONTAL
   Painel de chamados usa mais largura útil e todas as colunas aparecem.
   ========================================================== */
:root {
  --system-max-width-final: 1900px !important;
  --side-width-final: 154px !important;
}

html,
body {
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 24px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  margin-inline: auto !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
}

.app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#tab-operacao .layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#tab-operacao .form-card {
  max-width: 300px !important;
}

#tab-operacao .content-area,
#tab-operacao .table-card,
#tab-operacao .table-card .table-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
}

#tab-operacao .table-card {
  overflow: hidden !important;
}

#tab-operacao .table-card .table-wrap {
  width: 100% !important;
  max-height: 720px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 10px 12px !important;
  margin: 14px !important;
  scrollbar-gutter: stable;
}

#tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#tab-operacao .table-card th,
#tab-operacao .table-card td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  font-size: 11px !important;
  line-height: 1.22 !important;
  padding: 9px 5px !important;
}

#tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #f5f8fc !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
}

#tab-operacao .table-card .badge {
  max-width: 100% !important;
  font-size: 10px !important;
  padding: 4px 7px !important;
}

#tab-operacao .table-card th:nth-child(1),
#tab-operacao .table-card td:nth-child(1) { width: 5% !important; }
#tab-operacao .table-card th:nth-child(2),
#tab-operacao .table-card td:nth-child(2) { width: 9% !important; }
#tab-operacao .table-card th:nth-child(3),
#tab-operacao .table-card td:nth-child(3) { width: 13% !important; }
#tab-operacao .table-card th:nth-child(4),
#tab-operacao .table-card td:nth-child(4) { width: 7% !important; }
#tab-operacao .table-card th:nth-child(5),
#tab-operacao .table-card td:nth-child(5) { width: 13% !important; }
#tab-operacao .table-card th:nth-child(6),
#tab-operacao .table-card td:nth-child(6) { width: 7% !important; }
#tab-operacao .table-card th:nth-child(7),
#tab-operacao .table-card td:nth-child(7) { width: 11% !important; }
#tab-operacao .table-card th:nth-child(8),
#tab-operacao .table-card td:nth-child(8) { width: 12% !important; }
#tab-operacao .table-card th:nth-child(9),
#tab-operacao .table-card td:nth-child(9) { width: 10% !important; }
#tab-operacao .table-card th:nth-child(10),
#tab-operacao .table-card td:nth-child(10) { width: 10% !important; }
#tab-operacao .table-card th:nth-child(11),
#tab-operacao .table-card td:nth-child(11) { width: 13% !important; }

/* Em telas menores, mantém o sistema usável: formulário sobe e a tabela continua sem barra horizontal. */
@media (max-width: 1450px) {
  #tab-operacao .layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }

  #tab-operacao .form-card {
    max-width: 260px !important;
  }

  #tab-operacao .table-card th,
  #tab-operacao .table-card td {
    font-size: 10px !important;
    padding: 8px 4px !important;
  }

  #tab-operacao .table-card thead th,
  #tab-operacao .table-card .badge {
    font-size: 9px !important;
  }
}

@media (max-width: 1180px) {
  #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }

  #tab-operacao .form-card {
    max-width: none !important;
  }
}


/* ===== AJUSTE FINAL DO ESPAÇO ENTRE MENU E CONTEÚDO =====
   Evita qualquer sobreposição do menu lateral sobre o cabeçalho
   e mantém o mesmo respiro visual padrão do restante do sistema. */
:root {
  --side-width-final: 178px !important;   /* coluna reservada para o menu + respiro */
  --menu-real-width-final: 154px !important;
  --app-gap-final: 22px !important;       /* espaço padrão entre menu e conteúdo */
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 24px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: var(--app-gap-final) !important;
  column-gap: var(--app-gap-final) !important;
  align-items: stretch !important;
}

.side-menu {
  width: var(--menu-real-width-final) !important;
  min-width: var(--menu-real-width-final) !important;
  justify-self: start !important;
}

.app-main.container {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(12px, 1.1vw, 22px) !important;
}

.header,
.top-actions,
.tab-panel.active,
#tab-dashboard,
#tab-operacao,
#tab-visitas,
#tab-relatorio,
#tab-usuarios,
#tab-admin-tools {
  margin-left: 0 !important;
}

@media (max-width: 1720px) {
  :root {
    --side-width-final: 150px !important;
    --menu-real-width-final: 132px !important;
    --app-gap-final: 18px !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 92px !important;
    --menu-real-width-final: 78px !important;
    --app-gap-final: 14px !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .side-menu {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ===== AJUSTE V3: ESPAÇAMENTO PADRÃO MAIS AMPLO ENTRE MENU E CONTEÚDO =====
   Objetivo: deixar o conteúdo mais afastado do menu lateral,
   no mesmo padrão de respiro visual do restante do layout. */
:root {
  --side-width-final: 210px !important;        /* área reservada total à esquerda */
  --menu-real-width-final: 154px !important;   /* largura real do menu */
  --app-gap-final: 30px !important;            /* espaço padrão entre menu e conteúdo */
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 24px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: var(--app-gap-final) !important;
  column-gap: var(--app-gap-final) !important;
  align-items: stretch !important;
}

.side-menu {
  width: var(--menu-real-width-final) !important;
  min-width: var(--menu-real-width-final) !important;
  justify-self: start !important;
}

.app-main.container {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(12px, 1.1vw, 22px) !important;
  padding-left: 10px !important;
}

.header,
.top-actions,
.tab-panel.active,
#tab-dashboard,
#tab-operacao,
#tab-visitas,
#tab-relatorio,
#tab-usuarios,
#tab-admin-tools,
#tab-dashboard .dashboard-hero,
#tab-dashboard .dashboard-kpi-grid,
#tab-dashboard .dashboard-executive-grid,
#tab-dashboard .dashboard-chart-panel {
  margin-left: 0 !important;
}

@media (max-width: 1720px) {
  :root {
    --side-width-final: 180px !important;
    --menu-real-width-final: 132px !important;
    --app-gap-final: 24px !important;
  }

  .app-main.container {
    padding-left: 8px !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --side-width-final: 100px !important;
    --menu-real-width-final: 78px !important;
    --app-gap-final: 16px !important;
  }

  .app-main.container {
    padding-left: 0 !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .side-menu {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ===== AJUSTE V4: SEM BARRA HORIZONTAL NO PAINEL DE CHAMADOS =====
   Objetivo: fazer todas as colunas aparecerem sem rolagem horizontal. */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(255px, 270px) minmax(0, 1fr) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  max-width: 270px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  width: auto !important;
  margin: 12px !important;
  padding: 0 8px 12px !important;
  max-height: 720px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  vertical-align: middle !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #f5f8fc !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  padding: 8px 4px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 10px !important;
  padding: 8px 4px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  max-width: 100% !important;
  font-size: 9px !important;
  padding: 4px 6px !important;
}

/* Soma das colunas = 100% para não gerar rolagem horizontal */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1)  { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2)  { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3)  { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4)  { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5)  { width: 14% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6)  { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7)  { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8)  { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9)  { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) { width: 6% !important; }

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: minmax(240px, 255px) minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: 255px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
    font-size: 8.5px !important;
    padding: 7px 3px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
    font-size: 9.5px !important;
    padding: 7px 3px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: none !important;
  }
}

/* ===== MENU PRINCIPAL MAIS ESTREITO ===== */
#appView.app-shell:not(.hidden-app) {
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  padding-inline: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  max-width: 128px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
  gap: 10px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  font-size: 10px !important;
}

/* ===== USUARIOS E VISITAS: FORMULARIOS COMPACTOS COMO CHAMADOS ===== */
#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
  width: 220px !important;
  max-width: 220px !important;
  padding: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header {
  gap: 8px !important;
  align-items: flex-start !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header h2,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header h2 {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

#appView.app-shell:not(.hidden-app) #userForm,
#appView.app-shell:not(.hidden-app) #visitForm {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #userForm .field,
#appView.app-shell:not(.hidden-app) #userForm .field.full,
#appView.app-shell:not(.hidden-app) #userForm .actions.full,
#appView.app-shell:not(.hidden-app) #visitForm .field,
#appView.app-shell:not(.hidden-app) #visitForm .field.full,
#appView.app-shell:not(.hidden-app) #visitForm .actions.full {
  grid-column: 1 / -1 !important;
}

#appView.app-shell:not(.hidden-app) #userForm .field input,
#appView.app-shell:not(.hidden-app) #userForm .field select,
#appView.app-shell:not(.hidden-app) #userForm .field textarea,
#appView.app-shell:not(.hidden-app) #visitForm .field input,
#appView.app-shell:not(.hidden-app) #visitForm .field select,
#appView.app-shell:not(.hidden-app) #visitForm .field textarea {
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 10px !important;
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) #visitForm .checkbox-group {
  gap: 8px !important;
}

#appView.app-shell:not(.hidden-app) #visitForm .check-option {
  align-items: flex-start !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

#appView.app-shell:not(.hidden-app) #visitForm .field textarea {
  min-height: 120px !important;
}

#appView.app-shell:not(.hidden-app) #userForm .actions,
#appView.app-shell:not(.hidden-app) #visitForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #visitForm .actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 160px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 210px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
  #appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
    width: 210px !important;
    max-width: 210px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
  #appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== OVERRIDE FINAL: MENU LEGIVEL, ABRIR CHAMADO E RESPONSAVEIS ===== */
#appView.app-shell:not(.hidden-app) .side-nav-btn {
  gap: 4px !important;
  padding: 0 5px !important;
  font-size: 11.2px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  font-size: 10px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 11.2px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: grid !important;
  grid-template-columns: 82px 76px !important;
  gap: 6px !important;
  justify-content: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  width: 82px !important;
  max-width: 82px !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 4px !important;
  font-size: 9.6px !important;
  line-height: 1.02 !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles .check-option {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  background: rgba(248, 250, 252, .96) !important;
  border: 1px solid rgba(216, 226, 238, .95) !important;
  color: #082f49 !important;
  font-size: 10.2px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles .check-option input[type="checkbox"] {
  appearance: auto !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  accent-color: #13a9c9 !important;
}

/* ===== AJUSTE FINAL ABSOLUTO: TEXTO CABENDO E ACOES PADRONIZADAS ===== */
#appView.app-shell:not(.hidden-app) .side-nav-btn {
  gap: 5px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #userForm .actions,
#appView.app-shell:not(.hidden-app) #visitForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  column-gap: 6px !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #visitForm .actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #tab-usuarios #userForm .actions,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 88px)) !important;
  gap: 6px !important;
  column-gap: 6px !important;
  justify-content: start !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #tab-usuarios #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions .btn {
  width: 88px !important;
  min-width: 0 !important;
  max-width: 88px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell {
  display: flex !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  min-width: 52px !important;
  min-height: 28px !important;
  padding: 6px 7px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-delete-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn {
  background: #f8fafc !important;
  color: #082f49 !important;
  border: 1px solid #d8e2ee !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-usuarios table td:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table td:last-child {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  overflow: hidden !important;
}

/* ===== AJUSTE FINO: MENU, BOTOES COMPACTOS E ACOES DE TABELA ===== */
#appView.app-shell:not(.hidden-app) .side-nav-btn {
  gap: 6px !important;
  padding: 0 6px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #userForm .actions,
#appView.app-shell:not(.hidden-app) #visitForm .actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #visitForm .actions .btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell {
  min-width: 0 !important;
  width: 100% !important;
  gap: 6px !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  min-width: 54px !important;
  min-height: 28px !important;
  padding: 6px 8px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-delete-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn {
  background: #f8fafc !important;
  color: #082f49 !important;
  border: 1px solid #d8e2ee !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-usuarios table td:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table td:last-child {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  overflow: hidden !important;
}

/* Ajuste final de legibilidade da tela de chamados. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2 {
  font-size: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field textarea {
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 12px !important;
  line-height: 1.35 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  padding: 5px 7px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
    font-size: 10.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
    font-size: 11.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
    font-size: 10px !important;
  }
}

/* ===== CAMADA RESPONSIVA FINAL =====
   Mantem a mesma estrutura e adapta o layout a monitores, notebooks,
   tablets e celulares sem cortar conteudo. */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) * {
  box-sizing: border-box !important;
  min-width: 0;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 16px), 2200px) !important;
  max-width: 2200px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 12px 12px 12px 0 !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .top-actions,
#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .panel-title-row {
  flex-wrap: wrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(190px, .45fr) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(300px, 320px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  width: 100% !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field.full,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions.full {
  grid-column: 1 / -1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  justify-content: stretch !important;
  align-items: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(145px, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: fixed !important;
}

@media (min-width: 1800px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(calc(100vw - 32px), 2300px) !important;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: minmax(320px, 340px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 12px) !important;
    grid-template-columns: minmax(136px, 160px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: minmax(290px, 300px) minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
    grid-column: 1 / -1 !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn {
    justify-content: center !important;
    padding-inline: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-sync-pill,
  #appView.app-shell:not(.hidden-app) .side-brand-text {
    display: none !important;
  }

  #appView.app-shell:not(.hidden-app) .header,
  #appView.app-shell:not(.hidden-app) .header-right {
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: none !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
    min-width: 1040px !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100% !important;
    display: block !important;
    padding: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 100% !important;
    min-height: auto !important;
    margin-bottom: 10px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-brand-text {
    display: inline !important;
  }

  #appView.app-shell:not(.hidden-app) .app-main.container {
    padding: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .header,
  #appView.app-shell:not(.hidden-app) .brand-block,
  #appView.app-shell:not(.hidden-app) .header-right,
  #appView.app-shell:not(.hidden-app) .top-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid,
  #appView.app-shell:not(.hidden-app) .stats-grid,
  #appView.app-shell:not(.hidden-app) .performance-grid,
  #appView.app-shell:not(.hidden-app) .report-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm,
  #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
    min-width: 980px !important;
  }
}

@media (max-width: 480px) {
  #appView.app-shell:not(.hidden-app) .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
    grid-template-columns: 1fr !important;
  }
}

/* Formulario de chamados: coluna maior para os botoes caberem corretamente. */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  max-width: 300px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: stretch !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  padding-inline: 12px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

@media (max-width: 1750px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 290px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: 290px !important;
  }
}

/* Formulario de chamados: botoes lado a lado. */
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 112px !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
}

/* Ajuste de legibilidade da tela de chamados. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2 {
  font-size: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field textarea {
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 12px !important;
  line-height: 1.35 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  padding: 5px 7px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
    font-size: 10.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
    font-size: 11.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
    font-size: 10px !important;
  }
}

/* Correção de leitura dos selos claros do dashboard. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .eyebrow,
#appView.app-shell:not(.hidden-app) #tab-dashboard .badge-count,
#appView.app-shell:not(.hidden-app) #tab-dashboard .badge-info,
#appView.app-shell:not(.hidden-app) .header .eyebrow,
#appView.app-shell:not(.hidden-app) .card-header .badge-info {
  color: #063146 !important;
  background: #e8fbff !important;
  border: 1px solid rgba(32, 184, 214, .58) !important;
  text-shadow: none !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .eyebrow *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .badge-count *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .badge-info *,
#appView.app-shell:not(.hidden-app) .header .eyebrow *,
#appView.app-shell:not(.hidden-app) .card-header .badge-info * {
  color: inherit !important;
  text-shadow: none !important;
}


/* Formulario de chamados: botoes lado a lado. */
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 112px !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
}

/* ===== AJUSTE V5: EXPANDIR O SISTEMA PARA A DIREITA SEM QUEBRAR =====
   Objetivo: usar mais largura útil da tela, manter tudo em linha
   e evitar quebra/encolhimento do painel de chamados. */
:root {
  --system-max-width-final: 2100px !important;
  --side-width-final: 200px !important;       /* área total reservada à esquerda */
  --menu-real-width-final: 154px !important;  /* largura real do menu */
  --app-gap-final: 18px !important;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 8px), var(--system-max-width-final)) !important;
  max-width: var(--system-max-width-final) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: var(--side-width-final) minmax(0, 1fr) !important;
  gap: var(--app-gap-final) !important;
  column-gap: var(--app-gap-final) !important;
  align-items: stretch !important;
}

.side-menu {
  width: var(--menu-real-width-final) !important;
  min-width: var(--menu-real-width-final) !important;
  justify-self: start !important;
}

.app-main.container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px 12px 0 !important;
}

/* Expande todas as áreas principais para a direita */
.header,
.top-actions,
.tab-panel.active,
#tab-dashboard,
#tab-operacao,
#tab-visitas,
#tab-relatorio,
#tab-usuarios,
#tab-admin-tools,
#tab-dashboard .dashboard-hero,
#tab-dashboard .dashboard-kpi-grid,
#tab-dashboard .dashboard-executive-grid,
#tab-dashboard .dashboard-chart-panel {
  width: 100% !important;
  max-width: 100% !important;
}

/* Painel operacional: formulário mais enxuto para sobrar mais largura na tabela */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  max-width: 300px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  margin: 10px !important;
  padding: 0 6px 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 720px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  grid-template-columns: 1.35fr repeat(4, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 9px !important;
  padding: 8px 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 9.5px !important;
  padding: 8px 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 8.5px !important;
  padding: 4px 5px !important;
  max-width: 100% !important;
}

/* Colunas redistribuídas para caber sem quebrar nem criar rolagem horizontal */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1)  { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2)  { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3)  { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4)  { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5)  { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6)  { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7)  { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8)  { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9)  { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) { width: 7% !important; }

@media (max-width: 1750px) {
  :root {
    --system-max-width-final: 100vw !important;
    --side-width-final: 182px !important;
    --menu-real-width-final: 140px !important;
    --app-gap-final: 14px !important;
  }

  .app-main.container {
    padding-right: 10px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 290px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: 290px !important;
  }
}

@media (max-width: 1450px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    max-width: none !important;
  }
}

/* Ajuste final de legibilidade da tela de chamados. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card h2 {
  font-size: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .field textarea {
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 12px !important;
  line-height: 1.35 !important;
  padding: 10px 6px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  padding: 5px 7px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
    font-size: 10.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
    font-size: 11.5px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
    font-size: 10px !important;
  }
}


/* ===== RESPONSIVO - BLOCO FINAL ABSOLUTO ===== */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app),
#appView.app-shell:not(.hidden-app) * {
  box-sizing: border-box !important;
  min-width: 0;
}

#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 16px), 2200px) !important;
  max-width: 2200px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  width: 100% !important;
  max-width: none !important;
  padding: 12px 12px 12px 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(190px, .45fr) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: minmax(300px, 320px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  width: 100% !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field.full,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions.full {
  grid-column: 1 / -1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  justify-content: stretch !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(145px, 1fr)) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: fixed !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 12px) !important;
    grid-template-columns: minmax(136px, 160px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: minmax(290px, 300px) minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid,
  #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-sync-pill,
  #appView.app-shell:not(.hidden-app) .side-brand-text {
    display: none !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
    min-width: 1040px !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100% !important;
    display: block !important;
    padding: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 100% !important;
    min-height: auto !important;
    margin-bottom: 10px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-brand-text {
    display: inline !important;
  }

  #appView.app-shell:not(.hidden-app) .app-main.container {
    padding: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .header,
  #appView.app-shell:not(.hidden-app) .brand-block,
  #appView.app-shell:not(.hidden-app) .header-right,
  #appView.app-shell:not(.hidden-app) .top-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid,
  #appView.app-shell:not(.hidden-app) .stats-grid,
  #appView.app-shell:not(.hidden-app) .performance-grid,
  #appView.app-shell:not(.hidden-app) .report-grid,
  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm,
  #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
    min-width: 980px !important;
  }
}

@media (max-width: 480px) {
  #appView.app-shell:not(.hidden-app) .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
    grid-template-columns: 1fr !important;
  }
}

/* ===== RESPONSIVO - COMPLEMENTO GERAL DAS ABAS ===== */
#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  grid-template-columns: minmax(300px, 320px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
  width: 100% !important;
  max-width: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios table,
#appView.app-shell:not(.hidden-app) #tab-visitas table,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  min-width: 980px !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-6 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-usuarios .form-grid,
  #appView.app-shell:not(.hidden-app) #tab-visitas .form-grid,
  #appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-grid,
  #appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-search-grid,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-controls,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-filters,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-actions {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-6 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== DESKTOP GRANDE: MANTER LARGURA PADRAO CENTRALIZADA ===== */
#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 32px), 1420px) !important;
  max-width: 1420px !important;
  margin-inline: auto !important;
}

@media (min-width: 1800px) {
  #appView.app-shell:not(.hidden-app) {
    width: min(calc(100vw - 64px), 1420px) !important;
    max-width: 1420px !important;
  }
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== CORRECAO FINAL: NOTEBOOK 14" + TEMA MAIS CLARO ===== */
#appView.app-shell:not(.hidden-app) {
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 18px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 240px !important;
  position: sticky !important;
  top: 12px !important;
  align-self: start !important;
  z-index: 2 !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  min-width: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(9, 33, 47, .32), rgba(9, 33, 47, .12) 48%, rgba(9, 33, 47, .30)),
    linear-gradient(180deg, rgba(247, 252, 255, .36), rgba(223, 239, 247, .28)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
  background-color: #dceaf1 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background:
    linear-gradient(135deg, rgba(36, 167, 194, .10), rgba(255, 255, 255, .02) 52%),
    linear-gradient(180deg, rgba(18, 82, 101, .82), rgba(12, 55, 75, .78)) !important;
  border-color: rgba(118, 194, 210, .46) !important;
  box-shadow: 0 14px 30px rgba(3, 18, 28, .16), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card {
  background:
    linear-gradient(135deg, rgba(36, 167, 194, .11), rgba(255, 255, 255, .03) 55%),
    linear-gradient(180deg, rgba(16, 73, 94, .84), rgba(10, 43, 64, .80)) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card {
  background:
    linear-gradient(135deg, rgba(44, 185, 211, .16), rgba(255, 255, 255, .04) 56%),
    linear-gradient(180deg, rgba(17, 76, 96, .86), rgba(9, 44, 65, .82)) !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #e5f3f8 !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(211, 237, 244, .25) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active {
  background: linear-gradient(135deg, #22b8d3, #1599b8) !important;
}

/* Padrao definitivo: mesma cor marcada no menu para todas as areas escuras. */
:root {
  --manitech-menu-color-final: #12586a;
  --manitech-menu-soft-final: #2f6b76;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background: var(--manitech-menu-color-final) !important;
  background-image: none !important;
  border-color: rgba(151, 220, 233, .42) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric,
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: var(--manitech-menu-soft-final) !important;
  background-image: none !important;
  border-color: rgba(183, 232, 241, .34) !important;
}

/* Padrao final de cor: mesma tonalidade do menu lateral nos paineis escuros. */
:root {
  --manitech-menu-color: #12586a;
  --manitech-menu-color-soft: #2f6b76;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background: var(--manitech-menu-color) !important;
  background-image: none !important;
  border-color: rgba(151, 220, 233, .42) !important;
  box-shadow: 0 12px 26px rgba(2, 18, 28, .13), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric,
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: var(--manitech-menu-color-soft) !important;
  background-image: none !important;
  border-color: rgba(183, 232, 241, .34) !important;
}

/* Regulagem fina: clareia o tema sem perder o padrao escuro elegante. */
#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(135deg, rgba(36, 129, 148, .22), rgba(255, 255, 255, .035) 56%),
    linear-gradient(180deg, rgba(24, 101, 118, .96), rgba(13, 68, 90, .96)) !important;
  border-color: rgba(132, 203, 217, .44) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background:
    linear-gradient(135deg, rgba(39, 132, 151, .22), rgba(255, 255, 255, .04) 56%),
    linear-gradient(180deg, rgba(25, 102, 119, .96), rgba(13, 68, 90, .96)) !important;
  border-color: rgba(132, 203, 217, .48) !important;
  box-shadow: 0 13px 28px rgba(2, 16, 25, .16), inset 0 1px 0 rgba(255, 255, 255, .11) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric {
  background:
    linear-gradient(135deg, rgba(44, 145, 164, .20), rgba(255, 255, 255, .035) 56%),
    linear-gradient(180deg, rgba(17, 82, 104, .98), rgba(7, 54, 76, .98)) !important;
  border-color: rgba(118, 195, 211, .44) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(34, 120, 143, .58) !important;
  border-color: rgba(151, 220, 233, .36) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(255, 255, 255, .13) !important;
  border-color: rgba(211, 237, 244, .26) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:hover {
  background: rgba(34, 184, 211, .22) !important;
}

/* Uniformiza as areas escuras com a cor do corpo do menu lateral. */
#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(180deg, rgba(16, 86, 101, .97), rgba(9, 73, 88, .97)) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background:
    linear-gradient(180deg, rgba(16, 86, 101, .97), rgba(9, 73, 88, .97)) !important;
  border-color: rgba(125, 191, 205, .44) !important;
  box-shadow: 0 13px 28px rgba(2, 18, 28, .14), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric,
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(48, 105, 116, .72) !important;
  border-color: rgba(154, 216, 229, .36) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(48, 105, 116, .74) !important;
  border-color: rgba(154, 216, 229, .36) !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 16px !important;
    width: calc(100vw - 16px) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    max-width: 220px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    max-width: 96px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-brand-text,
  #appView.app-shell:not(.hidden-app) .side-sync-pill {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    display: block !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    position: static !important;
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===== REPARO ESTAVEL: 32 POL CENTRALIZADO + 14 POL SEM SOBREPOSICAO ===== */
#appView.app-shell:not(.hidden-app) {
  width: min(calc(100vw - 28px), 2200px) !important;
  max-width: 2200px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  align-items: start !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  position: sticky !important;
  top: 12px !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  justify-self: start !important;
  grid-column: 1 !important;
  z-index: 3 !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 0 !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard,
#appView.app-shell:not(.hidden-app) #tab-operacao,
#appView.app-shell:not(.hidden-app) #tab-usuarios,
#appView.app-shell:not(.hidden-app) #tab-admin-tools,
#appView.app-shell:not(.hidden-app) #tab-visitas,
#appView.app-shell:not(.hidden-app) #tab-relatorio {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(190px, .42fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout,
#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  grid-template-columns: minmax(285px, 315px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll {
  max-width: 100% !important;
  overflow-x: auto !important;
}

/* Visual mais leve, sem deixar o sistema lavado. */
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(8, 31, 43, .28), rgba(8, 31, 43, .08) 48%, rgba(8, 31, 43, .26)),
    linear-gradient(180deg, rgba(245, 251, 255, .42), rgba(216, 235, 244, .24)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=85") center / cover fixed no-repeat !important;
  background-color: #e1eef4 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background:
    linear-gradient(135deg, rgba(46, 181, 207, .12), rgba(255,255,255,.04) 54%),
    linear-gradient(180deg, rgba(20, 84, 104, .88), rgba(11, 52, 73, .84)) !important;
  border-color: rgba(132, 205, 220, .44) !important;
  box-shadow: 0 14px 30px rgba(3, 18, 28, .14), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, rgba(25, 92, 112, .90), rgba(12, 58, 78, .88)) !important;
}

#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #e8f5fa !important;
}

@media (max-width: 1700px) {
  #appView.app-shell:not(.hidden-app) {
    width: calc(100vw - 24px) !important;
    grid-template-columns: 210px minmax(0, 1fr) !important;
    column-gap: 16px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 1280px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-brand-text,
  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-sync-pill {
    display: none !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    display: block !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-bottom: 10px !important;
  }
}

/* ===== MENU LATERAL COMO ANTES ===== */
#appView.app-shell:not(.hidden-app) .side-menu {
  height: calc(100vh - 56px) !important;
  min-height: calc(100vh - 56px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  flex: 1 1 auto !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  margin-top: auto !important;
  padding-bottom: 10px !important;
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) .side-menu {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #appView.app-shell:not(.hidden-app) .side-footer {
    margin-top: 12px !important;
  }
}

/* ===== MENU PADRAO: botoes proporcionais e alinhados ===== */
#appView.app-shell:not(.hidden-app) .side-menu {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 56px) !important;
  min-height: 720px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  border-radius: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: inline !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding-top: 18px !important;
}

@media (max-width: 1280px) {
  #appView.app-shell:not(.hidden-app) .side-nav {
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn {
    min-height: 58px !important;
    height: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon),
  #appView.app-shell:not(.hidden-app) .side-brand-text,
  #appView.app-shell:not(.hidden-app) .side-sync-pill {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) .side-menu {
    height: auto !important;
    min-height: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn {
    min-height: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
  }
}

/* ===== ALINHAMENTO FINAL: MENU NA MESMA LINHA DO SISTEMA ===== */
#appView.app-shell:not(.hidden-app) {
  align-items: stretch !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  top: 0 !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
}

#appView.app-shell:not(.hidden-app) .app-main.container {
  padding-top: 0 !important;
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    padding-top: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    align-self: auto !important;
    height: auto !important;
  }
}

/* ===== CHAMADOS: FORMULARIO NOVO CHAMADO MAIS ESTREITO ===== */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
  width: 220px !important;
  max-width: 220px !important;
  padding: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header {
  gap: 8px !important;
  align-items: flex-start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header h2 {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .badge-info {
  flex: 0 0 auto !important;
  padding: 6px 8px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field input,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field select,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field textarea {
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 10px !important;
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field.full,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions.full {
  grid-column: 1 / -1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field textarea {
  min-height: 120px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  gap: 8px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  padding-inline: 8px !important;
  font-size: 12px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 210px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    width: 210px !important;
    max-width: 210px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== AJUSTE DEFINITIVO: MENU PRINCIPAL + FORMULARIOS LATERAIS ===== */
#appView.app-shell:not(.hidden-app) {
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  padding-inline: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  max-width: 128px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
  gap: 5px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  font-size: 11px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  font-size: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .layout,
#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
  width: 220px !important;
  max-width: 220px !important;
  padding: 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header {
  gap: 8px !important;
  align-items: flex-start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header h2,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card .card-header h2,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header h2 {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .badge-info {
  flex: 0 0 auto !important;
  padding: 6px 8px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm,
#appView.app-shell:not(.hidden-app) #userForm,
#appView.app-shell:not(.hidden-app) #visitForm {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .field,
#appView.app-shell:not(.hidden-app) #ticketForm .field.full,
#appView.app-shell:not(.hidden-app) #ticketForm .actions.full,
#appView.app-shell:not(.hidden-app) #userForm .field,
#appView.app-shell:not(.hidden-app) #userForm .field.full,
#appView.app-shell:not(.hidden-app) #userForm .actions.full,
#appView.app-shell:not(.hidden-app) #visitForm .field,
#appView.app-shell:not(.hidden-app) #visitForm .field.full,
#appView.app-shell:not(.hidden-app) #visitForm .actions.full {
  grid-column: 1 / -1 !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .field input,
#appView.app-shell:not(.hidden-app) #ticketForm .field select,
#appView.app-shell:not(.hidden-app) #ticketForm .field textarea,
#appView.app-shell:not(.hidden-app) #userForm .field input,
#appView.app-shell:not(.hidden-app) #userForm .field select,
#appView.app-shell:not(.hidden-app) #userForm .field textarea,
#appView.app-shell:not(.hidden-app) #visitForm .field input,
#appView.app-shell:not(.hidden-app) #visitForm .field select,
#appView.app-shell:not(.hidden-app) #visitForm .field textarea {
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 10px !important;
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .field textarea,
#appView.app-shell:not(.hidden-app) #visitForm .field textarea {
  min-height: 120px !important;
}

#appView.app-shell:not(.hidden-app) #visitForm .checkbox-group {
  gap: 8px !important;
}

#appView.app-shell:not(.hidden-app) #visitForm .check-option {
  align-items: flex-start !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #userForm .actions,
#appView.app-shell:not(.hidden-app) #visitForm .actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  column-gap: 6px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #userForm .actions .btn,
#appView.app-shell:not(.hidden-app) #visitForm .actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell {
  display: flex !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  min-width: 52px !important;
  min-height: 28px !important;
  padding: 6px 7px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-delete-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .user-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn {
  background: #f8fafc !important;
  color: #082f49 !important;
  border: 1px solid #d8e2ee !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-usuarios table td:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table th:last-child,
#appView.app-shell:not(.hidden-app) #tab-visitas table td:last-child {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  overflow: hidden !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 160px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 210px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
  #appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
    width: 210px !important;
    max-width: 210px !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
  #appView.app-shell:not(.hidden-app) #tab-visitas .form-card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== OVERRIDE FINAL: MENU LEGIVEL, ABRIR CHAMADO E RESPONSAVEIS ===== */
#appView.app-shell:not(.hidden-app) .side-nav-btn {
  gap: 4px !important;
  padding: 0 5px !important;
  font-size: 11.2px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  font-size: 10px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 11.2px !important;
  line-height: 1.08 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  display: grid !important;
  grid-template-columns: 82px 76px !important;
  gap: 6px !important;
  justify-content: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn {
  width: 82px !important;
  max-width: 82px !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 4px !important;
  font-size: 9.6px !important;
  line-height: 1.02 !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles .check-option {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  background: rgba(248, 250, 252, .96) !important;
  border: 1px solid rgba(216, 226, 238, .95) !important;
  color: #082f49 !important;
  font-size: 10.2px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles .check-option input[type="checkbox"] {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  accent-color: #13a9c9 !important;
}

/* Ajuste solicitado: menu mais legivel, meses horizontais e paineis no tom claro do menu. */
#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 66px !important;
  height: 66px !important;
  max-height: 66px !important;
  padding: 0 14px !important;
  gap: 10px !important;
  font-size: 13.8px !important;
  line-height: 1.14 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  font-size: 13px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  font-size: 13.8px !important;
  line-height: 1.14 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, rgba(31, 104, 124, .93), rgba(16, 74, 98, .91)) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid {
  background:
    linear-gradient(135deg, rgba(49, 188, 213, .13), rgba(255, 255, 255, .05) 55%),
    linear-gradient(180deg, rgba(31, 104, 124, .90), rgba(16, 74, 98, .88)) !important;
  border-color: rgba(151, 220, 233, .50) !important;
  box-shadow: 0 14px 30px rgba(3, 18, 28, .14), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(231, 242, 248, .96)) !important;
}

@media (max-width: 1280px) {
  #appView.app-shell:not(.hidden-app) .side-nav-btn {
    padding: 0 !important;
    font-size: 0 !important;
  }
}

/* Ajuste final: textos completos no menu e paineis mais claros em todo o sistema. */
#appView.app-shell:not(.hidden-app) {
  grid-template-columns: 186px minmax(0, 1fr) !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  width: 186px !important;
  min-width: 186px !important;
  max-width: 186px !important;
  padding-inline: 10px !important;
  background:
    linear-gradient(180deg, rgba(51, 132, 149, .94), rgba(33, 104, 126, .92)) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav {
  gap: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  min-height: 58px !important;
  height: 58px !important;
  max-height: 58px !important;
  padding: 0 6px !important;
  gap: 6px !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn .side-icon {
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  font-size: 12px !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 12.6px !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel {
  background:
    linear-gradient(135deg, rgba(106, 190, 204, .16), rgba(255, 255, 255, .06) 54%),
    linear-gradient(180deg, rgba(51, 132, 149, .90), rgba(33, 104, 126, .88)) !important;
  border-color: rgba(176, 228, 238, .58) !important;
  box-shadow: 0 12px 24px rgba(3, 18, 28, .12), inset 0 1px 0 rgba(255,255,255,.15) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background:
    linear-gradient(135deg, rgba(133, 214, 226, .18), rgba(255, 255, 255, .08) 56%),
    linear-gradient(180deg, rgba(57, 145, 160, .92), rgba(38, 116, 137, .90)) !important;
  border-color: rgba(188, 235, 243, .62) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) table,
#appView.app-shell:not(.hidden-app) tbody td,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea {
  background: linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(231, 242, 248, .96)) !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) {
    grid-template-columns: 176px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav-btn span:not(.side-icon) {
    font-size: 12.2px !important;
  }
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(72, 154, 170, .56) !important;
  border-color: rgba(190, 238, 246, .42) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff7fb !important;
  color: #123f50 !important;
}

#appView.app-shell:not(.hidden-app) .dash-bar-row b {
  background: rgba(223, 247, 251, .28) !important;
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) {
    display: block !important;
    width: 100% !important;
  }

  #appView.app-shell:not(.hidden-app) .side-menu {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #appView.app-shell:not(.hidden-app) .side-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Correcao solicitada: tonalidade do menu da imagem replicada no sistema. */
#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(135deg, rgba(20, 96, 113, .18), rgba(255, 255, 255, .025) 54%),
    linear-gradient(180deg, rgba(15, 78, 94, .96), rgba(8, 52, 72, .96)) !important;
  border-color: rgba(103, 177, 193, .40) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background:
    linear-gradient(135deg, rgba(20, 96, 113, .18), rgba(255, 255, 255, .025) 54%),
    linear-gradient(180deg, rgba(15, 78, 94, .96), rgba(8, 52, 72, .96)) !important;
  border-color: rgba(103, 177, 193, .42) !important;
  box-shadow: 0 14px 30px rgba(2, 16, 25, .18), inset 0 1px 0 rgba(255, 255, 255, .09) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric {
  background:
    linear-gradient(135deg, rgba(17, 108, 128, .18), rgba(255, 255, 255, .025) 54%),
    linear-gradient(180deg, rgba(9, 64, 84, .98), rgba(3, 40, 59, .98)) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(21, 91, 112, .56) !important;
  border-color: rgba(126, 199, 214, .32) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn {
  background: rgba(255, 255, 255, .105) !important;
  border-color: rgba(211, 237, 244, .22) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:hover {
  background: rgba(34, 184, 211, .18) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active {
  background: linear-gradient(135deg, #22b8d3, #1599b8) !important;
}

/* Padrao definitivo no fim: mesma cor marcada no menu para todas as areas escuras. */
:root {
  --manitech-menu-color-last: #12586a;
  --manitech-menu-soft-last: #2f6b76;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card {
  background: var(--manitech-menu-color-last) !important;
  background-image: none !important;
  border-color: rgba(151, 220, 233, .42) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric,
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: var(--manitech-menu-soft-last) !important;
  background-image: none !important;
  border-color: rgba(183, 232, 241, .34) !important;
}

/* Ajuste correto: menu preservado e somente o dashboard menos escuro. */
:root {
  --manitech-menu-preserved: #0d4f5f;
  --manitech-dashboard-clear-top: rgba(16, 82, 98, .82);
  --manitech-dashboard-clear-bottom: rgba(5, 43, 63, .84);
  --manitech-dashboard-inner-top: rgba(10, 63, 82, .86);
  --manitech-dashboard-inner-bottom: rgba(2, 31, 50, .88);
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(135deg, var(--manitech-dashboard-clear-top), var(--manitech-dashboard-clear-bottom)) !important;
  border-color: rgba(165, 224, 236, .48) !important;
  box-shadow: 0 12px 24px rgba(2, 18, 28, .12), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background:
    linear-gradient(135deg, var(--manitech-dashboard-clear-top), var(--manitech-dashboard-clear-bottom)) !important;
  border-color: rgba(165, 224, 236, .48) !important;
  box-shadow: 0 12px 24px rgba(2, 18, 28, .12), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background:
    linear-gradient(135deg, var(--manitech-dashboard-inner-top), var(--manitech-dashboard-inner-bottom)) !important;
  border-color: rgba(165, 224, 236, .44) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(9, 66, 84, .46) !important;
  background-image: none !important;
  border-color: rgba(165, 224, 236, .34) !important;
}

/* Tema recomendado: azul petroleo grafite, menos esverdeado e mais profissional. */
:root {
  --manitech-theme-panel-top: rgba(18, 67, 80, .88);
  --manitech-theme-panel-bottom: rgba(8, 39, 55, .90);
  --manitech-theme-inner-top: rgba(9, 55, 70, .90);
  --manitech-theme-inner-bottom: rgba(4, 34, 52, .92);
  --manitech-theme-menu-top: rgba(14, 74, 86, .92);
  --manitech-theme-menu-bottom: rgba(7, 54, 68, .94);
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background:
    linear-gradient(180deg, var(--manitech-theme-menu-top), var(--manitech-theme-menu-bottom)) !important;
  border-color: rgba(134, 204, 218, .36) !important;
  box-shadow: 0 16px 34px rgba(2, 18, 28, .18), inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background:
    linear-gradient(135deg, var(--manitech-theme-panel-top), var(--manitech-theme-panel-bottom)) !important;
  border-color: rgba(146, 210, 222, .42) !important;
  box-shadow: 0 14px 28px rgba(2, 18, 28, .16), inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background:
    linear-gradient(135deg, var(--manitech-theme-inner-top), var(--manitech-theme-inner-bottom)) !important;
  border-color: rgba(146, 210, 222, .38) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: rgba(44, 101, 114, .52) !important;
  background-image: none !important;
  border-color: rgba(168, 222, 232, .30) !important;
}

/* Replica o tema azul petroleo grafite nas demais telas do painel. */
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid {
  background:
    linear-gradient(135deg, var(--manitech-theme-panel-top), var(--manitech-theme-panel-bottom)) !important;
  border-color: rgba(146, 210, 222, .42) !important;
  box-shadow: 0 14px 28px rgba(2, 18, 28, .16), inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card {
  background:
    linear-gradient(135deg, var(--manitech-theme-inner-top), var(--manitech-theme-inner-bottom)) !important;
  border-color: rgba(146, 210, 222, .36) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(231, 242, 248, .96)) !important;
  color: #102638 !important;
}

/* Destaque final do tema executivo. */
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, #00a6c8, #007fa3) !important;
  border-color: rgba(216, 249, 255, .50) !important;
  box-shadow: 0 12px 26px rgba(0, 127, 163, .28) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active):hover {
  background: rgba(0, 166, 200, .18) !important;
  border-color: rgba(154, 231, 246, .34) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  box-shadow:
    inset 0 3px 0 rgba(18, 183, 214, .62),
    0 14px 28px rgba(4, 16, 36, .20),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff7fb !important;
  color: #07556a !important;
}

/* Tema executivo final: contraste limpo, sem azul chapado. */
:root {
  --manitech-exec-ink: #0f2533;
  --manitech-exec-navy: #12324a;
  --manitech-exec-navy-2: #0b2538;
  --manitech-exec-panel: #f7fbfd;
  --manitech-exec-panel-2: #edf5f8;
  --manitech-exec-line: rgba(44, 91, 112, .20);
  --manitech-exec-accent: #00a6c8;
  --manitech-exec-accent-2: #007fa3;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(8, 22, 31, .22), rgba(255, 255, 255, .08) 50%, rgba(8, 22, 31, .18)),
    linear-gradient(180deg, rgba(245, 249, 251, .20), rgba(225, 235, 240, .24)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=95") center / cover fixed no-repeat !important;
  background-color: #e7eef2 !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, #102f43, #0b2538) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 16px 34px rgba(10, 25, 38, .22), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  background: linear-gradient(135deg, #143a55, #0e2b40) !important;
  border-color: rgba(0, 166, 200, .32) !important;
  box-shadow:
    inset 0 3px 0 rgba(0, 166, 200, .58),
    0 14px 28px rgba(10, 25, 38, .18),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, rgba(247, 251, 253, .97), rgba(237, 245, 248, .96)) !important;
  border-color: var(--manitech-exec-line) !important;
  box-shadow: 0 14px 30px rgba(10, 25, 38, .15), inset 0 1px 0 rgba(255,255,255,.72) !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: #ffffff !important;
  border-color: rgba(44, 91, 112, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80) !important;
}

#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small {
  color: var(--manitech-exec-ink) !important;
}

#appView.app-shell:not(.hidden-app) .header h1,
#appView.app-shell:not(.hidden-app) .header h2,
#appView.app-shell:not(.hidden-app) .header h3,
#appView.app-shell:not(.hidden-app) .header p,
#appView.app-shell:not(.hidden-app) .header span,
#appView.app-shell:not(.hidden-app) .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) .dashboard-hero p,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .side-menu * {
  color: #f4fbff !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel p,
#appView.app-shell:not(.hidden-app) .tab-panel small,
#appView.app-shell:not(.hidden-app) .tab-panel label,
#appView.app-shell:not(.hidden-app) .tab-panel span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: #315266 !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active),
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-exec-accent), var(--manitech-exec-accent-2)) !important;
  border-color: rgba(216, 249, 255, .50) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(0, 127, 163, .28) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active):hover {
  background: rgba(0, 166, 200, .18) !important;
  border-color: rgba(154, 231, 246, .34) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: #f9fcfd !important;
  color: var(--manitech-exec-ink) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff7fb !important;
  color: #07556a !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-final-accent), var(--manitech-final-accent-strong)) !important;
  border-color: rgba(210, 237, 255, .44) !important;
  box-shadow: 0 12px 26px rgba(29, 127, 242, .32) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active):hover {
  background: rgba(64, 132, 217, .22) !important;
  border-color: rgba(184, 213, 255, .34) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  box-shadow:
    inset 0 3px 0 rgba(18, 183, 214, .62),
    0 14px 28px rgba(4, 16, 36, .20),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #eaf3ff !important;
  color: #0b3470 !important;
}

/* Correcao final real: remove o blur e firma uma paleta azul corporativa. */
:root {
  --manitech-clean-bg-overlay: rgba(6, 18, 38, .18);
  --manitech-clean-menu-top: #071d3d;
  --manitech-clean-menu-bottom: #0a2f62;
  --manitech-clean-panel-top: #123f7a;
  --manitech-clean-panel-bottom: #082a54;
  --manitech-clean-inner-top: #0b2d5c;
  --manitech-clean-inner-bottom: #061f42;
  --manitech-clean-border: rgba(143, 185, 255, .36);
  --manitech-clean-accent: #1d7ff2;
  --manitech-clean-accent-strong: #12b7d6;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, var(--manitech-clean-bg-overlay), rgba(8, 20, 30, .06) 48%, var(--manitech-clean-bg-overlay)),
    linear-gradient(180deg, rgba(246, 250, 252, .12), rgba(221, 234, 240, .16)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=95") center / cover fixed no-repeat !important;
  background-color: #e2edf2 !important;
}

body::before,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .admin-tools-card,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .stat-card,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, var(--manitech-clean-menu-top), var(--manitech-clean-menu-bottom)) !important;
  border-color: rgba(137, 190, 204, .30) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(135deg, var(--manitech-clean-panel-top), var(--manitech-clean-panel-bottom)) !important;
  border-color: var(--manitech-clean-border) !important;
  box-shadow: 0 16px 34px rgba(3, 18, 28, .20), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: linear-gradient(135deg, var(--manitech-clean-inner-top), var(--manitech-clean-inner-bottom)) !important;
  border-color: rgba(137, 190, 204, .28) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: rgba(255, 255, 255, .08) !important;
  background-image: none !important;
  border-color: rgba(211, 232, 238, .22) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-clean-accent), var(--manitech-clean-accent-strong)) !important;
  box-shadow: 0 10px 22px rgba(29, 127, 242, .30) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:hover {
  background: rgba(255, 255, 255, .13) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: linear-gradient(180deg, #f8fbfd, #edf4f8) !important;
  color: #102638 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #e7f7fa !important;
  color: #0b3442 !important;
}

/* Ajuste visual: fundo nitido e paleta corporativa mais equilibrada. */
:root {
  --manitech-polished-bg-overlay: rgba(8, 20, 30, .18);
  --manitech-polished-menu-top: #0a2a37;
  --manitech-polished-menu-bottom: #0b3542;
  --manitech-polished-panel-top: #123746;
  --manitech-polished-panel-bottom: #0d2b39;
  --manitech-polished-inner-top: #0b2d3c;
  --manitech-polished-inner-bottom: #082432;
  --manitech-polished-border: rgba(137, 190, 204, .34);
  --manitech-polished-accent: #1793a5;
  --manitech-polished-accent-strong: #0f7188;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, var(--manitech-polished-bg-overlay), rgba(8, 20, 30, .06) 48%, var(--manitech-polished-bg-overlay)),
    linear-gradient(180deg, rgba(246, 250, 252, .12), rgba(221, 234, 240, .16)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=95") center / cover fixed no-repeat !important;
  background-color: #e2edf2 !important;
}

body::before {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(135deg, var(--manitech-polished-panel-top), var(--manitech-polished-panel-bottom)) !important;
  border-color: var(--manitech-polished-border) !important;
  box-shadow: 0 16px 34px rgba(3, 18, 28, .20), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, var(--manitech-polished-menu-top), var(--manitech-polished-menu-bottom)) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: linear-gradient(135deg, var(--manitech-polished-inner-top), var(--manitech-polished-inner-bottom)) !important;
  border-color: rgba(137, 190, 204, .28) !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: rgba(255, 255, 255, .08) !important;
  background-image: none !important;
  border-color: rgba(211, 232, 238, .22) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-polished-accent), var(--manitech-polished-accent-strong)) !important;
  box-shadow: 0 10px 22px rgba(15, 113, 136, .24) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:hover {
  background: rgba(255, 255, 255, .13) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: linear-gradient(180deg, #f8fbfd, #edf4f8) !important;
  color: #102638 !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #eaf3ff !important;
  color: #0b3470 !important;
}

/* Tema corporativo final: limpo, legivel e com destaque. */
:root {
  --manitech-brand-ink: #142c3a;
  --manitech-brand-muted: #4d6674;
  --manitech-brand-navy: #102f43;
  --manitech-brand-navy-2: #0b2538;
  --manitech-brand-panel: #f4f8fb;
  --manitech-brand-panel-2: #e8f1f6;
  --manitech-brand-card: #ffffff;
  --manitech-brand-line: rgba(31, 72, 92, .22);
  --manitech-brand-accent: #00a6c8;
  --manitech-brand-accent-2: #007fa3;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(90deg, rgba(9, 28, 39, .24), rgba(255, 255, 255, .08) 50%, rgba(9, 28, 39, .20)),
    linear-gradient(180deg, rgba(246, 250, 252, .18), rgba(226, 236, 241, .24)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2400&q=95") center / cover fixed no-repeat !important;
  background-color: #e7eef2 !important;
}

body::before,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, var(--manitech-brand-navy), var(--manitech-brand-navy-2)) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 16px 34px rgba(10, 25, 38, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  background: linear-gradient(135deg, #163d56, #0d293d) !important;
  border-color: rgba(0, 166, 200, .36) !important;
  box-shadow:
    inset 0 3px 0 rgba(0, 166, 200, .58),
    0 14px 28px rgba(10, 25, 38, .20),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-brand-panel), var(--manitech-brand-panel-2)) !important;
  border-color: var(--manitech-brand-line) !important;
  box-shadow: 0 14px 30px rgba(10, 25, 38, .16), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: var(--manitech-brand-card) !important;
  border-color: rgba(31, 72, 92, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: #f8fbfd !important;
  color: var(--manitech-brand-ink) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-brand-ink) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel p,
#appView.app-shell:not(.hidden-app) .tab-panel small,
#appView.app-shell:not(.hidden-app) .tab-panel label,
#appView.app-shell:not(.hidden-app) .tab-panel span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-brand-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3 {
  color: var(--manitech-brand-ink) !important;
}

#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) .side-menu * {
  color: #f4fbff !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: rgba(255,255,255,.09) !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.18) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-brand-accent), var(--manitech-brand-accent-2)) !important;
  border-color: rgba(216, 249, 255, .52) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(0, 127, 163, .28) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active):hover {
  background: rgba(0, 166, 200, .18) !important;
  border-color: rgba(154, 231, 246, .34) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff7fb !important;
  border-color: rgba(0, 127, 163, .26) !important;
  color: #07556a !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .header .eyebrow,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero .eyebrow {
  background: #dff7fb !important;
  color: #07556a !important;
}

/* Tema final alinhado com a tela de login. */
:root {
  --manitech-green-ink: #0b2f4a;
  --manitech-green-muted: #60728a;
  --manitech-green-dark: rgba(4, 15, 29, .90);
  --manitech-green-panel: rgba(244, 248, 251, .96);
  --manitech-green-panel-2: rgba(232, 240, 246, .96);
  --manitech-green-inner: rgba(255, 255, 255, .94);
  --manitech-green-border: rgba(171, 194, 212, .48);
  --manitech-green-accent: #1d9bd0;
  --manitech-green-accent-2: #075678;
}

html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(29, 167, 216, .30), transparent 28%),
    linear-gradient(115deg, #07324d 0%, #08243d 46%, #101c2b 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto !important;
  background-color: #08243d !important;
}

body::before,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, rgba(3, 16, 31, .94), rgba(5, 31, 50, .88)) !important;
  border-color: rgba(111, 207, 239, .22) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(8, 45, 70, .90), rgba(4, 17, 31, .88)) !important;
  border-color: rgba(46, 170, 219, .32) !important;
  box-shadow:
    inset 0 3px 0 rgba(29, 167, 216, .72),
    0 16px 32px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background:
    linear-gradient(135deg, var(--manitech-green-panel), var(--manitech-green-panel-2)) !important;
  border-color: var(--manitech-green-border) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: var(--manitech-green-inner) !important;
  border-color: rgba(111, 207, 239, .22) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  background: rgba(248, 251, 253, .96) !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-green-ink) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel p,
#appView.app-shell:not(.hidden-app) .tab-panel small,
#appView.app-shell:not(.hidden-app) .tab-panel label,
#appView.app-shell:not(.hidden-app) .tab-panel span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-green-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3 {
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero * {
  color: #f3fff8 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active) {
  background: rgba(255,255,255,.08) !important;
  background-image: none !important;
  border-color: rgba(191, 230, 245, .18) !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .mini-metric {
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(171, 194, 212, .42) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-green-accent), var(--manitech-green-accent-2)) !important;
  border-color: rgba(213, 240, 250, .48) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(29, 167, 216, .28) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active):hover {
  background: rgba(29, 167, 216, .16) !important;
  border-color: rgba(125, 211, 252, .34) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff3fb !important;
  border-color: rgba(29, 155, 208, .26) !important;
  color: #075678 !important;
  text-shadow: none !important;
}

/* Replica a cor escura do painel em todo o sistema. */
:root {
  --manitech-panel-match-top: rgba(8, 45, 70, .90);
  --manitech-panel-match-bottom: rgba(4, 17, 31, .88);
  --manitech-panel-match-inner: rgba(5, 24, 42, .78);
  --manitech-panel-match-border: rgba(46, 170, 219, .32);
  --manitech-panel-match-text: #f3fbff;
  --manitech-panel-match-muted: #c6d9e6;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(135deg, var(--manitech-panel-match-top), var(--manitech-panel-match-bottom)) !important;
  border-color: var(--manitech-panel-match-border) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric {
  background: var(--manitech-panel-match-inner) !important;
  border-color: rgba(111, 207, 239, .24) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-panel-match-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel p,
#appView.app-shell:not(.hidden-app) .tab-panel small,
#appView.app-shell:not(.hidden-app) .tab-panel label,
#appView.app-shell:not(.hidden-app) .tab-panel span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-panel-match-muted) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3 {
  color: var(--manitech-panel-match-text) !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea {
  background: rgba(240, 247, 252, .94) !important;
  color: #102033 !important;
}

/* Tema cinza corporativo final: mais escuro e legivel. */
:root {
  --manitech-gray-panel-top: #dbe5ec;
  --manitech-gray-panel-bottom: #cbd9e2;
  --manitech-gray-card: #eef4f8;
  --manitech-gray-border: rgba(35, 75, 96, .30);
  --manitech-gray-text: #0b2f4a;
  --manitech-gray-muted: #38576b;
}

#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-gray-panel-top), var(--manitech-gray-panel-bottom)) !important;
  border-color: var(--manitech-gray-border) !important;
  box-shadow: 0 14px 30px rgba(6, 24, 38, .18), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .generated-report-body {
  background: var(--manitech-gray-card) !important;
  border-color: rgba(35, 75, 96, .18) !important;
  color: var(--manitech-gray-text) !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-gray-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .tab-panel p,
#appView.app-shell:not(.hidden-app) .tab-panel small,
#appView.app-shell:not(.hidden-app) .tab-panel label,
#appView.app-shell:not(.hidden-app) .tab-panel span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-gray-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel h3,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-status-card h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .panel-title-row h3 {
  color: var(--manitech-gray-text) !important;
}

#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero * {
  color: #f3fbff !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info {
  background: #dff3fb !important;
  border-color: rgba(29, 155, 208, .26) !important;
  color: #075678 !important;
}

/* Tema global cinza: replica a tonalidade final em todas as telas. */
:root {
  --manitech-global-gray-top: #dbe5ec;
  --manitech-global-gray-bottom: #cbd9e2;
  --manitech-global-gray-inner: #eef4f8;
  --manitech-global-gray-strong: #b8c8d3;
  --manitech-global-gray-border: rgba(35, 75, 96, .30);
  --manitech-global-gray-text: #0b2f4a;
  --manitech-global-gray-muted: #38576b;
  --manitech-global-accent: #1d9bd0;
  --manitech-global-accent-2: #075678;
}

html,
body,
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    radial-gradient(circle at 18% 14%, rgba(29, 155, 208, .12), transparent 28%),
    linear-gradient(180deg, #eef4f8 0%, #d7e2ea 100%) !important;
  background-color: #e3ecf2 !important;
}

#authView.auth-shell,
#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-global-gray-top), var(--manitech-global-gray-bottom)) !important;
  border-color: var(--manitech-global-gray-border) !important;
  box-shadow: 0 14px 30px rgba(6, 24, 38, .16), inset 0 1px 0 rgba(255,255,255,.70) !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#authView .field input,
#authView .field select,
#authView .field textarea,
#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .generated-report-body {
  background: var(--manitech-global-gray-inner) !important;
  border-color: rgba(35, 75, 96, .20) !important;
  color: var(--manitech-global-gray-text) !important;
}

#authView,
#authView *,
#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-global-gray-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#authView p,
#authView small,
#authView label,
#authView span,
#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-global-gray-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#authView h1,
#authView h2,
#authView h3,
#appView.app-shell:not(.hidden-app) h1,
#appView.app-shell:not(.hidden-app) h2,
#appView.app-shell:not(.hidden-app) h3,
#appView.app-shell:not(.hidden-app) .dashboard-kpi strong,
#appView.app-shell:not(.hidden-app) .performance-card strong,
#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small {
  color: var(--manitech-global-gray-text) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active),
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(255,255,255,.34) !important;
  background-image: none !important;
  border-color: rgba(35, 75, 96, .18) !important;
}

#authView .btn-primary,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-global-accent), var(--manitech-global-accent-2)) !important;
  border-color: rgba(213, 240, 250, .48) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(29, 155, 208, .28) !important;
}

#authView .btn-light,
#appView.app-shell:not(.hidden-app) .btn-light {
  background: #f7fafc !important;
  color: var(--manitech-global-gray-text) !important;
  border-color: rgba(35, 75, 96, .18) !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info,
#authView .eyebrow {
  background: #dff3fb !important;
  border-color: rgba(29, 155, 208, .26) !important;
  color: #075678 !important;
}

/* Remove a sombra inferior dos blocos principais. */
#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  box-shadow: none !important;
}

/* Painel final do bloco Dashboard de atendimento. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero.card {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border: 1px solid rgba(35, 75, 96, .24) !important;
  border-radius: 18px !important;
  min-height: 126px !important;
  padding: 26px 30px !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Tema final absoluto: login sem bordas em todo o sistema. */
:root {
  --manitech-login-bg-1: #07324d;
  --manitech-login-bg-2: #08243d;
  --manitech-login-bg-3: #101c2b;
  --manitech-login-panel: #eef2f5;
  --manitech-login-panel-2: #e4ebf0;
  --manitech-login-inner: #f8fafc;
  --manitech-login-text: #0b2f4a;
  --manitech-login-muted: #61738b;
  --manitech-login-accent: #1d9bd0;
  --manitech-login-accent-2: #075678;
}

html,
body,
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(29, 155, 208, .24), transparent 28%),
    linear-gradient(115deg, var(--manitech-login-bg-1) 0%, var(--manitech-login-bg-2) 46%, var(--manitech-login-bg-3) 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto !important;
  background-color: var(--manitech-login-bg-2) !important;
}

#authView.auth-shell,
#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#authView .field input,
#authView .field select,
#authView .field textarea,
#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .generated-report-body {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#authView,
#authView *,
#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#authView p,
#authView small,
#authView label,
#authView span,
#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-login-muted) !important;
}

#authView .btn-primary,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-login-accent), var(--manitech-login-accent-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#authView .btn-light,
#appView.app-shell:not(.hidden-app) .btn-light,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active),
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(255,255,255,.44) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info,
#authView .eyebrow {
  background: #dff3fb !important;
  border-color: transparent !important;
  color: var(--manitech-login-accent-2) !important;
  box-shadow: none !important;
}

/* Padroniza as abas internas que ainda estavam com o azul antigo. */
#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-result-panel,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-box,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-6 .stat-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-card {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--manitech-login-text) !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .card-header,
#appView.app-shell:not(.hidden-app) #tab-usuarios .card-header,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .card-header,
#appView.app-shell:not(.hidden-app) #tab-visitas .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-topbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card *,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card *,
#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid .stat-card *,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card *,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-result-panel *,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card *,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card *,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card *,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-card * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao label,
#appView.app-shell:not(.hidden-app) #tab-operacao small,
#appView.app-shell:not(.hidden-app) #tab-operacao p,
#appView.app-shell:not(.hidden-app) #tab-usuarios label,
#appView.app-shell:not(.hidden-app) #tab-usuarios small,
#appView.app-shell:not(.hidden-app) #tab-usuarios p,
#appView.app-shell:not(.hidden-app) #tab-admin-tools label,
#appView.app-shell:not(.hidden-app) #tab-admin-tools small,
#appView.app-shell:not(.hidden-app) #tab-admin-tools p,
#appView.app-shell:not(.hidden-app) #tab-visitas label,
#appView.app-shell:not(.hidden-app) #tab-visitas small,
#appView.app-shell:not(.hidden-app) #tab-visitas p,
#appView.app-shell:not(.hidden-app) #tab-relatorio label,
#appView.app-shell:not(.hidden-app) #tab-relatorio small,
#appView.app-shell:not(.hidden-app) #tab-relatorio p {
  color: var(--manitech-login-muted) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao input,
#appView.app-shell:not(.hidden-app) #tab-operacao select,
#appView.app-shell:not(.hidden-app) #tab-operacao textarea,
#appView.app-shell:not(.hidden-app) #tab-usuarios input,
#appView.app-shell:not(.hidden-app) #tab-usuarios select,
#appView.app-shell:not(.hidden-app) #tab-usuarios textarea,
#appView.app-shell:not(.hidden-app) #tab-admin-tools input,
#appView.app-shell:not(.hidden-app) #tab-admin-tools select,
#appView.app-shell:not(.hidden-app) #tab-admin-tools textarea,
#appView.app-shell:not(.hidden-app) #tab-visitas input,
#appView.app-shell:not(.hidden-app) #tab-visitas select,
#appView.app-shell:not(.hidden-app) #tab-visitas textarea,
#appView.app-shell:not(.hidden-app) #tab-relatorio input,
#appView.app-shell:not(.hidden-app) #tab-relatorio select,
#appView.app-shell:not(.hidden-app) #tab-relatorio textarea {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-body {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao table,
#appView.app-shell:not(.hidden-app) #tab-usuarios table,
#appView.app-shell:not(.hidden-app) #tab-visitas table,
#appView.app-shell:not(.hidden-app) #tab-relatorio table {
  background: var(--manitech-login-inner) !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao thead th,
#appView.app-shell:not(.hidden-app) #tab-usuarios thead th,
#appView.app-shell:not(.hidden-app) #tab-visitas thead th,
#appView.app-shell:not(.hidden-app) #tab-relatorio thead th {
  background: #e2ebf1 !important;
  color: var(--manitech-login-text) !important;
  border-color: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao tbody td,
#appView.app-shell:not(.hidden-app) #tab-usuarios tbody td,
#appView.app-shell:not(.hidden-app) #tab-visitas tbody td,
#appView.app-shell:not(.hidden-app) #tab-relatorio tbody td {
  background: #f8fafc !important;
  color: var(--manitech-login-text) !important;
  border-color: rgba(11, 47, 74, .08) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-usuarios .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-visitas .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-relatorio .btn-primary {
  background: linear-gradient(135deg, var(--manitech-login-accent), var(--manitech-login-accent-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-usuarios .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-visitas .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-relatorio .btn-secondary {
  background: #a7b2bd !important;
  border-color: transparent !important;
  color: #0b2f4a !important;
  box-shadow: none !important;
}

/* Tema final: mesmo visual do login, sem bordas marcadas. */
:root {
  --manitech-login-bg-1: #07324d;
  --manitech-login-bg-2: #08243d;
  --manitech-login-bg-3: #101c2b;
  --manitech-login-panel: #eef2f5;
  --manitech-login-panel-2: #e4ebf0;
  --manitech-login-inner: #f8fafc;
  --manitech-login-text: #0b2f4a;
  --manitech-login-muted: #61738b;
  --manitech-login-accent: #1d9bd0;
  --manitech-login-accent-2: #075678;
}

html,
body,
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(29, 155, 208, .24), transparent 28%),
    linear-gradient(115deg, var(--manitech-login-bg-1) 0%, var(--manitech-login-bg-2) 46%, var(--manitech-login-bg-3) 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto !important;
  background-color: var(--manitech-login-bg-2) !important;
}

#authView.auth-shell,
#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#authView .field input,
#authView .field select,
#authView .field textarea,
#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .generated-report-body {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#authView,
#authView *,
#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#authView p,
#authView small,
#authView label,
#authView span,
#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-login-muted) !important;
}

#authView .btn-primary,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-login-accent), var(--manitech-login-accent-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#authView .btn-light,
#appView.app-shell:not(.hidden-app) .btn-light,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active),
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(255,255,255,.44) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info,
#authView .eyebrow {
  background: #dff3fb !important;
  border-color: transparent !important;
  color: var(--manitech-login-accent-2) !important;
  box-shadow: none !important;
}

/* Devolve o painel em volta do bloco Dashboard, mantendo o cinza atual. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero.card {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border: 1px solid rgba(35, 75, 96, .24) !important;
  border-radius: 18px !important;
  min-height: 126px !important;
  padding: 26px 30px !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Ajuste final somente da faixa do dashboard. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border: 1px solid rgba(35, 75, 96, .24) !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Corrige somente a faixa do dashboard que ficou vazia. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border: 1px solid rgba(35, 75, 96, .24) !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Corrige somente o topo que ficou apagado. */
#appView.app-shell:not(.hidden-app) .header {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border-color: rgba(35, 75, 96, .24) !important;
}

#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) .header h1,
#appView.app-shell:not(.hidden-app) .header h2,
#appView.app-shell:not(.hidden-app) .header h3,
#appView.app-shell:not(.hidden-app) .header p,
#appView.app-shell:not(.hidden-app) .header span,
#appView.app-shell:not(.hidden-app) .header strong {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .header .user-avatar,
#appView.app-shell:not(.hidden-app) .header .avatar {
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) .header .link-btn,
#appView.app-shell:not(.hidden-app) .header #logoutBtn {
  background: rgba(255,255,255,.34) !important;
  border-color: rgba(35, 75, 96, .20) !important;
  color: #0b2f4a !important;
}

/* Remove as placas de fundo grandes e deixa a tela mais limpa. */
html,
body,
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background: #edf5f9 !important;
  background-image: none !important;
}

#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero * {
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) .side-menu {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border-color: rgba(35, 75, 96, .22) !important;
  box-shadow: 0 10px 24px rgba(6, 24, 38, .12) !important;
}

#appView.app-shell:not(.hidden-app) .side-menu * {
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border-color: rgba(35, 75, 96, .24) !important;
  box-shadow: 0 10px 24px rgba(6, 24, 38, .12), inset 0 1px 0 rgba(255,255,255,.64) !important;
}

/* Ajuste final apenas do topo que estava apagado. */
#appView.app-shell:not(.hidden-app) .header {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border-color: rgba(35, 75, 96, .24) !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) .header h1,
#appView.app-shell:not(.hidden-app) .header h2,
#appView.app-shell:not(.hidden-app) .header h3,
#appView.app-shell:not(.hidden-app) .header p,
#appView.app-shell:not(.hidden-app) .header span,
#appView.app-shell:not(.hidden-app) .header strong {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .header .user-avatar,
#appView.app-shell:not(.hidden-app) .header .avatar {
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) .header .link-btn,
#appView.app-shell:not(.hidden-app) .header #logoutBtn {
  background: rgba(255,255,255,.34) !important;
  border-color: rgba(35, 75, 96, .20) !important;
  color: #0b2f4a !important;
}

/* Corte final da sombra inferior. */
#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap {
  box-shadow: none !important;
}

/* Painel final do bloco Dashboard de atendimento. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero.card {
  background: linear-gradient(180deg, #dbe5ec, #cbd9e2) !important;
  border: 1px solid rgba(35, 75, 96, .24) !important;
  border-radius: 18px !important;
  min-height: 126px !important;
  padding: 26px 30px !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero h2,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero p {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Tema final absoluto: visual do login sem bordas no sistema inteiro. */
:root {
  --manitech-login-bg-1: #07324d;
  --manitech-login-bg-2: #08243d;
  --manitech-login-bg-3: #101c2b;
  --manitech-login-panel: #eef2f5;
  --manitech-login-panel-2: #e4ebf0;
  --manitech-login-inner: #f8fafc;
  --manitech-login-text: #0b2f4a;
  --manitech-login-muted: #61738b;
  --manitech-login-accent: #1d9bd0;
  --manitech-login-accent-2: #075678;
}

html,
body,
html:has(#appView.app-shell:not(.hidden-app)),
body:has(#appView.app-shell:not(.hidden-app)) {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(29, 155, 208, .24), transparent 28%),
    linear-gradient(115deg, var(--manitech-login-bg-1) 0%, var(--manitech-login-bg-2) 46%, var(--manitech-login-bg-3) 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto !important;
  background-color: var(--manitech-login-bg-2) !important;
}

#authView.auth-shell,
#appView.app-shell:not(.hidden-app) {
  background: transparent !important;
}

#authView .auth-card,
#appView.app-shell:not(.hidden-app) .side-menu,
#appView.app-shell:not(.hidden-app) .header,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero,
#appView.app-shell:not(.hidden-app) .tab-panel .card,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid,
#appView.app-shell:not(.hidden-app) .modal-card,
#appView.app-shell:not(.hidden-app) .generated-report-card,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#authView .field input,
#authView .field select,
#authView .field textarea,
#appView.app-shell:not(.hidden-app) .tab-panel .card-header,
#appView.app-shell:not(.hidden-app) .tab-panel .report-box,
#appView.app-shell:not(.hidden-app) .tab-panel .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .mini-metric,
#appView.app-shell:not(.hidden-app) .tab-panel .table-wrap,
#appView.app-shell:not(.hidden-app) .tab-panel table,
#appView.app-shell:not(.hidden-app) .tab-panel tbody td,
#appView.app-shell:not(.hidden-app) .tab-panel .field input,
#appView.app-shell:not(.hidden-app) .tab-panel .field select,
#appView.app-shell:not(.hidden-app) .tab-panel .field textarea,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .generated-report-body {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#authView,
#authView *,
#appView.app-shell:not(.hidden-app) .side-menu *,
#appView.app-shell:not(.hidden-app) .header *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-hero *,
#appView.app-shell:not(.hidden-app) .tab-panel .card *,
#appView.app-shell:not(.hidden-app) .tab-panel .table-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .form-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .report-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .admin-tools-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-panel *,
#appView.app-shell:not(.hidden-app) .tab-panel .generated-kpi-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .stat-card *,
#appView.app-shell:not(.hidden-app) .tab-panel .filters-grid *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel *,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#authView p,
#authView small,
#authView label,
#authView span,
#appView.app-shell:not(.hidden-app) p,
#appView.app-shell:not(.hidden-app) small,
#appView.app-shell:not(.hidden-app) label,
#appView.app-shell:not(.hidden-app) span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi span,
#appView.app-shell:not(.hidden-app) .dashboard-kpi small,
#appView.app-shell:not(.hidden-app) .performance-card span,
#appView.app-shell:not(.hidden-app) .performance-card small,
#appView.app-shell:not(.hidden-app) .dash-bar-row {
  color: var(--manitech-login-muted) !important;
}

#authView .btn-primary,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .tab-btn.active,
#appView.app-shell:not(.hidden-app) .btn-primary {
  background: linear-gradient(135deg, var(--manitech-login-accent), var(--manitech-login-accent-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#authView .btn-light,
#appView.app-shell:not(.hidden-app) .btn-light,
#appView.app-shell:not(.hidden-app) .side-nav-btn:not(.active),
#appView.app-shell:not(.hidden-app) .clock-box,
#appView.app-shell:not(.hidden-app) .user-box,
#appView.app-shell:not(.hidden-app) .sync-chip,
#appView.app-shell:not(.hidden-app) .side-sync-pill {
  background: rgba(255,255,255,.44) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .eyebrow,
#appView.app-shell:not(.hidden-app) .badge-count,
#appView.app-shell:not(.hidden-app) .badge-info,
#authView .eyebrow {
  background: #dff3fb !important;
  border-color: transparent !important;
  color: var(--manitech-login-accent-2) !important;
  box-shadow: none !important;
}

/* Reforco final das abas internas no padrao claro do login. */
#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid .stat-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-result-panel,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-responsibles,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-box,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-6 .stat-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-card {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--manitech-login-text) !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .card-header,
#appView.app-shell:not(.hidden-app) #tab-usuarios .card-header,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .card-header,
#appView.app-shell:not(.hidden-app) #tab-visitas .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-topbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card *,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card *,
#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid .stat-card *,
#appView.app-shell:not(.hidden-app) #tab-usuarios .form-card *,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-result-panel *,
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card *,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card *,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card *,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-card * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao label,
#appView.app-shell:not(.hidden-app) #tab-operacao small,
#appView.app-shell:not(.hidden-app) #tab-operacao p,
#appView.app-shell:not(.hidden-app) #tab-usuarios label,
#appView.app-shell:not(.hidden-app) #tab-usuarios small,
#appView.app-shell:not(.hidden-app) #tab-usuarios p,
#appView.app-shell:not(.hidden-app) #tab-admin-tools label,
#appView.app-shell:not(.hidden-app) #tab-admin-tools small,
#appView.app-shell:not(.hidden-app) #tab-admin-tools p,
#appView.app-shell:not(.hidden-app) #tab-visitas label,
#appView.app-shell:not(.hidden-app) #tab-visitas small,
#appView.app-shell:not(.hidden-app) #tab-visitas p,
#appView.app-shell:not(.hidden-app) #tab-relatorio label,
#appView.app-shell:not(.hidden-app) #tab-relatorio small,
#appView.app-shell:not(.hidden-app) #tab-relatorio p {
  color: var(--manitech-login-muted) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao input,
#appView.app-shell:not(.hidden-app) #tab-operacao select,
#appView.app-shell:not(.hidden-app) #tab-operacao textarea,
#appView.app-shell:not(.hidden-app) #tab-usuarios input,
#appView.app-shell:not(.hidden-app) #tab-usuarios select,
#appView.app-shell:not(.hidden-app) #tab-usuarios textarea,
#appView.app-shell:not(.hidden-app) #tab-admin-tools input,
#appView.app-shell:not(.hidden-app) #tab-admin-tools select,
#appView.app-shell:not(.hidden-app) #tab-admin-tools textarea,
#appView.app-shell:not(.hidden-app) #tab-visitas input,
#appView.app-shell:not(.hidden-app) #tab-visitas select,
#appView.app-shell:not(.hidden-app) #tab-visitas textarea,
#appView.app-shell:not(.hidden-app) #tab-relatorio input,
#appView.app-shell:not(.hidden-app) #tab-relatorio select,
#appView.app-shell:not(.hidden-app) #tab-relatorio textarea {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-body {
  background: var(--manitech-login-inner) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao table,
#appView.app-shell:not(.hidden-app) #tab-usuarios table,
#appView.app-shell:not(.hidden-app) #tab-visitas table,
#appView.app-shell:not(.hidden-app) #tab-relatorio table {
  background: var(--manitech-login-inner) !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao thead th,
#appView.app-shell:not(.hidden-app) #tab-usuarios thead th,
#appView.app-shell:not(.hidden-app) #tab-visitas thead th,
#appView.app-shell:not(.hidden-app) #tab-relatorio thead th {
  background: #e2ebf1 !important;
  color: var(--manitech-login-text) !important;
  border-color: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao tbody td,
#appView.app-shell:not(.hidden-app) #tab-usuarios tbody td,
#appView.app-shell:not(.hidden-app) #tab-visitas tbody td,
#appView.app-shell:not(.hidden-app) #tab-relatorio tbody td {
  background: #f8fafc !important;
  color: var(--manitech-login-text) !important;
  border-color: rgba(11, 47, 74, .08) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-usuarios .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-visitas .btn-primary,
#appView.app-shell:not(.hidden-app) #tab-relatorio .btn-primary {
  background: linear-gradient(135deg, var(--manitech-login-accent), var(--manitech-login-accent-2)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-usuarios .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-visitas .btn-secondary,
#appView.app-shell:not(.hidden-app) #tab-relatorio .btn-secondary {
  background: #a7b2bd !important;
  border-color: transparent !important;
  color: #0b2f4a !important;
  box-shadow: none !important;
}

/* ==========================================================
   CORREÇÃO DEFINITIVA - CINZA MAIS ESCURO SOMENTE NOS PAINÉIS
   Não altera o fundo geral do sistema, menu/body ou contraste interno.
   ========================================================== */
:root {
  --painel-marcado: #e7eff4;
  --painel-marcado-2: #dfe9ef;
  --painel-borda: #c7d6df;
  --painel-interno: #f8fafc;
}

#appView.app-shell:not(.hidden-app) {
  /* mantém o fundo original escuro do sistema; muda apenas a cor base dos painéis */
  --manitech-login-panel: var(--painel-marcado) !important;
  --manitech-login-panel-2: var(--painel-marcado-2) !important;
  --manitech-login-inner: var(--painel-interno) !important;
}

/* Painéis/containers principais de todas as telas */
#appView.app-shell:not(.hidden-app) .card,
#appView.app-shell:not(.hidden-app) .dashboard-hero,
#appView.app-shell:not(.hidden-app) .dash-panel,
#appView.app-shell:not(.hidden-app) .dashboard-chart-panel,
#appView.app-shell:not(.hidden-app) .sla-health-card,
#appView.app-shell:not(.hidden-app) .form-card,
#appView.app-shell:not(.hidden-app) .table-card,
#appView.app-shell:not(.hidden-app) .report-card,
#appView.app-shell:not(.hidden-app) .report-box,
#appView.app-shell:not(.hidden-app) .report-total-hours,
#appView.app-shell:not(.hidden-app) .admin-tools-card,
#appView.app-shell:not(.hidden-app) .admin-result-panel,
#appView.app-shell:not(.hidden-app) .generated-panel,
#appView.app-shell:not(.hidden-app) .generated-kpi-card,
#appView.app-shell:not(.hidden-app) .generated-report-shell,
#appView.app-shell:not(.hidden-app) .generated-report-sheet,
#appView.app-shell:not(.hidden-app) .modal-card {
  background: linear-gradient(180deg, var(--painel-marcado), var(--painel-marcado-2)) !important;
  border-color: var(--painel-borda) !important;
}

/* Cabeçalhos internos dos cards seguem a mesma cor do painel */
#appView.app-shell:not(.hidden-app) .card-header,
#appView.app-shell:not(.hidden-app) .report-table-header,
#appView.app-shell:not(.hidden-app) .generated-report-topbar,
#appView.app-shell:not(.hidden-app) .panel-title-row {
  background: transparent !important;
  border-color: rgba(11, 47, 74, .12) !important;
}

/* Áreas internas continuam claras para leitura: tabela, campos, gráfico e mini cards */
#appView.app-shell:not(.hidden-app) .dashboard-kpi,
#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) .table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-wrap,
#appView.app-shell:not(.hidden-app) .report-table-scroll,
#appView.app-shell:not(.hidden-app) .filters-grid,
#appView.app-shell:not(.hidden-app) .field input,
#appView.app-shell:not(.hidden-app) .field select,
#appView.app-shell:not(.hidden-app) .field textarea,
#appView.app-shell:not(.hidden-app) input,
#appView.app-shell:not(.hidden-app) select,
#appView.app-shell:not(.hidden-app) textarea {
  background: var(--painel-interno) !important;
  border-color: #d7e4ee !important;
}

/* Tabelas preservam contraste */
#appView.app-shell:not(.hidden-app) th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-usuarios th,
#appView.app-shell:not(.hidden-app) #tab-visitas th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th {
  background: #e7f0f6 !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) td,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td,
#appView.app-shell:not(.hidden-app) #tab-usuarios td,
#appView.app-shell:not(.hidden-app) #tab-visitas td,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td {
  background: #ffffff !important;
  color: #123047 !important;
  border-bottom-color: #d8e7ef !important;
}

#appView.app-shell:not(.hidden-app) tbody tr:hover td {
  background: #eef8fb !important;
}

/* Mantém fundo geral e menu do sistema como estavam. Não pintar a tela inteira. */
body:has(#appView.app-shell:not(.hidden-app)),
html:has(#appView.app-shell:not(.hidden-app)) {
  background-color: #08243d !important;
}

/* Dashboard: contraste dos rótulos e fundo branco do gráfico mensal. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row strong,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
  color: #0b2f4a !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap,
#appView.app-shell:not(.hidden-app) #tab-dashboard #dashboardMonthlyChart {
  background: #ffffff !important;
}

/* Dashboard: acabamento visual fino. */
#appView.app-shell:not(.hidden-app) .side-brand {
  background: linear-gradient(180deg, #123f5c, #0b2f4a) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 18px !important;
  padding: 16px 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .22)) !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active span,
#appView.app-shell:not(.hidden-app) .side-nav-btn.active strong {
  color: #ffffff !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-nav-btn.active .side-icon {
  background: rgba(255,255,255,.18) !important;
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) .performance-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard .performance-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  border: 1px solid rgba(29, 155, 208, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 22px rgba(11, 47, 74, .06) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bars-panel {
  background: linear-gradient(180deg, #edf5f9, #e5eff5) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bars {
  max-width: 92% !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row b {
  background: #dceaf2 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring {
  box-shadow: 0 14px 28px rgba(11, 47, 74, .12) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring::before {
  background: #f7fbff !important;
  box-shadow: inset 0 0 0 1px rgba(29, 155, 208, .16) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring span {
  color: #082f49 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring small {
  color: #3f6074 !important;
  text-shadow: none !important;
}

/* Menu lateral: logo limpo e rodape legivel. */
#appView.app-shell:not(.hidden-app) .side-brand {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 8px 18px !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-logo {
  background: transparent !important;
  box-shadow: none !important;
  filter: brightness(0) saturate(100%) invert(15%) sepia(43%) saturate(1255%) hue-rotate(168deg) brightness(86%) contrast(95%) drop-shadow(0 8px 12px rgba(11, 47, 74, .18)) !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-text strong {
  color: #0b2f4a !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-brand-text small {
  color: #1d9bd0 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-footer {
  background: rgba(255,255,255,.44) !important;
  border: 1px solid rgba(11, 47, 74, .10) !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span {
  color: #0b2f4a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-footer small {
  color: #168eb0 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

/* Operacao: paineis na mesma cor clara do sistema. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  background: linear-gradient(180deg, var(--painel-marcado), var(--painel-marcado-2)) !important;
  border-color: var(--painel-borda) !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  background: transparent !important;
  border-color: rgba(11, 47, 74, .12) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .card-header h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card label,
#appView.app-shell:not(.hidden-app) #tab-operacao .stat-card span,
#appView.app-shell:not(.hidden-app) #tab-operacao .stat-card strong {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card input,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card select,
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card textarea,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid input,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid select,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap {
  background: #ffffff !important;
  border-color: #cfe0ea !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  background: #e7f0f6 !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  background: #ffffff !important;
  color: #123047 !important;
}

/* Operacao: correcao visual forte para remover blocos escuros. */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout,
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  background: transparent !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  border: 1px solid #c7d6df !important;
  box-shadow: none !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background: #e7eff4 !important;
  border-bottom: 1px solid rgba(11, 47, 74, .12) !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field.full,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions.full {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm label,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid label,
#appView.app-shell:not(.hidden-app) #tab-operacao .card-header h2 {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm input,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm select,
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm textarea,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid input,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid select {
  background: #ffffff !important;
  border: 1px solid #cfe0ea !important;
  color: #0b2f4a !important;
  box-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid {
  background: #e7eff4 !important;
  border-top: 1px solid rgba(11, 47, 74, .12) !important;
  border-bottom: 1px solid rgba(11, 47, 74, .12) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .compact-stats .stat-card {
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  border: 1px solid #c7d6df !important;
  color: #0b2f4a !important;
  opacity: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span,
#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong,
#appView.app-shell:not(.hidden-app) #tab-operacao .compact-stats .stat-card span,
#appView.app-shell:not(.hidden-app) #tab-operacao .compact-stats .stat-card strong {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-wrap {
  background: #ffffff !important;
  border: 1px solid #cfe0ea !important;
}

/* Operacao: leitura do cabecalho e filtros do painel. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  background: #e7eff4 !important;
  border-bottom: 1px solid rgba(11, 47, 74, .14) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid {
  background: #e7eff4 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(11, 47, 74, .14) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header h2,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .filters-grid label,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .field label,
#appView.app-shell:not(.hidden-app) #tab-operacao #recordsInfo {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #recordsInfo {
  background: #dff3fb !important;
  border-color: rgba(29, 155, 208, .36) !important;
}

/* Relatorio mensal: reforco de leitura no topo e indicadores. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card {
  background: #e7eff4 !important;
  border: 1px solid #c7d6df !important;
  color: #0b2f4a !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-toolbar {
  background: #e7eff4 !important;
  border-bottom: 1px solid rgba(11, 47, 74, .14) !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-toolbar h2,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card span,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card strong,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header h3,
#appView.app-shell:not(.hidden-app) #tab-relatorio #reportTableInfo,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-total-hours * {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card {
  background: #ffffff !important;
  border: 1px solid #cfe0ea !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
  opacity: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card span {
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-stats-8 .stat-card strong {
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-filters select,
#appView.app-shell:not(.hidden-app) #tab-relatorio #reportStatusFilter {
  background: #ffffff !important;
  border: 1px solid #cfe0ea !important;
  color: #0b2f4a !important;
  opacity: 1 !important;
}

/* Painel de chamados: 10 colunas apos remover Assunto. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  table-layout: fixed !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  padding: 10px 7px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 11px !important;
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  max-width: none !important;
  font-size: 10.5px !important;
  padding: 5px 8px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 14% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 16% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 7% !important; }

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) {
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Painel de chamados: mais leitura e mais espaco para acao realizada. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  font-size: 12.5px !important;
  line-height: 1.38 !important;
  padding: 11px 8px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  font-size: 11.5px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  font-size: 11.5px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 15% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 20% !important; }

/* Relatorio mensal: tabela sem Assunto, no mesmo padrao de leitura. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td {
  font-size: 12px !important;
  line-height: 1.35 !important;
  padding: 10px 7px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th {
  font-size: 11px !important;
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table .badge {
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(1) { width: 5% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(2) { width: 5% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(3) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(4) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(5) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(6) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(7) { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(8) { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(9) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(10) { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(11) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(12),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(12) { width: 12% !important; }

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(12),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(12),
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table th:nth-child(12),
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table td:nth-child(12) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Painel de chamados: sem quebra de linha em nenhuma coluna. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .nowrap,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .ellipsis-cell,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .badge {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 15% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 18% !important; }

/* Operacao: formulario mais respirado e painel com bordas iguais. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  border: 1px solid #c7d6df !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #description {
  min-height: 185px !important;
  height: 185px !important;
  resize: vertical !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field:has(#assignedTo) {
  margin-top: 26px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  margin-top: 26px !important;
  padding-bottom: 28px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  border-radius: 18px 18px 0 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid {
  border-radius: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  margin: 12px !important;
  padding: 0 !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  border-radius: 16px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:first-child {
  border-top-left-radius: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:last-child {
  border-top-right-radius: 16px !important;
}

/* Operacao: descricao maior e painel direito no mesmo acabamento do formulario. */
#appView.app-shell:not(.hidden-app) #tab-operacao #description {
  min-height: 260px !important;
  height: 260px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field:has(#assignedTo) {
  margin-top: 34px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions {
  margin-top: 32px !important;
  padding-bottom: 34px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  border: 1px solid #c7d6df !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  border-radius: 18px 18px 0 0 !important;
  border-bottom: 1px solid rgba(11, 47, 74, .14) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  margin: 0 14px 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 0 14px 14px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  overflow: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  border-radius: 0 0 14px 14px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:first-child,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:last-child {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Operacao: acabamento final das bordas do painel de chamados. */
#appView.app-shell:not(.hidden-app) #tab-operacao .form-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  border: 1px solid #c7d6df !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  padding-bottom: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header {
  border-radius: 18px 18px 0 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  margin: 12px 14px 0 !important;
  padding: 0 !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:first-child {
  border-top-left-radius: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th:last-child {
  border-top-right-radius: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px !important;
}

/* Operacao: reforca apenas a borda interna da tabela, sem alterar a largura da tela. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  margin: 12px 14px 14px !important;
  width: auto !important;
  max-width: none !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow: auto !important;
  scrollbar-gutter: stable both-edges !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap table {
  margin: 0 !important;
}

/* Operacao: cabecalho da tabela fica fixo durante a rolagem interna. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 21 !important;
  background: #e7f0f6 !important;
  box-shadow: inset 0 -1px 0 #b9d0dd !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap thead th:first-child {
  left: 0 !important;
}

/* Operacao: tabela sem rolagem horizontal; textos longos usam reticencias. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  --ticket-col-number: 4.5%;
  --ticket-col-requester: 13.5%;
  --ticket-col-department: 10%;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  overflow: visible !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap thead {
  position: static !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) {
  width: var(--ticket-col-number) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) {
  width: var(--ticket-col-requester) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) {
  width: var(--ticket-col-department) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4)  { width: 14% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5)  { width: 6.5% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6)  { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7)  { width: 10.5% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8)  { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),  #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9)  { width: 12.5% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10), #appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 10.5% !important; }

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th {
  top: 0 !important;
  z-index: 21 !important;
  background: #e7f0f6 !important;
  left: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card tbody td {
  position: static !important;
  left: auto !important;
  box-shadow: none !important;
}

/* Relatorio mensal: garante a borda direita do quadro da tabela. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap {
  box-sizing: border-box !important;
  position: relative !important;
  margin: 12px 14px 14px !important;
  width: auto !important;
  max-width: none !important;
  background: #ffffff !important;
  border: 1px solid #c7d6df !important;
  border-right: 2px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 2px !important;
  background: #c7d6df !important;
  pointer-events: none !important;
  z-index: 80 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll {
  border-left: 0 !important;
  border-right: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll {
  box-shadow: inset -1px 0 0 #c7d6df !important;
  overflow-x: hidden !important;
}

/* Operacao e relatorio: mesmo padrao visual dos quadros de tabela. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-wrap {
  background: #ffffff !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card {
  padding-bottom: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-header {
  background: #ffffff !important;
  border-bottom: 1px solid #c7d6df !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 18px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid {
  background: #ffffff !important;
  border-bottom: 1px solid #c7d6df !important;
  border-left: 0 !important;
  border-right: 0 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: inset -1px 0 0 #c7d6df !important;
  margin: 0 !important;
  outline: 0 !important;
  overflow-x: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card table,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  border-radius: 0 !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card thead th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table thead th {
  background: #e7f0f6 !important;
  border-top: 0 !important;
}

/* Operacao: mesmo respiro lateral do bloco Atendimentos do mes. */
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card {
  box-sizing: border-box !important;
  margin: 12px 14px 14px !important;
  width: auto !important;
  max-width: calc(100% - 28px) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card .card-header,
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card > .filters-grid,
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card .table-wrap {
  max-width: 100% !important;
}

/* Chamados: painel direito com o mesmo respiro do Relatorio mensal. */
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 14px !important;
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  border: 1px solid #c7d6df !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .stats-grid {
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card {
  margin: 14px 0 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Chamados: acabamento corrigido, sem painel extra envolvendo KPIs e filtros. */
#appView.app-shell:not(.hidden-app) #tab-operacao .content-area {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
  outline: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .stats-grid {
  margin: 0 !important;
  outline: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card {
  background: linear-gradient(180deg, #e7eff4, #dfe9ef) !important;
  border: 1px solid #c7d6df !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: 100% !important;
  outline: 0 !important;
  overflow: hidden !important;
  padding-bottom: 14px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(11, 47, 74, .12) !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 18px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card > .filters-grid {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  outline: 0 !important;
  padding: 18px 18px 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card .table-wrap {
  background: #ffffff !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  margin: 12px 14px 0 !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .table-card .table-wrap table {
  border-radius: 16px !important;
  margin: 0 !important;
}


/* ==========================================================
   AJUSTE PONTUAL ORLANDO - DASHBOARD SEM BANNER SUPERIOR
   Mantém o restante do sistema intacto.
   ========================================================== */
#appView.app-shell:not(.hidden-app) #tab-dashboard > .dashboard-hero {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard.tab-panel.active {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard.tab-panel:not(.active) {
  display: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
  min-height: 76px !important;
  padding: 12px 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi strong {
  font-size: 30px !important;
  line-height: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-executive-grid {
  gap: 10px !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-panel {
  min-height: 190px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 16px 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel > .panel-title-row,
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-panel > .dashboard-chart-legend {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
  height: clamp(280px, 32vh, 380px) !important;
  min-height: 280px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
    height: 300px !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-wrap {
    height: 280px !important;
  }
}


/* ===== DASHBOARD: CARD CANCELADOS ===== */
#tab-dashboard .dashboard-kpi-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

#tab-dashboard .kpi-dot.canceled {
  background: linear-gradient(135deg, #94a3b8, #475569) !important;
}

@media (max-width: 1450px) {
  #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

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

@media (max-width: 760px) {
  #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== AJUSTE FINAL: CARDS DO DASHBOARD EM UMA LINHA E CENTRALIZADOS ===== */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 auto 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
  min-width: 0 !important;
  min-height: 68px !important;
  padding: 12px 12px !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-areas:
    'dot label'
    'dot value'
    'dot small' !important;
  column-gap: 10px !important;
  row-gap: 1px !important;
  border-radius: 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi .kpi-dot {
  width: 30px !important;
  height: 30px !important;
  border-radius: 11px !important;
  align-self: center !important;
  box-shadow: 0 10px 18px rgba(15,23,42,.10) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi span {
  font-size: 10px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi strong {
  font-size: clamp(18px, 1.15vw, 28px) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi small {
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1600px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    gap: 8px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi {
    padding: 10px 10px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi .kpi-dot {
    width: 28px !important;
    height: 28px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi span,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi small {
    font-size: 9px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi strong {
    font-size: clamp(17px, 1vw, 24px) !important;
  }
}

@media (max-width: 1450px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== AJUSTE FINAL: AUMENTAR LETRAS E NÚMEROS DO DASHBOARD ===== */
#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row {
  grid-template-columns: 150px 1fr 42px !important;
  font-size: 13px !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row span {
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row strong {
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend {
  gap: 14px !important;
  flex-wrap: wrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .legend-dot {
  width: 10px !important;
  height: 10px !important;
}

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row {
    grid-template-columns: 138px 1fr 38px !important;
    font-size: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row span,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dash-bar-row strong,
  #appView.app-shell:not(.hidden-app) #tab-dashboard .dashboard-chart-legend span {
    font-size: 11px !important;
  }
}

/* ===== AJUSTE FINAL - SLA RING MAIOR E COM RELEVO ===== */
#appView.app-shell:not(.hidden-app) .sla-health-card {
  min-width: 260px !important;
  gap: 14px !important;
}

#appView.app-shell:not(.hidden-app) .sla-health-card h3 {
  max-width: 210px !important;
  font-size: 24px !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring {
  --ring-size: 172px;
  width: var(--ring-size) !important;
  height: var(--ring-size) !important;
  position: relative !important;
  isolation: isolate !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.68) 0, rgba(255,255,255,.18) 18%, transparent 42%),
    conic-gradient(from -90deg, #22c55e 0 var(--sla), rgba(206, 221, 232, .42) var(--sla) 100%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)) !important;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.36),
    inset 0 -14px 24px rgba(3, 12, 20, .28),
    0 22px 44px rgba(0,0,0,.24),
    0 8px 16px rgba(11, 107, 86, .18) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::before {
  content: "" !important;
  position: absolute !important;
  inset: 18px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(180deg, rgba(16, 40, 57, .98) 0%, rgba(8, 26, 39, .98) 100%) !important;
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,.08),
    inset 0 -10px 18px rgba(0,0,0,.28),
    0 3px 10px rgba(0,0,0,.22) !important;
  z-index: 0 !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring::after {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  left: 26px !important;
  width: 46% !important;
  height: 24% !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)) !important;
  transform: rotate(-18deg) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring span,
#appView.app-shell:not(.hidden-app) .sla-ring small {
  position: relative !important;
  z-index: 2 !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring span {
  font-size: 44px !important;
  line-height: .95 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  color: #f8fdff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28) !important;
}

#appView.app-shell:not(.hidden-app) .sla-ring small {
  font-size: 12px !important;
  margin-top: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #bfe6ef !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.18) !important;
}

@media (max-width: 1360px) {
  #appView.app-shell:not(.hidden-app) .sla-ring {
    --ring-size: 158px;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) .sla-ring {
    --ring-size: 148px;
  }
}

/* Dashboard: anel de saude com relevo limpo, sem reflexos manchados. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-health-card {
  align-items: center !important;
  justify-items: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring {
  --ring-size: 172px;
  --ring-progress: var(--sla, calc(var(--percent, 100) * 1%));
  width: var(--ring-size) !important;
  height: var(--ring-size) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  background: conic-gradient(from -90deg, #22c55e 0 var(--ring-progress), #d9e7ef var(--ring-progress) 100%) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.95),
    inset 0 -12px 18px rgba(9, 41, 63, .14),
    0 18px 30px rgba(11, 47, 74, .18),
    0 4px 8px rgba(11, 47, 74, .10) !important;
  isolation: isolate !important;
  overflow: visible !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring::before {
  content: "" !important;
  position: absolute !important;
  inset: 24px !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #fafdff 0%, #e8f2f8 100%) !important;
  box-shadow:
    inset 0 4px 8px rgba(255,255,255,.96),
    inset 0 -9px 14px rgba(11, 47, 74, .11),
    0 2px 7px rgba(11, 47, 74, .10) !important;
  z-index: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring::after {
  content: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring strong,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > div {
  position: relative !important;
  z-index: 1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > div {
  display: grid !important;
  place-items: center !important;
  gap: 4px !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring strong {
  color: #0b2f4a !important;
  font-size: 44px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.86) !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > div > span {
  color: #3f6074 !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  position: relative !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
}

@media (max-width: 1360px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring {
    --ring-size: 158px;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring {
    --ring-size: 148px;
  }
}

/* Relatorio mensal: titulos dos resumos no mesmo tom da tabela de atendimentos. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-grid .report-box h3 {
  background: #e7f0f6 !important;
  border-bottom: 1px solid #c7d6df !important;
  color: #0b2f4a !important;
  text-shadow: none !important;
}

/* Dashboard: centraliza o percentual e o texto do anel SLA. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring {
  align-content: center !important;
  justify-content: center !important;
  text-align: center !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > div {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  justify-content: center !important;
  left: auto !important;
  margin: 0 !important;
  max-width: 86px !important;
  position: relative !important;
  right: auto !important;
  text-align: center !important;
  top: auto !important;
  transform: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > span,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring strong {
  display: block !important;
  line-height: .88 !important;
  margin: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring small,
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > div > span {
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  position: static !important;
  right: auto !important;
  text-align: center !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
}

/* Visita tecnica: painel e tabela no mesmo padrao de Chamados/Relatorio. */
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  box-sizing: border-box !important;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important;
  gap: 14px !important;
  max-width: 100% !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .content-area {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-card {
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 14px 14px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(11, 47, 74, .12) !important;
  margin: 0 -14px !important;
  padding: 18px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap {
  background: #ffffff !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  box-sizing: border-box !important;
  margin: 14px 0 0 !important;
  max-width: 100% !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow: hidden !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap table {
  border-collapse: collapse !important;
  border-radius: 16px !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(1) { width: 7% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(2) { width: 15% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(3) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(4) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(5) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(6) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(7) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(8) { width: 14% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(9) { width: 8% !important; }

#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell {
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#appView.app-shell:not(.hidden-app) #tab-visitas .visit-edit-btn,
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-delete-btn {
  flex: 0 1 auto !important;
  min-width: 48px !important;
  padding: 6px 7px !important;
}

/* Usuarios: painel e tabela com borda e respiro interno. */
#appView.app-shell:not(.hidden-app) #tab-usuarios .content-area {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card {
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 14px 14px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(11, 47, 74, .12) !important;
  margin: 0 -14px !important;
  padding: 18px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap {
  background: #ffffff !important;
  border: 1px solid #c7d6df !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  box-sizing: border-box !important;
  margin: 14px 0 0 !important;
  max-width: 100% !important;
  outline: 1px solid #c7d6df !important;
  outline-offset: -1px !important;
  overflow: hidden !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap table {
  border-collapse: collapse !important;
  border-radius: 16px !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(1) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(2) { width: 22% !important; }
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(3) { width: 28% !important; }
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(4) { width: 13% !important; }
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(5) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap td:nth-child(6) { width: 14% !important; }

@media (max-width: 1180px) {
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout {
    grid-template-columns: 1fr !important;
  }
}

/* Abas internas: mantem respiro direito igual ao lado esquerdo. */
#appView.app-shell:not(.hidden-app) #tab-operacao .layout,
#appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
#appView.app-shell:not(.hidden-app) #tab-visitas .layout {
  box-sizing: border-box !important;
  margin-right: 14px !important;
  max-width: calc(100% - 14px) !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-card,
#appView.app-shell:not(.hidden-app) #tab-dashboard {
  box-sizing: border-box !important;
  margin-right: 14px !important;
  max-width: calc(100% - 14px) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
#appView.app-shell:not(.hidden-app) #tab-usuarios .content-area,
#appView.app-shell:not(.hidden-app) #tab-visitas .content-area,
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
  #appView.app-shell:not(.hidden-app) #tab-usuarios .layout,
  #appView.app-shell:not(.hidden-app) #tab-visitas .layout,
  #appView.app-shell:not(.hidden-app) #tab-relatorio .report-card,
  #appView.app-shell:not(.hidden-app) #tab-dashboard {
    margin-right: 0 !important;
    max-width: 100% !important;
  }
}

/* Usuarios cadastrados: fecha visualmente a borda direita do quadro interno. */
#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card {
  border: 1px solid #c7d6df !important;
  padding: 0 18px 18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-card .card-header {
  margin-left: -18px !important;
  margin-right: -18px !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap {
  border: 1px solid #c7d6df !important;
  border-right: 2px solid #c7d6df !important;
  box-shadow: inset 0 0 0 1px #c7d6df !important;
  margin: 14px 0 0 !important;
  max-height: 468px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
  scrollbar-gutter: stable !important;
  width: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 6 !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 2px !important;
  background: #c7d6df !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

#appView.app-shell:not(.hidden-app) #tab-usuarios .table-wrap table {
  min-width: 100% !important;
  width: 100% !important;
}

/* Chamados: sete KPIs na mesma linha incluindo Cancelados. */
#appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid.kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card,
#appView.app-shell:not(.hidden-app) #tab-operacao .compact-stats .stat-card {
  min-height: 66px !important;
  min-width: 0 !important;
  padding: 10px 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span {
  font-size: 9px !important;
  line-height: 1.05 !important;
  margin-bottom: 5px !important;
  padding-left: 4px !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong {
  font-size: clamp(21px, 1.35vw, 29px) !important;
  line-height: 1 !important;
  padding-left: 4px !important;
}

@media (max-width: 1450px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid.kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid.kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================
   AJUSTE PONTUAL - LOGO JLX TECH E RODAPE DA VERSAO
   Pedido: mexer somente no azul do "TECNOLOGIA" e no texto inferior.
   ========================================================== */
#appView.app-shell:not(.hidden-app) .side-brand-text small,
#appView.app-shell:not(.hidden-app) .side-brand::after {
  color: #0b2f4a !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span,
#appView.app-shell:not(.hidden-app) .side-footer small {
  color: #0b2f4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-footer small {
  font-weight: 900 !important;
}

/* Administracao: editor do chamado no mesmo padrao claro dos demais paineis. */
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-tools-card,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor {
  background: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  background-image: linear-gradient(180deg, var(--manitech-login-panel), var(--manitech-login-panel-2)) !important;
  border-color: var(--painel-borda) !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor {
  border-top: 1px solid var(--painel-borda) !important;
  margin: 16px -18px -18px !important;
  padding: 18px 18px 20px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-grid {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--manitech-login-text) !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm *,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-grid * {
  color: var(--manitech-login-text) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-grid label {
  color: var(--manitech-login-muted) !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions .btn-primary {
  color: #ffffff !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions .btn-light,
#appView.app-shell:not(.hidden-app) #tab-admin-tools .admin-edit-actions .btn-secondary {
  color: var(--manitech-login-text) !important;
}

/* Administracao: formulario de edicao mais compacto e proporcional. */
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor {
  margin-top: 12px !important;
  padding: 14px 14px 16px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
  align-items: end !important;
  column-gap: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(190px, 1fr)) !important;
  row-gap: 10px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field {
  gap: 5px !important;
  min-width: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm label {
  font-size: 10px !important;
  line-height: 1.1 !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm input,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm select {
  border-radius: 11px !important;
  font-size: 12px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm textarea {
  border-radius: 11px !important;
  font-size: 12px !important;
  min-height: 48px !important;
  padding: 9px 12px !important;
  resize: vertical !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketSubject) {
  grid-column: span 2 !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketDescription),
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketActionTaken),
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketEditReason) {
  grid-column: span 5 !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .admin-edit-actions.full {
  align-items: center !important;
  grid-column: 1 / -1 !important;
  justify-content: center !important;
  padding-top: 2px !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .admin-edit-actions .btn {
  min-height: 38px !important;
  padding: 9px 14px !important;
}

@media (max-width: 1500px) {
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketDescription),
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketActionTaken),
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketEditReason) {
    grid-column: span 4 !important;
  }
}

@media (max-width: 1050px) {
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full,
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketSubject),
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketDescription),
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketActionTaken),
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketEditReason) {
    grid-column: 1 / -1 !important;
  }
}

/* Administracao: contem o editor dentro das bordas do card. */
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor {
  box-sizing: border-box !important;
  margin: 12px 18px 0 !important;
  max-width: calc(100% - 36px) !important;
  overflow: hidden !important;
  padding: 14px 16px 18px !important;
  width: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
  box-sizing: border-box !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  max-width: 100% !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm input,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm select,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm textarea {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full,
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketSubject),
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketDescription),
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketActionTaken),
#appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm .field.full:has(#adminTicketEditReason) {
  grid-column: 1 / -1 !important;
}

@media (max-width: 1050px) {
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditor {
    margin: 10px 10px 0 !important;
    max-width: calc(100% - 20px) !important;
    padding: 12px !important;
  }

  #appView.app-shell:not(.hidden-app) #tab-admin-tools #adminTicketEditForm {
    grid-template-columns: 1fr !important;
  }
}

/* Rodape lateral: somente texto, sem quadro, com leitura mais nitida. */
#appView.app-shell:not(.hidden-app) .side-footer {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: auto 0 0 !important;
  padding: 8px 4px 10px !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span,
#appView.app-shell:not(.hidden-app) .side-footer small {
  color: #0b2f4a !important;
  display: block !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#appView.app-shell:not(.hidden-app) .side-footer span {
  font-size: 12px !important;
  font-weight: 900 !important;
}

#appView.app-shell:not(.hidden-app) .side-footer small {
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Respeita o atributo hidden nos menus restritos, mesmo com display flex global. */
#appView.app-shell:not(.hidden-app) .tab-btn[data-tab="usuarios"][hidden],
#appView.app-shell:not(.hidden-app) .tab-btn[data-tab="admin-tools"][hidden],
#appView.app-shell:not(.hidden-app) .tab-btn[data-tab="visitas"][hidden] {
  display: none !important;
}

/* Chamados: marcadores coloridos no mesmo padrao visual do Dashboard. */
#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 8px !important;
  align-content: center !important;
  align-items: center !important;
  text-align: left !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding-left: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  padding-left: 0 !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card small {
  grid-column: 2 !important;
  grid-row: 3 !important;
  padding-left: 0 !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card::before {
  content: "" !important;
  display: block !important;
  position: static !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  transform: none !important;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .16) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(1)::before {
  background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(2)::before {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(3)::before {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(4)::before {
  background: linear-gradient(135deg, #2dd4bf, #0f766e) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(5)::before {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(6)::before {
  background: linear-gradient(135deg, #94a3b8, #475569) !important;
}

#appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card:nth-child(7)::before {
  background: linear-gradient(135deg, #fb7185, #dc2626) !important;
}
/* Manual do usuário integrado ao sistema */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.manual-tab-panel.active {
  min-height: calc(100vh - 190px);
}

#appView.app-shell:not(.hidden-app) .manual-host-card {
  padding: 0 !important;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  background: #f4f8fb !important;
  border: 1px solid rgba(35, 75, 96, .2) !important;
  border-radius: 18px !important;
}

.manual-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 190px);
  height: 900px;
  border: 0;
  background: #f4f8fb;
}

@media (max-width: 760px) {
  .manual-tab-panel.active,
  #appView.app-shell:not(.hidden-app) .manual-host-card,
  .manual-frame {
    min-height: calc(100vh - 150px);
  }

  .manual-frame {
    height: 780px;
  }
}

/* Login: fundo azul em toda a tela, sem recorte diagonal. */
html:has(#authView:not(.hidden-app)),
body:has(#authView:not(.hidden-app)) {
  background: #08243d !important;
  background-image: none !important;
}

#authView.auth-shell:not(.hidden-app) {
  width: 100% !important;
  min-height: 100vh !important;
  background-color: #08243d !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(29, 155, 208, .28), transparent 31%),
    radial-gradient(circle at 82% 88%, rgba(14, 116, 144, .18), transparent 34%),
    linear-gradient(135deg, #07324d 0%, #08243d 52%, #101c2b 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto !important;
  background-position: 0 0, 0 0, center, center, center !important;
  background-attachment: fixed !important;
}

#authView.auth-shell:not(.hidden-app)::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) !important;
  opacity: .12 !important;
}

/* Modal do chamado: cancelamento separado da exclusão e do status. */
.modal-danger-actions,
.modal-cancel-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#ticketModal .modal-cancel-panel {
  padding: 15px;
  border: 1px solid rgba(185, 28, 28, .22);
  border-radius: 14px;
  background: #fff5f5 !important;
}

#ticketModal .modal-cancel-panel[hidden] {
  display: none !important;
}

#ticketModal .modal-cancel-panel label {
  color: #7f1d1d !important;
}

#ticketModal .modal-cancel-panel small {
  color: #7f1d1d !important;
  opacity: .8 !important;
}

#ticketModal #modalCancelReason {
  min-height: 96px !important;
  background: #ffffff !important;
  border-color: rgba(185, 28, 28, .25) !important;
}

#ticketModal .modal-cancel-panel-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

/* Relatorio mensal: linhas compactas, com reticencias em aprovacao e acao tomada. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  min-width: 1840px !important;
  table-layout: fixed !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  vertical-align: middle !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(1) { width: 80px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(2) { width: 80px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(3) { width: 170px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(4) { width: 180px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(5) { width: 150px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(6) { width: 150px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(7) { width: 150px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(8) { width: 120px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(9) {
  width: 170px !important;
  max-width: 170px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(10) { width: 150px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(11) { width: 160px !important; }
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(12),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(12) { width: 220px !important; }

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(13),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(13) {
  width: 280px !important;
  max-width: 280px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Relatorio mensal: impede texto de uma coluna invadir a proxima. */
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table th,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(11) {
  max-width: 160px !important;
}

@media (max-width: 620px) {
  #ticketModal .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #ticketModal .modal-actions-right,
  #ticketModal .modal-danger-actions {
    justify-content: stretch;
  }

  #ticketModal .modal-actions .btn {
    flex: 1 1 auto;
  }
}

/* Modal de atendimento: mais espaco para consultar a acao tomada sem rolagem. */
#ticketModal {
  padding: 6px !important;
}

#ticketModal .modal-card {
  width: min(98vw, 1320px) !important;
  max-width: 1320px !important;
  max-height: calc(100vh - 12px) !important;
  display: flex;
  flex-direction: column;
}

#ticketModal .modal-header,
#ticketModal .modal-actions {
  flex: 0 0 auto;
}

#ticketModal .modal-body {
  max-height: none !important;
  min-height: 0;
  overflow-y: auto;
}

#ticketModal #modalActionTaken {
  min-height: clamp(340px, 46vh, 560px) !important;
  height: clamp(340px, 46vh, 560px) !important;
}

@media (max-height: 780px), (max-width: 620px) {
  #ticketModal {
    padding: 8px !important;
  }

  #ticketModal .modal-card {
    max-height: calc(100vh - 16px) !important;
  }

  #ticketModal #modalActionTaken {
    min-height: 200px !important;
    height: 28vh !important;
  }
}

/* Chamados e relatorio: exibe separadamente descricao e acao realizada. */
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(1) { width: 4% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(2) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(3) { width: 8% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(4) { width: 11% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(5) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(6) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(7) { width: 9% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(8) { width: 6% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(9) { width: 10% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10) { width: 12% !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card th:nth-child(11),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) { width: 13% !important; }

#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-operacao .table-card td:nth-child(11) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table-scroll,
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-table-wrap {
  overflow-x: auto !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table {
  min-width: 2120px !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(13),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(13),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table th:nth-child(14),
#appView.app-shell:not(.hidden-app) #tab-relatorio .report-table td:nth-child(14) {
  width: 280px !important;
  max-width: 280px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table {
  min-width: 2120px !important;
}

#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table th:nth-child(13),
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table td:nth-child(13),
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table th:nth-child(14),
#appView.app-shell:not(.hidden-app) #tab-relatorio .generated-report-table td:nth-child(14) {
  width: 280px !important;
}

/* Pre-visualizacao do relatorio mensal: distribui as 14 colunas detalhadas. */
.generated-table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.generated-report-table {
  width: 100% !important;
  min-width: 1050px !important;
  table-layout: fixed !important;
}

.generated-report-table th:nth-child(1),  .generated-report-table td:nth-child(1)  { width: 6% !important; }
.generated-report-table th:nth-child(2),  .generated-report-table td:nth-child(2)  { width: 4% !important; }
.generated-report-table th:nth-child(3),  .generated-report-table td:nth-child(3)  { width: 6% !important; }
.generated-report-table th:nth-child(4),  .generated-report-table td:nth-child(4)  { width: 7% !important; }
.generated-report-table th:nth-child(5),  .generated-report-table td:nth-child(5)  { width: 6% !important; }
.generated-report-table th:nth-child(6),  .generated-report-table td:nth-child(6)  { width: 6% !important; }
.generated-report-table th:nth-child(7),  .generated-report-table td:nth-child(7)  { width: 6% !important; }
.generated-report-table th:nth-child(8),  .generated-report-table td:nth-child(8)  { width: 6% !important; }
.generated-report-table th:nth-child(9),  .generated-report-table td:nth-child(9)  { width: 6% !important; }
.generated-report-table th:nth-child(10), .generated-report-table td:nth-child(10) { width: 6% !important; }
.generated-report-table th:nth-child(11), .generated-report-table td:nth-child(11) { width: 6% !important; }
.generated-report-table th:nth-child(12), .generated-report-table td:nth-child(12) { width: 7% !important; }
.generated-report-table th:nth-child(13), .generated-report-table td:nth-child(13) { width: 12% !important; }
.generated-report-table th:nth-child(14), .generated-report-table td:nth-child(14) { width: 16% !important; }

.generated-report-table th:nth-child(13),
.generated-report-table td:nth-child(13),
.generated-report-table th:nth-child(14),
.generated-report-table td:nth-child(14) {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}

/* ===== VALORES DO RELATORIO (R$ 180/H) ===== */
#tab-relatorio .report-money-cell,
.generated-report-table .report-money-cell {
  color: #0b3a56 !important;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap !important;
}

#tab-relatorio .report-amount-cell,
.generated-report-table .report-amount-cell {
  background: #f0f9ff !important;
  color: #075985 !important;
}

.report-total-hours > div,
.generated-report-footer > div {
  display: grid;
  gap: 4px;
}

.report-total-hours {
  justify-content: flex-end !important;
}

.report-total-hours > div:last-child,
.generated-report-footer > div:last-child {
  text-align: right;
}

/* ===== RELATORIO DE FATURAMENTO ===== */
.billing-kpi-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
}

.generated-report-table.billing-report-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.billing-report-table th:nth-child(1), .billing-report-table td:nth-child(1) { width: 7% !important; text-align: center !important; }
.billing-report-table th:nth-child(2), .billing-report-table td:nth-child(2) { width: 15% !important; }
.billing-report-table th:nth-child(3), .billing-report-table td:nth-child(3) { width: 24% !important; }
.billing-report-table th:nth-child(4), .billing-report-table td:nth-child(4) { width: 17% !important; text-align: right !important; }
.billing-report-table th:nth-child(5), .billing-report-table td:nth-child(5) { width: 15% !important; text-align: right !important; }
.billing-report-table th:nth-child(6), .billing-report-table td:nth-child(6) { width: 22% !important; text-align: right !important; }

.billing-report-table tfoot td {
  background: #eaf2f7 !important;
  color: #0b3a56 !important;
  border-top: 2px solid #0b3a56 !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .billing-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Identidade JLX Tech */
#appView.app-shell:not(.hidden-app) .side-brand::before,
#appView.app-shell:not(.hidden-app) .side-brand::after { content: none !important; }
#appView.app-shell:not(.hidden-app) .side-logo { display: block !important; width: 150px !important; height: auto !important; max-height: 100px !important; object-fit: contain !important; padding: 0 !important; background: transparent !important; border-radius: 8px !important; }
/* JLX Tech: nome da empresa sem imagem, fundo ou simbolo antigo. */
#appView.app-shell:not(.hidden-app) .side-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 64px !important;
  height: auto !important;
  padding: 12px 0 20px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#appView.app-shell:not(.hidden-app) .side-brand::before,
#appView.app-shell:not(.hidden-app) .side-brand::after { content: none !important; display: none !important; }
#appView.app-shell:not(.hidden-app) .jlx-wordmark {
  display: block !important;
  color: #0b2f4a !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .025em !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  background: transparent !important;
}
#appView.app-shell:not(.hidden-app) .jlx-wordmark span { color: #087fae !important; }
/* Logo original JLX Tech: cores preservadas e fundo transparente. */
#appView.app-shell:not(.hidden-app) .jlx-brand-logo {
  display: block !important;
  width: 156px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 86px !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 1px rgba(4, 29, 50, .8)) !important;
}
/* Mesma marca transparente no login, cabecalho e relatorios. */
.auth-logo.auth-logo-center,
.header-logo,
.report-print-logo,
.generated-report-logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 1px rgba(4, 29, 50, .8)) !important;
}

/* Tipos de serviço e quilometragem */
.billing-report-table th:nth-child(1), .billing-report-table td:nth-child(1) { width: 4% !important; }
.billing-report-table th:nth-child(2), .billing-report-table td:nth-child(2) { width: 10% !important; }
.billing-report-table th:nth-child(3), .billing-report-table td:nth-child(3) { width: 14% !important; }
.billing-report-table th:nth-child(4), .billing-report-table td:nth-child(4) { width: 21% !important; }
.billing-report-table th:nth-child(5), .billing-report-table td:nth-child(5) { width: 16% !important; }
.billing-report-table th:nth-child(6), .billing-report-table td:nth-child(6) { width: 12% !important; }
.billing-report-table th:nth-child(7), .billing-report-table td:nth-child(7) { width: 11% !important; }
.billing-report-table th:nth-child(8), .billing-report-table td:nth-child(8) { width: 12% !important; }
.billing-report-table small { display: block; font-size: 8px; color: #456; }
.billing-note { color: #284b63; font-size: 11px; }
.visit-mileage small, .service-type-label { display: block; font-size: 11px; color: #486276; margin-top: 4px; }
.billing-report-table { min-width: 880px !important; }
.billing-report-header .generated-report-meta strong { white-space: normal !important; overflow: visible !important; word-break: normal !important; }

/* Faturamento: horas + quilometragem a R$ 2/km. */
.billing-report-table th:nth-child(1), .billing-report-table td:nth-child(1) { width: 3% !important; }
.billing-report-table th:nth-child(2), .billing-report-table td:nth-child(2) { width: 8% !important; }
.billing-report-table th:nth-child(3), .billing-report-table td:nth-child(3) { width: 11% !important; }
.billing-report-table th:nth-child(4), .billing-report-table td:nth-child(4) { width: 16% !important; }
.billing-report-table th:nth-child(5), .billing-report-table td:nth-child(5) { width: 17% !important; }
.billing-report-table th:nth-child(6), .billing-report-table td:nth-child(6) { width: 9% !important; }
.billing-report-table th:nth-child(7), .billing-report-table td:nth-child(7) { width: 8% !important; }
.billing-report-table th:nth-child(8), .billing-report-table td:nth-child(8) { width: 9% !important; }
.billing-report-table th:nth-child(9), .billing-report-table td:nth-child(9) { width: 9% !important; }
.billing-report-table th:nth-child(10), .billing-report-table td:nth-child(10) { width: 10% !important; }
.billing-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }

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

/* Visitas: formulario horizontal para manter todos os controles acessiveis. */
#appView.app-shell:not(.hidden-app) #tab-visitas .layout { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card { width:100% !important; min-width:0 !important; max-width:none !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header { padding:12px 18px !important; min-height:0 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:9px 14px !important; padding:12px 18px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .field { grid-column:auto !important; min-width:0 !important; margin:0 !important; gap:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-origin,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-people { grid-column:span 2 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-mileage-note { grid-column:1 / -1 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-description { grid-column:span 3 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .actions { grid-column:span 1 !important; align-self:end !important; display:flex !important; flex-wrap:wrap !important; gap:6px !important; margin:0 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm input:not([type=checkbox]),
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm select { min-height:34px !important; height:34px !important; padding:6px 10px !important; min-width:0 !important; width:100% !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm textarea { min-height:54px !important; height:54px !important; padding:8px 10px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm label { margin:0 !important; font-size:11px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm small { font-size:11px !important; line-height:1.3 !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles { display:flex !important; flex-wrap:wrap !important; gap:6px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .check-option { padding:8px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-card .card-header { padding:10px 18px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td { white-space:normal !important; overflow-wrap:anywhere !important; width:auto !important; padding:7px 6px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .actions-cell { flex-wrap:wrap !important; }
@media(max-width:900px) {
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-description { grid-column:1 / -1 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .actions { grid-column:1 / -1 !important; }
}
@media(max-width:520px) {
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { grid-template-columns:minmax(0,1fr) !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-origin,
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-people { grid-column:1 / -1 !important; }
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(n),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(n) { width:auto !important; max-width:none !important; height:auto !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap table,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap thead,
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap tr { height:auto !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles .check-option { min-height:34px !important; height:auto !important; }

@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) .app-main > .header { min-height:84px !important; padding:12px 20px !important; margin-bottom:10px !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) .header .eyebrow { display:none !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) .header h1 { font-size:26px !important; margin:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { gap:6px 14px !important; padding:8px 18px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles .check-option { height:34px !important; padding:4px 8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles { align-items:start !important; align-content:start !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header { padding:8px 18px !important; }
}

@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) { margin-top:8px !important; margin-bottom:8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .form-card { padding:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap { padding:0 !important; margin-top:8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .table-card .card-header { padding:6px 18px !important; }
}

@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) .side-menu { padding-top:8px !important; padding-bottom:8px !important; }
}

/* Chamados e Manual: retirar altura artificial da pagina no desktop. */
@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app):has(:is(#tab-operacao,#tab-manual).active) { margin-top:8px !important; margin-bottom:8px !important; }
 #appView.app-shell:not(.hidden-app):has(:is(#tab-operacao,#tab-manual).active) .side-menu { padding-top:8px !important; padding-bottom:8px !important; }
 #appView.app-shell:not(.hidden-app):has(:is(#tab-operacao,#tab-manual).active) .app-main > .header { min-height:84px !important; padding:12px 20px !important; margin-bottom:10px !important; }
 #appView.app-shell:not(.hidden-app):has(:is(#tab-operacao,#tab-manual).active) .header .eyebrow { display:none !important; }
 #appView.app-shell:not(.hidden-app):has(:is(#tab-operacao,#tab-manual).active) .header h1 { font-size:26px !important; margin:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm { gap:6px !important; padding:8px 10px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field { margin:0 !important; gap:3px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm label { font-size:11px !important; margin:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm :is(input,select) { min-height:30px !important; height:30px !important; padding:5px 8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm #description { min-height:64px !important; height:64px !important; padding:8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .field:has(#assignedTo) { margin-top:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions { margin-top:4px !important; padding-bottom:0 !important; gap:4px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .form-card { padding:0 !important; height:auto !important; min-height:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header { padding:10px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .layout,
 #appView.app-shell:not(.hidden-app) #tab-operacao .content-area,
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card,
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap { min-height:0 !important; height:auto !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card { align-self:start !important; }
 #appView.app-shell:not(.hidden-app) #tab-manual.active,
 #appView.app-shell:not(.hidden-app) #tab-manual .manual-host-card { min-height:0 !important; height:calc(100dvh - 122px) !important; }
 #appView.app-shell:not(.hidden-app) #tab-manual .manual-frame { min-height:0 !important; height:100% !important; }
}

@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card > .filters-grid { grid-template-columns:minmax(140px,1.35fr) repeat(4,minmax(0,1fr)) !important; gap:8px !important; padding:10px 12px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid :is(input,select) { min-height:32px !important; height:32px !important; padding:5px 7px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .filters-grid label { font-size:11px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .card-header { padding:12px !important; }
}

@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn { min-height:30px !important; height:30px !important; padding:5px 8px !important; }
}

/* Indicadores de Chamados sempre em uma linha no desktop. */
@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao .stats-grid.compact-stats.kpi-strip { display:grid !important; grid-template-columns:repeat(7,minmax(0,1fr)) !important; gap:6px !important; min-width:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card { min-width:0 !important; width:auto !important; padding:12px 8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card span { font-size:clamp(8px,.64vw,11px) !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card small { font-size:clamp(8px,.6vw,10px) !important; }
}

/* Chamados: preencher a altura disponivel, preservando os controles compactos. */
@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app):has(#tab-operacao.active) { min-height:calc(100dvh - 16px) !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-operacao.active) .app-main { display:flex !important; flex-direction:column !important; min-height:0 !important; padding-bottom:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao.active { flex:1 !important; display:flex !important; flex-direction:column !important; min-height:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .layout { flex:1 !important; align-items:stretch !important; min-height:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .form-card { align-self:stretch !important; display:flex !important; flex-direction:column !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm { flex:1 !important; align-content:start !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .content-area { display:flex !important; flex-direction:column !important; min-width:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .content-area > .kpi-strip { flex:none !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card { flex:1 !important; align-self:stretch !important; display:flex !important; flex-direction:column !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap { flex:1 !important; }
}

/* Proporcoes do painel original, adaptadas a altura da janela. */
@media(min-width:901px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm { display:flex !important; flex-direction:column !important; gap:clamp(6px,1vh,12px) !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm > .field { flex:none !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm > .field:has(#description) { flex:1 !important; display:flex !important; flex-direction:column !important; min-height:82px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm #description { flex:1 !important; height:auto !important; min-height:64px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions { flex:none !important; margin-top:clamp(4px,1.5vh,18px) !important; padding-bottom:clamp(0px,.8vh,8px) !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm :is(input,select) { min-height:30px !important; height:clamp(30px,3.5vh,40px) !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .table-card .table-wrap { min-height:0 !important; overflow:auto !important; }
}
@media(min-width:901px) and (min-height:850px) {
 #appView.app-shell:not(.hidden-app):has(#tab-operacao.active) .app-main > .header { min-height:112px !important; padding:18px 24px !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-operacao.active) .header .eyebrow { display:inline-flex !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-operacao.active) .header h1 { font-size:30px !important; margin:6px 0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .form-card .card-header { padding:18px 16px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao .kpi-strip .stat-card { min-height:92px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn { height:36px !important; }
}

@media(min-width:901px) and (max-height:849px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm { gap:4px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions { margin-top:4px !important; padding-bottom:0 !important; }
}

/* Visita tecnica no padrao de Chamados: cadastro a esquerda e lista a direita. */
@media(min-width:1101px) {
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) { min-height:calc(100dvh - 16px) !important; }
 #appView.app-shell:not(.hidden-app):has(#tab-visitas.active) .app-main { display:flex !important; flex-direction:column !important; min-height:0 !important; padding-bottom:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas.active { flex:1 !important; display:flex !important; flex-direction:column !important; min-height:0 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .layout { flex:1 !important; grid-template-columns:minmax(330px,380px) minmax(0,1fr) !important; align-items:stretch !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .form-card { padding:0 !important; display:flex !important; flex-direction:column !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { flex:1 !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:5px 10px !important; padding:8px 12px !important; align-content:start !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > :is(.visit-origin,.visit-people,.visit-description,.visit-mileage-note,.actions) { grid-column:1 / -1 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm :is(input:not([type=checkbox]),select) { min-height:30px !important; height:30px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles { gap:3px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles .check-option { padding:4px !important; font-size:10px !important; min-height:26px !important; height:26px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .actions { align-self:end !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .content-area { display:flex !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .table-card { flex:1 !important; display:flex !important; flex-direction:column !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap { flex:1 !important; min-height:0 !important; overflow:auto !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm #visitTotalKm { font-weight:800 !important; background:#d9f2fa !important; }
}

@media(min-width:1101px) and (max-height:849px) {
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { gap:3px 8px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles { flex-wrap:nowrap !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles .check-option { font-size:9px !important; padding:2px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm textarea { height:44px !important; min-height:44px !important; }
}

/* Visitas: usar a altura do cadastro para campos legiveis e descricao ampla. */
@media(min-width:1101px) {
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { align-content:stretch !important; grid-template-rows:auto auto auto auto auto auto auto auto minmax(68px,1fr) auto !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-description { display:flex !important; flex-direction:column !important; min-height:68px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm #visitDescription { flex:1 !important; height:auto !important; min-height:44px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .actions { padding-top:6px !important; padding-bottom:6px !important; }
}
@media(min-width:1101px) and (min-height:1000px) {
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm { gap:clamp(8px,.8vh,12px) 12px !important; padding:16px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm label { font-size:12px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm :is(input:not([type=checkbox]),select) { min-height:38px !important; height:38px !important; font-size:13px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm small { font-size:12px !important; line-height:1.4 !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles { gap:6px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .visit-responsibles .check-option { font-size:11px !important; padding:7px !important; height:34px !important; min-height:34px !important; }
 #appView.app-shell:not(.hidden-app) #tab-visitas .form-card .card-header { padding:16px !important; }
}

#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(10) { width:28% !important; }

/* Larguras proporcionais ao conteudo das visitas, sem colunas vazias largas. */
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(1),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(1) { width:4% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(2),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(2) { width:10% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(3),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(3) { width:8% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(4),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(4) { width:8% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(5),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(5) { width:9% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(6),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(6) { width:9% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(7),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(7) { width:6% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(8),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(8) { width:8% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(9),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(9) { width:8% !important; padding-left:4px !important; padding-right:4px !important; }
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap th:nth-child(10),
#appView.app-shell:not(.hidden-app) #tab-visitas .table-wrap td:nth-child(10) { width:30% !important; padding-left:4px !important; padding-right:4px !important; }

/* Acoes dos cadastros com texto legivel e area de clique maior. */
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions { display:flex !important; flex-wrap:wrap !important; gap:8px !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions .btn { min-height:44px !important; height:auto !important; padding:10px 12px !important; font-size:14px !important; line-height:1.2 !important; font-weight:700 !important; white-space:nowrap !important; min-width:0 !important; flex:1 1 auto !important; }
@media(min-width:901px) and (max-height:849px) {
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm { gap:2px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions { gap:4px !important; }
 #appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn { font-size:13px !important; padding:10px 6px !important; }
}

#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn,
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm .actions .btn { width:auto !important; max-width:none !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn[type=submit] { flex:1.65 1 0 !important; }
#appView.app-shell:not(.hidden-app) #tab-operacao #ticketForm .actions .btn[type=reset] { flex:1 1 0 !important; }

#appView.app-shell:not(.hidden-app) #tab-visitas[data-readonly="true"] .form-card {display:none !important;}
#appView.app-shell:not(.hidden-app) #tab-visitas[data-readonly="true"] .layout {grid-template-columns:minmax(0,1fr) !important;}

#ticketModal #ticketVisitActions[hidden], #ticketModal #modalServiceTypeField[hidden] {display:none !important;}

/* Consulta de visitas em modal, com resumo de tres linhas na tabela. */
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-detail-row {cursor:pointer;}
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-detail-row:hover td {background:#e0f2fa !important;}
#appView.app-shell:not(.hidden-app) #tab-visitas .visit-detail-row:focus-visible {outline:3px solid #1198c4;outline-offset:-3px;}
#tab-visitas .visit-description-preview {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.45;}
.visit-detail-dialog {border:1px solid #bdd5e3;border-radius:18px;padding:0;width:min(920px,94vw);max-height:90dvh;background:#f1f7fb;color:#123c54;box-shadow:0 24px 80px #00172566;}
.visit-detail-dialog::backdrop {background:#041b2bd6;}
.visit-detail-header {display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #c9dce8;}
.visit-detail-header small {font-size:11px;font-weight:800;letter-spacing:1px;color:#087fa6;}
.visit-detail-header h2 {margin:5px 0 0;font-size:24px;}
.visit-detail-body {padding:20px 24px;overflow:auto;max-height:calc(90dvh - 170px);}
.visit-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;}
.visit-detail-grid > div {background:white;border:1px solid #d7e5ee;border-radius:10px;padding:12px;}
.visit-detail-grid dt {font-size:11px;text-transform:uppercase;font-weight:800;color:#58758b;}
.visit-detail-grid dd {margin:5px 0 0;font-size:14px;overflow-wrap:anywhere;}
.visit-detail-description {margin-top:20px;background:white;border:1px solid #d7e5ee;border-radius:12px;padding:18px;}
.visit-detail-description h3 {font-size:16px;margin:0 0 12px;}
.visit-detail-description p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;margin:0;}
.visit-detail-footer {padding:14px 24px;display:flex;justify-content:flex-end;border-top:1px solid #c9dce8;}
.visit-detail-footer .btn {font-size:14px !important;min-height:42px !important;padding:10px 24px !important;}
@media(max-width:600px){.visit-detail-grid{grid-template-columns:1fr;}.visit-detail-header,.visit-detail-body{padding:16px;}}

.visit-detail-dialog {position:fixed !important;inset:0 !important;margin:auto !important;transform:none !important;overflow:hidden;}
.visit-detail-header .icon-btn {color:#143a51 !important;background:#dcecf4 !important;border:0;width:36px;height:36px;font-size:24px;}
@media(min-width:850px){.visit-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.visit-detail-grid > div{padding:10px;}}

#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-action {grid-column:1 / -1 !important;display:flex !important;flex-direction:column !important;min-height:68px;}
#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm #visitActionTaken {flex:1 !important;height:auto !important;min-height:44px !important;}
@media(min-width:1101px){#appView.app-shell:not(.hidden-app) #tab-visitas #visitForm {grid-template-rows:auto auto auto auto auto auto auto auto minmax(68px,1fr) minmax(68px,1fr) auto !important;}}
@media(min-width:1101px) and (max-height:849px){
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm {grid-template-rows:auto auto auto auto auto auto auto auto minmax(68px,1fr) auto !important;}
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-description {grid-column:1 !important;}
 #appView.app-shell:not(.hidden-app) #tab-visitas #visitForm > .visit-action {grid-column:2 !important;}
}

/* SLA: apenas reduzir a fonte, preservando o posicionamento original. */
#appView.app-shell:not(.hidden-app) #tab-dashboard .sla-ring > #dashSlaRing {font-size:28px !important;}

/* Relatório mensal: serviço após tipo e colunas compactas. */
#appView #tab-relatorio #reportTable,
#generatedReportModal #generatedReportContent .monthly-attendance-table { width:100% !important; min-width:1842px !important; table-layout:fixed !important; border-collapse:collapse !important; border-spacing:0 !important; }
#appView #tab-relatorio #reportTable th, #appView #tab-relatorio #reportTable td,
#generatedReportModal #generatedReportContent .monthly-attendance-table th, #generatedReportModal #generatedReportContent .monthly-attendance-table td { padding:9px 7px !important; font-size:11px !important; line-height:1.35 !important; text-align:left !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; max-width:none !important; }
#appView #tab-relatorio #reportTable th:nth-child(1), #appView #tab-relatorio #reportTable td:nth-child(1),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(1), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(1) { width:56px !important; }
#appView #tab-relatorio #reportTable th:nth-child(2), #appView #tab-relatorio #reportTable td:nth-child(2),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(2), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(2) { width:88px !important; }
#appView #tab-relatorio #reportTable th:nth-child(3), #appView #tab-relatorio #reportTable td:nth-child(3),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(3), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(3) { width:74px !important; }
#appView #tab-relatorio #reportTable th:nth-child(4), #appView #tab-relatorio #reportTable td:nth-child(4),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(4), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(4) { width:94px !important; }
#appView #tab-relatorio #reportTable th:nth-child(5), #appView #tab-relatorio #reportTable td:nth-child(5),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(5), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(5) { width:110px !important; }
#appView #tab-relatorio #reportTable th:nth-child(6), #appView #tab-relatorio #reportTable td:nth-child(6),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(6), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(6) { width:132px !important; }
#appView #tab-relatorio #reportTable th:nth-child(7), #appView #tab-relatorio #reportTable td:nth-child(7),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(7), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(7) { width:132px !important; }
#appView #tab-relatorio #reportTable th:nth-child(8), #appView #tab-relatorio #reportTable td:nth-child(8),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(8), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(8) { width:132px !important; }
#appView #tab-relatorio #reportTable th:nth-child(9), #appView #tab-relatorio #reportTable td:nth-child(9),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(9), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(9) { width:94px !important; }
#appView #tab-relatorio #reportTable th:nth-child(10), #appView #tab-relatorio #reportTable td:nth-child(10),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(10), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(10) { width:94px !important; }
#appView #tab-relatorio #reportTable th:nth-child(11), #appView #tab-relatorio #reportTable td:nth-child(11),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(11), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(11) { width:104px !important; }
#appView #tab-relatorio #reportTable th:nth-child(12), #appView #tab-relatorio #reportTable td:nth-child(12),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(12), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(12) { width:132px !important; }
#appView #tab-relatorio #reportTable th:nth-child(13), #appView #tab-relatorio #reportTable td:nth-child(13),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(13), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(13) { width:160px !important; }
#appView #tab-relatorio #reportTable th:nth-child(14), #appView #tab-relatorio #reportTable td:nth-child(14),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(14), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(14) { width:220px !important; }
#appView #tab-relatorio #reportTable th:nth-child(15), #appView #tab-relatorio #reportTable td:nth-child(15),
#generatedReportModal #generatedReportContent .monthly-attendance-table th:nth-child(15), #generatedReportModal #generatedReportContent .monthly-attendance-table td:nth-child(15) { width:220px !important; }
#appView #tab-relatorio #reportTable .badge, #generatedReportModal #generatedReportContent .monthly-attendance-table .badge { padding:4px 7px !important; font-size:10px !important; }

#appView #tab-relatorio #reportTable th,
#generatedReportModal #generatedReportContent .monthly-attendance-table th { white-space:normal !important; overflow-wrap:normal !important; }
