/* Expense operations only: no changes to global navigation or other modals. */
.expense-operations,.eops-dialog{--eops-ink:#1c1917;--eops-muted:#78716c;--eops-border:#e5dfd5;--eops-red:#9e1219;color:var(--eops-ink);font:400 14px/1.45 var(--font-body,Inter,sans-serif);box-sizing:border-box}.expense-operations *,.eops-dialog *{box-sizing:border-box;min-width:0}.expense-operations{display:grid;gap:18px;padding:8px 0 20px}
.eops-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:2px}.eops-navigation nav{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #e5dfd5;border-radius:17px;background:#f0ece6;flex-wrap:wrap}.eops-navigation nav button{border:0;background:none;padding:10px 16px;border-radius:12px;font:600 14px var(--font-display,Outfit,sans-serif);color:#57534e;cursor:pointer}.eops-navigation nav button.active{background:#1c1917;color:#fff;box-shadow:0 2px 5px #1c191714}.eops-period{display:flex;align-items:center;gap:9px;font-size:12px;color:#57534e}.eops-period input{border:1px solid #e5dfd5;border-radius:12px;background:#fff;padding:10px;font:600 13px var(--font-body,Inter,sans-serif);color:#1c1917}
.eops-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.eops-page-header h2{margin:4px 0 0;font:800 clamp(25px,2vw,32px)/1.15 var(--font-display,Outfit,sans-serif);letter-spacing:-.7px}.eops-eyebrow{font-size:12px;color:#78716c;letter-spacing:.1px}.eops-inline-actions,.eops-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.eops-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 14px;min-height:42px;border:1px solid #e5dfd5;border-radius:12px;background:#fff;color:#1c1917;font:700 14px var(--font-display,Outfit,sans-serif);cursor:pointer;transition:background .16s,border-color .16s}.eops-button svg{width:19px;height:19px;flex:none;stroke-width:2.2}.eops-button.primary,.eops-button.dark{background:#111;color:#fff;border-color:#111}.eops-button:hover{border-color:#9e1219}.eops-button.primary:hover,.eops-button.dark:hover{background:#292524}.eops-button:disabled{opacity:.55;cursor:wait}
.eops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.eops-metric{display:flex;align-items:center;gap:14px;border:1px solid #e5dfd5;background:#fff;border-radius:20px;padding:18px;min-height:114px}.eops-metric>svg{width:30px;height:30px;flex:none;color:#b91c1c;stroke-width:2}.eops-metric span{font-size:11.5px;color:#57534e}.eops-metric strong{display:block;margin:3px 0;font:800 clamp(22px,2.1vw,32px)/1.1 var(--font-display,Outfit,sans-serif);letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.eops-metric small{display:block;font-size:11px;color:#78716c}
.eops-panel{border:1px solid #e5dfd5;border-radius:24px;background:#fff;padding:20px;box-shadow:0 2px 5px #2c1e1405;min-width:0;overflow:hidden}.eops-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.eops-panel h3,.eops-dialog h3{margin:0;font:750 21px/1.2 var(--font-display,Outfit,sans-serif);letter-spacing:-.3px}.eops-subtabs{display:flex;gap:6px;flex-wrap:wrap}.eops-subtabs button{border:0;border-radius:10px;background:#f7f5f2;color:#78716c;font:500 14px var(--font-display,Outfit,sans-serif);padding:10px 13px;cursor:pointer}.eops-subtabs button.active{color:#1c1917;background:#f0ece6;font-weight:750}.eops-intro{margin:13px 0 17px;color:#78716c;font-size:13px;line-height:1.65}.eops-intro strong{color:#1c1917}
.eops-table-scroll{overflow:auto;border:1px solid #eee9e2;border-radius:14px;max-height:570px}.eops-table{width:100%;border-collapse:collapse;font-size:14px}.eops-table th{position:sticky;top:0;z-index:1;text-align:left;background:#f7f5f2;color:#78716c;font:600 11.5px/1.4 var(--font-body,Inter,sans-serif);padding:12px 14px;border-bottom:1px solid #e5dfd5;white-space:nowrap}.eops-table td{padding:14px;border-bottom:1px solid #eee9e2;vertical-align:middle}.eops-table tr:last-child td{border-bottom:0}.eops-table tbody tr:hover{background:#fdfbf8}.eops-table td strong{font:700 15px var(--font-display,Outfit,sans-serif)}.eops-table td small{display:block;font-size:11px;color:#78716c;margin-top:3px;max-width:260px;overflow-wrap:anywhere}.eops-table .eops-money{font:750 16px var(--font-display,Outfit,sans-serif);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.eops-table-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 10px;border:1px solid #e5dfd5;background:#faf9f7;border-radius:9px;color:#57534e;font:600 12px var(--font-body,Inter,sans-serif);white-space:nowrap;cursor:pointer}.eops-table-button.primary{background:#1c1917;border-color:#1c1917;color:#fff}.eops-table-button svg{width:15px;height:15px}.eops-name{border:0;padding:0;background:none;color:#1c1917;font:750 16px var(--font-display,Outfit,sans-serif);text-align:left;cursor:pointer}.eops-name:hover{text-decoration:underline}.eops-row-actions{flex-wrap:nowrap}.eops-status{display:inline-flex;padding:4px 8px;margin:2px 4px 2px 0;border-radius:7px;background:#f2efea;color:#57534e;font-size:11px;font-weight:500;white-space:nowrap}.eops-status.is-paid{background:#eef7f0;color:#237947}.eops-status.is-draft{background:#fbf3e8;color:#946124}.eops-status.is-late{background:#fceeee;color:#9e1219}.eops-status.is-muted{background:#f3f2f0;color:#78716c}.eops-complete{font-size:12px;color:#237947;white-space:nowrap}
.eops-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:44px 20px;text-align:center;min-height:210px}.eops-empty>svg{width:34px;height:34px;color:#9e1219;margin-bottom:5px;stroke-width:1.8}.eops-empty strong{font:750 22px var(--font-display,Outfit,sans-serif);letter-spacing:-.4px}.eops-empty p{max-width:490px;margin:0 0 8px;color:#78716c;font-size:14px}.eops-warnings,.eops-report-note{display:flex;gap:12px;padding:14px 18px;border:1px solid #eadbc4;border-radius:15px;background:#fffaf2;color:#805f34}.eops-warnings>svg,.eops-report-note>svg{width:22px;height:22px;flex:none}.eops-warnings strong{font-weight:650}.eops-warnings ul{margin:5px 0 0;padding-left:18px;font-size:13px}.eops-report-note{background:#f4f2ee;border-color:#e5dfd5;color:#57534e}.eops-report-note p{margin:0;font-size:13px;line-height:1.65}.eops-footnote{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#78716c;font-size:12px;padding:0 5px}.eops-footnote strong{font-weight:650;color:#57534e;font-variant-numeric:tabular-nums}
.eops-loading,.eops-load-error{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:54px 20px;background:#fff;border:1px solid #e5dfd5;border-radius:24px;min-height:290px}.eops-loading svg,.eops-load-error svg{height:30px;width:30px;color:#9e1219}.eops-loading strong{font:750 23px var(--font-display,Outfit,sans-serif)}.eops-loading span,.eops-load-error p{font-size:13px;color:#78716c}.eops-load-error h3{font:750 24px var(--font-display,Outfit,sans-serif);margin:0}.eops-loading svg{animation:eops-spin 1.1s linear infinite}
.eops-dialog{border:1px solid #e5dfd5;border-radius:24px;padding:0;margin:auto;width:min(790px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:#fff;overflow:hidden;box-shadow:0 28px 80px #1114}.eops-dialog::backdrop{background:#1c1917a8;backdrop-filter:blur(6px)}.eops-dialog-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);margin:0}.eops-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #e5dfd5;flex:none}.eops-dialog h2{font:800 28px/1.15 var(--font-display,Outfit,sans-serif);letter-spacing:-.65px;margin:5px 0 0}.eops-close{border:1px solid #e5dfd5;background:#faf8f5;border-radius:12px;width:42px;height:42px;display:grid;place-items:center;cursor:pointer;color:#9e1219;flex:none}.eops-close svg{height:22px;width:22px}.eops-dialog-body{padding:20px 24px;overflow:auto;min-height:0}.eops-dialog footer{border-top:1px solid #e5dfd5;background:#faf8f5;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none}.eops-dialog footer>div{display:flex;gap:8px;flex:none}.eops-dialog-note{font-size:11.5px;color:#78716c;max-width:260px}.eops-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.eops-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#57534e}.eops-field input,.eops-field select,.eops-field textarea{width:100%;border:1px solid #ddd6ce;border-radius:12px;background:#fff;color:#1c1917;font:500 15px var(--font-body,Inter,sans-serif);padding:12px;min-height:46px}.eops-field input[type=number]{font:700 17px var(--font-display,Outfit,sans-serif);font-variant-numeric:tabular-nums}.eops-span{grid-column:1/-1}.eops-note{font-size:12px;line-height:1.7;color:#78716c;margin:16px 0 0}.eops-check{display:flex;align-items:flex-start;gap:10px;color:#57534e;font-size:13px;line-height:1.6;margin-top:15px}.eops-check input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:#9e1219}.eops-alert{padding:13px 15px;border-radius:12px;border:1px solid #edc5c5;background:#fff1ef;color:#9e1219;font-size:13px;margin-bottom:16px}.eops-dialog [hidden]{display:none!important}.eops-discard{padding:20px;border:1px solid #eadbc4;border-radius:14px;background:#fffaf2}.eops-discard strong{font:750 20px var(--font-display,Outfit,sans-serif)}.eops-discard p{font-size:13px;color:#78716c}.eops-discard>div{display:flex;gap:8px;flex-wrap:wrap}.eops-review-list{margin:0;display:flex;flex-direction:column}.eops-review-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #eee9e2}.eops-review-list>div:last-child{border-bottom:0}.eops-review-list dt{color:#78716c;font-size:13px}.eops-review-list dd{margin:0;text-align:right;font:700 17px var(--font-display,Outfit,sans-serif);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:65%}.eops-preview-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.eops-preview-heading>svg{height:40px;width:40px;color:#9e1219;flex:none}.eops-preview-heading p{margin:5px 0 0;font-size:13px;color:#78716c}.eops-legacy{border:1px solid #e5dfd5;border-radius:14px;padding:15px;background:#faf9f7;margin:0}.eops-legacy legend{font-size:13px;font-weight:600;padding:0 4px}.eops-legacy p{font-size:12px;color:#78716c;line-height:1.6;margin:0 0 12px}.eops-person-heading{display:flex;align-items:center;gap:14px}.eops-person-heading h3{font-size:27px}.eops-person-heading p{font-size:12px;color:#78716c;margin:5px 0}.eops-avatar{display:grid;place-items:center;width:58px;height:58px;flex:none;border-radius:17px;background:#f8eeed;color:#9e1219;font:800 26px var(--font-display,Outfit,sans-serif)}.eops-dialog .eops-subheading{margin:25px 0 12px;font-size:19px}.eops-dialog .eops-inline-actions{margin-top:16px}.expense-operations button:focus-visible,.expense-operations input:focus-visible,.eops-navigation button:focus-visible,.eops-navigation input:focus-visible,.eops-dialog button:focus-visible,.eops-dialog input:focus-visible,.eops-dialog select:focus-visible,.eops-dialog textarea:focus-visible{outline:3px solid #9e12195c;outline-offset:3px}
@keyframes eops-spin{to{transform:rotate(360deg)}}
@media(max-width:1150px){.eops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.eops-page-header{align-items:flex-start}.eops-navigation{align-items:flex-start}.eops-navigation nav button{padding:9px 12px}.eops-panel-heading{align-items:flex-start}}
@media(max-width:700px){.expense-operations{gap:13px}.eops-navigation{flex-direction:column;gap:10px}.eops-navigation nav{width:100%;flex-wrap:nowrap;overflow:auto}.eops-navigation nav button{white-space:nowrap;font-size:13px;padding:10px}.eops-period{align-self:flex-end}.eops-page-header{flex-direction:column;gap:13px}.eops-page-header>.eops-inline-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.eops-page-header h2{font-size:27px}.eops-metric{padding:13px;min-height:108px;gap:8px;border-radius:17px}.eops-metric>svg{width:23px;height:23px}.eops-metric strong{font-size:23px}.eops-metric small{font-size:10px}.eops-panel{padding:15px;border-radius:20px}.eops-subtabs{gap:4px}.eops-subtabs button{font-size:13px;padding:9px}.eops-panel-heading>.eops-inline-actions{width:100%}.eops-panel-heading>.eops-inline-actions .eops-button{flex:1;font-size:12px;padding:10px}.eops-table{min-width:670px}.eops-table-scroll{max-height:540px}.eops-table td{padding:12px}.eops-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.eops-dialog-frame{max-height:calc(100dvh - 18px)}.eops-dialog header{padding:18px}.eops-dialog h2{font-size:24px}.eops-dialog-body{padding:18px}.eops-dialog footer{padding:13px 18px calc(13px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:8px}.eops-dialog footer>div{justify-content:flex-end}.eops-dialog-note{max-width:none}.eops-form-grid{grid-template-columns:1fr}.eops-span{grid-column:auto}.eops-review-list dd{font-size:16px}.eops-footnote{justify-content:flex-start;gap:8px 18px}.eops-empty{padding:32px 12px}.eops-empty strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.expense-operations *,.eops-dialog *{animation:none!important;transition:none!important}}
/* The shared adapter decorates every native dialog. Preserve this component's layout. */
dialog.eops-dialog.rs-popup{width:min(790px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;margin:auto;border-radius:24px;background:#fff;color:#1c1917}
dialog.eops-dialog .eops-field,dialog.eops-dialog .eops-check{font-family:var(--font-body,Inter,sans-serif)!important;font-weight:400!important;font-size:12px!important}
dialog.eops-dialog .eops-intro,dialog.eops-dialog .eops-note,dialog.eops-dialog .eops-dialog-note,dialog.eops-dialog .eops-eyebrow,dialog.eops-dialog .eops-review-list dt,dialog.eops-dialog .eops-legacy p{font-family:var(--font-body,Inter,sans-serif)!important;font-weight:400!important}
dialog.eops-dialog .eops-field input,dialog.eops-dialog .eops-field select,dialog.eops-dialog .eops-field textarea{font-family:var(--font-body,Inter,sans-serif)!important;font-weight:500!important;font-size:15px!important}
dialog.eops-dialog .eops-field input[type=number]{font-family:var(--font-display,Outfit,sans-serif)!important;font-size:17px!important;font-weight:750!important}
dialog.eops-dialog .eops-button{font-size:14px!important}dialog.eops-dialog .eops-table-button{font-size:12px!important}
@media(max-width:700px){dialog.eops-dialog.rs-popup{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}}
.eops-legacy-review{margin-top:18px}.eops-legacy-review h4{font:700 15px var(--font-display,Outfit,sans-serif);margin:17px 0 8px}.eops-legacy-costs{display:flex;flex-direction:column;gap:8px}.eops-legacy-cost{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:11px;align-items:start;border:1px solid #e5dfd5;border-radius:11px;padding:12px;background:#fff}.eops-legacy-cost input{margin:3px 0 0;width:18px;height:18px;accent-color:#9e1219}.eops-legacy-cost strong,.eops-legacy-plan-list strong{display:block;font:700 15px var(--font-display,Outfit,sans-serif)!important}.eops-legacy-cost small,.eops-legacy-plan-list small{display:block;color:#78716c;font:400 11px/1.5 var(--font-body,Inter,sans-serif)!important;margin-top:3px}.eops-legacy-cost b,.eops-legacy-plan-list b{font:750 15px var(--font-display,Outfit,sans-serif);white-space:nowrap;font-variant-numeric:tabular-nums}.eops-legacy-cost .eops-legacy-blocked{color:#95632c}.eops-legacy-plan-list>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #e5dfd5;padding:10px 0}.eops-legacy-plan-list>div:last-child{border:0}
dialog.eops-dialog .eops-legacy-cost{font-family:var(--font-body,Inter,sans-serif)!important;font-size:12px!important;font-weight:400!important}

/* Expense forms follow the shared Red Sos popup hierarchy. */
dialog.eops-dialog.rs-popup{width:min(900px,calc(100vw - 48px));max-height:calc(100dvh - 48px);border-radius:26px}
dialog.eops-dialog .eops-dialog-frame{max-height:calc(100dvh - 50px)}
dialog.eops-dialog .eops-close{width:40px;height:40px;color:#8b1515}
dialog.eops-dialog .eops-close svg{width:20px;height:20px;stroke-width:2}
dialog.eops-dialog .eops-field{font-size:14px!important}
dialog.eops-dialog .eops-field input,dialog.eops-dialog .eops-field select,dialog.eops-dialog .eops-field textarea{font-size:16px!important}
dialog.eops-dialog .eops-field input[type=number]{font-size:17px!important;font-weight:700!important}
dialog.eops-dialog .eops-dialog-body{flex:1 1 auto}
.exp-dialog.rs-popup .rs-popup-header [data-close]{display:grid;place-items:center;width:40px!important;height:40px!important;padding:0!important;flex-shrink:0}
.exp-dialog.rs-popup .rs-popup-header [data-close] svg{width:20px;height:20px;stroke-width:2}
.exp-dialog.rs-popup .exp-dialog-body{font-size:15px}
.exp-dialog.rs-popup .exp-dialog-body>p{font-weight:400;color:#78716c;margin:0 0 16px}
@media(max-width:760px){dialog.eops-dialog.rs-popup{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:20px}dialog.eops-dialog .eops-dialog-frame{max-height:calc(100dvh - 26px)}dialog.eops-dialog h2{font-size:23px!important}}

dialog.eops-dialog.rs-popup{max-width:calc(100vw - 48px)}
dialog.eops-dialog [data-save]{background:#8b1515;color:#fff;border-color:#8b1515}
@media(min-width:1000px){dialog.eops-dialog .eops-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){dialog.eops-dialog.rs-popup{max-width:calc(100vw - 24px)}}
.exp-dialog.rs-popup{grid-template-columns:minmax(0,var(--expense-dialog-width,760px))}

/* Personnel controls share the existing popup rhythm. */
.eops-period-bar,.eops-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 0;color:var(--eops-muted);font-size:12px}.eops-period-bar{border-bottom:1px solid var(--eops-border);padding-top:0}.eops-staff-controls{display:grid;grid-template-columns:minmax(200px,1fr) minmax(140px,190px);gap:14px;margin:18px 0}.eops-staff-controls [role=status]{grid-column:1/-1;min-height:18px;font-size:12px;color:var(--eops-muted)}.eops-pagination>div{display:flex;gap:8px}.eops-calculation{border:1px solid var(--eops-border);border-radius:16px;background:#faf9f7;padding:16px;margin:16px 0}.eops-calculation h3{font-size:18px}.eops-calculation p{font-size:12px;color:var(--eops-muted);line-height:1.6}.eops-calculation>strong{display:block;margin-top:12px}.eops-detail-tabs{margin:18px 0;display:flex;gap:6px;flex-wrap:wrap}.eops-detail-tabs button{font:600 13px var(--font-display,Outfit,sans-serif);border:1px solid var(--eops-border);background:#faf9f7;color:var(--eops-muted);border-radius:12px;padding:9px 12px;cursor:pointer}.eops-detail-tabs button.active{background:#1c1917;color:#fff;border-color:#1c1917}.expense-operations select:focus-visible{outline:3px solid #9e12195c;outline-offset:3px}.expense-operations button:disabled,.eops-dialog button:disabled{cursor:not-allowed}
@media(max-width:600px){.eops-period-bar .eops-period{flex-wrap:wrap}.eops-staff-controls{grid-template-columns:1fr}.eops-pagination{align-items:flex-start}.eops-calculation{padding:12px}.eops-period-bar input{max-width:100%}.eops-page-header{flex-wrap:wrap}}

.eops-dialog .eops-subtabs{margin-top:20px}.eops-pagination button{white-space:nowrap}
@media(max-width:600px){.ae-operation-dialog .ae-detail-body{padding:14px 12px}.ae-operation-dialog>header{gap:8px;padding:16px 12px}.ae-operation-dialog>header h2{font-size:21px}.ae-operation-dialog .eops-metrics{gap:10px}.ae-operation-dialog .eops-metric{align-items:flex-start;flex-direction:column;gap:8px;padding:12px;min-height:0}.ae-operation-dialog .eops-metric>svg{width:24px;height:24px}.ae-operation-dialog .eops-metric strong{font-size:19px;white-space:nowrap;letter-spacing:-.5px}.ae-operation-dialog .eops-metric span{font-size:11px}.ae-operation-dialog .eops-metric small{font-size:10px}.ae-operation-dialog .eops-panel{padding:12px}.ae-operation-dialog .eops-page-header{gap:12px}.ae-operation-dialog .eops-row-actions{flex-wrap:wrap}}

/* Personnel entry: compact, aligned sections and the panel's black action pill. */
dialog.eops-personnel-entry.rs-popup,dialog.eops-personnel-entry{width:min(620px,calc(100vw - 32px));border-radius:24px;max-height:calc(100dvh - 32px)}
dialog.eops-personnel-entry .eops-dialog-frame{max-height:calc(100dvh - 34px)}
dialog.eops-personnel-entry header{padding:14px 18px;border-bottom:1px solid #eee9e2}
dialog.eops-personnel-entry h2{display:flex;align-items:center;gap:12px;font-size:25px!important;line-height:1.15;margin-top:3px}
dialog.eops-personnel-entry h2>svg{width:24px;height:24px;flex:0 0 24px;stroke-width:2;color:#b91c1c}
dialog.eops-personnel-entry .eops-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%}
dialog.eops-personnel-entry .eops-eyebrow{font-size:12px}
dialog.eops-personnel-entry .eops-dialog-body{padding:12px 18px}
dialog.eops-personnel-entry .eops-form-content{display:flex;flex-direction:column;gap:12px}
dialog.eops-personnel-entry .eops-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog.eops-personnel-entry .eops-entry-section h3{font:700 15px/1.3 var(--font-display,Outfit,sans-serif);letter-spacing:0;margin:0 0 7px}
dialog.eops-personnel-entry .eops-field{font-family:var(--font-display,Outfit,sans-serif)!important;font-size:13px!important;font-weight:500!important;gap:4px}
dialog.eops-personnel-entry .eops-field :is(input,select){height:40px;min-height:40px;padding:8px 10px;border:1px solid #e5dfd5;border-radius:12px;background:#faf9f7;font-size:14px!important;font-weight:500!important;color:#1c1917}
dialog.eops-personnel-entry .eops-field input[type=number]{font-size:16px!important;font-weight:650!important}
dialog.eops-personnel-entry .eops-field :is(input,select):focus{background:#fff}
dialog.eops-personnel-entry .eops-entry-schedule{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr) minmax(0,1.2fr);gap:10px;margin-top:10px}
dialog.eops-personnel-entry .eops-entry-options{border:1px solid #e5dfd5;border-radius:16px;background:#faf9f7}
dialog.eops-personnel-entry .eops-entry-options>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;font:600 14px var(--font-display,Outfit,sans-serif)}
dialog.eops-personnel-entry .eops-entry-options>summary::-webkit-details-marker{display:none}
dialog.eops-personnel-entry .eops-entry-options>summary svg{height:18px;width:18px;color:#9e1219;transition:transform .15s}
dialog.eops-personnel-entry .eops-entry-options[open]>summary svg{transform:rotate(180deg)}
dialog.eops-personnel-entry .eops-entry-options-body{padding:0 12px 12px}
dialog.eops-personnel-entry .eops-entry-options-body>.eops-field{max-width:290px}
dialog.eops-personnel-entry .eops-legacy{margin-top:12px;background:#fff;padding:12px}
dialog.eops-personnel-entry .eops-note{margin:0;font-size:12px;line-height:1.5;color:#78716c}
dialog.eops-personnel-entry footer{padding:10px 18px;background:#fff;gap:10px}
dialog.eops-personnel-entry footer .eops-button{border-radius:999px;min-height:40px;padding:8px 16px}
dialog.eops-personnel-entry [data-save]{background:#111;color:#fff;border-color:#111}
dialog.eops-personnel-entry [data-save]:hover{background:#292524;border-color:#292524}
dialog.eops-personnel-entry .eops-entry-options>summary:focus-visible{outline:2px solid #9e1219;outline-offset:3px;border-radius:16px}
@media(max-width:600px){dialog.eops-personnel-entry.rs-popup{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:22px}dialog.eops-personnel-entry .eops-dialog-frame{max-height:calc(100dvh - 26px)}dialog.eops-personnel-entry header{padding:12px 14px}dialog.eops-personnel-entry .eops-dialog-body{padding:12px 14px}dialog.eops-personnel-entry .eops-form-grid,dialog.eops-personnel-entry .eops-entry-schedule{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}dialog.eops-personnel-entry .eops-entry-schedule>.eops-field:last-child{grid-column:1/-1}dialog.eops-personnel-entry .eops-form-content{gap:12px}dialog.eops-personnel-entry .eops-field :is(input,select){height:44px;min-height:44px;padding:8px}dialog.eops-personnel-entry .eops-field input[type=date]{font-size:13px!important}dialog.eops-personnel-entry footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));align-items:stretch;gap:7px}dialog.eops-personnel-entry footer>div{display:flex;width:100%}dialog.eops-personnel-entry footer>div .eops-button{flex:1;min-height:44px;padding:8px 10px}dialog.eops-personnel-entry .eops-dialog-note{font-size:11px}}
@media(max-width:359px){dialog.eops-personnel-entry .eops-form-grid{grid-template-columns:1fr}}

/* Personnel entry labels stay inside their field surfaces. */
dialog.eops-personnel-entry .eops-field{border:1px solid #e5dfd5;border-radius:12px;background:#faf9f7;padding:7px 10px;gap:2px;overflow:hidden}
dialog.eops-personnel-entry .eops-field>span{font-size:11px;line-height:1.2;color:#78716c}
dialog.eops-personnel-entry .eops-field :is(input,select){border:0;border-radius:0;background:transparent;height:26px!important;min-height:26px!important;padding:0;box-shadow:none;outline:none!important}
dialog.eops-personnel-entry .eops-field:focus-within{background:#fff;border-color:#9e1219;box-shadow:0 0 0 1px #9e1219}
dialog.eops-personnel-entry .eops-field :is(input,select):focus{background:transparent}
dialog.eops-personnel-entry footer .eops-dialog-note{display:none}
dialog.eops-personnel-entry footer{justify-content:flex-end}
dialog.eops-personnel-entry header>div{border:1px solid #e5dfd5;background:#faf9f7;border-radius:14px;padding:8px 12px}
dialog.eops-personnel-entry .eops-entry-options-body .eops-check{border:1px solid #e5dfd5;border-radius:12px;padding:10px;background:#fff;gap:8px;margin-top:10px}
@media(max-width:600px){dialog.eops-personnel-entry .eops-field{padding:7px 8px}dialog.eops-personnel-entry .eops-field :is(input,select){height:28px!important;min-height:28px!important;padding:0}dialog.eops-personnel-entry header>div{padding:7px 10px}dialog.eops-personnel-entry h2{font-size:22px!important;gap:8px}}

dialog.eops-personnel-entry footer>div{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Planned payments are a full page in the finance navigation. */
.planned-payments-page{width:100%;min-width:0;padding:4px 0 16px}
.planned-payments-page .expense-operations{font-family:Outfit,system-ui,sans-serif;gap:14px;padding:0;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}
.planned-payments-page .expense-operations>*{grid-column:1/-1}
.planned-payments-page .eops-page-navigation{margin:0;padding:14px 18px;background:#fff;border:1px solid #e5dfd5;border-radius:22px;gap:12px}
.planned-payments-page .eops-page-navigation nav{border-radius:999px;padding:4px;gap:4px}
.planned-payments-page .eops-page-navigation nav button{display:flex;align-items:center;gap:8px;border-radius:999px;font:400 16px Outfit,system-ui,sans-serif;padding:11px 16px}
.planned-payments-page .eops-page-navigation nav button.active{font-weight:600;background:#8b1515;color:#fff;box-shadow:none}
.planned-payments-page .eops-page-navigation nav svg{width:19px;height:19px;flex:none}
.planned-payments-page .eops-period{font-size:14px;white-space:nowrap}
.planned-payments-page .eops-period input{font:500 15px Outfit,system-ui,sans-serif;min-height:42px;border-radius:999px}
.planned-payments-page .eops-page-header{padding:2px 6px;gap:12px}
.planned-payments-page .eops-page-header h2{font:600 27px/1.2 Outfit,system-ui,sans-serif;letter-spacing:0;margin:4px 0 0}
.planned-payments-page .eops-eyebrow{font-size:14px;letter-spacing:0}
.planned-payments-page .eops-metrics{gap:14px;grid-template-columns:repeat(4,minmax(0,1fr))}
.planned-payments-page .eops-metric{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;min-height:0;padding:18px;border-radius:22px;align-items:start}
.planned-payments-page .eops-metric span{font:400 14px Outfit,system-ui,sans-serif}
.planned-payments-page .eops-metric strong{font:600 clamp(20px,1.8vw,28px)/1.2 Outfit,system-ui,sans-serif;letter-spacing:0;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;margin:8px 0}
.planned-payments-page .eops-metric small{font:400 13px/1.4 Outfit,system-ui,sans-serif}
.planned-payments-page .eops-metric>svg{width:28px;height:28px;margin-top:2px}
.planned-payments-page .eops-panel{padding:18px;border-radius:24px;background:#fff;min-width:0}
.planned-payments-page .eops-button,.planned-payments-page .eops-table-button{font-family:Outfit,system-ui,sans-serif;font-weight:500;border-radius:999px}
.planned-payments-page .eops-button{font-size:15px;min-height:42px}
.planned-payments-page .eops-subtabs button{font:400 15px Outfit,system-ui,sans-serif;border-radius:999px}
.planned-payments-page .eops-subtabs button.active{font-weight:600;background:#1c1917;color:#fff}
.planned-payments-page .eops-intro{font-size:14px;margin:12px 0}
.planned-payments-page .eops-table{font:400 15px Outfit,system-ui,sans-serif}
.planned-payments-page .eops-table th{font:500 13px Outfit,system-ui,sans-serif;padding:12px}
.planned-payments-page .eops-table td{padding:13px 12px}
.planned-payments-page .eops-table :is(strong,.eops-name){font-weight:500;font-family:Outfit,system-ui,sans-serif}
.planned-payments-page .eops-table .eops-money{font:600 16px Outfit,system-ui,sans-serif;white-space:nowrap}
.planned-payments-page .eops-table-scroll{max-height:none}
.planned-payments-page .eops-warnings{padding:12px 16px;font-size:14px;border-radius:18px}
.planned-payments-page .eops-empty{min-height:140px;padding:24px}
.planned-payments-page .eops-footnote{padding:12px 16px;background:#f3f0eb;border:1px solid #e5dfd5;border-radius:16px;font-size:13px}
@media(max-width:1250px){.planned-payments-page .eops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.planned-payments-page .eops-page-navigation{flex-wrap:wrap}}
@media(max-width:700px){.planned-payments-page .eops-page-navigation{padding:12px}.planned-payments-page .eops-page-navigation nav{width:100%;border-radius:16px}.planned-payments-page .eops-page-navigation nav button{font-size:14px;padding:10px 12px;flex:none}.planned-payments-page .eops-metric{display:flex;flex-direction:column;gap:6px;padding:14px}.planned-payments-page .eops-metric strong{font-size:20px}.planned-payments-page .eops-panel{padding:12px}.planned-payments-page .eops-page-header h2{font-size:24px}.planned-payments-page .eops-metric small{font-size:12px}.planned-payments-page .eops-table{min-width:760px}}

/* Reference popup: dark metrics, a dense list and a working action column. */
dialog.planned-payments-popup.rs-popup{width:min(1380px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important;max-height:calc(100dvh - 40px)!important;padding:0!important;border-radius:24px!important;overflow:hidden!important;background:#faf8f5!important}
dialog.planned-payments-popup>header{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px!important;background:#fff!important;border-bottom:1px solid #e5dfd5!important}
.planned-payments-popup .planned-popup-heading{display:flex;align-items:center;gap:14px;min-width:0}
.planned-payments-popup .planned-popup-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#8b1515;color:#fff;flex:none}
.planned-payments-popup .planned-popup-icon svg{width:28px;height:28px;color:#fff!important}
.planned-payments-popup>header h2{font:600 27px/1.2 Outfit,system-ui,sans-serif!important;letter-spacing:0!important;margin:0}
.planned-payments-popup>header p{font:400 14px/1.4 Outfit,system-ui,sans-serif;color:#78716c;margin:5px 0 0}
.planned-payments-popup>header [data-close]{display:grid;place-items:center;flex:none;width:40px!important;height:40px!important;padding:0!important;border:1px solid #e5dfd5;border-radius:999px!important;background:#faf8f5;color:#8b1515}
.planned-payments-popup>header [data-close] svg{width:20px;height:20px}
.planned-payments-popup .ae-detail-body{padding:14px 20px 18px!important;overflow:auto!important;max-height:calc(100dvh - 140px);min-height:0}
.planned-payments-popup .eops-popup-bento{grid-template-columns:minmax(0,3.2fr) minmax(250px,1fr);gap:12px;grid-template-areas:"nav nav" "metrics metrics" "table actions" "table warnings" "note note";align-items:start}
.planned-payments-popup .eops-popup-bento>.eops-navigation{grid-area:nav!important;border:0;border-bottom:1px solid #e5dfd5;border-radius:0;background:transparent;padding:0 0 12px;margin:0}
.planned-payments-popup .eops-popup-bento>.eops-metrics{grid-area:metrics!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.planned-payments-popup .eops-popup-bento>.eops-panel{grid-area:table!important;padding:14px;border-radius:18px;min-width:0}
.planned-payments-popup .eops-popup-bento>.eops-action-bento{grid-area:actions!important}
.planned-payments-popup .eops-popup-bento>.eops-warnings{grid-area:warnings!important;margin:0;font-size:13px;padding:14px}
.planned-payments-popup .eops-popup-bento>.eops-footnote{grid-area:note!important;margin:0}
.planned-payments-popup .eops-metric{background:linear-gradient(135deg,#24201e,#111);color:#fff;border-color:#292524;padding:16px;border-radius:16px;gap:10px;align-items:center;min-height:105px}
.planned-payments-popup .eops-metric span,.planned-payments-popup .eops-metric small{color:#d6d3d1}
.planned-payments-popup .eops-metric strong{color:#fff;font-size:clamp(20px,1.7vw,27px);margin:6px 0;white-space:nowrap}
.planned-payments-popup .eops-metric svg{color:#de3939}
.planned-payments-popup .eops-action-bento{padding:14px;border:1px solid #e5dfd5;border-radius:18px;background:#fff}
.planned-payments-popup .eops-action-bento h3{font:500 19px Outfit,system-ui,sans-serif!important;margin:0 0 12px}
.planned-payments-popup .eops-action-bento>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.planned-payments-popup .eops-action-bento .eops-button{flex-direction:column;min-height:78px;padding:12px 8px;border-radius:14px;background:#faf8f5;font-size:14px;line-height:1.35;text-align:center}
.planned-payments-popup .eops-action-bento .eops-button.primary{grid-column:1/-1;flex-direction:row;min-height:46px;background:#8b1515;color:#fff;border-color:#8b1515;font-size:16px}
.planned-payments-popup .eops-action-bento .eops-button svg{width:22px;height:22px}
.planned-payments-popup .eops-table-scroll{max-height:clamp(240px,43dvh,520px)}
.planned-payments-popup .eops-table{font-size:14px}
.planned-payments-popup .eops-table th{font-size:12px;padding:10px 8px}
.planned-payments-popup .eops-table td{padding:10px 8px}
.planned-payments-popup .eops-table .eops-money{font-size:14px}
.planned-payments-popup .eops-table-button{font-size:12px;padding:7px 9px}
.planned-payments-popup .eops-subtabs button{font-size:14px;padding:8px 10px}
@media(max-width:1050px){.planned-payments-popup .eops-popup-bento{grid-template-columns:minmax(0,1fr);grid-template-areas:"nav" "metrics" "actions" "table" "warnings" "note"}.planned-payments-popup .eops-popup-bento>.eops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.planned-payments-popup .eops-action-bento>div{grid-template-columns:repeat(4,minmax(0,1fr))}.planned-payments-popup .eops-action-bento .eops-button.primary{grid-column:auto}.planned-payments-popup .eops-table-scroll{max-height:none}}
@media(max-width:700px){dialog.planned-payments-popup.rs-popup{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.planned-payments-popup>header{padding:14px!important}.planned-payments-popup .planned-popup-icon{width:42px;height:42px;border-radius:13px}.planned-payments-popup>header h2{font-size:22px!important}.planned-payments-popup>header p{font-size:13px}.planned-payments-popup .ae-detail-body{padding:12px!important;max-height:calc(100dvh - 125px)}.planned-payments-popup .eops-action-bento>div{grid-template-columns:repeat(2,minmax(0,1fr))}.planned-payments-popup .eops-metric strong{font-size:20px}.planned-payments-popup .eops-action-bento .eops-button.primary{grid-column:1/-1}.planned-payments-popup .eops-table{min-width:780px}}

dialog.planned-payments-popup[open]{display:flex!important;flex-direction:column!important;height:min(800px,calc(100dvh - 40px))!important}.planned-payments-popup .ae-detail-body{flex:1;min-height:0}
@media(max-width:700px){dialog.planned-payments-popup[open]{height:calc(100dvh - 16px)!important}}

/* Desktop frame never scrolls: only list and long control notes do. */
@media(min-width:1051px){.planned-payments-popup .ae-detail-body{overflow:hidden!important;max-height:none!important;display:flex}.planned-payments-popup .eops-popup-bento{width:100%;height:100%;min-height:0;grid-template-rows:auto auto minmax(0,.62fr) minmax(0,.38fr) auto;align-items:stretch}.planned-payments-popup .eops-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.planned-payments-popup .eops-table-scroll{flex:1;min-height:0;max-height:none!important}.planned-payments-popup .eops-action-bento,.planned-payments-popup .eops-warnings{min-height:0;overflow:auto}.planned-payments-popup .eops-metric{min-height:88px;padding:12px}.planned-payments-popup .eops-page-navigation{padding-bottom:10px}.planned-payments-popup .eops-metric small{font-size:12px}}
.planned-payments-popup .eops-more-actions{position:relative;flex:none}
.planned-payments-popup .eops-more-actions summary{list-style:none;display:grid;place-items:center;width:32px;height:32px;border:1px solid #e5dfd5;border-radius:999px;background:#faf8f5;cursor:pointer;font-size:22px;line-height:1}
.planned-payments-popup .eops-more-actions summary::-webkit-details-marker{display:none}
.planned-payments-popup .eops-more-actions>div{display:flex;flex-direction:column;gap:5px;margin-top:6px}
.planned-payments-popup .eops-row-actions{gap:5px;align-items:flex-start}
.planned-payments-popup .eops-table-button{white-space:nowrap;min-width:max-content}
.planned-payments-popup .eops-table th{white-space:normal;line-height:1.3}
.planned-payments-popup .eops-table small{font-size:11px}

/* Personnel/payment popup: one full-width workspace, contextual table actions. */
.planned-payments-popup .eops-popup-bento{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"nav" "metrics" "warnings" "table" "note"!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important}
.planned-payments-popup .eops-popup-bento>.eops-panel{width:100%;min-height:0}
.planned-payments-popup .eops-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex:none}
.planned-payments-popup .eops-panel-heading .eops-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto}
.planned-payments-popup .eops-inline-actions .eops-button{min-height:36px;padding:8px 12px;font:500 13px/1.2 Outfit,sans-serif;border-radius:999px;white-space:nowrap}
.planned-payments-popup .eops-inline-actions .eops-button svg{width:16px;height:16px}
.planned-payments-popup .eops-popup-bento>.eops-warnings{max-height:86px;padding:10px 14px;font-size:12px;overflow:auto;display:flex;gap:10px}
.planned-payments-popup .eops-warnings ul{margin:4px 0 0;padding-left:16px;display:flex;flex-wrap:wrap;column-gap:28px;row-gap:4px}
.planned-payments-popup .eops-warnings li{flex:1 1 420px}
@media(max-width:1050px){.planned-payments-popup .eops-popup-bento{height:auto;grid-template-rows:auto!important}.planned-payments-popup .eops-popup-bento>.eops-warnings{max-height:120px}.planned-payments-popup .eops-panel-heading .eops-inline-actions{margin-left:0}}

/* Popup space goes to records, with the standard compact search and pager. */
@media(min-width:1051px){
 body.admin-brand dialog.planned-payments-popup.rs-popup[open]{height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important}
 body.admin-brand .planned-payments-popup>header{padding:12px 20px!important;min-height:70px}
 body.admin-brand .planned-payments-popup .planned-popup-icon{width:44px;height:44px;border-radius:13px}
 body.admin-brand .planned-payments-popup .ae-detail-body{padding:10px 16px 12px!important}
 body.admin-brand .planned-payments-popup .eops-popup-bento{gap:10px!important}
 body.admin-brand .planned-payments-popup .eops-popup-bento>.eops-navigation{padding-bottom:8px!important;min-height:44px}
 body.admin-brand .planned-payments-popup .eops-metric{min-height:76px!important;padding:10px 14px!important}
 body.admin-brand .planned-payments-popup .eops-metric strong{margin:3px 0!important;font-size:24px!important}
 body.admin-brand .planned-payments-popup .eops-popup-bento>.eops-panel{padding:12px!important}
 body.admin-brand .planned-payments-popup .eops-panel:has(.eops-staff-controls){display:grid!important;grid-template-rows:auto 40px minmax(0,1fr) 34px!important;gap:10px!important;align-content:stretch!important;align-items:stretch!important}
 body.admin-brand .planned-payments-popup .eops-panel:has(.eops-staff-controls)>.eops-intro{display:none!important}
 body.admin-brand .planned-payments-popup .eops-panel:has(.eops-staff-controls)>.eops-table-scroll{min-height:0!important;height:100%!important;max-height:none!important;overflow:auto!important}
}
body.admin-brand .planned-payments-popup .eops-staff-controls{display:grid!important;grid-template-columns:minmax(0,1fr) 180px!important;gap:10px!important;margin:0!important;min-height:0!important;align-items:center}
body.admin-brand .planned-payments-popup .eops-staff-controls .eops-field{margin:0!important;min-height:0!important;position:relative}
body.admin-brand .planned-payments-popup .eops-staff-controls input{height:40px!important;min-height:40px!important;border-radius:999px!important;padding:0 14px 0 38px!important;font:400 14px Outfit,sans-serif!important;background:#fff!important;border:1px solid #e5dfd5!important}
body.admin-brand .planned-payments-popup .eops-staff-search>svg{position:absolute;left:13px;top:11px;width:18px;height:18px;color:#8b1515;pointer-events:none}
body.admin-brand .planned-payments-popup .eops-sr-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
body.admin-brand .planned-payments-popup .eops-staff-status-filter{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;border:1px solid #e5dfd5;border-radius:999px;background:#faf8f5;height:40px;padding:0 12px}
body.admin-brand .planned-payments-popup .eops-staff-status-filter>span{font:400 12px Outfit,sans-serif;color:#78716c;flex:none}
body.admin-brand .planned-payments-popup .eops-staff-status-filter select{border:0!important;background:transparent!important;height:36px!important;min-height:36px!important;padding:0!important;font:400 13px Outfit,sans-serif!important;flex:1;min-width:0}
body.admin-brand .planned-payments-popup .eops-staff-controls [data-staff-status]:empty{display:none!important}
body.admin-brand .planned-payments-popup .eops-staff-controls [data-staff-status]{grid-column:1/-1;position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
body.admin-brand .planned-payments-popup .eops-panel>.eops-pagination{margin:0!important;padding:6px 0 0!important;min-height:34px;flex:none;border-top:1px solid #eee9e2;align-items:center!important;gap:8px;font:400 12px Outfit,sans-serif}
body.admin-brand .planned-payments-popup .eops-pagination :is([data-staff-prev],[data-staff-next]){display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-height:30px!important;min-width:30px!important;border-radius:999px!important;padding:0!important;background:#faf8f5;color:#8b1515;border:1px solid #e5dfd5}
body.admin-brand .planned-payments-popup .eops-pagination svg{width:15px;height:15px}
@media(max-width:700px){body.admin-brand .planned-payments-popup .eops-staff-controls{grid-template-columns:minmax(0,1fr) 125px!important;margin:8px 0!important}}

/* One popup header row: identity, workspace tabs, period, close. */
body.admin-brand dialog.planned-payments-popup>header{display:grid!important;flex:none!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:16px!important;align-items:center!important;flex-wrap:nowrap!important}
body.admin-brand .planned-payments-popup .planned-popup-heading{gap:10px}
body.admin-brand .planned-payments-popup .planned-popup-heading h2{font-size:23px!important;white-space:nowrap}
body.admin-brand .planned-payments-popup .planned-popup-heading p{display:none!important}
body.admin-brand .planned-payments-popup .planned-header-navigation{min-width:0}
body.admin-brand .planned-payments-popup .planned-header-navigation>.eops-navigation{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:12px!important;padding:0!important;border:0!important;margin:0!important;background:transparent!important}
body.admin-brand .planned-payments-popup .planned-header-navigation nav{display:flex;flex-wrap:nowrap!important;min-width:0;gap:2px;padding:3px!important;border-radius:999px;border:1px solid #e5dfd5;background:#f0ece6}
body.admin-brand .planned-payments-popup .planned-header-navigation nav button{min-height:36px;padding:8px 11px!important;white-space:nowrap;font:500 12px/1.2 Outfit,sans-serif!important;border-radius:999px}
body.admin-brand .planned-payments-popup .planned-header-navigation nav button svg{width:16px;height:16px;flex:none}
body.admin-brand .planned-payments-popup .planned-header-navigation .eops-period-rail{flex:none;min-width:180px;height:40px;gap:2px;padding:3px!important}
body.admin-brand .planned-payments-popup .planned-header-navigation .eops-period-rail>button{width:28px!important;height:32px!important;min-height:32px!important;padding:0!important}
body.admin-brand .planned-payments-popup .planned-header-navigation .eops-period-center{font-size:12px!important;min-width:120px}
body.admin-brand .planned-payments-popup .eops-popup-bento.eops-nav-in-header{grid-template-areas:"metrics" "warnings" "table" "note"!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}
body.admin-brand .planned-payments-popup>header [data-close]{width:auto!important;min-width:76px!important;height:40px!important;padding:0 14px!important;white-space:nowrap}
@media(max-width:1050px){body.admin-brand .planned-payments-popup .planned-popup-heading h2{font-size:20px!important}body.admin-brand .planned-payments-popup .planned-popup-icon{width:36px;height:36px}body.admin-brand .planned-payments-popup .planned-header-navigation .eops-navigation{overflow-x:auto;justify-content:flex-start!important}body.admin-brand .planned-payments-popup .planned-header-navigation nav{flex:none}body.admin-brand .planned-payments-popup .eops-popup-bento.eops-nav-in-header{grid-template-rows:auto!important}}
@media(max-width:700px){body.admin-brand dialog.planned-payments-popup>header{grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important;padding:12px!important}body.admin-brand .planned-payments-popup .planned-popup-heading h2{font-size:17px!important;white-space:normal;max-width:125px}body.admin-brand .planned-payments-popup .planned-popup-icon{display:none}body.admin-brand .planned-payments-popup>header [data-close]{min-width:54px!important;padding:0 10px!important;font-size:12px!important}}
@media(max-width:700px){body.admin-brand dialog.planned-payments-popup>header .planned-header-actions{grid-column:1/-1;grid-row:3;justify-self:end}body.admin-brand dialog.planned-payments-popup>header .planned-popup-heading h2{white-space:normal!important}}

/* Bulk entry uses compact stacked cards; orientation follows the content. */
body.admin-brand .exp-dialog.exp-bulk-dialog .exp-dialog-card.rs-popup-card{width:min(720px,calc(100vw - 32px))!important;max-width:720px!important;height:min(620px,calc(100dvh - 32px))!important}
body.admin-brand .exp-bulk-dialog .exp-dialog-body{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden;padding:16px!important}
body.admin-brand .exp-bulk-dialog .exp-dialog-body>p{font:400 12px/1.4 Outfit,sans-serif;color:#78716c;margin:0}
body.admin-brand .exp-bulk-dialog #exp-bulk-rows{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;overflow:auto}
body.admin-brand:has(#app) .exp-bulk-dialog .exp-bulk-row{position:relative;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:14px 46px 14px 14px!important;border:1px solid #e5dfd5!important;border-radius:15px!important;background:#faf8f5!important}
body.admin-brand:has(#app) .exp-bulk-dialog .exp-bulk-row label{display:flex;flex-direction:column;gap:6px;min-width:0;font:400 12px/1.3 Outfit,sans-serif!important;color:#78716c}
body.admin-brand:has(#app) .exp-bulk-dialog .exp-bulk-row :is(input,select){width:100%;height:40px!important;min-height:40px!important;font:400 14px Outfit,sans-serif!important;background:#fff!important;border:1px solid #e5dfd5!important;border-radius:10px!important;padding:0 10px!important}
body.admin-brand .exp-bulk-dialog .exp-bulk-remove{position:absolute;right:10px;top:13px;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;border:0!important;padding:0!important;display:grid;place-items:center;background:#f8e9e5;color:#8b1515;border-radius:8px}
body.admin-brand .exp-bulk-dialog .exp-bulk-remove svg{width:15px;height:15px}
body.admin-brand .exp-bulk-dialog #exp-bulk-add{flex:none;align-self:stretch;min-height:38px;border:1px dashed #c9aaa0;background:#fcf5f1;color:#8b1515;border-radius:11px;font:500 13px Outfit,sans-serif}
@media(max-width:500px){body.admin-brand:has(#app) .exp-bulk-dialog .exp-bulk-row{grid-template-columns:1fr!important;padding:12px 42px 12px 12px!important}}

/* Eight-column salary table: explicit payments and allocated advances. */
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-advance]) th:first-child{width:18%!important}
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-advance]) th:last-child{width:24%!important}
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-advance]) .eops-row-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
body.admin-brand [data-ops-view="personnel"] [data-payroll-advance]{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap;min-width:max-content}
body.admin-brand [data-ops-view="personnel"] [data-payroll-advance] span{display:inline!important}
body.admin-brand [data-ops-view="personnel"] .eops-advance-amount{font:inherit!important;white-space:nowrap;text-decoration:underline;text-decoration-color:#d5cbc0;text-underline-offset:4px}

/* Independent payment windows share the same header geometry. */
body.admin-brand .planned-payments-popup[data-payment-scope] .planned-header-navigation>.eops-navigation{justify-content:flex-end!important}
body.admin-brand .planned-payments-popup[data-payment-scope] .planned-popup-heading{flex:1;min-width:0}
body.admin-brand .planned-payments-popup .planned-header-actions{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:nowrap;min-width:0;max-width:100%}
body.admin-brand .planned-payments-popup .planned-header-actions button{white-space:nowrap;flex:0 0 auto;margin:0;width:auto}

/* The actual payment entry follows its content after removing redundant notices. */
body.admin-brand dialog.eops-payment-entry.eops-payment-entry.eops-payment-entry.eops-payment-entry.eops-payment-entry.eops-payment-entry.eops-payment-entry.eops-payment-entry.rs-popup[open]{height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important}
body.admin-brand dialog.eops-payment-entry .eops-dialog-frame{height:auto!important;min-height:0!important;max-height:calc(100dvh - 34px)!important}
body.admin-brand dialog.eops-payment-entry .eops-dialog-body{flex:0 1 auto!important;min-height:0!important;overflow:auto!important}
body.admin-brand dialog.eops-payment-entry .eops-dialog-frame:has(header [data-save])>footer:has([data-back][hidden]){display:none!important}
/* Header-owned controls must not leave empty body tracks between KPIs and tables. */
body.admin-brand dialog.planned-payments-popup.planned-payments-popup .eops-popup-bento.eops-nav-in-header{grid-template-rows:auto minmax(0,1fr)!important;grid-auto-rows:max-content!important;row-gap:12px!important}
body.admin-brand dialog.planned-payments-popup.planned-payments-popup .eops-nav-in-header>.eops-metrics{grid-row:1!important;margin-bottom:0!important}
body.admin-brand dialog.planned-payments-popup.planned-payments-popup .eops-nav-in-header>.eops-panel{grid-row:2!important;margin-top:0!important}

body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-cari]){min-width:1000px;table-layout:auto!important}
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-cari]) th:first-child{width:16%!important}
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-cari]) th:last-child{width:20%!important}
body.admin-brand [data-ops-view="personnel"] .eops-table:has([data-payroll-cari]) :is(th,td){white-space:nowrap;padding-left:8px;padding-right:8px}
body.admin-brand [data-ops-view="personnel"] .eops-cari-amount{font:inherit!important;white-space:nowrap;text-decoration:underline;text-decoration-color:#d5cbc0;text-underline-offset:4px}

/* Salary payment popup: identity, explicit offsets and remaining amount. */
body.admin-brand .eops-payment-entry h2{display:flex;align-items:center;gap:12px}
body.admin-brand .eops-payment-entry h2 svg{width:30px;height:30px;flex-shrink:0;color:#991b1b}
body.admin-brand .eops-payment-entry .eops-pay-person{display:flex;align-items:center;gap:12px;margin:0 0 20px}
body.admin-brand .eops-payment-entry .eops-pay-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f5efeb;color:#991b1b;flex-shrink:0}
body.admin-brand .eops-payment-entry .eops-pay-person>div{display:flex;flex-direction:column;gap:4px}
body.admin-brand .eops-payment-entry .eops-pay-person strong{font-size:23px;line-height:1.2}
body.admin-brand .eops-payment-entry .eops-pay-person>div>span{font-size:14px;color:#78716c}
body.admin-brand .eops-payment-entry .eops-pay-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
body.admin-brand .eops-payment-entry .eops-pay-summary>div{min-width:0;display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #e7e0d7;border-radius:16px;background:#faf8f5}
body.admin-brand .eops-payment-entry .eops-pay-summary span{font-size:14px;color:#78716c}
body.admin-brand .eops-payment-entry .eops-pay-summary strong{font-size:23px;line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.admin-brand .eops-payment-entry .eops-pay-summary>.eops-pay-remaining{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;background:#171615;color:#fff;border-color:#171615;padding:18px 20px}
body.admin-brand .eops-payment-entry .eops-pay-remaining span{color:#e7e0d7;font-size:17px}
body.admin-brand .eops-payment-entry .eops-pay-remaining strong{font-size:34px}
@media(max-width:600px){body.admin-brand .eops-payment-entry .eops-pay-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.admin-brand .eops-payment-entry .eops-pay-summary>div{padding:12px}body.admin-brand .eops-payment-entry .eops-pay-summary strong{font-size:20px}body.admin-brand .eops-payment-entry .eops-pay-remaining strong{font-size:27px}}

body.admin-brand .eops-payment-entry h2 strong{font-weight:650!important;font-size:clamp(24px,2.2vw,34px)!important}
body.admin-brand .eops-payment-entry .eops-pay-history{margin:0 0 22px;border:1px solid #e7e0d7;border-radius:16px;padding:16px 18px}
body.admin-brand .eops-payment-entry .eops-pay-history h3{display:flex;align-items:center;gap:8px;font-size:17px;margin:0 0 8px}
body.admin-brand .eops-payment-entry .eops-pay-history h3 svg{width:20px;height:20px;color:#991b1b}
body.admin-brand .eops-payment-entry .eops-pay-history ul{margin:0;padding:0;list-style:none;max-height:180px;overflow:auto}
body.admin-brand .eops-payment-entry .eops-pay-history li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #eee8e0;font-size:15px}
body.admin-brand .eops-payment-entry .eops-pay-history li>div{display:flex;flex-direction:column;gap:4px;min-width:0}
body.admin-brand .eops-payment-entry .eops-pay-history small{font-size:13px;color:#78716c;overflow-wrap:anywhere}
body.admin-brand .eops-payment-entry .eops-pay-history li>b{white-space:nowrap;font-size:19px}

/* Payroll amount cells open owned, read-only details. */
body.admin-brand dialog.eops-deduction-detail .eops-deduction-records{border:1px solid #e5dfd5;border-radius:16px;overflow:hidden;margin-top:14px}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:16px 18px;border-bottom:1px solid #eee9e2}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record:last-child{border-bottom:0}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record>div{display:flex;flex-direction:column;gap:5px;min-width:0}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record small{font-size:13px;color:#78716c;overflow-wrap:anywhere}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-record>b{font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.admin-brand dialog.eops-deduction-detail .eops-deduction-records>.eops-intro{padding:0 18px}
@media(max-width:480px){body.admin-brand dialog.eops-deduction-detail .eops-deduction-record{flex-direction:column;gap:9px;padding:14px}body.admin-brand dialog.eops-deduction-detail .eops-person-heading h3{font-size:23px}}

body.admin-brand :is(#payroll-advance-detail#payroll-advance-detail#payroll-advance-detail#payroll-advance-detail,#payroll-cari-detail#payroll-cari-detail#payroll-cari-detail#payroll-cari-detail)[open]{height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;display:flex!important;flex-direction:column!important}
body.admin-brand .eops-deduction-detail.eops-deduction-detail .eops-dialog-frame{height:auto!important;min-height:0!important;max-height:calc(100dvh - 34px)!important;display:flex!important;flex-direction:column!important}
body.admin-brand .eops-deduction-detail.eops-deduction-detail .eops-dialog-body{height:auto!important;min-height:0!important;flex:0 1 auto!important;overflow:auto!important}

/* Courier Payments inherits the approved Personnel Payments shell and table. */
body.admin-brand .courier-payments-popup .courier-table-body{min-height:0!important;flex:1;overflow:hidden!important}
body.admin-brand .courier-payments-popup.courier-payments-popup .courier-table-layout.eops-popup-bento.eops-nav-in-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:12px!important;height:100%!important;min-height:0!important;padding:0!important}
body.admin-brand .courier-payments-popup .courier-table-layout>.eops-metrics{grid-row:1!important;grid-column:1!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:none}
body.admin-brand .courier-payments-popup .courier-table-layout>.eops-panel{grid-row:2!important;grid-column:1!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.admin-brand .courier-payments-popup .courier-table-layout>.eops-footnote{grid-row:3!important;grid-column:1!important;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#78716c;margin:0!important}
body.admin-brand .courier-payments-popup .planned-header-actions{display:flex;align-items:center;gap:8px}
body.admin-brand .courier-payments-popup .courier-week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e5dfd5;border-radius:999px;padding:3px;max-width:310px;margin-left:auto}
body.admin-brand .courier-payments-popup .courier-week-nav button{display:grid;place-items:center;border:0;background:transparent;width:30px;height:30px;flex:none;border-radius:999px;cursor:pointer;color:#8b1515}
body.admin-brand .courier-payments-popup .courier-week-nav svg{width:16px;height:16px}
body.admin-brand .courier-payments-popup .courier-week-nav strong{font:500 13px/1.3 Outfit,sans-serif;white-space:nowrap}
body.admin-brand .courier-payments-popup .courier-count{font-size:13px;color:#78716c;font-weight:400}
body.admin-brand .courier-payments-popup .eops-table-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
body.admin-brand .courier-payments-popup .courier-payment-table{min-width:1000px;table-layout:fixed;width:100%}
body.admin-brand .courier-payments-popup .courier-payment-table :is(th,td){text-align:center;vertical-align:middle;padding:10px 8px;font-size:14px;font-weight:400}
body.admin-brand .courier-payments-popup .courier-payment-table th{font-size:12px;font-weight:500}
body.admin-brand .courier-payments-popup .courier-payment-table :is(th,td):first-child{width:16%;text-align:left}
body.admin-brand .courier-payments-popup .courier-payment-table :is(th,td):nth-child(2){width:12%}
body.admin-brand .courier-payments-popup .courier-payment-table :is(th,td):last-child{width:16%}
body.admin-brand .courier-payments-popup .courier-payment-table td strong{font-weight:600;font-size:15px;white-space:nowrap}
body.admin-brand .courier-payments-popup .courier-payment-table td small{display:block;font-size:12px;color:#78716c;font-weight:400;line-height:1.5}
body.admin-brand .courier-payments-popup .eops-row-actions{justify-content:center;flex-wrap:nowrap;gap:4px}
body.admin-brand .courier-payments-popup .courier-row-icon{padding:6px;min-width:32px;height:32px;display:grid;place-items:center}
body.admin-brand .courier-payments-popup .courier-row-icon svg{height:17px;width:17px}
body.admin-brand .courier-payments-popup .eops-cari-amount{border:0;background:transparent;color:#1c1917;font:inherit;padding:4px 2px;text-decoration:underline;text-decoration-color:#d5cbc0;text-underline-offset:4px;cursor:pointer;white-space:nowrap}
body.admin-brand .courier-payments-popup .courier-negative{color:#8b1515}
body.admin-brand .courier-error{font:400 14px/1.5 Outfit,sans-serif;color:#8b1515;margin:8px 0 0}
body.admin-brand .courier-personnel-entry .eops-entry-section{padding:12px;border:1px solid #e5dfd5;border-radius:14px;background:#faf8f5}
body.admin-brand .courier-entry-dialog .courier-daily-edit{min-height:0;overflow:auto;max-height:calc(100dvh - 310px);scrollbar-gutter:stable}
body.admin-brand .courier-entry-dialog .courier-daily-edit table{min-width:460px;width:100%;table-layout:fixed}
body.admin-brand .courier-entry-dialog .courier-daily-edit :is(th,td){text-align:center;vertical-align:middle;padding:8px;font-size:14px}
body.admin-brand .courier-entry-dialog .courier-daily-edit :is(th,td):first-child{text-align:left;width:32%}
body.admin-brand .courier-entry-dialog .courier-daily-edit small{display:block;font-size:12px;color:#78716c}
body.admin-brand .courier-entry-dialog .courier-daily-edit input{width:84px;max-width:100%;height:36px;min-height:36px;padding:6px;border:1px solid #e5dfd5;border-radius:10px;font:500 15px Outfit,sans-serif;text-align:center;background:#faf8f5}
body.admin-brand .courier-entry-dialog .courier-account-records{margin:0}
body.admin-brand .courier-entry-dialog .courier-account-records h3{font-size:17px;font-weight:600;margin:0 0 8px}
body.admin-brand .courier-entry-dialog .courier-account-records ul{list-style:none;margin:0;padding:0;max-height:180px;overflow:auto}
body.admin-brand .courier-entry-dialog .courier-account-records li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e5dfd5;font-size:14px}
body.admin-brand .courier-entry-dialog .courier-account-records li>div{flex:1;min-width:0}
body.admin-brand .courier-entry-dialog .courier-account-records small{display:block;font-size:12px;color:#78716c;overflow-wrap:anywhere}
body.admin-brand .courier-entry-dialog .courier-account-records b{font-size:16px;font-weight:600;white-space:nowrap}
body.admin-brand .courier-entry-dialog .courier-account-records button svg{height:16px;width:16px}
@media(max-width:1050px){body.admin-brand .courier-payments-popup .planned-header-actions{flex-wrap:nowrap}body.admin-brand .courier-payments-popup .courier-week-nav{max-width:none;margin-left:0}}
@media(max-width:700px){body.admin-brand .courier-payments-popup .courier-table-body{display:flex!important;flex-direction:column;overflow:hidden!important}body.admin-brand .courier-payments-popup .courier-table-layout>.eops-metrics{gap:6px!important}body.admin-brand .courier-payments-popup .eops-metric{padding:10px;min-height:76px}body.admin-brand .courier-payments-popup .eops-metric strong{font-size:20px}body.admin-brand .courier-payments-popup .eops-metric>svg{display:none}body.admin-brand .courier-payments-popup .courier-week-nav button{height:38px;width:38px}body.admin-brand .courier-payments-popup .courier-table-layout>.eops-footnote{gap:3px}body.admin-brand .courier-payments-popup .planned-header-actions [data-save]{padding:8px!important;min-height:40px!important;font-size:12px!important}body.admin-brand .courier-personnel-entry .eops-entry-schedule{grid-template-columns:1fr 1fr}body.admin-brand .courier-personnel-entry .eops-entry-schedule>.eops-field:last-child{grid-column:1/-1}}

/* Courier editors share Personnel form/advance surfaces; daily entry needs a wider table. */
body.admin-brand dialog.courier-daily-dialog.rs-popup{width:min(780px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);border-radius:24px}
body.admin-brand dialog.eops-dialog.courier-editor .eops-dialog-frame{height:auto!important;min-height:0!important;max-height:calc(100dvh - 34px)!important}
body.admin-brand dialog.courier-editor.eops-dialog.courier-personnel-entry.rs-popup.rs-popup-packed{height:fit-content!important}
body.admin-brand .courier-daily-dialog :is(header,footer){padding:12px 16px;gap:10px}
body.admin-brand dialog.eops-dialog.courier-daily-dialog .eops-dialog-body{display:flex;flex-direction:column;flex:1 1 auto!important;padding:14px 16px;overflow:hidden!important;min-height:0!important;max-height:none!important}
body.admin-brand .courier-daily-dialog .eops-form-content{flex:1;overflow:hidden}
body.admin-brand .courier-daily-dialog .courier-daily-edit{flex:1 1 auto}
body.admin-brand .courier-daily-dialog :is(.courier-entry-help,.courier-daily-total){flex:none}
body.admin-brand .courier-entry-dialog .eops-form-content{display:flex;flex-direction:column;gap:12px;min-height:0}
body.admin-brand dialog.eops-dialog.courier-editor h2{flex:1;min-width:0;white-space:normal!important}
body.admin-brand dialog.eops-dialog.courier-editor h2>span{min-width:0;overflow-wrap:anywhere;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.admin-brand dialog.courier-editor header [data-save]{flex:none;white-space:nowrap}
body.admin-brand .courier-entry-dialog h2>svg{width:24px;height:24px;flex:none}
body.admin-brand .courier-entry-help{margin:0;font:400 12px/1.5 Outfit,sans-serif;color:#78716c}
body.admin-brand .courier-daily-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;background:#292725;color:#fff;font-variant-numeric:tabular-nums}
body.admin-brand .courier-daily-total>span{font-size:14px;font-weight:400}
body.admin-brand .courier-daily-total small{display:block;font-size:12px;color:#e0d9d1;margin-top:4px}
body.admin-brand .courier-daily-total strong{font-size:24px;font-weight:600;white-space:nowrap}
body.admin-brand .courier-account-dialog .eops-advance-summary strong{font-variant-numeric:tabular-nums}
body.admin-brand .courier-account-dialog .eops-advance-summary>div:first-child>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.admin-brand dialog.eops-dialog.courier-account-dialog .eops-dialog-body{display:flex;flex-direction:column}
body.admin-brand .courier-account-dialog .eops-form-content{flex:1;min-height:0}
body.admin-brand .courier-account-dialog :is(.eops-advance-summary,.eops-form-grid,.courier-undo){flex:none}
body.admin-brand .courier-account-dialog .courier-account-records{display:flex;flex-direction:column;flex:0 1 auto;min-height:0}
body.admin-brand .courier-account-dialog .courier-account-records h3{flex:none}
body.admin-brand .courier-account-dialog .courier-account-records ul{min-height:0}
body.admin-brand .courier-account-empty{font-size:14px;color:#78716c;margin:0;padding:12px;border:1px dashed #e5dfd5;border-radius:12px}
body.admin-brand .courier-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#57534e}
body.admin-brand :is(.courier-entry-dialog,.courier-personnel-entry) .eops-discard{padding:14px}
body.admin-brand :is(.courier-entry-dialog,.courier-personnel-entry) .eops-discard strong{font:600 18px/1.3 Outfit,sans-serif}
@media(max-width:600px){
 body.admin-brand dialog.courier-daily-dialog.rs-popup{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 body.admin-brand .courier-daily-dialog header{flex-wrap:wrap}
 body.admin-brand .courier-daily-dialog h2{flex:1 1 100%}
 body.admin-brand .courier-daily-dialog header [data-save]{margin-left:auto}
 body.admin-brand .courier-entry-dialog .courier-daily-edit{max-height:calc(100dvh - 360px)}
 body.admin-brand .courier-entry-dialog .courier-daily-edit input{min-height:44px;height:44px}
}

/* Courier entry uses four editable fields; its fixed schedule is compact metadata. */
body.admin-brand dialog.courier-personnel-entry .eops-entry-schedule{display:block!important;margin-top:12px}
body.admin-brand dialog.courier-personnel-entry .courier-schedule-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e5dfd5;border-radius:12px;background:#f5f1eb;font:400 14px/1.4 Outfit,sans-serif;color:#57534e}
body.admin-brand dialog.courier-personnel-entry .courier-schedule-note strong{font-weight:500;color:#292725}

body.admin-brand dialog.planned-payments-popup:focus{outline:0}

@media(max-width:700px){body.admin-brand dialog.planned-payments-popup>header .planned-header-actions button{height:44px!important;min-height:44px!important;margin:0!important;flex:0 0 auto!important}}
