/* SpiceRack Ticket Viewer — the mockup's stylesheet (owner-approved
   layout, Nov 27, 2026), extended with the login box and the panel
   table's total-cell styling. Palette matches the closing tools:
   navy #00246C, indigo #363670, gold #FEBD11, teal #21C3C6. */
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:#F1F8E9; color:#1a1a1a; }
.wrap { max-width: 920px; margin: 0 auto; padding: 10px 10px 26px; }

/* Ribbon 1 — masthead */
.masthead { background:#00246C; border-radius:10px; padding:12px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.brand { color:#fff; line-height:1.05; }
.brand .b1 { font-size:24px; font-weight:800; letter-spacing:.5px; }
.brand .b2 { font-size:14px; font-weight:700; color:#FEBD11; letter-spacing:2px; }
.mast-right { margin-left:auto; display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.datepill { background:#FEBD11; color:#00246C; border:3px solid #00246C; outline:2px solid #FEBD11; border-radius:999px; padding:5px 16px; font-size:16px; font-weight:800; white-space:nowrap; }
.logininfo { color:#dbe6ff; font-size:13px; }
.logininfo b { color:#fff; }

/* Ribbons 2–4 */
.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; }
.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:18px; font-weight:800; }
.dbtn { background:#fff; border:2px solid #00246C; color:#00246C; border-radius:8px; font-size:15px; font-weight:700; padding:6px 13px; cursor:pointer; text-decoration:none; display:inline-block; }
.datefield { background:#F8BBD0; border:2px solid #00246C; border-radius:8px; font-size:15px; font-weight:700; color:#00246C; padding:6px 10px; text-align:center; min-width:150px; }
.logoutbtn { margin-left:auto; background:#B21428; border-color:#B21428; color:#fff; }
.tabbtn { background:#fff; border:2px solid #363670; color:#363670; border-radius:8px; font-size:15px; font-weight:700; padding:6px 16px; cursor:pointer; text-decoration:none; display:inline-block; }
.tabbtn.active { background:#363670; color:#fff; }

/* Ticket panel */
.panel { margin-top:12px; background:#fff; border:3px solid #00246C; border-radius:10px; overflow:hidden; }
.panelhead { background:#363670; color:#fff; padding:9px 14px; display:flex; flex-wrap:wrap; gap:4px 14px; align-items:baseline; }
.panelhead .t { font-size:18px; font-weight:800; }
.panelhead .c { font-size:14px; color:#FEBD11; font-weight:700; }
table { width:100%; border-collapse:collapse; table-layout:fixed; }
th { background:#00246C; color:#FEBD11; font-size:13px; padding:8px 6px; text-align:right; }
th.l, td.l { text-align:left; }
td { font-size:15px; padding:8px 6px; text-align:right; border-top:1px solid #d7dee8; word-wrap:break-word; }
td.name { font-weight:700; color:#3C2923; }
td.rowtot { font-weight:800; color:#3C2923; }
tr.tot td { background:#C78F68; color:#3C2923; font-weight:800; border-top:3px solid #00246C; }
.empty { padding:18px 14px; font-size:15px; color:#555; margin:0; }
.note { margin-top:12px; font-size:13px; color:#444; text-align:center; }

/* Login */
.loginwrap { display:flex; justify-content:center; margin-top:26px; }
.loginbox { background:#fff; border:3px solid #00246C; border-radius:10px; padding:22px 24px; width:100%; max-width:420px; }
.loginbox h1 { font-size:20px; margin:0 0 14px; color:#00246C; }
.loginbox label { display:block; font-size:14px; font-weight:700; margin:12px 0 4px; }
.loginbox input { width:100%; font-size:16px; padding:9px 10px; border:2px solid #9DB2D5; border-radius:8px; }
.loginbtn { width:100%; margin-top:18px; background:#00246C; color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:800; padding:11px; cursor:pointer; }
.err { background:#fdecea; border:2px solid #B21428; color:#B21428; border-radius:8px; padding:9px 12px; font-weight:700; font-size:14px; }
.loginbox .note { text-align:left; }

@media (max-width:560px) {
  .brand .b1 { font-size:20px; }
  .datepill { font-size:14px; }
  .ribbonlabel { min-width:88px; font-size:14px; }
  td { font-size:13px; } th { font-size:11px; }
}
