/* Admin Konter — panel operasional front-end (desktop, tablet, mobile) */
.konter-wrap.konter-staff-mode { max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; background: #f3f7f4; }
.konter-staff-mode .konter-main { min-height: 100vh; padding: 0; background: #f3f7f4; }
.konter-staff-mode .konter-screen { padding: 0; width: 100%; flex: 1; }
.staff-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); color: #18251d; background: #f3f7f4; font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.staff-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; background: #fff; border-right: 1px solid #e7eee9; z-index: 20; }
.staff-brand { display: flex; align-items: center; gap: 11px; padding: 2px 9px 24px; color: inherit; text-decoration: none; }
.staff-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg,#1bad54,#08743a); color: #fff; font-size: 21px; font-weight: 800; box-shadow: 0 6px 14px #11934830; }
.staff-brand b,.staff-brand small { display: block; }
.staff-brand b { font-size: 15px; letter-spacing: -.02em; }
.staff-brand small { margin-top: 3px; color: #829086; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.staff-nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.staff-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: #67756c; text-align: left; font-size: 13px; font-weight: 650; cursor: pointer; transition: .15s ease; }
.staff-nav-item svg { flex: 0 0 auto; }
.staff-nav-item:hover { background: #f2f8f3; color: #14783d; }
.staff-nav-item.is-active { background: #e9f7ed; color: #118244; box-shadow: inset 3px 0 #16a34a; }
.staff-nav-item em { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 99px; background: #fef2d6; color: #a96605; text-align: center; font-size: 10px; font-style: normal; }
.staff-side-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 4px 2px; border-top: 1px solid #edf1ee; }
.staff-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; background: #def3e5; color: #08783b; font-weight: 800; }
.staff-user { min-width: 0; flex: 1; }
.staff-user b,.staff-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-user b { font-size: 12px; }
.staff-user small { margin-top: 2px; color: #849087; font-size: 10px; }
.staff-logout,.staff-mobile-head button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e8eee9; border-radius: 11px; background: #fff; color: #66756b; cursor: pointer; }
.staff-workspace { min-width: 0; padding: 28px clamp(18px,3vw,44px) 50px; }
.staff-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 3px 0 24px; }
.staff-page-head h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(23px,2.2vw,31px); font-weight: 750; letter-spacing: -.04em; }
.staff-page-head h1 svg { color: #15954b; }
.staff-page-head p,.staff-panel-head p { margin: 6px 0 0; color: #7c8980; font-size: 12px; line-height: 1.55; }
.staff-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid #e0e8e1; border-radius: 11px; background: #fff; color: #425047; font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s ease; }
.staff-button:hover { border-color: #9bd5ac; color: #0d7738; transform: translateY(-1px); }
.staff-button:disabled { opacity: .55; cursor: wait; transform: none; }
.staff-button-primary { border-color: #149147; background: #149147; color: #fff; box-shadow: 0 5px 12px #13924820; }
.staff-button-primary:hover { border-color: #08743a; background: #08743a; color: #fff; }
.staff-content { display: flex; flex-direction: column; gap: 18px; }
.staff-panel { min-width: 0; padding: 20px; border: 1px solid #e8eee9; border-radius: 18px; background: #fff; box-shadow: 0 6px 22px #183a2310; }
.staff-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.staff-panel-head h2 { font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.staff-panel-head h3 { font-size: 18px; }
.staff-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: #148544; font-weight: 700; font-size: 11px; cursor: pointer; white-space: nowrap; }
.staff-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.staff-kpi { min-width: 0; padding: 16px; border: 1px solid #e8efe9; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px #183a2309; }
.staff-kpi:before { content: ''; display: block; width: 29px; height: 4px; margin-bottom: 12px; border-radius: 4px; background: #8fb49a; }
.staff-kpi.is-sales:before { background: #27a75b; }
.staff-kpi.is-profit:before { background: #617cdf; }
.staff-kpi.is-net:before { background: #e6a631; }
.staff-kpi.is-pending:before { background: #e98b59; }
.staff-kpi span,.staff-kpi small { display: block; color: #7c8980; font-size: 11px; }
.staff-kpi strong { display: block; overflow: hidden; margin: 5px 0; color: #17251b; font-size: clamp(18px,1.8vw,24px); font-weight: 800; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.staff-kpi small { font-size: 10px; }
.staff-grid-two { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,1fr); gap: 16px; }
.staff-chart { height: 170px; display: flex; align-items: end; gap: 12px; padding: 16px 8px 0; border-bottom: 1px solid #edf1ee; }
.staff-chart-col { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; min-width: 0; }
.staff-chart-bar { width: min(34px,75%); min-height: 4px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg,#32bd6c,#138744); box-shadow: 0 3px 9px #118b4625; }
.staff-chart-col small { height: 14px; color: #87928a; font-size: 9px; }
.staff-chart-legend { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #829087; font-size: 10px; }
.staff-chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: #15934a; }
.staff-quick-panel { padding-bottom: 10px; }
.staff-quick { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 2px; border: 0; border-top: 1px solid #f0f3f0; background: #fff; color: #188447; text-align: left; cursor: pointer; }
.staff-quick span { flex: 1; }
.staff-quick b,.staff-quick small { display: block; }
.staff-quick b { color: #29382e; font-size: 12px; }
.staff-quick small { margin-top: 3px; color: #87928a; font-size: 10px; }
.staff-quick > svg:last-child { color: #aab5ac; }
.staff-table-wrap { width: 100%; overflow: auto; border: 1px solid #edf1ee; border-radius: 12px; }
.staff-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 11px; text-align: left; }
.staff-table th { padding: 11px 12px; background: #f7faf7; color: #77847a; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.staff-table td { padding: 11px 12px; border-top: 1px solid #f0f3f0; color: #4e5a51; vertical-align: middle; }
.staff-table td b,.staff-table td small { display: block; }
.staff-table td b { max-width: 230px; overflow: hidden; color: #27352b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.staff-table td small { margin-top: 4px; color: #8a958c; font-size: 9px; line-height: 1.4; }
.staff-status { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: #f1f4f2; color: #66736a; font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.staff-status.status-success,.staff-status.status-paid { background: #e2f7e9; color: #0c7b3a; }
.staff-status.status-processing { background: #eaf0ff; color: #4a67c2; }
.staff-status.status-pending { background: #fff3d9; color: #9b650c; }
.staff-status.status-failed,.staff-status.status-cancelled { background: #ffe9e7; color: #bb3b32; }
.staff-icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid #e6ece7; border-radius: 9px; background: #fff; color: #5a6e5e; cursor: pointer; }
.staff-icon-button:hover { border-color: #99cfaa; color: #138242; }
.staff-icon-button.is-danger { color: #b84d45; }
.staff-positive { color: #138242 !important; font-weight: 750; }
.staff-negative { color: #ba3e35 !important; font-weight: 750; }
.staff-empty { padding: 30px 14px; color: #87928a; text-align: center; font-size: 12px; }
.staff-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 14px; }
.staff-filter input,.staff-filter select,.staff-label + .staff-inline-form select,.staff-form-grid input,.staff-form-grid select,.staff-manual-form input { min-height: 38px; padding: 8px 10px; border: 1px solid #dfe8e0; border-radius: 9px; background: #fff; color: #26352b; font: inherit; font-size: 11px; }
.staff-filter input[name=search] { min-width: min(310px,100%); flex: 1; }
.staff-filter label { display: grid; gap: 5px; color: #67756a; font-size: 10px; font-weight: 700; }
.staff-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.staff-form-grid > label { display: grid; gap: 6px; color: #67756a; font-size: 10px; font-weight: 750; }
.staff-form-grid input,.staff-form-grid select { width: 100%; min-width: 0; }
.staff-form-grid input:focus,.staff-form-grid select:focus,.staff-filter input:focus,.staff-filter select:focus,.staff-manual-form input:focus { border-color: #30a85f; outline: 3px solid #27a65720; }
.staff-form-wide { grid-column: 1/-1; }
.staff-check { display: flex !important; align-items: center; gap: 8px !important; }
.staff-check input { width: 16px; min-height: 16px; accent-color: #15934a; }
.staff-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.staff-subhead { margin: 20px 0 11px; font-size: 13px; }
.staff-note { margin: 12px 0 0; color: #7d8980; font-size: 10px; line-height: 1.6; }
.staff-inline-form { display: flex; align-items: center; gap: 8px; }
.staff-inline-form select { min-width: 150px; }
.staff-label { display: block; margin: 20px 0 7px; color: #67756a; font-size: 11px; font-weight: 750; }
.staff-order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 13px 0; }
.staff-order-grid > div { display: grid; gap: 4px; padding: 12px; border-radius: 11px; background: #f7faf7; }
.staff-order-grid small,.staff-order-grid span { color: #7b887e; font-size: 10px; }
.staff-order-grid b { color: #26372b; font-size: 12px; overflow-wrap: anywhere; }
.staff-scan-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); align-items: start; gap: 16px; }
.staff-video-wrap { position: relative; display: grid; place-items: center; min-height: 290px; overflow: hidden; border-radius: 15px; background: #152019; }
.staff-video-wrap video { display: block; width: 100%; max-height: 390px; object-fit: cover; }
.staff-video-wrap video:not([srcObject]) { background: #152019; }
.staff-camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #b9d2be; font-size: 12px; }
.staff-camera-placeholder[hidden] { display: none; }
.staff-scan-frame { position: absolute; width: min(210px,65%); aspect-ratio: 1; border: 2px solid #6de69a; border-radius: 20px; box-shadow: 0 0 0 999px #06110b2a; pointer-events: none; }
.staff-scan-frame:before,.staff-scan-frame:after,.staff-scan-frame i:before,.staff-scan-frame i:after { content: ''; position: absolute; width: 20px; height: 20px; border-color: #a4f0ba; border-style: solid; }
.staff-scan-frame:before { top:-2px;left:-2px;border-width:4px 0 0 4px;border-radius:10px 0 0; }.staff-scan-frame:after { top:-2px;right:-2px;border-width:4px 4px 0 0;border-radius:0 10px 0 0; }.staff-scan-frame i:before { bottom:-2px;left:-2px;border-width:0 0 4px 4px;border-radius:0 0 0 10px; }.staff-scan-frame i:after { bottom:-2px;right:-2px;border-width:0 4px 4px 0;border-radius:0 0 10px; }
.staff-camera-actions { display: flex; gap: 8px; margin-top: 12px; }
.staff-manual-form { display: flex; align-items: end; gap: 8px; }
.staff-manual-form label { display: grid; flex: 1; gap: 6px; color: #68766c; font-size: 10px; font-weight: 750; }
.staff-scan-order { margin-top: 15px; padding: 14px; border: 1px solid #dcefe1; border-radius: 14px; background: #fbfffc; }
.staff-inline-alert { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 10px; background: #eaf7ed; color: #168044; font-size: 11px; }
.staff-inline-alert.is-error { background: #fff0ee; color: #b43a32; }
.staff-activity-list { display: grid; }
.staff-activity-list article { display: grid; grid-template-columns: 13px 1fr auto; gap: 10px; padding: 13px 0; border-top: 1px solid #eef2ef; }
.staff-activity-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #26a357; box-shadow: 0 0 0 4px #e4f5e9; }
.staff-activity-list b { color: #334137; font-size: 11px; }
.staff-activity-list p { margin: 4px 0; color: #66736a; font-size: 11px; }
.staff-activity-list small,.staff-activity-list em { color: #8c978f; font-size: 9px; font-style: normal; }
.staff-secret-state { display: block; padding: 10px; border: 1px dashed #dce5dd; border-radius: 9px; color: #9b6b27; font-size: 10px; }
.staff-secret-state.is-set { border-color: #c2e5cd; background: #f0faf3; color: #138242; }
.staff-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: #7e8c82; font-size: 12px; }
.staff-loading span { width: 17px; height: 17px; border: 2px solid #dce9df; border-top-color: #149147; border-radius: 50%; animation: staff-spin .8s linear infinite; }
@keyframes staff-spin { to { transform: rotate(360deg); } }
.staff-toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: min(420px, calc(100vw - 28px)); padding: 13px 17px; border: 1px solid #c5e5cc; border-radius: 12px; background: #edfaf0; color: #13763a; box-shadow: 0 10px 35px #10241726; font-size: 12px; font-weight: 650; }
.staff-toast.is-error { border-color: #f2c8c3; background: #fff1ef; color: #b03830; }
.staff-mobile-head { display: none; }
@media (min-width: 1500px) { .staff-workspace { padding-left: 56px; padding-right: 56px; } }
@media (max-width: 1050px) { .staff-shell { grid-template-columns: 215px minmax(0,1fr); } .staff-workspace { padding: 23px 18px 40px; } .staff-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .staff-grid-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .staff-shell { display: block; }
    .staff-sidebar { position: fixed; top: 0; left: 0; width: min(285px,85vw); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 15px 0 40px #11251a1c; }
    .staff-sidebar.is-open { transform: translateX(0); }
    /* Drawer takes precedence over the notification panel, even during state changes. */
    .staff-sidebar.is-open ~ .staff-workspace .staff-notification-popover { display:none; }
    .staff-workspace { padding: 0 12px 30px; }
    .staff-mobile-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 0 -12px 16px; padding: 8px 12px; border-bottom: 1px solid #e7eee9; background: #ffffffed; backdrop-filter: blur(12px); }
    .staff-mobile-head b { flex: 1; font-size: 14px; }
    .staff-page-head { align-items: flex-end; margin: 0 0 16px; }.staff-page-head p { max-width: 260px; }.staff-page-head > .staff-button { padding: 8px 10px; font-size: 10px; }
    .staff-panel { padding: 15px; border-radius: 15px; }.staff-panel-head { margin-bottom: 12px; }.staff-panel-head h2 { font-size: 15px; }
    .staff-kpi-grid { gap: 8px; }.staff-kpi { padding: 12px; border-radius: 13px; }.staff-kpi strong { font-size: 17px; }.staff-kpi span { font-size: 10px; }.staff-kpi small { font-size: 9px; }
    .staff-scan-layout { grid-template-columns: 1fr; }.staff-video-wrap { min-height: 255px; }.staff-form-grid { gap: 9px; }.staff-form-grid > label { font-size: 9px; }
    .staff-order-grid { gap: 8px; }.staff-order-grid > div { padding: 9px; }.staff-order-grid b { font-size: 11px; }
}
@media (max-width: 420px) {
    .staff-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .staff-form-grid { grid-template-columns: 1fr; }.staff-form-wide { grid-column: auto; }
    .staff-filter { align-items: stretch; }.staff-filter input[name=search] { min-width: 100%; }.staff-filter input,.staff-filter select { flex: 1; min-width: 42%; }
    .staff-manual-form { align-items: stretch; flex-direction: column; }
    .staff-page-head h1 { font-size: 22px; }.staff-page-head p { font-size: 10px; }
}
.staff-test-wa { margin-top:16px; padding:14px; border-radius:12px; background:#f7faf7; }
.staff-test-wa label { display:block; margin-bottom:7px; color:#67756a; font-size:10px; font-weight:750; }
.staff-test-wa input { flex:1; min-width:0; min-height:38px; padding:8px 10px; border:1px solid #dfe8e0; border-radius:9px; background:#fff; font:inherit; font-size:11px; }
.staff-bill-form { display:flex; flex-wrap:wrap; align-items:end; gap:9px; margin:14px 0 4px; padding:13px; border:1px solid #f1dfb9; border-radius:12px; background:#fffbf1; }
.staff-bill-form label { display:grid; flex:1; min-width:210px; gap:6px; color:#806022; font-size:10px; font-weight:750; }
.staff-bill-form input { min-height:38px; padding:8px 10px; border:1px solid #e9d6ad; border-radius:9px; font:inherit; font-size:11px; }

/* Branding shares the exact horizontal logo used by the customer home header. */
.staff-sidebar-head { display:flex; align-items:flex-start; justify-content:space-between; gap:7px; }
.staff-brand { min-width:0; flex:1; }
.staff-brand-logo { display:block; width:auto; max-width:100%; max-height:58px; object-fit:contain; object-position:left center; }
.staff-brand-fallback { display:flex; align-items:center; gap:11px; }
.staff-brand-fallback > span:last-child { min-width:0; }
.staff-sidebar-close { display:none; width:34px; height:34px; flex:0 0 34px; place-items:center; border:1px solid #e8eee9; border-radius:10px; background:#fff; color:#536259; font-size:24px; line-height:1; cursor:pointer; }
.staff-sidebar-backdrop[hidden] { display:none !important; }
@media (max-width:700px) {
    .staff-sidebar-head { align-items:flex-start; gap:3px; margin:0 0 18px; }
    .staff-brand { padding:2px 3px 0 5px; }
    .staff-brand-logo { max-height:58px; }
    .staff-sidebar-close { display:grid; }
    .staff-sidebar-backdrop { position:fixed; inset:0; z-index:19; display:block; border:0; background:#14231a75; cursor:pointer; }
    .staff-sidebar-backdrop[hidden] { display:none !important; }
}
.staff-modal-overlay { position:fixed; inset:0; z-index:300; display:grid; place-items:center; padding:18px; background:#0d1b12a6; }
.staff-modal-card { position:relative; width:min(440px,100%); padding:24px; border:1px solid #e6eee8; border-radius:18px; background:#fff; box-shadow:0 25px 90px #0b1b1240; }
.staff-modal-card h2 { margin:0 0 8px; font-size:21px; }.staff-modal-card p { margin:0 0 17px; color:#748078; font-size:12px; line-height:1.55; }
.staff-modal-card label { display:grid; gap:6px; margin:12px 0; color:#66746a; font-size:10px; font-weight:750; }
.staff-modal-card input { width:100%; min-height:40px; padding:9px 11px; border:1px solid #dfe8e0; border-radius:9px; font:inherit; font-size:12px; }
.staff-modal-close { position:absolute; top:13px; right:13px; width:32px; height:32px; border:0; border-radius:10px; background:#f2f6f3; color:#506057; font-size:21px; cursor:pointer; }
.staff-modal-error { display:block; min-height:16px; color:#b63d33; font-size:10px; }

/* Staff dashboard refresh — inspired by the requested POS reference, using real Konter data. */
.staff-sidebar { background:#1b222b; border-right:1px solid #2c3540; color:#f5f7fa; }
.staff-sidebar-head { align-items:center; margin:0 0 18px; padding:8px; border:1px solid #e8eee9; border-radius:14px; background:#fff; }
.staff-brand { padding:0; }
.staff-brand-logo { max-height:42px; }
.staff-nav-item { color:#c3cbd4; }
.staff-nav-item:hover { background:#29333e; color:#fff; }
.staff-nav-item.is-active { background:#b8f374; color:#16221a; box-shadow:none; }
.staff-side-bottom { border-color:#36414d; }
.staff-user b { color:#f4f6f8; }
.staff-user small { color:#aab4bf; }
.staff-avatar { background:#c4f28b; color:#17221a; }
.staff-logout { border-color:#3c4652; background:#252e38; color:#eef2f5; }
.staff-view-dashboard .staff-page-head { display:none; }
.staff-view-dashboard .staff-workspace { background:#f4f6fa; }
.staff-dashboard { display:grid; gap:18px; max-width:1600px; margin:0 auto; }
.staff-dashboard-welcome { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:58px; }
.staff-welcome-copy,.staff-welcome-tools { display:flex; align-items:center; gap:12px; }
.staff-wave { font-size:29px; line-height:1; }
.staff-dashboard-welcome h1 { margin:0; color:#131b2d; font-size:24px; font-weight:800; letter-spacing:-.04em; }
.staff-dashboard-welcome p { margin:4px 0 0; color:#687387; font-size:12px; }
.staff-welcome-avatar { display:grid; place-items:center; width:39px; height:39px; border:1px solid #e0e5eb; border-radius:50%; background:#e7eaf0; color:#475365; font-weight:800; }
.staff-dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.staff-dash-kpi { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr); grid-template-rows:auto auto auto; align-content:center; gap:4px 12px; min-width:0; overflow:hidden; padding:18px; border:1px solid #e5eaf0; border-radius:17px; background:#fff; box-shadow:0 5px 16px #1c2d4210; }
.staff-dash-icon { grid-column:1; grid-row:1 / span 3; display:grid; place-items:center; width:44px; height:44px; border-radius:14px; }
.staff-dash-label { align-self:end; color:#566175; font-size:12px; }
.staff-dash-kpi strong { display:block; min-width:0; overflow:hidden; color:#10182b; font-size:23px; font-weight:850; letter-spacing:-.045em; text-overflow:ellipsis; white-space:nowrap; }
.staff-dash-kpi small { color:#687387; font-size:10px; }
.staff-dash-kpi .staff-sparkline { position:absolute; right:13px; bottom:13px; width:82px; height:32px; opacity:.9; }
.staff-dash-kpi.tone-green { background:linear-gradient(120deg,#f0fbef,#fff 78%); }
.staff-dash-kpi.tone-blue { background:linear-gradient(120deg,#f0f5ff,#fff 78%); }
.staff-dash-kpi.tone-purple { background:linear-gradient(120deg,#f7f2ff,#fff 78%); }
.staff-dash-kpi.tone-lime { background:linear-gradient(120deg,#f3faeb,#fff 78%); }
.tone-green .staff-dash-icon { background:#dcf4df; color:#168541; }.tone-blue .staff-dash-icon { background:#dce9ff; color:#347be0; }.tone-purple .staff-dash-icon { background:#eee2ff; color:#8251d2; }.tone-lime .staff-dash-icon { background:#e2f4d0; color:#52892e; }
.staff-dashboard-feature-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(290px,.82fr); gap:14px; }
.staff-dashboard-lower-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:14px; }
.staff-dash-panel { min-width:0; padding:20px; border:1px solid #e5eaf0; border-radius:19px; background:#fff; box-shadow:0 6px 18px #1c2d420c; }
.staff-dash-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:17px; }
.staff-dash-panel-head h2 { display:flex; align-items:center; gap:9px; color:#172033; font-size:16px; font-weight:800; letter-spacing:-.025em; }
.staff-dash-panel-head h2 svg { color:#16233b; }
.staff-dash-panel-head p { margin:5px 0 0; color:#7b8798; font-size:11px; }
.staff-sales-content { display:flex; align-items:center; justify-content:center; gap:clamp(24px,6vw,80px); min-height:205px; }
.staff-donut { position:relative; display:grid; place-items:center; width:180px; height:180px; flex:0 0 180px; border-radius:50%; background:conic-gradient(#1ba45c 0 var(--staff-cost-pct),#3986e8 var(--staff-cost-pct) 100%); transform:rotate(-90deg); }
.staff-donut.is-empty { background:#e8edf2; }
.staff-donut:before { content:''; position:absolute; inset:17px; border-radius:50%; background:#fff; }
.staff-donut > div { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:4px; transform:rotate(90deg); }
.staff-donut b { color:#172033; font-size:18px; font-weight:850; letter-spacing:-.04em; }
.staff-donut small { color:#657084; font-size:11px; }
.staff-sales-legend { display:grid; gap:17px; min-width:205px; }
.staff-sales-legend > div { display:flex; align-items:flex-start; gap:11px; color:#344055; font-size:13px; }
.staff-sales-legend > div > i { width:13px; height:13px; flex:0 0 13px; margin-top:3px; border-radius:50%; }
.staff-sales-legend .legend-cost { background:#1ba45c; }.staff-sales-legend .legend-gross { background:#3986e8; }
.staff-sales-legend span,.staff-sales-legend b,.staff-sales-legend small { display:block; }
.staff-sales-legend b { margin-top:3px; color:#162033; font-size:17px; font-weight:800; }
.staff-sales-legend small { margin-top:2px; color:#8993a2; font-size:10px; }
.staff-attention-panel { display:flex; flex-direction:column; }
.staff-attention-count { display:flex; align-items:baseline; gap:12px; padding:18px 0; }
.staff-attention-count strong { color:#172033; font-size:45px; font-weight:850; letter-spacing:-.06em; }
.staff-attention-count span { color:#5e6a7c; font-size:13px; }
.staff-attention-foot { display:flex; align-items:flex-start; gap:9px; min-height:42px; padding:12px 0; border-top:1px solid #eef1f5; color:#687387; font-size:11px; line-height:1.45; }
.staff-attention-dot { width:8px; height:8px; flex:0 0 8px; margin-top:3px; border-radius:50%; background:#f0a22b; }
.staff-attention-button { align-self:flex-start; margin-top:auto; }
.staff-activity-list { display:grid; }
.staff-activity-row { display:flex; align-items:center; gap:11px; width:100%; padding:11px 0; border:0; border-top:1px solid #eef1f4; background:#fff; text-align:left; cursor:pointer; }
.staff-activity-row:first-child { border-top:0; }
.staff-activity-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:13px; background:#e7f7eb; color:#198b4b; }
.staff-activity-copy { min-width:0; flex:1; }
.staff-activity-copy b,.staff-activity-copy small,.staff-activity-value b,.staff-activity-value small { display:block; }
.staff-activity-copy b { overflow:hidden; color:#263246; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.staff-activity-copy small { margin-top:4px; color:#8993a2; font-size:9px; }
.staff-activity-value { flex:0 0 auto; text-align:right; }
.staff-activity-value b { color:#168347; font-size:12px; }
.staff-activity-value small { margin-top:4px; font-size:9px; }
.status-text-pending { color:#b57918; }.status-text-paid,.status-text-processing { color:#3979d0; }.status-text-success { color:#178746; }.status-text-failed,.status-text-cancelled { color:#bd4b43; }
.staff-chart-key { display:flex; align-items:center; gap:12px; color:#718094; font-size:10px; white-space:nowrap; }
.staff-chart-key span { display:flex; align-items:center; gap:5px; }.staff-chart-key i { width:8px; height:8px; border-radius:50%; }.staff-chart-key .key-sales { background:#20a85c; }.staff-chart-key .key-profit { background:#f2a12c; }
.staff-finance-chart { display:flex; align-items:stretch; justify-content:space-around; gap:9px; height:210px; padding:5px 2px 0; border-bottom:1px solid #e8edf1; background:repeating-linear-gradient(to top,transparent 0,transparent 48px,#edf0f4 49px,#edf0f4 50px); }
.staff-finance-day { display:flex; min-width:0; flex:1; flex-direction:column; align-items:center; justify-content:flex-end; gap:8px; }
.staff-finance-bars { display:flex; align-items:flex-end; justify-content:center; gap:4px; width:100%; height:calc(100% - 20px); }
.staff-finance-bars i { display:block; width:min(15px,36%); min-height:0; border-radius:5px 5px 1px 1px; }
.staff-finance-bars .is-sales { background:linear-gradient(180deg,#36bd73,#17934d); }.staff-finance-bars .is-profit { background:linear-gradient(180deg,#ffc058,#ef941d); }
.staff-finance-day small { height:14px; color:#788497; font-size:9px; white-space:nowrap; }
.staff-tip-card { display:flex; align-items:center; gap:14px; padding:15px 18px; border:1px solid #dfefd5; border-radius:17px; background:linear-gradient(100deg,#effbe7,#fafff6); }
.staff-tip-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:14px; background:#e2f3d6; color:#40812d; }
.staff-tip-card > div { min-width:0; flex:1; }.staff-tip-card b { color:#21332a; font-size:13px; }.staff-tip-card p { margin:4px 0 0; color:#647464; font-size:11px; line-height:1.5; }
@media (max-width:1100px) { .staff-dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.staff-dashboard-feature-grid,.staff-dashboard-lower-grid { grid-template-columns:1fr; } }
@media (max-width:700px) {
    .staff-sidebar-head { align-items:flex-start; margin:0 0 18px; padding:8px; background:#fff; }
    .staff-brand { padding:0; }
    .staff-brand-logo { max-height:40px; }
    .staff-dashboard { gap:13px; }
    .staff-dashboard-welcome { align-items:flex-start; }
    .staff-dashboard-welcome h1 { font-size:19px; }
    .staff-dashboard-welcome p { font-size:10px; }
    .staff-welcome-avatar { width:34px; height:34px; }
    .staff-wave { font-size:23px; }
    .staff-dashboard-kpis { gap:9px; }
    .staff-dash-kpi { grid-template-columns:34px minmax(0,1fr); gap:3px 8px; }
    .staff-dash-icon { width:34px; height:34px; border-radius:11px; }.staff-dash-icon svg { width:18px; height:18px; }
    .staff-dash-kpi strong { font-size:17px; }.staff-dash-kpi small { max-width:100%; font-size:9px; }
    .staff-dash-kpi .staff-sparkline { right:9px; bottom:7px; width:56px; height:22px; opacity:.65; }
    .staff-dash-panel { padding:15px; border-radius:16px; }.staff-dash-panel-head h2 { font-size:14px; }.staff-dash-panel-head p { font-size:10px; }
    .staff-sales-content { min-height:0; gap:14px; justify-content:space-between; }
    .staff-donut { width:125px; height:125px; flex-basis:125px; }.staff-donut:before { inset:13px; }.staff-donut b { font-size:12px; }.staff-donut small { font-size:9px; }
    .staff-sales-legend { min-width:0; gap:12px; }.staff-sales-legend > div { gap:7px; font-size:10px; }.staff-sales-legend b { font-size:12px; }.staff-sales-legend small { font-size:9px; }
    .staff-attention-count strong { font-size:36px; }.staff-attention-count span { font-size:11px; }
    .staff-finance-chart { height:170px; gap:4px; }.staff-finance-bars { gap:2px; }.staff-finance-bars i { width:min(11px,40%); }.staff-finance-day small { font-size:8px; }
    .staff-tip-card { align-items:flex-start; gap:9px; padding:12px; }.staff-tip-icon { width:34px; height:34px; flex-basis:34px; }.staff-tip-card p { font-size:10px; }.staff-tip-card .staff-button { min-height:34px; padding:6px 8px; font-size:9px; }
}
@media (max-width:420px) {
    .staff-dashboard-kpis { grid-template-columns:1fr 1fr; }
    .staff-dash-kpi { grid-template-columns:1fr; grid-template-rows:auto auto auto; }.staff-dash-icon { grid-row:auto; width:31px; height:31px; }.staff-dash-label { grid-column:1; }.staff-dash-kpi strong,.staff-dash-kpi small { grid-column:1; }.staff-dash-kpi .staff-sparkline { width:42px; }
    .staff-dashboard-welcome { gap:8px; }.staff-welcome-tools { display:none; }
    .staff-sales-content { flex-direction:column; }.staff-sales-legend { width:100%; grid-template-columns:1fr 1fr; }
}

/* Operasional POS, inventori, dan status toko */
.retail-split-panel,.retail-store-panel { min-width:0; }
.retail-split-values { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.retail-split-values>div { padding:14px; border-radius:13px; background:#f6f8fb; display:flex; flex-direction:column; gap:5px; }
.retail-split-values small,.retail-store-state { color:#738094; font-size:11px; }
.retail-split-values b { color:#172033; font-size:20px; letter-spacing:-.03em; }
.retail-split-values span { color:#8691a1; font-size:10px; }
.retail-store-state { display:flex; align-items:center; gap:9px; padding:10px 0 16px; }
.retail-store-state b { color:#263449; margin-right:auto; font-size:14px; }
.retail-state-dot { width:9px; height:9px; border-radius:50%; background:#d94646; box-shadow:0 0 0 4px #d9464618; }
.retail-state-dot.is-open { background:#23a566; box-shadow:0 0 0 4px #23a56620; }
.retail-lowstock { border-top:1px solid #edf0f4; padding-top:13px; font-size:12px; }
.retail-lowstock>b { color:#263449; }
.retail-lowstock ul { list-style:none; padding:0; margin:8px 0; }
.retail-lowstock li { display:flex; justify-content:space-between; gap:8px; padding:5px 0; color:#687589; }
.retail-lowstock li strong { color:#cc6d22; }
.retail-lowstock p { color:#8490a0; margin:7px 0; }
.retail-form { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:12px 0 17px; }
.retail-form label { display:flex; flex:1 1 145px; flex-direction:column; gap:5px; color:#657287; font-size:11px; font-weight:700; }
.retail-form input,.retail-form select,.restock-line input { width:100%; min-height:40px; border:1px solid #dfe5ed; border-radius:9px; padding:8px 10px; color:#263449; background:#fff; font:inherit; }
.retail-panel .staff-table-wrap { margin-top:12px; }
.retail-panel .staff-table td small { display:block; color:#8b95a4; margin-top:3px; }
.retail-panel .is-low { color:#d05b37; }
.restock-list { display:grid; gap:6px; margin:12px 0 17px; }
.restock-line { display:grid; grid-template-columns:minmax(160px,1fr) 90px 130px; align-items:center; gap:10px; padding:9px 11px; background:#f7f9fb; border-radius:9px; color:#263449; font-size:12px; }
.restock-line small { display:block; color:#8792a1; margin-top:3px; }
.restock-line input { min-height:35px; }
@media(max-width:640px) { .retail-split-values { grid-template-columns:1fr; }.restock-line { grid-template-columns:1fr 70px 105px; gap:6px; padding:8px; }.retail-form label { flex-basis:100%; } }
.staff-chart-range select { max-width:95px; min-height:30px; padding:4px 7px; border:1px solid #e1e7ee; border-radius:8px; color:#566477; background:#fff; font:inherit; font-size:10px; }
.staff-finance-chart { overflow-x:auto; justify-content:flex-start; }
.staff-finance-chart[data-range="30"] .staff-finance-day { flex:0 0 26px; }
.staff-finance-chart[data-range="30"] .staff-finance-bars i { width:8px; }

/* Identitas staf digunakan konsisten pada header, sambutan, dan sidebar. */
.staff-avatar,.staff-welcome-avatar,.staff-mobile-avatar,.staff-avatar-settings-photo { overflow:hidden; }
.staff-avatar,.staff-welcome-avatar,.staff-mobile-avatar { border-radius:50%; }
.staff-avatar img,.staff-welcome-avatar img,.staff-mobile-avatar img,.staff-avatar-settings-photo img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.staff-mobile-actions { display:flex; align-items:center; gap:9px; }
.staff-mobile-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #e0e5eb; background:#e7eaf0; color:#475365; font-size:13px; font-weight:800; }
.staff-notification-button { position:relative; display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border:1px solid #e5eaf0; border-radius:12px; background:#fff; color:#39465a; cursor:pointer; }
.staff-notification-button em { position:absolute; top:-5px; right:-5px; display:grid; place-items:center; min-width:16px; height:16px; padding:0 4px; border:2px solid #fff; border-radius:20px; background:#e34f48; color:#fff; font-size:9px; font-style:normal; font-weight:800; }
.staff-notification-popover { position:fixed; top:calc(66px + env(safe-area-inset-top, 0px)); right:12px; z-index:18; width:min(320px,calc(100vw - 24px)); max-height:calc(100dvh - 90px - env(safe-area-inset-top, 0px)); overflow:auto; padding:13px; border:1px solid #e5eaf0; border-radius:15px; background:#fff; box-shadow:0 14px 40px #17203324; }
.staff-notification-popover[hidden] { display:none; }
.staff-notification-popover.is-opening { animation:staff-notification-in 180ms ease-out both; }
.staff-notification-popover.is-closing { animation:staff-notification-out 180ms ease-in both; pointer-events:none; }
@keyframes staff-notification-in { from { opacity:0; transform:translateY(-8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes staff-notification-out { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion:reduce) { .staff-notification-popover.is-opening,.staff-notification-popover.is-closing { animation:none; } }
.staff-notification-title { display:block; margin:0 0 6px; color:#263449; font-size:13px; }
.staff-notification-popover>button { display:flex; align-items:center; gap:10px; width:100%; padding:11px 3px; border:0; border-top:1px solid #eef1f4; background:#fff; color:#5c6879; text-align:left; cursor:pointer; }
.staff-notification-popover>button>span:nth-child(2) { min-width:0; flex:1; }
.staff-notification-popover>button b,.staff-notification-popover>button small { display:block; }
.staff-notification-popover>button b { color:#263449; font-size:12px; }
.staff-notification-popover>button small,.staff-notification-popover>p { margin:3px 0 0; color:#7f8a99; font-size:10px; }
.staff-notification-popover>button>svg { color:#8a95a4; }
.staff-notification-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#e7a334; }
.staff-notification-dot.is-low { background:#e26b50; }
.staff-avatar-settings { display:flex; align-items:center; gap:13px; margin:0 0 18px; padding:14px; border:1px solid #e7ebf0; border-radius:14px; background:#fafbfd; }
.staff-avatar-settings-preview { display:grid; place-items:center; flex:0 0 54px; }
.staff-avatar-settings-photo { display:grid; place-items:center; width:54px; height:54px; border:1px solid #e1e6ed; border-radius:50%; background:#e7eaf0; color:#475365; font-size:18px; font-weight:800; }
.staff-avatar-settings-copy { display:grid; flex:1; gap:4px; min-width:0; color:#263449; font-size:12px; }
.staff-avatar-settings-copy small { color:#7e8999; font-size:10px; line-height:1.45; }
.staff-avatar-settings-copy input { max-width:100%; margin-top:5px; color:#667487; font-size:10px; }
.staff-avatar-settings button:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:700px) {
    .staff-workspace { position:relative; }
    .staff-mobile-actions { gap:8px; }
    .staff-mobile-avatar { width:32px; height:32px; flex-basis:32px; }
    .staff-dashboard-welcome .staff-welcome-tools { display:none; }
    .staff-avatar-settings { align-items:flex-start; flex-wrap:wrap; }
    .staff-avatar-settings-copy { flex-basis:calc(100% - 70px); }
}

/* Scanner barang untuk pemindaian kamera maupun scanner barcode USB/Bluetooth. */
.staff-pos-tools { display:flex; flex-wrap:wrap; gap:8px; }
.barcode-mode-label { display:grid; gap:5px; color:#657287; font-size:10px; font-weight:700; }
.barcode-mode-label select { min-height:34px; border:1px solid #dfe5ed; border-radius:9px; padding:6px 9px; color:#263449; background:#fff; }
.staff-barcode-camera { position:relative; display:grid; place-items:center; min-height:245px; overflow:hidden; border:1px solid #dfe5ed; border-radius:16px; background:linear-gradient(135deg,#101a2b,#26364d); }
.staff-barcode-camera video { width:100%; max-height:340px; object-fit:cover; }
.staff-barcode-guide { position:absolute; width:min(76%,390px); height:100px; border:2px solid #56d68a; border-radius:14px; box-shadow:0 0 0 999px #0c142633; pointer-events:none; }
.staff-barcode-hint { position:absolute; bottom:14px; padding:6px 10px; border-radius:20px; background:#111a2acc; color:#fff; font-size:11px; }
.barcode-manual-form { display:flex; align-items:end; gap:10px; margin:15px 0 8px; }
.barcode-manual-form label { display:grid; flex:1; gap:5px; color:#657287; font-size:11px; font-weight:700; }
.barcode-manual-form input { min-height:42px; border:1px solid #dfe5ed; border-radius:9px; padding:8px 11px; font:inherit; }
.barcode-panel .staff-note { max-width:760px; }
@media(max-width:600px) { .staff-pos-tools { width:100%; }.staff-pos-tools button { flex:1; }.barcode-manual-form { align-items:stretch; flex-direction:column; }.barcode-manual-form button { width:100%; } }
.pos-change-display { align-self:center; color:#168347; font-size:12px; font-weight:750; }
.pos-change-display.is-short { color:#c94f41; }
.staff-bottom-dock { display:none; }
@media(max-width:700px) {
    .staff-workspace { padding-bottom:calc(94px + env(safe-area-inset-bottom)); }
    .staff-bottom-dock { position:fixed; right:0; bottom:0; left:0; z-index:15; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:8px 7px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid #e8edf0; background:#ffffffed; box-shadow:0 -8px 24px #1720330c; backdrop-filter:blur(16px); }
    .staff-dock-item { display:flex; min-width:0; min-height:48px; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:5px 2px; border:0; border-radius:12px; background:transparent; color:#778394; cursor:pointer; }
    .staff-dock-item svg { width:19px; height:19px; }
    .staff-dock-item span { max-width:100%; overflow:hidden; font-size:9px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
    .staff-dock-item.is-active { background:#eaf7ee; color:#138344; }
}

/* Dashboard KPI: kartu mobile mengikuti tinggi konten, tanpa ruang kosong paksa. */
.staff-dashboard-kpis { gap:16px; }
.staff-dashboard-lower-grid { grid-template-columns:minmax(0,1fr); }
.staff-view-dashboard .staff-dash-kpi { grid-template-columns:44px minmax(0,1fr); gap:6px 13px; }
@media(min-width:701px) {
    .staff-view-dashboard .staff-dashboard { width:100%; max-width:none; margin:0; }
    .staff-view-dashboard .staff-dash-kpi { min-height:132px; padding:17px; }
    .staff-view-dashboard .staff-dash-icon { align-self:center; }
}
.staff-view-dashboard .staff-dash-kpi strong { font-size:clamp(17px,1.7vw,23px); line-height:1.12; font-weight:700; }
.staff-view-dashboard .staff-dash-kpi .staff-dash-label { font-weight:600; }
.staff-view-dashboard .staff-dash-kpi small { line-height:1.35; }
.staff-view-dashboard .staff-dashboard-welcome h1,
.staff-view-dashboard .staff-dash-panel-head h2,
.staff-view-dashboard .staff-attention-count strong,
.staff-view-dashboard .staff-tip-card b { font-weight:700; }
.staff-dashboard-welcome h1 { line-height:1.12; }
.staff-welcome-name { display:block; }
@media(max-width:1100px) {
    .staff-dashboard-kpis { gap:12px; }
}
@media(max-width:700px) {
    .staff-dashboard-kpis { grid-auto-rows:auto; align-items:stretch; gap:12px; }
    .staff-view-dashboard .staff-dash-kpi { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; padding:12px; }
    .staff-view-dashboard .staff-dash-icon { align-self:flex-start; width:30px; height:30px; flex:0 0 30px; margin:0 0 1px; }
    .staff-view-dashboard .staff-dash-label { align-self:flex-start; width:100%; margin:0; font-size:11px; line-height:1.25; text-align:left; }
    .staff-view-dashboard .staff-dash-kpi strong,.staff-view-dashboard .staff-dash-kpi small { align-self:flex-start; width:100%; text-align:left; }
    .staff-view-dashboard .staff-dash-kpi strong { font-size:clamp(16px,4.1vw,19px); line-height:1.1; }
    .staff-view-dashboard .staff-dash-kpi small { overflow:hidden; font-size:9px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
}
@media(max-width:420px) {
    .staff-dashboard-kpis { gap:10px; }
    .staff-view-dashboard .staff-dash-icon { width:28px; height:28px; flex-basis:28px; }
    .staff-view-dashboard .staff-dash-label { font-size:10px; }
    .staff-view-dashboard .staff-dash-kpi strong { font-size:16px; }
    .staff-view-dashboard .staff-dash-kpi small { font-size:8.5px; }
}
@media(max-width:700px) {
    .staff-view-dashboard .staff-dashboard-welcome { padding-top:18px; }
    .staff-page-head { padding-top:18px; }
}
@media(max-width:700px) {
    .staff-view-dashboard .staff-dashboard-welcome { padding-bottom:10px; }
    .staff-page-head { padding-bottom:10px; }
    .staff-sales-content,.staff-attention-count { flex-direction:column; align-items:flex-start; }
}
@media(max-width:700px) {
    .staff-sales-content { align-items:center; }
    .staff-donut { width:156px; height:156px; flex-basis:156px; }
    .staff-donut:before { inset:16px; }
    .staff-sales-legend { width:100%; grid-auto-flow:column; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .staff-sales-legend > div { min-width:0; gap:8px; padding:12px 10px; border:1px solid #e7edf3; border-radius:12px; background:#f8fafc; line-height:1.35; }
    .staff-sales-legend > div > span { min-width:0; overflow-wrap:anywhere; }
    .staff-sales-legend > div > i { width:10px; height:10px; flex-basis:10px; margin-top:2px; }
    .staff-sales-legend b { margin-top:5px; font-size:13px; font-weight:700; }
    .staff-sales-legend small { margin-top:4px; line-height:1.4; }
    .staff-donut b { font-weight:700; }
}

/* Kasir: pilihan barang, keranjang, lalu pembayaran dalam urutan yang jelas. */
.staff-view-pos .staff-page-head > .staff-button { display:none; }
.pos-panel { padding:22px; }
.pos-panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding-bottom:20px; border-bottom:1px solid #e9eef1; }
.pos-panel-header h2 { margin:0; color:#172033; font-size:16px; font-weight:700; }
.pos-panel-header p { margin:5px 0 0; color:#728094; font-size:12px; line-height:1.45; }
.pos-panel .staff-pos-tools { flex-shrink:0; }
.pos-panel .staff-pos-tools button { white-space:nowrap; }
.pos-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:24px; padding-top:20px; }
.pos-products,.pos-checkout { min-width:0; }
.pos-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pos-section-heading h3 { margin:0; color:#263449; font-size:14px; font-weight:700; }
.pos-section-heading span { color:#7b8998; font-size:11px; }
.pos-panel .pos-add-form { display:grid; grid-template-columns:minmax(0,1fr) 100px; align-items:end; gap:10px; margin:12px 0 22px; }
.pos-panel .pos-add-form button { grid-column:1/-1; justify-self:start; }
.pos-panel .retail-form label { min-width:0; font-weight:600; }
.pos-cart { border-top:1px solid #edf1f4; padding-top:17px; }
.pos-cart-list { list-style:none; margin:12px 0 0; padding:0; border:1px solid #e8edf2; border-radius:12px; overflow:hidden; }
.pos-cart-item { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px; background:#fff; }
.pos-cart-item + .pos-cart-item { border-top:1px solid #edf1f4; }
.pos-cart-item-info { flex:1; min-width:0; }
.pos-cart-item-info b,.pos-cart-item-info small { display:block; overflow-wrap:anywhere; }
.pos-cart-item-info b,.pos-cart-item-actions strong { color:#263449; font-size:12px; font-weight:700; }
.pos-cart-item-info small { margin-top:4px; color:#7d8998; font-size:11px; }
.pos-cart-item-actions { display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0; }
.pos-remove { padding:2px 0; border:0; background:transparent; color:#bd4e43; font:inherit; font-size:11px; cursor:pointer; }
.pos-cart-empty { margin:12px 0 0; padding:18px 14px; border:1px dashed #dce5ea; border-radius:12px; background:#f8fafb; color:#758393; font-size:12px; line-height:1.5; text-align:center; }
.pos-panel .pos-checkout { display:flex; flex-direction:column; align-items:stretch; gap:12px; margin:0; padding:17px; border:1px solid #e7edf0; border-radius:14px; background:#f8fafb; }
.pos-checkout label { flex:none; }
.pos-checkout .pos-change-display { align-self:stretch; padding:10px 12px; border-radius:9px; background:#e8f7ee; color:#168347; font-size:12px; font-weight:700; }
.pos-checkout .pos-change-display.is-short { color:#b44336; background:#fff0ed; }
.pos-total-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:14px; border-top:1px solid #e2e9ed; color:#68778a; font-size:12px; }
.pos-total-row strong { color:#172033; font-size:18px; font-weight:700; overflow-wrap:anywhere; text-align:right; }
.pos-panel .pos-submit { width:100%; min-height:44px; }
.pos-footnote { margin:18px 0 0; color:#7b8996; font-size:11px; line-height:1.5; }
@media(max-width:700px) {
    .pos-panel { padding:16px; }
    .pos-panel-header { flex-direction:column; gap:14px; padding-bottom:16px; }
    .pos-panel .staff-pos-tools { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .pos-panel .staff-pos-tools button { width:100%; padding:8px 5px; font-size:11px; white-space:normal; }
    .pos-layout { grid-template-columns:minmax(0,1fr); gap:20px; padding-top:17px; }
    .pos-panel .pos-add-form { grid-template-columns:minmax(0,1fr); }
    .pos-panel .pos-product-field { grid-column:auto; }
    .pos-panel .pos-add-form button { grid-column:auto; width:100%; min-height:40px; padding:8px; }
    .pos-panel .inline-scan-actions > .staff-button { width:100%; }
    .pos-panel .pos-checkout { padding:15px; }
}

/* Profil pribadi: avatar sebagai pintasan yang dapat diakses keyboard. */
.staff-profile-avatar-button,.staff-mobile-head .staff-profile-avatar-button { display:inline-grid; place-items:center; flex:0 0 auto; width:auto; height:auto; margin:0; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.staff-profile-avatar-button:focus-visible { outline:3px solid #39a965; outline-offset:3px; }
.staff-profile-avatar-button:hover { opacity:.85; }
.staff-profile-panel { max-width:960px; }
.staff-profile-intro { padding-bottom:18px; border-bottom:1px solid #eaf0ed; }
.staff-profile-intro h2 { margin:0; color:#172033; font-size:18px; font-weight:700; }
.staff-profile-intro p { margin:5px 0 0; color:#738194; font-size:12px; line-height:1.5; }
.staff-profile-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:18px; padding-top:20px; }
.staff-profile-photo,.staff-profile-details { min-width:0; margin:0; padding:18px; border:1px solid #e7edf0; border-radius:14px; background:#f8fafb; }
.staff-profile-photo { display:flex; align-items:flex-start; gap:14px; }
.staff-profile-photo .staff-avatar-settings-photo { width:64px; height:64px; }
.staff-profile-photo-copy { min-width:0; flex:1; display:grid; gap:7px; color:#263449; font-size:13px; }
.staff-profile-photo-copy b { font-weight:700; }
.staff-profile-photo-copy small { color:#758294; font-size:11px; line-height:1.5; }
.staff-profile-photo-copy input { width:100%; max-width:100%; color:#68778a; font-size:11px; }
.staff-profile-photo-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:5px; }
.staff-profile-details { display:flex; flex-direction:column; gap:12px; }
.staff-profile-details h3 { margin:0 0 2px; color:#263449; font-size:14px; font-weight:700; }
.staff-profile-details label { display:grid; gap:6px; color:#657287; font-size:11px; font-weight:700; }
.staff-profile-details input { width:100%; min-width:0; min-height:42px; padding:9px 11px; border:1px solid #dfe5ed; border-radius:9px; background:#fff; color:#263449; font:inherit; font-size:12px; }
.staff-profile-details input[readonly] { background:#f0f3f5; color:#758294; }
.staff-profile-details small { margin-top:-5px; color:#7d8a99; font-size:11px; line-height:1.4; }
.staff-profile-details button { align-self:flex-start; }
@media(max-width:700px) {
    .staff-profile-grid { grid-template-columns:minmax(0,1fr); gap:12px; padding-top:16px; }
    .staff-profile-photo,.staff-profile-details { padding:15px; }
    .staff-profile-photo { flex-wrap:wrap; }
    .staff-profile-details button { width:100%; }
}

/* Penyempurnaan halaman operasional yang padat; dashboard, POS, dan profil dipertahankan. */
.staff-camera-actions [hidden] { display:none !important; }
.staff-table-scroll-hint { display:none; }
.restock-line { grid-template-columns:minmax(0,1fr) 100px minmax(130px,170px); align-items:end; gap:12px; padding:12px; }
.restock-item-name { min-width:0; align-self:center; }
.restock-item-name b { display:block; color:#263449; font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.restock-item-name small { display:block; margin-top:4px; color:#8792a1; font-size:10px; }
.restock-line label { display:grid; gap:5px; min-width:0; color:#657287; font-size:10px; font-weight:600; }
.restock-line input { width:100%; min-width:0; font-size:12px; }
#restock-form + .staff-subhead { margin:22px 0 10px; }
#inventory-form + .staff-subhead { margin:20px 0 10px; }
.staff-kpi-grid + .staff-table-wrap { margin-top:16px; }
@media(max-width:700px) {
    .staff-view-scanner .staff-page-head > .staff-button,.staff-view-orders .staff-page-head > .staff-button { display:none; }
    .staff-page-head > .staff-button { flex:0 0 auto; white-space:nowrap; }
    .staff-shell:not(.staff-view-dashboard) .staff-panel-head,.staff-shell:not(.staff-view-dashboard) .staff-dash-panel-head { flex-wrap:wrap; }
    .staff-shell:not(.staff-view-dashboard) .staff-panel-head > div,.staff-shell:not(.staff-view-dashboard) .staff-dash-panel-head > div { min-width:0; }
    .staff-shell:not(.staff-view-dashboard) .staff-panel-head > .staff-button,.staff-shell:not(.staff-view-dashboard) .staff-dash-panel-head > .staff-button { white-space:nowrap; }
    .barcode-panel .staff-dash-panel-head { flex-direction:column; }
    .barcode-mode-label,.barcode-mode-label select { width:100%; }
    .inventory-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .inventory-form .inventory-name,.inventory-form .inventory-sku,.inventory-form .inventory-barcode,.inventory-form .inventory-threshold { grid-column:1/-1; }
    .inventory-form #inventory-barcode-scan { grid-column:1/-1; justify-self:start; }
    .inventory-form label { min-width:0; }
    .inventory-form button[type=submit],.inventory-form button[type=reset] { width:100%; }
    .restock-line { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .restock-item-name { grid-column:1/-1; }
    .staff-table-wrap.staff-mobile-cards-wrap { border:0; border-radius:0; overflow:visible; }
    .staff-mobile-table-ready { display:block; min-width:0; }
    .staff-mobile-table-ready thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
    .staff-mobile-table-ready tbody { display:grid; gap:10px; }
    .staff-mobile-table-ready tbody tr { display:block; min-width:0; padding:9px 12px; border:1px solid #e8edf0; border-radius:12px; background:#fafcfb; }
    .staff-mobile-table-ready td { display:grid; grid-template-columns:minmax(78px,36%) minmax(0,1fr); gap:8px; padding:6px 0; border:0; line-height:1.45; overflow-wrap:anywhere; }
    .staff-mobile-table-ready td::before { content:attr(data-label); color:#7d8b96; font-size:10px; font-weight:600; }
    .staff-mobile-table-ready td.staff-table-empty-cell { display:block; padding:12px 0; color:#788697; text-align:center; }
    .staff-mobile-table-ready td.staff-table-empty-cell::before { content:none; }
    .staff-table-cell-value { min-width:0; overflow-wrap:anywhere; }
    .staff-mobile-table-ready td b { max-width:none; overflow:visible; white-space:normal; text-overflow:clip; }
    .staff-mobile-table-ready td small { font-size:10px; }
    .staff-table-scroll-hint { display:block; margin:2px 0 9px; color:#7c8995; font-size:11px; line-height:1.4; }
    .staff-compact-table { min-width:690px; }
    .staff-compact-table th:first-child,.staff-compact-table td:first-child { position:sticky; left:0; z-index:1; width:145px; min-width:145px; max-width:145px; background:#fff; box-shadow:3px 0 8px #1024170c; }
    .staff-compact-table td:first-child b { max-width:120px; }
    .staff-compact-table th:first-child { background:#f7faf7; }
    .staff-test-wa .staff-inline-form { flex-wrap:wrap; }
    .staff-test-wa .staff-inline-form input { min-width:0; }
}

/* Bantuan ringkas: ikon berada di samping bagian yang dijelaskan. */
.staff-heading-with-help { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.staff-heading-with-help h2 { margin:0; }
.staff-help-btn { display:inline-grid; place-items:center; flex:0 0 28px; width:28px; height:28px; padding:0; border:1px solid #cad9cf; border-radius:50%; background:#f4faf6; color:#187a43; font-family:inherit; font-size:14px; line-height:1; font-weight:700; cursor:pointer; }
.staff-help-btn svg { display:block; width:16px; height:16px; }
.staff-help-btn:hover { background:#e5f5ea; border-color:#83c99a; }
.staff-help-btn:focus-visible,.staff-help-close:focus-visible { outline:3px solid #51aa70; outline-offset:3px; }
.staff-inline-help { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.staff-help-dialog { box-sizing:border-box; width:min(420px,calc(100vw - 32px)); max-width:100%; max-height:calc(100dvh - 32px); overflow:auto; padding:22px; border:1px solid #e3ebe6; border-radius:16px; background:#fff; color:#263449; box-shadow:0 20px 65px #14231a40; }
.staff-help-dialog::backdrop { background:#101c16a6; }
.staff-help-dialog.is-fallback { position:fixed; inset:50% auto auto 50%; z-index:500; transform:translate(-50%,-50%); }
.staff-help-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.staff-help-dialog-head h2 { margin:0; color:#172033; font-size:17px; font-weight:700; line-height:1.35; }
.staff-help-close { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; padding:0; border:1px solid #e3eae6; border-radius:9px; background:#f8faf9; color:#57695e; font-size:22px; line-height:1; cursor:pointer; }
.staff-help-dialog p { margin:14px 0 20px; color:#566478; font-size:13px; line-height:1.65; }
.staff-help-done { min-width:94px; }
@media(max-width:700px) { .staff-help-dialog { padding:18px; } }

/* Konfirmasi transaksi dan pilihan struk thermal. */
.pos-receipt-dialog { box-sizing:border-box; width:min(420px,calc(100vw - 32px)); max-width:100%; max-height:calc(100dvh - 32px); overflow:auto; padding:22px; border:1px solid #e3ebe6; border-radius:18px; background:#fff; color:#263449; box-shadow:0 20px 65px #14231a40; }
.pos-receipt-dialog::backdrop { background:#101c16a6; }
.pos-receipt-dialog.is-fallback { position:fixed; inset:50% auto auto 50%; z-index:500; transform:translate(-50%,-50%); }
.pos-receipt-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.pos-success-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:15px; background:#e2f6e9; color:#16884b; }
.pos-receipt-dialog h2 { margin:14px 0 4px; color:#172033; font-size:19px; font-weight:700; line-height:1.3; }
.pos-receipt-code { margin:0 0 16px; color:#7a8996; font-size:11px; overflow-wrap:anywhere; }
.pos-receipt-summary { display:grid; gap:10px; padding:14px; border:1px solid #e8eeeb; border-radius:12px; background:#f8faf9; }
.pos-receipt-summary > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; color:#6a7a83; font-size:12px; }
.pos-receipt-summary b,.pos-receipt-summary strong { color:#263449; text-align:right; font-weight:700; }
.pos-receipt-summary strong { font-size:17px; }
.pos-paper-label { display:grid; gap:6px; margin-top:17px; color:#566675; font-size:12px; font-weight:700; }
.pos-paper-label select { width:100%; min-height:42px; padding:8px 10px; border:1px solid #dfe5ed; border-radius:9px; background:#fff; color:#263449; font:inherit; }
.pos-print-note { margin:7px 0 0; color:#7b8996; font-size:11px; line-height:1.5; }
.pos-print-error { margin:9px 0 0; color:#b44336; font-size:12px; line-height:1.4; }
.pos-print-error[hidden] { display:none; }
.pos-receipt-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:18px; }
.pos-receipt-actions .staff-button { min-width:0; min-height:44px; }
@media(max-width:360px) { .pos-receipt-dialog { padding:18px; }.pos-receipt-actions { grid-template-columns:1fr; } }

/* Detail barang dapat digulir, sementara pilihan cetak tetap terlihat. */
.pos-receipt-dialog[open] { display:flex; flex-direction:column; max-height:calc(100dvh - 32px); padding:0; overflow:hidden; }
.pos-receipt-header { flex:0 0 auto; padding:18px 20px 12px; border-bottom:1px solid #edf1ef; }
.pos-receipt-head { align-items:center; }
.pos-receipt-head h2 { flex:1; min-width:0; margin:0; font-size:16px; line-height:1.3; }
.pos-receipt-head h2:focus { outline:none; }
.pos-receipt-head .pos-success-icon { width:38px; height:38px; flex:0 0 38px; border-radius:12px; }
.pos-receipt-code { margin:8px 0 0; line-height:1.4; }
.pos-receipt-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px 20px; }
.pos-receipt-section-title h3 { margin:0; color:#263449; font-size:14px; font-weight:700; }
.pos-receipt-buyer { margin:9px 0 0; color:#768492; font-size:12px; overflow-wrap:anywhere; }
.pos-receipt-buyer b { color:#263449; font-weight:600; }
.pos-receipt-items { list-style:none; display:grid; gap:0; padding:0; margin:12px 0 14px; border:1px solid #e8eeeb; border-radius:12px; }
.pos-receipt-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:11px 12px; }
.pos-receipt-item + .pos-receipt-item { border-top:1px solid #edf1ef; }
.pos-receipt-item-copy { flex:1; min-width:0; }
.pos-receipt-item-copy b,.pos-receipt-item-copy small { display:block; overflow-wrap:anywhere; }
.pos-receipt-item-copy b { color:#263449; font-size:12px; font-weight:700; line-height:1.4; }
.pos-receipt-item-copy small { margin-top:4px; color:#7b8996; font-size:11px; }
.pos-receipt-item > strong { flex:0 0 auto; color:#263449; font-size:12px; font-weight:700; text-align:right; }
.pos-receipt-footer { flex:0 0 auto; padding:12px 20px 18px; border-top:1px solid #edf1ef; background:#fff; }
.pos-receipt-footer .pos-paper-label { margin-top:0; }
.pos-receipt-footer .pos-receipt-actions { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:12px; }
@media(max-width:360px) { .pos-receipt-header { padding:15px 16px 10px; }.pos-receipt-body { padding:12px 16px; }.pos-receipt-footer { padding:10px 16px 14px; }.pos-receipt-actions .staff-button { padding:8px 5px; font-size:11px; } }

/* Formulir tindakan tetap dekat dengan daftar yang sedang dikerjakan. */
.staff-edit-dialog { box-sizing:border-box; width:min(620px,calc(100vw - 28px)); max-width:100%; max-height:calc(100dvh - 28px); margin:auto; padding:0; border:1px solid #e2eae5; border-radius:18px; background:#fff; color:#263449; box-shadow:0 20px 65px #14231a40; }
.staff-edit-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.staff-edit-dialog::backdrop { background:#101c16a6; }
.staff-edit-dialog.is-fallback { position:fixed; inset:50% auto auto 50%; z-index:500; transform:translate(-50%,-50%); }
.staff-edit-head { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; padding:17px 20px; border-bottom:1px solid #eaf0ec; }
.staff-edit-head h2 { margin:0; color:#172033; font-size:17px; font-weight:700; line-height:1.3; }
.staff-edit-head h2:focus { outline:none; }
.staff-edit-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 20px; }
.staff-edit-body .staff-form-grid,.staff-edit-body .retail-form { margin:0; }
.staff-edit-footer { flex:0 0 auto; padding:13px 20px 17px; border-top:1px solid #eaf0ec; background:#fff; }
.staff-edit-actions { display:flex; justify-content:flex-end; gap:8px; }
.staff-edit-actions .staff-button { min-height:42px; }
.staff-edit-error { margin:0 0 10px; color:#b44336; font-size:12px; line-height:1.4; }
.staff-edit-error[hidden] { display:none; }
@media(max-width:700px) {
    .staff-edit-head { padding:15px 16px; }
    .staff-edit-body { padding:16px; }
    .staff-edit-footer { padding:12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
    .staff-edit-actions > .staff-button { flex:1; }
}

/* Pencarian dan tautan stok langsung. */
.staff-search-line { display:flex; align-items:end; gap:14px; margin:16px 0 4px; flex-wrap:wrap; }
.staff-search-line label { display:flex; flex-direction:column; gap:6px; color:#657287; font-size:11px; font-weight:700; flex:1 1 260px; max-width:440px; }
.staff-search-line input { box-sizing:border-box; width:100%; min-width:0; min-height:40px; border:1px solid #dfe5ed; border-radius:9px; padding:8px 10px; color:#263449; background:#fff; font:inherit; }
.staff-search-line span,.staff-list-note { color:#718097; font-size:11px; }
.staff-list-note { margin:7px 0 12px; line-height:1.5; }
.staff-lowstock-item { display:flex; justify-content:space-between; gap:10px; width:100%; text-align:left; padding:8px 10px; border:1px solid #f3d5ab; border-radius:9px; background:#fff9ef; color:#5c422b; font:inherit; cursor:pointer; }
.staff-lowstock-item:focus-visible { outline:3px solid #2eaa6280; outline-offset:2px; }
.staff-lowstock-item strong { flex-shrink:0; }
.staff-table tr.is-stock-target { outline:2px solid #e6a94f; outline-offset:-2px; background:#fff9ef; }

/* Scan barang berada di tempat pekerjaan berlangsung, bukan halaman terpisah. */
.pos-barcode-form { display:flex; align-items:end; gap:8px; margin:0 0 8px; }
.pos-barcode-form label { display:flex; flex:1; min-width:0; flex-direction:column; gap:6px; color:#657287; font-size:11px; font-weight:700; }
.pos-barcode-form input { width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #dfe5ed; border-radius:9px; background:#fff; color:#263449; font:inherit; }
.inline-scan-actions { display:flex; gap:8px; flex-wrap:wrap; }
.inline-scan-actions [hidden], .inventory-scan-tools [hidden], .inline-barcode-camera[hidden] { display:none !important; }
.inline-barcode-camera { width:100%; max-width:440px; margin:10px 0; overflow:hidden; background:#172033; border-radius:12px; aspect-ratio:16/9; }
.inline-barcode-camera video { display:block; width:100%; height:100%; object-fit:cover; }
.inline-scan-status { margin:8px 0 12px; min-height:1.4em; color:#64748b; font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.inventory-scan-tools { flex:1 1 100%; min-width:0; }
@media(max-width:700px) {
    .pos-panel .staff-pos-tools { display:flex; }
    .pos-panel .staff-pos-tools button { width:auto; padding:9px 14px; }
    .inventory-form .inventory-scan-tools { grid-column:1/-1; }
}

/* Scan QR pesanan menjadi tindakan utama di tengah navigasi mobile. */
@media(max-width:700px) {
    .staff-bottom-dock .staff-dock-fab { position:relative; overflow:visible; gap:3px; color:#138344; }
    .staff-bottom-dock .staff-dock-fab.is-active { background:transparent; }
    .staff-bottom-dock .staff-dock-fab-icon { display:grid; place-items:center; width:52px; height:52px; margin-top:-28px; border:4px solid #fff; border-radius:50%; background:#149147; color:#fff; box-shadow:0 4px 14px #14783d42; }
    .staff-bottom-dock .staff-dock-fab-icon svg { width:23px; height:23px; }
    .staff-bottom-dock .staff-dock-fab:focus-visible { outline:2px solid #118244; outline-offset:2px; }
}
.receipt-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.8fr); gap:22px; align-items:start; }
.receipt-design-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.receipt-design-form label { display:flex; flex-direction:column; gap:6px; min-width:0; color:#657287; font-size:11px; font-weight:700; }
.receipt-design-form input,.receipt-design-form select { box-sizing:border-box; width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #dfe5ed; border-radius:9px; background:#fff; color:#263449; font:inherit; }
.receipt-design-form .staff-list-note,.receipt-design-form .staff-edit-error { grid-column:1/-1; margin:0; }
.receipt-design-form button { justify-self:start; }
.receipt-preview-area { min-width:0; padding:16px; border:1px solid #e7edf0; border-radius:14px; background:#f5f7f9; }
.receipt-preview-area h3 { margin:0; color:#263449; font-size:14px; }
.receipt-preview-area p { margin:5px 0 12px; color:#718097; font-size:11px; }
.receipt-preview-wrap { overflow:auto; }
#receipt-design-preview { display:block; max-width:none; margin:0 auto; border:1px solid #e1e5e8; background:#fff; box-shadow:0 4px 12px #17203312; }
@media(max-width:700px) {
    .receipt-editor-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
    .receipt-design-form { grid-template-columns:minmax(0,1fr); }
    .receipt-design-form button { width:100%; }
}
.receipt-preview-wrap { overflow:hidden; }
.receipt-preview-scale { position:relative; margin:0 auto; }
#receipt-design-preview { position:absolute; left:0; top:0; margin:0; box-sizing:content-box; transform-origin:top left; }

/* Pemilih foto konsisten di Pengaturan dan Profil Saya. */
.staff-avatar-settings { align-items:flex-start; }
.staff-file-picker { position:relative; display:flex; align-items:center; gap:10px; width:min(100%, 390px); min-width:0; min-height:44px; margin-top:6px; padding:4px; border:1px solid #dfe7e3; border-radius:11px; background:#fff; cursor:pointer; }
.staff-avatar-settings-copy .staff-file-picker input[type=file],.staff-profile-photo-copy .staff-file-picker input[type=file] { position:absolute; left:8px; top:50%; width:1px; height:1px; min-width:0; padding:0; margin:0; border:0; opacity:0; }
.staff-file-picker:focus-within { border-color:#24a75e; outline:3px solid #27a65730; outline-offset:2px; }
.staff-file-button { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; min-height:34px; padding:7px 12px; border-radius:8px; background:#edf8f0; color:#158346; font-size:11px; font-weight:700; line-height:1.2; }
.staff-file-picker:hover .staff-file-button { background:#dff2e5; }
.staff-file-name { flex:1; min-width:0; overflow:hidden; padding-right:7px; color:#718097; font-size:11px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.staff-avatar-settings-copy .staff-profile-photo-actions { margin-top:6px; }

/* Semua toast staf tidak menghalangi aksi; di mobile berada di atas dock dan FAB. */
.staff-toast { pointer-events:none; overflow-wrap:anywhere; }
@media(max-width:700px) {
    .staff-toast { box-sizing:border-box; right:14px; left:14px; bottom:calc(96px + env(safe-area-inset-bottom, 0px)); max-width:none; }
}

/* Konfirmasi tindakan dan navigasi staf. */
.staff-confirm-dialog { box-sizing:border-box; width:min(420px,calc(100vw - 32px)); max-width:100%; max-height:calc(100dvh - 32px); margin:auto; padding:22px; overflow:auto; border:1px solid #e4ebe6; border-radius:18px; background:#fff; color:#263449; box-shadow:0 20px 65px #14231a40; }
.staff-confirm-dialog::backdrop { background:#101c16a6; }
.staff-confirm-dialog.is-fallback { position:fixed; inset:50% auto auto 50%; z-index:1000; transform:translate(-50%,-50%); box-shadow:0 0 0 100vmax #101c16a6,0 20px 65px #14231a40; }
.staff-confirm-head { display:flex; align-items:center; gap:12px; }
.staff-confirm-head h2 { margin:0; color:#172033; font-size:17px; font-weight:700; line-height:1.3; }
.staff-confirm-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; background:#fff3e8; color:#bd671c; }
.staff-confirm-dialog p { margin:14px 0 20px; color:#566478; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.staff-confirm-actions { display:flex; justify-content:flex-end; gap:8px; }
.staff-confirm-actions .staff-button { min-height:42px; }
.staff-confirm-danger { border-color:#be453b; background:#be453b; color:#fff; }
.staff-confirm-danger:hover { border-color:#a9332b; background:#a9332b; color:#fff; }
@media(max-width:700px) { .staff-confirm-dialog { padding:18px; }.staff-confirm-actions .staff-button { flex:1; } }

/* Laporan: kelompokkan ringkasan dan tabel tanpa mengubah halaman lain. */
.report-panel { padding:24px; }
.report-head { margin-bottom:20px; }
.report-head h2 { font-weight:700; }
.report-filter { gap:10px; margin:0 0 22px; }
.report-filter label { min-width:150px; font-size:11px; }
.report-filter input { width:100%; min-height:42px; font-size:12px; }
.report-filter .staff-button { min-height:42px; }
.report-kpi-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.report-kpi { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:16px; border:1px solid #e5eee8; border-radius:14px; background:#fbfdfb; }
.report-kpi-icon { display:grid; place-items:center; width:36px; height:36px; margin-bottom:14px; border-radius:11px; color:#138a47; background:#e4f5e9; }
.report-kpi.is-profit .report-kpi-icon { color:#536fc8; background:#edf1ff; }
.report-kpi.is-net .report-kpi-icon { color:#ad791d; background:#fff4df; }
.report-kpi-label { color:#6f7d74; font-size:11px; line-height:1.4; }
.report-kpi strong { max-width:100%; margin:5px 0; color:#18271e; font-size:clamp(17px,1.65vw,23px); line-height:1.25; font-weight:700; letter-spacing:-.03em; overflow-wrap:anywhere; }
.report-kpi small { color:#829087; font-size:10px; line-height:1.5; }
.report-section { min-width:0; margin-top:26px; }
.report-section + .report-section { padding-top:24px; border-top:1px solid #edf1ee; }
.report-section-head { margin:0 0 12px; }
.report-section-head h3 { margin:0; color:#25352b; font-size:14px; font-weight:700; line-height:1.35; }
.report-section-head p { margin:5px 0 0; color:#7a887e; font-size:11px; line-height:1.5; }
.report-limit-note { margin:0 0 10px; }
.report-section .staff-table td b { overflow-wrap:anywhere; white-space:normal; }
@media(max-width:700px) {
 .report-panel { padding:16px; }
 .report-head { margin-bottom:18px; }
 .report-filter { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
 .report-filter label { min-width:0; }
 .report-filter .staff-button { grid-column:1/-1; width:100%; }
 .report-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .report-kpi { padding:13px; }
 .report-kpi-icon { margin-bottom:11px; }
 .report-section { margin-top:22px; }
 .report-section + .report-section { padding-top:20px; }
}
/* Jumlah barang dapat disesuaikan tanpa mengubah harga inventori. */
.pos-qty-control { display:inline-flex; align-items:center; margin-top:10px; border:1px solid #dce6e0; border-radius:9px; overflow:hidden; background:#fff; }
.pos-qty-control button { display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; background:#f4f8f5; color:#237e49; font-size:18px; line-height:1; cursor:pointer; }
.pos-qty-control button:disabled { color:#a8b6ad; cursor:not-allowed; }
.pos-qty-control input { box-sizing:border-box; width:48px; min-width:0; height:34px; padding:3px; border:0; border-left:1px solid #e4ebe6; border-right:1px solid #e4ebe6; border-radius:0; background:#fff; color:#263449; text-align:center; font:inherit; font-size:12px; font-weight:700; appearance:textfield; -moz-appearance:textfield; }
.pos-qty-control input::-webkit-inner-spin-button,.pos-qty-control input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.pos-qty-control input:focus-visible,.pos-qty-control button:focus-visible { outline:2px solid #15954b; outline-offset:-2px; }
.pos-qty-control input[aria-invalid=true] { background:#fff1ef; color:#aa3932; }
.pos-qty-error { display:block; margin-top:5px; color:#b44336; font-size:10px; line-height:1.4; }
.pos-qty-error[hidden] { display:none; }
.pos-cart-item { align-items:flex-start; }
.pos-cart-item-actions { padding-top:1px; }

/* Promosi instalasi dan identitas aplikasi staf. */
.staff-install-banner { position:fixed; right:22px; bottom:22px; z-index:220; box-sizing:border-box; display:flex; align-items:flex-start; gap:12px; width:min(410px,calc(100vw - 28px)); padding:16px; border:1px solid #d8eae0; border-radius:16px; background:#fff; color:#263449; box-shadow:0 15px 48px #10241730; }
.staff-install-icon { flex:0 0 40px; height:40px; display:grid; place-items:center; border-radius:12px; color:#168548; background:#e8f7ed; }
.staff-install-copy { flex:1; min-width:0; }
.staff-install-copy b { display:block; color:#1c3024; font-size:14px; font-weight:700; }
.staff-install-copy p { margin:5px 0 12px; color:#718076; font-size:11px; line-height:1.45; }
.staff-install-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.staff-install-actions .staff-button { min-height:36px; padding:7px 11px; }
.staff-install-actions .staff-install-never { border-color:#e4e9e7; background:#edf1ef; color:#4d5a52; box-shadow:none; }
.staff-install-actions .staff-install-never:hover { border-color:#d3dcd6; background:#e1e8e4; color:#34443a; }
.staff-install-close { border:0; background:transparent; cursor:pointer; }
.staff-install-close { flex:0 0 auto; padding:0; color:#7b8a80; font-size:22px; line-height:1; }
.staff-install-banner-open .staff-toast { bottom:auto; top:20px; }
.staff-pwa-panel h3 { margin:0; color:#27392d; font-size:14px; font-weight:700; }
.staff-pwa-panel p { margin:6px 0 14px; color:#758278; font-size:11px; line-height:1.55; }
.staff-pwa-grid { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr); gap:16px; }
.staff-pwa-install-box,.staff-pwa-form { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:16px; border:1px solid #e6eee8; border-radius:14px; background:#fafcfb; }
.staff-pwa-form label { display:grid; gap:6px; width:100%; color:#657287; font-size:11px; font-weight:700; }
.staff-pwa-form input:not([type=file]) { box-sizing:border-box; width:100%; min-height:42px; padding:8px 10px; border:1px solid #dfe7e3; border-radius:9px; font:inherit; font-size:12px; }
.staff-pwa-form input[type=file] { box-sizing:border-box; max-width:100%; color:#657287; font:inherit; font-size:11px; }
.staff-pwa-form input[type=file]::file-selector-button { padding:8px 10px; border:0; border-radius:8px; background:#e8f7ed; color:#168548; font:inherit; cursor:pointer; }
.staff-pwa-icon-row { display:flex; align-items:center; gap:12px; width:100%; margin:14px 0; }
.staff-pwa-icon-row img { width:62px; height:62px; flex:0 0 auto; border-radius:14px; object-fit:cover; background:#edf5ef; }
.staff-pwa-icon-row small,.staff-pwa-panel small { color:#7b8a80; font-size:10px; font-weight:400; line-height:1.5; }
.staff-pwa-panel .staff-pwa-note { margin:12px 0 0; }
.staff-pwa-dialog { box-sizing:border-box; width:min(420px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:22px; border:1px solid #e4ebe6; border-radius:18px; background:#fff; color:#263449; box-shadow:0 20px 65px #14231a40; }
.staff-pwa-dialog::backdrop { background:#101c16a6; }
.staff-pwa-dialog.is-fallback { position:fixed; inset:50% auto auto 50%; z-index:1000; transform:translate(-50%,-50%); box-shadow:0 0 0 100vmax #101c16a6; }
.staff-pwa-dialog h2 { margin:0; font-size:17px; font-weight:700; }
.staff-pwa-dialog p { margin:14px 0; color:#566478; font-size:13px; line-height:1.6; }
.staff-pwa-dialog .staff-pwa-guide-note { font-size:11px; }
@media(max-width:700px) {
 .staff-install-banner { left:14px; right:14px; bottom:calc(96px + env(safe-area-inset-bottom, 0px)); width:auto; padding:14px; }
 .staff-install-banner-open .staff-toast { top:calc(70px + env(safe-area-inset-top, 0px)); bottom:auto; }
 .staff-pwa-grid { grid-template-columns:minmax(0,1fr); }
}
.staff-pwa-icon-row label { flex:1; width:auto; min-width:0; }
.staff-pwa-icon-row input[type=file] { min-width:0; width:100%; }

/* Pengaturan toko dan WhatsApp tetap satu formulir, namun dikelompokkan jelas. */
.staff-settings-form { display:flex; flex-direction:column; gap:20px; }
.staff-settings-group { box-sizing:border-box; min-width:0; margin:0; padding:16px; border:1px solid #e5eee8; border-radius:14px; background:#fafcfb; }
.staff-settings-group legend { padding:0 5px; color:#263b2e; font-size:14px; font-weight:700; }
.staff-settings-group > p { margin:0 0 14px; color:#758479; font-size:11px; line-height:1.5; }
.staff-settings-group .staff-form-grid { margin:0; }
.staff-settings-checks { display:grid; gap:11px; padding-top:3px; }
.staff-settings-checks .staff-check { min-width:0; color:#67756a; font-size:11px; font-weight:600; line-height:1.4; }
.staff-settings-checks .staff-check input { flex:0 0 16px; width:16px; min-width:16px; height:16px; margin:0; }
.staff-settings-actions { width:100%; }
.staff-settings-actions .staff-button { width:100%; }
.staff-settings-panel .staff-test-wa { margin-top:20px; }
@media(max-width:700px) {
 .pos-barcode-form { display:flex; flex-direction:column; align-items:stretch; gap:9px; }
 .pos-barcode-form label,.pos-barcode-form input,.pos-barcode-form button { box-sizing:border-box; width:100%; }
 #pos-history-filter { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:10px; }
 #pos-history-filter label { min-width:0; }
 #pos-history-filter label:first-child { grid-column:1/-1; }
 #pos-history-filter input { box-sizing:border-box; width:100%; min-width:0; max-width:100%; }
 #pos-history-filter button { box-sizing:border-box; width:100%; min-width:0; }
 .staff-settings-form { gap:16px; }
 .staff-settings-group { padding:14px; }
}

/* Preferensi ajakan instalasi hanya berlaku untuk akun di browser ini. */
.staff-pwa-preference { width:100%; box-sizing:border-box; margin-top:18px; padding-top:16px; border-top:1px solid #e3ebe5; }
.staff-pwa-preference .staff-pwa-preference-label { display:flex; align-items:flex-start; gap:9px; width:100%; color:#3e5145; font-size:12px; font-weight:600; line-height:1.4; cursor:pointer; }
.staff-pwa-preference-label input[type=checkbox] { flex:0 0 17px; width:17px; height:17px; margin:0; accent-color:#149147; }
.staff-pwa-preference small { display:block; margin:7px 0 0; }
.staff-pwa-preference .staff-pwa-show-now { max-width:100%; margin-top:12px; text-align:center; white-space:normal; }
.staff-pwa-preference .staff-pwa-show-now:disabled { cursor:not-allowed; }
@media(max-width:700px) { .staff-pwa-preference .staff-pwa-show-now { width:100%; } }

/* Pemilih ikon PWA mengikuti pemilih foto pada Profil Saya. */
.staff-pwa-icon-copy { flex:1; min-width:0; }
.staff-pwa-icon-label { display:block; color:#657287; font-size:11px; font-weight:700; }
.staff-pwa-form .staff-pwa-icon-copy .staff-file-picker { display:flex; box-sizing:border-box; width:min(100%,390px); min-width:0; gap:10px; font-weight:400; }
.staff-pwa-icon-copy .staff-file-picker input[type=file] { position:absolute; left:8px; top:50%; width:1px; height:1px; min-width:0; padding:0; margin:0; border:0; opacity:0; }
.staff-pwa-icon-copy > small { display:block; margin-top:6px; }

/* Pratinjau dan pilihan printer struk POS maupun transaksi digital. */
.pos-print-preview-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 0 10px; }
.pos-print-preview-heading h3 { margin:0; color:#263449; font-size:13px; font-weight:700; }
.pos-print-preview-heading span { color:#7a8996; font-size:10px; text-align:right; }
.pos-print-preview-wrap { max-height:260px; overflow:auto; overscroll-behavior:contain; padding:14px 0; border:1px solid #e7edf0; border-radius:12px; background:#f3f6f4; }
.pos-print-preview-scale { position:relative; margin:0 auto; }
#pos-receipt-preview { display:block; position:absolute; left:0; top:0; margin:0; border:0; background:white; box-shadow:0 3px 14px #1b322018; transform-origin:top left; }
.pos-printer-settings { display:grid; gap:9px; padding-top:16px; }
.pos-printer-settings .pos-paper-label { margin:0; }
.pos-printer-settings #pos-find-printer { justify-self:start; min-height:40px; }
.pos-printer-note,.pos-print-result { margin:0; color:#738178; font-size:11px; line-height:1.45; }
.pos-print-result { color:#147542; }
.pos-printer-settings .pos-print-note { margin:0; }
.pos-receipt-footer .pos-receipt-actions { margin-top:0; }
.staff-order-head-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; }
@media(max-width:480px) { .pos-printer-settings #pos-find-printer { width:100%; }.pos-print-preview-wrap { max-height:200px; }.staff-order-head-actions { justify-content:flex-start; } }

/* Hasil pencarian POS melekat di bawah kolom scan. */
.pos-search-field { position:relative; flex:1 1 auto; min-width:0; }
.pos-search-popup { position:static; margin-top:5px; box-sizing:border-box; overflow:hidden; border:1px solid #dfe9e2; border-radius:12px; background:#fff; box-shadow:0 12px 30px #1c33282b; }
.pos-search-popup[hidden] { display:none !important; }
#pos-search-results { max-height:265px; overflow-y:auto; overscroll-behavior:contain; }
.pos-barcode-form .pos-search-option { display:flex; flex-direction:column; align-items:flex-start; gap:4px; box-sizing:border-box; width:100%; min-width:0; padding:11px 12px; border:0; border-bottom:1px solid #edf2ef; background:#fff; color:#263449; text-align:left; font-family:inherit; cursor:pointer; }
.pos-barcode-form .pos-search-option:hover,.pos-barcode-form .pos-search-option[aria-selected="true"] { background:#edf8f1; }
.pos-barcode-form .pos-search-option:focus-visible { outline:2px solid #149147; outline-offset:-2px; }
.pos-barcode-form .pos-search-option:disabled { opacity:.57; cursor:not-allowed; }
.pos-search-name,.pos-search-code,.pos-search-extra { display:block; max-width:100%; overflow-wrap:anywhere; line-height:1.4; }
.pos-search-name { color:#263449; font-size:12px; font-weight:700; }
.pos-search-code { color:#617268; font-size:11px; font-weight:400; }
.pos-search-extra { color:#187d46; font-size:10px; font-weight:600; }
#pos-search-hint { margin:0; padding:9px 12px; color:#708078; font-size:10px; line-height:1.4; }
@media(max-width:700px) { .pos-search-field { width:100%; } #pos-search-results { max-height:220px; } }
/* Hasil berada dalam alur halaman agar tombol Tambah dan kamera tidak tertutup. */
.pos-barcode-form { align-items:flex-start; }
.pos-barcode-form > button[type=submit] { margin-top:21px; }
@media(max-width:700px) { .pos-barcode-form > button[type=submit] { margin-top:0; } }

/* Nama dan izin printer dikelola tanpa mengubah Bluetooth sistem. */
.pos-printer-manage,.pos-printer-rename-actions { display:flex; flex-wrap:wrap; gap:8px; }
.pos-printer-manage[hidden],.pos-printer-rename[hidden] { display:none; }
.pos-printer-manage .staff-button,.pos-printer-rename-actions .staff-button { min-height:38px; }
.pos-printer-remove { color:#ab4545; }
.pos-printer-rename { padding:12px; border:1px solid #e2ebe5; border-radius:10px; background:#f8faf9; }
.pos-printer-rename .pos-paper-label { display:grid; gap:7px; }
.pos-printer-rename input { box-sizing:border-box; width:100%; min-width:0; }
.pos-printer-rename-actions { margin-top:9px; }

/* Filter riwayat penjualan dan pesanan: petunjuk tanggal terlihat lintas browser. */
.history-list-panel { min-width:0; }
.history-panel-head h2 { font-weight:700; }
.history-panel-head p { margin:5px 0 0; color:#788795; font-size:12px; line-height:1.5; }
.history-filter.staff-filter { display:grid; grid-template-columns:minmax(220px,2fr) minmax(145px,1fr) minmax(145px,1fr) auto; align-items:end; gap:12px; margin:0 0 22px; padding:15px; border:1px solid #e8eeeb; border-radius:13px; background:#f8faf9; }
.history-order-filter.staff-filter { grid-template-columns:minmax(220px,2fr) minmax(140px,1fr) minmax(145px,1fr) minmax(145px,1fr) auto; }
.history-filter .history-filter-field { display:grid; gap:7px; min-width:0; color:#5d6e65; font-size:11px; font-weight:700; }
.history-filter.staff-filter input,.history-filter.staff-filter select { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:42px; padding:9px 11px; color:#263449; background:#fff; font-size:12px; font-weight:400; }
.history-filter.staff-filter input[name=search] { min-width:0; }
.history-filter input::placeholder { color:#92a09a; opacity:1; }
.history-date-control { display:block; position:relative; min-width:0; }
.history-date-control input { display:block; }
.history-date-control input.is-empty:not(:focus)::-webkit-datetime-edit { color:transparent; }
.history-date-hint { display:none; position:absolute; top:50%; left:12px; transform:translateY(-50%); color:#8c9a93; font-size:12px; font-weight:400; line-height:1; pointer-events:none; white-space:nowrap; }
.history-date-control input.is-empty:not(:focus) + .history-date-hint { display:block; }
.history-filter-actions { display:flex; gap:8px; }
.history-filter-actions .staff-button { min-height:42px; white-space:nowrap; }
.history-results-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; }
.history-results-head h3 { margin:0; color:#263449; font-size:14px; font-weight:700; }
.history-results-head span { color:#7b8a83; font-size:11px; }
.history-list-panel.retail-panel .staff-table-wrap { margin-top:0; }
@media(max-width:1200px) {
    .history-filter.staff-filter,.history-order-filter.staff-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .history-filter .history-filter-search { grid-column:1/-1; }
    .history-order-filter .history-filter-status { grid-column:1/-1; }
    .history-filter-actions { grid-column:1/-1; }
}
@media(max-width:700px) {
    .history-filter.staff-filter { gap:11px; padding:13px; margin-bottom:20px; }
    .history-filter-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .history-filter-actions .staff-button { width:100%; }
    .history-panel-head { gap:12px; }
    .history-results-head { margin-bottom:10px; }
}

/* Isolasi form staf dari margin bawaan tema; kontrol sebaris setinggi dan sejajar. */
.staff-shell .staff-filter label,
.staff-shell .staff-manual-form label,
.staff-shell .staff-bill-form label,
.staff-shell .staff-search-line label,
.staff-shell .barcode-manual-form label,
.staff-shell .pos-barcode-form label { margin:0; }
.staff-shell .staff-filter input,
.staff-shell .staff-filter select,
.staff-shell .staff-filter .staff-button,
.staff-shell .staff-manual-form input,
.staff-shell .staff-manual-form .staff-button,
.staff-shell .staff-bill-form input,
.staff-shell .staff-bill-form .staff-button,
.staff-shell .staff-inline-form input,
.staff-shell .staff-inline-form select,
.staff-shell .staff-inline-form .staff-button,
.staff-shell .barcode-manual-form input,
.staff-shell .barcode-manual-form .staff-button,
.staff-shell .pos-barcode-form > .staff-button,
.staff-shell .pos-barcode-form #pos-barcode-input {
    box-sizing:border-box; height:42px; min-height:42px; margin:0; line-height:1.25;
}
.staff-shell .staff-filter .staff-button:hover,
.staff-shell .staff-manual-form .staff-button:hover,
.staff-shell .staff-bill-form .staff-button:hover,
.staff-shell .staff-inline-form .staff-button:hover,
.staff-shell .barcode-manual-form .staff-button:hover,
.staff-shell .pos-barcode-form > .staff-button:hover { transform:none; }
.staff-shell .history-filter-actions { align-items:end; }
/* Dropdown pencarian tetap dalam alur tanpa menggeser tombol saat hasil muncul. */
.staff-shell .pos-barcode-form label { font-size:11px; line-height:1.25; }
.staff-shell .pos-barcode-form > button[type=submit] { margin-top:calc(11px * 1.25 + 6px); }
@media(max-width:700px) {
    .staff-shell .pos-barcode-form > button[type=submit] { margin-top:0; }
}

/* Jarak judul POS serta katalog dan audit yang nyaman dibaca di layar kecil. */
.pos-products > .pos-section-heading:first-child { margin-bottom:12px; }
.catalog-head h2,.audit-head h2 { font-weight:700; }
.catalog-search-box,.audit-search-box { display:grid; gap:7px; max-width:510px; margin:18px 0 20px; }
.catalog-search-box label,.audit-search-box label { margin:0; color:#617168; font-size:11px; font-weight:700; }
.catalog-search-box input,.audit-search-box input { box-sizing:border-box; width:100%; min-width:0; min-height:42px; margin:0; padding:9px 11px; border:1px solid #dfe8e0; border-radius:9px; background:#fff; color:#263449; font:inherit; font-size:12px; }
.catalog-search-box input:focus,.audit-search-box input:focus { border-color:#30a85f; outline:3px solid #27a65720; }
.catalog-list-head,.audit-list-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 12px; }
.catalog-list-head h3,.audit-list-head h3 { margin:0; color:#263449; font-size:14px; font-weight:700; }
.catalog-list-head span,.audit-list-head span { flex-shrink:0; color:#7b8a83; font-size:11px; }
.catalog-row-actions { display:flex; gap:5px; }
.catalog-row-actions .staff-icon-button { flex:0 0 auto; }
.catalog-row-actions .staff-icon-button span { display:none; }
.catalog-empty,.audit-empty { padding:24px 12px; border:1px dashed #e1eae4; border-radius:12px; color:#7b8981; text-align:center; font-size:12px; }
.catalog-empty[hidden],.audit-empty[hidden] { display:none; }
.audit-list-head p { margin:5px 0 0; color:#819087; font-size:11px; line-height:1.45; }
.audit-events { display:grid; gap:10px; }
.audit-event { display:flex; gap:12px; min-width:0; padding:14px; border:1px solid #e7efea; border-radius:12px; background:#fafcfb; }
.audit-event-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; color:#16884b; background:#e7f7eb; }
.audit-event-content { flex:1; min-width:0; }
.audit-event-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:7px 12px; }
.audit-event-heading b { color:#263449; font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.audit-event-type { padding:4px 8px; border-radius:8px; background:#eaf5ee; color:#197342; font-size:10px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; }
.audit-event-content p { margin:7px 0 8px; color:#52645a; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.audit-event-content small { color:#819087; font-size:10px; }
@media(max-width:700px) {
 .catalog-search-box,.audit-search-box { max-width:none; margin:16px 0 20px; }
 .catalog-panel .staff-mobile-table-ready tbody { gap:10px; }
 .catalog-panel .staff-mobile-table-ready tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:"name name state" "category category category" "cost sale margin" "actions actions actions"; gap:10px 8px; padding:14px; background:#fafcfb; }
 .catalog-panel .staff-mobile-table-ready td { display:block; min-width:0; padding:0; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(1) { grid-area:name; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) { grid-area:category; color:#758479; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(3) { grid-area:cost; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(4) { grid-area:sale; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(5) { grid-area:margin; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(6) { grid-area:state; justify-self:end; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(7) { grid-area:actions; padding-top:10px; border-top:1px solid #e9efeb; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(1)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(2)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(6)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(7)::before { display:none; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(3)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(4)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(5)::before { display:block; margin-bottom:5px; }
 .catalog-panel .staff-mobile-table-ready td:first-child b { color:#263449; font-size:12px; line-height:1.4; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) small { display:inline; margin:0 0 0 5px; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) small::before { content:'· '; }
 .catalog-panel .catalog-row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .catalog-panel .catalog-row-actions .staff-icon-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:38px; font:inherit; font-size:11px; font-weight:700; }
 .catalog-panel .catalog-row-actions .staff-icon-button span { display:inline; }
 .audit-event { gap:10px; padding:12px; }
 .audit-event-icon { flex-basis:34px; width:34px; height:34px; border-radius:10px; }
}

/* Nama dan kode panjang tetap terbaca tanpa melebar pada kartu katalog. */
.catalog-table td { overflow-wrap:anywhere; }

/* Ringkasan kartu dan formulir staf yang lebih nyaman di layar kecil. */
@media (max-width:700px) {
 .pos-panel .pos-add-form { grid-template-columns:minmax(0,1fr) minmax(76px,90px); gap:8px; margin:12px 0 16px; }
 .pos-panel .pos-add-form button { grid-column:1/-1; width:auto; justify-self:start; padding:8px 14px; }
 .pos-panel .inline-scan-actions > .staff-button { width:auto; min-height:40px; }
 .history-filter.staff-filter { gap:9px; padding:11px; margin-bottom:16px; }
 .history-filter .history-filter-field { gap:5px; }
 .history-panel-head { gap:9px; }
 .inventory-list-panel .staff-mobile-table-ready tr[data-inventory-row] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:'name name name' 'sale cost stock' 'actions actions actions'; gap:10px 8px; padding:13px; }
 .inventory-list-panel tr[data-inventory-row] td { display:block; min-width:0; padding:0; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(1) { grid-area:name; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(2) { grid-area:sale; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(3) { grid-area:cost; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) { grid-area:stock; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) { grid-area:actions; border-top:1px solid #e9efeb; padding-top:9px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(1)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(5)::before { display:none; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(2)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(3)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(4)::before { display:block; margin-bottom:4px; }
 .inventory-list-panel tr[data-inventory-row] td:first-child b { color:#263449; font-size:12px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) b { color:#16884b; font-size:13px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) b.is-low { color:#d44a35; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) .staff-table-cell-value { display:flex; gap:8px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) button { flex:1; min-width:0; min-height:38px; }
 .stock-history-panel tr.stock-history-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'name qty' 'type time' 'note note'; gap:7px 12px; padding:13px; }
 .stock-history-panel tr.stock-history-row td { display:block; min-width:0; padding:0; }
 .stock-history-panel tr.stock-history-row td:nth-child(1) { grid-area:time; text-align:right; color:#819087; }
 .stock-history-panel tr.stock-history-row td:nth-child(2) { grid-area:name; }
 .stock-history-panel tr.stock-history-row td:nth-child(3) { grid-area:type; }
 .stock-history-panel tr.stock-history-row td:nth-child(4) { grid-area:qty; color:#16884b; font-size:14px; font-weight:700; text-align:right; }
 .stock-history-panel tr.stock-history-row td:nth-child(5) { grid-area:note; color:#718078; }
 .stock-history-panel tr.stock-history-row td::before { display:none; }
 .stock-history-panel tr.stock-history-row td:nth-child(2) b { color:#263449; font-size:12px; }
 .expenses-list-panel tr.expense-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'category amount' 'date action'; gap:8px 12px; align-items:start; padding:13px; }
 .expenses-list-panel tr.expense-list-row td { display:block; min-width:0; padding:0; }
 .expenses-list-panel tr.expense-list-row td::before { display:none; }
 .expenses-list-panel tr.expense-list-row td:nth-child(1) { grid-area:date; color:#819087; }
 .expenses-list-panel tr.expense-list-row td:nth-child(2) { grid-area:category; }
 .expenses-list-panel tr.expense-list-row td:nth-child(3) { grid-area:amount; color:#263449; font-weight:700; text-align:right; }
 .expenses-list-panel tr.expense-list-row td:nth-child(4) { grid-area:action; justify-self:end; }
 .customers-list-panel tr.customer-list-row,.wa-list-panel tr.wa-list-row { padding:13px; }
 .customers-list-panel tr.customer-list-row td,.wa-list-panel tr.wa-list-row td { padding:4px 0; }
 .customers-list-panel tr.customer-list-row td:first-child,.wa-list-panel tr.wa-list-row td:nth-child(2) { padding-bottom:9px; margin-bottom:3px; border-bottom:1px solid #e9efeb; }
 .customers-list-panel tr.customer-list-row td:first-child b,.wa-list-panel tr.wa-list-row td:nth-child(2) b { color:#263449; font-size:12px; }
}
.restock-search { display:grid; gap:6px; max-width:510px; margin:16px 0 12px; }
.restock-search label { color:#617168; font-size:11px; font-weight:700; }
.restock-search input { box-sizing:border-box; width:100%; min-width:0; min-height:42px; padding:9px 11px; border:1px solid #dfe8e0; border-radius:9px; font:inherit; font-size:12px; }
.restock-search span,.restock-empty { color:#788795; font-size:11px; }
.restock-empty[hidden] { display:none; }
@media(max-width:700px) { .stock-history-panel tr.stock-history-row td.stock-change-negative { color:#c64035; } }

/* Tablet: navigasi menjadi drawer agar lebar layar dipakai untuk pekerjaan. */
@media (min-width:1024px) { .staff-sidebar-backdrop { display:none; } }
@media (min-width:701px) and (max-width:1023px) {
 .staff-shell { display:block; }
 .staff-sidebar { position:fixed; top:0; left:0; width:min(285px,85vw); height:100dvh; transform:translateX(-105%); visibility:hidden; transition:transform .2s ease,visibility 0s linear .2s; box-shadow:15px 0 40px #11251a1c; }
 .staff-sidebar.is-open { transform:translateX(0); visibility:visible; transition:transform .2s ease; }
 .staff-sidebar-head { align-items:flex-start; gap:3px; margin:0 0 18px; }
 .staff-brand { padding:2px 3px 0 5px; }
 .staff-sidebar-close { display:grid; }
 .staff-sidebar-backdrop { position:fixed; inset:0; z-index:19; display:block; border:0; background:#14231a75; cursor:pointer; }
 .staff-sidebar-backdrop[hidden] { display:none !important; }
 .staff-sidebar.is-open ~ .staff-workspace .staff-notification-popover { display:none; }
 .staff-workspace { position:relative; padding:0 20px 40px; }
 .staff-mobile-head { position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:10px; min-height:58px; margin:0 -20px 20px; padding:8px 20px; border-bottom:1px solid #e7eee9; background:#ffffffed; backdrop-filter:blur(12px); }
 .staff-mobile-head b { flex:1; font-size:14px; }
 .staff-dashboard-welcome .staff-welcome-tools { display:none; }
 .staff-page-head { margin-top:0; }
}
@media (min-width:701px) and (max-width:900px) {
 .staff-profile-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
}
/* Di batas tablet kecil, kartu menjaga seluruh aksi terlihat tanpa geser tabel. */
@media (min-width:701px) and (max-width:820px) {
 .staff-table-wrap.staff-mobile-cards-wrap { border:0; border-radius:0; overflow:visible; }
 .staff-mobile-table-ready { display:block; min-width:0; }
 .staff-mobile-table-ready thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 .staff-mobile-table-ready tbody { display:grid; gap:10px; }
 .staff-mobile-table-ready tbody tr { display:block; min-width:0; padding:9px 12px; border:1px solid #e8edf0; border-radius:12px; background:#fafcfb; }
 .staff-mobile-table-ready td { display:grid; grid-template-columns:minmax(78px,30%) minmax(0,1fr); gap:8px; padding:6px 0; border:0; line-height:1.45; overflow-wrap:anywhere; }
 .staff-mobile-table-ready td::before { content:attr(data-label); color:#7d8b96; font-size:10px; font-weight:600; }
 .staff-mobile-table-ready td.staff-table-empty-cell { display:block; padding:12px 0; color:#788697; text-align:center; }
 .staff-mobile-table-ready td.staff-table-empty-cell::before { content:none; }
 .staff-table-cell-value { min-width:0; overflow-wrap:anywhere; }
 .staff-mobile-table-ready td b { max-width:none; overflow:visible; white-space:normal; text-overflow:clip; }
 .staff-mobile-table-ready td small { font-size:10px; }
}

@media (min-width:701px) and (max-width:820px) {
 .catalog-panel .staff-mobile-table-ready tbody { gap:10px; }
 .catalog-panel .staff-mobile-table-ready tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:"name name state" "category category category" "cost sale margin" "actions actions actions"; gap:10px 8px; padding:14px; background:#fafcfb; }
 .catalog-panel .staff-mobile-table-ready td { display:block; min-width:0; padding:0; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(1) { grid-area:name; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) { grid-area:category; color:#758479; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(3) { grid-area:cost; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(4) { grid-area:sale; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(5) { grid-area:margin; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(6) { grid-area:state; justify-self:end; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(7) { grid-area:actions; padding-top:10px; border-top:1px solid #e9efeb; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(1)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(2)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(6)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(7)::before { display:none; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(3)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(4)::before,.catalog-panel .staff-mobile-table-ready td:nth-child(5)::before { display:block; margin-bottom:5px; }
 .catalog-panel .staff-mobile-table-ready td:first-child b { color:#263449; font-size:12px; line-height:1.4; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) small { display:inline; margin:0 0 0 5px; }
 .catalog-panel .staff-mobile-table-ready td:nth-child(2) small::before { content:'· '; }
 .catalog-panel .catalog-row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .catalog-panel .catalog-row-actions .staff-icon-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:38px; font:inherit; font-size:11px; font-weight:700; }
 .catalog-panel .catalog-row-actions .staff-icon-button span { display:inline; }
 .inventory-list-panel .staff-mobile-table-ready tr[data-inventory-row] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:'name name name' 'sale cost stock' 'actions actions actions'; gap:10px 8px; padding:13px; }
 .inventory-list-panel tr[data-inventory-row] td { display:block; min-width:0; padding:0; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(1) { grid-area:name; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(2) { grid-area:sale; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(3) { grid-area:cost; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) { grid-area:stock; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) { grid-area:actions; border-top:1px solid #e9efeb; padding-top:9px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(1)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(5)::before { display:none; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(2)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(3)::before,.inventory-list-panel tr[data-inventory-row] td:nth-child(4)::before { display:block; margin-bottom:4px; }
 .inventory-list-panel tr[data-inventory-row] td:first-child b { color:#263449; font-size:12px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) b { color:#16884b; font-size:13px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(4) b.is-low { color:#d44a35; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) .staff-table-cell-value { display:flex; gap:8px; }
 .inventory-list-panel tr[data-inventory-row] td:nth-child(5) button { flex:1; min-width:0; min-height:38px; }
 .stock-history-panel tr.stock-history-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'name qty' 'type time' 'note note'; gap:7px 12px; padding:13px; }
 .stock-history-panel tr.stock-history-row td { display:block; min-width:0; padding:0; }
 .stock-history-panel tr.stock-history-row td:nth-child(1) { grid-area:time; text-align:right; color:#819087; }
 .stock-history-panel tr.stock-history-row td:nth-child(2) { grid-area:name; }
 .stock-history-panel tr.stock-history-row td:nth-child(3) { grid-area:type; }
 .stock-history-panel tr.stock-history-row td:nth-child(4) { grid-area:qty; color:#16884b; font-size:14px; font-weight:700; text-align:right; }
 .stock-history-panel tr.stock-history-row td:nth-child(5) { grid-area:note; color:#718078; }
 .stock-history-panel tr.stock-history-row td::before { display:none; }
 .stock-history-panel tr.stock-history-row td:nth-child(2) b { color:#263449; font-size:12px; }
 .expenses-list-panel tr.expense-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'category amount' 'date action'; gap:8px 12px; align-items:start; padding:13px; }
 .expenses-list-panel tr.expense-list-row td { display:block; min-width:0; padding:0; }
 .expenses-list-panel tr.expense-list-row td::before { display:none; }
 .expenses-list-panel tr.expense-list-row td:nth-child(1) { grid-area:date; color:#819087; }
 .expenses-list-panel tr.expense-list-row td:nth-child(2) { grid-area:category; }
 .expenses-list-panel tr.expense-list-row td:nth-child(3) { grid-area:amount; color:#263449; font-weight:700; text-align:right; }
 .expenses-list-panel tr.expense-list-row td:nth-child(4) { grid-area:action; justify-self:end; }
}
@media (min-width:701px) and (max-width:820px) {
 .catalog-panel .staff-mobile-table-ready tbody,
 .inventory-list-panel .staff-mobile-table-ready tbody,
 .history-list-panel .staff-mobile-table-ready tbody { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
/* Hint menutupi placeholder bawaan Safari/WebKit yang tidak selalu transparan. */
.history-date-hint { width:calc(100% - 50px); min-height:20px; padding:3px 0; box-sizing:border-box; background:#fff; }

/* Aksi inventori dan detail pesanan. */
.inventory-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:0 0 auto; }
.inventory-head-actions .inventory-history-button { box-sizing:border-box; flex:0 0 42px; width:42px; min-width:42px; height:42px; padding:0; color:#148544; }
.inventory-head-actions #inventory-new { white-space:nowrap; }
.staff-order-detail > .staff-panel-head { align-items:center; }
.staff-order-detail > .staff-panel-head > div:first-child { min-width:0; }
.staff-order-detail > .staff-panel-head h2 { overflow-wrap:anywhere; }
.staff-order-detail .staff-order-head-actions { flex:0 0 auto; margin-left:auto; justify-content:flex-end; }
.staff-order-detail .staff-order-status-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; align-items:stretch; }
.staff-order-detail .staff-order-status-actions select,.staff-order-detail .staff-order-status-actions button { box-sizing:border-box; width:100%; min-width:0; min-height:42px; margin:0; }
