
@font-face{font-family:"LINE Seed Sans TH App";src:url(./fonts/LINESeedSansTH_A_Rg.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap;}

#happy-full-demo{font-family:"LINE Seed Sans TH App",-apple-system,BlinkMacSystemFont,Thonburi,sans-serif;font-size:14px;line-height:1.5;color:#202020;background:#fafafa;border:1px solid #e2e2e2;border-radius:18px;overflow:visible;position:relative;color-scheme:light}
#happy-full-demo *{box-sizing:border-box}
#happy-full-demo h1,#happy-full-demo h2,#happy-full-demo h3,#happy-full-demo p{margin:0}
#happy-full-demo h1{font-size:32px;font-weight:600;line-height:1.4}#happy-full-demo h2{font-size:20px;font-weight:600}#happy-full-demo h3{font-size:16px;font-weight:600}
#happy-full-demo small{font-size:12px;color:#737373;display:block}#happy-full-demo strong,#happy-full-demo b{font-weight:600}
#happy-full-demo button,#happy-full-demo input,#happy-full-demo select,#happy-full-demo textarea{font:inherit;color:inherit}
#happy-full-demo button{border:1px solid #d3d3d3;border-radius:24px;background:transparent;min-height:36px;padding:6px 16px}
#happy-full-demo button:disabled{opacity:.4;cursor:default}#happy-full-demo button:focus-visible,#happy-full-demo input:focus-visible,#happy-full-demo select:focus-visible{outline:2px solid #737373;outline-offset:2px}
#happy-full-demo header{background:#efefef;display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;gap:12px}
#happy-full-demo .brand{display:flex;align-items:center;gap:20px}#happy-full-demo .brand strong{font-size:18px}#happy-full-demo .brand small{font-size:11px}
#happy-full-demo .version{padding-right:4px}#happy-full-demo .icon-only{display:inline-grid;place-items:center;border:0;padding:8px;min-width:36px}
#happy-full-demo nav{display:flex;background:#efefef;padding:8px 12px 0;gap:6px}
#happy-full-demo nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;border-radius:12px;font-size:11px;color:#737373;padding:8px 4px;min-height:50px}
#happy-full-demo nav button[aria-current=page]{background:#e8e8e8;color:#222;font-weight:600}
#happy-full-demo main{padding:16px;min-height:440px}#happy-full-demo .view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#happy-full-demo .segmented{display:flex;margin:4px 0 16px;gap:4px}#happy-full-demo .segmented button{width:50%;border:0;color:#777;min-height:34px}
#happy-full-demo .segmented button[aria-pressed=true]{background:#eaeaea;color:#202020}
#happy-full-demo .filters{display:flex;gap:6px;margin-bottom:12px}#happy-full-demo .filters button{padding:3px 15px;min-height:30px}
#happy-full-demo .filters .selected{color:#fff;background:#191919;border-color:#191919}
#happy-full-demo .product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#happy-full-demo .product{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#eaeaea;border:1px solid #d3d3d3;border-radius:20px;padding:10px;min-height:96px}
#happy-full-demo .product-image{height:72px;width:72px;background:white;display:grid;place-items:center;border-radius:16px;font-size:32px;flex-shrink:0}
#happy-full-demo .product-details{display:flex;flex-direction:column;gap:8px;min-width:0}#happy-full-demo .product-details strong{font-size:14px}#happy-full-demo .product-details b{font-size:16px}
#happy-full-demo .plus{margin-left:auto;align-self:flex-end;font-size:22px;color:#888;padding:0 4px 5px}
#happy-full-demo .manage-product .product-details{gap:4px}#happy-full-demo .manage-product small{font-size:12px;overflow-wrap:anywhere}
#happy-full-demo .basket{margin-top:22px}#happy-full-demo .basket .view-heading{margin-bottom:6px}
#happy-full-demo .text-button{border:0;color:#777;font-size:12px;padding-right:0}
#happy-full-demo .empty{padding:12px 0;color:#8b8b8b;font-size:13px}
#happy-full-demo .subtotal{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0}
#happy-full-demo .primary{background:#191919;color:white;border-color:#191919}#happy-full-demo .full{width:100%}
#happy-full-demo .basket-line{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e7e7;padding:12px 0;gap:12px}
#happy-full-demo .quantity{display:flex;align-items:center;gap:16px}#happy-full-demo .quantity button{padding:3px;min-width:32px;min-height:32px}
#happy-full-demo .pill{font-size:12px;padding:5px 15px;min-height:32px}
#happy-full-demo .form-heading{display:flex;align-items:center;gap:8px;margin-bottom:20px}
#happy-full-demo label{display:block;color:#737373;margin:12px 0}#happy-full-demo input,#happy-full-demo select,#happy-full-demo textarea{display:block;width:100%;min-width:0;border:1px solid #d3d3d3;border-radius:22px;padding:9px 14px;background:#fafafa;min-height:40px;margin-top:5px}
#happy-full-demo textarea{border-radius:12px;resize:vertical;margin-bottom:16px}
#happy-full-demo .two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#happy-full-demo .recipe-row{display:grid;grid-template-columns:1fr 130px 32px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e9e9e9}
#happy-full-demo .recipe-row input{margin:0;text-align:right}
#happy-full-demo .summary-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0}
#happy-full-demo #form-error{color:#ac2929;margin:10px 0}
#happy-full-demo .revenue{padding:14px;background:#efefef;border-radius:14px;margin-bottom:12px}
#happy-full-demo .report-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#happy-full-demo .report-metrics>div{border:1px solid #e1e1e1;border-radius:12px;padding:12px}
#happy-full-demo .report-metrics h2{margin-top:4px}
#happy-full-demo .view-heading select{width:50%;margin:0}#happy-full-demo hr{border:0;border-top:1px solid #e1e1e1;margin:24px 0}
#happy-full-demo .inline-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#happy-full-demo .history-row,#happy-full-demo .order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border:0;border-bottom:1px solid #e6e6e6;text-align:left;border-radius:0;width:100%}
#happy-full-demo .muted{color:#777;font-size:12px;margin:12px 0}
#happy-full-demo .check{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;padding:0;min-height:44px}
#happy-full-demo input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;flex-shrink:0;padding:0}
#happy-full-demo .receipt{max-width:360px;margin:0 auto 24px;text-align:center;background:white;padding:24px;border-radius:10px}
#happy-full-demo #notice{color:#555;text-align:center;font-size:12px;padding:0 16px}#happy-full-demo #notice:not(:empty){padding:10px 16px;background:#efefef}
@media(max-width:500px){#happy-full-demo main{padding:12px}#happy-full-demo .product{gap:8px;padding:8px;min-height:88px;border-radius:17px}#happy-full-demo .product-image{width:52px;height:64px;font-size:27px;border-radius:13px}#happy-full-demo .product-details strong{font-size:12px}#happy-full-demo .product-details b{font-size:14px}#happy-full-demo .manage-product small{font-size:11px}#happy-full-demo .plus{padding:0 1px 2px;font-size:18px}#happy-full-demo .recipe-row{grid-template-columns:1fr 90px 24px}#happy-full-demo .view-heading{flex-wrap:wrap}#happy-full-demo .product-grid{gap:8px}}
@media(pointer:coarse){#happy-full-demo input,#happy-full-demo select{font-size:16px}#happy-full-demo button{min-height:44px}#happy-full-demo nav button{min-height:54px}}

#happy-full-demo{--cafe-space:8px;font-size:15px;line-height:1.55;-webkit-text-size-adjust:100%;}
#happy-full-demo button,#happy-full-demo input,#happy-full-demo select,#happy-full-demo textarea{font-family:inherit;}
#happy-full-demo button{min-height:44px;touch-action:manipulation;}
#happy-full-demo nav button{min-height:54px;}
#happy-full-demo .product{border:1px solid transparent;transition:background-color .12s,border-color .12s;}
#happy-full-demo .product[aria-pressed=true],#happy-full-demo .product:active{border-color:#d3d3d3;}
#happy-full-demo .product:focus-visible{outline:2px solid #737373;outline-offset:2px;}
#happy-full-demo .product-image{overflow:hidden;}
#happy-full-demo .product-image img,#happy-full-demo .upload-preview img{display:block;width:100%;height:100%;object-fit:cover;}
#happy-full-demo .expense-fields{margin-bottom:32px;}
#happy-full-demo .expense-history-title{margin:0 0 16px;}
#happy-full-demo .select-field{display:block;position:relative;width:100%;min-width:0;margin-top:5px;}
#happy-full-demo .select-field select{appearance:none;-webkit-appearance:none;background-image:none!important;padding:10px 44px 10px 14px;width:100%;margin:0;line-height:1.5;}
#happy-full-demo .select-chevron{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:16px;height:16px;pointer-events:none;color:#777;}
#happy-full-demo .select-chevron svg{display:block;width:16px;height:16px;}
#happy-full-demo .view-heading>.select-field{width:50%;max-width:360px;margin:0;}
#happy-full-demo .image-editor{display:flex;align-items:center;gap:16px;margin:8px 0 24px;}
#happy-full-demo .upload-preview{display:grid;place-items:center;width:88px;height:88px;flex-shrink:0;background:#efefef;border-radius:16px;overflow:hidden;color:#888;}
#happy-full-demo .upload-control{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 4px;padding:8px 14px;background:#eaeaea;border-radius:12px;color:#222;overflow:hidden;}
#happy-full-demo .upload-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:inherit;}
#happy-full-demo .upload-control:focus-within{outline:2px solid #737373;outline-offset:2px;}
#happy-full-demo .image-editor .text-button{padding-left:0;font-size:12px;}
#happy-full-demo .recipe-row,#happy-full-demo .basket-line,#happy-full-demo .history-row{min-height:52px;}
#happy-full-demo .quantity button{min-width:44px;min-height:44px;}
#happy-full-demo .view-heading,#happy-full-demo .summary-row{min-width:0;}
#happy-full-demo .product-details strong,#happy-full-demo .history-row>div,#happy-full-demo .summary-row>span{overflow-wrap:anywhere;}
#happy-full-demo label input,#happy-full-demo label select{min-height:44px;}
#happy-full-demo .check{min-height:44px;}
@media(max-width:500px){#happy-full-demo input,#happy-full-demo select{font-size:16px;}#happy-full-demo .image-editor{gap:12px;}#happy-full-demo .view-heading>.select-field{min-width:140px;}}
@media(prefers-reduced-motion:reduce){#happy-full-demo .product{transition:none;}}

#happy-full-demo h1,#happy-full-demo h2,#happy-full-demo b{font-variant-numeric:tabular-nums;}
/* Selected states: keep unselected cards quiet and the current context explicit. */
#happy-full-demo .product[data-add],
#happy-full-demo .product[data-edit-product],
#happy-full-demo .product[data-edit-stock]{background:#f6f6f6;border-color:transparent;}
#happy-full-demo .product[data-add][aria-pressed=true],
#happy-full-demo .product[data-edit-product][data-selected=true],
#happy-full-demo .product[data-add]:active,
#happy-full-demo .product[data-edit-product]:active{background:#eaeaea;border-color:#d3d3d3;}
#happy-full-demo nav button{position:relative;border-radius:0;background:transparent;}
#happy-full-demo nav button::after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:2px;border-radius:2px;background:transparent;}
#happy-full-demo nav button[aria-current=page]{background:transparent;color:#000;}
#happy-full-demo nav button[aria-current=page]::after{background:#000;}
#happy-full-demo .segmented button[aria-pressed=true]{background:#000;color:#fff;}

/* Keep every app label on the supplied App font, including host-styled headings. */
#happy-full-demo{font-family:"LINE Seed Sans TH App",-apple-system,BlinkMacSystemFont,sans-serif!important;}
#happy-full-demo *{font-family:inherit!important;}
#happy-full-demo .photo-field{margin:4px 0 24px;}
#happy-full-demo .photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
#happy-full-demo .photo-heading small{font-size:12px;color:#777;}
#happy-full-demo .photo-picker{position:relative;display:flex;align-items:center;gap:20px;width:100%;padding:16px;margin:0;background:#f2f2f2;border:1px dashed #c6c6c6;border-radius:18px;color:#222;overflow:hidden;min-height:136px;}
#happy-full-demo .photo-picker:focus-within{outline:2px solid #333;outline-offset:3px;}
#happy-full-demo .photo-picker:hover{background:#ececec;}
#happy-full-demo .photo-picker .upload-preview{width:96px;height:96px;flex-shrink:0;display:grid;place-items:center;background:#fff;border-radius:14px;overflow:hidden;color:#888;}
#happy-full-demo .photo-copy{display:flex;flex-direction:column;gap:6px;min-width:0;}
#happy-full-demo .photo-copy strong{font-size:16px;color:#222;}
#happy-full-demo #photo-caption{font-size:13px;color:#666;overflow-wrap:anywhere;}
#happy-full-demo .photo-copy small{font-size:12px;line-height:1.5;}
#happy-full-demo .photo-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:inherit;}
#happy-full-demo .photo-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:8px;}
#happy-full-demo .photo-remove{color:#a42d2d;border:0;background:transparent;padding:6px 10px;min-height:44px;}
#happy-full-demo .photo-bottom [hidden]{display:none!important;}
#happy-full-demo #upload-error{color:#a42d2d;font-size:13px;margin:4px 0 0;}
#happy-full-demo #upload-error:empty{display:none;}
@media(max-width:450px){#happy-full-demo .photo-picker{gap:12px;padding:12px;min-height:116px;}#happy-full-demo .photo-picker .upload-preview{width:76px;height:76px;}#happy-full-demo .photo-copy strong{font-size:15px;}#happy-full-demo .photo-copy small{font-size:11px;}}

#happy-full-demo .select-field{position:relative;display:block;}
#happy-full-demo .select-field.is-open{z-index:30;}
#happy-full-demo .combo-native{display:none!important;}
#happy-full-demo .combo-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #d3d3d3;border-radius:22px;background:#fafafa;text-align:left;font-size:inherit;font-weight:400;}
#happy-full-demo .combo-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#happy-full-demo .combo-trigger svg{flex-shrink:0;color:#777;width:16px;height:16px;}
#happy-full-demo .combo-trigger[aria-expanded=true]{border-color:#777;}
#happy-full-demo .combo-list{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:31;background:#fff;border:1px solid #e0e0e0;border-radius:14px;padding:5px;box-shadow:0 6px 20px #00000014;max-height:240px;overflow-y:auto;overscroll-behavior:contain;}
#happy-full-demo .combo-list[hidden]{display:none!important;}
#happy-full-demo .combo-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:9px;color:#222;font-size:14px;}
#happy-full-demo .combo-option.is-highlighted,#happy-full-demo .combo-option:hover{background:#f0f0f0;}
#happy-full-demo .combo-option[aria-selected=true]{background:#eaeaea;}
#happy-full-demo .combo-option[aria-disabled=true]{opacity:.4;}
#happy-full-demo .combo-check{width:16px;flex-shrink:0;text-align:center;}


#happy-full-demo .combo-option{width:100%;border:0;background:transparent;text-align:left;font-weight:400;}
#happy-full-demo .combo-option[aria-selected=true]{background:#eaeaea;}
#happy-full-demo .combo-option.is-highlighted,#happy-full-demo .combo-option:hover{background:#f0f0f0;}
#happy-full-demo .manual-field[hidden]{display:none!important;}
#happy-full-demo .manual-field{margin:10px 0 16px;}

#happy-full-demo .maintenance-group{display:flex;flex-direction:column;align-items:flex-start;}
#happy-full-demo .maintenance-group h3{margin:0;}
#happy-full-demo .maintenance-group>.muted{margin:4px 0 8px;}
#happy-full-demo .maintenance-confirmations{display:flex;flex-direction:column;gap:0;}
#happy-full-demo .maintenance-confirmations .check{margin:0;min-height:44px;padding:0;gap:8px;}
#happy-full-demo .maintenance-group>[data-action=cleanup]{margin-top:8px;}
#happy-full-demo .shop-layout,#happy-full-demo .expenses-layout{display:block;}
#happy-full-demo .shop-catalog,#happy-full-demo .expense-entry,#happy-full-demo .expense-history,#happy-full-demo .product-info-panel,#happy-full-demo .recipe-panel{min-width:0;}
#happy-full-demo .basket-summary{margin-top:16px;}
#happy-full-demo .recipe-panel{margin-top:24px;}
#happy-full-demo .expense-history{margin-top:32px;}
@media(min-width:900px){
 #happy-full-demo main{padding:24px;}
 #happy-full-demo .shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start;}
 #happy-full-demo .shop-catalog .segmented{margin-top:0;}
 #happy-full-demo .shop-layout .basket{margin:0;padding:0 0 0 24px;border-left:1px solid #e3e3e3;min-height:440px;display:flex;flex-direction:column;}
 #happy-full-demo .basket-lines{flex:1;}
 #happy-full-demo .basket-summary{margin-top:auto;padding-top:16px;}
 #happy-full-demo .basket-summary .subtotal{margin-top:0;}
 #happy-full-demo .basket-line{align-items:flex-start;flex-wrap:wrap;gap:8px;}
 #happy-full-demo .basket-line>div:first-child{flex:1;min-width:100px;}
 #happy-full-demo .quantity{gap:10px;}
 #happy-full-demo .quantity button{min-width:36px;min-height:44px;}
 #happy-full-demo .shop-catalog .product{gap:10px;padding:10px;}
 #happy-full-demo .shop-catalog .product-image{width:64px;height:72px;}
 #happy-full-demo .expenses-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px;align-items:start;}
 #happy-full-demo .expense-entry .expense-fields{margin-bottom:0;}
 #happy-full-demo .expense-history{margin-top:0;border-left:1px solid #e3e3e3;padding-left:32px;}
 #happy-full-demo .expense-history-title{margin:0 0 12px;}
 #happy-full-demo .product-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px;align-items:start;}
 #happy-full-demo .recipe-panel{margin:0;border-left:1px solid #e3e3e3;padding-left:32px;}
 #happy-full-demo .product-form>#form-error,#happy-full-demo .product-form>[data-action=submit]{grid-column:1/-1;}
 #happy-full-demo .product-form>[data-action=submit]{justify-self:end;width:calc(50% - 16px);margin-top:24px;}
 #happy-full-demo main[data-page=Menu]>.product-grid,#happy-full-demo main[data-page=Stock]>.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 #happy-full-demo .report-metrics{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(min-width:1150px){#happy-full-demo .shop-layout{grid-template-columns:minmax(0,1fr) 340px;gap:32px;}#happy-full-demo .shop-layout .basket{padding-left:28px;}}
html,body{margin:0;background:#fafafa;color:#202020;}
body{padding:16px;box-sizing:border-box;}
#happy-full-demo{max-width:1240px;margin:0 auto;}
#happy-full-demo .app-status{display:flex;flex-direction:column;align-items:flex-end;gap:3px;}
#happy-full-demo #connection-status{font-size:11px;}
#happy-full-demo .app-footer{border-top:1px solid #e5e5e5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;color:#777;font-size:12px;}
#happy-full-demo .backup-panel{max-width:640px;}
#happy-full-demo #backup-error{color:#a42d2d;margin-top:12px;}
#print-receipt{display:none;}
@media(max-width:600px){body{padding:0;}#happy-full-demo{border-radius:0;border-left:0;border-right:0;}.app-status{max-width:150px;}}
@media print{
 @page{margin:8mm;}
 html,body{padding:0!important;margin:0!important;background:#fff!important;}
 #happy-full-demo{display:none!important;}
 #print-receipt{display:block!important;max-width:72mm;margin:0 auto;color:#000;font-family:"LINE Seed Sans TH App",Tahoma,sans-serif;font-size:11pt;line-height:1.6;}
 #print-receipt h1{font-size:18pt;text-align:center;margin:0;}
 #print-receipt p{text-align:center;overflow-wrap:anywhere;}
 #print-receipt .print-row{display:flex;justify-content:space-between;gap:16px;margin:8px 0;}
 #print-receipt hr{border:0;border-top:1px dashed #000;}
}

.option-group{border:0;padding:0;margin:20px 0;min-width:0}.option-group legend{font-weight:600;margin-bottom:10px}.option-group legend small{font-weight:400;color:#777;margin-left:8px}.option-choice{display:flex!important;align-items:center;gap:12px;padding:13px 14px;margin:8px 0!important;background:#f6f6f6;border:1px solid transparent;border-radius:14px;cursor:pointer}.option-choice:has(input:checked){background:#eaeaea;border-color:#d3d3d3}#happy-full-demo .option-choice input{width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:#111;flex:none}.option-choice span{flex:1}.option-choice b{font-size:14px;font-weight:500}.line-options{display:block;font-size:12px;color:#666;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.basket-line>div:first-child{min-width:0}.quantity{flex-shrink:0}

@media(min-width:900px){#happy-full-demo #edit-form[data-option-product]{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;align-items:start}#happy-full-demo #edit-form[data-option-product]>:not(fieldset){grid-column:1/-1}}
#happy-full-demo .binding-group{border:1px solid #e0e0e0;border-radius:16px;padding:12px 16px;margin:16px 0;min-width:0}#happy-full-demo .binding-group legend{padding:0 6px;font-weight:600}#happy-full-demo .binding-group small{display:block;color:#777;line-height:1.6}#happy-full-demo .stock-status{display:inline-flex;align-self:flex-start;font-size:12px;border-radius:20px;padding:3px 10px;margin-top:5px;background:#edf4ef;color:#346246}#happy-full-demo .stock-status.low{background:#fff2d6;color:#805a13}#happy-full-demo .stock-status.empty{background:#f9e7e5;color:#963f35}#happy-full-demo .option-choice span small{display:block;font-size:12px;color:#777;line-height:1.5}#happy-full-demo .option-choice.unavailable{opacity:.55}#happy-full-demo .stock-edit-layout{display:grid;gap:24px}#happy-full-demo .stock-edit-layout>section{min-width:0}#happy-full-demo .binding-group input[type=checkbox]{width:18px;min-height:18px;height:18px;padding:0;margin:0;accent-color:#111}#happy-full-demo [hidden]{display:none!important}
@media(min-width:900px){#happy-full-demo .stock-edit-layout{grid-template-columns:1fr 1fr;gap:32px}}

#happy-full-demo .stock-card{padding:12px;}#happy-full-demo .stock-card .product-details{flex:1;}#happy-full-demo .stock-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;flex-wrap:wrap;}#happy-full-demo .stock-card-heading>strong{flex:1 1 48px;min-width:0;overflow-wrap:anywhere;}#happy-full-demo .stock-card-heading>.stock-status{flex:0 1 auto;margin:0 0 0 auto;padding:2px 8px;font-size:11px;line-height:18px;max-width:100%;}#happy-full-demo .stock-edit-layout>section>h3{margin:0 0 12px;line-height:24px;}#happy-full-demo .add-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;}#happy-full-demo .add-button svg{width:14px;height:14px;flex:none;stroke-width:1.75;}
/* Optical balance: leave more breathing room after the label. */
#happy-full-demo .add-button{padding-inline:10px 15px;}

/* Keep navigation attached to the document viewport, including Safari. */
#happy-full-demo header{border-radius:17px 17px 0 0;}
#happy-full-demo nav{position:sticky;top:0;z-index:40;}
#happy-full-demo #notice{border-radius:0 0 17px 17px;}
html{scroll-padding-top:80px;}
#happy-full-demo .catalog-filterbar{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-width:0;}#happy-full-demo .category-strip{flex:1;min-width:0;margin:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;}#happy-full-demo .category-strip button{flex-shrink:0;}#happy-full-demo .serving-filter{position:relative;flex:none;}#happy-full-demo .serving-trigger{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:30px;padding:3px 10px;}#happy-full-demo .filter-active{background:#191919;color:#fff;border-color:#191919;}#happy-full-demo .serving-popover{position:absolute;right:0;top:calc(100% + 6px);width:190px;max-width:calc(100vw - 48px);z-index:32;background:#fff;border:1px solid #e0e0e0;border-radius:14px;padding:10px;box-shadow:0 6px 20px #00000014;}#happy-full-demo .serving-popover>strong{display:block;font-size:12px;color:#777;padding:4px 8px 8px;}#happy-full-demo .serving-popover button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:9px;padding:9px 10px;text-align:left;}#happy-full-demo .serving-popover [aria-checked=true]{background:#efefef;}#happy-full-demo .category-manager{margin:16px 0;}#happy-full-demo .category-manager-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #e7e7e7;padding:12px 0;}#happy-full-demo .category-edit{flex:1;min-width:0;text-align:left;}#happy-full-demo .category-edit strong,#happy-full-demo .category-edit small{display:block;overflow-wrap:anywhere;}#happy-full-demo .category-edit strong{font-size:14px;color:#202020;}#happy-full-demo .category-edit small{font-size:12px;}#happy-full-demo #inline-category{padding:12px 16px;border:1px solid #e0e0e0;border-radius:14px;margin-top:12px;}

#happy-full-demo .filter-symbol{display:inline-block;width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url(./icons/filter-reference.png) center/contain no-repeat;mask:url(./icons/filter-reference.png) center/contain no-repeat;}#happy-full-demo .recipe-summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:12px 14px;border:1px solid #e0e0e0;border-radius:14px;background:#f6f6f6;min-height:64px;}#happy-full-demo .recipe-summary::-webkit-details-marker{display:none;}#happy-full-demo .recipe-summary>span{flex:1;min-width:0;}#happy-full-demo .recipe-summary small{display:block;font-size:12px;color:#777;font-weight:400;}#happy-full-demo .recipe-summary>svg{width:16px;height:16px;flex:none;transition:transform .15s;}#happy-full-demo .recipe-panel[open]>.recipe-summary>svg{transform:rotate(180deg);}#happy-full-demo .recipe-content{padding-top:16px;}#happy-full-demo .recipe-summary:focus-visible{outline:2px solid #737373;outline-offset:2px;}
#happy-full-demo .stock-category-panel{border:1px solid #e0e0e0;border-radius:16px;padding:12px 16px;margin:24px 0 0;min-width:0;}#happy-full-demo .stock-category-panel legend{font-weight:600;padding:0 6px;}#happy-full-demo .stock-category-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;}#happy-full-demo .stock-category-panel .check{align-items:center;}#happy-full-demo .stock-category-panel input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:#111;}#happy-full-demo .stock-category-panel label{overflow-wrap:anywhere;}#happy-full-demo .recipe-tools{display:grid;gap:0 12px;grid-template-columns:1fr 1fr;margin:8px 0;}#happy-full-demo .recipe-tools label{min-width:0;}#happy-full-demo .recipe-scope-note{color:#946c24!important;}#happy-full-demo .product-form{row-gap:0;}#happy-full-demo .product-form>#form-error:empty{display:none;}#happy-full-demo .product-form>[data-action=submit]{margin-top:24px;}#happy-full-demo .product-info-panel>.binding-group:last-child{margin-bottom:0;}#happy-full-demo .recipe-content>#recipe-visible-count{display:block;margin:0 0 12px;}@media(max-width:899px){#happy-full-demo .product-form>.recipe-panel{margin-top:24px;}}@media(max-width:420px){#happy-full-demo .recipe-tools{grid-template-columns:1fr;}}

#happy-full-demo .serving-trigger{justify-content:center;align-items:center;}#happy-full-demo .filter-label{display:block;line-height:16px;}#happy-full-demo .serving-trigger svg{width:14px;height:14px;flex:none;}
/* Category visibility stays separate from editing and ordering. */
#happy-full-demo .category-actions{display:flex;align-items:center;gap:20px;flex:none;}
#happy-full-demo .category-visibility{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;padding:8px 0;min-height:44px;font-size:12px;white-space:nowrap;}
#happy-full-demo .switch-track{display:block;position:relative;width:36px;height:22px;border-radius:12px;background:#d3d3d3;transition:background .15s;}
#happy-full-demo .switch-track:after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s;}
#happy-full-demo [aria-checked=true]>.switch-track{background:#191919;}
#happy-full-demo [aria-checked=true]>.switch-track:after{transform:translateX(14px);}
#happy-full-demo button.danger{background:transparent;color:#b42318;}
@media(max-width:600px){#happy-full-demo .category-manager-row{flex-wrap:wrap;gap:0;}#happy-full-demo .category-edit{flex-basis:100%;padding-bottom:0;}#happy-full-demo .category-actions{width:100%;justify-content:space-between;padding:0 14px;gap:8px;}}
#happy-full-demo button.danger{border:1px solid #b42318;display:flex;align-items:center;justify-content:center;gap:8px;}
#happy-full-demo button.danger svg,#happy-full-demo .item-actions svg{width:16px;height:16px;stroke-width:1.7;flex:none;}
#happy-full-demo .item-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid #e7e7e7;}
#happy-full-demo .item-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;}
#happy-full-demo .delete-item-button{color:#b42318;border:0;background:transparent;padding:8px 14px;}
#happy-full-demo .archived-label{color:#777;}
#happy-full-demo .stock-status.inactive{background:#eee;color:#777;}

@media(max-width:767px){#happy-full-demo main[data-page=Stock]>.product-grid{grid-template-columns:minmax(0,1fr);}}

#happy-full-demo .segmented button[aria-pressed=false]{background:#efefef;}
#happy-full-demo .serving-popover[hidden]{display:none!important;}
