/* Admin portal layout — sits on top of /shared/app.css */
body { background: var(--linen); }

.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.side {
  background: var(--charcoal); color: rgba(250, 246, 240, 0.85);
  padding: 1.6rem 1rem; display: flex; flex-direction: column; gap: 0.3rem;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0.8rem 1.4rem; }
.side .brand img { width: 44px; height: 44px; }
.side .brand b { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--cream); }
.side a {
  display: flex; align-items: center; gap: 0.8rem;
  color: rgba(250, 246, 240, 0.7); text-decoration: none;
  padding: 0.7rem 0.9rem; border-radius: var(--r-md);
  font-weight: 700; font-size: 0.93rem;
  transition: all 150ms ease;
}
.side a:hover { background: rgba(250, 246, 240, 0.08); color: var(--cream); }
.side a.active { background: var(--terracotta); color: #fff; box-shadow: 0 10px 22px -10px rgba(194, 98, 61, 0.7); }
.side .nicon { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.side .push { flex: 1; }
.side .me { display: flex; gap: 0.7rem; align-items: center; padding: 0.8rem; border-top: 1px solid rgba(250,246,240,0.12); }
.side .me .nm { font-size: 0.88rem; font-weight: 800; color: var(--cream); }
.side .me .rl { font-size: 0.74rem; color: rgba(250,246,240,0.55); }
.side .me button { margin-left: auto; background: none; border: 0; color: rgba(250,246,240,0.55); font-size: 1.05rem; }
.side .me button:hover { color: #fff; }

.main { padding: 2rem 2.4rem 4rem; max-width: 1180px; width: 100%; }
.main-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.main-head h1 { font-size: 1.9rem; }
.main-head .sub { color: var(--warm-gray); font-size: 0.92rem; }
.main-head .spacer { flex: 1; }

.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
@media (max-width: 1100px) { .tiles.four { grid-template-columns: 1fr 1fr; } .tiles.three { grid-template-columns: 1fr; } }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .cols-2 { grid-template-columns: 1fr; } }

table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warm-gray); padding: 0.6rem 0.8rem; border-bottom: 2px solid var(--border);
}
table.data td { padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:hover td { background: rgba(250, 246, 240, 0.7); }
table.data tr.clickable { cursor: pointer; }
table.data td { vertical-align: middle; }
.cell-stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cell-when { font-size: 0.9rem; }
.cell-when b { color: var(--charcoal); }
.cell-muted { color: var(--warm-gray); font-size: 0.85rem; }

.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.filter-chips .chip { cursor: pointer; padding: 6px 14px; font-size: 12.5px; }
.filter-chips .chip.on { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

.progress-bars { display: grid; gap: 0.55rem; }
.pb-row { display: grid; grid-template-columns: 7.5rem 1fr 3.4rem; gap: 0.8rem; align-items: center; font-size: 0.85rem; }
.pb-row .lbl { font-weight: 800; color: var(--ink-soft); }
.pb-track { height: 10px; background: var(--linen); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.pb-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage-soft), var(--sage)); transition: width 400ms ease; }
.pb-row .pct { text-align: right; color: var(--warm-gray); font-weight: 800; font-size: 0.8rem; }

.admin-shell .modal-back { align-items: center; }
.admin-shell .modal { border-radius: var(--r-lg); max-width: 640px; max-height: 88vh; }

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 10% 0%, rgba(196, 154, 60, 0.12), transparent 60%),
    radial-gradient(900px 600px at 95% 100%, rgba(194, 98, 61, 0.12), transparent 60%),
    var(--linen);
  padding: 1.5rem;
}
.login-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(73, 52, 31, 0.45);
  width: 420px; max-width: 100%; padding: 2.6rem 2.4rem;
}
.login-card .logo { width: 78px; margin: 0 auto 1.1rem; display: block; }
.login-card h1 { text-align: center; font-size: 1.5rem; }
.login-card .sub { text-align: center; color: var(--warm-gray); font-size: 0.88rem; margin: 0.3rem 0 1.7rem; }

/* staffing month calendar */
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mg-head { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm-gray); text-align: center; padding: 4px 0; }
.mg-cell { min-height: 84px; border: 1px solid var(--border); border-radius: 0.7rem; padding: 5px 6px; background: #fff; cursor: pointer; transition: background 140ms ease; overflow: hidden; }
.mg-cell:hover { background: var(--cream); }
.mg-out { background: var(--linen); opacity: 0.5; }
.mg-today { border-color: var(--terracotta-soft); box-shadow: 0 0 0 2px rgba(194, 98, 61, 0.18) inset; }
.mg-holiday { background: #fdf3ec; }
.mg-day { font-size: 0.74rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 3px; }
.mg-hname { font-size: 0.68rem; font-weight: 700; color: var(--terracotta-ink); line-height: 1.2; }
.mg-shift { display: flex; align-items: center; gap: 3px; font-size: 0.66rem; font-weight: 700; color: #fff; border-radius: 5px; padding: 1px 5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.mg-shift b { margin-left: auto; cursor: pointer; opacity: 0.7; font-size: 0.8rem; padding-left: 3px; }
.mg-shift b:hover { opacity: 1; }
