/* PloegPlanner — one stylesheet, no build step.
   Colours and sizes are defined once as variables below. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e2e5ea;
  --border-strong: #cdd2d9;
  --text: #1c2430;
  --muted: #5f6b7a;
  --faint: #8a95a3;

  --brand: #0f766e;
  --brand-strong: #0b5f58;
  --brand-soft: #e6f4f2;

  --danger: #c62828;
  --danger-soft: #fdecec;
  --warning: #a35a00;
  --warning-soft: #fff5e0;
  --success: #1b7f3b;
  --success-soft: #e8f6ec;
  --info: #1f5fbf;
  --info-soft: #e9f1fd;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --shadow-lg: 0 12px 32px rgb(16 24 40 / 18%);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 56px;
  --tabbar-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

svg.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.container.wide { max-width: none; }
.container.narrow { max-width: 560px; }

body.has-tabbar .container { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-org { color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.main-nav { display: flex; gap: 2px; margin-left: 8px; min-width: 0; }

/* Medium screens: make room for all menu items. */
@media (min-width: 761px) and (max-width: 1100px) {
  .brand-org { display: none; }
  .main-nav a { padding: 8px 9px; }
  .main-nav a svg { display: none; }
}
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 550;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.main-nav a.active { background: var(--brand-soft); color: var(--brand-strong); }

.header-spacer { flex: 1; }

.count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--danger); color: #fff;
  font-size: .72rem; font-weight: 700;
}

/* User menu */
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 700; font-size: .85rem; color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 44px;
  min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.menu-panel .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: var(--radius-sm);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }

/* Bottom tab bar (phones) */
.tabbar { display: none; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .brand-org { display: none; }
  .tabbar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: flex;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .tabbar a {
    position: relative;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: .72rem; font-weight: 600;
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); }
}

/* ---------- Page header ---------- */

.page-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.page-header h1 { margin: 0; }
.page-header .subtitle { margin: 2px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-body { padding: 18px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-header h2 { margin: 0; font-size: 1.02rem; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 1px;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, white); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: .85rem; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-block { width: 100%; }

.link-button { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button.danger { color: var(--danger); }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 650;
  background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--role, var(--faint)); flex: none; }
.role-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--role) 12%, white);
  color: color-mix(in srgb, var(--role) 80%, black);
  font-size: .8rem; font-weight: 600;
}
.role-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--role); }

/* ---------- Alerts / messages ---------- */

.messages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, white); color: #145a2b; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, white); color: #8e1b1b; }
.alert-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, white); color: #6d3c00; }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, white); color: #173f80; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.right, .table th.right { text-align: right; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 50%, white); }

/* ---------- Forms ---------- */

