/* IRS PickMe admin in Dinemore GO colours: wine-dark surfaces, softened brand red, coral highlight. */
:root {
  color-scheme: dark;
  --bg: #1a1214; --bg-2: #1f1518; --panel: #25191c; --panel-2: #2d1f23; --line: #3a282d; --line-2: #4a343a;
  --ink: #f3e9e7; --ink-2: #d2c0bd; --muted: #a08d8b;
  --accent: #d9443f; --accent-2: #ec8a80; --accent-bg: rgba(217, 68, 63, .14); --on-accent: #fff6f4;
  --wood: #b8865e; --wood-bg: rgba(184, 134, 94, .14);
  --ok: #6cbf9a; --ok-bg: rgba(108, 191, 154, .13); --info: #93ade0; --info-bg: rgba(147, 173, 224, .13);
  --warn: #e3b263; --warn-bg: rgba(227, 178, 99, .14); --bad: #f07670; --bad-bg: rgba(240, 118, 112, .14);
  --grey-bg: rgba(160, 141, 139, .14); --violet: #c49ad8; --violet-bg: rgba(196, 154, 216, .14);
  --r: 14px; --r-sm: 9px;
  --head: "Montserrat", "Inter", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(1200px 500px at 50% -200px, rgba(122, 20, 34, .35), transparent 70%) no-repeat, var(--bg); }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
