:root {
  /* Think IT Brand Palette */
  --thinkit-dark: #22333D;
  --thinkit-petrol-dark: #062A30;
  --thinkit-petrol: #003B4D;
  --thinkit-button: #11685E;
  --thinkit-button-hover: #0d524a;
  --thinkit-turquoise: #57B6B2;
  --thinkit-turquoise-light: #afe2e3;

  /* Brand / Primary Palette: Petróleo */
  --petrol-950: #041c22;
  --petrol-900: #082f38;
  --petrol-850: #0a3641;
  --petrol-800: #0e3d49;
  --petrol-750: #104856;
  --petrol-700: #134e5b;
  --petrol-650: #165b6b;
  --petrol-600: #1a6d7f;
  --petrol-500: #208298;
  --petrol-400: #38bdf8;
  --petrol-200: #bae6fd;
  --petrol-100: #e0f2f7;
  --petrol-50:  #f0f8fa;

  /* Neutrals: Clean Technical Slate */
  --color-bg-app: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-strong: #cbd5e1;

  /* Typography Colors */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;

  /* Operational Status Colors (Strictly Reserved) */
  --status-ok-fg: #15803d;
  --status-ok-bg: #f0fdf4;
  --status-ok-border: #bbf7d0;
  --status-ok-solid: #16a34a;

  --status-warning-fg: #b45309;
  --status-warning-bg: #fffbeb;
  --status-warning-border: #fde68a;
  --status-warning-solid: #d97706;

  --status-critical-fg: #b91c1c;
  --status-critical-bg: #fef2f2;
  --status-critical-border: #fecaca;
  --status-critical-solid: #dc2626;

  --status-nodata-fg: #475569;
  --status-nodata-bg: #f1f5f9;
  --status-nodata-border: #cbd5e1;
  --status-nodata-solid: #94a3b8;

  --status-na-fg: #64748b;
  --status-na-bg: #f8fafc;
  --status-na-border: #e2e8f0;
  --status-na-solid: #cbd5e1;

  --status-stale-fg: #9a3412;
  --status-stale-bg: #fff7ed;
  --status-stale-border: #fed7aa;

  /* Dimensions, Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);

  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-app);
  font-family:
    Calibri,
    Carlito,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--thinkit-dark);
}

main {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px;
}

.server-console-container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .server-console-container {
    padding: 12px 14px 36px;
  }
}

@media (max-width: 576px) {
  .server-console-container {
    padding: 10px 12px 32px;
  }
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--thinkit-dark);
}

h1 {
  margin-top: 0;
  font-size: 30px;
}

h2 {
  margin-top: 0;
}

h3 {
  margin-top: 0;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  background: #111827;
  border-bottom: 1px solid #1f2937;
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 66px;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #9ca3af;
  font-size: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #dc2626;
  color: white;

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

  font-size: 13px;
  font-weight: 800;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-navigation a {
  color: #d1d5db;
  font-size: 14px;
}

.main-navigation a:hover {
  color: white;
  text-decoration: none;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 5px;
}

.page-header p {
  margin: 0;
  color: #6b7280;
}

.title-with-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title-with-status h1,
.title-with-status h3 {
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-section {
  margin-top: 30px;
}

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

.section-header h2 {
  margin-bottom: 5px;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  appearance: none;
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: white;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}

.button:hover {
  background: #f9fafb;
  text-decoration: none;
}

.button.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.button.primary:hover {
  background: #1d4ed8;
}

.button.danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.button.danger:hover {
  background: #b91c1c;
}


/* =========================================================
   FLASH
   ========================================================= */

.notice {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
}

.alert,
.errors {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
}

.errors h2 {
  font-size: 17px;
}


/* =========================================================
   AGENT
   ========================================================= */

.agent-banner {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.agent-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #1e40af;
}

.agent-banner span {
  color: #475569;
  font-size: 14px;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #fee2e2;
  color: #991b1b;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-unknown {
  background: #e5e7eb;
  color: #374151;
}

.environment-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}


/* =========================================================
   DEFINITIONS
   ========================================================= */

dl {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
}

dt {
  color: #6b7280;
  font-weight: 600;
}

dd {
  margin: 0;
}


