/* Document Control System — custom styles */

/* ── Slate Navy palette ───────────────────────────────────────────────────────
   Primary  #1e3a5f  (30 58 95)
   Success  #217a4e  (33 122 78)
   Warning  #e0820a  (224 130 10)
   Danger   #c0392b  (192 57 43)
   Info     #4a90d9  (74 144 217)
   ── */

:root {
  --bs-primary:              #1e3a5f;
  --bs-primary-rgb:          30, 58, 95;
  --bs-success:              #217a4e;
  --bs-success-rgb:          33, 122, 78;
  --bs-warning:              #e0820a;
  --bs-warning-rgb:          224, 130, 10;
  --bs-danger:               #c0392b;
  --bs-danger-rgb:           192, 57, 43;
  --bs-info:                 #4a90d9;
  --bs-info-rgb:             74, 144, 217;
  --bs-link-color:           #2d5a8e;
  --bs-link-color-rgb:       45, 90, 142;
  --bs-link-hover-color:     #1e3a5f;
}

/* Primary button */
.btn-primary {
  --bs-btn-bg:                 #1e3a5f;
  --bs-btn-border-color:       #1e3a5f;
  --bs-btn-hover-bg:           #19304f;
  --bs-btn-hover-border-color: #162c49;
  --bs-btn-active-bg:          #162c49;
  --bs-btn-active-border-color:#132743;
  --bs-btn-disabled-bg:        #1e3a5f;
  --bs-btn-disabled-border-color:#1e3a5f;
  --bs-btn-focus-shadow-rgb:   49, 88, 129;
}

/* Outline-primary button */
.btn-outline-primary {
  --bs-btn-color:              #1e3a5f;
  --bs-btn-border-color:       #1e3a5f;
  --bs-btn-hover-bg:           #1e3a5f;
  --bs-btn-hover-border-color: #1e3a5f;
  --bs-btn-active-bg:          #1e3a5f;
  --bs-btn-active-border-color:#1e3a5f;
  --bs-btn-disabled-color:     #1e3a5f;
  --bs-btn-disabled-border-color:#1e3a5f;
  --bs-btn-focus-shadow-rgb:   30, 58, 95;
}

/* Warning badge/button — white text reads better on deep amber */
.badge.bg-warning,
.btn-warning { color: #fff !important; }

body {
  font-size: 0.9rem;
}

.navbar-brand {
  letter-spacing: -0.3px;
}

/* Clickable summary tag */
summary.cursor-pointer {
  cursor: pointer;
  user-select: none;
}

/* Status badge colours already use Bootstrap utilities.
   Additional overrides below. */

/* Monospace doc numbers */
.font-monospace {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
}

/* Table tweaks */
.table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

/* Card header */
.card-header {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Display stat numbers */
.display-6 {
  font-size: 2rem;
}

/* Responsive shrink for small screens */
@media (max-width: 576px) {
  .table-responsive table th,
  .table-responsive table td {
    white-space: nowrap;
  }
}
