/* Bully Max Time Clock — shared styles (kiosk + admin)
   Black #000, white text, one orange accent #F05A12. Anton headings / Oswald labels+buttons / Fira Sans body. */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #262626;
  --panel: #0d0d0d;
  --panel-2: #161616;
  --orange: #F05A12;
  --danger: #ff4d4d;
  --ok: #4cd964;
  --radius: 4px;
  --head: 'Anton', 'Oswald', Impact, sans-serif;
  --label: 'Oswald', 'Fira Sans', sans-serif;
  --body: 'Fira Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
button { font-family: var(--label); cursor: pointer; border: 0; border-radius: var(--radius); color: var(--fg); background: var(--panel-2); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .35; cursor: default; }
input, select, textarea { font-family: var(--body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.label { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.orange { color: var(--orange); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img.wordmark { display: block; height: auto; width: 100%; max-width: 300px; }

/* ---------- KIOSK ---------- */
.kiosk { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; padding: 16px; gap: 12px; }
.kiosk-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.kiosk-head .wordmark { width: min(62vw, 300px); }
.clock { font-family: var(--head); font-size: clamp(56px, 13vw, 120px); line-height: .95; letter-spacing: .01em; }
.clock small { font-size: .32em; color: var(--muted); letter-spacing: .06em; margin-left: .25em; font-family: var(--label); }
.date { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: clamp(14px, 2.4vw, 20px); }
.kiosk-main { display: flex; align-items: center; justify-content: center; min-width: 0; }
.screen { width: 100%; max-width: 560px; margin: 0 auto; min-width: 0; }
.kiosk-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
.kiosk-foot .loc { color: var(--fg); }
.kiosk-foot .loc::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.netstate.offline { color: var(--orange); }
.pin-prompt { text-align: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 18px; margin-bottom: 14px; }
.pin-dots { display: flex; justify-content: center; gap: 18px; margin: 6px 0 22px; height: 28px; }
.pin-dots span { width: 22px; height: 22px; border: 2px solid var(--fg); border-radius: 50%; transition: background .1s; }
.pin-dots span.on { background: var(--orange); border-color: var(--orange); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { font-size: 40px; height: clamp(68px, 11vh, 96px); background: var(--panel-2); border: 1px solid var(--line); }
.pad button.fn { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.who { text-align: center; margin-bottom: 18px; }
.who h2 { font-size: clamp(34px, 7vw, 56px); line-height: 1; }
.who .state { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 8px; font-size: 16px; }
.who .state b { color: var(--fg); font-weight: 500; }
.actions { display: grid; gap: 12px; }
.btn-big { height: clamp(78px, 13vh, 110px); font-size: clamp(24px, 4.5vw, 34px); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; border: 2px solid var(--line); background: var(--panel-2); }
.btn-big.primary { background: var(--orange); border-color: var(--orange); color: #000; }
.btn-big small { display: block; font-size: 14px; letter-spacing: .12em; color: inherit; opacity: .75; font-weight: 400; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); height: 56px; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.pto-amt { text-align: center; font-family: var(--head); font-size: clamp(72px, 16vw, 128px); line-height: 1; margin: 4px 0 10px; }
.pto-amt small { font-size: .3em; font-family: var(--label); color: var(--muted); letter-spacing: .1em; }
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stepper button { height: 76px; font-size: 44px; border: 1px solid var(--line); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.presets button { height: 54px; font-size: 20px; border: 1px solid var(--line); background: var(--panel); }
.presets button.on { border-color: var(--orange); color: var(--orange); }
.confirm { text-align: center; }
.confirm .check { width: 84px; height: 84px; margin: 0 auto 14px; border: 3px solid var(--orange); border-radius: 50%; display: grid; place-items: center; font-size: 44px; color: var(--orange); }
.confirm h2 { font-size: clamp(30px, 6.5vw, 52px); line-height: 1; }
.confirm .did { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: 20px; margin-top: 10px; }
.confirm .did b { color: var(--orange); font-weight: 500; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; }
.stat .v { font-family: var(--head); font-size: clamp(34px, 7vw, 48px); line-height: 1; }
.stat .k { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin-top: 6px; }
.toast { margin-top: 14px; text-align: center; font-family: var(--label); letter-spacing: .06em; font-size: 17px; min-height: 22px; }
.toast.err { color: var(--orange); }
.progress { height: 3px; background: var(--line); margin-top: 18px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--orange); width: 100%; transform-origin: left; animation: shrink 6s linear forwards; }
@keyframes shrink { from { transform: scaleX(1);} to { transform: scaleX(0);} }
.setup .opt { display: grid; gap: 12px; margin: 16px 0; }
.setup .opt button { height: 84px; font-size: 26px; text-transform: uppercase; letter-spacing: .1em; border: 2px solid var(--line); }
.setup .opt button.on { border-color: var(--orange); color: var(--orange); }

/* ---------- KIOSK: PTO requests + fix a punch ---------- */
.screen.wide { max-width: min(640px, 100%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-mid { height: clamp(64px, 10vh, 84px); font-size: clamp(17px, 2.6vw, 22px); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; border: 2px solid var(--line); background: var(--panel); }
.btn-mid small { display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 400; margin-top: 2px; text-transform: none; }
.btn-mid:disabled { opacity: .45; }
.btn-big.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-sm { height: 44px; padding: 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.center { text-align: center; }
.time-amt { margin-bottom: 0; }
.time-day { text-align: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 2px 0 14px; font-size: 15px; }
.stepper4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stepper4 button { height: 72px; font-size: 26px; border: 1px solid var(--line); letter-spacing: .02em; }
.stepper4 button:nth-child(2), .stepper4 button:nth-child(3) { background: var(--panel); }
.reasons button { font-size: 15px; letter-spacing: .04em; text-transform: none; }
.tag { display: inline-block; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 3px; border: 1.5px solid var(--orange); color: var(--orange); background: transparent; white-space: nowrap; }
.tag.approved { background: var(--orange); color: #000; }
.tag.denied { border-color: var(--muted); color: var(--muted); text-decoration: line-through; }
.tag.cancelled { border-color: var(--line); color: var(--muted); }
.tag.kind { border-color: var(--line); color: var(--muted); }
.tag.kind.in { background: var(--orange); border-color: var(--orange); color: #000; }
/* calendar */
.cal-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cal-top .stat { padding: 8px 10px; }
.cal-top .stat .v { font-size: clamp(30px, 5.5vw, 40px); }
.cal-nav { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-nav button { height: 50px; font-size: 34px; border: 1px solid var(--line); line-height: 1; }
.cal-nav h2 { text-align: center; font-size: clamp(22px, 4vw, 30px); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-head span { text-align: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-grid .day { position: relative; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px 5px; gap: 3px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.cal-grid .day .n { font-family: var(--label); font-size: clamp(15px, 2.2vw, 18px); font-weight: 500; line-height: 1.1; }
.cal-grid .day .tag { font-size: 9px; line-height: 1; padding: 3px 4px; max-width: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: auto; }
@media (max-width: 480px) {
  .cal-grid { gap: 3px; }
  .cal-grid .day { min-height: 54px; border-radius: 3px; }
  .cal-grid .day .tag { font-size: 8px; padding: 2px 3px; letter-spacing: 0; }
  .cal-grid .day .tag .tag-long { display: none; }
}
.cal-grid .day.past { opacity: .4; }
.cal-grid .day.past.has-approved, .cal-grid .day.past.has-pending { opacity: .7; }
.cal-grid .day:disabled { opacity: .3; transform: none; }
.cal-grid .day.today { border-color: var(--fg); }
.cal-grid .day.today .n::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin: 2px auto 0; }
.cal-grid .day.has-pending { border-color: var(--orange); }
.cal-grid .day.has-approved { border-color: var(--orange); background: #1f0c03; }
.legend { display: flex; gap: 8px; align-items: center; justify-content: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted); margin: 10px 0; }
.upcoming { margin: 6px 0 10px; display: grid; gap: 6px; }
.upcoming .label { margin-bottom: 2px; }
.up-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 15px; }
.up-row b { font-family: var(--label); font-weight: 500; font-size: 16px; }
/* fix a punch */
.daychips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 -4px 8px; padding-left: 4px; scrollbar-width: none; }
.daychips::-webkit-scrollbar { display: none; }
.daychips button { flex: 0 0 auto; min-width: 92px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); background: var(--panel); }
.daychips button b { font-family: var(--label); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.daychips button span { font-size: 13px; color: var(--muted); }
.daychips button small { font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.daychips button.on { border-color: var(--orange); color: var(--orange); }
.daychips button.on span, .daychips button.on small { color: var(--orange); }
.fix-list { display: grid; gap: 8px; margin-bottom: 12px; min-height: 90px; }
.fix-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 15px; }
.fix-row b { font-family: var(--label); font-weight: 500; font-size: 20px; }
.fix-row.flagged { border-color: var(--orange); }
.fix-row .muted { font-size: 13px; }
.kiosk-main { overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }

/* iPad landscape: logo+clock left, pad right */
@media (min-width: 900px) and (orientation: landscape) {
  .kiosk { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 32px 40px; column-gap: 40px; }
  .kiosk-head { grid-row: 1; justify-content: center; align-items: flex-start; }
  .kiosk-head .wordmark { width: min(34vw, 420px); }
  .clock { font-size: clamp(96px, 11vw, 170px); margin-top: 24px; }
  .kiosk-main { grid-row: 1; grid-column: 2; }
  .kiosk-foot { grid-row: 2; grid-column: 1 / -1; }
  .pad button { height: clamp(72px, 12vh, 100px); }
}

/* ---------- ADMIN ---------- */
.admin { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
.admin > * { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .wordmark { width: 170px; }
.topbar h1 { font-size: 22px; color: var(--orange); }
.topbar .spacer { flex: 1; }
.topbar .me { font-family: var(--label); font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: transparent; color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; padding: 14px 16px; border-radius: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--orange); }
.content { padding: 20px; max-width: 1400px; width: 100%; margin: 0 auto; }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
a.btn { color: var(--fg); text-decoration: none; display: inline-grid; place-items: center; }
.btn { height: 42px; padding: 0 18px; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; border: 1px solid var(--line); }
.btn.primary { background: var(--orange); color: #000; border-color: var(--orange); }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi .v { font-family: var(--head); font-size: 44px; line-height: 1; }
.kpi .k { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #0a0a0a; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; padding: 3px 8px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); }
.pill.in { background: var(--orange); color: #000; border-color: var(--orange); }
.pill.out { color: var(--muted); }
.pill.pto { border-color: var(--orange); color: var(--orange); }
.table-wrap { overflow-x: auto; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.err { color: var(--orange); font-family: var(--label); letter-spacing: .04em; }
.login { max-width: 420px; margin: 10vh auto; padding: 0 16px; display: grid; gap: 14px; }
.login .wordmark { margin: 0 auto 10px; }
.login h1 { text-align: center; font-size: 28px; }
dialog { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(560px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog h3 { font-size: 22px; margin-bottom: 12px; }
.row-actions { display: flex; gap: 6px; }
details summary { cursor: pointer; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }
/* admin: review queues + PTO calendar */
.badge { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 10px; background: var(--orange); color: #000; font-size: 11px; font-weight: 500; letter-spacing: 0; margin-left: 4px; vertical-align: 1px; }
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subtabs button { background: var(--panel); border: 1px solid var(--line); height: 38px; padding: 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.subtabs button.on { border-color: var(--orange); color: var(--orange); }
.pill.pending { border-color: var(--orange); color: var(--orange); }
.pill.approved, .pill.accepted { background: var(--orange); color: #000; border-color: var(--orange); }
.pill.denied, .pill.rejected { text-decoration: line-through; }
.pill.adjusted { border-color: var(--fg); color: var(--fg); }
.flag { color: var(--orange); font-weight: 700; }
.acal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.acal .h { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); text-align: center; padding: 4px; }
.acal .c { min-height: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px; font-size: 12px; }
.acal .c.off { opacity: .35; }
.acal .c.today { border-color: var(--fg); }
.acal .c.many { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.acal .c .d { font-family: var(--label); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
.acal .c .d .cnt { color: var(--orange); font-weight: 500; }
.acal .p { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--orange); color: var(--orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acal .p.approved { background: var(--orange); color: #000; }
.kpi.alert .v { color: var(--orange); }
.kpi a { color: var(--orange); font-family: var(--label); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; display: block; margin-top: 6px; }
.diff { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.diff .old { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.diff .new { color: var(--fg); }
@media (max-width: 700px) { .content { padding: 12px; } .topbar { padding: 12px; } .tabs { padding: 0 8px; } .acal .c { min-height: 60px; } }
