/* =========================================================
   Rapidskips CRM — App Styles (Clean / Fixed)
   Brand colour: #13702b
   ========================================================= */

/* ===== Variables ===== */
:root {
  --brand: #13702b;
  --brand-dark: #0f5c22;
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e8edf5;
  --border-2: #eef2f7;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Links ===== */
.link {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand-title {
  font-weight: 900;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

/* ===== Desktop nav ===== */
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #0f172a;
  border: 1px solid #e6eaf2;
  background: #fff;
}
.nav-link:hover {
  background: #f8fafc;
}
.nav-link-ghost {
  border-color: transparent;
  background: transparent;
  color: #0f172a;
}
.nav-link-ghost:hover {
  background: #f1f5f9;
}

/* Mobile menu button */
.icon-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6eaf2;
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}
.icon-btn:hover {
  background: #f8fafc;
}

/* Hide desktop nav on small screens */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .icon-btn {
    display: inline-grid;
    place-items: center;
  }
}

/* ===== Mobile slide-over nav ===== */
.mnav {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.mnav.open {
  display: block;
}
.mnav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.mnav-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  max-width: 520px;
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.mnav-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
}
.mnav-title {
  font-weight: 950;
  font-size: 16px;
}
.mnav-sub {
  opacity: 0.75;
  font-size: 12px;
  margin-top: 2px;
}
.mnav-links {
  padding: 0 16px 14px;
  display: grid;
  gap: 10px;
}
.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}
.mnav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mnav-danger {
  border-color: rgba(245, 158, 11, 0.25);
}
.mnav-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mnav-user .muted {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Buttons (ONE consistent system) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  border-color: #dbe3f0;
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: 3px solid rgba(19, 112, 43, 0.2);
  outline-offset: 2px;
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: #f8fafc;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(19, 112, 43, 0.22);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 14px 32px rgba(19, 112, 43, 0.28);
}
.btn-primary:active {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(19, 112, 43, 0.22);
}

.btn-success {
  background: #0b7a3b;
  color: #fff;
  border-color: transparent;
}
.btn-success:hover {
  filter: brightness(0.95);
}

.btn-warn {
  background: #f59e0b;
  color: #111827;
  border-color: transparent;
}
.btn-warn:hover {
  filter: brightness(0.97);
}

.btn-dark {
  background: #111827;
  color: #fff;
  border-color: transparent;
}
.btn-dark:hover {
  filter: brightness(1.05);
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

.btn[disabled],
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== Page Head ===== */
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 14px 0 12px;
}
.pagehead h1 {
  margin: 0;
  font-size: 26px;
}
.pagehead-actions {
  display: flex;
  gap: 10px;
}

/* ===== Cards / Panels ===== */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--border-2);
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

/* ===== Layout ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
@media (max-width: 1000px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== KPI Cards ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 10px 0 16px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.kpi-danger {
  border-color: #fde2e2;
}
.kpi-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.kpi-value {
  font-size: 30px;
  font-weight: 950;
  margin-top: 6px;
  line-height: 1.1;
}
.kpi-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Tables ===== */
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table tr:hover td {
  background: #fafcff;
}

/* Hide some columns on mid screens */
@media (max-width: 900px) {
  .table th:nth-child(5),
  .table td:nth-child(5),
  .table th:nth-child(6),
  .table td:nth-child(6) {
    display: none;
  }
}

/* Mobile tables: rows become cards */
@media (max-width: 860px) {
  .table-wrap {
    overflow: visible;
  }
  table.table thead {
    display: none;
  }
  table.table,
  table.table tbody,
  table.table tr,
  table.table td {
    display: block;
    width: 100%;
  }
  table.table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 12px 0;
    overflow: hidden;
  }
  table.table td {
    border-bottom: 1px solid var(--border-2);
    white-space: normal;
    padding: 12px 14px;
  }
  table.table td:last-child {
    border-bottom: 0;
  }
  table.table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 900;
    margin-bottom: 6px;
  }
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}
.b-blue {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #e0e7ff;
}
.b-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #d1fae5;
}
.b-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.b-gray {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

/* =========================================================
   FORMS (FIXED)
   - This is the main reason your inputs looked “broken”.
   - Styles apply to ALL inputs/selects/textareas + your .input/.select classes.
   ========================================================= */

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
}

.field label,
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}

/* Unified control */
.input,
.select,
.textarea,
textarea.input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e6eaf2;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  outline: none;
  line-height: 1.2;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

/* Match heights for input/select */
.input,
.select,
input,
select {
  height: 44px;
}

/* Textareas */
.textarea,
textarea,
textarea.input {
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  height: auto;
  border-radius: 14px;
}

/* Focus */
.input:focus,
.select:focus,
.textarea:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(19, 112, 43, 0.35);
  box-shadow: 0 0 0 4px rgba(19, 112, 43, 0.1);
}

/* Nice select arrow */
select,
.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236b7280' stroke-width='2' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Compact selects inside tables */
.select-compact {
  height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
}

/* ===== Forms grid ===== */
.form-grid {
  display: grid;
  gap: 12px;
}

