/* blessedseelosaa.com - site styles (phones, tablets, desktops) */
:root {
  --navy: #0f2a5f;
  --navy-2: #1e3a8a;
  --gold: #f2b705;
  --gold-soft: #fef3c7;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ee;
  --bg: #eef2f7;
  --card: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --err: #b91c1c;
  --err-soft: #fee2e2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.45;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy-2); }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: 0 2px 10px rgba(15,42,95,.25); position: sticky; top: 0; z-index: 50; }
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: #e2e8f0; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.cur { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.nav .who { color: #cbd5e1; font-size: .9rem; padding: 0 8px; white-space: nowrap; }
.nav a.signout { border: 1px solid rgba(255,255,255,.35); }
.menu-toggle, .menu-btn { display: none; }

/* phones / small tablets: menu folds away behind a button */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 1.5rem; cursor: pointer; user-select: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 12px 14px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .who { padding: 10px 12px 4px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .site-header .inner { position: relative; }
}

/* ---------- page ---------- */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; }
.page-title { margin: 0 0 4px; font-size: 1.6rem; color: var(--navy); }
.page-sub { margin: 0 0 20px; color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 6px 18px rgba(15,23,42,.05);
  padding: 20px; border-top: 5px solid var(--navy-2); }
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* home tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card);
  box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 6px 18px rgba(15,23,42,.05); border-left: 7px solid var(--navy-2); transition: transform .12s, box-shadow .12s; min-height: 150px; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,23,42,.14); }
.tile .ico { font-size: 2rem; line-height: 1; }
.tile b { font-size: 1.15rem; color: var(--navy); }
.tile span { color: var(--muted); font-size: .95rem; }
.tile.blue { border-left-color: #1d4ed8; }
.tile.orange { border-left-color: #ea580c; }
.tile.green { border-left-color: var(--ok); }
.tile.purple { border-left-color: #6d28d9; }
.tile.gold { border-left-color: var(--gold); }
.tile.slate { border-left-color: #475569; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; color: #334155; }
.field input[type=text], .field input[type=password], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus { outline: 3px solid #bfdbfe; border-color: #1d4ed8; }
.hint { color: var(--muted); font-size: .85rem; }
.field .hint { margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: #e2e8f0; color: var(--ink); }
.btn:hover { filter: brightness(.96); }
.btn.primary { background: var(--navy-2); color: #fff; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.green { background: var(--ok); color: #fff; }
.btn.danger { background: var(--err-soft); color: var(--err); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.btn.wide { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* messages */
.msg { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 14px; }
.msg.ok { background: var(--ok-soft); color: #166534; }
.msg.err { background: var(--err-soft); color: #991b1b; }
.msg.info { background: #dbeafe; color: #1e3a8a; }

/* ---------- sign-in pages ---------- */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.auth-card { width: min(440px, 100%); }
.auth-card .card { border-top-color: var(--gold); padding: 26px; }
.auth-card .page-title { text-align: center; }
.auth-card .page-sub { text-align: center; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .95rem; flex-wrap: wrap; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.grid th, table.grid td { padding: 10px 8px; border-bottom: 1px solid #eef0f3; text-align: left; vertical-align: middle; }
table.grid th { background: #f1f5f9; color: #334155; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.admin { background: var(--gold-soft); color: #92400e; }
.badge.off { background: #e2e8f0; color: #475569; }
.badge.lock { background: var(--err-soft); color: var(--err); }
.badge.mgr { background: #dbeafe; color: #1e40af; }
.badge.cash { background: var(--ok-soft); color: #166534; }

/* users page on phones: each user becomes a card */
@media (max-width: 700px) {
  table.users thead { display: none; }
  table.users tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.users td { display: block; border: 0; padding: 3px 0; }
}

/* ---------- footer ---------- */
.site-footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 18px 16px 24px; }
