.company-cashbook{gap:16px;min-width:0;max-width:none;display:grid}.company-cashbook h2,.company-cashbook h3,.company-cashbook p{margin:0}.company-cashbook small{color:var(--muted);line-height:1.6;display:block}.cashbook-header,.cashbook-section-head,.cashbook-actions,.cashbook-pagination{justify-content:space-between;align-items:center;gap:12px;display:flex}.cashbook-header h2{font-size:21px}.cashbook-header p{color:var(--muted);margin-top:6px;font-size:12px}.cashbook-actions{flex-wrap:wrap;justify-content:flex-start}.cashbook-actions button,.cashbook-section-head button,.cashbook-pagination button,.cashbook-drawer button,.cashbook-filter button{color:var(--green);font:inherit;cursor:pointer;background:#fff;border:1px solid #cfdcd5;border-radius:6px;padding:8px 12px}.cashbook-actions button.primary,.cashbook-drawer button.primary,.cashbook-filter button.primary{background:var(--green);color:#fff;border-color:var(--green)}.company-cashbook button:disabled{opacity:.48;cursor:not-allowed}.cashbook-notice,.cashbook-feedback{background:#f0f7f3;border:1px solid #d8e5de;border-radius:8px;padding:11px 14px;font-size:12px;line-height:1.7}.cashbook-notice.warn,.cashbook-feedback.error{color:#8c4c19;background:#fff7eb;border-color:#f0d5b4}.cashbook-feedback.error{color:#a2362d}.cashbook-balance,.cashbook-records{border:1px solid var(--line);background:#fff;border-radius:9px;min-width:0;padding:18px}.cashbook-total{flex-wrap:wrap;align-items:baseline;gap:13px;margin:16px 0 13px;display:flex}.cashbook-total b{letter-spacing:-.4px;font-variant-numeric:tabular-nums;font-size:28px}.cashbook-total>span{color:var(--muted);font-size:12px}.cashbook-account-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.cashbook-account-card{text-align:left;border:1px solid var(--line);min-width:0;color:var(--ink);font:inherit;cursor:pointer;background:#fbfcfb;border-radius:8px;padding:13px}.cashbook-account-card strong{overflow-wrap:anywhere;font-size:13px;display:block}.cashbook-account-card b{font-variant-numeric:tabular-nums;margin:10px 0 5px;font-size:21px;display:block}.cashbook-account-card small{font-size:11px}.cashbook-account-card.negative{background:#fff8f7;border-color:#efc9c5}.cashbook-account-card.negative b,.cashbook-negative{color:#b13a2e}.cashbook-empty{text-align:center;color:var(--muted);padding:28px 15px;font-size:13px;line-height:1.8}.cashbook-section-head h3{font-size:15px}.cashbook-filter{flex-wrap:wrap;align-items:end;gap:10px;margin:16px 0;display:flex}.cashbook-filter label,.cashbook-drawer label:not(.cashbook-check){color:#485a50;gap:6px;font-size:12px;font-weight:600;display:grid}.cashbook-filter input,.cashbook-filter select,.cashbook-drawer input:not([type=checkbox]),.cashbook-drawer select,.cashbook-drawer textarea{color:var(--ink);min-height:35px;font:inherit;background:#fff;border:1px solid #ccd8d1;border-radius:6px;min-width:0;padding:7px 9px}.cashbook-filter label{flex:1;min-width:130px}.cashbook-filter .cashbook-query{flex:1.6;min-width:190px}.cashbook-table-wrap{width:100%;overflow:auto}.cashbook-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:790px;font-size:12px}.cashbook-table th{color:#697a70;text-align:left;background:#f5f8f6;padding:10px 9px;font-weight:600}.cashbook-table td{border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;padding:13px 9px}.cashbook-table th:first-child{width:135px}.cashbook-table th:nth-child(2){width:24%}.cashbook-table th:nth-child(3){width:95px}.cashbook-table th:nth-child(4){text-align:right;width:145px}.cashbook-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cashbook-table th:last-child{width:65px}.cashbook-table .link{font-size:inherit;padding:0}.cashbook-table td small{margin-top:5px;font-size:10px}.cashbook-inflow{color:#16764f}.cashbook-outflow{color:#a44535}.cashbook-pagination{justify-content:flex-end;margin-top:14px;font-size:12px}.cashbook-tag{color:#64746a;background:#eef3f0;border-radius:4px;padding:2px 5px;font-size:10px;display:inline-block}.cashbook-overlay{z-index:100;background:#10251b66;justify-content:flex-end;display:flex;position:fixed;inset:0}.cashbook-drawer{background:#fff;width:min(560px,100vw);height:100%;padding:22px 24px 28px;overflow:auto;box-shadow:-6px 0 26px #10251b18}.cashbook-drawer .cashbook-section-head{border-bottom:1px solid var(--line);margin-bottom:18px;padding-bottom:17px}.cashbook-drawer .cashbook-section-head h3{font-size:18px}.cashbook-drawer form{gap:15px;display:grid}.cashbook-drawer textarea{resize:vertical;min-height:65px}.cashbook-drawer fieldset{border:1px solid var(--line);border-radius:7px;gap:9px;padding:12px;display:grid}.cashbook-drawer fieldset legend{color:#485a50;padding:0 4px;font-size:12px}.cashbook-check{color:#485a50;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;display:flex}.cashbook-check input{flex:none;margin:4px 0 0}.cashbook-drawer dl{grid-template-columns:100px minmax(0,1fr);gap:11px 12px;font-size:12px;line-height:1.7;display:grid}.cashbook-drawer dt{color:var(--muted)}.cashbook-drawer dd{overflow-wrap:anywhere;margin:0}.cashbook-drawer .cashbook-actions{margin-top:12px}.cashbook-drawer section+section{margin-top:22px}.cashbook-drawer .cashbook-notice{margin:12px 0}.cashbook-drawer button.link{background:0 0;border:0;padding:0}.cashbook-form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.cashbook-history{color:#637269;padding-left:20px;font-size:12px;line-height:1.8}.cashbook-history li{margin:8px 0}.cashbook-reconcile{background:#f5f8f6;border-radius:7px;padding:12px;font-size:13px;line-height:1.8}.cashbook-user-list{grid-template-columns:1fr 1fr;gap:8px;max-height:180px;display:grid;overflow:auto}.cashbook-user-list label{font-weight:400}.cashbook-associated{gap:8px;display:grid}.cashbook-associated>div{border:1px solid var(--line);border-radius:6px;padding:10px;font-size:12px;line-height:1.7}.cashbook-source-search{gap:8px;display:flex}.cashbook-source-search input{flex:1}.cashbook-source-option{border:1px solid var(--line);border-radius:6px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.cashbook-source-option span{overflow-wrap:anywhere;min-width:0;font-size:12px}.cashbook-source-option button{flex:none}.cashbook-sources{gap:8px;max-height:280px;display:grid;overflow:auto}.cashbook-owner-summary{color:var(--muted);flex-wrap:wrap;gap:10px;margin-top:13px;font-size:11px;display:flex}@media (max-width:1100px){.cashbook-header{align-items:flex-start}.cashbook-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:700px){.company-cashbook{padding:16px}.cashbook-header{display:grid}.cashbook-account-grid{grid-template-columns:1fr}.cashbook-balance,.cashbook-records{padding:13px}.cashbook-form-row{grid-template-columns:1fr}.cashbook-drawer{padding:18px}.cashbook-pagination{flex-wrap:wrap;justify-content:space-between}}.cashbook-scope-summary{color:#50675a;padding:10px 0 14px;font-size:12px;line-height:1.8}.cashbook-class-view{flex-wrap:wrap;align-items:center;gap:14px;font-size:12px;display:flex}.cashbook-class-view button{color:var(--green);cursor:pointer;background:#fff;border:1px solid #d4e1d9;border-radius:6px;padding:7px 11px}.cashbook-class-view button[aria-pressed=true]{border-color:var(--green);background:#e8f4ec;font-weight:600}.cashbook-class-view details{position:relative}.cashbook-class-view summary,.cashbook-notice summary{cursor:pointer;color:var(--green)}.cashbook-class-view details[open]{gap:8px;display:flex}.cashbook-class-view details[open] summary{margin-bottom:7px}.cashbook-notice .link{margin-left:8px}.cashbook-notice details{margin:7px 0}.cashbook-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0;line-height:1.7;overflow:hidden}.cashbook-detail-overlay{justify-content:center;align-items:center;padding:24px}.cashbook-detail-dialog{border-radius:12px;flex-direction:column;width:min(960px,100vw - 48px);height:auto;max-height:calc(100vh - 48px);padding:0;display:flex;overflow:auto;box-shadow:0 12px 44px #10251b33}.cashbook-detail-dialog>.cashbook-section-head{z-index:2;background:#fff;margin:0;padding:20px 24px;position:sticky;top:0}.cashbook-detail-layout{grid-template-columns:minmax(0,1fr);min-height:0;display:grid}.cashbook-detail-layout.has-purchase{grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr)}.cashbook-detail-summary{min-width:0;padding:18px 24px}.cashbook-detail-summary dl{grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:14px 12px;margin:0}.cashbook-detail-dialog .cashbook-detail-amount{font-variant-numeric:tabular-nums;font-size:25px;font-weight:700;line-height:1.3}.cashbook-record-status{color:#277653;font-size:12px;display:inline-block}.cashbook-record-status.corrected{color:#96661c}.cashbook-purchase-summary{border-left:1px solid var(--line);min-width:0;padding:20px 22px;margin:0!important}.cashbook-purchase-summary h4{margin:0 0 8px;font-size:14px}.cashbook-detail-hint{color:var(--muted);font-size:11px;line-height:1.7;margin-bottom:10px!important}.cashbook-purchase-lines{max-height:min(340px,42vh);margin:12px 0;overflow:auto}.cashbook-purchase-lines table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px}.cashbook-purchase-lines th{z-index:1;color:var(--muted);text-align:right;white-space:nowrap;background:#f4f7f5;padding:9px 6px;font-size:11px;font-weight:600;position:sticky;top:0}.cashbook-purchase-lines th:first-child{text-align:left;width:96px}.cashbook-purchase-lines td{border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums;vertical-align:middle;padding:9px 6px}.cashbook-purchase-lines td:first-child{text-align:left}.cashbook-product-image{align-items:center;gap:6px;min-width:0;display:flex}.cashbook-product-image img,.cashbook-product-image i{object-fit:contain;width:48px;height:48px;color:var(--muted);background:#f4f7f5;border:1px solid #e4eae6;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;font-style:normal;display:flex}.cashbook-product-image small{overflow-wrap:anywhere;max-width:65px;font-size:10px;line-height:1.4}.cashbook-drawer .cashbook-purchase-totals{background:#f1f7f3;border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:10px 0;padding:12px;font-size:12px}.cashbook-purchase-totals dd{text-align:right;font-variant-numeric:tabular-nums}.cashbook-detail-dialog .cashbook-more-info{border-top:1px solid var(--line);margin:0 24px 18px;padding-top:12px;font-size:12px}.cashbook-more-info summary{cursor:pointer;color:var(--green);font-size:12px}.cashbook-detail-footer{z-index:2;border-top:1px solid var(--line);background:#fff;justify-content:flex-end;gap:10px;padding:15px 24px;display:flex;position:sticky;bottom:0}.cashbook-detail-dialog>p[role]{margin:10px 24px}.cashbook-detail-summary .cashbook-notice{margin-bottom:0}@media (max-width:760px){.cashbook-detail-overlay{padding:12px}.cashbook-detail-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.cashbook-detail-layout.has-purchase{grid-template-columns:1fr}.cashbook-purchase-summary{border-left:0;border-top:1px solid var(--line)}.cashbook-detail-summary,.cashbook-purchase-summary{padding:16px}.cashbook-detail-dialog>.cashbook-section-head,.cashbook-detail-footer{padding:14px 16px}.cashbook-purchase-lines th:first-child{width:90px}.cashbook-detail-dialog .cashbook-more-info{margin-left:16px;margin-right:16px}}.inventory-movements{min-width:0}.inventory-movement-filters{grid-template-columns:minmax(155px,1.4fr) minmax(110px,1fr) minmax(138px,1fr) minmax(138px,1fr) auto;align-items:end;gap:10px;padding:12px 0;display:grid}.inventory-movement-filters label{min-width:0;color:var(--muted);gap:5px;font-size:12px;display:grid}.inventory-movement-filters input,.inventory-movement-filters select{border:1px solid var(--line);width:100%;min-width:0;height:34px;color:var(--ink);font:inherit;background:#fff;border-radius:6px;padding:0 8px}.inventory-movement-search{grid-column:1/-1;align-items:start;gap:8px;display:flex}.inventory-movement-search .multi-search-input{flex:1;width:100%;max-width:none;min-height:36px}.inventory-movement-search button{flex:none}.inventory-movement-scope{color:var(--muted);margin:4px 0 12px;font-size:12px;line-height:1.6}.inventory-movement-error{color:#8a4e20;background:#fff4e9;border-radius:6px;padding:10px;font-size:12px}.inventory-movement-error button{margin-left:12px}.inventory-movement-table-wrap{width:100%;overflow:auto}.inventory-movement-table{table-layout:fixed;width:1040px;min-width:1040px;max-width:100%}.inventory-movement-table .movement-time{width:100px}.inventory-movement-table .movement-business{width:80px}.inventory-movement-table .movement-warehouse{width:100px}.inventory-movement-table .movement-product{width:280px}.inventory-movement-table .movement-quantity{width:80px}.inventory-movement-table .movement-unit-cost{width:92px}.inventory-movement-table .movement-amount{width:123px}.inventory-movement-table .movement-source{width:185px}.inventory-movement-table th,.inventory-movement-table td{vertical-align:middle;padding:11px 9px;font-size:12px}.inventory-movement-table th{white-space:nowrap;word-break:normal}.inventory-movement-table td{overflow:hidden}.inventory-movement-table td:first-child{white-space:nowrap}.inventory-movement-table .movement-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:normal}.inventory-movement-table small{color:var(--muted);white-space:normal;margin-top:4px;font-size:11px;line-height:1.5;display:block}.inventory-movement-clamp,.inventory-movement-product-cell .inventory-product-title,.inventory-movement-product-cell>div>b{-webkit-line-clamp:2;overflow-wrap:anywhere;white-space:normal;text-align:left;-webkit-box-orient:vertical;max-width:100%;line-height:1.5;display:-webkit-box;overflow:hidden}.inventory-movement-product-cell{align-items:center;gap:8px;min-width:0;display:flex}.inventory-movement-product-cell>div{flex:1;min-width:0}.inventory-movement-product-cell img{object-fit:contain;flex:none;max-width:38px}.inventory-movement-product-cell small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.inventory-movement-source-button{text-overflow:ellipsis;white-space:nowrap;text-align:left;max-width:100%;display:block;overflow:hidden}.inventory-movement-table td:last-child>.copyable-identifier{max-width:100%}.inventory-movement-empty{text-align:center;height:130px;color:var(--muted)}.movement-negative{color:#a34332}.movement-positive{color:var(--green)}.inventory-movement-pagination{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px;font-size:12px;display:flex}.inventory-movement-pagination>span{margin-right:auto}.inventory-movement-pagination label{white-space:nowrap;align-items:center;gap:5px;display:flex}.inventory-movement-pagination select,.inventory-movement-pagination input{border:1px solid var(--line);width:64px;height:32px;font:inherit;background:#fff;border-radius:5px;padding:0 6px}.inventory-movement-detail{flex-direction:column;height:100dvh;max-height:100dvh;width:min(660px,94vw)!important;max-width:660px!important;padding:0!important;display:flex!important;overflow:hidden!important}.inventory-movement-detail>.dhead{border-bottom:1px solid var(--line);flex:none;margin:0;padding:18px 22px}.inventory-movement-detail>.dhead h2{margin:0 0 5px;font-size:19px}.inventory-movement-detail>.dhead small{color:var(--muted);font-size:12px}.inventory-movement-detail-body{flex:1;min-height:0;padding:20px 22px;font-size:13px;overflow:auto}.inventory-movement-event{border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:center;gap:18px;margin:12px 0;padding:14px 0;display:flex}.inventory-movement-event strong{font-variant-numeric:tabular-nums;margin-left:auto}.inventory-movement-fields,.inventory-movement-technical dl{grid-template-columns:120px minmax(0,1fr);gap:12px;margin:18px 0;display:grid}.inventory-movement-field{display:contents}.inventory-movement-fields dt,.inventory-movement-technical dt{color:var(--muted)}.inventory-movement-fields dd,.inventory-movement-technical dd{overflow-wrap:anywhere;white-space:pre-line;margin:0}.inventory-movement-technical{color:var(--muted);margin-top:20px;font-size:12px}.inventory-movement-technical summary{cursor:pointer}.inventory-movement-detail-footer{border-top:1px solid var(--line);background:#fff;flex-wrap:wrap;flex:none;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex}.inventory-movement-detail-footer button{min-height:36px}@media (min-width:1600px){.inventory-movement-table{width:1160px;min-width:1160px}.inventory-movement-table .movement-business{width:84px}.inventory-movement-table .movement-warehouse{width:110px}.inventory-movement-table .movement-product{width:320px}.inventory-movement-table .movement-quantity{width:86px}.inventory-movement-table .movement-unit-cost{width:96px}.inventory-movement-table .movement-amount{width:132px}.inventory-movement-table .movement-source{width:232px}}@media (max-width:1100px){.inventory-movement-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-movement-filters>button{grid-column:1/-1;justify-self:start}.inventory-movement-table th,.inventory-movement-table td{padding-left:7px;padding-right:7px}}.inventory-movement-source-actions{align-items:center;gap:4px;min-width:0;display:flex}.inventory-movement-source-actions>.inventory-movement-source-button{flex:1;min-width:0}.inventory-movement-source-actions>.copyable-identifier{flex:none}
