/* ===================================================
   KLD App — Shared Styles
   =================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 11pt;
  color: #222;
  background: #f4f6f9;
  line-height: 1.5;
  direction: rtl;
}

a { color: #1976d2; text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------- Top Bar -------------------------- */

.topbar {
  background: linear-gradient(90deg, #1a3a5c, #2a5b8a);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14pt;
  font-weight: 600;
}
.topbar .brand .logo {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13pt;
}
.topbar .brand a { color: #fff; }
.topbar .brand a:hover { text-decoration: none; opacity: 0.9; }
/* Brand text + greeting stacked (greeting injected by auth.js) */
.topbar .brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.topbar .brand .brand-greeting { font-weight: 400; color: #b3c8e0; }
.topbar nav { display: flex; gap: 18px; font-size: 10.5pt; align-items: center; }
.topbar nav a { color: #d6e4f5; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar-meta {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  line-height: 1.3;
}
.topbar-clock {
  color: #d6e4f5; font-size: 10.5pt; letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  grid-column: 1 / 2; grid-row: 1 / 2;
}
.topbar-user { color: #b3c8e0; font-size: 9pt; grid-column: 1 / 3; grid-row: 2 / 3; }
.topbar-settings-btn {
  grid-column: 2 / 3; grid-row: 1 / 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #d6e4f5;
  width: 30px; height: 30px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
}
.topbar-settings-btn:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.35); }
.topbar-settings-btn:active { transform: scale(0.96); }

/* -------------------------- Login page -------------------------- */
body.login-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(at 18% 22%, rgba(80, 130, 180, 0.55) 0%, transparent 45%),
    radial-gradient(at 82% 78%, rgba(58, 100, 150, 0.55) 0%, transparent 50%),
    radial-gradient(at 50% 100%, rgba(13, 30, 52, 0.85) 0%, transparent 60%),
    linear-gradient(135deg, #0e2440 0%, #1a3a5c 55%, #265181 100%);
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
}
body.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.04) 1px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 2px);
  background-size: 70px 70px, 110px 110px;
  pointer-events: none;
  z-index: 0;
}
body.login-body::after {
  content: '';
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 180, 240, 0.18), transparent 60%);
  top: -180px; right: -180px;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.login-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: 100%;
  max-width: 410px;
  padding: 42px 40px 30px;
  animation: loginCardIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.login-brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-brand .logo {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, #2a5b8a 0%, #1a3a5c 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px;
  font-weight: 700; font-size: 26pt;
  box-shadow: 0 8px 22px rgba(26, 58, 92, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.login-title {
  font-size: 19pt; font-weight: 700; color: #1a3a5c;
  letter-spacing: -0.4px; line-height: 1.1;
}
.login-subtitle {
  font-size: 10.5pt; color: #7088a0; margin-top: 5px; font-weight: 500;
}

.login-heading {
  text-align: center;
  margin: 0 0 22px;
  font-size: 11pt;
  color: #6b7a8a;
  font-weight: 400;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}

.login-field {
  position: relative;
  margin-bottom: 14px;
}
.login-field .icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aacc0;
  pointer-events: none;
  display: flex;
  transition: color 0.15s;
}
.login-field input {
  width: 100%;
  padding: 14px 46px 14px 14px;
  border: 1.5px solid #dde3eb;
  border-radius: 11px;
  font-family: inherit;
  font-size: 11pt;
  background: #f6f8fb;
  color: #1a3a5c;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.login-field input::placeholder {
  color: #9aacc0;
  font-size: 10.5pt;
}
.login-field input:focus {
  outline: none;
  border-color: #2a5b8a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 91, 138, 0.13);
}
.login-field input:focus + .icon,
.login-field:focus-within .icon {
  color: #2a5b8a;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #2a5b8a 0%, #1a3a5c 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-size: 11.5pt;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(26, 58, 92, 0.32);
  transition: transform 0.1s, box-shadow 0.18s, filter 0.18s;
}
.login-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(26, 58, 92, 0.42);
}
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible {
  outline: none;
  box-shadow: 0 6px 18px rgba(26, 58, 92, 0.32), 0 0 0 4px rgba(42, 91, 138, 0.25);
}

.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 9pt;
  color: #9aacc0;
  letter-spacing: 0.2px;
}

