/* SpiceRack Clover Updates — ported from the owner's approved
   mockup v3 (Nov 28, 2026); same palette as the closing tools and
   the ticket viewer. */
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,'Segoe UI','Helvetica Neue',Arial,sans-serif; background:#F1F8E9; color:#111; }
.wrap { max-width:920px; margin:0 auto; padding:10px; }

.masthead { background:#00246C; border-radius:12px; padding:16px 20px 13px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.mast-left { flex:1 1 0; }
.mast-center { flex:0 1 auto; text-align:center; }
.brand { color:#fff; font-size:30px; font-weight:800; letter-spacing:2px; line-height:1; }
.brandsub { display:inline-block; background:#FFFFFF; color:#C2185B; font-size:14px; font-weight:800; letter-spacing:4px; padding:6px 18px; border-radius:999px; white-space:nowrap; }
.refreshpill { display:inline-block; background:#FFFFFF; color:#00246C; font-size:12.5px; font-weight:800; letter-spacing:1px; padding:4px 14px; border-radius:999px; margin-top:8px; white-space:nowrap; }
.mast-right { flex:1 1 0; text-align:right; }
.datepill { display:inline-block; background:#C2185B; color:#fff; border:3px solid #00246C; outline:2px solid #C2185B; border-radius:999px; font-size:16px; font-weight:800; padding:7px 18px; }
.loggedin { color:#fff; font-size:13px; margin-top:8px; }
.loggedin b { font-size:14px; }

.ribbonstack { background:#B21428; margin-top:10px; padding-bottom:10px; }
.ribbon { background:#EFF7EF; border:3px solid #00246C; border-radius:10px; margin-top:10px; padding:8px 10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ribbonstack .ribbon:first-child { margin-top:0; }
.ribbonlabel { background:#B21428; color:#fff; font-weight:800; font-size:15px; padding:7px 10px; border-radius:6px; min-width:110px; text-align:center; }
.ribbonarrow { color:#B21428; font-size:15px; }
.ribbonlabel.displ { background:#1E7B34; }
.ribbonarrow.displ { color:#1E7B34; }
.tabbtn { font:inherit; font-size:15px; font-weight:800; letter-spacing:.5px; padding:7px 18px; border-radius:9px; border:3px solid #363670; background:#fff; color:#363670; cursor:pointer; }
.tabbtn.active { background:#363670; color:#fff; }
.logoutbtn { background:#B21428; color:#fff; font-size:14px; font-weight:800; padding:8px 16px; border-radius:8px; text-decoration:none; margin-left:auto; }

.catbar { margin-top:12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.catbar label { font-weight:800; font-size:15px; color:#00246C; }
.catbar select { font:inherit; font-size:16px; font-weight:700; padding:10px 12px; border:3px solid #00246C; border-radius:10px; background:#FEBD11; color:#00246C; flex:1; min-width:240px; }
.note { font-size:13.5px; color:#444; margin:10px 2px 0; }
/* Big empty-state box (owner, Nov 29, 2026): when nothing is
   turned off, say so BIG in a box instead of a small line. */
.nonebox { border:3px solid #00246C; border-radius:12px; background:#EFF7EF; color:#00246C; font-size:30px; font-weight:800; letter-spacing:1px; text-align:center; padding:30px 16px; margin-top:18px; }
.cathead { background:#000; color:#fff; font-size:16px; font-weight:800; letter-spacing:1px; padding:8px 14px; border-radius:8px; margin-top:18px; }
.item .cat { color:#5A6B84; font-size:13px; font-weight:700; margin-top:2px; }
.cattable { width:100%; border-collapse:collapse; margin-top:12px; background:#fff; border:3px solid #00246C; }
.cattable th { background:#00246C; color:#fff; text-align:left; font-size:14px; letter-spacing:1px; padding:9px 14px; }
.cattable th:last-child { text-align:right; }
.cattable td { padding:9px 14px; font-weight:700; font-size:15.5px; border-top:1px solid #D8E2D0; }
.cattable td:last-child { text-align:right; }
.catbox { border:3px solid #00246C; border-radius:12px; padding:4px 12px 12px; margin-top:18px; }
.catbox .cathead { margin-top:6px; }

.item { background:#fff; border:3px solid #00246C; border-radius:10px; margin-top:10px; padding:12px 14px; }
.item .top { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.item .nm { font-size:17px; font-weight:700; flex:1 1 220px; }
.item .pr { color:#555; font-size:14px; font-weight:700; }
.switches { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }
.sw { display:flex; align-items:center; gap:8px; background:#EFF7EF; border:2px solid #C9D6C9; border-radius:10px; padding:7px 12px; }
.sw .lb { font-size:13.5px; font-weight:800; color:#00246C; }
.tgl { position:relative; width:52px; height:28px; flex:0 0 auto; }
.tgl input { opacity:0; width:0; height:0; }
.tgl .tr { position:absolute; inset:0; background:#B21428; border-radius:999px; cursor:pointer; transition:.15s; }
.tgl .tr:before { content:''; position:absolute; width:22px; height:22px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.15s; }
.tgl input:checked + .tr { background:#1E7B34; }
.tgl input:checked + .tr:before { transform:translateX(24px); }
.swstate { font-size:12px; font-weight:800; letter-spacing:.5px; min-width:26px; }
.updbtn { font:inherit; font-size:14.5px; font-weight:800; padding:8px 20px; border-radius:9px; border:3px solid #00246C; background:#fff; color:#00246C; cursor:pointer; margin-top:10px; }
.updbtn:disabled { opacity:.35; cursor:default; }
.updbtn.done { background:#1E7B34; border-color:#1E7B34; color:#fff; opacity:1; }
/* Turn off stores (Amendment 38 follow-up, owner Nov 29, 2026):
   the four system switches share ONE box — rows after the first
   get a divider line. */
.sysrow + .sysrow { border-top:2px solid #D8E2D0; margin-top:14px; padding-top:12px; }
.updstatus { margin-top:10px; font-size:13.5px; font-weight:800; color:#1E7B34; }
.updstatus.applying { color:#8a6d00; }
.updstatus.failed { color:#B21428; }
.pill { font-size:12px; font-weight:800; letter-spacing:.5px; padding:4px 11px; border-radius:999px; white-space:nowrap; }
.pill.on { background:#1E7B34; color:#fff; }
.pill.off { background:#B21428; color:#fff; }
.pill.na { background:#8A8A90; color:#fff; }

.panel { background:#fff; border:3px solid #00246C; border-radius:12px; margin-top:14px; overflow:hidden; }
.panelhead { background:#363670; color:#fff; font-size:18px; font-weight:800; padding:11px 16px; }
.panelhead .c { color:#FEBD11; font-size:14.5px; margin-left:12px; }
table.q { width:100%; border-collapse:collapse; font-size:14.5px; }
table.q th { background:#00246C; color:#fff; text-align:left; padding:8px 10px; font-size:12.5px; text-transform:uppercase; letter-spacing:.5px; }
table.q td { padding:8px 10px; border-top:2px solid #D8D8DE; vertical-align:top; }
.st { font-size:12px; font-weight:800; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.st.queued { background:#FEBD11; color:#00246C; }
.st.done { background:#1E7B34; color:#fff; }
.st.part { background:#E07B00; color:#fff; }
.st.failed { background:#B21428; color:#fff; }

.loginwrap { display:flex; justify-content:center; margin-top:26px; }
.loginbox { background:#fff; border:3px solid #00246C; border-radius:12px; padding:22px 24px; width:100%; max-width:420px; }
.loginbox h1 { font-size:20px; color:#00246C; margin:0 0 14px; }
.loginbox label { display:block; font-weight:800; font-size:13.5px; color:#00246C; margin:12px 0 5px; }
.loginbox input { width:100%; font:inherit; font-size:16px; padding:10px 12px; border:2px solid #00246C; border-radius:9px; }
.loginbtn { width:100%; margin-top:18px; font:inherit; font-size:16px; font-weight:800; padding:11px; border-radius:9px; border:3px solid #00246C; background:#00246C; color:#fff; cursor:pointer; }
.err { background:#FDECEA; border:2px solid #B21428; color:#B21428; font-weight:700; font-size:14px; border-radius:9px; padding:9px 12px; }
.foot { text-align:center; color:#555; font-size:13px; margin:16px 0 6px; }
@media (max-width:700px) { .brand { font-size:24px; } .ribbonlabel { min-width:88px; } }

/* Syncing screen (refresh-on-login) */
.spinner { width: 38px; height: 38px; margin: 6px auto 14px; border-radius: 50%;
  border: 4px solid #f3c6d3; border-top-color: #C2185B;
  animation: updspin 0.9s linear infinite; }
@keyframes updspin { to { transform: rotate(360deg); } }

/* Brand line names both stores (owner, Nov 28, 2026): this site
   serves Frisco AND Plano, so the brand reads SPICERACK FRISCO /
   PLANO, each store highlighted on gold like the closing tools. */
.brand .storehl { background:#FEBD11; color:#00246C; padding:1px 12px; border-radius:999px; }

/* Date text inside the pink oval is left-aligned (owner,
   Nov 28, 2026) — the wrapped lines start at the same edge. */
.datepill { text-align:left; }

/* Dual-store brand fit (owner screenshot Nov 28, 2026 — the brand
   wrapped mid-line, "garbled"): the brand takes its own full line
   at every width, and on phones it steps down so SPICERACK
   FRISCO / PLANO stays on one line. */
.mast-left { flex-basis:100%; }
@media (max-width:700px) {
  .brand { font-size:19px; letter-spacing:1px; }
  .brand .storehl { padding:1px 8px; }
}
