/* Authenticated ledger surfaces only. The login screen is intentionally outside these scopes. */
.shell .record-workspace {display:block;min-width:0;}
.shell .record-workspace > .board {padding:0;overflow:visible;border:1px solid #dce5e8;border-radius:8px;background:#fff;box-shadow:0 3px 14px #102d4004;}
.shell .ledger-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px 18px;}
.shell .ledger-heading>div:first-child {display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;}
.shell .ledger-heading strong {font-size:19px;line-height:1.5;color:#102D40;}
.shell .ledger-eyebrow {font-size:11px;color:#247b81;background:#edf8f6;border:1px solid #d9eeeb;border-radius:4px;padding:3px 7px;white-space:nowrap;}
.shell .ledger-scope {font-size:12px;color:#667e8b;line-height:1.5;}
.shell .ledger-personal {display:flex;gap:8px;flex-shrink:0;}
.shell .ledger-personal select {width:160px;max-width:100%;height:34px;padding:5px 28px 5px 10px;border:1px solid #cbd9e1;border-radius:5px;font-size:12px;background:#fff;}
.shell .ledger-personal button,.shell .ledger-table-tools button {font-size:12px;min-height:32px;padding:5px 12px;border-color:#d2dfe5;}
.shell .ledger-views {display:flex;gap:24px;padding:0 24px;border-bottom:1px solid #e0e8ec;overflow-x:auto;scrollbar-width:thin;}
.shell .ledger-views button {flex-shrink:0;position:relative;border:0;border-radius:0;padding:12px 0 14px;background:transparent;font-size:13px;color:#5c7280;line-height:1.5;font-weight:500;white-space:nowrap;box-shadow:none;}
.shell .ledger-views button span {display:inline-block;margin-left:7px;padding:1px 6px;background:#f1f5f7;border-radius:4px;font-size:11px;font-variant-numeric:tabular-nums;color:#6d808a;}
.shell .ledger-views button.active {color:#1675E8;font-weight:600;}
.shell .ledger-views button.active:after {content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#1675e8;border-radius:3px 3px 0 0;}
.shell .ledger-views button.active span {background:#eaf2ff;color:#1675e8;}
.shell .ledger-advanced {margin:0 24px;border-bottom:1px solid #e7edef;}
.shell .ledger-advanced summary {padding:12px 0;font-size:12px;cursor:pointer;color:#246b93;font-weight:500;}
.shell .ledger-advanced summary span {font-size:11px;color:#81939d;margin-left:12px;font-weight:400;}
.shell .ledger-advanced form>div {display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:14px;}
.shell .ledger-advanced form label,.shell .ledger-save-view label {display:grid;gap:7px;font-size:12px;color:#536e7d;}
.shell .ledger-advanced input,.shell .ledger-advanced select,.shell .ledger-save-view input {width:100%;min-width:0;height:36px;padding:6px 9px;border:1px solid #c5d6df;background:white;border-radius:5px;font-size:13px;}
.shell .ledger-advanced footer {display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:14px 0;}
.shell .ledger-advanced [data-ledger-filter-error] {color:#a93732;font-size:12px;margin-right:auto;}
.shell .ledger-save-view {margin:0 24px 16px;padding:16px;display:flex;gap:12px;align-items:flex-end;background:#f5f9fb;border:1px solid #dce7ed;border-radius:6px;flex-wrap:wrap;}
.shell .ledger-save-view[hidden] {display:none;}
.shell .ledger-save-view>span {font-size:11px;color:#667e8b;max-width:260px;line-height:1.8;}
.shell .ledger-feedback:not(:empty) {padding:12px 24px;background:#f0f8f5;color:#28725e;font-size:12px;}
.shell .record-workspace .filter-panel {display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(120px,.8fr) minmax(120px,1fr) auto;gap:16px;align-items:end;padding:18px 24px;margin:0;background:#fff;border:0;border-radius:0;}
.shell .record-workspace .filter-panel label {display:grid;gap:7px;min-width:0;}
.shell .record-workspace .filter-panel .field-label {font-size:11px;color:#6c8190;font-weight:500;}
.shell .record-workspace .filter-panel input,.shell .record-workspace .filter-panel select {height:38px;font-size:13px;border:1px solid #cbd9e1;border-radius:5px;background:white;padding:8px 10px;min-width:0;}
.shell .record-workspace .filter-panel input[readonly] {border-color:transparent;background:#f6f8f9;font-size:12px;color:#6e838e;}
.shell .record-workspace .filter-panel button {height:38px;font-size:12px;}
.shell .record-action-bar {display:block;margin:0;padding:0 24px;border:0;background:#fff;}
.shell .ledger-create-actions {display:flex;gap:8px;align-items:center;padding:0 0 16px;flex-wrap:wrap;}
.shell .ledger-create-actions button {font-size:12px;min-height:34px;}
.shell .ledger-create-actions .record-count {font-size:12px;color:#68818e;margin-left:auto;order:3;}
.shell .ledger-current-actions {position:relative;margin-left:auto;max-width:400px;}
.shell .ledger-current-actions summary {cursor:pointer;font-size:12px;line-height:1.6;color:#557080;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px;padding:6px 10px;border:1px solid #d9e3e8;border-radius:5px;}
.shell .ledger-current-menu {position:absolute;z-index:50;top:100%;right:0;min-width:240px;max-width:360px;padding:10px;display:flex;flex-direction:column;gap:7px;background:#fff;border:1px solid #cedee5;border-radius:7px;box-shadow:0 14px 35px #102d4026;}
.shell .ledger-batch-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eff6ff;border:1px solid #cfe2fa;border-radius:6px;padding:12px 14px;margin-bottom:14px;}
.shell .ledger-batch-actions button {font-size:12px;min-height:32px;}
.shell .ledger-selection-scope {width:100%;font-size:12px;font-weight:600;color:#195b99;margin-bottom:2px;}
.shell .ledger-table-tools {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;border-top:1px solid #edf1f3;background:#fff;}
.shell .ledger-column-count {font-size:11px;color:#7a8e99;}
.shell .ledger-table-settings {display:flex;gap:8px;}
.shell .ledger-table-scroll {border-radius:0;border-right:0;border-left:0;margin:0;max-width:100%;overflow:auto;scrollbar-width:thin;}
.shell table.ledger-table {border-collapse:separate;border-spacing:0;width:100%;min-width:0;table-layout:fixed;font-size:13px;}
.shell .ledger-table tr>[hidden] {display:none!important;}
.shell .ledger-table th {background:#f5f8fa!important;color:#536c7d;font-size:12px;font-weight:500;border-bottom:1px solid #dce7ed;padding:12px 16px;vertical-align:middle;}
.shell .ledger-table td {background:#fff;border-bottom:1px solid #eaf0f3;padding:16px;vertical-align:middle;line-height:1.7;color:#365467;white-space:normal;overflow-wrap:anywhere;}
.shell .ledger-table tbody tr:hover>td {background:#f8fbfd;}
.shell .ledger-table tbody tr.selected>td {background:#f7fafc;}
.shell .ledger-table tbody tr.multi-selected>td {background:#edf5ff;}
.shell .ledger-table td:first-child,.shell .ledger-table th:first-child {box-shadow:none;}
.shell .ledger-table .select-column {width:42px!important;min-width:42px!important;max-width:42px!important;padding:12px!important;}
.shell .ledger-table th.ledger-actions-cell,.shell .ledger-table td.ledger-actions-cell {width:144px!important;min-width:144px!important;max-width:144px!important;position:sticky;right:0;border-left:1px solid #e6eef2;z-index:2;}
.shell .ledger-table td.ledger-actions-cell {background:#fff;}
.shell .ledger-table .ledger-primary-cell {font-weight:500;}
.shell .ledger-table .record-name-link {font-size:13px;line-height:1.6;color:#176ab5;font-weight:600;white-space:normal;text-align:left;overflow-wrap:anywhere;}
.shell .ledger-record-id {display:block;font-size:10px;color:#8a9aa5;margin-top:5px;font-weight:400;letter-spacing:.3px;}
.shell .ledger-number {font-variant-numeric:tabular-nums;}
.shell .ledger-table td.ledger-number {text-align:right;}
.shell .ledger-table th.ledger-number .brand-column-sort {justify-content:flex-end;}
.shell .ledger-table[data-density=compact] td {padding-top:9px;padding-bottom:9px;font-size:12px;}
.shell .ledger-table[data-density=compact] .ledger-record-id {display:none;}
.shell .ledger-table .brand-column {min-width:0;}
.shell .ledger-table .brand-column-sort {font-size:12px;}
.shell .ledger-table .brand-column-sort>span:first-child {white-space:normal;}
.shell .ledger-table .row-actions {display:flex;flex-wrap:wrap;gap:5px;}
.shell .ledger-table .row-actions>.mini {white-space:normal;font-size:11px;padding:4px 7px;}
.shell .table-pagination {border-top:1px solid #e3ebef;padding:12px 24px;margin:0;background:#fff;display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;font-size:12px;}
.shell .table-pagination>span {margin-right:auto;color:#6c8290;}
.shell .table-pagination button {font-size:12px;min-height:30px;padding:5px 11px;}
.shell .table-pagination label {display:flex;align-items:center;gap:6px;color:#66808e;font-size:11px;}
.shell .table-pagination select {border:1px solid #d4e0e6;height:30px;border-radius:4px;background:white;font-size:12px;}
.shell .ledger-columns-panel {position:fixed;inset:0;margin:auto;width:min(540px,calc(100vw - 32px));max-height:min(78vh,760px);overflow:auto;padding:20px;border:1px solid #cfdce4;border-radius:10px;background:#fff;color:#102d40;box-shadow:0 24px 80px #102d4033;}
.shell .ledger-columns-panel::backdrop {background:#102d4033;}
.shell .ledger-columns-panel header {display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e0e9ee;padding-bottom:14px;margin-bottom:8px;}
.shell .ledger-columns-panel strong {font-size:17px;}
.shell .ledger-columns-panel p {font-size:12px;color:#6a8290;margin:7px 0 0;}
.shell .ledger-column-option {display:flex;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f3;align-items:center;}
.shell .ledger-column-option label {display:flex;gap:10px;align-items:center;flex:1;font-size:13px;min-width:0;}
.shell .ledger-column-option input {width:15px;height:15px;flex-shrink:0;}
.shell .ledger-column-option select {height:32px;width:77px;padding:4px;border:1px solid #d4e0e6;border-radius:4px;font-size:12px;background:white;}
.shell .ledger-column-option button {padding:4px 9px;min-height:30px;}
.shell .ledger-columns-panel footer {display:flex;justify-content:flex-end;gap:8px;padding-top:16px;}
.shell .ledger-columns-panel footer button {font-size:12px;}
.shell .ledger-columns-panel small {display:block;font-size:11px;color:#378676;margin-top:12px;}
.shell .ledger-row-menu {position:fixed;margin:0;width:200px;max-height:250px;overflow:auto;padding:8px;border:1px solid #cfdde5;border-radius:7px;background:white;box-shadow:0 12px 35px #102d4026;}
.shell .ledger-row-menu:popover-open {display:flex;flex-direction:column;gap:5px;}
.shell .ledger-row-menu button {width:100%;text-align:left;padding:8px 10px;font-size:12px;}
.shell .ledger-row-menu .danger-mini {color:#b14d47;}
.record-detail-drawer.ledger-detail-wide {width:min(1080px,calc(100vw - 48px));}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields {display:grid;grid-template-columns:1fr;gap:24px;width:100%;}
.record-detail-drawer.ledger-detail-wide .ledger-detail-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields h3 {font-size:13px;font-weight:600;color:#294a60;padding:0 0 10px;margin:0;border-bottom:1px solid #e0e8ed;}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields dl {margin:0;}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields dl>div {display:grid;grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr);gap:18px;padding:12px 0;border-bottom:1px solid #eff3f5;font-size:13px;line-height:1.8;}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields dt {color:#708793;}
:is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields dd {margin:0;color:#254359;overflow-wrap:anywhere;}
.record-detail-drawer .detail-head h2 {font-size:23px;line-height:1.5;}
.record-detail-drawer .detail-body>.field-grid {gap:24px;}
.record-detail-drawer .tabs {position:sticky;top:0;background:#fff;z-index:3;border-bottom:1px solid #e3eaf0;}
.shell .ledger-empty-actions {display:flex;justify-content:center;margin:12px 0 24px;}
@media(max-width:1100px){
 .shell .ledger-heading {align-items:flex-start;flex-wrap:wrap;}
 .shell .ledger-advanced form>div {grid-template-columns:repeat(3,minmax(100px,1fr));}
 .shell .record-workspace .filter-panel {grid-template-columns:minmax(180px,1.5fr) minmax(100px,1fr) auto;}
 .shell .record-workspace .filter-panel label:has(input[readonly]) {display:none;}
 .shell .ledger-current-actions {max-width:270px;}
}
@media(max-width:640px){
 .shell .ledger-heading {padding:16px;gap:14px;}
 .shell .ledger-heading strong {font-size:17px;}
 .shell .ledger-heading .ledger-scope {width:100%;}
 .shell .ledger-personal {width:100%;}
 .shell .ledger-personal label {flex:1;min-width:0;}
 .shell .ledger-personal select {width:100%;}
 .shell .ledger-views {padding:0 16px;gap:20px;}
 .shell .ledger-advanced {margin:0 16px;}
 .shell .ledger-advanced summary span {display:none;}
 .shell .ledger-advanced form>div {grid-template-columns:repeat(2,minmax(0,1fr));}
 .shell .record-workspace .filter-panel {padding:16px;grid-template-columns:minmax(0,1fr) auto;gap:12px;}
 .shell .record-workspace .filter-panel label:first-child {grid-column:1/-1;}
 .shell .record-action-bar {padding:0 16px;}
 .shell .ledger-current-actions {max-width:100%;margin-left:0;}
 .shell .ledger-current-actions summary {max-width:270px;}
 .shell .ledger-create-actions .record-count {width:100%;}
 .shell .ledger-table-tools {padding:10px 16px;}
 .shell .table-pagination {padding:12px 16px;}
 .shell .table-pagination>span {width:100%;}
 .shell .ledger-table td.ledger-actions-cell,.shell .ledger-table th.ledger-actions-cell {position:static;}
 .shell .ledger-save-view {margin:0 16px 16px;}
 .shell .ledger-column-option {gap:4px;}
 .shell .ledger-column-option label {font-size:12px;}
 .record-detail-drawer.ledger-detail-wide {width:100vw;}
 .record-detail-drawer.ledger-detail-wide .ledger-detail-fields {grid-template-columns:1fr;}
 :is(.record-detail-drawer,.shell .brand-product-review) .ledger-detail-fields dl>div {gap:12px;}
}
@media(prefers-reduced-motion:reduce){.shell .ledger-views button,.shell .ledger-table td {transition:none;}}
.shell .ledger-local-search {width:220px;min-width:140px;height:34px;padding:6px 10px;border:1px solid #cbd9e1;border-radius:5px;font-size:12px;background:white;}
.shell .ledger-local-status {height:34px;max-width:180px;padding:5px 10px;border:1px solid #cbd9e1;border-radius:5px;font-size:12px;background:white;}
.shell .ledger-table-tools:has(.ledger-local-search) {flex-wrap:wrap;}
.shell .ledger-table-tools:has(.ledger-local-search) .ledger-column-count {margin-left:auto;}
.shell .ledger-local-pagination {padding:12px 24px;border-top:1px solid #e4ecf0;display:flex;align-items:center;gap:8px;font-size:12px;color:#728792;}
.shell .ledger-local-pagination>span {margin-right:auto;}
.shell .ledger-local-pagination[hidden],.shell .ledger-local-empty[hidden],.shell .ledger-table tr[hidden] {display:none!important;}
.shell .ledger-local-empty {text-align:center;padding:24px 16px;color:#718896;font-size:13px;}
.shell .ledger-table tr>td[colspan] {width:auto!important;max-width:none!important;min-width:0!important;position:static;text-align:center;padding:28px;color:#7c8d98;}
@media(max-width:640px){.shell .ledger-local-search {width:100%;}.shell .ledger-local-pagination{padding:12px 16px;}.shell .ledger-local-status{max-width:140px;}}
.shell .ledger-personal .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:640px){
 .shell .main:has(.record-workspace)>.page-head {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px;}
 .shell .main:has(.record-workspace)>.page-head>div:first-child {flex:1;min-width:210px;}
 .shell .main:has(.record-workspace)>.page-head .page-actions {width:auto;margin:0;}
 .shell .ledger-heading strong {font-size:15px;}
 .shell .ledger-heading .ledger-eyebrow {display:none;}
 .shell .ledger-heading .ledger-scope {font-size:11px;}
 .shell .ledger-personal {gap:8px;}
 .shell .ledger-personal select,.shell .ledger-personal button {height:34px;min-height:34px;}
 .shell .ledger-heading {padding:14px 16px;gap:10px;}
 .shell .ledger-views button {padding:10px 0 12px;}
}
@media(max-width:640px){
 .shell .record-workspace table[data-entity-table].ledger-table :is(.record-name-column,.select-column,.ledger-actions-cell) {position:static!important;left:auto;right:auto;box-shadow:none;}
 .shell .record-workspace>.board>.record-action-bar {position:static;}
 .shell .ledger-table-scroll:before {content:"左右滑动查看完整列，点击名称打开详情";}
}
