/* ==========================================================================
   Brand colours. This is the ONLY place the app's palette is anchored -
   every themed colour below (buttons, headers, hover glows, table tints,
   background washes) is derived from these six custom properties via var()
   or color-mix(), so overriding them (see templates/base.html, which sets
   them from branding.py) re-colours the entire app.
   ========================================================================== */
:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --secondary: #06b6d4;
  --accent: #f97316;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;

  /* Neutral tokens - intentionally brand-independent */
  --bg-page: #f1f6f6;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger-bg: #fee2e2;
  --danger-text: #b91c1c;
}

* , *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-light) 12%, white) 0%,
    var(--bg-page) 240px,
    color-mix(in srgb, var(--accent) 10%, white) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Topbar / Brand ---------- */
.topbar {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--primary) 85%, black) 0%,
    color-mix(in srgb, var(--secondary) 85%, black) 100%);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.brand-logo { width: 30px; height: 30px; object-fit: contain; display: block; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: 0.2px; }
.user { font-size: 0.9rem; opacity: 0.95; }
.user a { color: color-mix(in srgb, var(--accent) 30%, white); }

/* Navbar: material-like contrasting pill inside the dark topbar */
.navbar { display:flex; gap:6px; background: rgba(255,255,255,0.96); padding:6px; border-radius:10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin-left:12px; align-items:center }
.navbar a { color: color-mix(in srgb, var(--primary) 75%, black); text-decoration: none; font-weight:600; font-size: 0.92rem; padding:8px 12px; border-radius:8px; transition: background .15s ease, color .15s ease }
.navbar a:hover { background: color-mix(in srgb, var(--primary-light) 15%, white); color: var(--primary) }
.navbar a.active { background: linear-gradient(120deg, var(--primary), var(--secondary)); color: #fff }

/* ---------- Login ---------- */
.login-wrap { display:flex; justify-content:center; align-items:center; min-height: calc(100vh - 64px); padding: 24px; }
.login-form {
  background: var(--card-bg);
  padding: 32px 36px;
  border-radius: 14px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 14%, transparent);
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-light), var(--accent)) 1;
  width: 320px;
}
.login-form h2 { margin-top:0; color: var(--text-main); }
.login-form label { display:block; margin-bottom:14px; font-weight: 500; color: var(--text-muted); font-size: 0.9rem; }
.login-form input { width:100%; padding:10px 12px; margin-top: 4px; border:1px solid var(--border); border-radius:8px; font-size: 0.95rem; }
.login-form input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-light) 15%, transparent); }
.login-form button {
  padding:10px 16px;
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.login-form button:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); transform: translateY(-1px); }

/* ---------- Dashboard layout ---------- */
.dashboard { display:flex; flex-direction:column; gap:16px; padding:20px; max-width: 1200px; margin: 0 auto; }
.section {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  border-top: 4px solid var(--primary-light);
}
.section h2 { margin-top: 0; color: var(--text-main); font-size: 1.15rem; }
.section-1 { border-top-color: var(--primary-light); width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.section-2 { border-top-color: var(--accent); }
.section-3 { border-top-color: var(--accent-2); }

label { display:block; margin-bottom:8px; font-size: 0.92rem; color: var(--text-muted); }
input[type="text"], input[type="number"], input[type="date"], select {
  padding:9px 10px;
  width:100%;
  max-width:320px;
  background:#ffffff;
  color:#111;
  border:1px solid var(--border);
  border-radius:8px;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="text"]:hover, input[type="number"]:hover, input[type="date"]:hover, select:hover,
input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus {
  background:#ffffff;
  color:#111;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-light) 14%, transparent);
  outline: none;
}
.section-1 #patientForm { width: 700px; max-width: 100%; }

input:disabled, select:disabled { background:#f1f5f9; color:#94a3b8; cursor:not-allowed; }

.no-medicines-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  margin: -4px 0 14px;
}
.no-medicines-toggle input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
button {
  font-family: inherit;
}
#saveBtn, #fetchBtn, #clearBtn, #saveMedicineBtn {
  padding:9px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
#fetchBtn, #saveMedicineBtn { background: linear-gradient(120deg, var(--primary), var(--secondary)); color: white; }
#fetchBtn:hover, #saveMedicineBtn:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-1px); }
#saveBtn { background: linear-gradient(120deg, var(--accent), var(--accent-3)); color: white; }
#saveBtn:hover:not(:disabled) { box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-1px); }
#saveBtn:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; transform: none; }
#billAddBtn:disabled, #billClearBtn:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; box-shadow: none; transform: none; opacity: 0.8; }
#clearBtn { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border) !important; }
#clearBtn:hover { background: #e2e8f0; }

.form-actions { display:flex; gap:8px; margin-top:8px }
.form-actions button { min-width:110px; padding:9px 12px }
.result { margin-top:10px; color: color-mix(in srgb, var(--primary) 82%, black); font-weight: 500; min-height: 1.2em; }
.result-warning { color: color-mix(in srgb, var(--accent) 75%, black); }

/* Button loading spinner state (animated clinic logo badge) */
button.btn-loading { position: relative; color: transparent !important; pointer-events: none; opacity: 0.9; }
button.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  background: #fdfdfd url('/static/logo.png') center / 68% no-repeat;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  animation: skin-loader 1.1s ease-in-out infinite;
}

