/* SupplyRP — styles for the APEX pages (the scm_ui packages render the markup).
   The Parkmed look (owner, 12 Oct 2026): no APEX theme on screen. Universal Theme only carries the page;
   SupplyRP draws its own top bar, grouped menu, forms and messages (the GARO pattern). Colours come from the
   Parkmed logo: navy ink #0d1724, Parkmed blue #2a62a9 for actions, links, focus and selection; Parkmed green
   #55ae65 only in the wordmark; cool greys; amber for due; red only for what is critical. Components are
   scoped under .scm (Team 2's under .scm .t2-…). One type scale: 24 / 18 / 16 / 14 / 12. */
.scm{--bg:#fff;--surface:#fff;--sunk:#f4f6f9;--ink:#0d1724;--muted:#536076;--line:#dde2ea;--line-strong:#c7cfdb;--accent:#2a62a9;--accent-ink:#fff;--accent-soft:#e8eff9;--ok:#2a7140;--ok-soft:#e7f4ea;--warn:#8b5a13;--warn-soft:#fff7e8;--bad:#ac3636;--bad-soft:#fff1f1;--font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;--shadow:0 10px 35px #0d172426;color-scheme:light}
.scm,.scm *{box-sizing:border-box}
.scm{margin:0;background:var(--bg);font:14px/1.5 var(--font-ui);color:var(--ink)}
.scm [hidden]{display:none!important}
.scm button,.scm input,.scm select,.scm textarea{font:inherit;color:inherit}
.scm button{cursor:pointer}
.scm button:disabled{cursor:not-allowed;opacity:.5}
.scm a{color:var(--accent)}
.scm :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scm h1,.scm h2,.scm h3,.scm h4,.scm h5,.scm p{margin:0}
.scm h1{font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-.4px;text-wrap:balance}
.scm h2{font-size:18px;font-weight:600}
.scm h3{font-size:16px;font-weight:600}
.scm h4{font-size:14px;font-weight:600;margin:16px 0 8px}
.scm h5{font-size:12px;font-weight:600;color:var(--muted);margin:12px 0 6px;text-transform:uppercase;letter-spacing:.04em}
.scm .muted,.scm small{color:var(--muted)}
.scm small{font-size:12px}
.scm td small,.scm .record-row small{display:block;margin-top:3px}
.scm .mono{font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere}
.scm .num{font-variant-numeric:tabular-nums}
.scm .neg{color:var(--bad)}
.scm .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.scm .phead{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.scm .phead p{font-size:12px;color:var(--muted);max-width:80ch;margin-top:6px}
.scm .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:0;margin-right:0}   /* R-034: not the APEX theme's grid row (margin 0 -8px) */
.scm .row.tight{gap:4px}
.scm .row.between{justify-content:space-between}
.scm .stack{display:flex;flex-direction:column;gap:14px}
.scm .btn{border:1px solid var(--line-strong);border-radius:4px;background:#fff;padding:7px 12px;min-height:36px;font-size:12px;white-space:nowrap}
.scm .btn:hover{background:var(--sunk);border-color:#8494ab}
.scm .btn.pri{background:var(--accent);border-color:var(--accent);color:#fff}
.scm .btn.pri:hover{background:#21508c}
.scm .btn.danger{color:var(--bad)}
.scm .btn.sm{padding:4px 9px;min-height:30px}
.scm .link{border:0;background:none;color:var(--accent);text-decoration:underline;text-underline-offset:3px;padding:0;font-size:12px}
.scm input:not([type=checkbox]):not([type=file]),.scm select,.scm textarea,.scm .inp{border:1px solid #bcc5d3;border-radius:4px;background:#fff;padding:7px 10px;max-width:100%;font-size:14px;min-height:36px}
.scm .inp.sm{min-height:30px;padding:3px 6px;font-size:12px}
.scm textarea{resize:vertical;min-height:60px}
.scm input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px;flex:none}
.scm input[type=file]{font-size:12px;max-width:100%}
.scm .f{display:flex;flex-direction:column;gap:5px;min-width:0}
.scm .f>span{font-size:12px}
.scm .f textarea,.scm .f input:not([type=checkbox]),.scm .f select{width:100%}
.scm .f em{font-style:normal;font-size:12px;color:var(--ok);min-height:1em}
.scm .f.err em{color:var(--bad)}
.scm .f.saved input,.scm .f.saved select,.scm .f.saved textarea{border-color:#93b0da}
.scm .f.err input,.scm .f.err select,.scm .f.err textarea{border-color:var(--bad)}
.scm .fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.scm .inline-form{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end;padding:12px;background:var(--sunk);border-radius:6px;margin-top:10px}
.scm .inline-form .f{min-width:150px}
.scm .inline-field{font-size:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.scm .inline-field select,.scm .inline-field input{max-width:280px;font-size:12px}
.scm .checks{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0 12px}
.scm .checks label{display:flex;gap:6px;align-items:center;font-size:14px}
.scm .check{display:flex;gap:10px;align-items:flex-start;padding:8px 0}
.scm .check small{display:block}
.scm .pill{display:inline-block;font-size:12px;color:var(--muted);white-space:nowrap;font-weight:500}
.scm .pill.warn{color:var(--warn)}
.scm .pill.bad{color:var(--bad)}
.scm .pill.ok{color:var(--ok)}
.scm span.pill.bad{white-space:normal}
.scm .chip{display:inline-block;font-size:12px;line-height:16px;color:var(--muted);border:1px solid var(--line);border-radius:3px;padding:0 5px;margin:0 4px 0 0;white-space:nowrap;vertical-align:1px}
/* medicine safety (1.3.5): a high-alert medicine is critical (red, with the words); a look-alike or sound-alike one needs
   attention (amber); a Tall Man name shows the letters that differ in bold, never by colour alone */
.scm .chip.ha{color:var(--bad);background:var(--bad-soft);border-color:var(--bad);font-weight:600}
.scm .chip.ha::before{content:"!";content:"!" / "";font-weight:700;margin-right:3px}
.scm .chip.lasa{color:var(--warn);background:var(--warn-soft);border-color:#f0dcb6}
.scm .tall b{font-weight:700}
.scm table.grid td small.warnt{color:var(--warn)}
.scm table.grid td small.neg{color:var(--bad)}
.scm .sf-kept{white-space:nowrap;margin-right:10px}
.scm .sf-kept>.mono{color:var(--muted);margin-right:4px}
.scm .gate{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.scm .gate i{height:4px;width:48px;display:inline-block;background:#e3e7ee;position:relative;overflow:hidden;border-radius:2px}
.scm .gate i b{position:absolute;inset:0 auto 0 0;background:var(--warn)}
.scm .gate.full i b{background:var(--accent)}
.scm .ubar{display:inline-flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.scm .ubar i{height:6px;width:70px;display:inline-block;background:#e6eaf1;border-radius:3px;overflow:hidden;position:relative}
.scm .ubar i b{position:absolute;inset:0 auto 0 0;background:var(--accent)}
.scm .ubar.warn i b{background:#c08a2b}
.scm .ubar.bad i b{background:var(--bad)}
.scm .ubar.bad .num{color:var(--bad)}
.scm .ubar.mute i b{background:#c3cad6}
.scm .overdue{color:var(--bad);font-variant-numeric:tabular-nums}
.scm .overdue small{color:inherit}
.scm .due{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 6px;font-size:10.5px;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--ink)}
.scm .due.late .due-date{color:var(--bad)}
.scm .due-date{white-space:nowrap}
.scm .due-tag{display:inline-block;font-size:10px;font-weight:550;line-height:16px;padding:0 6px;border-radius:8px;white-space:nowrap;border:1px solid transparent}
.scm .due-tag.warn{background:var(--warn-soft);color:var(--warn);border-color:#f0dcb6}
.scm .due-tag.bad{background:var(--bad-soft);color:var(--bad);border-color:#f2caca}
.scm .due-tag.plain{background:var(--sunk);color:var(--muted);border-color:var(--line)}
.scm .tbl-wrap{overflow:auto;width:100%;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.scm table{border-collapse:collapse;width:100%;font-size:14px}
.scm th{text-align:left;font-size:12px;font-weight:500;color:var(--muted);background:#fafbfc;white-space:nowrap}
.scm th,.scm td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.scm tr:last-child td{border-bottom:0}
.scm td strong{font-weight:550}
.scm td .inp{min-width:80px}
.scm .r{text-align:right}
.scm tr.sel,.scm tr.clickable:hover{background:var(--accent-soft)}
.scm tr.clickable{cursor:pointer}
.scm .kv{display:grid;grid-template-columns:minmax(120px,190px) minmax(0,1fr);gap:9px 18px;margin:0}
.scm .kv dt{color:var(--muted);font-size:12px;padding-top:2px}
.scm .kv dd{margin:0;overflow-wrap:anywhere}
.scm .hist{list-style:none;padding:0;margin:0}
.scm .hist li{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;border-bottom:1px solid var(--line);padding:10px 0}
.scm .hist time{font-size:12px;color:var(--muted)}
.scm .hist small{display:block;margin-top:2px;overflow-wrap:anywhere}
.scm .empty{font-size:14px;padding:16px 0;color:var(--muted)}
.scm .list-summary{font-size:12px;color:var(--muted)}
.scm .note{padding:11px 14px;border-left:3px solid var(--warn);background:var(--warn-soft);font-size:13px;border-radius:0 4px 4px 0}
.scm .note.bad{border-color:var(--bad);background:var(--bad-soft)}
.scm .note.ok,.scm .note.info{border-color:var(--accent);background:var(--accent-soft)}
.scm .reasons{margin:8px 0 0;padding-left:18px}
.scm .reasons li{margin:4px 0}
.scm .notes{list-style:none;margin:0 0 6px;padding:0}
.scm .notes li{border-bottom:1px solid var(--line);padding:10px 0}
.scm .notes p{margin-top:4px}
.scm .total{font-size:14px;margin:10px 0}
.scm .tasklist{list-style:none;margin:0;padding:0}
.scm .tasklist li{display:grid;grid-template-columns:minmax(0,1fr) 128px 132px;gap:6px 16px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}
.scm .tasklist li:last-child{border-bottom:0}
.scm .tasklist li>div:last-child{justify-self:end}
.scm .tasklist strong{font-weight:550;display:block}
.scm .tasklist small{display:block}
.scm details.cs{border-top:1px solid var(--line)}
.scm details.cs:last-of-type{border-bottom:1px solid var(--line)}
.scm details.cs>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 4px;min-height:48px}
.scm details.cs>summary::-webkit-details-marker{display:none}
.scm details.cs>summary:hover{background:#fafbfc}
.scm .cs-title{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}
.scm .cs-title::before{content:"";flex:none;width:5px;height:5px;border-right:1.5px solid #8a94a6;border-bottom:1.5px solid #8a94a6;transform:rotate(-45deg);transition:transform .15s;margin:0 3px 0 1px}
.scm details.cs[open]>summary .cs-title::before{transform:translateY(-2px) rotate(45deg)}
.scm details.cs>summary:hover .cs-title::before{border-color:var(--muted)}
.scm .cs-count{font-size:12px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums;background:var(--sunk);border-radius:9px;padding:0 7px}
.scm .cs-meta{font-size:12px;color:var(--muted);text-align:right}
.scm .cs-body{padding:2px 4px 20px 22px;display:flex;flex-direction:column;gap:10px;min-width:0}
.scm details.cs details.cs .cs-title{font-size:14px}
.scm .summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px 28px;border-block:1px solid var(--line);padding:16px 0;margin:0}
.scm .summary dt{font-size:12px;color:var(--muted)}
.scm .summary dd{margin:4px 0 0;font-size:20px;font-variant-numeric:tabular-nums}
.scm .summary dd small{font-size:12px}
.scm .summary dd:nth-of-type(2){font-size:12px}
.scm .figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px 22px;padding:12px 0}
.scm .figures>div{display:flex;flex-direction:column;gap:3px}
.scm .figures>div>span{font-size:12px;color:var(--muted)}
.scm .kv dd small{display:block;margin-top:2px}
.scm .figures b{font-size:18px;font-weight:600}
.scm .impact{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:4px;padding:14px 16px;background:#fbfcfd}
.scm .impact.over{border-left-color:var(--bad)}
.scm .impact-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.scm .impact-head .pill{font-size:14px}
.scm .impact-hc{font-size:13px;margin:4px 0}
.scm .justify{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.scm .justify span{font-size:12px;color:var(--muted)}
.scm .justify p{margin-top:3px}
.scm .stepper{list-style:none;margin:0;padding:6px 0 4px;display:flex;flex-wrap:wrap;gap:0;counter-reset:s}
.scm .stepper li{flex:1;min-width:110px;position:relative;padding:22px 10px 0 0;font-size:12px;color:var(--muted)}
.scm .stepper li::before{content:"";position:absolute;top:6px;left:0;width:12px;height:12px;border-radius:50%;border:2px solid #c3cad6;background:#fff}
.scm .stepper li::after{content:"";position:absolute;top:12px;left:16px;right:4px;height:2px;background:#e0e5ed}
.scm .stepper li:last-child::after{display:none}
.scm .stepper li span{display:block;color:var(--ink);font-weight:500}
.scm .stepper li small{display:block}
.scm .stepper li.done::before{background:var(--accent);border-color:var(--accent)}
.scm .stepper li.done::after{background:var(--accent)}
.scm .stepper li.now::before{border-color:var(--accent);box-shadow:0 0 0 3px #2a62a922}
.scm .stepper li.now span{color:var(--accent)}
.scm .stepper li.stop::before{border-color:var(--bad);background:var(--bad)}
.scm .stepper li.stop span{color:var(--bad)}
.scm .decision{position:sticky;top:60px;z-index:5;background:#fff;border:1px solid var(--line-strong);border-radius:6px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 14px #0d172410}
.scm .actionbar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}
.scm .detail-toolbar{display:flex;justify-content:flex-end;padding-bottom:8px;border-bottom:1px solid var(--line)}
.scm .detail-toolbar.left{justify-content:flex-start;border-bottom:0;padding:0}
.scm .options{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:10px}
.scm .option{border:1px solid var(--line);border-radius:6px;padding:14px;display:flex;flex-direction:column;gap:8px}
.scm .option h4{margin:0}
.scm .option p{font-size:13px;color:var(--muted)}
.scm .option .inline-form{margin-top:0;background:transparent;padding:0}
.scm .subcard{border:1px solid var(--line);border-radius:6px;padding:14px;margin-bottom:10px}
.scm .subhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.scm .subhead h4{margin:0}
.scm .subcard>p{margin:4px 0 8px;font-size:12px}
.scm .submitbox{border:1px solid var(--accent);border-radius:6px;padding:14px;background:var(--accent-soft);display:flex;flex-direction:column;gap:8px}
.scm .submitbox h4{margin:0}
.scm .tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);overflow:auto}
.scm .tab{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0;color:var(--muted);white-space:nowrap;font-size:14px}
.scm .tab.on{border-bottom-color:var(--accent);color:var(--accent)}
.scm .tab span{margin-left:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.scm .filterbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.scm .filterbar input[type=search]{min-width:260px}
.scm .filterbar select{max-width:280px}
.scm .record-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;border-top:1px solid var(--line);min-width:0;align-items:start}
.scm .record-layout:not(.has-selection){grid-template-columns:minmax(300px,420px) 1fr}
.scm .record-list{border-right:1px solid var(--line);padding:14px 16px 20px 0;max-height:calc(100vh - 230px);overflow:auto;position:sticky;top:76px}
.scm .record-list>.list-summary{padding:0 10px 10px}
.scm .record-row{width:100%;display:flex;flex-direction:column;gap:5px;align-items:flex-start;border:0;border-bottom:1px solid var(--line);padding:14px 10px;text-align:left;background:#fff;line-height:1.4}
.scm .record-row:hover{background:#f7f8fb}
.scm .record-row.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}
.scm .record-row strong{font-size:14px;font-weight:550}
.scm .record-row>span{font-size:12px;color:var(--muted)}
.scm .record-row .record-meta{display:flex;width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.scm .record-detail{min-width:0;padding:12px 0;display:flex;flex-direction:column;gap:12px}
.scm .record-detail h2{font-size:20px}
.scm .record-placeholder{padding:30px 0;color:var(--muted)}
.scm .board{display:grid;grid-auto-flow:column;grid-auto-columns:230px;overflow:auto;gap:16px;padding-bottom:12px}
.scm .col{border-top:2px solid var(--line);padding-top:10px}
.scm .col h2{font-size:14px;display:flex;justify-content:space-between;padding:0 8px 8px}
.scm .col h2 span{color:var(--muted);font-size:12px}
.scm .col .record-row{border:1px solid var(--line);margin-bottom:8px;padding:10px;border-radius:4px}
.scm .renewal{padding:16px;border-left:3px solid var(--accent);background:#f8f9fc}
.scm .decl{max-width:720px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:6px;padding:20px}
.scm-modal{position:fixed;inset:0;background:#0d172466;z-index:70;display:grid;place-items:center;padding:20px}
.scm .dlg{width:min(680px,100%);max-height:calc(100dvh - 40px);background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.scm .dlg.wide{width:min(980px,100%)}
.scm .dlg header,.scm .dlg footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 22px;border-bottom:1px solid var(--line)}
.scm .dlg footer{justify-content:flex-end;border-bottom:0;border-top:1px solid var(--line)}
.scm .dlg .body{padding:20px 22px;overflow:auto;display:flex;flex-direction:column;gap:14px}
.scm-toasts{position:fixed;bottom:18px;right:18px;z-index:90;max-width:440px;display:flex;flex-direction:column;gap:8px}
.scm .toast{padding:12px 16px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--accent);box-shadow:var(--shadow);font-size:14px;border-radius:4px}
.scm .toast.err{border-left-color:var(--bad)}
.scm .toast.warn{border-left-color:var(--warn)}
.scm .doc{position:relative;padding:24px;border:1px solid var(--line);overflow:hidden;line-height:1.7;border-radius:4px}
.scm .doc .hdr{display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:12px}
.scm .hdr-r{margin-left:auto;text-align:right;font-size:12px}
.scm .hdr-r b{color:var(--accent)}
.scm .photo{width:55px;min-height:60px;border:1px solid var(--line);font-size:11px;text-align:center;padding:8px;color:var(--muted)}
.scm .wm{position:absolute;inset:-40%;display:flex;flex-wrap:wrap;gap:60px;align-content:center;transform:rotate(-24deg);opacity:.1;pointer-events:none;font-size:12px}
.scm .letter .stamp{font-size:12px;float:right;color:var(--muted);border:1px solid var(--line);padding:3px 8px}
.scm .guest{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:16px;width:100%}
.scm .gbar{padding:12px 14px;background:var(--sunk);display:flex;gap:15px;justify-content:space-between;align-items:center;font-size:12px;border-radius:4px;flex-wrap:wrap}
.scm .gcard{border:1px solid var(--line);border-radius:6px;padding:18px;display:flex;flex-direction:column;gap:12px}
.scm .steps{display:flex;flex-wrap:wrap;gap:6px}
.scm .steps span{font-size:12px;padding:4px 10px;border-radius:12px;background:var(--sunk);color:var(--muted)}
.scm .steps .on{background:var(--accent);color:#fff}
.scm .steps .done{background:var(--accent-soft);color:var(--accent)}
.scm details.sec{border:1px solid var(--line);border-radius:6px}
.scm details.sec summary{font-size:14px;font-weight:550;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;list-style:none}
.scm details.sec summary::-webkit-details-marker{display:none}
.scm details.sec summary>span:first-child{display:flex;align-items:center;gap:8px}
.scm details.sec summary>span:first-child::before{content:"";flex:none;width:5px;height:5px;border-right:1.5px solid #8a94a6;border-bottom:1.5px solid #8a94a6;transform:rotate(-45deg);transition:transform .15s;margin:0 3px 0 1px}
.scm details.sec[open] summary>span:first-child::before{transform:translateY(-2px) rotate(45deg)}
.scm details.sec .in{padding:6px 16px 18px}
.scm .docrow{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:10px 0}
.scm .docrow small{display:block}
.scm .sigbox{width:100%;display:flex;flex-direction:column;gap:6px}
.scm canvas.sig{max-width:100%;border:1px dashed var(--muted);touch-action:none;background:#fff;border-radius:4px}
.scm .otp{font-size:20px;letter-spacing:.25em;width:9em;text-align:center}
@media(max-width:1099px){.scm .record-layout,.scm .record-layout:not(.has-selection){grid-template-columns:1fr}
.scm .record-list{position:static;max-height:none;border-right:0;padding-right:0}
.scm .record-layout.has-selection>.record-list,.scm .record-placeholder{display:none}
.scm .decision{position:static}
}
@media(max-width:700px){.scm .fgrid{grid-template-columns:1fr}
.scm .kv{grid-template-columns:1fr;gap:2px 0}
.scm .kv dd{margin-bottom:8px}
.scm .hist li{grid-template-columns:1fr;gap:4px}
.scm .tasklist li{grid-template-columns:1fr}
.scm .filterbar input[type=search]{min-width:0;width:100%}
.scm .cs-meta{display:none}
.scm .cs-body{padding-left:4px}
.scm-toasts{left:12px;right:12px;max-width:none}
.scm .dlg .body{padding:16px}
.scm .board{grid-auto-columns:210px}
.scm .stepper li{min-width:90px}
}
@media(prefers-reduced-motion:reduce){.scm,.scm *{transition:none!important;scroll-behavior:auto!important}
}
.scm .home-tasks{display:flex;flex-direction:column;gap:0}
.scm .home-tasks>h2{margin-bottom:8px;display:flex;gap:8px;align-items:center}
.scm .gcard.row{flex-direction:row;align-items:center}
.scm .controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:4px 0 6px}
.scm .controls .f{display:flex;flex-direction:column;gap:4px;min-width:150px}
.scm .controls .f>span{font-size:12px;color:var(--muted)}
.scm .controls select{font:inherit;font-size:13px;padding:6px 8px;border:1px solid var(--line-strong);border-radius:4px;background:#fff;color:var(--ink)}
.scm .controls .asof{margin-left:auto;font-size:12px;color:var(--muted);padding-bottom:7px}
.scm .figures.six{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));border-block:1px solid var(--line);padding:14px 0;margin:8px 0 4px}
.scm .figures small{font-size:12px;color:var(--muted)}
.scm th[scope=row]{color:var(--ink);font-size:14px;font-weight:400;background:none;white-space:normal}
.scm th[scope=row] small,.scm td small{display:block;margin-top:2px;font-size:12px;color:var(--muted);font-weight:400}
.scm .sheet{font-size:13px}
.scm .sheet td,.scm .sheet th{padding:9px 10px}
.scm .sheet thead th{position:sticky;top:0;z-index:1}
.scm .sheet-wrap{max-height:none}
.scm .sheet tbody th[scope=row],.scm .sheet tfoot th[scope=row]{position:sticky;left:0;background:#fff;min-width:170px}
.scm .sheet tr.clickable:hover th[scope=row]{background:var(--accent-soft)}
.scm .sheet tr.grp th{background:var(--sunk);color:var(--ink);font-size:12px;font-weight:600;letter-spacing:.01em;padding:7px 10px}
.scm .sheet tr.grp small{display:inline;margin-left:6px;font-weight:400;color:var(--muted)}
.scm .sheet tr.sub th,.scm .sheet tr.sub td{background:#fafbfc;font-weight:550;border-bottom:1px solid var(--line-strong)}
.scm .sheet tr.sub th[scope=row]{background:#fafbfc;font-size:13px;font-weight:550}
.scm .sheet tfoot tr.grand th,.scm .sheet tfoot tr.grand td,.scm .qtable tr.grand th,.scm .qtable tr.grand td{border-top:2px solid var(--ink);font-weight:600;background:#fff}
.scm .sheet tfoot tr.grand th[scope=row],.scm .qtable tr.grand th[scope=row]{font-weight:600}
.scm .qtable td{min-width:120px;font-size:13px}
.scm .qtable td b{font-weight:600;display:block}
.scm .qtable td .due-tag{margin-top:4px}
.scm ul.plain{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink)}
.scm .kpi-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:26px 40px;margin:14px 0 22px}
.scm .kpi-group h3{font-size:12px;font-weight:600;color:var(--ink);margin:0;padding-bottom:8px;border-bottom:1px solid var(--line-strong)}
.scm .kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.scm .kpi{display:flex;flex-direction:column;gap:3px;padding:12px 0 13px;border-bottom:1px solid var(--line);min-width:0}
.scm .kpi:nth-child(odd){padding-right:18px;border-right:1px solid var(--line)}
.scm .kpi:nth-child(even){padding-left:18px}
.scm .kpi-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.scm .kpi-l{font-size:12px;color:var(--muted)}
.scm .kpi-t{font-size:11px;color:#8a94a6;white-space:nowrap;font-variant-numeric:tabular-nums}
.scm .kpi-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.scm .kpi-v{font-size:22px;font-weight:600;letter-spacing:-.4px;line-height:1.25;color:var(--ink)}
.scm .kpi-flag{font-size:11.5px;font-weight:500}
.scm .kpi-flag.warn{color:var(--warn)}
.scm .kpi-flag.bad{color:var(--bad)}
.scm .kpi small{font-size:12px;color:var(--muted);line-height:1.4}
.scm .exlist{list-style:none;margin:0;padding:0}
.scm .exlist li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0 10px 14px;border-bottom:1px solid var(--line);position:relative}
.scm .exlist li:last-child{border-bottom:0}
.scm .exlist li::before{content:"";position:absolute;left:0;top:16px;width:6px;height:6px;border-radius:50%;background:var(--warn)}
.scm .exlist li.bad::before{background:var(--bad)}
.scm .exlist strong{font-weight:550;display:block}
.scm .exlist small{display:block}
.scm .trend{margin:0;max-width:640px}
.scm .trend svg{width:100%;height:auto;display:block}
.scm .trend .bar-b{fill:#e2e7ef}
.scm .trend .bar-a{fill:var(--accent)}
.scm .trend .bar-f{fill:#a9c1e3}
.scm .trend .bar-a.over{fill:var(--bad)}
.scm .trend .bar-f.over{fill:#e4a5a5}
.scm .trend .base{stroke:var(--line-strong)}
.scm .trend .lbl{font-size:11px;fill:var(--muted);text-anchor:middle;font-variant-numeric:tabular-nums}
.scm .trend .ax{font-size:12px;fill:var(--ink);text-anchor:middle}
.scm .trend figcaption{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;margin-top:8px}
.scm .trend .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.scm .sw.b{background:#e2e7ef}
.scm .sw.a{background:var(--accent)}
.scm .sw.f{background:#a9c1e3}
.scm .funnel{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-width:640px}
.scm .funnel li{display:grid;grid-template-columns:130px minmax(0,1fr) 32px 40px;gap:10px;align-items:center;font-size:13px}
.scm .funnel i{height:10px;background:#eef1f6;border-radius:5px;overflow:hidden;display:block}
.scm .funnel i b{display:block;height:100%;background:var(--accent);border-radius:5px}
.scm .funnel .num{text-align:right}
.scm .funnel small{color:var(--muted);font-size:11.5px}
@media (max-width:760px){.scm .kpis{grid-template-columns:1fr}
.scm .kpi:nth-child(n){padding-left:0;padding-right:0;border-right:0}
.scm .controls .asof{margin-left:0}
.scm .funnel li{grid-template-columns:96px minmax(0,1fr) 28px 36px}
}
@media print{.scm #nav,.scm .phead .row,.scm .controls select,.scm .cs-meta,.scm button.btn{display:none!important}
.scm .kpi-groups{grid-template-columns:1fr 1fr}
.scm .sheet thead th,.scm .sheet tbody th[scope=row]{position:static}
.scm .tbl-wrap{overflow:visible}
.scm{font-size:12px}
}
.scm td.r.num,.scm th.r{white-space:nowrap}
.scm td.r.num small{white-space:nowrap}
.scm .kpi.kpi-link{cursor:pointer}
.scm .kpi.kpi-link:hover .kpi-l,.scm .kpi.kpi-link:focus-visible .kpi-l{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.scm .kpi.kpi-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scm .kpi-flag.ok{color:var(--muted)}
.scm .fgrid .full{grid-column:1/-1}
.scm .f.check{flex-direction:row;align-items:center;gap:8px;font-size:13px}
.scm .f.check input{width:auto;min-height:0}
.scm .f small{font-size:11.5px;color:var(--muted)}
.scm .kpi-prev{border-top:1px solid var(--line);padding:12px 0 2px;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;font-size:13px}
.scm .kpi-prev b{font-size:20px;font-weight:600}
.scm .kpi-prev small{flex-basis:100%;color:var(--muted)}
.scm .route{font-size:13px;margin:6px 0}
.scm .route small{display:block;color:var(--muted)}
.scm .nowrap{white-space:nowrap}
.scm .nowrap .btn+.btn{margin-left:6px}
.scm .pick{list-style:none;margin:0;padding:0}
.scm .pick li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.scm .pick li:last-child{border-bottom:0}
.scm .pick strong{font-weight:550;display:block}
.scm .pick small{display:block;color:var(--muted);font-size:12px}
.scm .kpi-detail{border:1px solid var(--line);border-radius:6px;padding:16px 18px;margin:10px 0 16px}
.scm .kpi-detail .phead{margin-bottom:4px}
.scm ol.plain{margin:0;padding-left:20px;font-size:13px;display:flex;flex-direction:column;gap:4px}

/* ---------- the APEX frame, hidden: Universal Theme only carries the page ---------- */
body.t-PageBody:not(.t-PageBody--login) .t-Header,
body.t-PageBody:not(.t-PageBody--login) .t-Body-nav,
body.t-PageBody:not(.t-PageBody--login) .t-Footer,
body.t-PageBody:not(.t-PageBody--login) .t-Body-title,
body.t-PageBody:not(.t-PageBody--login) .t-Body-actions,
body.t-PageBody:not(.t-PageBody--login) .t-Body-side{display:none!important}
body.t-PageBody:not(.t-PageBody--login),
body.t-PageBody:not(.t-PageBody--login) .t-Body,
body.t-PageBody:not(.t-PageBody--login) .t-Body-main,
body.t-PageBody:not(.t-PageBody--login) .t-Body-content,
body.t-PageBody:not(.t-PageBody--login) .t-Body-contentInner{background:#fff!important;background-image:none!important;margin:0!important;padding:0!important;max-width:none!important}
/* only Universal Theme's own grid (direct children): SupplyRP's .row is a different thing */
body.t-PageBody:not(.t-PageBody--login) .t-Body-contentInner>.container,
body.t-PageBody:not(.t-PageBody--login) .t-Body-contentInner>.container>.row,
body.t-PageBody:not(.t-PageBody--login) .t-Body-contentInner>.container>.row>.col{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
body.t-PageBody:not(.t-PageBody--login) .t-Region,
body.t-PageBody:not(.t-PageBody--login) .t-Region-body{border:0!important;box-shadow:none!important;background:none!important;padding:0!important;margin:0!important}

/* ---------- SupplyRP's top bar: white, 60px, the Parkmed wordmark once ---------- */
.scm.scm-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;height:60px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line)}
.scm-brand{display:inline-flex;align-items:baseline;gap:0;text-decoration:none!important;font-size:18px;font-weight:700;letter-spacing:-.2px;line-height:1;min-height:44px;align-items:center}
.scm-brand .pm-park{color:#55ae65}
.scm-brand .pm-med{color:#2a62a9}
.scm-brand .pm-app{color:var(--ink);font-weight:600;margin-left:12px;padding-left:12px;border-left:1px solid var(--line-strong)}
.scm-menubtn{display:none;flex:none;width:44px;height:44px;margin-left:-10px;border:0;border-radius:6px;background:none;cursor:pointer;position:relative}
.scm-menubtn span,.scm-menubtn span::before,.scm-menubtn span::after{position:absolute;left:12px;width:20px;height:2px;border-radius:1px;background:var(--ink);content:""}
.scm-menubtn span{top:21px}
.scm-menubtn span::before{left:0;top:-6px}
.scm-menubtn span::after{left:0;top:6px}
.scm-menubtn:hover{background:var(--sunk)}
.scm-acct{position:relative;margin-left:auto}
.scm-acct>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600}
.scm-acct>summary::-webkit-details-marker{display:none}
.scm-acct>summary:hover{background:#d9e5f5}
.scm-pop{position:absolute;right:0;top:48px;min-width:260px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px #0d17241f;padding:6px;z-index:50}
.scm-pop a{display:flex;align-items:center;min-height:40px;padding:0 10px;border-radius:6px;color:var(--ink)!important;text-decoration:none!important;font-size:14px}
.scm-pop a:hover,.scm-pop a:focus-visible{background:var(--sunk)}
.scm-who{display:flex;flex-direction:column;gap:2px;margin:6px 10px 8px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.scm-who b{font-size:14px;font-weight:600}
.scm-who span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}

/* ---------- the frame: the grouped menu beside the page ---------- */
.scm-frame{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:calc(100vh - 60px);align-items:stretch}
.scm.scm-nav{background:var(--sunk);border-right:1px solid var(--line);padding:16px 12px 24px;position:sticky;top:60px;align-self:start;height:calc(100vh - 60px);overflow:auto;display:flex;flex-direction:column;gap:18px}
.scm-nav .navgrp{display:flex;flex-direction:column;gap:2px}
.scm-nav .navgrp-h{font-size:12px;font-weight:600;color:var(--muted);padding:0 10px 4px}
.scm-nav .navbtn{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:0 10px;border-radius:6px;color:var(--ink)!important;text-decoration:none!important;font-size:14px}
.scm-nav .navbtn:hover{background:#e8edf4}
.scm-nav .navbtn.on{background:#fff;color:var(--accent)!important;font-weight:600;box-shadow:0 0 0 1px var(--line)}
.scm-nav .badge{min-width:22px;padding:0 7px;border-radius:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:600;line-height:20px;text-align:center;font-variant-numeric:tabular-nums}
.scm-nav .badge.soft{background:#fff;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line-strong)}
.scm-nav .badge[hidden]{display:none}
.scm-nav .nav-foot{margin-top:auto;padding:0 10px;font-size:12px;color:var(--muted)}
#scm{display:flex;flex-direction:column;gap:18px;padding:24px 28px 64px;min-width:0;max-width:1440px}
@media (max-width:899px){
  .scm-menubtn{display:block}
  .scm.scm-top{padding:0 12px}
  .scm-brand .pm-app{margin-left:10px;padding-left:10px}
  .scm-frame{grid-template-columns:minmax(0,1fr)}
  .scm.scm-nav{position:fixed;top:60px;left:0;bottom:0;width:min(300px,86vw);height:auto;align-self:normal;z-index:45;transform:translateX(-105%);transition:transform .2s ease;box-shadow:none;background:#fff}
  body.scm-nav-open .scm.scm-nav{transform:none;box-shadow:12px 0 32px #0d17241f}
  .scm-nav .navbtn{min-height:44px}
  #scm{padding:16px 16px 48px}
}
@media (prefers-reduced-motion:reduce){.scm.scm-nav{transition:none}}

/* ---------- messages and the dialog kept for secrets ---------- */
.scm-modal{position:fixed;inset:0;background:#0d172466;z-index:1000;display:grid;place-items:center;padding:20px}
.scm-modal .dlg .body .fgrid{margin:0}
.scm-modal .dlg .problem{margin:0 0 4px}
.scm-toasts{position:fixed;bottom:18px;right:18px;z-index:1001;max-width:440px;display:flex;flex-direction:column;gap:8px}
.scm .secret{font-family:var(--font-mono);font-size:13px;padding:12px;background:var(--sunk);border:1px solid var(--line);border-radius:4px;overflow-wrap:anywhere;user-select:all}
.scm .busy{opacity:.55;pointer-events:none}
.scm .btn.busy{position:relative;opacity:.75}
.scm .btn.busy::after{content:"";display:inline-block;width:12px;height:12px;margin-left:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:scm-spin .8s linear infinite}
@keyframes scm-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.scm .btn.busy::after{animation-duration:2.4s}}
.scm .f.check{flex-direction:row;align-items:center;gap:8px}
.scm .f.check>span{font-size:13px}
.scm .small{font-size:12px}
.scm fieldset.checks{border:0;padding:0;margin:4px 0 8px;display:flex;flex-direction:column;gap:8px}
.scm fieldset.checks legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:6px}
.scm fieldset.checks label{min-height:32px}

/* ---------- forms are pages: a breadcrumb back, the title, the form card ---------- */
.scm .crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin:0 0 10px}
.scm .crumbs .link{font-size:12px}
.scm .crumbs [aria-current]{color:var(--ink);font-weight:500}
.scm .editor-card{border:1px solid var(--line);border-radius:6px;background:#fff;padding:20px 22px;display:flex;flex-direction:column;gap:14px}
.scm .editor-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.scm .editor-actions .btn:first-child{margin-right:auto}
.scm .form-page>.editor-card{max-width:760px}
.scm .form-page>.editor-card.wide{max-width:1100px}
.scm .form-page>.phead{margin-bottom:14px}
@media (max-width:700px){.scm .editor-card{padding:16px}}
/* required fields: an asterisk on the label; missing or refused fields outlined with a short message */
.scm .req{color:var(--bad);text-decoration:none;border:0;font-weight:600;cursor:help}
.scm .need{color:var(--warn);text-decoration:none;border:0;font-weight:600;cursor:help}
.scm .f.err input,.scm .f.err select,.scm .f.err textarea{border-color:var(--bad);box-shadow:0 0 0 2px #ac363622}
.scm .f .fmsg{color:var(--bad);font-size:12px}
.scm input::placeholder,.scm textarea::placeholder{color:#8a94a6;opacity:1}

/* ---------- tiles that open what they count, and charts drawn in HTML ---------- */
.scm .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:14px 0}
.scm .tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid var(--line);border-radius:6px;background:#fff;padding:12px 14px;cursor:pointer;transition:border-color .15s,box-shadow .15s;min-height:92px}
.scm .tile>span{font-size:12px;color:var(--muted)}
.scm .tile b{font-size:22px;font-weight:600;line-height:1.2}
.scm .tile small{font-size:12px;color:var(--muted)}
.scm .tile:hover,.scm .tile:focus-visible{border-color:var(--accent);box-shadow:0 2px 10px #0d172414}
.scm .tile.warn b{color:var(--warn)}
.scm .tile.bad b{color:var(--bad)}
.scm .charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin:6px 0 14px}
.scm .chart{margin:0;border:1px solid var(--line);border-radius:6px;background:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.scm .chart figcaption{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.scm .chart figcaption small{color:var(--muted);font-size:12px}
.scm .vbars{display:flex;align-items:flex-end;gap:6px;height:190px;padding-top:4px}
.scm .vb{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.scm .vb i{display:block;width:70%;max-width:38px;min-height:2px;background:var(--accent);border-radius:3px 3px 0 0}
.scm .vb .cv,.scm .vb .cl{font-size:11px;color:var(--muted);white-space:nowrap}
.scm .hbars{display:flex;flex-direction:column;gap:8px}
.scm .hb{display:grid;grid-template-columns:minmax(120px,44%) 1fr 64px;gap:10px;align-items:center;font-size:12px}
.scm .hb .hl{overflow-wrap:anywhere;line-height:1.3}
.scm .hb .hl small{display:block;color:var(--muted);font-size:11px}
.scm .hb .ht{height:10px;background:var(--sunk);border-radius:5px;overflow:hidden}
.scm .hb .ht i{display:block;height:100%;background:var(--accent);border-radius:5px}
.scm .hb .hv{text-align:right}
.scm .chart-data summary{font-size:12px;color:var(--accent);cursor:pointer}
.scm .chart-data table{margin-top:6px;font-size:12px}
@media (max-width:700px){.scm .vbars{height:150px}.scm .vb .cv{display:none}.scm .hb{grid-template-columns:1fr 64px}.scm .hb .ht{grid-column:1/-1;order:3}}
@media (prefers-reduced-motion:reduce){.scm .tile{transition:none}}

/* ---------- Getting started: the tour, first tasks, the tip on each page ---------- */
.scm .ob-tour{border:1px solid var(--line);border-radius:8px;background:#fff;margin:4px 0 18px;overflow:hidden}
.scm .ob-stepper{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line);background:var(--sunk)}
.scm .ob-stepper li{flex:1 1 140px}
.scm .ob-stepper .ob-sbtn{width:100%;border:0;border-radius:0;background:none;padding:12px 14px;text-align:left;font-size:13px;color:var(--muted);border-bottom:3px solid transparent;min-height:44px}
.scm .ob-stepper .done .ob-sbtn{color:var(--accent)}
.scm .ob-stepper .on .ob-sbtn{color:var(--ink);font-weight:600;border-bottom-color:var(--accent);background:#fff}
.scm .ob-stepper .ob-sbtn:hover,.scm .ob-stepper .ob-sbtn:focus-visible{color:var(--ink);background:#fff}
.scm .ob-body{padding:20px 22px 8px;max-width:980px}
.scm .ob-body h2{font-size:18px;margin:0 0 6px}
.scm .ob-body h3{font-size:14px;margin:0 0 6px}
.scm .ob-lead{font-size:15px;line-height:1.6;margin:0 0 16px;max-width:72ch}
.scm .ob-foot{font-size:13px;color:var(--muted);margin:14px 0 6px;max-width:80ch}
.scm .ob-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.scm .ob-cards>div{border:1px solid var(--line);border-radius:6px;padding:12px 14px;background:var(--sunk)}
.scm .ob-cards p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.scm .ob-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.scm .ob-cols ul,.scm .ob-map ul{margin:0;padding-left:18px;font-size:13px;line-height:1.6}
.scm .ob-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.scm .ob-map ul{list-style:none;padding:0}
.scm .ob-map li{margin:0 0 8px}
.scm .ob-map li span{display:block;color:var(--muted)}
.scm .ob-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.scm .ob-flow li{position:relative;border:1px solid var(--line);border-radius:6px;padding:12px 12px 10px;background:#fff}
.scm .ob-flow li b{display:block;font-size:14px;margin-top:6px}
.scm .ob-flow li em{display:block;font-style:normal;font-size:12px;color:var(--accent);margin:2px 0 4px}
.scm .ob-flow li p{margin:0;font-size:12px;color:var(--muted)}
.scm .ob-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px;font-weight:600}
.scm .ob-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 22px;border-top:1px solid var(--line);background:var(--sunk)}
.scm .ob-nav>span:last-child{display:flex;gap:8px;align-items:center}
.scm .ob-count{font-size:12px;color:var(--muted)}
.scm .ob-progress{display:flex;align-items:center;gap:12px;margin:2px 0 12px}
.scm .ob-bar{flex:1;max-width:420px;height:8px;border-radius:4px;background:var(--sunk);overflow:hidden}
.scm .ob-bar span{display:block;height:100%;background:var(--accent)}
.scm .ob-tasks{list-style:none;margin:0;padding:0}
.scm .ob-task{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:start;padding:12px 0;border-top:1px solid var(--line)}
.scm .ob-task:first-child{border-top:0}
.scm .ob-task .ob-tx b{font-size:14px}
.scm .ob-task .ob-tx p{margin:2px 0 0;font-size:13px;color:var(--muted);max-width:75ch}
.scm .ob-check{width:22px;height:22px;border-radius:50%;border:2px solid var(--line-strong);margin-top:1px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff}
.scm .ob-task.is-done .ob-check{background:var(--accent);border-color:var(--accent)}
.scm .ob-task.is-done .ob-check::after{content:"\2713"}
.scm .ob-task.is-done .ob-tx b{color:var(--muted)}
.scm .ob-task.is-skip{opacity:.7}
.scm .ob-ta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.scm .ob-tip,.scm .ob-banner{display:flex;gap:12px;align-items:center;border:1px solid #c9d8ee;background:var(--accent-soft);border-radius:6px;padding:10px 14px;margin:0}
.scm .ob-tip p{margin:0;flex:1;font-size:13px;line-height:1.5}
.scm .ob-i{flex:none;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font:600 13px/22px var(--font-ui);text-align:center;font-style:italic}
.scm .ob-banner{justify-content:space-between;padding:14px 16px}
.scm .ob-banner p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.scm .ob-banner.slim{padding:8px 14px}
@media (max-width:640px){
  .scm .ob-task{grid-template-columns:28px 1fr}
  .scm .ob-task .ob-ta{grid-column:2;justify-content:flex-start}
  .scm .ob-tip,.scm .ob-banner{flex-wrap:wrap}
  .scm .ob-tip .ob-ta{flex-basis:100%;justify-content:flex-start;padding-left:34px}
  .scm .ob-body{padding:16px}
  .scm .ob-nav{padding:12px 16px;flex-wrap:wrap}
}

/* ---------- the sign-in page: the Parkmed wordmark, a plain card, Parkmed blue ---------- */
.t-PageBody--login{background:#f4f6f9!important;background-image:none!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.t-PageBody--login .t-Login-region{background:#fff!important;border:1px solid #dde2ea!important;border-radius:10px!important;box-shadow:0 1px 2px #0d17240f!important}
.t-PageBody--login .t-Login-header{display:flex;flex-direction:column;align-items:center;gap:10px}
.t-PageBody--login .t-Login-logo{background:none!important;box-shadow:none!important;width:auto!important;height:auto!important;border-radius:0!important;font:700 26px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;letter-spacing:-.3px}
.t-PageBody--login .t-Login-logo::before{content:"Park";color:#55ae65;font:inherit}
.t-PageBody--login .t-Login-logo::after{content:"med";color:#2a62a9;font:inherit}
.t-PageBody--login .t-Login-title{font:600 18px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;color:#0d1724!important;letter-spacing:0}
.t-PageBody--login .t-Button--hot,.t-PageBody--login .t-Login-buttons .t-Button{background:#2a62a9!important;border-color:#2a62a9!important;color:#fff!important;border-radius:6px!important;box-shadow:none!important;min-height:44px}
.t-PageBody--login .t-Button--hot:hover{background:#21508c!important}
.t-PageBody--login .t-Form-field{border-radius:6px!important}
.t-PageBody--login{--ut-focus-outline-color:#2a62a9;--a-field-input-focus-border-color:#2a62a9}
.t-PageBody--login .apex-item-text,.t-PageBody--login .apex-item-checkbox input{outline-color:#2a62a9!important}
.t-PageBody--login input:focus,.t-PageBody--login .t-Form-field:focus{border-color:#2a62a9!important;box-shadow:inset 0 0 0 1px #2a62a9!important;outline:2px solid #2a62a9!important;outline-offset:2px}
.t-PageBody--login input[type=checkbox]:focus-visible+label,.t-PageBody--login .t-Button:focus-visible{outline:2px solid #2a62a9!important;outline-offset:2px}
.t-PageBody--login a{color:#2a62a9}
/* APEX's own error page (for example a page that is not part of the person's role): a plain card, no red icon */
.t-PageBody--login .t-Alert--wizard .t-Alert-icon{display:none!important}
.t-PageBody--login .t-Alert--wizard{background:#fff!important;border:1px solid #dde2ea!important;border-radius:10px!important;box-shadow:0 1px 2px #0d17240f!important}
.t-PageBody--login .t-Alert-errorTitle{font:600 18px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important;color:#0d1724!important}
.t-PageBody--login .t-Alert--wizard .t-Alert-body p{color:#536076!important}

@media print{.scm-top,.scm-nav,.scm-toasts{display:none!important}.scm-frame{display:block}#scm{padding:0}}

/* ---------- Home: the morning sheet (DESIGN-BRIEF.md section 3): bands that follow the person's team and work areas ---------- */
.scm .ms{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.scm .ms-band{border:1px solid var(--line);border-radius:6px;display:grid;grid-template-columns:200px 1fr}
.scm .ms-head{padding:12px 14px;border-right:1px solid var(--line);background:#fafbfc;display:flex;flex-direction:column;gap:4px;border-radius:6px 0 0 6px}
.scm .ms-head h2{font-size:16px}
.scm .ms-body{padding:12px 16px;display:flex;flex-direction:column;gap:6px}
.scm .ms-none{font-size:14px}
.scm .ms-what{font-size:12px;color:var(--muted);max-width:80ch}
.scm .ms-what b{color:var(--ink);font-weight:600}
@media (max-width:700px){.scm .ms-band{grid-template-columns:1fr}.scm .ms-head{border-right:0;border-bottom:1px solid var(--line);border-radius:6px 6px 0 0}}
.scm fieldset.checks label small{display:block;font-size:12px;color:var(--muted)}
.scm fieldset.checks label{align-items:flex-start}
.scm fieldset.checks label input{margin-top:3px}
/* M2: section headings inside a form page */
.scm .editor-card h3{margin:22px 0 10px;font-size:16px}
.scm .editor-card > h3:first-child{margin-top:0}
.scm .ms-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid #eef1f6;font-size:14px}
.scm .ms-line b{font-size:16px}

/* Long lists (14 Oct 2026): dense tables whose headers sort, pages of 50, rows that open their record, Previous / Next on
   the record (scm_h.grid_open, grid_row, rowlink, sorth, pager, detail_bar). Spec: docs/design/DENSE-DATA-UI.md.
   Rows 35px (one line) or 52px (two); numbers right-aligned in tabular figures; codes and locators in the mono face;
   the header sticks under the 60px top bar from 1200px, where every list fits the page. */
.scm .tbl-wrap:has(> table.grid){border-top:0}
.scm table.grid{border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.4}
.scm table.grid th,.scm table.grid td{padding:7px 10px;vertical-align:top}
.scm table.grid thead th{background:#fafbfc;color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap;vertical-align:bottom;border-bottom:0;box-shadow:inset 0 -1px var(--line-strong)}
.scm table.grid td.mono{line-height:20px}
.scm table.grid td small{display:block;margin-top:1px;font-size:12px;line-height:1.35;color:var(--muted);max-width:46ch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.scm small.inline,.scm table.grid td small.inline{display:inline;margin:0 0 0 4px}
.scm table.grid td small.wrap{white-space:normal;max-width:40ch}
.scm table.grid td.nowrap,.scm table.grid td.num,.scm table.grid td.r,.scm table.grid th.r{width:1%;white-space:nowrap}
.scm table.grid td:has(> .rowlink){min-width:13rem}
.scm table.grid td:has(> .rowlink.mono),.scm table.grid td:has(> .rowlink.loc){min-width:0;width:1%;white-space:nowrap}
.scm table.grid td.sub{padding-left:26px}
.scm table.grid td .btn.sm{min-height:26px;padding:2px 8px}
.scm table.grid td .btn.link{min-height:0;padding:0;font-size:12px}
.scm table.grid td .btn.link+.btn.link{margin-left:12px}
/* a header that sorts: the button fills the cell (WAI-ARIA sortable table); in a number column the arrow sits left of the label */
.scm table.grid th:has(> .sortb){padding:0}
.scm .sortb{display:flex;align-items:center;gap:4px;width:100%;min-height:34px;padding:8px 10px;border:0;border-radius:0;background:none;color:var(--muted);font:500 12px/1.3 var(--font-ui);text-align:left;white-space:nowrap;cursor:pointer}
.scm th.r>.sortb{flex-direction:row-reverse;justify-content:flex-start;text-align:right}
.scm .sortb:hover{background:var(--sunk);color:var(--ink)}
.scm .sortb:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:var(--sunk);color:var(--ink)}
.scm .sortb.on{color:var(--ink);font-weight:600}
.scm .sorti{display:inline-block;width:10px;flex:none;text-align:center;color:var(--accent);font-weight:600}
.scm .sortb:not(.on) .sorti::before{content:"\2195";color:#7a8497;visibility:hidden}
.scm .sortb:not(.on):hover .sorti::before,.scm .sortb:not(.on):focus-visible .sorti::before{visibility:visible}
/* a row that opens its record: the whole row is the target; the name (rowlink) is the keyboard's way in */
.scm tr.grow{cursor:pointer}
.scm tr.grow:hover>td{background:var(--sunk)}
.scm tr.grow.sel>td,.scm tr.grow:has(.rowlink:focus-visible)>td{background:var(--accent-soft)}
.scm .rowlink{display:inline;padding:0;margin:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:550;line-height:inherit;text-align:left;cursor:pointer}
.scm .rowlink:hover,.scm tr.grow:hover .rowlink,.scm .rowlink:focus-visible{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.scm .rowlink:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}
.scm .rowlink.mono{font-family:var(--font-mono);font-size:12px;font-weight:600}
/* the locator: rack and box, drawn like the label on the shelf (R1-B1); grey, never blue, so it reads on a selected row too */
.scm .loc{display:inline-block;padding:0 5px;border:1px solid #8494ab;border-radius:3px;background:var(--sunk);color:var(--ink);font:600 12px/18px var(--font-mono);letter-spacing:.02em;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums slashed-zero}
.scm .loc.big{font-size:16px;line-height:24px;padding:0 8px}
.scm .rowlink.loc:hover,.scm tr.grow:hover .rowlink.loc,.scm .rowlink.loc:focus-visible{border-color:var(--accent);color:var(--accent);text-decoration:none}
.scm .loc-none{color:var(--warn);font-size:12px;white-space:nowrap}
.scm .warnt{color:var(--warn);font-weight:500}
/* a rack of boxes divided into slots: one row per box, its slots side by side (Stores, Locators) */
.scm table.grid td.g-slot{width:26%;max-width:0}
.scm .g-slot-in{display:flex;align-items:baseline;gap:8px;min-width:0}
.scm .g-slot-in>.loc{flex:none}
.scm .g-slot-in>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.scm table.grid td.g-slot.g-hit{background:var(--accent-soft)}
/* the count above a list, the total, the page buttons below it */
.scm .grid-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;margin-bottom:-10px}
.scm .grid-meta b{color:var(--ink);font-weight:600}
.scm .grid-meta:focus{outline:none}
.scm .grid-meta:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scm .total-line{margin-top:-10px;font-variant-numeric:tabular-nums}
.scm .pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:-8px}
.scm .pager>p{font-variant-numeric:tabular-nums}
.scm .pager nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.scm .pg{min-width:32px;height:32px;padding:0 10px;border:1px solid var(--line-strong);border-radius:4px;background:#fff;color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums;cursor:pointer}
.scm .pg:hover{background:var(--sunk);border-color:#8494ab}
.scm .pg.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600;cursor:default}
.scm .pgsep{min-width:18px;text-align:center;color:var(--muted)}
.scm .filterbar input[type=search]{min-width:22rem}
.scm .grow-gap{flex:1 1 0;min-width:0}
.scm .dtabs{margin:14px 0 12px}
.scm input::placeholder,.scm textarea::placeholder{color:#687388}
/* a record opened from a list: Back to list, where it is, Previous and Next stay in reach while the record scrolls */
.scm .detail-toolbar.detail-nav{position:sticky;top:60px;z-index:30;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;background:#fff;padding:8px 0;margin-top:-8px}
.scm .detail-nav ~ .detail-nav{position:static;margin-top:0}
.scm .detail-nav .row{gap:6px}
.scm .detail-nav .muted{font-variant-numeric:tabular-nums;margin-right:6px}
@media (min-width:1200px){
  .scm .tbl-wrap:has(> table.grid){overflow:visible}
  .scm table.grid thead th{position:sticky;top:60px;z-index:3}
  .scm .detail-nav ~ .tbl-wrap table.grid thead th{top:112px}
}
@media (pointer:coarse){.scm .pg{min-width:44px;height:44px}.scm .sortb{min-height:44px}}
@media (max-width:699px){
  /* R-032: a key cell that starts with a code (.rowlink.mono or .loc) keeps its desktop width:1% otherwise and shrinks to a few pixels */
  .scm table.grid.gstack td:has(> .rowlink.mono),.scm table.grid.gstack td:has(> .rowlink.loc){width:auto;white-space:normal}
  /* R-036: a button in a stacked list (Approve, Not approved, Edit) is a thumb's size, 44px tall, on a phone */
  .scm table.grid.gstack td .btn{min-height:44px;padding-top:0;padding-bottom:0}
  .scm .filterbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .scm .filterbar>label{display:block;min-width:0}
  .scm .filterbar>label:has(input[type=search]){grid-column:1/-1;order:-1}
  .scm .filterbar select,.scm .filterbar input[type=search]{width:100%;max-width:none;min-width:0}
  .scm .filterbar>.btn{width:100%}
  .scm .filterbar .grow-gap{display:none}
  .scm .pg.far{display:none}
  /* phone: a list whose cells carry their labels (scm_h.gc) stacks each row: the key cell (g-k) and its top-right partner (g-kr, usually the locator), then labelled cells */
  .scm table.grid.gstack,.scm table.grid.gstack tbody{display:block}
  .scm table.grid.gstack thead{display:block}
  .scm table.grid.gstack thead tr{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px 0;border-bottom:1px solid var(--line)}
  .scm table.grid.gstack thead tr::before{content:"Sort by";content:"Sort by" / "";flex:none;font-size:12px;color:var(--muted)}
  .scm table.grid.gstack thead th{display:block;flex:none;padding:0;background:none;box-shadow:none}
  .scm table.grid.gstack thead th.g-x{display:none}
  .scm table.grid.gstack thead tr:not(:has(.sortb)){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
  .scm table.grid.gstack thead th:not(:has(> .sortb)){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .scm table.grid.gstack .sortb{min-height:36px;padding:6px 12px;border:1px solid var(--line-strong);border-radius:18px;background:#fff}
  .scm table.grid.gstack .sortb.on{border-color:var(--accent);color:var(--accent)}
  .scm table.grid.gstack th.r>.sortb{flex-direction:row}
  .scm table.grid.gstack tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
  .scm table.grid.gstack tbody td{display:block;width:auto;min-width:0;padding:0;border:0;background:none;white-space:normal;text-align:left}
  .scm table.grid.gstack td.g-k{grid-column:1/3;grid-row:1}
  .scm table.grid.gstack td.g-kr{grid-column:3;grid-row:1;justify-self:end;text-align:right}
  .scm table.grid.gstack td.g-wide{grid-column:1/-1}
  .scm table.grid.gstack td.g-k:not(:has(~ td.g-kr)){grid-column:1/-1}
  .scm table.grid.gstack td[data-th]::before{content:attr(data-th);content:attr(data-th) / "";display:block;font-size:12px;color:var(--muted)}
  .scm table.grid.gstack td.g-x,.scm table.grid.gstack td:empty{display:none}
  .scm table.grid.gstack td small{max-width:none;white-space:normal}
  .scm table.grid.gstack td.g-slot{grid-column:1/-1;width:auto;max-width:none}
  .scm table.grid.gstack tr.grow:hover,.scm table.grid.gstack tr.grow.sel{background:var(--sunk)}
}
@media print{.scm table.grid thead th{position:static}.scm .pager nav,.scm .detail-nav{display:none}.scm tr.grow{break-inside:avoid}}
