/* Node business layouts, scoped to app components. */
@scope (.node-native) {
/* after-sale.css */
/* Dedicated responsive layout, also used in the unified admin iframe. */
#after-sale-editor{width:min(960px,calc(100vw - 32px));box-sizing:border-box;max-height:90vh;overflow:auto;padding:24px}
#after-sale-editor form,#after-sale-procure-form,#after-sale-reconcile-form{display:grid;gap:16px;min-width:0}
#after-sale-editor label:not(.after-sale-check),#after-sale-reconcile-form label:not(.after-sale-check){display:grid;gap:8px;min-width:0;margin:0}
#after-sale-editor textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;padding:12px;border:1px solid #d6e2ef;border-radius:9px;color:#1f3c5a;font-family:inherit;font-size:14px;line-height:1.6}
#after-sale-ips{font-family:ui-monospace,monospace}
.after-sale-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0;color:#526d8e;font-size:13px}
.after-sale-toolbar button{padding:10px 14px;white-space:normal}
.after-sale-check{display:flex!important;align-items:center;gap:9px!important;margin:0!important;font-size:14px;line-height:1.5;color:#36536f;cursor:pointer}
.after-sale-check input{width:17px!important;height:17px;flex:none;margin:0;padding:0}
.after-sale-cards{display:grid;gap:10px;min-width:0}
.after-sale-node{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;padding:16px;border:1px solid #dce6f1;border-radius:12px;background:#fff;min-width:0}
.after-sale-node>input{width:18px;height:18px;margin:4px 0 0}
.after-sale-node strong{display:block;color:#193758;font-size:15px;overflow-wrap:anywhere}
.after-sale-node p{margin:6px 0 0;font-size:13px;color:#657d96;line-height:1.6;overflow-wrap:anywhere}
.after-sale-node code{font-size:12px;overflow-wrap:anywhere;white-space:normal}
.after-sale-node .enterprise-actions{justify-content:flex-end;max-width:230px}
.after-sale-node.selected{border-color:#3c7bd0;background:#f4f8ff}
.after-sale-node .after-sale-error{color:#b44848}
#after-sale-match-results{max-height:38vh;overflow-y:auto;overflow-x:hidden;min-height:0}
.after-sale-dialog-footer{position:sticky;bottom:-24px;background:#fff;border-top:1px solid #e3ebf4;padding:14px 0;display:flex;align-items:center;gap:12px;justify-content:space-between}
.after-sale-dialog-footer .primary-action{width:auto;flex:none}
.after-sale-summary{padding:16px 20px;border:1px solid #dce8f7;border-radius:12px;background:#edf5ff;color:#36536f;line-height:1.6}
.after-sale-section-title{font-size:18px;margin:28px 0 12px;color:#193758}
#after-sale-table .admin-table{min-width:0;table-layout:fixed}#after-sale-table td,#after-sale-table th{overflow-wrap:anywhere;white-space:normal}
#after-sale-procure-dialog,#after-sale-reconcile-dialog{max-height:90vh;overflow:auto;box-sizing:border-box}
@media(max-width:650px){#after-sale-editor{padding:16px;width:calc(100vw - 20px)}.after-sale-node{grid-template-columns:auto minmax(0,1fr);padding:12px;gap:10px}.after-sale-node .enterprise-actions{grid-column:2;justify-content:flex-start}.after-sale-dialog-footer{bottom:-16px;flex-direction:column;align-items:stretch}.after-sale-dialog-footer .primary-action{width:100%}#after-sale-table .admin-table{min-width:600px}}
#after-sale-editor[open]{display:flex;flex-direction:column;overflow:hidden}
#after-sale-editor>.modal-head,#after-sale-editor>.modal-desc{flex:none}
#after-sale-editor .modal-head h2{font-size:23px;margin:0 0 12px}
#after-sale-editor>.modal-desc{font-size:13px;margin:0 0 14px}
#after-sale-editor form{min-height:0;overflow:auto;gap:10px}
#after-sale-editor .after-sale-toolbar{margin:2px 0}
#after-sale-editor .message{margin:2px 0;font-size:13px}
#after-sale-editor .message:empty{display:none}
#after-sale-editor #after-sale-ips{height:92px}
#after-sale-editor #after-sale-reason{height:68px}
#after-sale-match-results .after-sale-node{padding:12px}
#after-sale-match-results .after-sale-node p{margin-top:3px}
#after-sale-editor .after-sale-dialog-footer{bottom:0;padding:12px 0 0}
.after-sale-toolbar button:not(.solid-button):not(.table-action){border:1px solid #ccdaea;border-radius:8px;background:#fff;color:#284e75;font-size:13px;font-weight:600}
@media(min-width:651px){#after-sale-match-results .after-sale-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px}#after-sale-match-results .after-sale-identity p{margin:0}#after-sale-match-results .after-sale-identity strong{grid-column:1;grid-row:1}#after-sale-match-results .after-sale-identity p:nth-child(2){grid-column:2;grid-row:1}#after-sale-match-results .after-sale-identity p:nth-child(3){grid-column:1;grid-row:2}#after-sale-match-results .after-sale-identity p:nth-child(4){grid-column:2;grid-row:2}#after-sale-match-results .after-sale-identity p:nth-child(5){grid-column:1/-1}#after-sale-editor #after-sale-ips{height:66px}#after-sale-items .after-sale-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 16px}#after-sale-items .after-sale-identity p{margin:0}#after-sale-items .after-sale-identity strong{grid-column:1/-1}#after-sale-items .after-sale-identity p:last-child{grid-column:1/-1}}
@media(min-width:651px){#after-sale-editor{padding:18px}#after-sale-editor .modal-head h2{margin-bottom:8px}#after-sale-editor>.modal-desc{margin-bottom:8px}#after-sale-editor form{gap:8px}#after-sale-editor #after-sale-reason{height:54px}#after-sale-editor .after-sale-dialog-footer{padding-top:8px}#after-sale-editor .primary-action{padding:12px 16px}}
#after-sale-delivery-dialog{width:min(820px,calc(100vw - 24px));max-height:90vh;overflow:auto}
.after-sale-customer-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;padding:16px;background:#f2f7fd;border:1px solid #dce6f1;border-radius:9px}
#after-sale-delivery-content>.enterprise-actions{margin-top:14px;gap:10px}
.after-sale-client-badge{font-size:13px;color:#187654;margin-top:12px}

#order-dialog .detail-section > a.table-action{display:inline-block;margin:4px 8px 8px 0;padding:8px 12px;border-radius:8px;background:#eaf3ff;color:#1765ac;text-decoration:none;font-size:13px}

/* enterprise-layout.css */
/* Keep customer-group actions beside their context, within the available width. */
[data-admin-page="enterprise"] .page-intro{margin-bottom:16px}
[data-admin-page="enterprise"] .page-actions{flex-wrap:wrap;gap:8px}
[data-admin-page="enterprise"] .enterprise-stats{gap:10px;margin-bottom:12px}
[data-admin-page="enterprise"] .enterprise-stats>div{padding:12px 16px;gap:6px}
[data-admin-page="enterprise"] .enterprise-stats strong{font-size:21px}
[data-admin-page="enterprise"] .admin-section-title{margin-top:24px}
[data-admin-page="enterprise"] .directory-toolbar{flex-wrap:wrap;gap:10px;margin:12px 0}
[data-admin-page="enterprise"] .directory-search{min-width:0;flex:1}
[data-admin-page="enterprise"] .directory-search input{width:100%;min-width:0;box-sizing:border-box}
#enterprise-accounts{overflow:visible;min-width:0}
#enterprise-accounts .admin-table,#enterprise-orders .admin-table{width:100%;min-width:0;table-layout:fixed}
#enterprise-accounts .admin-table th,#enterprise-accounts .admin-table td,#enterprise-orders .admin-table th,#enterprise-orders .admin-table td{padding:14px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
#enterprise-accounts .admin-table th:nth-child(1){width:34%}
#enterprise-accounts .admin-table th:nth-child(2){width:22%}
#enterprise-accounts .admin-table th:nth-child(3){width:22%}
#enterprise-accounts .admin-table th:nth-child(4){width:22%}
#enterprise-accounts th:first-child,#enterprise-accounts td:first-child{position:static}
#enterprise-accounts .enterprise-group-identity{min-width:0;max-width:100%;gap:6px}
#enterprise-accounts .enterprise-group-name{min-width:0;font-size:15px;overflow-wrap:anywhere}
#enterprise-accounts .enterprise-price-stack,#enterprise-accounts .enterprise-credit-stack,#enterprise-accounts .enterprise-ip-stack{min-width:0;gap:4px}
#enterprise-accounts .enterprise-credit-stack{border-top:1px solid #e5edf5;padding-top:8px;margin-top:4px}
.enterprise-directory-stack{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:12px;line-height:1.5;min-width:0}
.enterprise-directory-stack>small{color:#75879e}
.enterprise-directory-money{display:grid;gap:10px;font-size:12px;min-width:0}
.enterprise-directory-money>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.enterprise-directory-money small{color:#75879e;font-size:11px}
.enterprise-directory-money strong{font-size:14px;font-variant-numeric:tabular-nums}
#enterprise-accounts .enterprise-directory-money strong{white-space:normal}
#enterprise-accounts .customer-id{max-width:100%;min-width:0}
.enterprise-primary-actions{margin-top:8px;gap:6px;align-items:flex-start;max-width:100%!important}
#enterprise-accounts .table-action,#enterprise-orders .table-action{min-height:36px;padding:8px 11px;white-space:normal;line-height:1.4;cursor:pointer}
.enterprise-more-actions{font-size:12px;max-width:100%;min-width:0}
.enterprise-more-actions>summary{list-style:none;cursor:pointer;min-height:36px;box-sizing:border-box;display:flex;align-items:center;gap:6px;color:#4e6c8b;border:1px solid #dce5ef;background:#f7fafd;border-radius:7px;padding:8px 11px;font-weight:700;user-select:none}
.enterprise-more-actions>summary::-webkit-details-marker{display:none}
.enterprise-more-actions>summary::after{content:'⌄';font-size:13px}
.enterprise-more-actions[open]>summary::after{content:'⌃'}
.enterprise-more-actions>.enterprise-actions{margin-top:7px;gap:6px}
.enterprise-more-actions>summary:hover{border-color:#90b3dc;background:#edf5ff}
.enterprise-more-actions>summary:focus-visible,#enterprise-accounts .table-action:focus-visible,#enterprise-orders .table-action:focus-visible{outline:3px solid #8bbaff;outline-offset:2px}
#enterprise-orders .admin-table th:nth-child(1){width:5%}
#enterprise-orders .admin-table th:nth-child(2){width:34%}
#enterprise-orders .admin-table th:nth-child(3){width:31%}
#enterprise-orders .admin-table th:nth-child(4){width:30%}
#enterprise-orders .admin-table td:last-child,#enterprise-orders .admin-table th:last-child{position:static;box-shadow:none;min-width:0;max-width:none;background:inherit}
#enterprise-orders .finder-identity,#enterprise-orders .finder-nodes{min-width:0;max-width:100%;gap:6px}
#enterprise-orders .finder-id{flex-wrap:wrap;max-width:100%}
#enterprise-orders .finder-id code{max-width:100%;overflow-wrap:anywhere}
#enterprise-orders .finder-nodes>.finder-stack{border-top:1px solid #e6edf5;margin-top:6px;padding-top:8px;gap:4px}
#enterprise-orders .finder-money>div{white-space:normal;flex-wrap:wrap;gap:8px}
#enterprise-orders .finder-money>.finder-stack{display:flex;flex-direction:row;gap:6px;border-top:1px solid #e6edf5;margin-top:6px;padding-top:8px}
#enterprise-orders .finder-money>.finder-stack>small{flex-basis:100%;overflow-wrap:anywhere}
#enterprise-orders .enterprise-primary-actions{flex-direction:row;align-items:flex-start}
#enterprise-orders .merge-checkbox{min-width:0;gap:5px;align-items:center}
#enterprise-orders .merge-checkbox small{overflow-wrap:anywhere;font-size:10px}
.console-group-drawer{display:flex;flex-direction:column;overflow:hidden;padding:16px;inset:64px 16px 16px max(264px,14vw)}
.console-group-drawer .console-drawer-bar{position:static;flex-shrink:0;padding:0 0 10px}
.console-group-drawer #enterprise-group-workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin-top:10px;padding:14px;box-shadow:none;container-type:inline-size}
.console-group-drawer .enterprise-group-heading{gap:12px;padding-bottom:10px;flex-shrink:0;align-items:flex-start}
.console-group-drawer .enterprise-group-heading>div:first-child{min-width:0}
.console-group-drawer .enterprise-group-heading h2{font-size:19px}
.console-group-drawer .enterprise-group-tools{max-width:38%;gap:6px}
.console-group-drawer .enterprise-group-tools .table-action{white-space:normal}
.console-group-drawer .enterprise-group-tools p{margin:0;font-size:11px}
.console-group-drawer .enterprise-group-heading .ledger-contact{padding:5px 8px;margin-top:5px}
.console-group-drawer .enterprise-ledger-prices{margin-top:6px;gap:5px}
.console-group-drawer .enterprise-ledger-prices span{padding:3px 7px;font-size:11px}
.console-group-drawer .enterprise-group-metrics{flex-shrink:0;gap:6px;margin:10px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
.console-group-drawer .enterprise-group-metrics>div{padding:8px;gap:3px}
.console-group-drawer .enterprise-group-metrics strong{font-size:15px;overflow-wrap:anywhere}
.console-group-drawer .enterprise-group-metrics small{font-size:10px}
.console-group-drawer .enterprise-group-tabs{flex-shrink:0;flex-wrap:wrap;overflow:visible;gap:2px;margin-bottom:8px}
.console-group-drawer .enterprise-group-tabs button{padding:9px 12px}
.console-group-drawer .directory-toolbar{flex-shrink:0;display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.console-group-drawer #enterprise-order-toolbar .directory-search{min-width:0;flex:1 1 220px}
.console-group-drawer .directory-select{min-width:0;flex:0 1 145px}
.console-group-drawer .directory-search input,.console-group-drawer .directory-select select{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.console-group-drawer .enterprise-merge-bar{flex-shrink:0;gap:8px;padding:10px 12px;margin:0 0 10px;flex-wrap:wrap}
.console-group-drawer .enterprise-merge-bar .enterprise-actions{flex-wrap:wrap;gap:6px}
.console-group-drawer #enterprise-group-workspace>.admin-table-wrap{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain}
.console-group-drawer #enterprise-group-workspace>.admin-table-wrap[hidden]{display:none!important}
@container(max-width:700px){
 #enterprise-orders .admin-table thead{display:none}
 #enterprise-orders .admin-table,#enterprise-orders .admin-table tbody{display:block}
 #enterprise-orders .admin-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e1eaf4;padding:12px;gap:12px}
 #enterprise-orders .admin-table td{display:block;padding:0;border:0;min-width:0}
 #enterprise-orders .admin-table td:nth-child(1){grid-column:1/-1}
 #enterprise-orders .admin-table td:nth-child(2){grid-column:1/-1}
 #enterprise-orders .admin-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:#7d8fa5;margin-bottom:7px}
 #enterprise-orders .admin-table td:nth-child(1)::before{display:none}
 #enterprise-orders .merge-checkbox{flex-direction:row}
}
@media(max-width:950px){
 #enterprise-accounts .admin-table thead{display:none}
 #enterprise-accounts .admin-table,#enterprise-accounts .admin-table tbody{display:block}
 #enterprise-accounts .admin-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;border-bottom:1px solid #e2eaf3}
 #enterprise-accounts .admin-table td{display:block;padding:0;border:0;min-width:0;background:transparent}
 #enterprise-accounts .admin-table td:first-child{grid-column:1/-1}
 #enterprise-accounts .admin-table td:last-child{grid-column:1/-1}
 #enterprise-accounts .admin-table td:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:#7d8fa5;margin-bottom:8px}
 #enterprise-accounts .admin-table tr.enterprise-selected{background:#eef5ff}
 #enterprise-accounts .enterprise-directory-money{max-width:100%}
 #enterprise-accounts .enterprise-directory-stack:has(.enterprise-price-stack){flex-direction:row;flex-wrap:wrap;gap:14px}
 #enterprise-accounts .enterprise-credit-stack{border-top:0;border-left:1px solid #e5edf5;padding:0 0 0 14px;margin:0}
}
@media(max-width:800px){.console-group-drawer{inset:54px 6px 6px;padding:12px}.console-group-drawer #enterprise-group-workspace{padding:10px}.console-group-drawer .enterprise-group-tools{max-width:40%}}
@media(max-width:500px){
 [data-admin-page="enterprise"] .enterprise-stats{gap:6px}
 [data-admin-page="enterprise"] .enterprise-stats>div{padding:10px 8px}
 [data-admin-page="enterprise"] .enterprise-stats strong{font-size:16px;overflow-wrap:anywhere}
 [data-admin-page="enterprise"] .directory-select{flex:1 1 140px}
 .console-group-drawer .enterprise-group-heading{display:block}
 .console-group-drawer .enterprise-group-tools{max-width:100%;margin-top:8px;justify-content:flex-start}
 .console-group-drawer .enterprise-group-tools p{text-align:left}
 .console-group-drawer .enterprise-group-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
 .console-group-drawer .enterprise-group-metrics>div{padding:5px}
 .console-group-drawer .enterprise-group-metrics strong{font-size:12px}
}
@media print{.console-group-drawer{position:static;overflow:visible}.console-group-drawer #enterprise-group-workspace{overflow:visible}.console-group-drawer #enterprise-group-workspace>.admin-table-wrap{overflow:visible}}
[data-admin-page="enterprise"] #enterprise-message:empty{display:none}
[data-admin-page="enterprise"] #enterprise-bot-status{font-size:12px;min-height:0;margin:8px 0 12px;line-height:1.6}
[data-admin-page="enterprise"] .admin-section-title{margin:16px 0 10px}
[data-admin-page="enterprise"] .admin-section-title .eyebrow{display:none}
[data-admin-page="enterprise"] .admin-section-title h2{margin:0;font-size:18px}
[data-admin-page="enterprise"] .directory-toolbar{padding:10px 12px}
[data-admin-page="enterprise"] .directory-toolbar label{margin:0;font-size:11px}
[data-admin-page="enterprise"] .directory-toolbar input,[data-admin-page="enterprise"] .directory-toolbar select{height:36px;margin-top:6px;padding:0 10px}
#enterprise-accounts .directory-id{min-width:0;max-width:100%}
#enterprise-accounts .directory-id code{min-width:0;max-width:calc(100% - 48px)}
#enterprise-accounts .directory-id .table-action{min-height:26px;padding:4px 7px;flex:none}
@media(max-width:560px){[data-admin-page="enterprise"] .enterprise-stats{grid-template-columns:repeat(3,minmax(0,1fr))}[data-admin-page="enterprise"] .directory-toolbar{flex-direction:row}[data-admin-page="enterprise"] .directory-count{width:100%;padding:0}}
.console-group-drawer{inset:16px 16px 16px max(264px,14vw)}
.console-group-drawer .enterprise-group-heading h2{margin:0 0 4px}
.enterprise-ledger-meta{margin-top:6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.enterprise-ledger-meta>summary{cursor:pointer;color:#527496;padding:4px 0;min-height:28px}
.enterprise-ledger-meta>p{margin-top:8px!important}
.console-group-drawer .enterprise-group-metrics{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.console-group-drawer .enterprise-group-metrics>div{padding:7px 6px}
.console-group-drawer .enterprise-group-metrics strong{font-size:13px}
.console-group-drawer .directory-toolbar{padding:8px 10px;gap:7px}
.console-group-drawer .enterprise-merge-bar{padding:8px 10px}
.console-group-drawer #enterprise-group-workspace{padding:10px}
@container(max-width:700px){.enterprise-group-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:800px){.console-group-drawer{inset:8px 6px;padding:10px}.console-group-drawer .enterprise-group-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.console-group-drawer .enterprise-group-tabs button{padding:8px 9px}.console-group-drawer .directory-toolbar label{font-size:10px}}
#enterprise-orders .admin-table th:nth-child(1){width:7%;padding:10px 6px}
#enterprise-orders .admin-table th:nth-child(2){width:33%}
#enterprise-orders .admin-table td:nth-child(1){padding:14px 6px}
#enterprise-orders .admin-table th .merge-checkbox{display:flex;flex-direction:row;justify-content:flex-start;gap:4px}
#enterprise-orders .admin-table th .merge-checkbox span{white-space:nowrap;font-size:11px}
#enterprise-orders .admin-table .merge-checkbox input{width:18px;height:18px;min-width:18px;margin:0}
#enterprise-orders .finder-identity .enterprise-primary-actions{margin-top:2px;margin-bottom:4px}
body.console-group-open{overflow:hidden}
/* Small screens scroll the detail panel itself instead of clipping the orders. */
@media(max-width:800px){
 .console-group-drawer{display:block;overflow-y:auto;overscroll-behavior:contain}
 .console-group-drawer .console-drawer-bar{position:sticky;top:-10px;z-index:4;background:#fff;padding:8px 0 10px}
 .console-group-drawer #enterprise-group-workspace{display:block;overflow:visible;height:auto;min-height:0}
 .console-group-drawer #enterprise-group-workspace>.admin-table-wrap{max-height:55vh;min-height:180px;overflow:auto}
}
@container(max-width:700px){
 #enterprise-orders .admin-table tbody tr{grid-template-columns:24px minmax(0,1fr);gap:10px}
 #enterprise-orders .admin-table td:nth-child(1){grid-column:1;grid-row:1;padding:0}
 #enterprise-orders .admin-table td:nth-child(2){grid-column:2;grid-row:1}
 #enterprise-orders .admin-table td:nth-child(2)::before{display:none}
 #enterprise-orders .admin-table td:nth-child(3),#enterprise-orders .admin-table td:nth-child(4){grid-column:1/-1}
 .console-group-drawer #enterprise-order-toolbar .directory-search{flex:1 1 180px}
 .console-group-drawer .directory-select{flex:0 1 112px}
 .console-group-drawer .directory-count{padding:2px;font-size:11px}
}
/* Ledger first: collapse the statistics and keep room for complete action rows. */
.enterprise-ledger-titlebar{flex-shrink:0;min-width:0;margin-bottom:6px}
.enterprise-ledger-titlebar h2{font-size:18px;line-height:1.4;color:#17334f;margin:0;overflow-wrap:anywhere}
.enterprise-ledger-overview{flex-shrink:0;border:1px solid #e2eaf4;border-radius:9px;margin-bottom:8px;background:#f8fbff;min-width:0}
.enterprise-ledger-overview>summary{cursor:pointer;padding:7px 10px;color:#577591;font-size:12px;font-weight:700;line-height:1.5}
.enterprise-ledger-overview>summary::after{content:'展开';float:right;color:#3976bd;font-size:11px}
.enterprise-ledger-overview[open]>summary::after{content:'收起'}
.enterprise-ledger-overview-content{max-height:28vh;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px;background:#fff;border-top:1px solid #e2eaf4;border-radius:0 0 9px 9px}
.console-group-drawer .enterprise-ledger-overview-content .enterprise-group-metrics{margin:8px 0 0}
.console-group-drawer .enterprise-ledger-overview-content .enterprise-group-heading{padding-bottom:8px}
.console-group-drawer .enterprise-ledger-overview-content .ledger-contact{margin-top:0}
.console-group-drawer .enterprise-group-tabs{margin-bottom:5px}
.console-group-drawer .enterprise-group-tabs button{padding:7px 10px}
.console-group-drawer #enterprise-order-toolbar{margin:4px 0 7px;padding:6px 8px}
.console-group-drawer .enterprise-merge-bar{padding:6px 9px;margin-bottom:7px}
.console-group-drawer #enterprise-orders .admin-table td{padding:10px}
.console-group-drawer #enterprise-orders .finder-identity,.console-group-drawer #enterprise-orders .finder-nodes{gap:4px}
.console-group-drawer #enterprise-orders .finder-identity>strong{font-size:13px;line-height:1.45}
.console-group-drawer #enterprise-orders .finder-member{font-size:11px;line-height:1.4}
.console-group-drawer #enterprise-orders .finder-money{gap:4px}
.console-group-drawer #enterprise-orders .finder-money>.finder-stack{margin-top:4px;padding-top:6px;gap:4px}
.console-group-drawer #enterprise-orders .finder-money>.finder-stack>small{flex-basis:auto;line-height:1.4}
.console-group-drawer #enterprise-orders .finder-nodes>.finder-stack{margin-top:4px;padding-top:6px;gap:3px}
.console-group-drawer #enterprise-orders .enterprise-primary-actions{gap:5px}
.console-group-drawer #enterprise-orders .enterprise-primary-actions>.table-action{min-height:36px;padding:6px 8px;font-size:11px}
.console-group-drawer #enterprise-orders .finder-details>summary{font-size:11px;line-height:1.4;padding:4px 0}
#enterprise-orders:focus-visible{outline:2px solid #8bb5ea;outline-offset:2px}
@media print{.enterprise-ledger-overview-content{max-height:none;overflow:visible}}
.console-group-drawer .enterprise-ledger-titlebar{display:none}
.console-group-drawer .console-drawer-bar>strong{min-width:0;max-width:calc(100% - 90px);font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.console-group-drawer .console-drawer-bar>.table-action{flex:none}
.console-group-drawer #enterprise-orders .admin-table th:nth-child(2){width:40%}
.console-group-drawer #enterprise-orders .admin-table th:nth-child(3){width:25%}
.console-group-drawer #enterprise-orders .admin-table th:nth-child(4){width:28%}
.console-group-drawer #enterprise-orders .finder-money{gap:3px}
.console-group-drawer #enterprise-orders .finder-money small{margin:0}
.console-group-drawer #enterprise-orders .finder-money>.finder-stack>small:empty{display:none}
.console-group-drawer #enterprise-orders .finder-money>.finder-stack .status-pill{padding:3px 7px;font-size:11px;line-height:1.4}

.console-group-drawer #enterprise-orders .finder-nodes>small{margin:0}
.console-group-drawer #enterprise-orders .finder-nodes>.finder-stack{flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:6px;margin-top:2px;padding-top:4px}
.console-group-drawer #enterprise-orders .finder-nodes>.finder-stack>small{margin:0}
.console-group-drawer #enterprise-orders .finder-nodes>.finder-details>summary{padding:2px 0}

/* Discount review stays vertical and keeps the confirmation reachable. */
#enterprise-discount-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}
#enterprise-discount-dialog form{display:grid;gap:14px}
#enterprise-discount-dialog label{display:grid;gap:6px}
#enterprise-discount-dialog .check-field{display:flex;align-items:flex-start;gap:8px}
.discount-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.discount-inputs input,.discount-inputs select,#enterprise-discount-reason{width:100%;min-width:0;box-sizing:border-box}
.discount-order-list{display:grid;gap:8px;max-height:160px;overflow-y:auto;margin:12px 0}
.discount-order-card{display:grid;gap:5px;padding:12px;border:1px solid #dce5ef;border-radius:10px;overflow-wrap:anywhere;min-width:0}
.discount-order-card code{font-size:11px;white-space:normal}.discount-amount-note{display:block;color:#8b5e12;white-space:normal;overflow-wrap:anywhere}
.discount-history{margin-top:16px}.discount-history>div{display:grid;gap:8px;margin-top:10px}
#enterprise-discount-submit{position:sticky;bottom:0;z-index:1}
@media(max-width:540px){.discount-inputs{grid-template-columns:1fr}#enterprise-discount-dialog{padding:18px}.discount-order-list{max-height:130px}}
#enterprise-discount-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#enterprise-discount-summary>div{padding:12px;min-width:0;overflow-wrap:anywhere}
#enterprise-discount-dialog .check-field input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;min-width:18px;flex:0 0 18px;margin:3px 0;appearance:auto}
#enterprise-discount-dialog .message:not(.error){color:#526f8b}
#enterprise-discount-result{color:#137a61!important;background:#edf8f3;padding:10px;border-radius:8px}
#enterprise-discount-submit{box-shadow:0 -8px 0 #fff}
@media(max-width:540px){#enterprise-discount-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#enterprise-discount-summary>div{padding:10px}#enterprise-discount-dialog .message{font-size:12px;line-height:1.65}}

/* relay-selection.css */
#relay-selection-dialog{width:min(920px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px;box-sizing:border-box;overflow-y:auto}
#relay-selection-summary{white-space:pre-line;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.relay-selection-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.relay-selection-tools label{display:flex;align-items:center;gap:8px;font-size:13px}
#relay-selection-nodes{max-height:44vh;overflow-y:auto;border:1px solid #dce6f3;border-radius:10px;overscroll-behavior:contain}
.relay-selection-row{display:grid;grid-template-columns:20px minmax(0,1fr) 80px 115px;gap:12px;align-items:center;padding:12px;margin:0!important;border-bottom:1px solid #e4ebf5;font-size:13px}
.relay-selection-row:last-child{border-bottom:0}.relay-selection-row>input,.relay-selection-tools input{width:18px!important;height:18px!important;margin:0!important;min-width:18px}
.relay-selection-identity{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.relay-selection-identity small{font-size:12px;color:#71849b}.relay-selection-price{text-align:right;overflow-wrap:anywhere}.relay-selection-state{font-size:12px;color:#597895}
.relay-selection-request{padding:8px 10px;background:#f3f7fd;border-radius:8px;margin-top:8px;overflow-wrap:anywhere;font-size:12px}.relay-selection-request p{margin:0 0 5px}
.relay-selection-footer{position:sticky;bottom:-22px;background:#fff;padding:14px 0;margin-top:8px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce6f3}
#relay-selection-message{min-height:0;overflow-wrap:anywhere}#relay-selection-total{font-size:14px}
@media(max-width:560px){#relay-selection-dialog{padding:14px}.relay-selection-row{grid-template-columns:20px minmax(0,1fr);gap:8px}.relay-selection-state{grid-column:2}.relay-selection-price{grid-column:2;text-align:left}.relay-selection-footer{bottom:-14px}.relay-selection-footer button{width:100%}}
#relay-selection-dialog .modal-head{align-items:center;margin:0 0 10px;gap:12px}
#relay-selection-dialog .modal-head h2{font-size:22px;line-height:1.35;margin:0;min-width:0}
#relay-selection-dialog .modal-head .close-button{flex:none}
#relay-selection-dialog #relay-selection-summary{margin:8px 0 12px}
#relay-selection-submit{width:auto;min-height:44px;font-size:13px;padding:10px 16px}
#relay-selection-message{color:#597895;font-size:13px;line-height:1.6;margin:10px 0}
@media(max-width:560px){#relay-selection-dialog .modal-head h2{font-size:19px}#relay-selection-submit{width:100%}}

/* renewal-workbench.css */
.rw-modal{box-sizing:border-box;width:min(1160px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(850px,92dvh);max-height:92dvh;padding:0;border:1px solid #d8e4f1;border-radius:18px;color:#183454;background:#fff;overflow:hidden}.rw-modal[open]{display:flex;flex-direction:column}.rw-modal::backdrop{background:#10213991}.rw-modal *{box-sizing:border-box;min-width:0}.rw-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px 10px}.rw-head h2{font-size:22px;margin:0}.rw-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px 22px;border-bottom:1px solid #e4edf5}.rw-tabs [aria-current=page]{background:#1766b0;color:white}.rw-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 22px;overscroll-behavior:contain}.rw-message{margin:8px 22px;font-size:14px;color:#37618a;overflow-wrap:anywhere}.rw-message:empty{display:none}.rw-error{color:#ad432c!important}.rw-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.rw-tools label{display:flex;flex-direction:column;gap:5px;flex:1 1 170px;font-size:13px;font-weight:600}.rw-modal select,.rw-modal textarea{width:100%;padding:9px 12px;border:1px solid #c7d8e8;border-radius:9px;background:#fff;color:#183454;font:inherit}.rw-match{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:12px 0}.rw-match textarea{resize:vertical;max-height:120px}.rw-hint{font-size:13px;line-height:1.65;color:#6d8096;overflow-wrap:anywhere}.rw-list-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.rw-row{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(130px,190px);gap:12px;align-items:start;padding:14px;border:1px solid #dce7f0;border-radius:12px;margin:8px 0;background:#fbfdff;cursor:pointer}.rw-row:has(input:checked){border-color:#3986cf;background:#f0f7ff}.rw-row input[type=checkbox]{margin-top:4px;width:18px;height:18px;accent-color:#176dc1}.rw-node{display:flex;flex-direction:column;gap:6px}.rw-node code{font-size:12px;color:#75869a;overflow-wrap:anywhere}.rw-ips{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.rw-node small,.rw-price small{color:#6b8198;font-size:13px}.rw-price{display:flex;flex-direction:column;align-items:end;gap:8px;text-align:right}.rw-price strong{font-size:14px}.rw-footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 22px;border-top:1px solid #dce7f0;background:#f7faff;flex-shrink:0}.rw-footer>strong{margin-right:auto;font-size:16px}.rw-modal button{white-space:normal;overflow-wrap:anywhere}.rw-quote-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #e3ecf4}.rw-quote-row .rw-node{flex:1 1 280px}.rw-quote-row small{width:100%;font-size:11px;color:#788a9e;overflow-wrap:anywhere}.rw-plan-summary{display:flex;flex-direction:column;gap:9px;padding:16px;border-radius:12px;background:#eef6ff}.rw-plan-summary code{overflow-wrap:anywhere;font-size:12px}.rw-plan-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 150px auto;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #e4edf5;overflow-wrap:anywhere}.rw-empty{padding:30px 10px;text-align:center;color:#7b8fa4}.enterprise-ip-stack .rw-due-link{padding:0;text-align:left;background:none;border:none;color:#c4651e;font-size:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}@media(max-width:600px){.rw-head,.rw-tabs,.rw-footer{padding:12px}.rw-body{padding:12px}.rw-message{margin:6px 12px}.rw-head h2{font-size:18px}.rw-row{grid-template-columns:20px minmax(0,1fr);gap:8px;padding:12px}.rw-price{grid-column:2;align-items:start;text-align:left}.rw-plan-row{grid-template-columns:minmax(0,1fr) auto}.rw-plan-row>strong,.rw-plan-row>div{grid-column:1 / -1}.rw-match{grid-template-columns:1fr}.rw-footer>strong{width:100%}.rw-footer button{flex:1 1 130px;font-size:13px;padding:10px}.rw-tools{gap:8px}.rw-tools label{flex-basis:135px}}
.rw-tools label{margin:0}.rw-tools select{height:42px}.rw-modal .rw-footer .primary-action{width:auto}.rw-match textarea{min-height:56px}.rw-body>.rw-hint{margin:10px 0}.rw-node strong{font-size:14px}.rw-row .rw-node{font-weight:400}

/* renewal-paste.css */
.rp-modal textarea{width:100%;padding:14px;font:14px/1.65 ui-monospace,monospace;border:1px solid #c7d8e8;border-radius:10px;resize:vertical;max-height:32vh}.rp-modal .rw-tools{margin:12px 0}.rp-group{margin:14px 0;padding:14px 16px;border:1px solid #dce7f0;border-radius:12px}.rp-group h3,.rp-whole h3{font-size:16px;margin:0 0 8px}.rp-group>p{font-size:13px;line-height:1.7;color:#58738f}.rp-node{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(190px,1fr) auto;gap:12px;padding:12px 0;border-top:1px solid #e6edf5;align-items:start;font-size:13px;font-weight:400}.rp-node input,.rp-whole-row input{width:18px;height:18px;accent-color:#1766b0}.rp-dates{white-space:pre-line;color:#607891;line-height:1.65}.rp-node strong{white-space:nowrap}.rp-whole{padding:15px;border:1px solid #efca88;background:#fff9ed;border-radius:12px}.rp-whole p,.rp-whole-row{font-size:13px;line-height:1.7}.rp-whole-row{display:flex;gap:12px;align-items:start;padding:12px 0;border-top:1px solid #eeddbb;font-weight:400;white-space:pre-line;overflow-wrap:anywhere}.rp-issues{margin:12px 0;border:1px solid #e5d9cf;border-radius:10px;padding:12px;font-size:13px;overflow-wrap:anywhere}.rp-issues summary{cursor:pointer;color:#9a5d21}.rp-issues p{margin:8px 0;color:#775d49}@media(max-width:700px){.rp-group{padding:12px}.rp-node{grid-template-columns:20px minmax(0,1fr);gap:8px}.rp-node .rp-dates,.rp-node>strong{grid-column:2}.rp-node>strong{justify-self:start}.rp-modal .rw-footer>strong{width:100%}.rp-modal .rw-footer button{flex:1 1 130px}}

/* stock-health.css */
.stock-health-panel{padding:18px;margin:16px 0;border:1px solid #dce6f2;border-radius:16px;background:#fff;min-width:0}
.stock-health-heading,.stock-health-tools,.stock-health-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.stock-health-heading{justify-content:space-between;align-items:flex-start}
.stock-health-heading>div{flex:1 1 240px;min-width:0}
.stock-health-heading p{margin:6px 0 12px;color:#657b96;overflow-wrap:anywhere}
.stock-health-tools label{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px}
.stock-health-tools input[type=checkbox]{width:16px;height:16px;margin:0;flex:none}
.stock-health-tools select{padding:8px;max-width:100%;min-width:0}
.stock-health-panel button{white-space:normal;max-width:100%;min-height:38px}
.stock-health-summary{font-size:13px;margin-top:10px;color:#516d8d}
.stock-health-detail{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.stock-health-detail small{display:block;color:#7b8da4}
#stock-nodes{max-height:70vh;overflow-y:auto;scrollbar-gutter:stable}
@media(max-width:650px){.stock-health-panel{padding:14px}.stock-health-heading>button{width:100%}.stock-health-tools{align-items:flex-start;gap:14px}.stock-health-tools>label:last-child{flex-basis:100%}}

#stock-metrics{gap:8px;margin:12px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
#stock-metrics .finance-metric{padding:12px;min-height:0;gap:5px}
#stock-metrics .finance-metric strong{font-size:24px;line-height:1.2}
#stock-metrics .finance-metric span{font-size:11px}
@media(max-width:650px){#stock-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.stock-metrics-fold{margin:12px 0;border:1px solid #dce6f2;border-radius:12px;padding:10px 14px;background:#fff}
.stock-metrics-fold>summary{cursor:pointer;font-size:13px;color:#516d8d;font-weight:600;overflow-wrap:anywhere}

/* discounts.css */
/* Quantity discounts share one ticket mark across the catalog. */
.quantity-row{grid-template-columns:repeat(auto-fit,minmax(75px,1fr));gap:14px 10px;padding-top:9px}
.quantity-option{position:relative;min-height:53px;padding:16px 5px 9px;border-radius:10px;font-size:13px;overflow:visible}
.quantity-option.has-discount{border-color:#bfd9d8;background:#f8fcfb;color:#164f58}
.quantity-option.has-discount:hover{border-color:#61b5ac;background:#f1faf7}
.quantity-option.has-discount.active{border-color:#148b7d;background:#eaf8f3;color:#0c6158;box-shadow:0 0 0 2px #21a58e22}
.discount-badge{position:absolute;top:-12px;right:-5px;width:59px;height:25px;filter:drop-shadow(0 3px 4px #0c55452c);pointer-events:none}
.discount-badge path:first-child{fill:#137c75;stroke:#daf9ef;stroke-width:1.2}
.discount-badge-cut{fill:#fff}
.discount-badge text{fill:#fff;font-size:13px;font-weight:800;letter-spacing:-.02em;font-family:Arial,"PingFang SC",sans-serif}
.quantity-option.active .discount-badge path:first-child{fill:#0d625c}
.quantity-row.bundle-quantity-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px}
.bundle-quantity-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:105px;padding:18px 12px 10px;text-align:left;background:#f7fbff;border-color:#d4e4f2}
.bundle-quantity-card strong{font-size:20px;line-height:1;color:#183f67}
.bundle-quantity-card span{font-size:11px;letter-spacing:.04em;color:#6e8aa5}
.bundle-quantity-card small{font-size:10px;color:#315b80;line-height:1.3}
.bundle-quantity-card.has-discount{background:linear-gradient(145deg,#f2fbf9,#fff);border-color:#b5dbd0}
.bundle-quantity-card.has-discount.active{background:linear-gradient(145deg,#e4f8f1,#f7fcff)}
.bundle-quantity-card.enterprise-quantity{background:linear-gradient(145deg,#f4f6fb,#fff);border:1px dashed #aebed0}
.bundle-quantity-card.enterprise-quantity strong{color:#264364}
.bundle-quantity-card.enterprise-quantity small{color:#386996;font-weight:800}
.bundle-quantity-card.enterprise-quantity.active{border-style:solid;border-color:#407bc5;background:#edf4ff}
.term-option{position:relative;min-height:50px;padding-top:14px;overflow:visible}
.term-option.has-discount{background:#fff9ef;border-color:#eed5a1;color:#9a621c}
.term-option.has-discount.active{background:#fff2d9;border-color:#dca841;color:#815014;box-shadow:0 0 0 2px #dca84122}
.term-option.has-discount .discount-badge path:first-child{fill:#bf812b;stroke:#fff1d6}
.term-option.has-discount.active .discount-badge path:first-child{fill:#9d6218}
.order-price .price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:29px}
.order-price .price-row strong{color:#344964;font-variant-numeric:tabular-nums;text-align:right}
.order-price .price-unit strong{color:#174f79}
.order-price.has-savings #original-price{text-decoration:line-through;text-decoration-color:#97a6ba;color:#8a9bb0}
.order-price .order-discount{margin:10px -10px 0;padding:10px;border:1px solid #bee9d4;border-radius:8px;background:#effbf3}
.order-price .order-discount[hidden]{display:none!important}
.order-discount span{display:inline-flex;align-items:center;gap:5px;color:#11734e;font-weight:700}
.order-discount svg{width:17px;height:17px;fill:none;stroke:#14885a;stroke-width:1.8;stroke-linejoin:round}
.order-discount b{margin-left:3px;padding:2px 5px;border-radius:4px;background:#d9f4e4;color:#08734a;font-size:11px}
.order-price .order-discount strong{color:#078354;font-size:15px}
.order-price .term-discount{background:#fff8ec;border-color:#f2dfb7}
.term-discount span{color:#956317}
.term-discount svg{stroke:#b57a25}
.term-discount b{background:#ffebc1;color:#82500f}
.order-price .term-discount strong{color:#a86a16}
.order-price .order-total{margin-top:16px;padding-top:17px}
.order-price .order-total strong{color:#2057bc;font-size:27px}
.dialog-summary .dialog-discount{margin:5px -8px;padding:9px 8px;border-radius:7px;background:#effbf3;color:#147a55}
.dialog-summary .dialog-discount span,.dialog-summary .dialog-discount strong{color:#147a55}
.dialog-summary .dialog-term-discount{background:#fff8ec}
.dialog-summary .dialog-term-discount span,.dialog-summary .dialog-term-discount strong{color:#a86a16}
.dialog-summary .dialog-total{margin-top:7px;padding-top:13px;border-top:1px solid #d9e6f2;color:#2057bc;font-weight:800}
.dialog-summary .dialog-total strong{color:#2057bc;font-size:17px}
@media(max-width:600px){.quantity-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 9px}.quantity-option{min-height:54px}.discount-badge{right:-3px}}
@media(max-width:600px){.quantity-row.bundle-quantity-row{grid-template-columns:repeat(2,minmax(0,1fr))}.bundle-quantity-card{min-height:103px}.term-row{gap:15px 10px}}

/* finance-monthly.css */
.month-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.month-toolbar label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#61768d}.month-toolbar input,.month-toolbar select{padding:10px 12px;border:1px solid #d5e2f1;border-radius:9px;background:white;min-height:42px}.month-toolbar button{min-height:42px}.monthly-hint{padding:16px 20px;border:1px solid #d6e4fb;border-radius:12px;background:#f1f6ff;color:#5e738c;line-height:1.8}.month-unreviewed{color:#ad641c}.month-details{white-space:pre-wrap;overflow-wrap:anywhere;max-width:430px;font-size:12px;color:#677c91}.month-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;padding:15px 0}.month-summary div{display:flex;flex-direction:column;gap:8px}.month-summary strong{font-size:20px;color:#173c65}#month-fields label:not(.check-label){display:flex;flex-direction:column;gap:8px;margin:14px 0}#month-fields input:not([type=checkbox]),#month-fields select,#month-fields textarea{padding:12px;border:1px solid #d5e2f1;border-radius:9px;font:inherit;width:100%;box-sizing:border-box}#month-fields textarea{min-height:80px}#month-fields small{color:#667c91}#month-fields .check-label{margin:18px 0}#month-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:14px;margin:20px 0}

[data-admin-page="finance"] [hidden]{display:none!important}
.month-toolbar button{padding:10px 15px;border:1px solid #d5e2f1;border-radius:9px;background:#fff;color:#315371;font:600 13px system-ui;cursor:pointer}.month-toolbar button.solid-button{background:#2765d4;border-color:#2765d4;color:#fff}.month-toolbar button:disabled{opacity:.45;cursor:not-allowed}.month-toolbar button:hover:not(:disabled){border-color:#3979df;box-shadow:0 2px 8px #d8e5f9}

.month-select-label{display:flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer}#month-entries input[type=checkbox]{width:19px;height:19px;min-width:19px;margin:0;accent-color:#2765d4;cursor:pointer}#month-entries input[type=checkbox]:disabled{cursor:not-allowed;opacity:.5}

/* telegram-recovery.css */
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.recovery-card{background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:24px;min-width:0}.recovery-card label{display:block;margin:14px 0;font-weight:600}.recovery-card input:not([type=checkbox]),.recovery-card select{display:block;width:100%;max-width:100%;box-sizing:border-box;padding:12px;border:1px solid #cedcec;border-radius:10px;margin-top:8px}.recovery-card input[type=checkbox]{width:auto}.recovery-card .check-label{display:flex;align-items:center;gap:8px}.recovery-card p,.recovery-card small{color:#61748a;line-height:1.7}.recovery-card button{margin:8px 8px 8px 0;padding:11px 15px;border-radius:9px}.recovery-card code{overflow-wrap:anywhere}.recovery-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.recovery-summary{display:flex;gap:12px;flex-wrap:wrap}.recovery-summary>div{background:#fff;border:1px solid #dce5ef;border-radius:12px;padding:16px}.recovery-card h2{margin-top:0}#tg-recovery-checks{font-size:14px;line-height:1.7}#tg-recovery-backups .table-action{margin:4px}.recovery-grid+.admin-table-wrap{overflow:auto}@media(max-width:800px){.recovery-grid{grid-template-columns:1fr}.recovery-card{padding:18px}}

.recovery-card button{appearance:none;background:#edf5ff;color:#176eb7;border:1px solid #d0e3f7;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.recovery-card button[type=submit]{background:#2368bf;color:#fff;border-color:#2368bf}.recovery-card button:disabled{opacity:.55;cursor:wait}.recovery-card button:hover:not(:disabled){filter:brightness(.97)}#tg-recovery-restores{margin-top:18px}.recovery-card .check-label{font-size:14px}.recovery-summary>div{font-size:14px}

/* vpn-workspace.css */
#vpn-manage-dialog {
  box-sizing: border-box;
  width: min(820px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
}
#vpn-manage-dialog .modal-head {
  position: sticky;
  top: -24px;
  z-index: 2;
  margin: -24px -24px 20px;
  padding: 20px 24px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--line, #e0e8f1);
}
#vpn-manage-dialog .modal-head h2 { font-size: 20px; overflow-wrap: anywhere; }
#vpn-manage-summary strong { overflow-wrap: anywhere; }
#vpn-manage-links .relay-link > div { flex: 1; }
#vpn-manage-links input { box-sizing: border-box; width: 100%; min-width: 0; font-size: 12px; }
#vpn-manage-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#vpn-manage-actions button { white-space: normal; min-height: 40px; }
#vpn-renew-form { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line, #e0e8f1); gap: 12px; }
#vpn-renew-form h3, #vpn-renew-form p { margin: 0; line-height: 1.7; }
#vpn-renew-preview { padding: 12px; background: var(--surface-2, #f5f8fc); border-radius: 8px; }
@media (max-width: 560px) {
  #vpn-manage-dialog { padding: 16px; }
  #vpn-manage-dialog .modal-head { top: -16px; margin: -16px -16px 16px; padding: 16px; }
  #vpn-manage-dialog .modal-head h2 { font-size: 17px; }
}

}