/* ---------- Billing ---------- */
.billing-section .billing-grid { display:grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items:start }
.billing-pane { background:#f8fafb; padding:16px; border-radius:10px; border:1px solid var(--border) }
.billing-pane label { max-width: 100%; }
.billing-pane input[type="text"], .billing-pane input[type="number"] { max-width: 100%; }
#billAddBtn { margin-top:12px; padding:10px 16px; width: 100%; background: linear-gradient(120deg, var(--primary), var(--secondary)); color:white; border:none; border-radius:8px; cursor:pointer; font-weight:600; transition: transform .12s ease, box-shadow .12s ease; }
#billAddBtn:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-1px); }
#billClearBtn { padding:10px 16px; background:#f1f5f9; color: var(--text-muted); border:1px solid var(--border); border-radius:8px; cursor:pointer; }
#billClearBtn:hover { background:#e2e8f0; }
.billing-actions { display:flex; gap:8px; }
#billGenerateBtn { background: linear-gradient(120deg, var(--accent), var(--accent-3)); color:white; border:none; padding:10px 16px; border-radius:8px; font-weight:600; cursor:pointer; transition: transform .12s ease, box-shadow .12s ease; }
#billGenerateBtn:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-3) 30%, transparent); transform: translateY(-1px); }
#billDownloadBtn { background: linear-gradient(120deg, var(--primary), var(--secondary)); color:white; border:none; padding:10px 16px; border-radius:8px; font-weight:600; cursor:pointer; }

.medicine-grid { display:grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.suggestions-box { position: relative; max-width: 100%; }
.suggestions-list { position: absolute; top: 0; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 24px rgba(15,23,42,0.12); z-index: 20; max-height: 260px; overflow-y: auto; }
.suggestion-item { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: color-mix(in srgb, var(--primary-light) 8%, white); }
.suggestion-item strong { display: inline-block; margin-right: 8px; }
.suggestion-type { color: var(--text-muted); font-size: 0.9rem; }
.medicine-form-panel, .medicine-table-panel { background:#f8fafb; padding:16px; border-radius:10px; border:1px solid var(--border) }
.medicine-table-wrapper { overflow-x:auto; }
.medicine-table-panel h2 { margin-top:0; }

/* ---------- Tables ---------- */
#billItemsTable, .today-bills-table { width:100%; border-collapse:collapse; margin-bottom:16px; }
#billItemsTable th, #billItemsTable td,
.today-bills-table th, .today-bills-table td { padding:11px 10px; border-bottom: 1px solid var(--border); text-align:left; }
#billItemsTable th, .today-bills-table th {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--primary-light) 25%, white),
    color-mix(in srgb, var(--secondary) 20%, white));
  color: color-mix(in srgb, var(--primary) 82%, black);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.today-bills-table tbody tr:hover td { background: #f8fafc; }
.today-bills-table { margin-top:16px; }
.today-bills-header { display:flex; justify-content:space-between; align-items:center; flex-wrap: wrap; gap:12px; margin-bottom:12px; }
.today-bills-header h3 { margin:0; font-size:1rem; color: var(--text-main); }
.today-bills-date-filter { font-size:0.85rem; color:var(--text-muted); margin-bottom: 0; }
.today-bills-date-filter input[type="date"] { padding:7px 10px; border:1px solid var(--border); border-radius:8px; max-width: none; }
.today-bills-header button { padding:9px 16px; background: linear-gradient(120deg, var(--accent-2), var(--accent-3)); color:white; border:none; border-radius:8px; cursor:pointer; font-weight:600; transition: transform .12s ease, box-shadow .12s ease; }
.today-bills-header button:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-2) 30%, transparent); transform: translateY(-1px); }

.loading-cell { text-align: center !important; color: var(--text-muted); padding: 24px 10px !important; }
.loading-cell .skin-spinner-icon { animation: skin-loader 1.1s ease-in-out infinite; vertical-align: middle; margin-right: 8px; }

.billing-summary { display:flex; flex-direction:column; gap:12px; }

