/* Blue-white ledger, scoped to the customer workspace. */
.shell.page-customers{--green:#1463ed;--green-dark:#1556c8;--ledger-line:#e0e9f5;--ledger-ink:#263b58}
.shell.page-customers .main-content{padding:8px 12px 12px!important}
.shell.page-customers .page-heading{margin:0!important;padding:8px 0 12px!important;gap:8px 10px!important}
.shell.page-customers .page-heading h1{font-size:19px!important;letter-spacing:-.4px;color:#172a43}
.shell.page-customers .page-heading>.toolbar{flex:1 1 640px!important}
.shell.page-customers .page-heading .filter-left{flex-wrap:nowrap!important}
.shell.page-customers .page-heading .customer-status-tags{flex-wrap:nowrap!important}
.shell.page-customers .page-heading .search-box{width:180px!important;border-color:#dce5f1;border-radius:5px!important;background:#fff}
.shell.page-customers .page-heading .search-box input{font-size:12px}
.shell.page-customers .customer-status-tag{background:#f4f7fc!important;color:#52657f!important;border:1px solid transparent!important;border-radius:4px!important;min-height:30px;transition:background .15s,color .15s}
.shell.page-customers .customer-status-tag.selected{background:#1463ed!important;color:white!important;border-color:#1463ed!important}
.shell.page-customers .customer-status-tag.selected span{color:#fff!important;background:#ffffff30!important}
.shell.page-customers .customer-status-tag:hover{border-color:#b9d0f4!important}
.shell.page-customers .primary{background:#1463ed!important;border-radius:5px!important}
.shell.page-customers .primary:hover{background:#0c52d3!important}
.shell.page-customers .secondary{border-radius:5px!important;border-color:#dce5f1!important;color:#354963}
.shell.page-customers .sheet-card{border:1px solid #d7e4f5!important;border-radius:4px!important}
.shell.page-customers .formula-bar,.shell.page-customers .letter-row{display:none!important}
.shell.page-customers .data-grid{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ledger-ink);font-variant-numeric:tabular-nums}
.shell.page-customers .ledger-group-row th{height:34px!important;padding:7px 12px!important;background:#e4f0ff!important;color:#154b9f!important;text-align:center;font-size:13px;font-weight:650;border-right:1px solid #d0e2fa!important;border-bottom:1px solid #cfe0f5!important;position:sticky;top:0;z-index:4}
.shell.page-customers .data-grid .field-row th{top:34px!important;height:34px!important;background:#f0f6ff!important;color:#224c88!important;font-weight:600!important;border-right:1px solid #dce8f8!important;border-bottom:1px solid #d2e2f7!important;font-size:12px!important}
.shell.page-customers .data-grid .column-kind{display:none!important}
.shell.page-customers .data-grid td{height:34px!important;padding:5px 8px!important;border-right:1px solid var(--ledger-line)!important;border-bottom:1px solid var(--ledger-line)!important;font-size:12px!important;line-height:22px!important;background:#fff;color:#30435e}
.shell.page-customers .data-grid tbody tr:nth-child(even) td:not(.range-selected):not(.editing){background:#f5f9ff!important}
.shell.page-customers .data-grid tbody tr:hover td:not(.range-selected):not(.editing){background:#eaf3ff!important}
.shell.page-customers .data-grid td.active-cell{outline:2px solid #1463ed!important;outline-offset:-2px;background:#edf5ff!important}
.shell.page-customers .data-grid .range-selected{background:#e7f0ff!important}
.shell.page-customers .cell-check.checked{background:#1463ed!important;border-color:#1463ed!important}
.shell.page-customers .group-cell-link{color:#1463ed;font-weight:550}
.shell.page-customers .data-grid td[data-col="net"]{font-weight:650;color:#183f76}
.shell.page-customers .spreadsheet{height:calc(100vh - 145px)!important;min-height:250px!important;scrollbar-color:#c1cddd #f5f8fd;scrollbar-width:thin}
.shell.page-customers .spreadsheet-status{background:#fff;border-top:1px solid #e0e9f5;min-height:42px;gap:14px;padding:6px 10px;font-size:11px;color:#74839a;justify-content:flex-start}
.shell.page-customers .spreadsheet-status>span:last-child{margin-left:auto}
.shell.page-customers .ledger-add{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;background:#fff;color:#1463ed;border:1px solid #b7cef3;border-radius:4px;padding:5px 10px;font-size:12px;font-weight:550;cursor:pointer}
.shell.page-customers .ledger-add:hover{background:#eef5ff;border-color:#1463ed}
.shell.page-customers .new-sheet-row td{background:#f0f7ff!important}
@media(min-width:1450px){.shell.page-customers .page-heading{flex-wrap:nowrap!important}.shell.page-customers .spreadsheet{height:calc(100vh - 105px)!important}}
@media(max-width:1100px){.shell.page-customers .page-heading .filter-left{flex-wrap:wrap!important}.shell.page-customers .page-heading .customer-status-tags{flex-wrap:wrap!important}.shell.page-customers .spreadsheet{height:calc(100vh - 195px)!important}}

/* Keep every ledger value centered, including editable inputs and money links. */
.shell.page-customers .data-grid th,
.shell.page-customers .data-grid td{ text-align:center!important;vertical-align:middle!important }
.shell.page-customers .data-grid td input,
.shell.page-customers .data-grid td select,
.shell.page-customers .data-grid td textarea{ text-align:center!important;text-align-last:center }
.shell.page-customers .data-grid .group-cell-link,
.shell.page-customers .data-grid .group-date-link,
.shell.page-customers .data-grid .recharge-cell{ text-align:center!important;justify-content:center!important }

/* Compact command bar: consistent baselines, grouped filters and actions. */
.shell.page-customers .page-heading{min-height:60px!important;padding:8px 0!important;gap:8px 10px!important;align-items:center!important}
.shell.page-customers .page-heading>.toolbar{flex:1 1 auto!important;gap:8px!important;align-items:center!important}
.shell.page-customers .page-heading .filter-left{flex:0 1 auto!important;gap:6px!important;align-items:center!important}
.shell.page-customers .page-heading .filter-right{align-self:center!important;display:flex!important;align-items:center!important;margin-left:auto!important}
.shell.page-customers .page-heading .search-box{height:32px!important;width:190px!important;min-width:150px!important}
.shell.page-customers .page-heading select{height:32px!important;min-height:32px!important;border-radius:5px!important;font-size:12px!important}
.shell.page-customers .page-heading .customer-status-tags{display:inline-flex!important;gap:2px!important;padding:3px!important;background:#f1f5fb;border:1px solid #e4ebf5;border-radius:6px!important;align-items:center!important}
.shell.page-customers .page-heading .customer-status-tag{height:28px!important;min-height:28px!important;padding:3px 7px!important;background:transparent!important;border:0!important;border-radius:4px!important;color:#5a6b83!important;font-size:11px!important}
.shell.page-customers .page-heading .customer-status-tag span{background:#e5ecf6!important;border-radius:3px!important;font-size:10px!important;padding:1px 4px!important;color:#526784!important}
.shell.page-customers .page-heading .customer-status-tag.selected{background:#1463ed!important;color:white!important}
.shell.page-customers .page-heading .customer-status-tag.selected span{background:#ffffff30!important;color:white!important}
.shell.page-customers .page-heading .heading-actions{align-items:center!important;gap:6px!important;flex:0 0 auto!important;margin-left:0!important}
.shell.page-customers .page-heading .heading-actions button{height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 11px!important}
.shell.page-customers .page-heading .heading-actions .icon-button{width:30px!important;padding:0!important}
.shell.page-customers .page-heading .save-status{font-size:11px!important;white-space:nowrap;gap:4px!important}
.shell.page-customers .page-heading .quiet{height:32px!important;padding:0 6px!important;font-size:12px!important;display:inline-flex;align-items:center;gap:5px}
.shell.page-customers .page-heading .heading-actions [data-action="deleted-customers"]{color:#738198!important}
@media(max-width:1450px){.shell.page-customers .page-heading{flex-wrap:wrap!important}.shell.page-customers .page-heading .filter-left{flex-wrap:wrap!important}.shell.page-customers .page-heading .heading-actions{margin-left:auto!important}.shell.page-customers .page-heading>.toolbar{flex-basis:calc(100% - 100px)!important}}

/* Statistics: flat summary ledger and detail, no metric cards. */
.shell.page-dashboard .main-content{padding:10px 16px 18px}
.shell.page-dashboard .page-heading{padding:4px 0 10px;min-height:48px;align-items:center}
.shell.page-dashboard .page-heading h1{font-size:21px}
.shell.page-dashboard .page-heading p,.shell.page-dashboard .eyebrow{display:none}
.shell.page-dashboard .statistics-filters{margin:0 0 12px;padding:6px 0;border:0;border-radius:0;background:white;gap:10px;flex-wrap:wrap}
.shell.page-dashboard .statistics-summary-scroll{overflow-x:auto;border:1px solid #d9e6f7;border-radius:3px;margin-bottom:14px}
.statistics-summary{width:100%;border-collapse:collapse;white-space:nowrap;font-variant-numeric:tabular-nums}
.statistics-summary th{padding:10px 9px;background:#edf5ff;color:#335683;font-size:12px;font-weight:600;border-right:1px solid #dce7f5;text-align:center}
.statistics-summary td{padding:13px 9px;font-size:17px;font-weight:650;text-align:center;color:#213452;border-right:1px solid #e3ebf6}
.statistics-summary .rate-value{color:#1463ed}.statistics-summary .net-value{color:#08785d}
.shell.page-dashboard .statistics-ledger{border:0;border-radius:0;box-shadow:none;background:white;margin:0}
.shell.page-dashboard .statistics-tabs{padding:0;gap:12px;border-bottom:1px solid #dbe5f3;margin-bottom:10px}
.shell.page-dashboard .statistics-tabs button{padding:9px 16px;font-size:12px}
.shell.page-dashboard .statistics-tabs button.selected{color:#1463ed;border-color:#1463ed}
.shell.page-dashboard .statistics-table th{background:#eef5ff;color:#365b8b;font-weight:600;font-size:12px}
.shell.page-dashboard .statistics-table th,.shell.page-dashboard .statistics-table td{text-align:center!important;padding:10px 8px;border:1px solid #e0e9f5;font-variant-numeric:tabular-nums}
.shell.page-dashboard .statistics-table tbody tr:nth-child(even){background:#f6faff}
.shell.page-dashboard .statistics-table tbody tr:last-child{background:#eaf4ff;font-weight:650}
.shell.page-dashboard .statistics-note{padding:7px 0;margin:0;font-size:11px;line-height:1.6}
.statistics-trend-strip{border-top:1px solid #dce7f5;padding-top:10px;margin-top:8px}
.statistics-trend-strip h3{font-size:13px;color:#263b58;margin:0 0 5px}.statistics-trend-strip h3 small{font-size:11px;color:#7a899c;font-weight:400;margin-left:8px}
.statistics-trend-strip .trend-chart{display:block;width:100%;height:150px;max-width:none}
.statistics-trend-strip .trend-chart polyline{stroke:#1463ed}.statistics-trend-strip .trend-chart circle{fill:#1463ed}.statistics-trend-strip .trend-chart path{fill:#edf5ff}
.shell.page-dashboard .page-note{margin-top:8px;font-size:11px}
.statistics-trend-strip .trend-chart{height:185px}

/* Horizontal navigation frees the entire viewport for business tables. */
.shell.horizontal-navigation{display:block!important;--nav-width:0px}
.shell.horizontal-navigation>main{margin-left:0!important;width:100%!important;min-width:0!important}
.shell.horizontal-navigation .workspace-navigation{height:48px!important;min-height:48px!important;padding:0 16px!important;display:flex;align-items:center;gap:20px;border-bottom:1px solid #e2e9f3;background:white}
.workspace-brand{display:inline-flex;align-items:center;gap:7px;color:#19385f;text-decoration:none;font-size:16px;font-weight:650;white-space:nowrap;flex-shrink:0}
.workspace-brand .icon{width:23px;height:23px;color:#1463ed}
.workspace-nav{display:flex!important;align-self:stretch;gap:4px!important;min-width:0;overflow-x:auto;scrollbar-width:thin}
.workspace-nav-item{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#60718a;font-size:13px;font-weight:500;padding:0 13px;cursor:pointer;white-space:nowrap}
.workspace-nav-item .icon{width:16px;height:16px}
.workspace-nav-item.active{background:#f1f6ff;color:#1463ed;border-bottom-color:#1463ed;font-weight:650}
.workspace-nav-item:hover{background:#f5f8fd;color:#1463ed}
.workspace-nav-item:focus-visible{outline:2px solid #1463ed;outline-offset:-3px}
.workspace-navigation .top-right{margin-left:auto;display:flex;align-items:center;gap:12px;white-space:nowrap;flex-shrink:0}
.workspace-user{font-size:12px;color:#425773}
@media(min-width:1450px){.shell.horizontal-navigation.page-customers .spreadsheet{height:calc(100vh - 120px)!important}}
@media(max-width:1100px){.workspace-navigation .scope{display:none!important}.shell.horizontal-navigation .workspace-navigation{gap:8px;padding:0 8px!important}.workspace-nav-item{padding:0 9px;font-size:12px}.workspace-navigation .top-right{gap:6px}.workspace-brand{font-size:14px}}
@media(max-width:700px){.shell.horizontal-navigation .workspace-navigation{height:auto!important;flex-wrap:wrap;padding-top:6px!important;gap:4px 8px}.workspace-nav{order:3;width:100%;height:40px}.workspace-navigation .top-right{font-size:11px}.workspace-nav-item{flex:1;padding:0 8px}.workspace-user{font-size:11px}}
.shell.horizontal-navigation .workspace-nav{flex-direction:row!important;flex:1 1 auto!important;width:auto;overflow-y:hidden;min-height:0}
@media(max-width:700px){.shell.horizontal-navigation .workspace-nav{flex-basis:100%!important;width:100%}}

.workspace-nav-item:not(.active):hover{background:#f5f7fa;color:#425773}

/* Account directory: compact grouped rows rather than an undifferentiated list. */
.shell.page-accounts .main-content{padding:10px 16px 18px}
.shell.page-accounts .page-heading{min-height:48px;padding:5px 0 12px;align-items:center}
.shell.page-accounts .page-heading h1{font-size:21px}
.shell.page-accounts .page-heading p,.shell.page-accounts .eyebrow{display:none}
.account-ledger{border:1px solid #dce6f3;border-radius:4px;background:white;overflow:hidden}
.account-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid #e1e8f2;flex-wrap:wrap}
.account-categories{display:flex;gap:4px;flex-wrap:wrap}
.account-categories button{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:0;border-radius:4px;background:transparent;color:#61718b;font-size:12px;cursor:pointer}
.account-categories button span{font-size:10px;background:#edf2f8;color:#5e718d;border-radius:3px;padding:1px 5px}
.account-categories button.selected{background:#1463ed;color:#fff}
.account-categories button.selected span{background:#ffffff30;color:#fff}
.account-categories button:not(.selected):hover{background:#f2f6fc}
.account-search{display:flex;align-items:center;gap:7px;border:1px solid #dce5f1;border-radius:4px;padding:0 9px;height:32px}
.account-search input{border:0;outline:0;background:transparent;font-size:12px;width:190px;padding:0}
.account-search .icon{width:14px;height:14px;color:#7889a1}
.account-table{width:100%;font-size:12px}
.account-table thead th{background:#f3f7fc;color:#657994;font-size:11px}
.account-table th,.account-table td{text-align:center!important;vertical-align:middle;padding:8px 12px!important;height:40px;border-bottom:1px solid #e6edf6}
.account-table .account-section-row th{text-align:left!important;background:#eaf3ff;color:#254f88;height:31px;padding:6px 14px!important;font-size:12px;font-weight:650}
.account-section-row span{font-size:10px;color:#7a8faa;font-weight:400;margin-left:10px}
.account-name{font-weight:550;color:#2e415d}
.account-role{display:inline-block;border-radius:3px;padding:3px 7px;background:#f1f4f9;color:#586c88;font-size:11px}
.account-role.role-leader{background:#e9f1ff;color:#1b5cbe;font-weight:600}
.account-role.role-admin{background:#eeeafa;color:#7454a8}
.account-role.role-resource{background:#fff4df;color:#956b23}
.account-role.role-finance{background:#e6f5ee;color:#187858}
.account-employment{font-size:11px;color:#3b7b60}.account-employment.left{color:#8793a5}.account-employment.disabled{color:#b27b27}
.account-departed td{background:#fafbfc;color:#8b97a8}
.account-actions .text-button{font-size:12px;padding:3px 7px;white-space:nowrap}
.account-actions [data-employment]{color:#9a6b38}
.account-scope{max-width:260px;white-space:normal;line-height:1.6}
.account-footer{padding:8px 12px;font-size:11px;color:#7b8ca3;border-top:1px solid #e1e8f2}
@media(max-width:700px){.account-search{width:100%}.account-search input{width:100%}.account-table{min-width:850px}}

/* Shared form finish across pages, dialogs and login; native controls keep their semantics. */
:root{--field-border:#d6dfec;--field-ink:#29415e;--field-focus:#397bef;--field-muted:#93a0b4}
body :is(.shell,#dialog-root,.password-login,.login-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]),select,textarea){box-sizing:border-box;background-color:#fff!important;color:var(--field-ink)!important;border:1px solid var(--field-border)!important;border-radius:6px!important;font:inherit;font-size:12px!important;box-shadow:0 1px 2px #1e3a5f05!important;outline:none!important;transition:border-color .15s,box-shadow .15s,background-color .15s}
body :is(.shell,#dialog-root,.password-login,.login-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]),select){min-height:34px!important;padding:6px 11px!important}
body :is(.shell,#dialog-root,.password-login,.login-page) select{appearance:none!important;-webkit-appearance:none!important;background-image:url('/vendor/lucide/chevron-down.svg')!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:13px!important;padding-right:30px!important;cursor:pointer}
body :is(.shell,#dialog-root,.password-login,.login-page) textarea{padding:10px 12px!important;line-height:1.7!important;resize:vertical}
body :is(.shell,#dialog-root,.password-login,.login-page) :is(input,select,textarea):not(:disabled):hover{border-color:#b6c7dd!important}
body :is(.shell,#dialog-root,.password-login,.login-page) :is(input,select,textarea):focus{border-color:var(--field-focus)!important;box-shadow:0 0 0 3px #397bef17,0 1px 2px #1e3a5f05!important;outline:none!important}
body :is(.shell,#dialog-root,.password-login,.login-page) :is(input,select,textarea):disabled{background-color:#f4f6fa!important;color:#93a0b4!important;border-color:#e3e9f2!important;box-shadow:none!important;cursor:not-allowed}
body :is(.shell,#dialog-root,.password-login,.login-page) input::placeholder,body #dialog-root textarea::placeholder{color:#9aa7b9!important;font-weight:400}
body :is(.shell,#dialog-root) :is(input,select,textarea):user-invalid{border-color:#db8888!important}
body :is(.shell,#dialog-root) :is(input[type=checkbox],input[type=radio]){accent-color:#2369e5;width:15px;height:15px;box-shadow:none!important;cursor:pointer}
body .shell :is(.search-box,.account-search){border-color:var(--field-border)!important;border-radius:6px!important;background:#fff!important;box-shadow:0 1px 2px #1e3a5f05}
body .shell :is(.search-box,.account-search):focus-within{border-color:var(--field-focus)!important;box-shadow:0 0 0 3px #397bef17!important}
body .shell :is(.search-box,.account-search) input{border:0!important;min-height:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}
body .shell :is(.search-box,.account-search) input:focus{box-shadow:none!important}
body .shell .data-grid td :is(input,select,textarea){border-radius:2px!important;min-height:0!important;height:32px!important;padding:3px 6px!important;box-shadow:none!important;font-size:12px!important}
body .shell .data-grid td select{padding-right:23px!important;background-position:right 5px center!important}
body .shell .data-grid td :is(input,select,textarea):focus{border-color:#397bef!important;box-shadow:none!important}
body #dialog-root .modal-overlay{background:rgba(20,35,57,.32)!important;backdrop-filter:blur(4px)}
body #dialog-root .modal{border:1px solid #e3eaf4!important;border-radius:12px!important;box-shadow:0 20px 64px #132b4f26,0 3px 12px #132b4f0d!important;background:#fff!important}
body #dialog-root .modal>header{padding:20px 24px 17px!important;border-bottom:1px solid #edf1f7!important;background:white}
body #dialog-root .modal>header h2{font-size:17px!important;font-weight:650;color:#243a58;letter-spacing:-.2px}
body #dialog-root .modal>header p{font-size:12px!important;color:#8190a5!important;line-height:1.6;margin-top:6px}
body #dialog-root .close-modal{border-radius:6px!important;color:#8b98aa!important;width:30px;height:30px}
body #dialog-root .close-modal:hover{background:#f0f5fc!important;color:#355b91!important}
body #dialog-root .modal-body{padding:20px 24px!important}
body #dialog-root .form-grid{gap:16px!important}
body #dialog-root .form-field>label{font-size:12px!important;color:#5b6e88!important;font-weight:500;margin-bottom:7px}
body #dialog-root .form-field :is(input:not([type=checkbox]):not([type=radio]),select){height:38px!important;font-size:13px!important}
body #dialog-root fieldset{border-color:#e3eaf4!important;border-radius:7px!important}
body #dialog-root legend{color:#49617f!important;font-size:12px;font-weight:550}
body #dialog-root .modal-footer{padding:14px 24px!important;border-top:1px solid #e9eef6!important;background:#f9fbfe!important;gap:8px}
body #dialog-root .modal-footer :is(.primary,.secondary){min-height:35px!important;padding:7px 16px!important;border-radius:6px!important;font-size:12px!important;font-weight:550;box-shadow:none!important}
body #dialog-root .modal-footer .primary{background:#2369e5!important;border:1px solid #2369e5!important;color:white!important}
body #dialog-root .modal-footer .primary:hover{background:#185bd0!important}
body #dialog-root .modal-footer .secondary{background:white!important;border:1px solid #d8e2ef!important;color:#526a89!important}
body #dialog-root .form-error{color:#bd4d4d!important;font-size:12px!important}
@media(max-width:600px){body #dialog-root .modal>header,body #dialog-root .modal-body{padding:16px!important}body #dialog-root .modal-footer{padding:12px 16px!important}}
@media(prefers-reduced-motion:reduce){body :is(.shell,#dialog-root) :is(input,select,textarea){transition:none!important}}

/* Stage tables keep daily work visible; the complete ledger remains available. */
.shell.stage-workspace .main-content{display:flex!important;flex-direction:column;box-sizing:border-box;height:calc(100vh - 48px);min-height:0;overflow:hidden;padding:10px 16px 12px!important}
.shell.stage-workspace .page-heading{flex:0 0 auto;min-height:48px!important;justify-content:space-between;flex-wrap:wrap!important;padding:0 0 10px!important}
.shell.stage-workspace .page-heading .heading-actions{margin-left:auto!important;flex-wrap:wrap}
.shell.stage-workspace #page-body{display:flex;flex-direction:column;flex:1;min-height:0}
.shell.stage-workspace .sheet-card{display:flex;flex-direction:column;flex:1;min-height:0;overflow:visible!important}
.shell.stage-workspace #grid-area{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.shell.stage-workspace .spreadsheet{flex:1;height:auto!important;min-height:180px!important}
.shell.stage-workspace .sheet-card>.toolbar{display:flex!important;gap:12px;flex-wrap:wrap;align-items:center;padding:12px!important;border-bottom:1px solid #dce6f4;flex-shrink:0}
.shell.stage-workspace .toolbar .filter-left{display:flex;align-items:center;gap:8px;flex:1 1 800px;min-width:0;flex-wrap:wrap!important}
.shell.stage-workspace .toolbar .filter-right{margin-left:auto;flex:0 0 auto}
.shell.stage-workspace .toolbar .search-box{width:210px;min-width:160px}
.shell.stage-workspace .customer-status-tags{display:flex;align-items:center;flex-wrap:wrap!important;gap:3px;padding:3px;border:1px solid #e1e9f5;background:#f6f9fd;border-radius:6px}
.shell.stage-workspace .customer-status-tag{font-size:13px!important;padding:5px 9px!important;min-height:34px}
.shell.stage-workspace .customer-layout-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.shell.stage-workspace .customer-layout-controls button{min-height:34px;font-size:12px;padding:5px 9px}
.shell.stage-workspace .customer-more{position:relative}
.shell.stage-workspace .customer-more summary{display:flex;align-items:center;gap:5px;list-style:none;border:1px solid #dce5f1;border-radius:5px;padding:6px 11px;min-height:32px;box-sizing:border-box;font-size:12px;color:#354963;cursor:pointer;background:white}
.shell.stage-workspace .customer-more summary::-webkit-details-marker{display:none}
.shell.stage-workspace .customer-more-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:40;min-width:160px;padding:5px;background:white;border:1px solid #dce5f1;border-radius:6px;box-shadow:0 6px 24px #24476822;display:flex;flex-direction:column}
.shell.stage-workspace .customer-more-menu button{width:100%;border:0;background:white;text-align:left;padding:8px 12px!important;height:36px!important;white-space:nowrap;color:#354963}
.shell.stage-workspace .customer-more-menu button:hover{background:#f0f6ff}
.shell.stage-workspace .customer-more-menu [data-action=delete-customers]{color:#ad4242}
.shell.stage-workspace .stage-table .ledger-group-row{display:none}
.shell.stage-workspace .stage-table .data-grid .field-row th{top:0!important;height:40px!important;font-size:13px!important;white-space:nowrap}
.shell.stage-workspace .stage-table .data-grid td{height:40px!important;font-size:13px!important}
.shell.stage-workspace .stage-table .data-grid td[data-col=note],.shell.stage-workspace .stage-table .data-grid td[data-col=followupNote]{text-align:left!important}
.shell.stage-workspace .stage-table .data-grid td[data-col=phone]{box-shadow:2px 0 0 #dce6f4}
.shell.stage-workspace .stage-table .group-cell-link .icon{width:12px;height:12px;margin-left:4px}
.shell.stage-workspace summary:focus-visible,.shell.stage-workspace button:focus-visible{outline:2px solid #1463ed;outline-offset:2px}
@media(max-width:1100px){.shell.stage-workspace .toolbar .filter-left{flex-basis:100%}.shell.stage-workspace .toolbar .filter-right{margin-left:0}.shell.stage-workspace .page-heading .save-status{display:none!important}}
@media(max-width:700px){.shell.stage-workspace .main-content{height:auto;min-height:calc(100vh - 90px);overflow:visible}.shell.stage-workspace .spreadsheet{height:60vh!important;flex:auto}.shell.stage-workspace .toolbar .search-box{width:100%}}

/* Three separate feedback summaries; full text and editing stay in the dialog. */
.data-grid .feedback-cell{display:block;width:100%;border:0;background:transparent;text-align:left;color:inherit;padding:5px 8px;cursor:pointer;font:inherit;white-space:normal}
.data-grid .feedback-cell>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:19px;max-height:38px}
.feedback-cell:hover{background:#eaf2ff;color:#1463ed}
.feedback-dialog>textarea{width:100%;box-sizing:border-box;min-height:150px;resize:vertical;padding:12px;line-height:1.6;border:1px solid #cad8ed;border-radius:6px;font:inherit}
.feedback-dialog details{margin-top:14px}.feedback-dialog summary{cursor:pointer;color:#45617f}
.feedback-full{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;background:#f5f8fc;padding:10px;border-radius:5px}
.feedback-history-item{padding:12px 0;border-bottom:1px solid #e3eaf4}.feedback-history-item time{font-size:12px;color:#6a7c95}


/* Compact customer command row, matching the existing ledger density. */
.shell.stage-workspace .page-heading{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-height:54px!important;padding:8px 0 12px!important}
.shell.stage-workspace .page-heading>div:first-child{flex:0 0 auto}
.shell.stage-workspace .page-heading h1{font-size:18px!important;white-space:nowrap}
.shell.stage-workspace .page-heading>.toolbar.customer-filter-panel{display:flex!important;flex:1 1 auto!important;align-items:center!important;gap:6px!important;padding:0!important;min-width:0;border:0!important;background:transparent;flex-wrap:wrap!important}
.shell.stage-workspace .customer-filter-panel .search-box{display:flex!important;align-items:center;gap:7px;width:188px!important;min-width:150px!important;height:32px!important;padding:0 9px!important;border:1px solid #dce5f1!important;border-radius:5px!important;background:white;box-sizing:border-box;flex:0 0 auto}
.shell.stage-workspace .customer-filter-panel .search-box input{width:100%!important;min-width:0!important;height:28px!important;padding:0!important;margin:0;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:12px!important;color:#30435e}
.shell.stage-workspace .customer-filter-panel .search-box input::placeholder{color:#8b9ab0}
.shell.stage-workspace .customer-filter-panel .search-box:focus-within{border-color:#6d9ef0!important;box-shadow:0 0 0 2px #1463ed10}
.shell.stage-workspace .customer-filter-panel .search-box>.icon{width:14px;height:14px;flex-shrink:0;color:#8a99ac}
.shell.stage-workspace .customer-filter-panel .search-box kbd{display:none!important}
.shell.stage-workspace .customer-filter-panel>select{height:32px!important;min-height:32px!important;min-width:96px;max-width:132px;font-size:12px!important;border:1px solid #dce5f1!important;border-radius:5px!important;background-color:white;color:#354963;padding-left:10px!important;flex:0 0 auto}
.shell.stage-workspace .customer-filter-panel>#expert-deposit-filter{min-width:110px;max-width:124px}
.shell.stage-workspace .customer-filter-panel .customer-status-tags{display:flex!important;align-items:center;flex:0 0 auto;width:auto!important;gap:2px!important;flex-wrap:nowrap!important;padding:3px!important;border:1px solid #e1e9f5!important;border-radius:5px!important;background:#f5f8fd}
.shell.stage-workspace .customer-filter-panel .customer-status-tag{display:inline-flex;align-items:center;gap:5px;min-height:26px!important;height:26px!important;padding:0 7px!important;font-size:12px!important;white-space:nowrap;border:1px solid transparent!important;border-radius:4px!important;background:transparent!important;color:#52657f!important}
.shell.stage-workspace .customer-filter-panel .customer-status-tag>span{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:16px;padding:0 4px;border-radius:3px;font-size:10px;font-variant-numeric:tabular-nums;background:#e9eff8!important;color:#526b8e!important}
.shell.stage-workspace .customer-filter-panel .customer-status-tag.selected{background:#1463ed!important;color:white!important;border-color:#1463ed!important}
.shell.stage-workspace .customer-filter-panel .customer-status-tag.selected>span{background:#ffffff30!important;color:white!important}
.shell.stage-workspace .customer-filter-panel .customer-status-tag:hover{border-color:#b9d0f4!important}
.shell.stage-workspace .page-heading .heading-actions{flex:0 0 auto;margin-left:auto!important;gap:6px!important;flex-wrap:nowrap!important}
.shell.stage-workspace .heading-actions>button{min-height:32px!important;height:32px!important;font-size:12px!important;padding:5px 9px!important;white-space:nowrap}
.shell.stage-workspace .heading-actions .save-status{font-size:11px;white-space:nowrap}
.shell.stage-workspace .customer-display-menu{position:relative;flex:0 0 auto}
.shell.stage-workspace .customer-display-menu>summary{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;height:32px;padding:0 8px;box-sizing:border-box;font-size:12px;white-space:nowrap;border:1px solid #dce5f1;border-radius:5px;color:#52657f;background:white}
.shell.stage-workspace .customer-display-menu>summary::-webkit-details-marker{display:none}
.shell.stage-workspace .customer-display-menu .icon{width:13px;height:13px}
.shell.stage-workspace .customer-display-options{position:absolute;right:0;top:calc(100% + 5px);z-index:40;min-width:160px;padding:5px;border:1px solid #dce5f1;border-radius:6px;background:white;box-shadow:0 6px 24px #24476822}
.shell.stage-workspace .customer-display-options .customer-layout-controls{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.shell.stage-workspace .customer-display-options button{text-align:left;border:0!important;background:white!important;padding:8px 10px;white-space:nowrap}
.shell.stage-workspace .customer-display-options button:hover,.shell.stage-workspace .customer-display-options button[aria-pressed=true]{background:#edf4ff!important;color:#1463ed}
.shell.stage-workspace .stage-table .data-grid .field-row th{height:34px!important;font-size:12px!important}
.shell.stage-workspace .stage-table .data-grid td{height:34px!important;font-size:12px!important}
.shell.stage-workspace .customer-filter-panel :is(button,select,summary):focus-visible{outline:2px solid #377aeb;outline-offset:2px}
@media(min-width:1800px){.shell.stage-workspace .page-heading{flex-wrap:nowrap!important}.shell.stage-workspace .page-heading>.toolbar.customer-filter-panel{flex-wrap:nowrap!important}}
@media(max-width:1799px){.shell.stage-workspace .heading-actions .save-status{display:none!important}}
@media(max-width:1100px){.shell.stage-workspace .page-heading>.toolbar.customer-filter-panel{flex:1 1 calc(100% - 110px)!important}.shell.stage-workspace .heading-actions{width:100%;justify-content:flex-end}}
@media(max-width:700px){.shell.stage-workspace .customer-filter-panel .customer-status-tags{flex-wrap:wrap!important;flex:1 1 100%}.shell.stage-workspace .customer-filter-panel .search-box{flex:1 1 180px;width:auto!important}.shell.stage-workspace .page-heading .heading-actions{flex-wrap:wrap!important}}

/* Keep the expert recharge-order picker beside the first-deposit filter. */
.shell.stage-workspace .customer-filter-panel>#customer-recharge-sort{min-width:136px;max-width:148px}

/* Match existing compact statistics controls while keeping the country label readable. */
.shell .statistics-filters select[data-stat-filter="country"]{min-width:148px;max-width:180px}

.shell .statistics-filters>label{white-space:nowrap}
@media(max-width:700px){.shell .statistics-filters>label{flex:0 1 auto}.shell .statistics-filters>label select{min-width:110px}.shell .statistics-filters>.statistics-country-filter{flex:1 1 100%}}
