:root{--bg:#f5f7f9;--surface:#fff;--ink:#182f3d;--muted:#81909a;--subtle:#596d79;--line:#e8edf0;--green:#155b49;--green-hover:#104b3c;--green-soft:#e9f3ee;--amber:#b07623;--amber-soft:#fff5e4;--red:#bd4b4b;--red-soft:#fff0ee;--shadow:0 3px 20px #18303c04;--radius:13px;font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:13px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #76bba3;outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:19px;height:19px;display:block;flex-shrink:0}button svg,a.button svg{width:16px;height:16px}button{color:inherit}input,select,textarea{color:var(--ink)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:218px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:31px 18px 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 10px}.brand-mark{width:42px;height:46px;background:var(--green);color:#fff;border-radius:12px;display:grid;place-items:center;box-shadow:0 5px 12px #155b491a}.brand-mark svg{width:32px;height:32px}.brand strong{display:block;font-size:24px;font-weight:750;letter-spacing:1px;line-height:1.2}.brand-dot{color:#68a58c}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:1.8px;margin-top:5px}.nav-caption{font-size:10px;letter-spacing:1.5px;color:#9aa6ad;margin:43px 14px 12px}.nav-list{display:flex;flex-direction:column;gap:6px}.nav-item{border:0;background:none;display:flex;align-items:center;gap:12px;padding:12px 13px;width:100%;border-radius:8px;color:#62737e;text-align:left;font-weight:550}.nav-item svg{width:18px;height:18px;stroke-width:1.7}.nav-item:hover{background:#f6f8f9;color:var(--green)}.nav-item.active{background:var(--green-soft);color:var(--green);font-weight:650}.nav-count{margin-left:auto;background:#d9e9e0;color:#39775e;min-width:23px;padding:1px 5px;border-radius:5px;text-align:center;font-size:10px}.nav-divider{height:1px;background:var(--line);margin:15px 12px 13px}.sidebar-note{margin-top:auto;display:flex;gap:10px;padding:21px 13px;color:#80968b}.sidebar-note svg{width:17px;height:17px;margin-top:3px}.sidebar-note strong{font-size:11px;font-weight:600;color:#61786e}.sidebar-note p{font-size:10px;line-height:1.9;margin:5px 0 0;color:#96a39b}.sidebar-bottom{border-top:1px solid var(--line);display:flex;gap:10px;align-items:center;padding:20px 8px}.avatar{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e7ebe7;background:#f2f5ef;border-radius:9px;color:#6c7b66;font-size:13px}.sidebar-bottom strong{display:block;font-size:11px;font-weight:600}.sidebar-bottom small{display:block;font-size:9px;color:#99a4aa;margin-top:2px}.local-dot{width:6px;height:6px;border-radius:50%;background:#73a78d;margin-left:auto}.main-content{margin-left:218px;width:calc(100% - 218px);min-width:0}.topbar{height:69px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#ffffffb3}.breadcrumb{color:#9ba7af;font-size:11px;display:flex;gap:14px;align-items:center}.breadcrumb span{color:#ccd4da}.breadcrumb strong{font-weight:500;color:#5c707c}.topbar-right{display:flex;align-items:center;gap:15px;font-size:10px;color:#8796a0;letter-spacing:.3px}.connection{display:flex;align-items:center;gap:7px}.connection>span:first-child{width:5px;height:5px;border-radius:50%;background:#a5b2b7}.connection.connected>span:first-child{background:#64a082}.connection.error>span:first-child{background:#ce7771}.topbar-divider{height:12px;width:1px;background:#e1e6e9}.workspace{max-width:1650px;margin:0 auto;padding:32px 34px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:#8da198;margin-bottom:7px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:.3px;font-weight:650;line-height:1.4}.page-heading p{color:#84929c;font-size:11px;margin-top:7px}.button{border:1px solid #dee6e9;background:#fff;border-radius:7px;display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:10px 15px;font-size:12px;line-height:1.4;font-weight:550;white-space:nowrap;transition:background .15s,box-shadow .15s}.button:hover{background:#f6f9f8;border-color:#cddbd4}.button.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 3px 7px #155b4914}.button.primary:hover{background:var(--green-hover)}.button.small{font-size:11px;padding:8px 11px;font-weight:500}.button.danger{background:var(--red);border-color:var(--red);color:#fff}.button.ghost-danger{color:var(--red);border-color:#eed7d2}.text-button{border:0;background:none;color:#6d808c;font-size:11px;display:inline-flex;align-items:center;gap:6px;padding:4px 0;white-space:nowrap}.text-button:hover{color:var(--green)}.text-button svg{width:14px;height:14px}.text-button.danger{color:var(--red)}.icon-button{border:1px solid transparent;background:transparent;border-radius:5px;padding:6px;display:grid;place-items:center}.icon-button svg{width:16px;height:16px}.icon-button:hover{background:#f1f5f3}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 19px 15px;box-shadow:var(--shadow)}.metric-label{display:flex;align-items:center;justify-content:space-between;color:#7d8b96;font-size:11px}.metric-icon{background:#f5f8f7;color:#8ba397;border-radius:6px;padding:5px}.metric-icon svg{width:15px;height:15px}.metric-value{font-family:"Segoe UI",Arial,sans-serif;font-size:28px;font-weight:650;letter-spacing:-.8px;margin:10px 0 12px;line-height:1.2;font-variant-numeric:tabular-nums}.metric-foot{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#9aa5ad;min-height:20px}.metric-tag{font-size:9px;padding:2px 6px;border-radius:4px;white-space:nowrap}.metric-tag.green{color:#55856e;background:#eff7f1}.metric-tag.neutral{background:#f4f6f7;color:#97a2a9}.metric-tag.amber{color:#b3914d;background:#fff8eb}.outstanding-card{border-color:#e4e9dc;background:linear-gradient(120deg,#fff 20%,#fafcf7)}.outstanding-card .metric-value{color:var(--green)}.content-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px}.card-title{display:flex;align-items:center;gap:10px}h2{font-size:14px;font-weight:650}.count-badge{font-size:10px;padding:2px 7px;border-radius:5px;background:#f2f5f6;color:#8d9ba4;white-space:nowrap}.card-actions{display:flex;gap:20px;align-items:center}.filter-bar{display:flex;gap:10px;padding:0 22px 18px}.search-control{display:flex;align-items:center;gap:9px;border:1px solid #e3e9ed;border-radius:7px;padding:0 10px;flex:1;min-width:150px;max-width:440px;background:#fcfdfd}.search-control svg{color:#9ba9b2;width:16px;height:16px}.search-control input{border:0;background:none;outline:none;width:100%;padding:9px 0;font-size:11px;min-width:0}.search-control:focus-within{border-color:#84b29b;box-shadow:0 0 0 3px #e9f2ec}.search-control input::placeholder{color:#a2aeb6}.select-control select{font-size:11px;border:1px solid #e3e9ed;border-radius:7px;background:#fff;padding:9px 28px 9px 10px;min-width:115px;max-width:180px}.select-control select:focus,input:focus,textarea:focus{outline:none;border-color:#84b29b;box-shadow:0 0 0 3px #e9f2ec}.date-filters{padding:0 22px 16px;display:flex;gap:12px;align-items:end;font-size:10px;color:#8b99a2}.date-filters label{display:flex;flex-direction:column;gap:4px}.date-filters input{border:1px solid var(--line);border-radius:6px;padding:7px 9px;background:#fff;font-size:11px}.date-separator{padding-bottom:9px}.date-filters .text-button{margin-bottom:7px;color:var(--green)}.filter-hint{margin-left:auto;padding-bottom:10px;font-size:10px}.filter-summary{background:#f4f8f6;border-top:1px solid #e7f0e9;padding:8px 22px;display:flex;flex-wrap:wrap;gap:16px;font-size:10px;color:#6a8575}.filter-summary strong{font-weight:600}.table-scroll{overflow:auto;scrollbar-width:thin}.data-table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:11px}.data-table th{background:#f8fafb;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 14px;font-size:10px;color:#8b99a3;font-weight:500}.data-table th:first-child,.data-table td:first-child{padding-left:22px}.data-table th:last-child,.data-table td:last-child{padding-right:22px}.data-table td{padding:16px 14px;border-bottom:1px solid #f0f3f5;color:#667985;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfc}.data-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.data-table .action-cell{text-align:right}.order-table th,.order-table td{padding-left:12px;padding-right:12px}.order-link{display:block;color:#293f4c;font-weight:600;letter-spacing:.2px;font-size:11px;border:0;background:none;padding:0;text-align:left}.order-link:hover{color:var(--green)}.subline{font-size:10px;color:#a0abb2;margin-top:4px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.amount{font-family:"Segoe UI",Arial,sans-serif;color:#38505e;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}.amount.received{color:#76a18a;font-weight:500}.amount.outstanding{color:#a5793c;font-weight:600}.amount.positive{color:#39775f}.amount.negative{color:var(--red)}.muted-value{color:#a9b3b9;font-size:10px}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:5px;font-size:9px;line-height:1.7}.status-pill:before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor}.status-pill.unpaid{background:var(--amber-soft);color:#b08745}.status-pill.partial{background:#eaf1fa;color:#6c90b9}.status-pill.paid{background:#edf6f0;color:#65957b}.row-actions{display:flex;justify-content:flex-end;gap:12px}.row-actions button{font-size:10px}.agent-cell{display:flex;gap:9px;align-items:center}.agent-avatar{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#eef4f1;color:#6e9380;font-size:11px;font-weight:600}.agent-name{color:#425b68;font-weight:550;max-width:160px;overflow:hidden;text-overflow:ellipsis}.table-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:12px 22px;font-size:10px;color:#9ca8b0}.pagination{display:flex;gap:10px;align-items:center}.pagination label{margin-right:6px}.pagination select{padding:3px;border:1px solid var(--line);background:#fff;color:#7b8d98;border-radius:4px;font-size:10px}.pagination .icon-button{border-color:#e8edef;padding:4px}.pagination .icon-button svg{width:12px;height:12px}.empty-state{padding:55px 20px 60px;text-align:center}.empty-illustration{width:68px;height:68px;border-radius:20px;background:#f1f6f2;color:#90ad9b;display:grid;place-items:center;margin:0 auto 17px;transform:rotate(-4deg);position:relative}.empty-illustration svg{width:32px;height:32px;transform:rotate(4deg);stroke-width:1.2}.empty-illustration:after{content:"";width:19px;height:19px;background:#e1eee5;border:4px solid white;border-radius:50%;position:absolute;bottom:-3px;right:-4px}.empty-state h3{font-size:14px;font-weight:600;color:#49616e;margin-bottom:7px}.empty-state p{color:#a0acb4;font-size:11px;line-height:1.8;margin-bottom:20px}.empty-state .button{font-size:11px;padding:8px 13px}.help-line{display:flex;align-items:flex-start;gap:7px;font-size:10px;color:#9aa8b0;margin:15px 2px;line-height:1.7}.help-line svg{width:13px;height:13px;flex-shrink:0;margin-top:2px}.workspace-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8edf0;padding:20px 0;margin-top:40px;color:#aab5bc;font-size:9px;letter-spacing:.3px}.workspace-footer>span:last-child{display:flex;align-items:center;gap:6px}.tiny-dot{width:4px;height:4px;border-radius:50%;background:#9ab4a4}.quiet{font-size:10px;color:#9ca8b0}.loading-banner{display:flex;gap:10px;align-items:center;background:#edf4f0;border:1px solid #deebe2;color:#63816f;font-size:11px;border-radius:8px;padding:12px 15px;margin-bottom:20px}.spinner{display:inline-block;width:14px;height:14px;border:2px solid #c8ddd1;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.error-banner{display:flex;gap:12px;align-items:center;border:1px solid #efdad4;background:#fff6f3;color:#aa6658;border-radius:8px;padding:14px 16px;margin-bottom:20px}.error-banner strong{font-size:12px}.error-banner p{font-size:11px;margin-top:3px}.error-banner .button{margin-left:auto}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.backup-card{padding:25px;background:#fff;border:1px solid var(--line);border-radius:12px}.backup-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--green-soft);color:var(--green);margin-bottom:17px}.backup-symbol.restore{color:#6e88ab;background:#eef3fa}.backup-card h2{font-size:15px;margin-bottom:9px}.backup-card p{font-size:11px;color:#8e9ca6;max-width:380px;line-height:1.9;margin-bottom:19px}.backup-card .button{font-size:11px}.storage-paths{border-top:1px solid var(--line);padding:15px 22px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:#9ba7af}.storage-paths>div{display:flex;gap:15px}.storage-paths code{font-size:10px;color:#80958a;word-break:break-all;white-space:normal}.modal-layer{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:28px}.modal-backdrop{position:absolute;inset:0;background:#122b3d65;backdrop-filter:blur(4px)}.modal{position:relative;background:white;border-radius:15px;width:820px;max-width:100%;max-height:calc(100vh - 56px);display:flex;flex-direction:column;box-shadow:0 20px 90px #0b273538;overflow:hidden}.modal.narrow{width:490px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:23px 27px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.modal-eyebrow{font-size:9px;color:#91a499;letter-spacing:1px;margin-bottom:4px}.modal-header h2{font-size:19px}.modal-header .icon-button{color:#94a1aa}.modal-body{padding:22px 27px;overflow-y:auto}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:17px 27px;background:#fbfcfd;border-top:1px solid var(--line);flex-shrink:0}.modal-footer .footer-left{margin-right:auto;display:flex;align-items:center;gap:10px}.form-section+.form-section{margin-top:24px;padding-top:21px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;gap:8px;margin-bottom:16px}.section-heading>span{width:20px;height:20px;display:grid;place-items:center;background:#eef4f0;color:#71937f;border-radius:5px;font-size:10px}.section-heading h3{font-size:12px;font-weight:600}.section-heading small{color:#a0acb4;font-size:10px;margin-left:auto}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 17px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label,.field-label{font-size:11px;color:#687e89}.required{color:#b38b56;margin-left:3px}.field input,.field select,.field textarea{width:100%;background:white;border:1px solid #dfe7eb;border-radius:6px;padding:9px 10px;font-size:12px;line-height:1.4;min-height:36px}.field input::placeholder,.field textarea::placeholder{color:#b0bac1;font-size:11px}.field textarea{resize:vertical;min-height:70px}.field small{font-size:9px;color:#a2aeb6;line-height:1.7}.span-2{grid-column:span 2}.span-all{grid-column:1 / -1}.quantity-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}.calc-preview{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);background:#f5f8f6;border:1px solid #e8efea;border-radius:8px;padding:13px 16px;margin-top:0}.calc-preview div{border-right:1px solid #e0e9e2;padding-left:17px}.calc-preview div:first-child{padding-left:0}.calc-preview div:last-child{border:0}.calc-preview small{display:block;color:#91a197;font-size:10px}.calc-preview strong{font-family:"Segoe UI",Arial,sans-serif;display:block;margin-top:4px;color:var(--green);font-size:17px;font-weight:600}.calc-preview strong.pending{font-family:inherit;font-size:12px;font-weight:500;color:#b39766}.calc-help{grid-column:1 / -1;font-size:10px;color:#9aa89f;margin-top:-7px}.attachment-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.upload-box{display:block;position:relative;border:1px dashed #cadbd0;background:#fbfdfb;padding:15px;text-align:center;border-radius:7px;cursor:pointer;margin-top:7px;color:#8ca197;font-size:10px}.upload-box svg{width:19px;height:19px;margin:0 auto 5px}.upload-box input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-box:focus-within{outline:2px solid #84b29b}.upload-box strong{font-weight:500;color:#6c8b78}.attachment-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.attachment-item{display:flex;align-items:center;gap:6px;background:#f4f7f5;border-radius:5px;padding:4px 5px 4px 7px;max-width:100%;font-size:10px;color:#6c8376}.attachment-item span{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-item button{border:0;background:none;padding:2px;color:#9caaa2}.attachment-item button svg{width:12px;height:12px}.attachment-thumb{position:relative;width:85px}.attachment-thumb>a{display:block;border:1px solid var(--line);border-radius:7px;overflow:hidden;height:70px;background:#f5f7f8}.attachment-thumb img{display:block;width:100%;height:100%;object-fit:cover}.attachment-thumb small{font-size:9px;color:#90a098;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.attachment-thumb .remove-attachment{position:absolute;right:-5px;top:-5px;border:1px solid #e7ece9;border-radius:50%;background:white;padding:2px;color:#84988c}.attachment-thumb .remove-attachment svg{width:12px;height:12px}.field-error{margin-top:15px;padding:10px 12px;border-radius:6px;background:var(--red-soft);border:1px solid #f3ded9;color:#aa6257;font-size:11px;line-height:1.7}.modal-note{font-size:10px;color:#95a39b;line-height:1.8}.detail-hero{display:flex;justify-content:space-between;align-items:start;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}.detail-hero .order-number{font-size:16px;font-weight:600;color:#375361}.detail-hero p{font-size:11px;color:#9ba9b0;margin-top:6px}.detail-money{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:16px;background:#f5f8f6;border:1px solid #e7eee9;border-radius:8px;margin-bottom:23px}.detail-money span{display:block;font-size:10px;color:#91a197}.detail-money strong{display:block;font-family:"Segoe UI",Arial,sans-serif;font-size:18px;color:#37694f;margin-top:5px;font-weight:600}.detail-money strong.pending{font-family:inherit;font-size:12px;color:#b39766;margin-top:9px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 23px}.detail-field dt{font-size:10px;color:#9aa7b0;margin-bottom:5px}.detail-field dd{margin:0;font-size:12px;color:#506c7b;word-break:break-all;white-space:pre-wrap}.detail-field.span-all{grid-column:1 / -1}.detail-field dd:empty:after{content:"—";color:#b4bdc3}.detail-images{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.detail-payment-list{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.detail-payment-list h3{font-size:12px;margin-bottom:10px}.detail-payment{display:flex;justify-content:space-between;gap:15px;font-size:11px;padding:10px 0;border-bottom:1px solid #eef2f3;color:#7b8f9c}.detail-payment strong{font-weight:600;color:var(--green);white-space:nowrap}.detail-payment small{display:block;color:#a1adb5;font-size:10px;margin-top:4px}.payment-order-summary{border:1px solid #e5ece8;background:#f5f9f6;border-radius:8px;padding:15px;margin-bottom:20px;display:flex;justify-content:space-between;gap:15px;align-items:center}.payment-order-summary strong{display:block;font-size:12px;color:#4b6a58}.payment-order-summary p{font-size:10px;color:#92a399;margin-top:4px}.payment-order-summary .amount{font-size:20px;color:var(--green)}.payment-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.payment-form-grid .field:last-child{grid-column:1 / -1}.restore-alert{display:flex;gap:10px;padding:14px;border:1px solid #eedfc4;border-radius:8px;background:#fff9ed;color:#a48654;font-size:11px;line-height:1.9;margin-bottom:18px}.restore-alert svg{margin-top:3px;flex-shrink:0}.restore-file-info{font-size:11px;color:#6f8390;background:#f7f9fa;border-radius:7px;padding:12px;margin-bottom:15px;word-break:break-all}.confirm-check{display:flex;gap:9px;font-size:11px;color:#617988;align-items:flex-start;line-height:1.8}.confirm-check input{margin-top:4px;accent-color:var(--green)}.example-ribbon{display:flex;gap:8px;align-items:center;background:#f0f5fb;color:#7a92ad;border:1px solid #dce7f4;border-radius:7px;font-size:11px;padding:11px 13px;margin-bottom:20px}.example-ribbon svg{width:16px;height:16px}.example-steps{display:flex;gap:9px;margin-top:20px;align-items:center;color:#a9b7af;font-size:11px}.example-steps span:not(.step-arrow){padding:8px 10px;background:#f3f7f4;border:1px solid #e3ebe5;border-radius:6px;color:#6f8e7b}.toast-region{position:fixed;right:26px;bottom:24px;display:flex;flex-direction:column;gap:9px;z-index:200;max-width:460px}.toast{padding:13px 18px;background:#193e32;color:#fff;border-radius:9px;box-shadow:0 5px 25px #142e3424;display:flex;align-items:flex-start;gap:10px;font-size:12px;animation:toastIn .2s ease-out;line-height:1.7}.toast svg{width:17px;height:17px;margin-top:2px;flex-shrink:0}.toast.error{background:#884c43}.toast.warning{background:#8c7449}.empty-inline{font-size:10px;color:#a8b4bc;padding:10px 0}.audit-action{display:inline-block;background:#f1f5f3;color:#6c8a78;font-size:10px;padding:3px 7px;border-radius:5px}.audit-detail{white-space:normal;min-width:240px;max-width:700px;line-height:1.8}.note-cell{white-space:normal;max-width:300px;min-width:100px;line-height:1.8}.lock-note{display:flex;align-items:center;gap:5px;font-size:10px;color:#9aaba0;margin-right:auto}.lock-note svg{width:12px;height:12px}.modal-busy .modal-backdrop{cursor:wait}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.calc-preview strong.negative,.detail-money strong.negative{color:var(--red)}.backup-error-banner{background:#fffaee;border-color:#eee2c7;color:#9c814e}.backup-error-banner>a{margin-left:auto}.backup-error-banner p{word-break:break-word}.backup-guidance{display:flex;align-items:flex-start;gap:8px;padding:13px 22px;background:#fafcfb;border-top:1px solid var(--line);font-size:10px;color:#8c9e93;line-height:1.8}.backup-guidance svg{width:13px;height:13px;margin-top:3px}
@media(min-width:1500px){.workspace{padding-left:42px;padding-right:42px}.topbar{padding-left:42px;padding-right:42px}.metric-value{font-size:31px}.metric-card{padding:21px 23px 18px}.data-table td{padding-top:18px;padding-bottom:18px}}
@media(max-width:1200px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.main-content{margin-left:190px;width:calc(100% - 190px)}.workspace{padding:27px 24px 0}.topbar{padding:0 24px}.metrics{gap:11px}.metric-card{padding:16px 13px 13px}.metric-value{font-size:25px}.metric-foot{font-size:9px}.metric-tag{font-size:8px}.filter-bar{gap:7px}.search-control{max-width:none}.filter-hint{display:none}.select-control select{min-width:100px}.card-actions{gap:12px}}
@media(max-width:980px){.sidebar{width:75px;padding:24px 12px 0}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-caption,.nav-item>span:not(:first-child),.sidebar-note,.sidebar-bottom>div,.sidebar-bottom>.local-dot{display:none}.brand-mark{width:40px;height:43px}.nav-list{margin-top:40px;gap:10px}.nav-item{padding:13px;justify-content:center}.nav-divider{margin:14px 4px}.sidebar-bottom{margin-top:auto;padding:20px 6px;justify-content:center}.main-content{margin-left:75px;width:calc(100% - 75px)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-value{font-size:28px}.metric-foot{font-size:10px}.metric-card{padding:18px}.filter-bar{flex-wrap:wrap}.search-control{flex-basis:100%;max-width:none}.select-control{flex:1}.select-control select{width:100%;max-width:none}.filter-toggle{flex:0 0 auto}.card-heading{padding:18px}.filter-bar,.date-filters{padding-left:18px;padding-right:18px}.date-filters{flex-wrap:wrap}.topbar-right{gap:10px}.topbar-divider,#todayLabel{display:none}.form-grid{gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.span-2{grid-column:span 2}}
@media(max-width:620px){.sidebar{position:static;width:100%;height:auto;padding:14px 16px 0;display:block;border-right:0;border-bottom:1px solid var(--line)}.app-shell{display:block}.brand{justify-content:flex-start;gap:9px}.brand-mark{width:32px;height:35px;border-radius:9px}.brand-mark svg{width:27px;height:27px}.brand>span:last-child{display:block}.brand strong{font-size:20px}.brand small{font-size:8px;margin-top:2px;letter-spacing:1px}.nav-list{margin-top:15px;flex-direction:row;gap:3px;justify-content:space-between}.nav-item{display:flex;flex-direction:column;gap:4px;font-size:10px;padding:8px 7px;border-radius:7px 7px 0 0}.nav-item>span:not(:first-child){display:block}.nav-item .nav-count{display:none!important}.nav-item svg{width:17px;height:17px}.nav-divider,.sidebar-bottom{display:none}.main-content{margin-left:0;width:100%}.topbar{height:42px;padding:0 17px}.breadcrumb{font-size:10px;gap:10px}.topbar-right{font-size:9px}.workspace{padding:23px 16px 0}.page-heading{gap:10px;margin-bottom:21px;align-items:center}.page-heading h1{font-size:23px}.eyebrow{font-size:7px;letter-spacing:1px}.page-heading p{font-size:10px;max-width:200px;line-height:1.8}.page-heading>.button{font-size:10px;padding:9px 11px}.page-heading>.button svg{width:13px;height:13px}.metrics{gap:9px;margin-bottom:20px}.metric-card{padding:12px 13px;border-radius:9px}.metric-label{font-size:10px}.metric-icon{padding:3px}.metric-icon svg{width:13px;height:13px}.metric-value{font-size:23px;letter-spacing:-.5px;margin:9px 0}.metric-foot{font-size:8px;gap:2px;min-height:18px}.metric-tag{font-size:7px;padding:2px 4px}.card-heading{padding:15px 14px;gap:8px}.card-title{gap:6px}.card-title h2{font-size:12px}.count-badge{font-size:9px;padding:2px 5px}.card-actions{gap:9px}.card-actions .text-button{font-size:9px}.card-actions .text-button svg{display:none}.card-actions .button{font-size:9px;padding:7px 9px}.card-actions .button svg{width:12px;height:12px}.filter-bar{padding:0 14px 14px;gap:7px}.search-control input{font-size:10px}.select-control select{font-size:10px;min-width:90px}.filter-toggle{font-size:10px!important;padding:8px!important}.filter-toggle svg{width:12px;height:12px}.date-filters{padding-left:14px;padding-right:14px;gap:9px}.date-filters label{max-width:calc(50% - 20px)}.date-filters input{max-width:100%}.date-filters .text-button{margin:0}.table-footer{padding:12px 14px;font-size:9px}.pagination{gap:7px}.pagination label{display:none}.table-footer .pagination .icon-button{padding:5px}.help-line{font-size:9px}.workspace-footer{font-size:8px;margin-top:27px;gap:15px;padding:16px 0}.workspace-footer>span:last-child{text-align:right}.backup-grid{grid-template-columns:1fr;gap:12px}.backup-card{padding:21px}.backup-card p{max-width:none}.card-heading .quiet{font-size:9px;max-width:130px;text-align:right}.storage-paths{padding:14px}.storage-paths>div{gap:10px}.storage-paths>div>span{flex-shrink:0}.modal-layer{padding:12px}.modal{max-height:calc(100dvh - 24px);border-radius:12px}.modal-header{padding:18px}.modal-header h2{font-size:17px}.modal-body{padding:18px}.modal-footer{padding:14px 18px;flex-wrap:wrap;gap:8px}.modal-footer .button{font-size:11px;padding:8px 11px}.lock-note{font-size:9px}.modal-footer .footer-left{gap:8px}.form-grid{gap:14px 12px}.form-grid .field label{font-size:10px}.form-grid .field input{font-size:11px;padding:8px}.field small{font-size:8px}.section-heading small{font-size:8px}.calc-preview{padding:12px}.calc-preview div{padding-left:10px}.calc-preview strong{font-size:16px}.calc-preview small{font-size:9px}.calc-preview strong.pending{font-size:10px}.attachment-grid{grid-template-columns:1fr;gap:15px}.detail-money{grid-template-columns:repeat(2,1fr);gap:16px;padding:14px}.detail-money strong{font-size:19px}.detail-grid{gap:17px}.detail-hero{gap:12px}.detail-hero .order-number{font-size:14px}.detail-hero p{font-size:10px}.detail-payment{font-size:10px}.toast-region{left:16px;right:16px;bottom:16px;max-width:none}.toast{padding:12px 14px;font-size:11px}.example-steps{flex-wrap:wrap;font-size:10px}.error-banner{align-items:flex-start;padding:12px;gap:8px}.error-banner>svg{width:16px}.error-banner .button{padding:6px 8px;font-size:10px}.empty-state{padding:43px 15px 48px}}

/* V2: a real editable ledger. The grid owns its scroll and freezes its first columns. */
:root{--grid-line:#dbe3e6;--grid-head:#f1f5f4;--grid-frozen:#f8faf9;--grid-dirty:#fff9e9}
.workspace{max-width:none}.heading-actions{display:flex;align-items:center;gap:12px}.draft-indicator{border:1px solid #ead9af;border-radius:5px;background:#fff9ea;color:#a38137;padding:7px 10px;font-size:11px;white-space:nowrap}.content-card,.metric-card{border-radius:7px}.ledger-card .card-heading{padding-top:17px;padding-bottom:16px}.sheet-symbol{color:var(--green);padding:5px;background:#eaf3ed;border-radius:4px}.sheet-symbol svg{width:16px;height:16px}.sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px;border-top:1px solid var(--line);background:#fbfcfc}.sheet-mode,.sheet-tools{display:flex;align-items:center;gap:12px}.sheet-mode{font-size:11px;color:#668274}.sheet-mode strong{font-weight:550}.sheet-mode-dot{height:6px;width:6px;border-radius:2px;background:#629b7d}.sheet-shortcut{border-left:1px solid #e1e8e4;padding-left:12px;font-size:10px;color:#9aa8a0}.sheet-tools .button{border-radius:4px;font-size:10px;padding:6px 10px}.ledger-card .filter-bar{padding-top:14px;padding-bottom:14px}.sheet-formula-bar{display:flex;align-items:center;gap:12px;min-height:34px;border-top:1px solid var(--grid-line);border-bottom:1px solid var(--grid-line);font-size:10px;color:#8b9b94;background:#fff}.formula-name{display:block;min-width:112px;text-align:center;align-self:stretch;align-content:center;border-right:1px solid var(--grid-line);padding:7px 10px;color:#667e70;background:#fafcfb}.formula-fx{font-family:Georgia,serif;font-size:17px;color:#8da796;font-style:italic}.sheet-saved-note{margin-left:auto;padding-right:15px;font-size:9px;color:#a0ada6;white-space:nowrap}.grid-scroll{max-height:64vh;min-height:280px;position:relative;overscroll-behavior-x:contain;scrollbar-color:#bbcfc3 #f2f6f3;scrollbar-width:auto}.editable-ledger{table-layout:fixed;border-collapse:separate;border-spacing:0;width:3014px;font-size:11px}.editable-ledger .col-row{width:42px}.editable-ledger .col-number{width:140px}.editable-ledger .col-status{width:170px}.editable-ledger .col-douyin{width:160px}.editable-ledger .col-agent{width:130px}.editable-ledger .col-date{width:145px}.editable-ledger .col-fans{width:108px}.editable-ledger .col-quantity{width:108px}.editable-ledger .col-qnote{width:110px}.editable-ledger .col-account{width:180px}.editable-ledger .col-amount{width:150px}.editable-ledger .col-cost{width:125px}.editable-ledger .col-material{width:185px}.editable-ledger .col-image{width:115px}.editable-ledger .col-profit{width:125px}.editable-ledger .col-received{width:125px}.editable-ledger .col-outstanding{width:125px}.editable-ledger .col-payment{width:115px}.editable-ledger .col-notes{width:220px}.editable-ledger .col-actions{width:236px}.editable-ledger th,.editable-ledger td{border-right:1px solid var(--grid-line);border-bottom:1px solid var(--grid-line);border-top:0;padding:0!important;height:42px;vertical-align:middle;position:relative;background:#fff}.editable-ledger th:last-child,.editable-ledger td:last-child{border-right:0}.editable-ledger tbody tr:last-child td{border-bottom:1px solid var(--grid-line)}.editable-ledger th{position:sticky;z-index:5;text-align:left;background:var(--grid-head);font-weight:550;white-space:nowrap;font-size:10px;color:#637d6e}.editable-ledger .column-letters th{top:0;height:23px;text-align:center;background:#f6f8f7;color:#a0afa7;font-family:"Segoe UI",Arial,sans-serif;font-size:9px;font-weight:400}.editable-ledger .column-titles th{top:23px;padding:0 10px!important;height:41px;box-shadow:0 1px 0 #cfdcd4}.editable-ledger .column-titles th.numeric{text-align:right}.editable-ledger .frozen-row{position:sticky;left:0;width:42px;min-width:42px;max-width:42px;text-align:center;background:var(--grid-frozen);z-index:4;color:#9caaa2;font-size:10px}.editable-ledger .frozen-number{position:sticky;left:42px;background:var(--grid-frozen);z-index:4;box-shadow:3px 0 4px #2a50380a}.editable-ledger th.frozen-row,.editable-ledger th.frozen-number{z-index:8;background:#eef3ef}.editable-ledger .column-letters th.frozen-row,.editable-ledger .column-letters th.frozen-number{z-index:9}.editable-ledger .column-titles th.frozen-row{text-align:center}.editable-ledger .frozen-number .order-link{padding:0 10px;font-size:10px;letter-spacing:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.grid-input{display:block;width:100%;min-width:0;height:41px;padding:0 10px;border:1px solid transparent!important;border-radius:0;background:transparent;box-shadow:none!important;outline:none;font-size:11px;line-height:1.5;color:#3f5966;font-family:inherit;text-overflow:ellipsis}.grid-input:focus{position:relative;border-color:#448968!important;outline:1px solid #448968;outline-offset:-2px;background:#f9fffb;z-index:2;text-overflow:clip}.grid-input::placeholder{color:#b8c2bd;font-size:10px}.grid-input.numeric{text-align:right;font-variant-numeric:tabular-nums}.grid-input[type="number"]{appearance:textfield;-moz-appearance:textfield}.grid-input::-webkit-inner-spin-button,.grid-input::-webkit-outer-spin-button{appearance:none;margin:0}.grid-input[type="date"]{font-family:"Segoe UI","Microsoft YaHei",sans-serif;font-size:11px;padding-right:7px;color:#6a8175}.grid-input[aria-invalid="true"]{background:#fff1ed!important;box-shadow:inset 0 -2px #d3917d!important}.editable-ledger td.computed-cell{background:#f4f8f5;padding:0 10px!important;color:#67826e;font-variant-numeric:tabular-nums}.editable-ledger td.numeric{text-align:right}.editable-ledger .computed-heading{background:#eaf2ec}.editable-ledger .computed-cell .amount{font-size:11px;font-weight:550}.editable-ledger .computed-cell .status-pill{font-size:9px}.editable-ledger tbody tr:hover td{background:#fbfdfc}.editable-ledger tbody tr:hover .computed-cell{background:#eef5ef}.editable-ledger tbody tr:hover .frozen-row,.editable-ledger tbody tr:hover .frozen-number{background:#f0f5f1}.editable-ledger tr.dirty-row td{background:var(--grid-dirty)}.editable-ledger tr.dirty-row .frozen-row,.editable-ledger tr.dirty-row .frozen-number{background:#fcf1d4}.editable-ledger tr.dirty-row td.computed-cell{background:#f6f6e8}.editable-ledger tr.conflict-row td{border-bottom-color:#dab0a4;background:#fff3ef}.editable-ledger tr.conflict-row .frozen-row,.editable-ledger tr.conflict-row .frozen-number{background:#f9e3db}.editable-ledger tr.saving-row{opacity:.72}.row-number-content{display:flex;justify-content:center;align-items:center;gap:3px}.row-dirty-dot{width:4px;height:4px;background:#bd9441;border-radius:50%;display:inline-block}.new-order-label{display:flex;align-items:center;gap:6px;color:#a58d56;font-size:10px;padding:0 10px}.new-order-label small{background:#f3e4bb;padding:1px 4px;border-radius:2px;font-size:8px}.cell-attachment{padding:0 10px!important;width:100%;height:41px;justify-content:center;font-size:10px!important;color:#7f9889!important}.cell-attachment svg{width:13px!important;height:13px!important}.cell-attachment:disabled{opacity:.5}.cell-readonly-pay{border:0;background:none;width:100%;height:40px;padding:0;color:inherit;font:inherit;text-align:right;cursor:pointer}.cell-readonly-pay:hover{text-decoration:underline;text-underline-offset:4px}.cell-actions{display:flex;align-items:center;gap:9px;padding:0 10px;min-height:41px;font-size:10px}.cell-actions .text-button{font-size:10px}.cell-save{border:1px solid #b9d0be;background:#e8f1e9;color:#4b795c;padding:3px 8px;border-radius:3px;font-size:10px}.cell-save:hover{background:#dbeade}.row-state{font-size:9px;color:#a89159;white-space:nowrap}.row-state.saved{color:#a3b3a9}.row-state.error{color:#bd7561;max-width:85px;overflow:hidden;text-overflow:ellipsis;cursor:help}.row-state.conflict{color:#b46958}.row-error-text{display:block;position:absolute;bottom:2px;left:10px;right:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b97763;font-size:8px;pointer-events:none}.editable-ledger tr.has-row-error .cell-actions{padding-bottom:9px}.grid-placeholder{cursor:text}.grid-placeholder td{height:42px;background:#fff}.grid-placeholder:first-child td.grid-start-hint{color:#b1beb6;font-size:10px;padding:0 10px!important}.grid-placeholder:hover td{background:#f6fbf7!important}.draft-bar{display:flex;align-items:center;gap:9px;padding:10px 20px;border-top:1px solid #e9dab4;background:#fff8e7;color:#a0864d;font-size:10px}.draft-bar>span>svg{width:14px;height:14px}.draft-bar-actions{margin-left:auto;display:flex;gap:15px}.draft-bar-actions .text-button{font-size:10px;color:#a08752}.ledger-card #ordersEmpty{padding:15px;border-top:1px solid var(--line);background:#fafcfb}.ledger-card #ordersEmpty .empty-illustration{display:none}.ledger-card #ordersEmpty h3{font-size:12px;margin-bottom:4px}.ledger-card #ordersEmpty p{font-size:10px;margin-bottom:9px}.ledger-card #ordersEmpty .button{font-size:10px;padding:6px 11px}.ledger-card .table-footer{border-top:0}.sheet-scope-tag{font-size:9px;color:#8c9e92}.conflict-table{width:100%;border-collapse:collapse;font-size:11px;margin:15px 0 18px;table-layout:fixed}.conflict-table th,.conflict-table td{border:1px solid #e1e8e3;padding:10px;vertical-align:top;word-break:break-all;white-space:pre-wrap}.conflict-table th{background:#f3f7f4;font-weight:500;color:#85978a;font-size:10px}.conflict-table td{color:#687f70}.conflict-table td:first-child{width:23%;background:#fafcfb;color:#8b9b91}.conflict-table td.local-conflict{background:#fff9eb}.conflict-note{font-size:11px;color:#8b9a91;line-height:1.9}.modal-footer .conflict-discard{margin-right:auto}.metrics{margin-bottom:20px}.metric-card{padding-top:15px;padding-bottom:12px}.metric-value{margin-top:8px;margin-bottom:9px;font-size:26px}
@media(max-width:1200px){.sheet-shortcut{display:none}.sheet-saved-note{display:none}.sheet-toolbar{padding-left:17px;padding-right:17px}.ledger-card .card-actions{gap:11px}.workspace{padding-left:20px;padding-right:20px}}
@media(max-width:760px){.ledger-card .card-heading{flex-wrap:wrap}.ledger-card .card-actions{margin-left:auto}.sheet-formula-bar{gap:9px;font-size:9px}.formula-name{min-width:82px;font-size:9px}.sheet-formula-bar #activeCellHint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}.sheet-tools{gap:10px}.sheet-tools .text-button{font-size:10px}.draft-bar{flex-wrap:wrap;padding:9px 14px}.draft-bar-actions{gap:12px}.grid-scroll{max-height:66vh}.heading-actions{gap:8px;flex-direction:column;align-items:flex-end}.heading-actions>.button{font-size:11px;padding:9px 12px}.draft-indicator{font-size:9px;padding:4px 8px}.sheet-mode{gap:7px;font-size:10px}.ledger-card .card-actions .text-button{font-size:9px}.ledger-card .card-heading .card-title h2{font-size:12px}.sheet-symbol{padding:4px}.sheet-symbol svg{width:14px;height:14px}.modal-footer .conflict-discard{margin-right:0}.conflict-table{font-size:10px}.conflict-table th,.conflict-table td{padding:8px}.workspace{padding-left:14px;padding-right:14px}}
/* Expand only the sheet; keep the same document, inputs and drafts alive. */
.focused-add-row{display:none}
body.sheet-focused .sidebar,body.sheet-focused .topbar,body.sheet-focused .page-heading,body.sheet-focused .metrics,body.sheet-focused .workspace-footer,body.sheet-focused .help-line{display:none!important}
body.sheet-focused .main-content{margin-left:0;width:100%}
body.sheet-focused .workspace{padding:14px;max-width:none}
body.sheet-focused .ledger-card{display:flex;flex-direction:column;height:calc(100dvh - 28px);min-height:380px}
body.sheet-focused .ledger-card>.card-heading,body.sheet-focused .ledger-card>.sheet-toolbar,body.sheet-focused .ledger-card>.filter-bar,body.sheet-focused .ledger-card>.date-filters,body.sheet-focused .ledger-card>.filter-summary,body.sheet-focused .ledger-card>.draft-bar,body.sheet-focused .ledger-card>.sheet-formula-bar,body.sheet-focused .ledger-card>.table-footer,body.sheet-focused .ledger-card>#ordersEmpty{flex-shrink:0}
body.sheet-focused .grid-scroll{flex:1;min-height:130px;max-height:none}
body.sheet-focused .focused-add-row{display:inline-flex}
body.sheet-focused .ledger-card .card-heading{padding-top:13px;padding-bottom:13px}
@media(max-width:760px){body.sheet-focused .sheet-toolbar{flex-wrap:wrap;gap:9px}body.sheet-focused .sheet-tools{margin-left:auto;flex-wrap:wrap;justify-content:flex-end;gap:12px}body.sheet-focused .workspace{padding:8px}body.sheet-focused .ledger-card{height:calc(100dvh - 16px)}body.sheet-focused .sheet-mode{display:none}}

/* Compact finance view, configurable columns, and account-scoped recovery. */
.clipboard-toolbar{display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding:9px 16px;border-top:1px solid var(--line);background:#f9fcfa;font-size:11px;color:#64806e}
.clipboard-toolbar .text-button{font-size:11px}.clipboard-toolbar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.clipboard-toolbar select{border:1px solid #d5e2d9;border-radius:4px;background:white;color:#4e715c;font:inherit;padding:4px}.clipboard-toolbar small{margin-left:auto;color:#94a397;font-size:10px}.clipboard-toolbar #gridSelectionStatus{font-size:10px;color:#7e9485}
.editable-ledger td.cell-selected{background:#dceee3!important;box-shadow:inset 0 0 0 1px #84b397}.editable-ledger td.cell-selected input{background:transparent}.editable-ledger td.cell-active{box-shadow:inset 0 0 0 2px #287953!important}.editable-ledger .column-titles th{cursor:cell}.editable-ledger td[data-column="row"]{cursor:pointer}.editable-ledger td[data-column]:focus{outline:2px solid #3c8b62;outline-offset:-2px}
body.selecting-cells,body.selecting-cells input{user-select:none!important}.clipboard-menu{position:fixed;z-index:1000;width:240px;border:1px solid #cbded1;border-radius:7px;box-shadow:0 8px 25px #204c302b;background:white;padding:5px}.clipboard-menu button{display:flex;justify-content:space-between;width:100%;padding:8px 10px;border:0;background:white;color:#42664e;font:12px 'Microsoft YaHei',sans-serif;text-align:left;cursor:pointer}.clipboard-menu button:hover{background:#edf5ef}.clipboard-menu small{color:#98aa9e}.clipboard-confirm{font-size:14px;line-height:1.9;color:#537360}
[hidden]{display:none!important}
.workspace{padding-top:24px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:27px}
.sheet-toolbar{padding:9px 16px;gap:10px;flex-wrap:wrap}.sheet-tools{gap:12px;flex-wrap:wrap;margin-left:auto}.sheet-tools .text-button{font-size:11px;white-space:nowrap}.sheet-tools .text-button svg{width:14px;height:14px}
.editable-ledger{font-size:12px}.editable-ledger th,.editable-ledger td{height:37px;overflow:hidden}
.editable-ledger .column-letters th{height:21px}.editable-ledger .column-titles th{top:21px;height:37px;font-size:11px;padding:0 7px!important}
.editable-ledger .frozen-row{width:var(--row-width,36px);min-width:var(--row-width,36px);max-width:var(--row-width,36px)}
.editable-ledger .frozen-number{left:var(--row-width,36px)}
.editable-ledger .frozen-number .order-link{padding:0 6px;font-size:10px}
.grid-input{height:36px;padding:0 6px;font-size:12px}.grid-input::placeholder{font-size:11px}.grid-input[type="date"]{padding-left:3px;padding-right:2px;font-size:11px}
.editable-ledger td.computed-cell{padding:0 6px!important}.editable-ledger .computed-cell .amount{font-size:12px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}
.cell-actions{padding:0 6px;min-height:36px;gap:6px;flex-wrap:wrap}.cell-actions .row-state.saved{display:none}.cell-actions .text-button{font-size:10px}.cell-save{padding:3px 6px}.cell-attachment{height:36px;padding:0 6px!important}
.editable-ledger [data-column="actions"]{position:sticky;right:0;z-index:4;box-shadow:-2px 0 4px #2a503810;background:#f6f9f7;border-left:1px solid var(--grid-line)}
.editable-ledger thead [data-column="actions"]{z-index:10;background:#eaf2ec}
.editable-ledger tr.dirty-row [data-column="actions"]{background:#fff5db}
.column-resizer{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:12}
.column-resizer:hover{background:#50856d44}.column-list{max-height:55vh;overflow:auto;margin-top:16px;border:1px solid var(--line);border-radius:6px}
.column-setting{display:flex;align-items:center;gap:9px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:12px}
.column-setting:last-child{border-bottom:0}.column-setting>label:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.column-setting input[type="checkbox"]{accent-color:var(--green)}.column-setting small{margin-left:8px;color:#a0aca5;font-size:10px}.column-width-label{display:flex;align-items:center;gap:5px;font-size:10px;color:#91a297}.column-width-label input{width:68px;padding:5px 6px;border:1px solid var(--line);border-radius:4px;font:inherit}
.payment-select{border:1px solid #c6d7cc;background:#f5faf6;color:#416952;border-radius:4px;font:inherit;font-size:11px;max-width:100%;height:28px;padding:0 3px;cursor:pointer}
.payment-select.unpaid{background:#fff8e9;color:#9b7833;border-color:#ead9b3}.payment-select.partial{background:#eef4fc;color:#6388b3;border-color:#ccdaeb}
.draft-storage-line{font-size:10px;color:#83958a;padding:7px 16px;background:#fbfdfb;border-top:1px solid var(--line)}.storage-failed{color:#b3654f}
.recovery-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;line-height:1.8;padding:10px 16px;background:#edf5ef;border-top:1px solid #cfdfd3;color:#4e755c}.recovery-banner>span{flex:1;min-width:220px}.recovery-banner .text-button{font-size:11px}
.paste-intro p{font-size:12px;color:#82938a;line-height:1.9;margin:0 0 14px}.paste-label{display:block;font-size:12px;color:#4d6d5a;margin-bottom:7px}.paste-text{width:100%;min-height:145px;max-height:300px;resize:vertical;border:1px solid #cfddd4;border-radius:6px;background:#fbfdfc;padding:12px;font:12px/1.7 Consolas,"Microsoft YaHei",monospace;color:#455f50;white-space:pre;overflow:auto;tab-size:10}
.paste-defaults{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.paste-defaults label,.paste-column-map label,.account-form>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#688573}
.paste-defaults input,.paste-defaults select,.paste-column-map select,.account-form input,.account-form select{width:100%;min-width:0;border:1px solid #d8e3dc;border-radius:5px;padding:8px;font:12px inherit;color:#44634f;background:#fff}
.paste-defaults>.button{align-self:end;min-height:35px}.paste-mapping{padding:14px 0;border-top:1px solid var(--line);margin:12px 0}.paste-mapping h3{font-size:12px;margin:0 0 12px;color:#557961}.paste-column-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.paste-column-map small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9bad9f;font-size:10px}
.paste-summary{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:11px;background:#f0f6f1;padding:11px 13px;border:1px solid #dce8df;color:#6f8a78;border-radius:5px;margin:10px 0}.paste-summary strong{color:#3f7052;font-size:13px}.paste-error-count{color:#b5735e}.paste-context-note{font-size:11px;color:#9c8249;line-height:1.8;background:#fff8e9;padding:9px 12px;border-radius:4px}
.paste-errors{max-height:155px;overflow:auto;border:1px solid #efd5ca;border-radius:5px;padding:7px 11px;margin:11px 0;background:#fff9f6;font-size:11px;color:#b77961}.paste-errors p{margin:4px 0}.paste-duplicates{padding:10px 0}.paste-table-scroll{overflow:auto;max-height:300px;margin:14px 0}.paste-table{border-collapse:collapse;font-size:11px;width:100%;min-width:550px}.paste-table th,.paste-table td{border:1px solid #dce6df;padding:7px 9px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis;text-align:left}.paste-table th{background:#f1f6f2;color:#6a8873}.paste-table .paste-invalid td{background:#fff6ef;color:#b37860}
.account-entry{font-size:11px;max-width:125px;white-space:nowrap}.account-entry>span:last-child{overflow:hidden;text-overflow:ellipsis;max-width:90px}.account-entry svg{width:14px;height:14px}.account-summary strong{font-size:19px;color:#3b6b4c}.account-summary p{font-size:12px;line-height:1.8;color:#8c9f90}.account-form{display:flex;flex-direction:column;gap:16px}.account-form .confirm-check{flex-direction:row}.account-form .confirm-check input{width:auto}.user-list{margin-top:17px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.user-item{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid var(--line)}.user-item:last-child{border-bottom:0}.user-item strong{font-size:13px;font-weight:550;color:#57765f}.user-item small{display:block;font-size:11px;color:#96a69b;margin-top:5px}
.auth-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:28px;background:radial-gradient(ellipse at 20% 10%,#e4efe6 0,transparent 60%),#f4f7f4}
.auth-card{width:440px;max-width:100%;padding:36px 38px;background:#fff;border:1px solid #dce6dd;box-shadow:0 18px 60px #204c3010;border-radius:12px}.auth-brand{font-size:24px;letter-spacing:1px;font-weight:700;color:#275c40;margin-bottom:28px}.auth-brand span{color:#99b991}.auth-kicker{display:block;font-size:10px;color:#8a9e8e;letter-spacing:2px;margin-bottom:10px}.auth-card h1{font-size:24px;font-weight:600;color:#365c43;letter-spacing:-.5px;margin:0 0 10px}.auth-card>p{font-size:12px;color:#91a194;line-height:1.9;margin:0 0 22px}.auth-card form{display:flex;flex-direction:column;gap:15px}.auth-card form>label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#6c8774}.auth-card input{width:100%;padding:11px 12px;font-size:13px;border:1px solid #d6e1d8;border-radius:6px;background:#fcfdfc;color:#395d45}.auth-card input:focus{outline:2px solid #a2c3ac;outline-offset:1px}.auth-submit{justify-content:center;width:100%;margin-top:6px;padding:12px}.auth-footnote{margin-top:25px;padding-top:18px;border-top:1px solid #e8eee9;font-size:10px;color:#a1aea4;line-height:1.8}.auth-loading{display:flex;align-items:center;gap:10px;font-size:12px;color:#7d9685}
@media(min-width:1441px){.sidebar{width:176px;padding-left:12px;padding-right:12px}.main-content{margin-left:176px;width:calc(100% - 176px)}.workspace{padding-left:24px;padding-right:24px}.topbar{padding-left:24px;padding-right:24px}}
@media(min-width:621px) and (max-width:1440px){.sidebar{width:70px;padding:22px 10px 0}.main-content{margin-left:70px;width:calc(100% - 70px)}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-caption,.nav-item>span:not(:first-child),.sidebar-note,.sidebar-bottom>div,.sidebar-bottom>.local-dot{display:none}.nav-list{margin-top:35px}.nav-item{padding:13px;justify-content:center}.sidebar-bottom{justify-content:center;padding-left:0;padding-right:0}.workspace{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}}
@media(max-width:760px){.sheet-tools{gap:10px}.paste-defaults{grid-template-columns:repeat(2,minmax(0,1fr))}.paste-column-map{grid-template-columns:repeat(2,minmax(0,1fr))}.column-setting{gap:5px;padding:8px}.column-setting>label:first-child{font-size:11px}.column-width-label input{width:54px}.auth-card{padding:28px 24px}.auth-screen{padding:18px}.account-entry{max-width:100px}.account-entry>span:last-child{max-width:65px}}

/* Workbook-style tabs keep each order category one click away. */
.worksheet-bar{display:flex;align-items:stretch;gap:0;min-height:46px;border-top:1px solid #cdded3;background:#f2f7f3;border-radius:0 0 9px 9px;flex-shrink:0}
.worksheet-add{flex:0 0 43px;border:0;border-right:1px solid #d9e5dc;background:transparent;color:#397553;font:24px/1 "Microsoft YaHei",sans-serif;cursor:pointer}
.worksheet-add:hover{background:#e4f0e7}.worksheet-add:disabled{opacity:.4;cursor:default}
.worksheet-tabs{display:flex;align-items:stretch;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bfd3c5 transparent}
.worksheet-tab{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;max-width:210px;padding:10px 16px;border:0;border-right:1px solid #dae6de;border-bottom:3px solid transparent;background:transparent;color:#69816f;font:12px "Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap}
.worksheet-tab>span:last-child{overflow:hidden;text-overflow:ellipsis}.worksheet-tab:hover{background:#e8f1eb;color:#2f6344}.worksheet-tab.active{background:#fff;color:#254e35;border-bottom-color:var(--worksheet-color,#238565);font-weight:600}
.worksheet-color{width:6px;height:6px;background:var(--worksheet-color,#238565);border-radius:50%;flex-shrink:0}.worksheet-tab:focus-visible,.worksheet-add:focus-visible{outline:2px solid #5f9b76;outline-offset:-3px}
.worksheet-actions{display:flex;align-items:center;gap:15px;padding:0 15px;border-left:1px solid #d9e5dc;flex-shrink:0;background:#f2f7f3}.worksheet-actions .text-button{font-size:11px;white-space:nowrap}
.worksheet-manager{border:1px solid #dce6df;border-radius:7px;overflow:hidden;margin-top:16px}.worksheet-manager-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e3ebe5}.worksheet-manager-row:last-child{border-bottom:0}
.worksheet-swatch{width:10px;height:28px;border-radius:3px;flex-shrink:0}.worksheet-manager-name{flex:1;min-width:0}.worksheet-manager-name strong{display:block;font-size:13px;font-weight:550;color:#476850;overflow-wrap:anywhere}.worksheet-manager-name small{display:block;color:#91a497;font-size:10px;margin-top:4px}
.worksheet-manager-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.worksheet-manager-actions .icon-button{width:27px;height:27px;font-size:15px}.worksheet-manager-actions .text-button{font-size:11px}.worksheet-manager-actions [disabled]{opacity:.35;cursor:default}.account-form input.worksheet-color-input{height:39px;width:90px;padding:4px;cursor:pointer}
#activeWorksheetName{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#worksheetScopeTag{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.worksheet-bar{flex-wrap:wrap}.worksheet-tabs{flex-basis:calc(100% - 43px)}.worksheet-tab{padding:10px 12px;font-size:11px;max-width:160px}.worksheet-actions{width:100%;justify-content:flex-end;padding:9px 14px;border-left:0;border-top:1px solid #dde8e0}.worksheet-manager-row{gap:8px;padding:11px 9px}.worksheet-manager-actions{gap:5px}.worksheet-manager-actions .button{padding:5px 7px}.worksheet-manager-actions .icon-button{width:23px}.worksheet-manager-name strong{font-size:12px}#activeWorksheetName{max-width:180px}}
