/* Kolory Planszowego Raju: granat, słoneczna żółć i błękit. */
.tabs{overflow-x:auto}
.customer-dialog{width:min(650px,100%)}.customer-cart-row,.order-line{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.customer-cart-row img,.order-line img{width:54px;height:76px;object-fit:contain;flex:none}.customer-cart-row>div,.order-item-description{flex:1;min-width:0}.customer-cart-row small,.order-line small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin:4px 0}.customer-cart-row .btn{flex:none}.customer-dialog .btn,.order-actions .btn{min-height:46px}.customer-choice{width:100%;display:flex;justify-content:space-between;text-align:left;margin:8px 0;padding:14px}.customer-choice small{display:block;margin-top:6px}.customer-name-label{display:block;font-weight:700;margin:18px 0 4px}#submitCustomerOrder{width:100%;margin:12px 0}#clearCustomerCart{width:100%}.order-error{color:var(--red)!important}.order-success{text-align:center;padding:28px 8px}.order-success>strong{display:block;font:800 64px 'Barlow Condensed';color:var(--blue);margin:12px}.order-success .btn{width:100%;margin-top:16px}.order-card{border-left:4px solid #05a4e1}.order-card h3{font-size:27px;margin-top:8px}.order-actions{display:flex;gap:10px;flex-wrap:wrap}.order-line input{display:block;width:145px;margin-top:5px}.order-line>div:last-child{text-align:right}.order-line label{display:block}.order-preparing{background:#715400;color:#ffe291}.order-fulfilled{background:#17472d;color:#b4f3ce}.order-cancelled{background:#51242e;color:#ffd1d8}.order-history{margin-top:26px}.order-history summary{cursor:pointer;padding:14px 0;font-weight:700}#ordersView h2{margin:0;font:700 34px 'Barlow Condensed'}#ordersCount{display:inline-block;margin-left:5px;border-radius:12px;background:var(--blue);color:var(--bg);padding:2px 7px}.add{min-width:44px;min-height:44px}
@media(max-width:600px){.customer-cart-row,.order-line{gap:9px;flex-wrap:wrap}.order-line>div:last-child{margin-left:auto}.order-actions .btn{flex:1 1 130px}.customer-dialog{padding:18px}.order-card .boxhead{align-items:flex-start}.customer-cart-row img{width:42px;height:58px}}
@media print{#ordersView{display:none!important}}
.stats.public-stats{grid-template-columns:minmax(0,1fr)}
:root{--bg:#04142c;--panel:#091e39;--panel2:#102b48;--line:#25425e;--muted:#a0b4c9;--text:#f6f9ff;--blue:#ffcf24;--blue2:#ffb900;--green:#8fd74a;--gold:#ffcf24}
html[data-theme="light"]{--bg:#fffdf4;--panel:#fff;--panel2:#fff5cf;--line:#d9e0e7;--muted:#526479;--text:#061b38;--blue:#896000;--blue2:#9d6900;--green:#35751b;--gold:#986300}
.top{background:#04142c;border-bottom:2px solid #ffcf24;min-height:90px}
.brand h1{font-size:23px;letter-spacing:.8px}.brand h1 span{display:block;font-size:14px;letter-spacing:3px;margin-top:3px}.brand small{font-size:9px;letter-spacing:1.3px}
.brandmark{width:64px;height:64px}
.brandmark img{border-radius:50%;background:white}.hero-art img{width:170px;height:170px;object-fit:contain;border-radius:50%;background:white}
.btn.primary,html[data-theme="light"] .btn.primary{background:linear-gradient(110deg,#ffdc44,#ffbe00);color:#04142c;box-shadow:0 3px 12px #ffcf2414}
.btn.primary:hover,html[data-theme="light"] .btn.primary:hover{background:#ffe16a}
.btn{background:var(--panel2)}.btn:hover{background:#183955}
.add{background:#049cd7;color:#fff}.card:hover{border-color:#05a4e1}
.hero{padding:22px 0 28px;border-bottom:1px solid var(--line)}
.hero h2{font-size:clamp(38px,5vw,64px)}
.hero-art{display:flex;gap:18px;align-items:center;font-size:68px;filter:none;opacity:1;color:#ffcf24;padding-right:24px}
.hero-art strong{font:800 30px/.95 'Barlow Condensed',sans-serif;color:var(--text);letter-spacing:1px}
.hero-single{display:block;font:600 12px 'DM Sans',sans-serif;letter-spacing:5px;color:#05ace5;margin-top:10px}
.badge{background:#063e59;color:#8de5ff}.stat strong{color:var(--blue)}
.art{background:radial-gradient(ellipse at 50% 80%,#049bd533,transparent 65%),linear-gradient(135deg,#12304d,#04142c 72%)}
html[data-theme="light"] .top{background:#fff}
html[data-theme="light"] .topnav button.active{border-bottom-color:#edb900}
html[data-theme="light"] .hero-art{color:#edb900}
html[data-theme="light"] .badge{background:#e0f5ff;color:#096187}
@media(max-width:700px){.brand h1{font-size:19px}.brandmark{width:54px;height:54px}.hero{padding-top:4px}.hero-art{display:none}.brand small{font-size:8px}}
@media print{.stat strong{color:#111}}
.customer-choice.customer-choice-added{border-color:#38c58b;background:rgba(56,197,139,.14)}.customer-choice:disabled{opacity:1;cursor:default}.customer-choice-added>span:last-child{color:#38c58b}
.label-tools{display:flex;gap:10px;flex-wrap:wrap}.label-tools>input{flex:1;min-width:150px}.label-row{display:grid;grid-template-columns:1.4fr 1fr 120px;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.label-row>label{font-size:12px}.label-row>label:first-child{display:flex;align-items:center;gap:12px}.label-row input[type=checkbox]{width:22px;height:22px;flex:none}.label-row small{display:block;color:var(--muted);margin-top:5px}#labelModal{z-index:1200}@media(max-width:600px){.label-row{grid-template-columns:1fr 100px}.label-row>label:first-child{grid-column:1/-1}}
/* Keep the document and elastic scrolling on the current theme background. */
html{background:var(--bg);overscroll-behavior:none;overflow-x:clip}
body{width:100%;min-width:0;overflow-x:clip;overscroll-behavior-x:none}
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field,.formgrid>*,.toolbar>*,.box,.dialog{min-width:0}
.field input,.field select,.field textarea{width:100%;min-width:0;max-width:100%}
input[type=date]{min-inline-size:0;max-inline-size:100%}
input[type=date]::-webkit-date-and-time-value{text-align:left}
.dialog{overscroll-behavior:contain;max-width:100%;overflow-x:hidden}
@media(max-width:700px){
 .top{display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:0;gap:6px;padding:6px 12px 9px;position:relative}
 .top .site-credit{grid-row:1;order:0;width:100%;max-width:none;margin:0;text-align:right;font-size:9px;line-height:12px}
 .top .brand{grid-row:2;gap:8px;min-width:0}
 .top .brandmark{width:38px;height:38px}
 .top .brand h1{font-size:19px;line-height:1.1;letter-spacing:.4px}
 .top .brand h1 span{display:inline;font-size:11px;letter-spacing:1.5px;margin-left:5px}
 .top .brand small{font-size:7px;letter-spacing:1px;margin-top:3px}
 .top .topnav{display:none}
 .top .topright{grid-row:3;margin:0;gap:6px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
 .topright .btn{font-size:12px;padding:8px 10px;min-height:36px}
 .wrap{padding-top:16px}
 .hero{padding:0 0 12px;margin-bottom:14px}
 .hero h2{font-size:36px;margin:6px 0 8px}
 .hero .eyebrow{font-size:9px;letter-spacing:1.4px}
 .stat{padding:12px 14px}.stats{margin-bottom:12px}
 .toolbar .search{min-width:0;flex-basis:100%}
 .toolbar select{min-width:0;max-width:100%;flex:1}
 .modal{padding:10px;overflow:hidden}
 .dialog{padding:16px;max-height:calc(100dvh - 20px);width:100%}
 .dialog input,.dialog select,.dialog textarea{font-size:16px;min-width:0;max-width:100%}
 #cardEditForm{grid-template-columns:minmax(0,1fr)}
 #cardEditForm .wide{grid-column:1/-1}
 #cardEditForm .toolbar{display:flex;gap:8px;flex-wrap:wrap}
 #cardEditForm .toolbar .btn{flex:1;min-width:0;padding:11px 8px}
 .boxhead{gap:10px;flex-wrap:wrap}
 .toast{max-width:calc(100vw - 24px);overflow-wrap:anywhere}
}
.issue-option{display:flex;align-items:center;gap:9px;margin:12px 0;cursor:pointer}.issue-option input{width:18px;height:18px;padding:0;margin:0;flex:none}.in-report{color:#51cf94!important}.outside-report{color:#ff7878!important}.issue-history-entry{margin-top:12px}.voided-issue{opacity:.65;text-decoration:line-through}@media print{#issueHistoryView{display:none!important}}
#catalogGrid{align-items:stretch;grid-auto-rows:1fr}
#catalogGrid .card{display:flex;flex-direction:column;height:100%;min-width:0}
#catalogGrid .art{flex:none}
#catalogGrid .cardbody{display:flex;flex-direction:column;flex:1;min-width:0}
#catalogGrid .cardname{line-height:1.3;height:2.6em;flex:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#catalogGrid .meta{line-height:1.4;height:5.6em;flex:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;overflow-wrap:anywhere}
#catalogGrid .price-row{margin-top:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;min-height:44px;align-items:center}
#catalogGrid .price{min-width:0;overflow-wrap:anywhere}
#catalogGrid .card-actions{flex:none}

#catalogGrid .new-card-badge{position:absolute;bottom:10px;left:10px;z-index:2;background:#ffda21;color:#06152b;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.06em;box-shadow:0 2px 8px #0005}
@media print{#reportsView thead th:nth-child(2),#reportRows td:nth-child(2){display:none!important}}

#pickupNotice{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:15px;box-shadow:0 20px 80px #0008}
#pickupNotice::backdrop{background:#020810cc}
#pickupNotice h2{font:700 30px 'Barlow Condensed',sans-serif;margin:0 0 16px}
#pickupNotice p{font-size:16px;line-height:1.6;margin:0 0 24px}
#pickupNotice strong{display:block;margin-top:12px}
#pickupNotice .btn{width:100%;min-height:48px}
@media print{#pickupNotice,#pickupNotice::backdrop{display:none!important}}