.af-price-panel{margin:12px 0;border:1px solid #d9e5ef;border-radius:16px;background:#fff;color:#21445f;overflow:hidden}
.af-price-panel>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:12px;cursor:pointer;list-style:none}.af-price-panel>summary::-webkit-details-marker{display:none}.af-price-panel>summary span{flex:1;display:grid;gap:4px}.af-price-panel>summary small{font-size:12px;color:#617c93}.af-price-panel>summary b{min-width:32px;padding:6px;background:#edf5fc;border-radius:9px;text-align:center}
.af-price-body{padding:0 12px 12px}.af-price-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.af-price-filters label{display:grid;gap:5px;font-size:13px;min-width:0}.af-price-filters input,.af-price-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #cbdde9;border-radius:10px;background:#fff;padding:8px;color:#244b6a;font-size:16px}
#price-audit button,#customer-quick-dialog button,#customer-quick-dialog a,.af-customer-quick{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:9px 12px;border:1px solid #cbdde9;border-radius:10px;background:#f5faff;color:#24658f;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none;white-space:normal;cursor:pointer;box-shadow:none}
#price-audit button:disabled,#customer-quick-dialog button:disabled{opacity:.55;cursor:wait}.af-price-help,.af-quick-note,#price-audit-counts{color:#617c93;font-size:12px;line-height:1.5;margin:10px 0}#price-audit-status,#customer-quick-status{font-size:14px;line-height:1.5;color:#496b84;margin:10px 0}#price-audit-status:empty,#customer-quick-status:empty{display:none}
.af-price-card{padding:12px;border:1px solid #dce7ef;border-radius:13px;margin:12px 0;overflow-wrap:anywhere}.af-price-card header{display:flex;gap:8px;align-items:flex-start}.af-price-card header>strong{flex:1;min-width:0;font-size:17px}.af-price-tag{font-size:11px;padding:4px 7px;background:#edf4fa;border-radius:8px;flex-shrink:0}.af-price-warning{color:#a75c14!important}.af-price-card p{font-size:12px;line-height:1.5;margin:6px 0;color:#627b90}.af-price-lines>div{display:grid;gap:4px;padding:9px;background:#f7fafc;border-radius:9px;margin:8px 0;font-size:13px}.af-price-lines strong{font-size:14px;color:#284b66}#price-audit-more,#price-audit-refresh{width:100%}
dialog#customer-quick-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 20px));max-width:none;max-height:calc(100dvh - 32px);padding:16px;border:0;border-radius:18px;overflow:auto;color:#244b6a;background:#fff}#customer-quick-dialog::backdrop{background:rgb(12 34 54 / .46)}.af-quick-head{display:flex;gap:10px;align-items:center}.af-quick-head h2{margin:0;font-size:21px;flex:1}#customer-quick-dialog #customer-quick-close{width:44px;padding:8px;font-size:24px;background:#f0f5fa}
.af-quick-search{display:grid;gap:5px;margin:14px 0;font-size:13px}.af-quick-search input,.af-quick-toolbar input{box-sizing:border-box;width:100%;min-width:0;height:46px;padding:9px;border:1px solid #cbdde9;border-radius:10px;font-size:16px;background:#fff;color:#244b6a}.af-quick-toolbar{display:flex;align-items:flex-end;gap:10px}.af-quick-toolbar label{display:grid;flex:1;gap:5px;min-width:0;font-size:13px}
#customer-quick-results button{display:flex;align-items:flex-start;flex-direction:column;text-align:left;width:100%;margin:6px 0}#customer-quick-results small{font-weight:400;color:#658097}.af-quick-identity{margin:15px 0;overflow-wrap:anywhere}.af-quick-identity h3{margin:0;font-size:21px}.af-quick-identity p{font-size:13px;line-height:1.5;color:#607c93;margin:7px 0}.af-quick-section{padding:12px;border:1px solid #dce7ef;border-radius:12px;margin:10px 0}.af-quick-section h4{margin:0 0 6px;font-size:12px;color:#617c93;font-weight:500}.af-quick-section>strong{font-size:17px;overflow-wrap:anywhere}.af-quick-section p{font-size:13px;line-height:1.5;margin:7px 0 0}.af-quick-actions{display:flex;flex-wrap:wrap;gap:8px}.af-quick-actions>*{flex:1 1 42%;min-width:0}.af-quick-history{margin-top:14px;font-size:13px}.af-quick-history summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.af-quick-history p{display:grid;gap:4px;padding:8px;border-bottom:1px solid #e8eff5}.af-quick-history span{color:#617c93;line-height:1.5}
#customers .af-customer-quick{display:flex;margin:0 10px 10px;width:calc(100% - 20px);font-size:13px;background:#f5faff}#customer-reminders .af-water-actions{flex-wrap:wrap}#customer-reminders [data-customer-quick]{background:#f5faff!important;color:#24658f!important;border-color:#cbdde9!important}
#price-audit[hidden],#price-audit [hidden]{display:none!important}.af-customer-quick:focus-visible,#price-audit button:focus-visible,#customer-quick-dialog button:focus-visible,#customer-quick-dialog a:focus-visible{outline:3px solid #9bcfff;outline-offset:2px}
@media(min-width:900px){.af-price-filters{grid-template-columns:repeat(4,minmax(0,1fr))}#price-audit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.af-price-card{margin:0}.af-price-body #price-audit-list{margin:12px 0}}
@media(max-width:360px){dialog#customer-quick-dialog{padding:12px}.af-price-body{padding:0 10px 10px}.af-price-card{padding:10px}}

/* V34.2.97: contained native pickers and balanced customer actions. */
body.unified-shell #customers .af-customer-heading{padding:0 2px!important;margin:0 0 10px!important;min-height:0!important}
body.unified-shell #customers .af-customer-heading small{font-size:11px!important;line-height:1.4!important;letter-spacing:.1em!important}
body.unified-shell #customers .af-customer-heading h2{margin:3px 0 0!important;font-size:24px!important;line-height:1.25!important}
body.unified-shell #customers .af-customer-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important}
body.unified-shell #customers .af-customer-toolbar>.btn{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:0!important;padding:9px 8px!important;font-size:14px!important;line-height:1.3!important;text-align:center!important;white-space:normal!important}
body.unified-shell :is(#customer-reminders,#customer-quick-dialog,#price-audit) .af-native-field{position:relative!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;isolation:isolate;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;padding:0 10px!important;border:1px solid #c7d8e7!important;border-radius:11px!important;background:#fff!important;overflow:hidden!important}
body.unified-shell :is(#customer-reminders,#customer-quick-dialog,#price-audit) .af-native-field>span{display:block!important;min-width:0!important;width:100%!important;padding:0!important;color:#173b5b!important;font-size:16px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:0!important;font-variant-numeric:tabular-nums;text-align:center!important;white-space:nowrap!important;pointer-events:none!important}
body.unified-shell :is(#customer-reminders,#customer-quick-dialog,#price-audit) .af-native-field>input{position:absolute!important;inset:0!important;z-index:1!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;opacity:0!important;font-size:16px!important;cursor:pointer!important}
body.unified-shell :is(#customer-reminders,#customer-quick-dialog,#price-audit) .af-native-field:focus-within{border-color:#0878ef!important;box-shadow:none!important}
body.unified-shell #customer-quick-dialog .af-quick-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 98px!important;gap:8px!important;align-items:end!important}
body.unified-shell #customer-quick-dialog .af-quick-toolbar label{margin:0!important;min-width:0!important;gap:5px!important;line-height:1.4!important;font-size:13px!important}
body.unified-shell #customer-quick-dialog #customer-quick-refresh{width:100%!important;min-width:0!important;height:44px!important;padding:8px 6px!important;font-size:13px!important;line-height:1.3!important}
body.unified-shell #customer-quick-dialog .af-quick-head{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:8px;border-bottom:1px solid #e5edf4}
body.unified-shell #customer-quick-dialog .af-quick-head h2{min-width:0;font-size:20px;line-height:1.3}
body.unified-shell #customer-quick-dialog .af-quick-section{padding:10px;margin:9px 0;border-radius:12px}
body.unified-shell #customer-quick-dialog .af-quick-section h4{font-size:12px;letter-spacing:0;font-weight:600}
@media(min-width:760px){body.unified-shell #customers .af-customer-toolbar{max-width:440px}}

/* V34.2.98: keep the price source visible in a compact filter and card. */
#price-audit .af-price-basis{grid-column:1/-1}
#price-audit .af-price-tag{max-width:48%;white-space:normal;line-height:1.4;text-align:center}

/* V34.2.100: customer forms scroll inside a fixed header and action row. */
body.unified-shell dialog#customer-dialog{box-sizing:border-box!important;position:fixed!important;inset:0!important;width:min(560px,calc(100vw - 24px))!important;max-width:560px!important;height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;padding:0!important;border:1px solid #d8e5ef!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important}
body.unified-shell dialog#customer-dialog>#customer-form{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.unified-shell dialog#customer-dialog .dialog-head{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:auto!important;min-height:0!important;margin:0!important;padding:14px 16px!important;border-bottom:1px solid #e0e9f1!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}
body.unified-shell dialog#customer-dialog .dialog-head>div{padding:0!important;min-width:0!important}
body.unified-shell dialog#customer-dialog .dialog-head h2{font-size:22px!important;line-height:1.25!important;margin:4px 0 0!important;letter-spacing:-.02em!important}
body.unified-shell dialog#customer-dialog .dialog-head small{font-size:10px!important;line-height:1.4!important;letter-spacing:.12em!important}
body.unified-shell dialog#customer-dialog .icon-btn{box-sizing:border-box!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:1px solid #d0dfeb!important;border-radius:11px!important;background:#f4f8fc!important;font-size:26px!important;line-height:1!important;box-shadow:none!important}
body.unified-shell dialog#customer-dialog .af-customer-form-body{box-sizing:border-box!important;display:grid!important;align-content:start!important;gap:12px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:14px 16px 18px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:16px}
body.unified-shell dialog#customer-dialog label{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important;color:#253d53!important;font-size:14px!important;font-weight:650!important;line-height:1.4!important}
body.unified-shell dialog#customer-dialog label>small{font-size:12px!important;font-weight:400!important;color:#658097!important}
body.unified-shell dialog#customer-dialog :is(input:not([type=hidden]),textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;padding:10px 12px!important;border:1px solid #cbdce9!important;border-radius:11px!important;background:#fff!important;color:#18334c!important;font-family:inherit!important;font-size:16px!important;font-weight:500!important;line-height:1.4!important;box-shadow:none!important}
body.unified-shell dialog#customer-dialog textarea{height:68px!important;min-height:68px!important;resize:vertical}
body.unified-shell dialog#customer-dialog input::placeholder,body.unified-shell dialog#customer-dialog textarea::placeholder{color:#91a2b2!important;font-size:15px!important;font-weight:400!important}
body.unified-shell dialog#customer-dialog :is(input,textarea):focus{outline:none!important;border-color:#0878ef!important;box-shadow:none!important}
body.unified-shell dialog#customer-dialog .customer-price-field{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body.unified-shell dialog#customer-dialog :is(.field-help,.helper-note){margin:0!important;color:#658097!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important;letter-spacing:0!important}
body.unified-shell dialog#customer-dialog .af-customer-opening{min-width:0;border:1px solid #d4e3ee;border-radius:12px;background:#f7fbff;overflow:hidden}
body.unified-shell dialog#customer-dialog .af-customer-opening>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;cursor:pointer;list-style:none;font-size:14px;font-weight:650;color:#244b69}
body.unified-shell dialog#customer-dialog .af-customer-opening>summary::-webkit-details-marker{display:none}
body.unified-shell dialog#customer-dialog .af-customer-opening>summary span{display:grid;flex:1;gap:3px;min-width:0}
body.unified-shell dialog#customer-dialog .af-customer-opening>summary small{font-size:11px;color:#688196;font-weight:400}
body.unified-shell dialog#customer-dialog .af-customer-opening>summary b{font-size:18px;font-weight:400}
body.unified-shell dialog#customer-dialog .af-customer-opening[open]>summary b{transform:rotate(180deg)}
body.unified-shell dialog#customer-dialog .legacy-bottle-box{display:grid!important;gap:12px!important;margin:0!important;padding:0 12px 12px!important;border:0!important;border-radius:0!important;background:transparent!important}
body.unified-shell dialog#customer-dialog .legacy-bottle-box .two{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
body.unified-shell dialog#customer-dialog .workflow-fixed-actions{box-sizing:border-box!important;position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-height:0!important;width:auto!important;margin:0!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #dce7f0!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}
body.unified-shell dialog#customer-dialog .workflow-fixed-actions .btn{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;margin:0!important;padding:10px!important;border-radius:11px!important;font-size:16px!important;line-height:1.3!important;box-shadow:none!important}
body.unified-shell dialog#customer-dialog .is-hidden{display:none!important}

/* Customer history has its own month filter, independent of the workday. */
body.unified-shell dialog#customer-history-dialog{box-sizing:border-box!important;position:fixed!important;inset:0!important;width:min(660px,calc(100vw - 24px))!important;max-width:660px!important;height:min(820px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;padding:0!important;border:1px solid #d8e5ef!important;border-radius:18px!important;background:#fff!important;color:#234661;overflow:hidden!important}
body.unified-shell #customer-history-dialog:not([open]){display:none!important}
body.unified-shell #customer-history-dialog .af-history-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0}
body.unified-shell #customer-history-dialog .af-history-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #e0e9f1;background:#fff}
body.unified-shell #customer-history-dialog .af-history-head>div{min-width:0;flex:1}
body.unified-shell #customer-history-dialog .af-history-head small{font-size:10px;color:#0878ef;font-weight:750;letter-spacing:.1em}
body.unified-shell #customer-history-dialog h2{margin:4px 0;font-size:22px;line-height:1.25;overflow-wrap:anywhere}
body.unified-shell #customer-history-dialog .af-history-head p{margin:0;color:#658097;font-size:12px;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.unified-shell #customer-history-dialog .af-history-body{box-sizing:border-box;min-height:0;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body.unified-shell #customer-history-dialog button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;margin:0;border:1px solid #cbdce9;border-radius:11px;background:#f7fbff;color:#24658f;font-family:inherit;font-size:14px;font-weight:650;line-height:1.35;cursor:pointer;box-shadow:none}
body.unified-shell #customer-history-dialog #customer-history-close{width:40px;height:40px;min-height:40px;padding:0;flex:0 0 40px;font-size:26px}
body.unified-shell #customer-history-dialog button[aria-pressed=true]{background:#eaf4ff;color:#0878ef;border-color:#a3cfff}
body.unified-shell #customer-history-dialog button:disabled{opacity:.55;cursor:wait}
body.unified-shell #customer-history-dialog :is(button,summary):focus-visible{outline:2px solid #8ec9ff;outline-offset:2px}
body.unified-shell #customer-history-dialog [hidden]{display:none!important}
body.unified-shell #customer-history-dialog .af-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
body.unified-shell #customer-history-dialog .af-history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 124px;gap:8px;align-items:end}
body.unified-shell #customer-history-dialog .af-history-toolbar label{display:grid;gap:5px;min-width:0;margin:0;font-size:12px;font-weight:500}
body.unified-shell #customer-history-dialog .af-history-native{position:relative;display:grid;place-items:center;box-sizing:border-box;min-width:0;width:100%;height:44px;border:1px solid #cbdce9;border-radius:11px;background:#fff;overflow:hidden}
body.unified-shell #customer-history-dialog .af-history-native>span{font-size:16px;font-weight:650;pointer-events:none;font-variant-numeric:tabular-nums}
body.unified-shell #customer-history-dialog .af-history-native>input{box-sizing:border-box;position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;margin:0;opacity:0;font-size:16px;cursor:pointer}
body.unified-shell #customer-history-dialog .af-history-native:focus-within{border-color:#0878ef}
body.unified-shell #customer-history-dialog .af-history-count-row{display:flex;align-items:center;gap:8px;margin:10px 0}
body.unified-shell #customer-history-dialog .af-history-count-row p{flex:1;min-width:0;margin:0;font-size:12px;line-height:1.4;color:#658097}
body.unified-shell #customer-history-dialog #customer-history-refresh{font-size:12px;padding:8px;flex-shrink:0}
body.unified-shell #customer-history-dialog #customer-history-status{font-size:13px;line-height:1.45;color:#658097}
body.unified-shell #customer-history-dialog #customer-history-status:empty{display:none}
body.unified-shell #customer-history-dialog .af-history-card{margin:10px 0;border:1px solid #d8e5ef;border-radius:12px;overflow:hidden;background:#fff}
body.unified-shell #customer-history-dialog .af-history-card>summary{display:grid;gap:6px;padding:12px;list-style:none;cursor:pointer;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
body.unified-shell #customer-history-dialog .af-history-card>summary::-webkit-details-marker{display:none}
body.unified-shell #customer-history-dialog .af-history-card-head{display:flex;align-items:start;justify-content:space-between;gap:8px}
body.unified-shell #customer-history-dialog .af-history-card-head strong{font-size:15px;min-width:0}
body.unified-shell #customer-history-dialog .af-history-card-head b{font-size:11px;font-weight:550;padding:4px 7px;border-radius:7px;background:#edf5fc;white-space:normal;text-align:center}
body.unified-shell #customer-history-dialog .af-history-date{font-size:12px;color:#658097}
body.unified-shell #customer-history-dialog .af-history-total{display:flex;justify-content:space-between;gap:8px;font-weight:700;color:#173b5b}
body.unified-shell #customer-history-dialog .af-history-total i{font-style:normal;font-weight:400}
body.unified-shell #customer-history-dialog .af-history-card[open] .af-history-total i{transform:rotate(180deg)}
body.unified-shell #customer-history-dialog .af-history-detail{padding:0 12px 12px;border-top:1px solid #e8eff5;font-size:13px}
body.unified-shell #customer-history-dialog .af-history-detail p{display:flex;justify-content:space-between;gap:8px;line-height:1.45;margin:10px 0;overflow-wrap:anywhere}
body.unified-shell #customer-history-dialog .af-history-detail strong{text-align:right;font-weight:650}
body.unified-shell #customer-history-dialog .af-history-detail .af-history-note{display:block;color:#658097}
body.unified-shell #customer-history-dialog .af-history-detail button{width:100%;margin-top:6px}
body.unified-shell #customer-history-dialog .af-history-empty{padding:18px 12px;border:1px dashed #cbdce9;border-radius:12px;font-size:14px}
body.unified-shell #customer-history-dialog .af-history-empty p{margin:8px 0 0;font-size:13px;line-height:1.5;color:#658097}
body.unified-shell #customer-history-dialog #customer-history-more{width:100%;margin-top:8px}
@media(max-width:760px){body.unified-shell dialog#customer-dialog,body.unified-shell dialog#customer-history-dialog{width:100vw!important;max-width:100vw!important;height:var(--af-customer-dialog-height,100dvh)!important;max-height:var(--af-customer-dialog-height,100dvh)!important;inset:var(--af-customer-dialog-top,0px) 0 auto!important;margin:0!important;border:0!important;border-radius:0!important}body.unified-shell dialog#customer-dialog .dialog-head,body.unified-shell #customer-history-dialog .af-history-head{padding-top:calc(14px + env(safe-area-inset-top,0px))!important}}
@media(max-width:360px){body.unified-shell #customer-history-dialog .af-history-toolbar{grid-template-columns:minmax(0,1fr) 112px}body.unified-shell #customer-history-dialog .af-history-body,body.unified-shell dialog#customer-dialog .af-customer-form-body{padding-left:12px!important;padding-right:12px!important}}