.ico { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(26, 18, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--head); font-weight: 700; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: var(--accent); transform: rotate(-12deg); border-radius: 9px; box-shadow: 0 6px 18px rgba(217, 68, 63, .22); }
.logo small { display: block; font: 500 11px Inter, sans-serif; color: var(--muted); letter-spacing: .02em; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.tabs a:hover { background: var(--panel); text-decoration: none; color: var(--ink); }
.tabs a.on { background: var(--accent-bg); color: var(--accent); }
.tabs .sep { width: 1px; background: var(--line); margin: 8px 6px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.clock { font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(108, 191, 154, .6); animation: pulse 2s infinite; }
.pulse.bad { background: var(--bad); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(108, 191, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 191, 154, 0); } }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--accent-2); font-weight: 700; font-family: var(--head); }
.user-menu .menu { position: absolute; right: 0; top: 46px; min-width: 230px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.user-menu .menu p { margin: 4px 8px 10px; font-size: 12px; color: var(--muted); }
.user-menu .menu button { width: 100%; justify-content: flex-start; background: transparent; border: 0; color: var(--bad); }

/* Page */
.page { max-width: 1440px; margin: 0 auto; padding: 26px 28px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font: 700 28px/1.15 var(--head); margin: 0; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { font-size: 12px; display: inline-flex; gap: 6px; margin-bottom: 8px; color: var(--muted); }
h2 { font: 600 16px var(--head); margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
h2 > a, h2 > .aside { order: 2; font: 500 12px Inter, sans-serif; }
h3 { font: 600 15px var(--head); margin: 0 0 10px; }

/* Controls */
button, .btn { font: 500 13px Inter, sans-serif; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); cursor: pointer; }
button:hover, .btn:hover { border-color: #5e444b; text-decoration: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover, button.primary:hover { background: #c93a36; }
.btn.danger, button.danger { background: transparent; border-color: rgba(240, 118, 112, .45); color: var(--bad); }
.btn.ghost { background: transparent; }
input, select { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 11px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
input::placeholder { color: #77646a; }
form.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
form.filters label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); gap: 5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }

/* Surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.card .title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; } .card .title h3 { margin: 0; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Service-now strip */
.service { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.service > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.service > div:last-child { border-right: 0; }
.service .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.service .v { font: 700 34px/1.1 var(--head); margin: 8px 0 2px; letter-spacing: -.01em; }
.service .v small { font-size: 18px; color: var(--muted); font-weight: 500; }
.service .s { color: var(--muted); font-size: 12px; }
.service .alert-cell { background: linear-gradient(180deg, var(--bad-bg), transparent); } .service .alert-cell .v { color: var(--bad); }

/* Order flow stepper */
.flow { display: grid; grid-template-columns: repeat(5, 1fr) auto; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; margin-top: 16px; }
.step { padding: 12px 16px; border-radius: var(--r-sm); position: relative; }
.step:not(.last)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.step b { display: block; font: 700 24px var(--head); } .step span { color: var(--muted); font-size: 12px; }
.step i { display: block; height: 3px; border-radius: 2px; margin-top: 8px; background: var(--c); opacity: .85; }
.step.hot { background: var(--accent-bg); } .step.hot b { color: var(--accent); }
.flow .side { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 16px; border-left: 1px dashed var(--line-2); min-width: 220px; font-size: 13px; }
.flow .side a, .flow .side span { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.flow .side b { font-family: var(--head); }

/* Kitchen ticket (store card) */
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden; }
.ticket::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--status, var(--line-2)); }
.ticket.ok { --status: var(--ok); } .ticket.warn { --status: var(--warn); } .ticket.bad { --status: var(--bad); }
.ticket .head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: var(--ink); }
.ticket .head:hover { text-decoration: none; } .ticket .head:hover b { color: var(--accent-2); }
.code { font: 700 13px var(--mono); padding: 6px 9px; border-radius: 8px; background: var(--wood-bg); border: 1px solid rgba(184, 134, 94, .3); color: var(--wood); }
.ticket .head > div { min-width: 0; }
.ticket .head b { display: block; font: 600 15px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ticket .head small { color: var(--muted); }
.ticket .head .go { margin-left: auto; color: var(--muted); }
.perf { height: 0; border-top: 2px dashed var(--line-2); margin: 0 14px; position: relative; }
.perf::before, .perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.perf::before { left: -23px; } .perf::after { right: -23px; }
.ticket .body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lane { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lane .lbl { width: 62px; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; font-weight: 600; }
.slot { width: 24px; height: 24px; border-radius: 7px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); }
.slot.busy { border: 0; background: var(--violet-bg); color: var(--violet); }
.qdot { width: 10px; height: 10px; border-radius: 50%; background: var(--info); opacity: .85; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; color: var(--muted); }
.facts-row b { display: block; color: var(--ink); font: 600 15px var(--head); }
.ticket .warnings { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.ticket .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 2px 8px; font: 600 11px Inter, sans-serif; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge.ok, .badge.success { color: var(--ok); background: var(--ok-bg); } .badge.info { color: var(--info); background: var(--info-bg); }
.badge.warning { color: var(--warn); background: var(--warn-bg); } .badge.danger { color: var(--bad); background: var(--bad-bg); }
.badge.muted { color: var(--muted); background: var(--grey-bg); } .badge.purple { color: var(--violet); background: var(--violet-bg); }
.badge.accent { color: var(--accent); background: var(--accent-bg); }

/* Tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(236, 138, 128, .035); }
.card table th { background: transparent; } .card table td, .card table th { padding: 8px 4px; }

/* Messages */
.flash { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; border-left: 3px solid; background: var(--panel); }
.flash.success { border-color: var(--ok); color: var(--ok); } .flash.danger { border-color: var(--bad); color: var(--bad); } .flash.info { border-color: var(--info); color: var(--info); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; border-left: 3px solid; background: var(--panel); }
.alert.danger { border-color: var(--bad); color: #f6bdb8; } .alert.warning { border-color: var(--warn); color: #efd19c; } .alert.info { border-color: var(--info); color: #c3d2ee; }
.alert a { color: inherit; text-decoration: underline; }

/* Detail bits */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; } dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
pre { background: #140d0f; color: #e8dcda; border: 1px solid var(--line); padding: 12px; border-radius: var(--r-sm); overflow: auto; max-height: 380px; font: 12px/1.5 var(--mono); margin: 8px 0 0; }
details summary { cursor: pointer; color: var(--accent-2); }
.timeline { list-style: none; padding: 8px 8px 8px 26px; margin: 0; } .timeline li { padding: 8px 0 8px 16px; border-left: 2px dotted var(--line-2); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.pager { display: flex; gap: 14px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12px; }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--ok); }
.meter.hot i { background: var(--bad); }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* Login */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(217, 68, 63, .20), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg); }
.login-wrap { width: 100%; max-width: 440px; }
.login-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.login-card .top { padding: 30px 32px 22px; }
.login-card .top .logo { margin-bottom: 22px; }
.login-card h1 { font: 700 26px var(--head); margin: 0 0 6px; letter-spacing: -.01em; }
.login-card .top p { margin: 0; color: var(--muted); }
.login-card .perf { margin: 0 18px; }
.login-card form { padding: 24px 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.login-card label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.login-card input { width: 100%; padding: 12px 13px; }
.pw { position: relative; } .pw button { position: absolute; right: 6px; top: 6px; background: none; border: 0; color: var(--muted); padding: 6px; }
.login-card button.primary { margin-top: 18px; justify-content: center; padding: 12px; font-size: 15px; }
.login-card .status { display: flex; align-items: center; gap: 9px; padding: 13px 32px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 12px; }
.login-facts { display: flex; justify-content: center; gap: 22px; margin-top: 18px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.login-facts b { color: var(--accent-2); font-family: var(--head); }

@media (max-width: 980px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; } .tabs { order: 3; width: 100%; flex: none; }
  .page { padding: 20px 16px 40px; } .service { grid-template-columns: repeat(2, 1fr); } .service > div:nth-child(2) { border-right: 0; }
  .service > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } .flow .side { border-left: 0; border-top: 1px dashed var(--line-2); grid-column: 1 / -1; }
  .clock { display: none; } .cols { grid-template-columns: 1fr; }
}
.logo-mark .d { transform: rotate(12deg); font: 800 18px var(--head); }
.badge.wood { color: var(--wood); background: var(--wood-bg); }
