:root{color-scheme:light;background:#806349 url('trigo.svg') repeat;color:#382519}
#login-panel{background:#fff;color:#382519}
#login-panel .brand-logo{display:block;width:min(100%,300px);height:auto;margin:0 auto 12px}
#login-form input{background:#fff;color:#382519;border-color:#c7b5a3}
#login-button{background:#54321f;color:#fff}
#session-bar{color:#fff4e8}
#logout{background:#fff;color:#382519;border-color:#c7b5a3}
#hap-demo{background:#fff;color:#382519;--hap-line:#c7b5a3;--hap-surface:#fff;--hap-ink:#382519;--hap-main:#54321f}
#hap-lookup{background:#fff;color:#382519;--hl-line:#c7b5a3;--hl-paper:#fff;--hl-ink:#382519;--hl-active:#f2e5d6;--hl-main:#54321f}
#hap-demo header>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
#hap-demo header .brand-logo,#hap-lookup header .brand-logo{width:200px;height:88px;object-fit:cover;object-position:center}
#hap-demo header>div>span{display:inline-flex;align-items:center;min-height:48px;padding:12px 18px;border:0;background:#fff;color:#382519;font-size:16px;font-weight:600;margin-top:0}
#hap-demo header{padding-bottom:12px;padding-right:0}
#hap-lookup header{padding-right:0}
#hap-demo label,#hap-demo h3,#hap-demo .hap-total,#hap-demo small,#hap-lookup label,#hap-lookup h2,#hap-lookup h3,#hap-lookup small{color:#382519}
#hap-demo .hap-product small{opacity:1;color:#5a3d2a}
#hap-demo button:active{background:#f2e5d6}
#hap-demo .hap-primary,#hap-lookup .hl-primary{background:#54321f;color:#fff}
#hap-demo #hap-save{background:#fff;color:#54321f;border:1px solid #54321f}
#hap-connected>nav button{background:#fff;color:#382519;border-color:#c7b5a3}
#hap-connected>nav button[aria-pressed="true"]{background:#54321f;color:#fff}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#hap-lookup .hap-reports{margin:0 0 22px;padding:0 0 12px;border-bottom:1px solid #c7b5a3}
#hap-lookup .hap-reports h3{font-size:16px;margin:0 0 10px}
#hap-lookup .hap-reports>div{display:flex;gap:10px;flex-wrap:wrap}
#hap-lookup .hap-reports button{font-size:15px;padding:10px 14px}
#hap-lookup #report-status{font-size:14px;margin:10px 0 0}
#hap-demo .hap-fields{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
#hap-demo .hap-customer{min-width:0;position:relative}
#hap-demo #customer-matches{display:grid;gap:4px;margin-top:6px;max-height:240px;overflow:auto}
#hap-demo #customer-matches button{text-align:left;font-size:14px;min-height:44px}
#hap-demo #customer-new{font-size:14px;margin-top:8px;min-height:44px}
#hap-demo #customer-status{font-size:13px;margin:6px 0 0}
@media(max-width:760px){#hap-demo .hap-fields{grid-template-columns:1fr}}
/* Contornos biselados: solamente presentación, sin cambios de interacción. */
#login-panel,#hap-demo,#hap-lookup{border-radius:0;clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px)}
#hap-demo aside,#hap-lookup aside{border-radius:0;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);background:#faf6ef;border-color:#c8b69f}
#hap-demo input,#hap-demo select,#hap-demo textarea,#hap-lookup input,#login-form input{border-radius:3px}
#hap-demo button,#hap-lookup button,#hap-connected>nav button,#login-button,#logout{border-radius:3px}
#hap-demo .hap-product,#hap-lookup .hl-result{background:#faf7f1}
/* Nota de panadería: mismo contenido y controles, tratamiento de papel. */
#hap-demo aside{background:#fffdf6;border:0;padding:26px 22px 36px;box-shadow:0 2px 12px #38251916;clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),96% 100%,92% calc(100% - 10px),88% 100%,84% calc(100% - 10px),80% 100%,76% calc(100% - 10px),72% 100%,68% calc(100% - 10px),64% 100%,60% calc(100% - 10px),56% 100%,52% calc(100% - 10px),48% 100%,44% calc(100% - 10px),40% 100%,36% calc(100% - 10px),32% 100%,28% calc(100% - 10px),24% 100%,20% calc(100% - 10px),16% 100%,12% calc(100% - 10px),8% 100%,4% calc(100% - 10px),0 100%)}
#hap-demo aside::before{content:'HUELE A PAN';display:block;text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:23px;letter-spacing:2px;color:#54321f;margin:0 0 9px}
#hap-demo aside h3{text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-style:italic;padding-bottom:19px;margin-bottom:17px;border-bottom:1px dashed #ad9475;color:#54321f}
#hap-demo aside .hap-line{border-bottom:1px dotted #c8b69f;padding:14px 0}
#hap-demo aside .hap-qty small{font-variant-numeric:tabular-nums}
#hap-demo aside .hap-total{border-top:1px dashed #ad9475;margin-top:17px;padding-top:19px;font-family:Georgia,'Times New Roman',serif}
#hap-demo aside .hap-total strong{font-weight:600;font-variant-numeric:tabular-nums}
#hap-demo aside select,#hap-demo aside textarea,#hap-demo aside input{background:#fffdf6}
#hap-demo aside #hap-save{background:transparent}
#hap-demo aside #hap-status{border-top:1px dotted #c8b69f;padding-top:12px}
#hap-demo aside #hap-status:empty{display:none}
/* La captura completa comparte el formato de nota de panadería. */
#hap-demo{background:#fffdf6;--hap-surface:#fffdf6;--hap-line:#c8b69f}
#hap-demo header{border-bottom:1px dashed #ad9475;margin-bottom:20px;padding-bottom:18px}
#hap-demo header>div>span{background:transparent;font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:24px;font-weight:400;letter-spacing:.3px}
#hap-demo .hap-fields{padding-bottom:22px;margin-bottom:22px;border-bottom:1px dashed #ad9475}
#hap-demo label{color:#54321f}
#hap-demo input,#hap-demo select,#hap-demo textarea{background:#fffdf6;border-color:#c8b69f;color:#382519}
#hap-demo .hap-search{font-family:Georgia,'Times New Roman',serif;font-size:19px}
#hap-demo .hap-search input{font-family:system-ui,sans-serif;font-size:16px}
#hap-demo .hap-product{background:#fffaf0;border-color:#d5c6af}
#hap-demo .hap-product span{color:#382519}
#hap-demo .hap-product small{color:#725438}
#hap-demo aside{box-shadow:none;border-left:1px dashed #ad9475;padding-left:22px}
#hap-demo #customer-matches button{background:#fffaf0}
@media(max-width:760px){#hap-demo aside{border-left:0;border-top:1px dashed #ad9475;padding-top:24px}}
/* Hoja desprendida del talonario: bordes superiores rectos y corte inferior. */
#hap-connected{filter:drop-shadow(0 7px 9px #38251928)}
#hap-demo,#hap-lookup{border-radius:2px 2px 0 0;padding-bottom:38px;clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),98% 100%,96% calc(100% - 9px),94% 100%,92% calc(100% - 9px),90% 100%,88% calc(100% - 9px),86% 100%,84% calc(100% - 9px),82% 100%,80% calc(100% - 9px),78% 100%,76% calc(100% - 9px),74% 100%,72% calc(100% - 9px),70% 100%,68% calc(100% - 9px),66% 100%,64% calc(100% - 9px),62% 100%,60% calc(100% - 9px),58% 100%,56% calc(100% - 9px),54% 100%,52% calc(100% - 9px),50% 100%,48% calc(100% - 9px),46% 100%,44% calc(100% - 9px),42% 100%,40% calc(100% - 9px),38% 100%,36% calc(100% - 9px),34% 100%,32% calc(100% - 9px),30% 100%,28% calc(100% - 9px),26% 100%,24% calc(100% - 9px),22% 100%,20% calc(100% - 9px),18% 100%,16% calc(100% - 9px),14% 100%,12% calc(100% - 9px),10% 100%,8% calc(100% - 9px),6% 100%,4% calc(100% - 9px),2% 100%,0 calc(100% - 9px))}
/* Perforación superior y corte pequeño de tamaño fijo, sin recortar el contenido. */
#hap-demo,#hap-lookup{position:relative;clip-path:none;border-radius:3px 3px 0 0;margin-bottom:9px;--paper-color:#fffdf6}
#hap-lookup{--paper-color:#fff}
#hap-demo::before,#hap-lookup::before{content:'';position:absolute;pointer-events:none;top:8px;left:22px;right:22px;height:6px;background:radial-gradient(circle at 12px 3px,#bda88e 1.5px,transparent 2px) 0 0/24px 6px repeat-x;opacity:.65}
#hap-demo::after,#hap-lookup::after{content:'';position:absolute;pointer-events:none;left:0;right:0;bottom:-6px;height:7px;background:var(--paper-color);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M0 0H12L6 6Z'/%3E%3C/svg%3E") left top/12px 7px repeat-x}
#hap-demo aside{clip-path:none;padding-bottom:24px}
#hap-connected>nav button,#logout{border-radius:10px}
/* Portada de libreta: cambios aislados al inicio de sesión. */
#login-panel{position:relative;isolation:isolate;clip-path:none;max-width:460px;margin:32px auto;padding:36px 38px 30px 42px;border-radius:7px 20px 20px 7px;border-left:13px solid #703437;background:#98474a url('piel-roja.svg') repeat;color:#fff2de;box-shadow:inset 4px 0 8px #4d20243d,inset -2px 0 3px #f2c9b52b,5px 7px 0 -2px #e4d7bd,8px 10px 0 -3px #b6a58b,0 18px 34px #38251940}
#login-panel::before{content:'';position:absolute;inset:13px 13px 13px 15px;border:1px dashed #f1d6ba80;border-radius:3px 12px 12px 3px;pointer-events:none;z-index:-1}
#login-panel::after{content:'';position:absolute;top:0;right:37px;width:16px;height:30px;background:#d9ba87;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);pointer-events:none}
#login-panel .brand-logo{width:100%;max-width:330px;height:158px;object-fit:cover;object-position:center;margin:8px auto 18px;filter:invert(1) grayscale(1) sepia(.6);mix-blend-mode:screen}
#login-panel>p:first-of-type{text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.5;margin:0 0 26px;color:#fff0d7}
#login-form{gap:19px}
#login-form label{color:#fff2de;font-size:15px}
#login-form input{background:#fff9ed;color:#452b24;border:1px solid #e0c5ac;border-radius:5px;box-shadow:inset 0 1px 3px #6b353518}
#login-form input:focus-visible{outline:3px solid #ecd0a8;outline-offset:3px}
#login-button{background:#ecd7b5;color:#653034;border:1px solid #f6e5c8;border-radius:6px;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:500;box-shadow:0 3px 0 #642d3240}
#login-button:hover{background:#f6e5c8}
#login-status{color:#fff2de;font-size:14px;line-height:1.45;margin-bottom:0}
@media(max-width:480px){#login-panel{margin:20px auto;padding:29px 27px 27px 28px;border-left-width:10px}#login-panel .brand-logo{height:138px}#login-panel::after{right:28px}}
/* Lomo ancho, cantos con uso y señalador de tela más visible. */
#login-panel{max-width:500px;border:5px solid #7b373d;border-left:28px solid #713139;border-radius:11px 28px 24px 9px / 8px 32px 29px 12px;padding:40px 40px 35px 37px;background-color:#98474a;background-image:url('desgaste-libreta.svg'),url('piel-roja.svg');background-repeat:no-repeat,repeat;background-size:100% 100%,220px 220px;box-shadow:inset 5px 0 9px #4d20244d,inset -3px 0 5px #edb59d35,7px 8px 0 -1px #e7dac1,11px 12px 0 -2px #c3ad8c,14px 15px 0 -3px #743a37,0 21px 35px #38251950}
#login-panel::before{inset:15px 15px 15px 12px;border-color:#e8c29a9c;border-radius:4px 16px 13px 5px / 5px 19px 16px 6px}
#login-panel::after{top:-5px;right:37px;width:31px;height:62px;background-color:#d5b17c;background-image:repeating-linear-gradient(91deg,#f0d6aa50 0 1px,transparent 1px 4px),linear-gradient(100deg,#a87a4d44,transparent 30%,#f3ddb74d 54%,#92603b44);clip-path:polygon(0 0,100% 0,98% 36%,100% 65%,96% 100%,51% 81%,5% 100%,0 66%,2% 42%);filter:drop-shadow(1px 3px 2px #4c242645)}
@media(max-width:480px){#login-panel{border-width:4px;border-left-width:22px;padding:34px 24px 30px 25px;margin:24px 7px 27px 0}#login-panel::before{inset:12px 10px 12px 9px}#login-panel::after{right:25px;width:27px;height:55px}}
:root:has(#login-panel:not([hidden])){background:#705338}
#production-paper{background:#fffdf6;color:#503626;padding:26px;border-top:3px double #b49a7c;border-bottom:3px double #b49a7c}#production-paper header{display:flex;align-items:center;gap:22px;border-bottom:1px dashed #b49a7c}#production-paper .brand-logo{width:170px;height:82px;object-fit:cover}#production-paper h2,#production-paper h3{font-family:Georgia,serif;font-weight:400}#production-paper p{line-height:1.5}#production-paper form,#production-paper label{display:grid;gap:9px}#production-paper form{gap:18px;max-width:620px}#production-paper input,#production-paper select,#production-paper button{font:inherit;font-size:16px;min-height:50px;padding:12px;border:1px solid #c7af94;background:#fffdf6;color:#503626;width:100%;box-sizing:border-box}#production-paper button{background:#76452b;color:white}#production-paper .production-net{padding:18px 0;font-size:23px;border-top:1px dashed #b49a7c}#production-paper .production-net strong{font-size:30px}#production-history p{border-bottom:1px dashed #b49a7c;padding:12px 0;overflow-wrap:anywhere}#production-paper .chef-report{display:grid;gap:14px;margin-top:26px;border-top:1px dashed #b49a7c;padding-top:20px;max-width:620px}@media(max-width:500px){#production-paper{padding:20px}#production-paper header{gap:10px}#production-paper .brand-logo{width:145px}}
#order-editor{padding:20px;margin-top:20px;border:1px dashed #b49a7c;background:#fffdf6}#edit-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto;margin:14px 0}#edit-products button{text-align:left}#edit-lines .edit-line{display:flex;align-items:end;gap:12px;border-bottom:1px dashed #b49a7c;padding:12px 0}#edit-lines label{flex:1}#edit-lines input{max-width:100px}#order-editor .hl-actions{display:flex;flex-wrap:wrap;gap:12px}#hap-lookup select{font:inherit;font-size:16px;padding:12px;width:100%;background:#fffdf6;color:#503626;border:1px solid #c7af94}
#production-matches{max-height:260px;overflow-y:auto;border:1px solid #b49a7c;background:#fffdf6;margin-top:5px}#production-paper #production-matches button{display:block;text-align:left;background:#fffdf6;color:#503626;border:0;border-bottom:1px solid #e2d5c3;min-height:50px}#production-paper #production-matches button:hover,#production-paper #production-matches button:focus{background:#eee1cb}#production-edit-warning{padding:16px;background:#fff1d9;border-left:4px solid #986129}#production-paper #production-clear{background:#fffdf6;color:#503626}#production-history .production-record{padding:16px 0;border-bottom:1px dashed #b49a7c}#production-history .production-record p{padding:4px 0;border:0;margin:4px 0}#production-paper .production-review{background:#fff1d9;padding:12px;border-left:4px solid #986129}#production-paper .production-record button{width:auto;min-width:95px}
#production-paper .production-day-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:28px}#production-paper .production-day-heading h3{margin:0}#production-totals{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}#production-totals span{padding:9px 12px;background:#efe2cd;border-bottom:2px solid #b49a7c}#production-totals strong{font-size:22px;color:#654326;display:block}#production-paper .production-report{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}#production-paper .production-report label{min-width:180px}#production-paper .production-report button{width:auto}#production-report-status{width:100%;margin:0}

#hap-catalog-navigation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;min-height:48px;color:#503626}
#hap-demo .hap-category-card{background:#f1e5d3;border-color:#bda17c}
#hap-demo .hap-category-card span{font-family:Georgia,serif;font-size:18px}

#chef-tomorrow-results table{width:100%;border-collapse:collapse;font-size:16px}#chef-tomorrow-results th,#chef-tomorrow-results td{text-align:left;padding:12px 8px;border-bottom:1px dashed #b49a7c;overflow-wrap:anywhere}#chef-tomorrow-results th:last-child,#chef-tomorrow-results td:last-child{text-align:right}#chef-tomorrow-results h4{font-size:18px;margin:8px 0}

#order-editor .order-cancellation{margin-top:24px;padding-top:18px;border-top:1px dashed #b49a7c}#order-editor #edit-cancel-order,#order-editor #edit-confirm-cancellation{background:#8a352b;color:#fffaf4}#edit-cancellation-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:12px}#edit-cancellation-form p{line-height:1.5}

#hap-demo .hap-whatsapp{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:12px;margin-top:12px;border-radius:10px;text-align:center;text-decoration:none;font:500 16px system-ui,sans-serif;background:#76452b;color:#fffaf4}#hap-demo .hap-whatsapp[hidden]{display:none!important}

#hap-lookup .hl-whatsapp{display:flex;align-items:center;justify-content:center;min-height:48px;padding:14px;background:#76452b;color:#fffaf4;border-radius:10px;text-align:center;text-decoration:none;font:500 16px system-ui,sans-serif}#products-pending-result,#products-sales-result{margin-top:16px}#hap-lookup .hap-reports table{width:100%;border-collapse:collapse}#hap-lookup .hap-reports th,#hap-lookup .hap-reports td{text-align:left;padding:10px 6px;border-bottom:1px dashed #b49a7c;overflow-wrap:anywhere}#hap-lookup .hap-reports th:last-child,#hap-lookup .hap-reports td:last-child{text-align:right}

#hap-lookup .hap-reports th:last-child{white-space:nowrap;min-width:76px}


#daily-report .daily-report-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}#daily-report .daily-report-controls label{max-width:230px}#daily-report .daily-report-totals{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0}#daily-report .daily-report-totals>div{display:grid;gap:6px;flex:1;min-width:170px}#daily-report .daily-report-totals strong{font-size:23px}#daily-report .daily-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}#daily-report table{min-width:600px}#daily-report th:not(:first-child),#daily-report td:not(:first-child){text-align:right}#daily-report tfoot{font-weight:600}#daily-report .daily-report-downloads{margin-top:20px}#daily-report .daily-report-downloads summary{min-height:44px;padding:12px 0}#customer-refresh{font:inherit;min-height:44px}#daily-report-result p{line-height:1.5}

#hap-lookup #daily-report-result{display:block}#daily-report .daily-mobile-hint{display:none}@media(max-width:650px){#daily-report .daily-mobile-hint{display:block}}


#capture-edit-banner{border:2px solid #a97643;border-radius:12px;padding:14px;margin-bottom:16px}#capture-edit-banner p{margin:8px 0}#capture-edit-balance{font-weight:600}#hap-lookup .hl-payment-entry{display:block;margin:6px 0}#capture-edit-cancellation{margin-top:16px}#capture-edit-cancellation textarea{width:100%}

#private-reports{padding:24px;border:1px solid #bca58d;border-radius:16px;background:#fffaf3;color:#38291e}#private-reports h3{margin:24px 0 12px}.private-report-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.private-report-controls label{display:grid;gap:6px}#private-reports button,#private-reports input{font:inherit;min-height:44px;padding:10px;border:1px solid #bca58d;border-radius:8px}#reports-downloads button{margin:4px}#private-reports .daily-report-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}#private-reports .daily-report-totals>div{display:grid;gap:8px;padding:14px;border:1px solid #dacaba;border-radius:10px}#private-reports strong{font-size:22px}#private-reports table{border-collapse:collapse;width:100%;min-width:620px}#private-reports td,#private-reports th{padding:10px;text-align:left;border-bottom:1px solid #dacaba}#private-reports .daily-table-scroll{overflow-x:auto;max-width:100%}

.inventory-shortage{color:#b22121!important;font-weight:700}.inventory-panel{border:1px solid #c7ae98;border-radius:12px;padding:16px;margin:20px 0}.inventory-panel details,.chef-report details{padding:10px 0}.inventory-panel label,.chef-report details label{display:grid;gap:6px;margin:10px 0}.inventory-panel input,.inventory-panel select,.chef-report details input,.chef-report details select{font:inherit;min-height:44px;padding:8px;max-width:100%;width:100%}.inventory-panel input[type=checkbox]{width:24px;min-height:24px}#hap-stock-note{font-size:12px}#hap-products .hap-product small[data-stock-code]{font-size:11px}#chef-tomorrow-results{overflow-x:auto}#chef-tomorrow-results table{min-width:660px}

#private-reports select{font:inherit;min-height:44px;padding:10px;border:1px solid #bca58d;border-radius:8px;max-width:100%;background:#fffaf3;color:#38291e}.private-report-controls label{min-width:0;max-width:100%}#reports-product{width:100%;max-width:min(330px,100%)}.sales-chart{margin:22px 0;padding:14px;border:1px solid #dacaba;border-radius:12px}.sales-chart figcaption{font-weight:600;margin-bottom:12px}.sales-chart svg{display:block;width:100%;height:auto;min-height:170px}#private-reports .filter-note{padding:10px;border-left:4px solid #a5754c;background:#f3e7d8}

#inventory-view{background:#fffdf6;color:#503626;border:2px solid #b49a7c;border-radius:14px;max-height:75vh;overflow:auto;margin-top:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#inventory-view .inventory-dialog-header{position:sticky;top:0;z-index:2;background:#fffdf6;display:flex;align-items:start;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px;border-bottom:1px solid #dacaba}#inventory-view .inventory-dialog-header h3{margin:0;font:600 22px system-ui,sans-serif}#inventory-view .inventory-dialog-header p{margin:6px 0;font-size:13px}#inventory-view .inventory-dialog-header label{width:100%;margin:0}#inventory-view .inventory-panel-actions{display:flex;gap:8px}#production-paper #inventory-view .inventory-panel-actions button{width:auto;min-height:44px;min-width:74px;padding:10px}#production-paper #inventory-view #inventory-close{background:#fffdf6;color:#503626}#inventory-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:14px}#inventory-view .inventory-view-note{padding:0 16px;font-size:13px}#inventory-list .inventory-card{border:1px solid #dacaba;border-radius:12px;padding:14px;background:#fffaf1;min-width:0}#inventory-list .inventory-card h4{font:600 16px system-ui,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}#inventory-list .inventory-card small{opacity:.7;font-size:11px}#inventory-list .inventory-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0}#inventory-list .inventory-card dl>div{min-width:0}#inventory-list .inventory-card dt{font-size:12px;line-height:1.3;min-height:32px}#inventory-list .inventory-card dd{margin:4px 0 0;font:700 23px system-ui,sans-serif;overflow-wrap:anywhere}#inventory-list .inventory-card dl>div:last-child{color:#26643b}#inventory-list .inventory-card p{font-size:13px;margin:10px 0 0}#inventory-backdrop{position:fixed;inset:0;background:#21180f88;z-index:999}#chef-tomorrow-results table{min-width:500px}
@media(max-width:640px){body.inventory-open{overflow:hidden}#inventory-view{position:fixed;inset:8px;z-index:1000;margin:0;max-height:calc(100% - 16px);height:calc(100% - 16px);border-radius:14px;box-shadow:0 12px 50px #21180f55}#inventory-list{grid-template-columns:1fr;padding:12px}#inventory-view .inventory-dialog-header{padding:12px}#inventory-view .inventory-dialog-header h3{font-size:20px}}

body.inventory-open #hap-connected{filter:none}

.chef-shortages{border:2px solid #b22121;border-radius:12px;background:#fff1ec;padding:16px;margin:18px 0;color:#8b1c1c}#chef-shortages-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.chef-shortage-card{background:#fffdf6;padding:12px;border-radius:8px;border:1px solid #e8b5a5}.chef-shortage-card p{font-weight:700;font-size:20px;margin:8px 0}.chef-shortage-card small{display:block;line-height:1.5}.chef-weekend-table{min-width:640px}.chef-weekend-table td small{display:block;font-size:11px;font-weight:400;margin-top:5px}.chef-weekend-table td,.chef-weekend-table th{vertical-align:top}.chef-weekend-table tbody th{position:sticky;left:0;background:#fffdf6;text-align:left;min-width:150px;max-width:210px}.chef-weekend-table tfoot{font-weight:700}

@media(max-width:640px){#chef-tomorrow-results .chef-weekend-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}#chef-tomorrow-results .chef-weekend-table th,#chef-tomorrow-results .chef-weekend-table td{padding:8px 3px;font-size:12px;overflow-wrap:anywhere;width:17.5%;min-width:0}#chef-tomorrow-results .chef-weekend-table th:first-child{width:30%;min-width:0;max-width:none;position:static}#chef-tomorrow-results .chef-weekend-table td strong{font-size:16px}#chef-tomorrow-results .chef-weekend-table td small{font-size:10px;line-height:1.3}#chef-tomorrow-results .chef-weekend-table tfoot td{font-size:14px}}

#chef-tomorrow-results .chef-pending-table{width:100%;min-width:0;table-layout:fixed}#chef-tomorrow-results .chef-pending-table th:first-child{width:48%}#chef-tomorrow-results .chef-pending-table th:nth-child(2){width:35%}#chef-tomorrow-results .chef-pending-table th:last-child{width:17%}@media(max-width:640px){#chef-tomorrow-results .chef-pending-table th,#chef-tomorrow-results .chef-pending-table td{font-size:13px;padding:10px 4px}}
