/* Compassion First Home Health — brand theme (deep navy + electric blue, from logo) */
:root {
  --bg: #050d1f;
  --bg2: #0a1830;
  --panel: #0e2142;
  --panel2: #122a52;
  --line: #1d3a6b;
  --blue: #2d8cff;
  --blue2: #4db2ff;
  --ink: #eaf2ff;
  --muted: #8aa3cc;
  --good: #2ecc8f;
  --warn: #f5b942;
  --hot: #ff6b6b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background:
  radial-gradient(1000px 500px at 80% -10%, #0e2a55 0%, var(--bg) 55%) fixed; color: var(--ink); min-height: 100vh; }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: rgba(5,13,31,.85);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: 1px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; border-radius: 8px; }
.brand em { color: var(--blue2); font-style: normal; font-weight: 300; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); }
.topbar nav a.on, .topbar nav a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
h1 { font-weight: 600; font-size: 26px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--blue2); font-weight: 600; }
h3 { font-size: 14px; color: var(--muted); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .5px; }

.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.card.center { text-align: center; max-width: 480px; margin: 60px auto; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.tile:hover { text-decoration: none; border-color: var(--blue); }
.tile .n { font-size: 30px; font-weight: 700; color: var(--ink); }
.tile.good .n { color: var(--good); } .tile.warn .n { color: var(--warn); } .tile.hot .n { color: var(--hot); }

.btn { display: inline-block; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2);
  color: var(--ink); cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--blue); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #1e6fd9, var(--blue2)); border: none; font-weight: 600; }
.btn.good { background: #14503c; border-color: #1e7a5a; }
.btn.danger { background: #58222a; border-color: #7a2e39; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.inline { display: inline-block; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
input, select, textarea { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  padding: 9px 11px; font-size: 14px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid rgba(29,58,107,.4); vertical-align: top; }
tr.inactive { opacity: .45; }
td.msg { max-width: 380px; }
.nowrap { white-space: nowrap; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--panel2);
  border: 1px solid var(--line); color: var(--ink); }
.pill.alt { background: #2a2350; border-color: #453a7d; }
.pill.good, .pill.stage-APPROVED { background: #14503c; border-color: #1e7a5a; }
.pill.warn, .pill.stage-APPEAL, .pill.stage-PAPERWORK_SUBMITTED { background: #4d3c14; border-color: #7a611e; }
.pill.hot, .pill.stage-DENIED, .pill.stage-REMOVED { background: #58222a; border-color: #7a2e39; }
.pill.stage-INTAKE { background: #1d3a6b; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid rgba(29,58,107,.35); }
.list li:last-child { border-bottom: none; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; background: #14503c; border: 1px solid #1e7a5a; }
.flash.err { background: #58222a; border-color: #7a2e39; }
.muted { color: var(--muted); }
.center { text-align: center; }

.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input[type=text] { flex: 1; min-width: 200px; }

.login-box { max-width: 400px; margin: 8vh auto; text-align: center; background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.login-box .stack { text-align: left; margin-top: 18px; }
.login-logo { max-width: 170px; border-radius: 14px; box-shadow: 0 0 50px rgba(45,140,255,.3); }
.login-box h1 { justify-content: center; margin-top: 18px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; border-top: 1px solid var(--line); font-style: italic; }
details summary { list-style: none; }