/* =========================================================
   METRICS
   ========================================================= */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: white;
}

.metric-label {
  display: block;
  margin-bottom: 7px;
  color: #6b7280;
  font-size: 13px;
}

.metric-value {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 26px;
  line-height: 1.1;
}

.metric-card small {
  color: #6b7280;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.servers-table {
  width: 100%;
  border-collapse: collapse;
}

.servers-table th,
.servers-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.servers-table th {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.servers-table tbody tr:last-child td {
  border-bottom: 0;
}

.servers-table tbody tr:hover {
  background: #f9fafb;
}

.compact-table {
  margin-top: 18px;
  min-width: 900px;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
  font-size: 13px;
}

.actions {
  white-space: nowrap;
}

.actions a + a {
  margin-left: 10px;
}


/* =========================================================
   ORACLE
   ========================================================= */

.oracle-section {
  margin-top: 34px;
  margin-bottom: 34px;
}

.oracle-list {
  display: grid;
  gap: 24px;
}

.database-card {
  padding: 0;
  overflow: hidden;
}

.database-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.database-header h3 {
  font-size: 24px;
}

.database-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
  color: #6b7280;
  font-size: 13px;
}

.database-type {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.database-type.cdb {
  background: #ede9fe;
  color: #5b21b6;
}

.database-type.non-cdb {
  background: #dbeafe;
  color: #1e40af;
}

.database-type.unknown {
  background: #e5e7eb;
  color: #4b5563;
}

.database-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
}

.summary-item {
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: white;
}

.summary-item span {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 12px;
}

.summary-item strong {
  color: #111827;
  font-size: 14px;
}


/* =========================================================
   MONITOR PANELS
   ========================================================= */

.monitor-panel {
  border-top: 1px solid #e5e7eb;
}

.monitor-panel > summary {
  padding: 17px 24px;
  cursor: pointer;
  color: #111827;
  font-weight: 700;
  user-select: none;
}

.monitor-panel > summary:hover {
  background: #f9fafb;
}

.monitor-panel-body {
  padding: 4px 24px 24px;
}

.section-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.storage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.data-block {
  padding: 14px;
  margin-top: 14px;
  border-radius: 8px;
  background: #f9fafb;
}

.data-label {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}


/* =========================================================
   FORM
   ========================================================= */

.form-card {
  max-width: 820px;
}

.form-info {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
}

.form-info strong {
  display: block;
  margin-bottom: 5px;
  color: #1e40af;
}

.form-info p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: white;
  font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #2563eb;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
}

.checkbox label {
  display: inline;
  margin-left: 6px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}


/* =========================================================
   HELPERS
   ========================================================= */

.muted {
  color: #6b7280;
}

.small {
  font-size: 12px;
}

.monospace {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

.wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.error-message {
  color: #b91c1c;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 50px 24px;
  text-align: center;
}

.empty-inline {
  padding: 8px 0;
  color: #6b7280;
}

.danger-zone {
  margin-top: 36px;
  border-color: #fecaca;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

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

  .storage-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  main {
    padding: 24px;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .header-actions {
    width: 100%;
  }
}

@media (max-width: 650px) {
  main {
    padding: 18px;
  }

  .topbar-inner {
    padding: 0 18px;
  }

  .metrics-grid,
  .storage-metrics-grid,
  .database-summary-grid {
    grid-template-columns: 1fr;
  }

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

  dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  dd {
    margin-bottom: 10px;
  }
}
/* =========================================================
   AGENT ONBOARDING
   ========================================================= */

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: white;
}

.onboarding-step.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.onboarding-step.complete {
  border-color: #86efac;
  background: #f0fdf4;
}

.step-number {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;

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

  font-size: 13px;
  font-weight: 800;
}

.onboarding-step.active .step-number {
  background: #2563eb;
  color: white;
}

.onboarding-step.complete .step-number {
  background: #16a34a;
  color: white;
}

.onboarding-step strong {
  display: block;
  margin-bottom: 3px;
}

.onboarding-step small {
  display: block;
  color: #6b7280;
}

.onboarding-card {
  max-width: 1050px;
}

.onboarding-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 24px;
}