.patient-table-wrapper { overflow-x:auto; }
.patient-list-table tbody tr { transition: background .12s ease; cursor: pointer; }
.patient-list-table tbody tr:hover td { background: color-mix(in srgb, var(--primary-light) 8%, white); }
.patient-list-table tbody tr.selected td { background: color-mix(in srgb, var(--primary-light) 25%, white); }
.patient-actions { margin-top: 16px; }
.patient-actions button { padding: 10px 16px; background: linear-gradient(120deg, var(--primary), var(--secondary)); color:white; border:none; border-radius:8px; cursor:pointer; font-weight:600; }
.patient-actions button:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ---------- Online Consultation Requests ---------- */
.consult-header { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.consult-header h2 { margin:0; }
.consult-filter { font-size:0.85rem; color:var(--text-muted); margin-bottom:0; }
.consult-filter select { padding:7px 10px; border:1px solid var(--border); border-radius:8px; }

.consult-table-wrapper { overflow-x:auto; }
.consult-mobile { color: var(--text-muted); font-size: 0.85rem; }

.status-badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:0.8rem; font-weight:600; white-space:nowrap; }
.status-pending { background: color-mix(in srgb, var(--accent) 18%, white); color: color-mix(in srgb, var(--accent) 70%, black); }
.status-confirmed { background: color-mix(in srgb, var(--primary) 16%, white); color: color-mix(in srgb, var(--primary) 75%, black); }
.status-completed { background: color-mix(in srgb, var(--secondary) 16%, white); color: color-mix(in srgb, var(--secondary) 65%, black); }
.status-cancelled { background: #e2e8f0; color: var(--text-muted); }
.status-rejected { background: var(--danger-bg); color: var(--danger-text); }

.consult-manage-btn { padding:7px 14px; background: linear-gradient(120deg, var(--primary), var(--secondary)); color:white; border:none; border-radius:8px; cursor:pointer; font-weight:600; font-size:0.85rem; }
.consult-manage-btn:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ---------- Modal (generic - also used for consultation management) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  padding: 28px 24px;
}
.modal h3 { margin-top:0; padding-right: 28px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #e2e8f0; }

.consult-detail-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 18px; }
.consult-detail-label { display:block; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); margin-bottom:2px; }