.form-error {
  background: #fdecea; border: 1px solid #f5c6c4; color: #8a1f1a;
  padding: 9px 12px; border-radius: 8px; font-size: 10pt;
  margin-bottom: 10px;
  animation: errorShake 0.35s;
}
@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* -------------------------- Settings modal -------------------------- */
.settings-section { margin-bottom: 18px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section-title {
  font-size: 11.5pt; color: #1a3a5c; font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid #e0e4ea;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc; border-radius: 6px;
  border: 1px solid #e6ebf2;
}
.settings-row-title { font-weight: 600; color: #1a3a5c; font-size: 11pt; }
.settings-row-sub { color: #555; font-size: 10pt; margin-top: 2px; }
.settings-disabled-note {
  padding: 12px 14px;
  background: #f4f6f9; border: 1px dashed #c8cdd6; border-radius: 6px;
  color: #666; font-size: 10pt;
}
.settings-users-table {
  width: 100%; border-collapse: collapse; font-size: 10.5pt;
}
.settings-users-table th,
.settings-users-table td {
  padding: 8px 10px; border-bottom: 1px solid #eef0f3; text-align: right;
}
.settings-users-table th {
  font-weight: 600; color: #1a3a5c; background: #f8fafc;
  font-size: 10pt;
}
.settings-users-table tr:last-child td { border-bottom: none; }
.badge-admin, .badge-user, .badge-all {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 9pt; font-weight: 600;
}
.badge-admin { background: #fff3e0; color: #b35a00; border: 1px solid #ffcc80; }
.badge-user  { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
.badge-all   { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.btn-sm { padding: 4px 10px; font-size: 9.5pt; }

.user-form {
  background: #f8fafc; border: 1px solid #e0e4ea; border-radius: 6px;
  padding: 14px 16px;
}
.user-form-title {
  font-weight: 600; color: #1a3a5c; font-size: 11pt;
  margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #e0e4ea;
}
/* These need to beat `.form-field label { display: block }` (0,1,1) — using
   `.user-form` prefix bumps specificity to (0,2,1) on the input rule and (0,2,0)
   on the label rule. */
.user-form label.checkbox-line,
.user-form label.conf-pick {
  display: flex; align-items: center; gap: 8px;
  font-weight: normal;
  font-size: 10.5pt;
  margin-bottom: 0;
  cursor: pointer;
}
.user-form label.conf-pick { font-size: 10pt; padding: 3px 0; gap: 6px; }
.user-form .checkbox-line input[type="checkbox"],
.user-form .conf-pick input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.conf-pick-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px;
  max-height: 180px; overflow-y: auto;
  padding: 8px 10px; border: 1px solid #d8dde5; border-radius: 5px;
  background: #fff; margin-top: 6px;
}

/* Data-collection status pill — used on conference cards (index.html) */
.data-status-pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 9.5pt; font-weight: 600; border: 1.5px solid;
}
.data-status-pill.in-progress { background: #ffe082; border-color: #f9a825; color: #5d3a00; }
.data-status-pill.completed   { background: #a5d6a7; border-color: #2e7d32; color: #0d3a10; }

/* Report-generator modal — hotel + report selection */
.rg-section { margin-bottom: 18px; }
.rg-section-title {
  margin: 0 0 8px; font-size: 11.5pt; color: #1a3a5c; font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid #e0e4ea;
}
.rg-help { margin: 0 0 8px; font-size: 9.5pt; color: #666; }
.rg-button-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-btn {
  background: #f5f7fa; color: #1a3a5c; border: 1.5px solid #c8cdd6;
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 10pt; font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rg-btn:hover:not(:disabled):not(.selected) { background: #e3e8ef; border-color: #8fa6c4; }
.rg-btn.selected {
  background: #1976d2; color: #fff; border-color: #1565c0;
}
.rg-btn:disabled { cursor: default; opacity: 0.85; }
.rg-summary {
  margin-top: 12px; padding: 10px 12px;
  background: #e8f4fd; border-right: 3px solid #1976d2;
  border-radius: 4px; font-size: 10pt; color: #0d47a1;
  min-height: 22px;
}
.rg-summary:empty { display: none; }

/* -------------------------- Breadcrumb -------------------------- */

.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e0e4ea;
  padding: 8px 28px;
  font-size: 10pt;
  color: #666;
}
.breadcrumb a { color: #2a5b8a; }
.breadcrumb .sep { margin: 0 8px; color: #bbb; }

/* Hover dropdowns on each breadcrumb crumb (built in app.js: initBreadcrumbNav) */
.bc-drop { position: relative; display: inline-block; }
.bc-drop-label { cursor: pointer; }
.bc-caret {
  margin-right: 3px;
  font-size: 7.5pt;
  color: #9aa7b4;
  cursor: pointer;
  vertical-align: middle;
}
.bc-drop:hover .bc-caret { color: #2a5b8a; }
.bc-menu {
  display: none;
  position: absolute;
  top: 100%;            /* touches the crumb — no gap, so hover isn't lost */
  right: 0;             /* RTL: anchor to the crumb's right edge, expand leftward */
  padding: 6px;
  min-width: 210px;
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(20, 40, 70, 0.16);
  z-index: 1000;
}
.bc-drop:hover .bc-menu { display: block; }
.bc-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #2a3b4d !important;
  text-decoration: none;
  font-size: 10pt;
  white-space: nowrap;
}
.bc-menu-item:hover { background: #eef3f9; }
.bc-ic { flex: 0 0 auto; width: 1.5em; text-align: center; }
.bc-tx { flex: 1 1 auto; }
.bc-menu-header {
  padding: 8px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid #eef0f3;
  font-size: 8.5pt;
  font-weight: 600;
  color: #8a97a4;
}
.bc-menu-header:first-child { border-top: none; margin-top: 0; }
.bc-menu-empty { padding: 8px 10px; font-size: 9.5pt; color: #97a2ad; }

/* -------------------------- Layout -------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  margin: 0;
  font-size: 18pt;
  color: #1a1a1a;
}
.page-header .subtitle {
  color: #666;
  font-size: 10.5pt;
  margin-top: 4px;
}

/* -------------------------- Buttons -------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11pt;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: #1976d2; color: #fff; }
.btn-primary:hover { background: #1565c0; text-decoration: none; }
.btn-secondary { background: #fff; color: #2a5b8a; border-color: #bbb; }
.btn-secondary:hover { background: #f0f4f8; }
.btn-danger { background: #fff; color: #c62828; border-color: #ef9a9a; }
.btn-danger:hover { background: #ffebee; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover { background: #1b5e20; }
.btn-sm { padding: 5px 12px; font-size: 10pt; }
.btn-lg { padding: 11px 26px; font-size: 12pt; }

/* -------------------------- Cards -------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.entity-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 16px 18px;
  transition: box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  display: block;
  color: inherit;
}
.entity-card:hover {
  box-shadow: 0 4px 14px rgba(42,91,138,0.12);
  border-color: #2a5b8a;
  text-decoration: none;
}
.entity-card h3 {
  margin: 0 0 8px;
  font-size: 12.5pt;
  color: #1a1a1a;
}
.entity-card .meta {
  font-size: 9.5pt;
  color: #666;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.entity-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.entity-card .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9pt;
  font-weight: 500;
}
.badge-filled { background: #e8f5e9; color: #1b5e20; }
.badge-missing { background: #ffebee; color: #b71c1c; }
.badge-na { background: #eceff1; color: #455a64; }
.badge-status-active { background: #e3f2fd; color: #0d47a1; }
.badge-status-pending { background: #fff8e1; color: #6d4c00; }

/* -------------------------- Section bar (header + action) -------------------------- */

.section-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;  /* small breathing space between the title and its action button */
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e4ea;
}
.section-bar h2 {
  margin: 0;
  font-size: 15pt;
  color: #1a3a5c;
  font-weight: 600;
}
.section-bar .btn {
  flex-shrink: 0;
}

/* Action bar between page header and first section — used for the
   "עדכון פרטי כנס" button below the conference name/dates */
.conf-actions-bar {
  margin: 14px 0 0;
  display: flex; gap: 8px; align-items: center;
}

/* Inline icon-only buttons (pencil, trash, etc.) — sit next to a heading without competing with it */
.btn-icon {
  background: transparent; border: 1px solid transparent;
  width: 28px; height: 28px; padding: 0; margin: 0 6px;
  border-radius: 50%; cursor: pointer;
  font-size: 13pt; line-height: 1;
  vertical-align: middle;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.btn-icon:hover { background: #eef1f5; border-color: #d4dde7; }
.btn-icon-danger:hover { background: #ffebee; border-color: #ef9a9a; }

/* Future-feature buttons — visually muted to make clear they're disabled placeholders */
.btn-future {
  background: #eef0f3; color: #9aa3ad; border: 1px solid #d4d8de;
  padding: 7px 14px; border-radius: 4px;
  font-family: inherit; font-size: 10pt; font-weight: 500;
  cursor: not-allowed; opacity: 0.75;
}
.btn-future:hover { background: #eef0f3; } /* no visible hover change */
.future-actions { opacity: 0.85; }

/* Horizontal divider that separates the top action area from the first content section */
hr.section-divider {
  border: none;
  border-top: 1px solid #d4dde7;
  margin: 22px 0 0;
}

.empty-section {
  padding: 20px 18px;
  text-align: center;
  background: #fafbfc;
  border: 1px dashed #d4d9e0;
  border-radius: 6px;
  margin-bottom: 8px;
}
.empty-section p { margin: 0; font-size: 10.5pt; }

/* -------------------------- Empty State -------------------------- */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
.empty-state .icon {
  font-size: 60pt;
  color: #c5cdd6;
  margin-bottom: 12px;
}
.empty-state h2 {
  font-size: 14pt;
  color: #444;
  margin: 0 0 8px;
  font-weight: 500;
}
.empty-state p { margin: 0 0 20px; font-size: 11pt; }

/* -------------------------- Modal -------------------------- */

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 1000;
}
.modal-backdrop.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: modalIn 0.18s ease-out;
}
@keyframes modalIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e0e4ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 13pt; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 17pt;
  color: #888;
  cursor: pointer;
  padding: 0 6px;
}
.modal-close:hover { color: #222; }
.modal-body { padding: 18px 22px; }
.modal-footer {
  padding: 12px 22px;
  border-top: 1px solid #e0e4ea;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}

.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 10.5pt;
  color: #333;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11pt;
  background: #fff;
}
.form-field .hint {
  font-size: 9.5pt;
  color: #777;
  margin-top: 4px;
}

.source-options { display: flex; flex-direction: column; gap: 8px; }
.source-option {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.source-option:hover { border-color: #1976d2; background: #f0f7ff; }
.source-option.selected { border-color: #1976d2; background: #e3f2fd; }
.source-option .title { font-weight: 600; color: #2a5b8a; }
.source-option .desc { font-size: 9.5pt; color: #666; margin-top: 3px; }
.source-option.disabled { opacity: 0.5; cursor: not-allowed; }

/* -------------------------- Toast -------------------------- */

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 10.5pt;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
#toast.success { background: #2e7d32; }
#toast.error { background: #c62828; }

/* -------------------------- Helpers -------------------------- */

.muted { color: #888; }
.text-center { text-align: center; }
.flex { display: flex; gap: 8px; align-items: center; }
.flex-grow { flex-grow: 1; }
.spacer { flex-grow: 1; }

/* -------------------------- Mobile (shared chrome) -------------------------- */
@media (max-width: 720px) {
  html, body { font-size: 11.5pt; }

  /* Top bar + breadcrumb: tighter padding, wrap instead of overflowing */
  .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 6px 10px; }
  .topbar .brand { font-size: 12.5pt; }
  .topbar nav { gap: 6px 12px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar-meta { justify-items: end; }
  .breadcrumb { padding: 8px 14px; font-size: 9.5pt; }

  /* Page padding + headers */
  .container { padding: 16px 14px; }
  .page-header { gap: 10px; }
  .page-header h1 { font-size: 16pt; }
  .section-bar { flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
  .section-bar h2 { font-size: 13.5pt; }

  /* Action rows wrap; cards stack to a single column */
  .conf-actions-bar { flex-wrap: wrap; }
  .conf-actions-bar .btn { flex: 1 1 auto; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .conf-pick-list { grid-template-columns: 1fr; }

  /* Modals fill the small screen and scroll internally */
  .modal-backdrop { padding: 10px; padding-top: 10px; align-items: flex-start; }
  .modal { max-width: 100%; width: 100%; max-height: 92vh; overflow-y: auto; }
  .modal-footer { flex-wrap: wrap; }

  /* Wide data tables scroll horizontally instead of breaking the page */
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .empty-state { padding: 40px 16px; }
  .empty-state .icon { font-size: 44pt; }
}
