/*
  Northmount Pharmacy: staff inbox (/staff). Plain, accessible pages in the site's palette.
  Loaded only by staff/index.php (with fonts.css). No scripts, no inline styles.

  Made with Aloha ~ Aloha Way Marketing
*/
:root {
  --plum: #4A0F3A; --magenta: #B51E8D; --magenta-deep: #8A1468; --blush: #FCE9F1; --blush-2: #F8DCE8;
  --cream: #FFF9F4; --ink: #24101F; --ink-soft: #5E4656; --line: #E2C3D2; --field-line: #A8738F; --mint: #CDEBD9; --amber: #FFF1CC; --amber-line: #C98A00; --red: #A4262C;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif; --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
a { color: var(--magenta-deep); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: 22px; margin-top: 32px; }
p { margin: 0 0 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.st-wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.st-skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; }
.st-skip:focus { top: 12px; }

.st-head { background: var(--plum); color: var(--blush); }
.st-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; padding: 10px 0; }
.st-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15; }
.st-brand img { background: var(--blush); border-radius: 50%; padding: 3px; }
.st-brand small { display: block; font-weight: 400; color: var(--blush); font-size: 13px; }
.st-brand:hover { color: #fff; }
.st-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.st-nav a, .st-linkbtn { color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; padding: 10px 0; }
.st-nav a:hover, .st-linkbtn:hover { text-decoration: underline; color: #fff; }
.st-nav form { margin: 0; }
.st-linkbtn { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

.st-main { padding: 32px 0 48px; min-height: 60vh; }
.st-foot { padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.st-small { font-size: 14.5px; color: var(--ink-soft); }
.st-mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .95em; overflow-wrap: anywhere; }
.st-back { margin-bottom: 8px; font-size: 15px; }

.st-form { display: grid; gap: 8px; margin: 16px 0 24px; }
.st-narrow { max-width: 420px; }
.st-form label { font-weight: 700; font-size: 15px; margin-top: 8px; }
.st-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field-line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.st-form input:focus-visible { border-color: var(--ink); }
.st-inline { grid-template-columns: 1fr auto; align-items: end; max-width: 640px; }
.st-inline label { grid-column: 1 / -1; }

.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; margin-top: 8px; border: 2px solid var(--plum); border-radius: 999px; background: var(--plum); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.st-btn:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); color: #fff; }
.st-btn--ghost { background: transparent; color: var(--plum); }
.st-btn--ghost:hover { background: var(--blush); color: var(--plum); border-color: var(--plum); }
.st-btn--danger { background: transparent; color: var(--red); border-color: var(--red); }
.st-btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.st-actions form { margin: 0; }

.st-error, .st-note, .st-warn, .st-flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; }
.st-error { background: #FBE4E5; border: 1.5px solid var(--red); color: var(--red); font-weight: 700; }
.st-note { background: var(--blush); border: 1.5px solid var(--line); }
.st-note p, .st-warn p { margin: 0; }
.st-warn { background: var(--amber); border: 1.5px solid var(--amber-line); }
.st-flash { background: var(--mint); border: 1.5px solid #6FB08A; font-weight: 700; }
.st-empty { padding: 24px; border: 1.5px dashed var(--line); border-radius: 12px; text-align: center; color: var(--ink-soft); }

.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.st-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.st-tabs a span { color: var(--ink-soft); font-weight: 400; }
.st-tabs a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.st-tabs a[aria-current="page"] span { color: var(--blush); }

.st-tablewrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.st-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.st-table th, .st-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--blush-2); vertical-align: top; }
.st-table th { background: var(--blush); font-size: 14px; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table tr.is-warn td { background: var(--amber); }
.st-table a { font-weight: 700; }

.st-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--line); background: var(--blush); white-space: nowrap; }
.st-badge--new { background: var(--plum); color: #fff; border-color: var(--plum); }
.st-badge--entered { background: var(--mint); border-color: #6FB08A; }
.st-badge--hold { background: var(--amber); border-color: var(--amber-line); }

.st-meta, .st-answers { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; margin: 0 0 20px; }
.st-meta dt, .st-answers dt { font-weight: 700; }
.st-meta dd, .st-answers dd { margin: 0; overflow-wrap: anywhere; }
.st-answers { padding: 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.st-files { padding-left: 20px; }
.st-files li { margin-bottom: 8px; }
.st-steps { padding-left: 22px; }
.st-key { display: inline-block; padding: 12px 18px; border: 2px dashed var(--plum); border-radius: 12px; background: #fff; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 22px; letter-spacing: .08em; }

@media (max-width: 640px) {
  .st-meta, .st-answers { grid-template-columns: 1fr; gap: 2px; }
  .st-meta dd, .st-answers dd { margin-bottom: 10px; }
  .st-inline { grid-template-columns: 1fr; }
  .st-table { font-size: 14.5px; }
}
@media print {
  .st-head, .st-foot, .st-actions, .st-nav, .st-back { display: none; }
  body { background: #fff; }
}
.st-tablewrap + .st-small { margin-top: 12px; }
.st-table .st-mono { white-space: nowrap; }

/* Field borders: --field-line is 3.65:1 on cream and 3.81:1 on white (WCAG 1.4.11; QA-TECH QT-04). */

/* FIX-SEC: staff accounts, recovery code, small buttons inside tables */
.st-code { display: inline-block; padding: 14px 20px; margin: 4px 0 20px; border: 2px dashed var(--plum); border-radius: 12px; background: #fff; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 22px; letter-spacing: .06em; overflow-wrap: anywhere; }
.st-table form { margin: 6px 0 0; }
.st-btn--small { min-height: 44px; padding: 6px 16px; margin-top: 4px; font-size: 15px; }
.st-table .st-small { color: var(--ink-soft); }
@media print {
  .st-code { border-color: #000; }
}
