/* Compact shared header: title/status and date/time, no duplicate account chip. */
.app-shell .topbar{display:grid;grid-template-columns:38px minmax(110px,1fr) auto auto;align-items:center;gap:12px;height:auto;min-height:64px;flex:0 0 auto;padding:8px 16px;box-sizing:border-box;overflow:visible;top:auto}
.app-shell .topbar .mobile-menu{grid-column:1;grid-row:1;margin:0;min-width:0}
.app-shell .topbar .page-heading{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:0;max-width:none;margin:0;padding:0}
.app-shell .topbar .page-heading h1{max-width:100%;margin:0;font-size:20px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell .topbar .page-heading #sync-status-button{display:inline-flex;align-items:center;gap:5px;width:auto;max-width:100%;min-width:0;justify-content:flex-start;min-height:20px;height:auto;margin:0;padding:1px 0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:11px;line-height:1.35;cursor:pointer}
.app-shell .topbar .page-heading #sync-status-button .sync-icon{display:none}
.app-shell .topbar .page-heading #sync-status-button .sync-dot{flex:0 0 6px;width:6px;height:6px}
.app-shell .topbar .page-heading #sync-status-label{display:block;min-width:0;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell .topbar .topbar-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;margin:0}
.app-shell .topbar .header-datetime{grid-column:4;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;min-width:88px;margin:0;padding:2px 0;color:#31516a;white-space:nowrap;font-variant-numeric:tabular-nums}
.app-shell .topbar .header-datetime #header-date{display:block;margin:0;font-size:11px;font-weight:600;line-height:1.25;letter-spacing:0}
.app-shell .topbar .header-datetime #live-clock{display:block;min-width:0;margin:0;font-size:13px;font-weight:800;line-height:1.25;text-align:right}
.app-shell .topbar .page-heading #sync-status-button:focus-visible{outline:2px solid #1979b3;outline-offset:3px;border-radius:3px}
@media(max-width:1000px){.app-shell .topbar{gap:9px;padding-inline:12px}.app-shell .topbar .topbar-actions{gap:6px}.app-shell .topbar .page-heading h1{font-size:18px}}
/* Tablet portrait retains the desktop row: controls are grouped, never spread out. */
@media(min-width:651px) and (max-width:1000px){
 .app-shell .topbar{grid-template-columns:32px minmax(80px,1fr) auto auto;gap:8px;min-height:64px;padding:8px 12px}
 .app-shell .topbar .mobile-menu{width:32px;height:38px;padding:0}
 .app-shell .topbar .topbar-actions{width:auto;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
 .app-shell .topbar .outlet-control{min-width:0;max-width:136px}.app-shell .topbar .outlet-control select{min-width:72px;max-width:112px}
 .app-shell .topbar .header-datetime{min-width:76px}
}
@media(max-width:650px){
 .app-shell .topbar{grid-template-columns:32px minmax(0,1fr) auto;gap:6px 8px;min-height:0;padding:8px}
 .app-shell .topbar .mobile-menu{grid-column:1;grid-row:1;width:32px;min-width:32px;height:38px;padding:0;flex-basis:32px}
 .app-shell .topbar .topbar-actions{grid-column:2/-1;grid-row:1;width:100%;flex-wrap:nowrap;justify-content:flex-end;gap:5px;margin:0;padding:0;overflow-x:auto;scrollbar-width:thin}
 .app-shell .topbar .page-heading{grid-column:1/3;grid-row:2}
 .app-shell .topbar .page-heading h1{font-size:18px}
 .app-shell .topbar .header-datetime{grid-column:3;grid-row:2;min-width:84px}
 .app-shell .topbar .outlet-control{min-width:0;flex:0 1 110px;padding-inline:6px}.app-shell .topbar .outlet-control select{min-width:0;width:100%;max-width:98px}
 .app-shell .topbar .topbar-actions>.icon-button,.app-shell .topbar .topbar-actions>.connection-button,.app-shell .topbar .topbar-actions>.help-button{flex:0 0 38px;width:38px;min-width:38px;height:38px;padding:0}
 .app-shell .topbar .help-button{font-size:0}.app-shell .topbar .help-button::before{content:'?';font-size:16px;font-weight:800}
 .app-shell .topbar .cashier-shift-button{flex:0 0 auto;max-width:76px;white-space:nowrap;padding-inline:6px;font-size:10px}
}

#outlet-control[hidden], .module-location-field[hidden], .module-location-choices[hidden], label[hidden] + .module-location-choices, .module-receipt-settings[hidden] { display: none !important; }
.module-location-field { display: grid; gap: .35rem; min-width: 0; }
.module-location-field select { width: 100%; min-width: 0; }
.module-location-choices { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; min-width: 0; padding: .45rem .65rem; border: 1px solid #bdcfdf; border-radius: .5rem; }
.module-location-choices label { display: flex; align-items: center; gap: .35rem; }
.module-location-choices input { width: auto; min-height: 0; }
.finance-filters > .module-location-choices, .product-toolbar-filters > .module-location-choices { order: 1; flex: 0 0 100%; grid-column: 1 / -1; box-sizing: border-box; }
.finance-filters .module-location-choices label { flex: 0 0 auto; min-width: 0; }
#produk .product-toolbar-filters { grid-template-columns: repeat(4,minmax(0,1fr)) max-content; align-items: end; }
@media(max-width:680px) { #produk .product-toolbar-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
#dashboard > .module-location-field, #transaksi > .module-location-field, #purchase-panel-persetujuan > .module-location-field, #mutasi > .module-location-field { max-width: 25rem; margin-block: .5rem .75rem; }
.module-receipt-settings { display: grid; grid-template-columns: minmax(0,24rem) auto; justify-content: start; align-items: end; gap: .75rem; padding: 1rem; }
.module-receipt-settings h3 { grid-column: 1 / -1; margin: 0; }

.product-toolbar-actions button[hidden] { display: none !important; }
.order-modifier-settings { width: min(960px, calc(100vw - 24px)); max-height: 90dvh; overflow: auto; }
.order-modifier-settings header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-modifier-settings section { margin-block: 1rem; }
.order-modifier-settings .table-wrap { overflow-x: auto; margin-bottom: .5rem; }
.order-modifier-settings td :is(input:not([type="radio"]), select) { width: 100%; min-width: 6rem; }
.order-modifier-settings td:first-child input { min-width: 8rem; }
.order-modifier-settings td select { min-width: 10rem; }
.order-modifier-settings [data-status] { min-height: 1.5rem; }
#modifier-dialog fieldset[hidden] { display: none !important; }

.order-modifier-scope { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); margin-block: .8rem; }
.order-modifier-scope > label { display: grid; gap: .35rem; }
.order-modifier-targets { display: flex; flex-wrap: wrap; gap: .5rem 1rem; border: 1px solid #bdd3e5; border-radius: .5rem; }
.order-modifier-targets label { display: flex; align-items: center; gap: .3rem; }
.order-modifier-targets[hidden], .order-modifier-scope[hidden] { display: none !important; }

.order-modifier-switches { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-block: .75rem 1rem; }
.order-modifier-switches label { display: flex; align-items: center; gap: .5rem; }
.order-modifier-switches select { width: auto; min-width: 4.5rem; }
