/* Dark theme – page-local palette */
:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --line: #1f2937;
  --accent: #60a5fa;
  --accent-ink: #0b1220;
  --panel-alt: #111a2e;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

/* Header bar */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bar h1 { font-size: 18px; margin: 0 12px 0 0; color: var(--fg); }
.bar label { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }

.bar input[type="date"],
.bar input[type="text"],
.bar select,
.bar button {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--fg);
  outline: none;
}
.bar input::placeholder { color: #6b778d; }
.bar button {
  cursor: pointer; background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.bar input:focus, .bar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,.25);
}

.wrap { padding: 16px; }

/* Scroll container around the table for sticky header within */
.table-wrap { overflow: auto; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
thead th {
  text-align: left; font-weight: 600; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--line); padding: 10px 8px;
  background: var(--panel);
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 1px 0 0 var(--line);
  white-space: nowrap;
}
tbody td {
  border-bottom: 1px solid var(--line); padding: 10px 8px; font-size: 14px; vertical-align: top;
}
tbody tr:hover { background: #0e1930; }
tfoot td {
  border-top: 1px solid var(--line); padding: 12px 8px; font-weight: 600;
  background: var(--panel-alt); color: var(--fg);
}

.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.tag {
  display: inline-flex; align-items: center; justify-content:center;
  width: 36px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-alt); color: var(--fg);
}
.chk { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display:inline-flex; align-items:center; gap:8px;
  height: 28px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel-alt);
  color: var(--fg); text-decoration:none; cursor:pointer;
}
.btn:hover { border-color: var(--accent); }

/* Pagination */
.pagination {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 16px 0;
  font-size: 14px; color: var(--muted);
}
.pagination a, .pagination span {
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; text-decoration: none;
  background: var(--panel-alt); color: var(--fg);
}
.pagination .active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination .disabled { opacity: .5; pointer-events: none; }

/* Spinner */
.spin {
  width: 14px; height: 14px; display: inline-block;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: sp 1s linear infinite; vertical-align: middle; margin-left: 6px;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; right: 16px; bottom: 16px;
  background: #0a0f1c; color: var(--fg);
  padding: 10px 12px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(6px); transition: .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(720px, 96vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.modal h2 { margin: 0 0 12px; font-size: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid .full { grid-column: 1 / -1; }
.modal label { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.modal input[type="text"], .modal textarea {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-alt); color: var(--fg); padding: 8px 10px;
}
.modal textarea { min-height: 140px; resize: vertical; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Cells */
.cell-title-desc { overflow: hidden; text-overflow: ellipsis; }
.cell-title-desc .view-more,
.cell-prop .view-breezeway {
  color: var(--accent); text-decoration: underline;
}
.cell-title-desc .view-more:hover,
.cell-prop .view-breezeway:hover {
  text-decoration: none;
}
/* Breezeway task link: always light blue */
:root { --breeze-blue: #3b6edc; } /* tweak if your Load button uses a different blue */

a.view-breezeway,
a.view-breezeway:visited {
  color: var(--breeze-blue) !important;
  text-decoration: underline;
}

a.view-breezeway:hover,
a.view-breezeway:focus {
  color: #5684ff !important; /* slightly lighter on hover */
  text-decoration-thickness: 2px;
  outline: none;
}

a.view-breezeway:active {
  color: #2f5ec0 !important; /* pressed */
  
  /* --- My Account (mobile-first) --- */
.account-wrap { max-width: 720px; margin: 0 auto; padding: 1rem; }
.card { background: #111827; color: #e5e7eb; border-radius: 16px; padding: 1rem; box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.hint { font-size:.85rem; opacity:.8; }
.success, .error { margin-top:.75rem; padding:.6rem .75rem; border-radius:10px; }
.success { background:#064e3b; color:#d1fae5; }
.error { background:#3f1d1d; color:#fecaca; }

.form-row { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 641px){ .grid-2 { grid-template-columns: 1fr 1fr; } }

label { font-size:.95rem; opacity:.9; display:block; margin-bottom:.25rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
  width: 100%; padding: .65rem .75rem; border-radius: 10px;
  border: 1px solid #374151; background:#0b1220; color:#e5e7eb;
}

/* Buttons (match existing palette) */
.actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.btn { padding:.65rem .9rem; border-radius:12px; border:0; cursor:pointer; }
.btn-primary { background:#2563eb; color:white; }
.btn-muted { background:#1f2937; color:#e5e7eb; }
.btn-back { display:inline-block; margin-top:.75rem; background:#111827; border:1px solid #374151; color:#e5e7eb; padding:.55rem .9rem; border-radius:12px; text-decoration:none; }
.btn-back:hover { background:#0b1220; }

/* Keep the header hint centered on mobile */
.header-center { text-align:center; margin:.75rem 0 1rem; }

}