.consult-notes-block { margin-bottom: 18px; }
.consult-req-notes { background:#f8fafb; border:1px solid var(--border); border-radius:8px; padding:10px 12px; margin:6px 0 0; white-space:pre-wrap; word-break: break-word; }

.consult-paid-hint { margin: 4px 0 12px; font-size: 0.85rem; color: #6b7280; }
.consult-video-block { margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.consult-video-btn { display:inline-block; padding:10px 18px; background: linear-gradient(120deg, var(--accent-2), var(--accent-3)); color:white; border-radius:8px; font-weight:600; text-decoration:none; }
.consult-video-btn:hover { box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.consult-video-btn-action { border: none; cursor: pointer; font: inherit; }
.consult-video-btn-action:disabled { opacity: 0.6; cursor: not-allowed; }

#consultManageForm label { display:block; margin-bottom:14px; font-weight:500; color: var(--text-muted); font-size:0.9rem; }
#consultManageForm select, #consultManageForm textarea { width:100%; margin-top:4px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; font-size:0.95rem; font-family: inherit; }
.consult-modal-actions { display:flex; gap:8px; }
.consult-modal-actions button { padding:9px 16px; }
#consultSaveBtn { background: linear-gradient(120deg, var(--primary), var(--secondary)); color:white; border:none; border-radius:8px; cursor:pointer; font-weight:600; }
#consultSaveBtn:hover:not(:disabled) { box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }
#consultCancelBtn { background:#f1f5f9; color:var(--text-muted); border:1px solid var(--border); border-radius:8px; cursor:pointer; }
#consultCancelBtn:hover { background:#e2e8f0; }

.summary-row { display:flex; justify-content:space-between; padding:12px; background: color-mix(in srgb, var(--primary-light) 8%, white); border-radius:8px }
.summary-row.final { background: linear-gradient(120deg, color-mix(in srgb, var(--primary-light) 25%, white), color-mix(in srgb, var(--accent) 22%, white)); font-weight:700; font-size: 1.05rem; }
.billing-summary label { display:flex; flex-direction:column; gap:4px; }
.billing-summary input { width:100%; max-width:200px; }

.flashes { list-style:none; padding:0; margin:16px 20px 0; max-width: 1200px; }
.flashes li { background: var(--danger-bg); color: var(--danger-text); padding:10px 14px; border-radius:8px; font-weight: 500; }

/* ---------- Loading spinner (animated clinic logo) ---------- */
@keyframes skin-loader {
  0%, 100% { transform: scale(0.85) rotate(-6deg); opacity: 0.7; }
  50% { transform: scale(1.15) rotate(6deg); opacity: 1; }
}
.skin-spinner-icon { display: inline-block; }

/* ==========================================================================
   Responsive / mobile layout
   The viewport meta tag lives in templates/base.html. Everything below adapts
   the desktop layout above for narrow screens: the topbar stacks, the two-
   column billing / medicine grids collapse to one column, fixed-width forms
   go fluid, and wide tables keep their horizontal scroll wrappers.
   ========================================================================== */

/* Never let a stray wide element push the whole page sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* Tablet and below */
@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    gap: 10px;
  }
  .brand { flex: 1 1 100%; justify-content: center; }
  .topbar h1 { font-size: 16px; }

  /* Nav pills: full width, scroll sideways if they don't fit rather than wrap messily */
  .navbar {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar a { flex: 0 0 auto; white-space: nowrap; }

  .user { flex: 1 1 100%; font-size: 0.82rem; }

  /* Dashboard + page shells */
  .dashboard { padding: 14px; gap: 14px; }
  .section { padding: 16px; }

  /* Collapse the two-column grids to a single column */
  .billing-section .billing-grid,
  .medicine-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Fixed-width form on the dashboard goes fluid */
  .section-1 #patientForm { width: 100%; }

  /* Let inputs use the full width on small screens */
  input[type="text"], input[type="number"], input[type="date"], select { max-width: 100%; }
  .billing-summary input { max-width: 100%; }

  /* Stack action button rows */
  .form-actions,
  .billing-actions,
  .patient-actions { flex-wrap: wrap; }
  .form-actions button,
  .billing-actions button,
  .patient-actions button { flex: 1 1 auto; min-width: 0; }

  .today-bills-header,
  .consult-header { flex-direction: column; align-items: stretch; }

  /* Grid children must be allowed to shrink below their content width, otherwise
     a wide table blows out the whole section instead of scrolling inside its
     wrapper. */
  .medicine-grid > *,
  .billing-section .billing-grid > * { min-width: 0; }

  /* Wide tables: force them wider than the phone screen so the wrapper actually
     has something to scroll, keep every cell on one line, and show a persistent
     scrollbar plus a "swipe" hint so users know it moves. */
  .medicine-table-wrapper,
  .patient-table-wrapper,
  .today-bills-wrapper,
  .billing-table-wrapper,
  .consult-table-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #medicineTable, #billItemsTable,
  .today-bills-table, .patient-list-table, .consult-table { min-width: 560px; }

  #billItemsTable th, #billItemsTable td,
  .today-bills-table th, .today-bills-table td {
    padding: 9px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* WebKit (Chrome/Safari) hides the bar until you drag - force it visible. */
  .medicine-table-wrapper::-webkit-scrollbar,
  .patient-table-wrapper::-webkit-scrollbar,
  .today-bills-wrapper::-webkit-scrollbar,
  .billing-table-wrapper::-webkit-scrollbar,
  .consult-table-wrapper::-webkit-scrollbar { height: 8px; -webkit-appearance: none; }
  .medicine-table-wrapper::-webkit-scrollbar-thumb,
  .patient-table-wrapper::-webkit-scrollbar-thumb,
  .today-bills-wrapper::-webkit-scrollbar-thumb,
  .billing-table-wrapper::-webkit-scrollbar-thumb,
  .consult-table-wrapper::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary) 45%, white);
    border-radius: 4px;
  }
  .medicine-table-wrapper::-webkit-scrollbar-track,
  .patient-table-wrapper::-webkit-scrollbar-track,
  .today-bills-wrapper::-webkit-scrollbar-track,
  .billing-table-wrapper::-webkit-scrollbar-track,
  .consult-table-wrapper::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }

  .medicine-table-wrapper::after,
  .patient-table-wrapper::after,
  .today-bills-wrapper::after,
  .billing-table-wrapper::after,
  .consult-table-wrapper::after {
    content: "\2190 swipe to see all columns \2192";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 0 2px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .login-wrap { padding: 16px; }
  .login-form { width: 100%; padding: 24px 20px; }

  .topbar h1 { font-size: 15px; }
  .brand-logo-wrap { width: 34px; height: 34px; }
  .brand-logo { width: 26px; height: 26px; }

  .section h2 { font-size: 1.05rem; }
  .flashes { margin: 12px 14px 0; }

  #billItemsTable th, .today-bills-table th { font-size: 0.72rem; }
  #billItemsTable th, #billItemsTable td,
  .today-bills-table th, .today-bills-table td { padding: 8px 6px; }

  .modal { padding: 22px 16px; }
  .consult-detail-grid { grid-template-columns: 1fr; }
}