.installation-command-section {
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.installation-command-section h3 {
  margin-bottom: 8px;
}

.command-box {
  margin: 18px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #374151;
  border-radius: 9px;
  background: #111827;
}

.command-box code {
  color: #f9fafb;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 14px;
  white-space: nowrap;
}

.installation-warning {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #fcd34d;
  border-radius: 9px;
  background: #fffbeb;
  color: #78350f;
}

.installation-warning strong {
  display: block;
  margin-bottom: 5px;
}

.installation-warning p {
  margin: 5px 0 0;
}

.installation-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.installation-next-step {
  margin-top: 22px;
}

.installation-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.installation-features > div {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #f9fafb;
}

.installation-features strong {
  display: block;
  margin-bottom: 5px;
}

.installation-features span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.agent-install-action {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .onboarding-steps,
  .installation-features {
    grid-template-columns: 1fr;
  }

  .onboarding-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .onboarding-info-grid {
    grid-template-columns: 1fr;
  }
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr)
                         repeat(4, minmax(120px, auto));
  align-items: center;
  gap: 16px;

  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.permission-row:last-child {
  border-bottom: 0;
}

.permission-row small {
  display: block;
  margin-top: 3px;
  color: #6b7280;
}

.permission-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .permission-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.dba-navbar {
  background-color: var(--petrol-950) !important;
  border-bottom: 1px solid var(--petrol-850);
}

.navbar {
  min-height: 68px;
}

.navbar .container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.navbar-brand {
  text-decoration: none;
}

.navbar-brand:hover {
  text-decoration: none;
}

.navbar .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;

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

  background: linear-gradient(135deg, var(--petrol-700), var(--petrol-500));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.user-avatar {
  width: 32px;
  height: 32px;

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

  border-radius: 999px;

  background: #374151;
  color: white;

  font-size: 13px;
  font-weight: 700;
}

.navbar .dropdown-menu {
  min-width: 240px;
}

.navbar .dropdown-item form {
  margin: 0;
}

.navbar .nav-link.active {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .navbar .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-collapse {
    padding-top: 12px;
    padding-bottom: 10px;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bs-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.login-brand-section {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(56, 189, 248, 0.28),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #081526,
      #0f2947 55%,
      #123b63
    );
}

.login-form-container {
  width: 100%;
  max-width: 520px;
}

.login-logo {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #38bdf8,
    #2563eb
  );
  color: white;
  font-weight: 800;
}

.login-kicker,
.login-highlight {
  color: #7dd3fc;
}

.login-brand-text {
  color: #cbd5e1;
}

.login-check {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-weight: 700;
}

/* =========================================================
   DAILY HEALTH REPORTS REDESIGN
   ========================================================= */

.daily-reports-view {
  width: 100%;
}

.database-nav-tabs .nav-link {
  color: #475569;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-right: 8px;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
}

.database-nav-tabs .nav-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  text-decoration: none;
}

.database-nav-tabs .nav-link.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.database-nav-tabs .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.button-sm {
  padding: 5px 11px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.3;
}

.check-pill-ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.check-pill-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.check-pill-critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.check-pill-unknown {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid #e2e8f0;
  }
}

@media (max-width: 767.98px) {
  .daily-reports-view .table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
}

/* =========================================================
   SERVER MONITORING PROFESSIONAL CONSOLE (PROMPT 48)
   ========================================================= */

/* --- 1. BREADCRUMBS --- */
.server-breadcrumb-nav {
  margin-bottom: 8px;
}

.server-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
}

