/* Sim-Lab Queue Check.
 * Layout and shapes follow the UPS Labels workspace (ups-labels/web/static/
 * workspace.css): white top bar with tabs, big page title, 16px rounded cards
 * with a soft shadow, a tinted summary rail on the right.
 * Colours follow Odoo 17 (simlab.odoo.com, odoo.com): purple #714B67 for
 * brand and primary actions, teal #017E84 for links and focus, cool grays,
 * Odoo's success / warning / danger badge colours.
 */
:root {
  --brand: #714B67;            /* Odoo purple: primary action, brand */
  --brand-hover: #52374b;
  --brand-soft: #F1ECF0;
  --accent: #017E84;           /* Odoo teal: links, focus, checkboxes */
  --accent-hover: #01585c;
  --rail: #F8F4F7;             /* summary rail, a light purple tint */
  --rail-border: #E6DAE3;
  --rail-ink: #7d5c75;
  --page: #F5F6F8;
  --card: #FFFFFF;
  --field: #F9FAFB;
  --field-border: #D8DADD;
  --line: #E7E9ED;
  --line-strong: #D8DADD;
  --ink: #374151;
  --heading: #111827;
  --muted: #6B7280;
  --ok: #28A745; --ok-soft: #d4edda; --ok-line: #bfe5c7; --ok-ink: #186429;
  --warn: #E99D00; --warn-soft: #fbebcc; --warn-line: #f3d9a6; --warn-ink: #8c5e00;
  --danger: #D44C59; --danger-soft: #f6dbde; --danger-line: #f2c9cd; --danger-ink: #7f2e35;
  --info: #17A2B8; --info-soft: #d1ecf1; --info-line: #b9e3ea; --info-ink: #0e616e;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .04);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink);
  font: 14.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; color: var(--heading); font-weight: 700; }
h2 { font-size: 17px; margin: 0; color: var(--heading); font-weight: 650; }
p { margin: 6px 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px 40px; }
.wrap.narrow { max-width: 440px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); min-width: 0; }
.head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.head .spacer { margin-left: auto; }

/* ---------------------------------------------------------------- brand */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--heading); }
a.brand:hover { color: var(--heading); text-decoration: none; }
.app-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-name { font-weight: 700; font-size: 16px; white-space: nowrap; }

/* ---------------------------------------------------------------- login */
.card.login { margin: 12vh auto 0; padding: 28px 30px; }
.card.login .login-brand { margin-bottom: 18px; }
.card.login h1 { font-size: 22px; }
.card.login form { display: grid; gap: 16px; margin-top: 24px; }
.card.login form > label { display: grid; gap: 6px; margin: 0; }
.card.login form > button { justify-self: start; }

/* --------------------------------------------------------------- topbar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 22px; padding: 10px 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex: 1 1 auto; overflow-x: auto; }
.tabs a { padding: 9px 13px; font-weight: 550; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; white-space: nowrap; }
.tabs a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.topbar-right form { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--warn); color: var(--heading);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.chip-ok { background: var(--ok); color: #fff; }
.chip.chip-muted { background: var(--line); color: var(--muted); }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.who .monogram { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: var(--brand); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 650; }

/* ------------------------------------------------------------ page head */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 26px 4px 4px; margin-bottom: 18px; }
.page-head .titles { flex: 1 1 420px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.page-head h1 { margin-top: 4px; }
.subtitle { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 640px; }
.page-head form { margin: 0; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.rail { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
.rail .card { margin-bottom: 0; }
.rail-card.cream { background: var(--rail); border-color: var(--rail-border); }
.rail-card.cream .eyebrow { color: var(--rail-ink); }
.headline { font-size: 19px; font-weight: 700; color: var(--heading); margin: 4px 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.origin { color: var(--muted); font-size: 12.5px; margin: 0 0 4px; }
.rail-card dl { margin: 12px 0 2px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12.5px; }
.rail-card dt { color: var(--muted); }
.rail-card dd { margin: 0; font-weight: 550; color: var(--heading); overflow-wrap: anywhere; }
.big-stat { margin: 12px 0 2px; padding-top: 12px; border-top: 1px solid var(--rail-border); }
.big-label { display: block; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--rail-ink); }
.big-number { display: block; font-size: 30px; font-weight: 700; color: var(--brand); margin: 2px 0; line-height: 1.2; }
.big-number.alert { color: var(--danger); }
.flow { font-size: 12px; color: var(--rail-ink); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rail-border); }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 12.5px; color: var(--muted); }
input { width: 100%; padding: 9px 11px; border: 1px solid var(--field-border); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--field); margin-top: 4px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: #fff; }
input[type="checkbox"] { width: auto; margin: 0 7px 0 0; accent-color: var(--accent); }
.stack { display: grid; gap: 12px; margin-top: 8px; }
.check-row { display: flex; align-items: center; font-size: 13px; color: var(--ink); }
.card-foot { display: flex; justify-content: flex-end; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- buttons */
button { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card);
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
button:hover { background: var(--field); }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.accent { background: var(--brand); border-color: var(--brand); color: #fff; padding: 11px 18px; border-radius: 12px; }
button.accent:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.ghost { border-color: var(--line); color: var(--muted); }
button.ghost:hover { color: var(--brand); border-color: var(--line-strong); }
button.small-btn { padding: 5px 11px; font-size: 12.5px; }
button.link { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 600; }
button.link:hover { color: var(--accent-hover); text-decoration: underline; background: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- pills */
.pill { display: inline-block; background: var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px;
  color: var(--ink); white-space: nowrap; font-weight: 600; }
.pill.ok-pill { background: var(--ok); color: #fff; }
.pill.warn-pill { background: var(--warn); color: var(--heading); }
.pill.danger-pill { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------- messages */
.ok-line, .warn-line, .error-line { border-radius: 10px; padding: 9px 13px; font-size: 13px; margin: 0 0 14px; border: 1px solid; }
.ok-line { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }
.warn-line { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.error-line { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.error { color: var(--danger); font-size: 13px; margin: 0; }

/* ------------------------------------------------------- attention panel */
.card.attention { border-color: var(--warn-line); background: var(--warn-soft); }
.card.attention h2 { color: var(--warn-ink); }
.card.attention th, .card.attention td { border-bottom-color: var(--warn-line); }

/* ----------------------------------------------------------------- tables */
.scroll-x { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.scroll-x table { min-width: 620px; }
table { width: 100%; border-collapse: collapse; margin-top: 6px; }
th, td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: none; }
td .job-name { color: var(--muted); font-size: 12px; margin-top: 2px; max-width: 420px; }
td form { margin: 0; }
.empty { color: var(--muted); padding: 10px 0 4px; margin: 0; }

/* ----------------------------------------------------------------- footer */
.site-footer { margin-top: auto; background: var(--card); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.footer-logo { height: 20px; width: auto; display: block; mix-blend-mode: multiply; opacity: .85; }
.footer-sep { width: 1px; height: 18px; background: var(--line-strong); }
.footer-right { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 12px 40px; }
  .topbar { padding: 10px 12px; gap: 12px; }
  .tabs { order: 3; flex: 1 1 100%; }
  .page-head h1 { font-size: 25px; }
  .footer-inner { padding: 14px 12px; }
  .footer-sep { display: none; }
  .footer-right { margin-left: 0; flex: 1 1 100%; }
}
