/* v3.1.0: shared layout, scoped to Flavas admin and public staff forms. */
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist,#flavas-inventory-alarm,.flavas-web-choice,.flavas-checkout-choice) {text-align:left;box-sizing:border-box;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist,#flavas-inventory-alarm) :is(h1,h2,h3,h4,h5,h6,summary,p,label,th,td) {text-align:left!important;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) :is(h1,h2,h3) {line-height:1.35;margin-block:0.65em;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist,.flavas-web-choice,.flavas-checkout-choice) :is(select,input:not([type=hidden],[type=checkbox],[type=radio],[type=submit],[type=button],[type=reset]),textarea) {box-sizing:border-box!important;max-width:100%!important;min-height:44px!important;height:auto!important;padding:9px 12px!important;line-height:1.4!important;text-align:left!important;vertical-align:middle;field-sizing:fixed;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist,.flavas-web-choice,.flavas-checkout-choice) select {width:auto!important;min-width:min(100%, 16rem)!important;padding-right:36px!important;background-position:right 12px center!important;white-space:normal;text-overflow:clip;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) input:is([type=text],[type=email],[type=search],[type=url],[type=tel],:not([type])) {width:min(100%,22rem)!important;min-width:0!important;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) input:is([type=number],[type=password],[data-flavas-pin]) {width:min(100%,9rem)!important;min-width:0!important;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) textarea {width:min(100%,60ch)!important;min-height:100px!important;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) table {width:100%;max-width:100%;margin:12px 0;table-layout:auto;}
:is(.flavas-operations #wpbody-content .wrap,.flavas-inventory,.flavas-checklist) :is(th,td) {padding:10px 12px!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere;}
.flavas-operations .flpos-heading {flex-direction:row;justify-content:space-between;align-items:center;margin:0 0 16px;}
.flavas-operations .flpos-staff-side {width:min(100%,720px);flex:1 1 480px;margin:0;}
.flavas-operations :is(.flpos-staff-forms,#flavas-clock-form,.flpos-payments,.flpos-category-heading,.flpos-sale-heading,.flpos-report-filter,.flpos-report-actions,.flpos-order-heading,.flpos-online-actions,.flpos-online-cash-fields,.flpos-month-nav,.flpos-report-heading,.flpos-line,.flpos-refund-line,.flpos-totals>div,.flpos-tendered-label),.flavas-inventory :is(.qty-controls,.fraction-buttons,.flavas-inventory-staff,.report-date) {justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:10px;}
.flavas-operations .flpos-grid {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);justify-items:stretch;gap:16px;}
.flavas-operations .flpos-panel {width:100%;margin:0;min-width:0;text-align:left;}
.flavas-operations :is(.flpos-products,.flpos-choice-grid) {justify-content:flex-start;justify-items:stretch;}
.flavas-operations :is(.flpos-product,.flpos-choice-option,.flpos-category,.flpos-category span,.flpos-refund-success,.flpos-refund-amount) {text-align:left!important;}
.flavas-operations .flpos-refund-amount {margin-inline:0;}
.flavas-operations .flpos-staff-dropdown>summary {padding:12px 16px;min-height:24px;line-height:1.5;}
.flavas-operations .flpos-staff-content {max-height:none;overflow-x:auto;}
.flavas-operations :is(.flpos-table-wrap,.flpos-choice-editor,.flpos-panel,.flpos-modal-card),.flavas-inventory .inventory-table-scroll {max-width:100%;box-sizing:border-box;overflow-x:auto;}
.flavas-operations .flpos-modal-card {text-align:left;}
.flavas-operations .flpos-online-cash-fields select {flex:1 1 12rem;max-width:100%!important;}
.flavas-operations .flpos-online-cash-fields input {flex:1 1 8rem;}
.flavas-operations .flpos-payments .button {min-height:40px!important;overflow:visible;white-space:normal;}
.flavas-operations .flpos-order-heading .flpos-online-actions button {min-height:36px!important;padding:6px 10px;}
.flavas-operations .flpos-category-checks {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));}
.flavas-operations #flpos-categories .flpos-category {aspect-ratio:auto;min-height:100px;}
.flavas-operations #flpos-categories .flpos-category img {height:100px!important;object-fit:contain;}
@media(max-width:1350px){.flavas-operations .flpos-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.flavas-operations .flpos-online-panel{grid-column:1/-1;}}
@media(max-width:900px){.flavas-operations .flpos-grid{grid-template-columns:minmax(0,1fr);}.flavas-operations .flpos-online-panel{grid-column:auto;}}
@media(max-width:600px){.flavas-operations .flpos-staff-side{flex-basis:100%;}.flavas-operations #wpbody-content .wrap select,.flavas-inventory select{width:100%!important;min-width:0!important;}.flavas-operations .flpos-panel{padding:12px;}.flavas-operations .flpos-modal{padding:12px;}.flavas-operations .flpos-modal-card{padding:16px;}}

/* v3.2: two-column register modeled on 2Bros v10.0.2. */
body.toplevel_page_flpos {background:#fff1e3;}
body.toplevel_page_flpos #wpbody-content .wrap.flpos {max-width:100%;overflow-x:visible;}
body.toplevel_page_flpos .flpos-heading {display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
body.toplevel_page_flpos .flpos-staff-side {width:100%;flex:0 1 auto;}
body.toplevel_page_flpos .flpos-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,min(54%,calc(6in + 42px)));gap:12px;align-items:start;}
body.toplevel_page_flpos .flpos-grid .flpos-panel {width:100%;min-width:0;box-sizing:border-box;padding:14px;background:#fff9f2;border-color:#efc9a5;overflow:visible;}
body.toplevel_page_flpos .flpos-online-panel {grid-column:1/-1;}
body.toplevel_page_flpos #flpos-categories {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
body.toplevel_page_flpos #flpos-products {grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:11rem;gap:8px;}
body.toplevel_page_flpos .flpos-products > p {grid-column:1/-1;}
body.toplevel_page_flpos .flpos #flpos-categories .flpos-category,body.toplevel_page_flpos .flpos #flpos-products .flpos-product-item {display:grid;grid-template-rows:minmax(0,1fr) auto auto;align-items:center;gap:4px;width:100%!important;min-width:0;padding:6px;white-space:normal;overflow:hidden;}
body.toplevel_page_flpos .flpos #flpos-categories .flpos-category {aspect-ratio:1;min-height:110px;}
body.toplevel_page_flpos .flpos #flpos-categories .flpos-category img,body.toplevel_page_flpos .flpos #flpos-products .flpos-product-item img {width:100%!important;height:100%!important;min-height:0;max-height:none;object-fit:contain;margin:0!important;}
body.toplevel_page_flpos .flpos .flpos-products .flpos-product :is(span,strong,small) {font-size:clamp(11px,1vw,14px)!important;line-height:1.2;margin:0;overflow-wrap:anywhere;}
body.toplevel_page_flpos #wpbody-content .flpos-checkout-panel :is(.flpos-tendered-label,#flpos-tendered,.flpos-totals .grand,.flpos-totals .grand span,.flpos-totals .grand strong) {font-size:20pt!important;line-height:1.3;}
body.toplevel_page_flpos #flpos-tendered {width:min(100%,12ch)!important;}
body.toplevel_page_flpos .flpos-checkout-panel .flpos-payments {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
body.toplevel_page_flpos #wpbody-content .flpos-checkout-panel .flpos-payments .flpos-pay {width:100%!important;min-width:0!important;min-height:72px!important;height:auto!important;font-size:18px!important;white-space:normal;padding:8px 4px;}
body.toplevel_page_flpos .flpos-pay[data-method=ec_cash]{background:#166534;border-color:#166534;color:white;}
body.toplevel_page_flpos .flpos-pay[data-method=us_cash]{background:#1d4ed8;border-color:#1d4ed8;color:white;}
body.toplevel_page_flpos .flpos-pay[data-method=cash_app]{background:#641bc5;border-color:#641bc5;color:white;}
body.toplevel_page_flpos .flpos-pay[data-method=cc]{background:#ff8a1e;border-color:#ff8a1e;color:#241400;}
@media(max-width:1080px){body.toplevel_page_flpos .flpos-grid{grid-template-columns:minmax(0,1fr);}}
@media(max-width:600px){body.toplevel_page_flpos #flpos-categories{grid-template-columns:repeat(2,minmax(0,1fr));}body.toplevel_page_flpos #flpos-products{grid-template-columns:repeat(3,minmax(0,1fr));}body.toplevel_page_flpos .flpos-checkout-panel .flpos-payments{grid-template-columns:repeat(2,minmax(0,1fr));}}

body.toplevel_page_flpos .flpos-checkout-panel .flpos-payments{grid-template-columns:repeat(3,minmax(0,1fr));} #flpos-quick-cash{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0;} #flpos-quick-cash .button{flex:1;min-height:44px;font-size:16px;}

#flpos-quick-cash {grid-template-columns:repeat(4,minmax(0,1fr));}