label { font-weight: 600; font-size: .9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
input[type="file"] { font: inherit; }

.form > div, .form .field { margin-bottom: 14px; }
.form > div > label, .form .field > label { display: block; margin-bottom: 5px; }
.form .helptext, .form .help { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.form .helptext ul { margin: 4px 0 0; padding-left: 18px; }
.form ul.errorlist { list-style: none; margin: 0 0 6px; padding: 0; color: var(--danger); font-size: .86rem; font-weight: 600; }
.form ul.errorlist.nonfield { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); }
.form .checkbox-row, .form > div:has(> input[type="checkbox"]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.form > div:has(> input[type="checkbox"]) > label { order: 2; margin: 0; }
.form > div:has(> input[type="checkbox"]) > input { order: 1; }
.form > div:has(> input[type="checkbox"]) > .helptext { order: 3; flex-basis: 100%; margin: 0 0 0 26px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }

.color-choices { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.color-choices label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding: 4px 10px 4px 6px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.color-choices label:has(input:checked) { border-color: var(--text); }

.checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.checkbox-list label, .checkbox-list > div > label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-weight: 550; cursor: pointer; background: var(--surface);
}
.checkbox-list label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Segmented control / tabs ---------- */

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.segmented a, .segmented button {
  padding: 5px 12px; border-radius: 7px; border: 0; background: none;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Empty state ---------- */

.empty {
  padding: 36px 18px; text-align: center; color: var(--muted);
}
.empty svg { width: 36px; height: 36px; color: var(--faint); margin-bottom: 8px; }
.empty h3 { color: var(--text); }

/* ---------- Stats ---------- */

.stat-value { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-sub { color: var(--muted); font-size: .88rem; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats .stat { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); }

.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------- Lists ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong);
  font-weight: 700; font-size: .8rem;
}

/* ---------- Modal (dialog) ---------- */

dialog.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
dialog.modal::backdrop { background: rgb(15 23 42 / 45%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 16px 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }

/* ---------- Auth pages ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-footer { text-align: center; margin-top: 14px; color: var(--muted); }

/* ---------- Roster grid (manager) ---------- */

.roster-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.period-nav { display: inline-flex; align-items: center; gap: 6px; }
.period-nav .period-label { font-weight: 700; font-size: 1.05rem; min-width: 200px; text-align: center; }

.roster-wrap {
  overflow: auto;
  max-height: max(440px, calc(100vh - 200px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.roster { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.roster th, .roster td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; vertical-align: top; }
.roster thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--surface-2);
  padding: 8px 6px; text-align: center; font-size: .8rem; font-weight: 650; color: var(--muted);
  min-width: 132px;
}
.roster thead th.today { color: var(--brand-strong); background: var(--brand-soft); }
.roster thead th .day-num { display: block; font-size: 1rem; color: var(--text); font-weight: 700; }
.roster .emp-col {
  position: sticky; left: 0; z-index: 2;
  min-width: 200px; max-width: 220px;
  background: var(--surface);
  padding: 8px 10px;
  text-align: left;
}
.roster thead .emp-col { z-index: 4; background: var(--surface-2); text-align: left; }
.roster .emp-name { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .emp-hours { font-size: .78rem; color: var(--muted); }
.roster .emp-hours.under { color: var(--warning); font-weight: 650; }
.roster .emp-hours.over { color: var(--danger); font-weight: 650; }
.roster td.weekend, .roster th.weekend { background: #fafbfc; }
.roster thead th.weekend { background: #eceff3; }

.cell {
  position: relative;
  min-height: 58px; padding: 4px;
  display: flex; flex-direction: column; gap: 3px;
  cursor: copy;
}
.cell.drop-target { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -3px; }
.cell-add {
  display: none;
  align-self: center;
  border: 1px dashed var(--border-strong); border-radius: 6px; background: transparent;
  color: var(--muted); font-size: .78rem; padding: 2px 8px; cursor: pointer;
}
.cell:hover .cell-add, .cell:focus-within .cell-add { display: inline-block; }
@media (hover: none) { .cell-add { display: inline-block; opacity: .7; } }
.cell-status { font-size: .72rem; color: var(--faint); padding: 2px 4px; }
.cell-status.unavailable { color: var(--danger); }
.cell-status.prefer-not { color: var(--warning); }
.cell-status.leave { color: var(--info); font-weight: 600; }

.chip {
  position: relative;
  display: block;
  width: 100%;
  padding: 4px 7px 4px 9px;
  border: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--role, var(--brand)) 13%, white);
  color: color-mix(in srgb, var(--role, var(--brand)) 75%, black);
  font: inherit; font-size: .78rem; line-height: 1.25; text-align: left;
  cursor: grab;
  box-shadow: inset 3px 0 0 var(--role, var(--brand));
}
.chip:hover { filter: brightness(.97); }
.chip strong { display: block; font-size: .8rem; }
.chip .chip-meta { opacity: .85; }
.chip .pin { position: absolute; top: 3px; right: 4px; width: 12px; height: 12px; }
.chip.has-error { box-shadow: inset 3px 0 0 var(--role, var(--brand)), 0 0 0 2px var(--danger); }
.chip.has-warning { box-shadow: inset 3px 0 0 var(--role, var(--brand)), 0 0 0 2px #e8a33a; }
.chip.dragging { opacity: .45; }

.roster tfoot td, .roster tfoot th { background: var(--surface-2); border-top: 2px solid var(--border-strong); }
.roster tfoot .emp-col { z-index: 2; background: var(--surface-2); font-size: .8rem; color: var(--muted); font-weight: 650; }
.coverage { display: flex; flex-direction: column; gap: 2px; padding: 5px; }
.coverage-item {
  display: flex; align-items: center; gap: 5px;
  padding: 1px 6px; border-radius: 5px;
  font-size: .72rem; font-weight: 600;
  background: var(--success-soft); color: var(--success);
  border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.coverage-item .cov-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-item .dot { width: 7px; height: 7px; }
.coverage-item.short { background: var(--danger-soft); color: var(--danger); }
.coverage-item.none { background: transparent; color: var(--faint); }

/* Compact month view */
.roster.compact thead th { min-width: 64px; padding: 6px 2px; }
.roster.compact .cell { min-height: 44px; padding: 3px; }
.roster.compact .chip { padding: 3px 4px 3px 6px; font-size: .7rem; }
.roster.compact .chip strong { font-size: .72rem; }
.roster.compact .chip .chip-meta { display: none; }
.roster.compact .coverage-item { font-size: .66rem; padding: 0 3px; }
.roster.compact .coverage-item .cov-name { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); }

.solver-status { display: flex; align-items: center; gap: 10px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--brand) 25%, white);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }

.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.issue-list li:last-child { border-bottom: 0; }
.issue-list svg { margin-top: 2px; }
.issue-list .error svg { color: var(--danger); }
.issue-list .warning svg { color: var(--warning); }
.issue-list .info svg { color: var(--info); }

/* Shift picker in the modal */
.option-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; text-align: left; cursor: pointer;
}
.option:hover { border-color: var(--brand); background: var(--brand-soft); }
.option .grow { flex: 1; }
.option-warnings { font-size: .8rem; color: var(--warning); }
.option-warnings.error { color: var(--danger); }

/* ---------- Employee schedule (phone first) ---------- */

.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day-card { display: flex; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.day-card.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.day-card.off { background: transparent; border-style: dashed; box-shadow: none; }
.day-date { width: 48px; flex: none; text-align: center; }
.day-date .dow { display: block; font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.day-date .dnum { display: block; font-size: 1.4rem; font-weight: 750; line-height: 1.1; }
.day-body { flex: 1; min-width: 0; }
.shift-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.shift-time { font-weight: 700; font-size: 1.05rem; }
.colleagues { font-size: .85rem; color: var(--muted); margin-top: 2px; }

.week-summary { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; }
.week-summary h2 { margin: 0; font-size: 1rem; }

.requirement-table td { padding: 8px 6px; }
.requirement-table .req-input { width: 58px; min-height: 34px; padding: 4px 6px; text-align: right; }
.availability-table td { padding: 8px 10px; }
@media (max-width: 760px) {
  .availability-table tr {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px;
    padding: 10px 12px; border-bottom: 1px solid var(--border);
  }
  .availability-table th, .availability-table td { display: block; padding: 0 !important; border: 0; }
  .availability-table td[data-row-times] { grid-column: 2; display: flex; align-items: center; gap: 6px; }
  .availability-table select { min-width: 0; }
  .availability-table input[type="time"] { width: auto; flex: 1; min-width: 0; }
}
.availability-table select { min-width: 140px; }
.availability-table input[type="time"] { width: 110px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 760px) {
  .container { padding: 16px 12px 32px; }
  h1 { font-size: 1.3rem; }
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
  .list > li { padding: 12px 14px; }
  .table th, .table td { padding: 9px 10px; }
  .period-nav .period-label { min-width: 0; font-size: .95rem; }
  .roster-wrap { max-height: none; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 761px) {
  .show-mobile { display: none !important; }
}

@media print {
  .app-header, .tabbar, .roster-toolbar .actions, .cell-add, .no-print { display: none !important; }
  body { background: #fff; }
  .roster-wrap { max-height: none; overflow: visible; box-shadow: none; }
}
