:root { --brand-accent:#b74700; }
html,body { min-width:0; }
button,a,input,select,textarea { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
img { max-width:100%; }
.text-brand-orange { color:var(--brand-accent); }
.text-slate-400,.text-slate-500 { color:#475569; }
.text-amber-600,.text-amber-700 { color:#78350f; }
.text-emerald-600 { color:#065f46; }
.text-red-500,.text-red-600 { color:#b91c1c; }
.bg-emerald-600 { background-color:#047857; }
.bg-brand-orange { background-color:var(--brand-accent); }
.shadow-xs { box-shadow:0 1px 2px #0000000d; }
.backdrop-blur-xs { backdrop-filter:blur(2px); }
[id$="-modal"] { align-items:flex-start!important; padding:1rem; }
[id$="-modal"] > div { margin:1rem auto; }
#product-modal > div { width:100%; }
header .flex.items-center.justify-between { min-width:0; }
header a.group { min-width:0; flex:1; }
#brand-title-text,#brand-subtitle-text,#admin-brand-name,#admin-brand-subtitle { overflow-wrap:anywhere; }
#header-panel-title,#header-panel-sub { overflow-wrap:anywhere; }
header a.group img { max-width:48px; flex-shrink:0; }
.call-card,.utility-card { border:1px solid #cbd5e1; border-radius:16px; padding:16px; background:white; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.field input,.field select,.field textarea { min-width:0; width:100%; padding:10px 12px; border:1px solid #94a3b8; border-radius:8px; background:#f8fafc; color:#0f172a; }
.field input[type=color] { height:44px; padding:4px; cursor:pointer; }
.action { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:8px; color:white; background:#0f172a; font-weight:600; gap:8px; }
.action:disabled { opacity:.6; cursor:wait; }
.action.secondary { color:#0f172a; background:#e2e8f0; }
.notice { padding:12px; border-radius:8px; background:#f1f5f9; font-size:14px; white-space:pre-line; overflow-wrap:anywhere; }
.notice.error { background:#fef2f2; color:#991b1b; }
.notice.ok { background:#ecfdf5; color:#065f46; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.utility-card h2,.call-card h2 { font-size:18px; font-weight:700; margin-bottom:12px; }
.data-table { width:100%; border-collapse:collapse; font-size:14px; }
.data-table th,.data-table td { padding:8px; border-bottom:1px solid #e2e8f0; text-align:left; }
.table-scroll { overflow:auto; }
@media(max-width:639px) {
    #admin-app header > div > div { height:auto!important; flex-wrap:wrap; padding-block:12px; gap:12px; }
    #admin-app header > div > div > div:last-child { flex-wrap:wrap; gap:8px; }
    #admin-app header > div > div > div:first-child { max-width:100%; }
    #admin-app header span { overflow-wrap:anywhere; }
    #table-badge { display:none!important; }
    header a.group { gap:8px; }
    #brand-title-text { font-size:14px; }
    #brand-subtitle-text { font-size:10px; }
    #brand-subtitle-text { max-width:130px; }
    #menu-container button.group { padding:12px; gap:12px; text-align:left; width:100%; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print {
    .no-print,header,footer,.actions { display:none!important; }
    body { background:white!important; color:black; padding:0!important; }
    .print-menu article { break-inside:avoid; border-bottom:1px solid #ddd; padding:12px 0; }
    .print-menu section { margin-block:20px; }
    .print-menu h2 { font-size:20px; font-weight:bold; }
    .qr-card { break-inside:avoid; text-align:center; border:1px solid #aaa; padding:20px; }
    body:has(#qr-modal:not(.hidden)) > * { display:none!important; }
    body:has(#qr-modal:not(.hidden)) #qr-modal { display:block!important; position:static; background:white; padding:0; }
    #qr-modal button,#qr-modal input,#qr-modal label,#qr-modal p { display:none!important; }
    #qr-modal > div { box-shadow:none; border:0; }
    body.printing-qr-cards > * { display:none!important; }
    body.printing-qr-cards #utility-modal { display:block!important; position:static; background:white; padding:0; }
    body.printing-qr-cards #utility-modal > div { border:0; box-shadow:none; }
    body.printing-qr-cards #utility-title,body.printing-qr-cards #utility-message,body.printing-qr-cards .notice { display:none!important; }
}
/* Components that set display (flex/grid) must still honour the .hidden utility. */
.field.hidden,.actions.hidden,.form-grid.hidden,.call-types.hidden { display:none; }