/* ===== Filters UI ===== */
.filters {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e6eaf2;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
  color: #0f172a;
}
.chip:hover {
  background: #f8fafc;
}
.chip-active {
  background: rgba(19, 112, 43, 0.1);
  border-color: rgba(19, 112, 43, 0.25);
  color: var(--brand-dark);
}

.filter-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 1000px) {
  .filter-form {
    grid-template-columns: 1fr;
  }
}

/* ===== Row actions ===== */
.row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 860px) {
  .row-actions {
    justify-content: flex-start;
  }
}

/* ===== Empty State ===== */
.empty {
  padding: 16px;
}
.empty-title {
  font-weight: 950;
  margin-bottom: 6px;
}
code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 8px;
}

/* =========================================================
   Alerts / Toast
   ========================================================= */
.alert {
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  margin: 10px 0 6px;
  border: 1px solid transparent;
}
.alert-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.alert-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}
.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
.modal-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   Auth (Login)
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(19, 112, 43, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 80% 20%,
      rgba(19, 112, 43, 0.08),
      transparent 60%
    ),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(19, 112, 43, 0.24);
}

.auth-title {
  font-weight: 950;
  font-size: 18px;
  margin: 0;
}
.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.auth-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
}

.auth-help {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.auth-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
}

/* =========================================================
   Notes
   ========================================================= */
.note-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.note-box-title {
  font-weight: 950;
  margin-bottom: 10px;
}
.note-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.note-list {
  display: grid;
  gap: 10px;
}
.note-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}
.note-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.note-text,
.note-body {
  font-weight: 800;
  line-height: 1.35;
}

/* =========================================================
   Phone order: customer search dropdown
   ========================================================= */
.rs-typeahead {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 50;
}
.rs-typeahead-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  cursor: pointer;
}
.rs-typeahead-item:hover {
  background: #f6f7fb;
}
.rs-ta-title {
  font-weight: 900;
  color: #111827;
}
.rs-ta-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* =========================================================
   Customers: “panel-sub” should NOT look like a nested card
   ========================================================= */
body.app .panel-sub {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

body.app .panel-sub-head {
  padding: 0 0 10px 0;
  margin: 0 0 12px 0;
  border-bottom: 1px solid var(--border-2);
}

body.app .panel-sub-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}

body.app .panel-sub-body {
  padding: 0;
}

body.app .panel-sub + .panel-sub {
  margin-top: 6px;
}

/* Safety: if a panel ever ends up nested in a panel, flatten it */
body.app .panel .panel {
  box-shadow: none !important;
  border-color: var(--border-2) !important;
  border-radius: 14px !important;
}

/* =========================================================
   Mobile + tablet improvements
   ========================================================= */
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .topbar-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .pagehead-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Utility card blocks */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 14px;
}
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.info-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.info-main {
  font-size: 20px;
  font-weight: 950;
  margin-top: 6px;
}
.info-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

/* Sticky action bar on mobile for order actions */
.mobile-actions {
  display: none;
}
@media (max-width: 860px) {
  .mobile-actions {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 30;
    gap: 10px;
    padding: 12px;
    background: rgba(246, 247, 251, 0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid #eaeef5;
    margin: 16px -18px -18px;
  }
  .mobile-actions .btn {
    flex: 1;
  }
}

/* Driver jobs grid helper */
.job-cards-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 860px) {
  .job-cards-3 {
    grid-template-columns: 1fr !important;
  }
  .job-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .job-card-actions .btn {
    flex: 1;
  }
  .info-main {
    font-size: 18px;
  }
}
/* =========================================================
   Daily Checklist (Driver)
   ========================================================= */

.dc-grid {
  display: grid;
  gap: 12px;
}

.dc-form {
  display: grid;
  gap: 12px;
}

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

.dc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.dc-item:hover {
  border-color: rgba(19, 112, 43, 0.25);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dc-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.dc-item span {
  font-weight: 800;
  line-height: 1.25;
  font-size: 14px;
}

.dc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dc-actions .btn {
  flex: 0 0 auto;
}

.dc-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dc-success {
  border-left: 4px solid #22c55e;
}

.dc-danger {
  border-left: 4px solid #ef4444;
}

/* Mobile */
@media (max-width: 720px) {
  .dc-checklist {
    grid-template-columns: 1fr;
  }
}

.logo img {
  height: 45px; /* adjust if needed */
  width: auto;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 40px;
}

.auth-logo img {
  height: 60px; /* slightly larger for login page */
  width: auto;
  display: block;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 20px;
}

/* Amber / warning button */
.btn-amber {
  background: #f59e0b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827;
}
.btn-amber:hover {
  filter: brightness(0.96);
}
.btn-amber:active {
  filter: brightness(0.92);
}
.btn-amber:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Keep your table compact generally... */
.table th,
.table td {
  white-space: nowrap;
}

/* ...but allow wrapping for specific cells */
.table td.cell-wrap {
  white-space: normal;
}

.notes-text {
  white-space: normal; /* wrap */
  overflow-wrap: anywhere; /* break long words/URLs */
  word-break: break-word;
  line-height: 1.35;
  font-weight: 700; /* similar to <strong> */
}

.b-red {
  background: red;
  color: #1d4ed8;
  border-color: #e0e7ff;
}