.server-breadcrumb-item a {
  color: var(--petrol-650);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.server-breadcrumb-item a:hover {
  color: var(--petrol-900);
  text-decoration: underline;
}

.server-breadcrumb-item.active {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.server-breadcrumb-separator {
  color: var(--color-text-subtle);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
}

/* --- 2. CABECERA UNIFICADA DEL SERVIDOR --- */
.server-unified-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.server-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.server-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.badge-env {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2.5px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.badge-env-prod {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.badge-env-stg,
.badge-env-stage {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.badge-env-dev {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.badge-client {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.server-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action-primary {
  background: var(--thinkit-button);
  color: #ffffff !important;
  border: 1px solid var(--thinkit-petrol);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(6, 42, 48, 0.2);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-action-primary:hover {
  background: var(--thinkit-button-hover);
  color: #ffffff !important;
}

.btn-action-secondary {
  background: #ffffff;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border-strong);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-action-secondary:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary) !important;
  border-color: #94a3b8;
}

.server-metadata-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding-top: 10px;
  flex-wrap: wrap;
}

.server-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.server-meta-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* --- 3. NAVEGACIÓN CONTEXTUAL DEL SERVIDOR --- */
.server-context-nav {
  margin-bottom: 20px;
}

.server-nav-desktop {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-subtle);
}

.server-nav-desktop-item {
  flex-shrink: 0;
}

.server-nav-desktop-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.server-nav-desktop-link:hover {
  color: var(--petrol-750);
  background: var(--petrol-50);
}

.server-nav-desktop-link.active {
  color: var(--petrol-800);
  background: var(--petrol-50);
  border-bottom-color: var(--petrol-700);
  font-weight: 700;
}

.server-nav-desktop-link:focus-visible {
  outline: 2px solid var(--petrol-500);
  outline-offset: -2px;
}

.server-nav-mobile {
  display: none;
}

@media (max-width: 860px) {
  .server-nav-desktop {
    display: none;
  }

  .server-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    box-shadow: var(--shadow-subtle);
  }

  .server-nav-mobile-current {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
  }

  .server-nav-mobile-label {
    color: var(--color-text-muted);
    font-size: 12px;
  }

  .server-nav-mobile-name {
    color: var(--petrol-800);
    font-weight: 700;
  }

  .server-nav-mobile-select-wrap {
    position: relative;
    flex-grow: 1;
    max-width: 220px;
  }

  .server-nav-mobile-select {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 6px 28px 6px 10px;
    appearance: none;
    cursor: pointer;
  }

  .server-nav-mobile-select:focus {
    outline: 2px solid var(--petrol-500);
    border-color: var(--petrol-600);
  }

  .server-nav-mobile-select-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-muted);
    font-size: 12px;
  }
}

/* --- 4. CARDS & SECTIONS --- */
.dba-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title-clean {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.01em;
}

.card-subtitle-clean {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.btn-subtle-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--petrol-650);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-subtle-link:hover {
  color: var(--petrol-900);
  text-decoration: underline;
}

/* --- 5. KPI METRICS CARDS --- */
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  box-shadow: var(--shadow-card);
}

.kpi-card-critical {
  border-top: 3px solid var(--status-critical-solid);
}

.kpi-card-warning {
  border-top: 3px solid var(--status-warning-solid);
}

.kpi-card-ok {
  border-top: 3px solid var(--status-ok-solid);
}

.kpi-card-petrol {
  border-top: 3px solid var(--petrol-700);
}

.kpi-card-neutral {
  border-top: 3px solid var(--color-border-strong);
}

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

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.kpi-body {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-subtext {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- 6. DISTRIBUTION BAR & LEGEND --- */
.distribution-bar-wrap {
  margin: 12px 0 14px 0;
}

.distribution-bar {
  height: 10px;
  width: 100%;
  background: var(--color-surface-hover);
  border-radius: var(--radius-pill);
  display: flex;
  overflow: hidden;
}

.distribution-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-critical { background: var(--status-critical-solid); }
.seg-warning { background: var(--status-warning-solid); }
.seg-ok { background: var(--status-ok-solid); }
.seg-no-data { background: var(--status-nodata-solid); }
.seg-not-configured { background: #cbd5e1; }
.seg-not-applicable { background: #e2e8f0; border-right: 1px dashed #94a3b8; }

.distribution-legend-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.legend-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-critical { background: var(--status-critical-solid); }
.dot-warning { background: var(--status-warning-solid); }
.dot-ok { background: var(--status-ok-solid); }
.dot-no-data { background: var(--status-nodata-solid); }
.dot-not-configured { background: #cbd5e1; }
.dot-not-applicable { background: #e2e8f0; border: 1px solid #94a3b8; }

.legend-count {
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.legend-name {
  color: var(--color-text-secondary);
}

/* --- 7. RESOURCE METRIC BOXES & HOST CHARTS --- */
.resource-metric-box {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.metric-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.metric-num {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  height: 6px;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.progress-fill.ok { background: var(--status-ok-solid); }
.progress-fill.warning { background: var(--status-warning-solid); }
.progress-fill.critical { background: var(--status-critical-solid); }

.metric-footnote {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.host-trend-chart-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.chart-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.chart-legend-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.chart-legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-secondary);
}

.chart-legend-dot {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.chart-svg-container {
  width: 100%;
  overflow-x: auto;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 8. TABLE SYSTEM --- */
.servers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

.servers-table thead th {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  white-space: nowrap;
}

.servers-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  vertical-align: middle;
}

.servers-table tbody tr:hover {
  background: var(--color-surface-hover);
}

.btn-table-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--petrol-700);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-table-action:hover {
  background: var(--petrol-50);
  border-color: var(--petrol-650);
  color: var(--petrol-900);
}

/* --- 9. OPERATIONAL STATUS PILLS & BADGES --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill-ok {
  color: var(--status-ok-fg);
  background: var(--status-ok-bg);
  border-color: var(--status-ok-border);
}

.status-pill-warning {
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.status-pill-critical {
  color: var(--status-critical-fg);
  background: var(--status-critical-bg);
  border-color: var(--status-critical-border);
}

.status-pill-muted {
  color: var(--status-nodata-fg);
  background: var(--status-nodata-bg);
  border-color: var(--status-nodata-border);
}

.badge-status-neutral {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  display: inline-flex;
}

.badge-tag-cdb {
  background: var(--petrol-50);
  color: var(--petrol-800);
  border-color: var(--petrol-100);
}

.badge-tag-noncdb {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

/* --- 10. TECHNICAL SPEC LIST (KEY-VALUE GRIDS) --- */
.tech-spec-list {
  display: flex;
  flex-direction: column;
}

.tech-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 13px;
}

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

.tech-spec-dt {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.tech-spec-dd {
  margin: 0;
  color: var(--color-text-primary);
  text-align: right;
}

.tech-spec-meta-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

/* --- 11. SUB-NAV TABS (PARA DETALLE DE BASE DE DATOS) --- */
.sub-nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

.sub-nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sub-nav-link:hover {
  background: var(--petrol-50);
  color: var(--petrol-800);
  border-color: var(--petrol-200);
}

.sub-nav-link.active {
  background: var(--petrol-750);
  color: #ffffff;
  border-color: var(--petrol-800);
}

/* --- 12. PRIORITY ATTENTION & BACKUP SUBCARDS --- */
.priority-issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.priority-issue-card {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-left: 3.5px solid var(--status-warning-solid);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: background 0.15s ease;
}

.priority-issue-card:hover {
  background: var(--color-surface);
}

.priority-issue-card.priority-crit {
  border-left-color: var(--status-critical-solid);
}

.backup-summary-subcard {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.availability-window-card {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.window-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  display: block;
}

.window-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-primary);
  display: block;
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}

.window-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
}

/* --- 13. FILTERS & FORMS --- */
.filter-bar-clean {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.filter-select {
  border-color: var(--color-border-strong);
  font-size: 12.5px;
}

/* --- 14. EMPTY STATES & FOOTNOTES --- */
.empty-state-box {
  text-align: center;
  padding: 32px 20px;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 32px;
  color: var(--color-text-subtle);
  margin-bottom: 8px;
  display: inline-block;
}

.agent-architecture-footnote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- 15. DANGER ZONE --- */
.danger-zone-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.danger-zone-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #b91c1c;
  margin: 0;
}

.danger-zone-desc {
  font-size: 12px;
  color: #7f1d1d;
  margin-top: 2px;
}

.btn-action-danger {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
  transition: background 0.15s ease;
}

.btn-action-danger:hover {
  background: #b91c1c;
}

/* Helpers */
.text-petrol {
  color: var(--petrol-750) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* =========================================================
   16. THINKIT SENTINEL BRAND COMPONENTS
   ========================================================= */
.brand-navbar-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-wordmark-main {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-wordmark-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--thinkit-turquoise);
  background: rgba(87, 182, 178, 0.15);
  border: 1px solid rgba(87, 182, 178, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}



