.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{width:440px;max-width:100%;background:white;border:1px solid var(--border);border-radius:12px;padding:36px}.login-box h1{margin-bottom:12px}.login-box form{display:grid;gap:20px;margin-top:26px}.error{color:var(--red);white-space:pre-wrap;line-height:1.6}.modal-form{display:contents}.modal-content .form-grid{margin-bottom:22px}.modal-content .field input[type=checkbox]{width:17px;height:17px}.modal-content table input{width:85px}.modal-content table select{max-width:220px;min-width:130px}.modal-content .table-scroll{margin:16px 0}.modal-footer{flex-shrink:0}.empty-actions{display:flex;justify-content:center;gap:10px;margin-top:16px}.table-wrap{overflow:auto}.product-tabs{margin-bottom:20px}.badge-info{display:inline-block;background:#edf2ff;padding:3px 8px;border-radius:4px;color:#355ee0}.doc-id{font-size:14px;color:var(--muted);word-break:break-all}.source-content{white-space:pre-wrap;font:inherit;line-height:1.7;background:#f7f9fc;padding:16px;border-radius:7px;max-height:350px;overflow:auto}.attachment-strip{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.attachment-strip img{height:120px;width:100px;object-fit:cover;border-radius:6px}.modal-wide{width:min(1120px,100%)}.sticky-actions{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:15px 20px;z-index:2}.date-custom{position:absolute;right:0;top:44px;width:650px;background:white;border:1px solid var(--border);border-radius:10px;padding:20px;z-index:20;box-shadow:0 15px 40px #25334b20}.date-custom input{width:150px}.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-top:10px;text-align:center}.calendar-days button{min-height:28px;padding:3px;border:0}.calendar-days button.active{background:var(--blue);color:white}.calendar-days button.range{background:#eef3ff;color:var(--blue)}.calendar-days span{font-size:14px;color:var(--muted);padding:4px 0}.calendar-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.calendar-top button{padding:4px 9px;min-height:28px}.date-grid{display:grid;grid-template-columns:85px 1fr 1fr;gap:17px}.date-grid .presets{gap:5px}.panel:has(.date-custom){overflow:visible}.stat-strip{display:flex;gap:28px;flex-wrap:wrap;padding:20px 22px;border-bottom:1px solid var(--border)}.stat-strip strong{font-size:22px;font-weight:600;display:block;margin-top:7px}.select-full{width:100%}.wrap-cell{min-width:190px;max-width:380px;white-space:normal;line-height:1.7}.small-actions{display:flex;gap:5px;flex-wrap:wrap}.login-note{margin-top:25px;color:var(--muted);line-height:1.8}.doc-lines td{height:50px}.btn-group{display:flex;gap:8px;flex-wrap:wrap}.inventory-form input{width:95px}.primary.loading{opacity:.6;pointer-events:none}.issue-list{padding-left:18px;line-height:1.8;margin:0}.sidebar{overflow-y:auto}.main-actions{display:flex;gap:8px;flex-wrap:wrap}.readonly-data{padding:12px 16px;border-radius:6px;background:#f6f8fc;line-height:1.8}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}.comparison img{max-width:100%;max-height:600px;object-fit:contain}.side-totals{display:flex;gap:20px;flex-wrap:wrap;padding:16px;background:#f5f8ff;border-radius:6px;margin:16px 0}.field-note{color:var(--muted);line-height:1.6;margin-bottom:16px}.busy-banner{padding:80px;text-align:center;color:var(--muted)}.form-section{margin:22px 0 12px}.table-scroll input[type=checkbox]{width:17px}.modal-content .check-label{margin-top:15px}.topbar{position:relative;z-index:3}.topbar .link{font-size:14px}.page-title .main-actions{justify-content:flex-end}.single-line{white-space:nowrap}.menu-note{color:var(--muted);padding:9px 12px;line-height:1.6}.period-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.period-grid .panel-body{display:flex;flex-direction:column;gap:15px}
@media(max-width:1100px){.comparison{grid-template-columns:1fr}.period-grid{grid-template-columns:1fr}.match-layout{grid-template-columns:1fr}.date-custom{width:620px}.form-grid{grid-template-columns:repeat(2,1fr)}}
.review-upload{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.review-upload input[type=file]{max-width:270px}.review-summary{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:14px 18px;background:#f7f9fc}.review-summary strong{font-size:18px}.review-filters{display:flex;gap:10px;flex-wrap:wrap;padding:12px 18px}.review-filters select{max-width:240px}.review-filters input{min-width:240px}.review-grid>.table-scroll{max-height:440px;overflow:auto;margin:0}.review-grid thead th{position:sticky;top:0;background:#f7f9fc;z-index:1}.review-grid td{padding:12px 16px;height:auto;min-height:56px}.review-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid var(--border);background:white}.review-pager select{min-width:70px;width:70px}.review-selection{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:10px 18px;background:#f5f8ff}.review-modal{width:min(1240px,96vw)}.review-modal .modal-content{padding:16px 20px}.review-modal .review-grid>.table-scroll{max-height:30vh}.review-modal .review-confirm{margin-top:14px;margin-bottom:10px}.review-tools{margin:10px 0}.review-tabs{overflow-x:auto}.review-panel>.notice{border-radius:0}.job-errors>.table-scroll{max-height:35vh}progress{width:100%;height:20px;accent-color:var(--blue)}
.count-table>.table-scroll{max-height:38vh;overflow:auto}.count-table thead th{position:sticky;top:0;z-index:1;background:#f7f9fc}.count-table td{padding:12px 14px;height:auto}.count-table .wrap-cell{min-width:200px;max-width:300px;overflow-wrap:anywhere}.count-filters{padding:14px 0;flex-wrap:wrap}.count-filters input[type=search]{width:340px;max-width:100%}.count-pager{padding:12px 0;flex-wrap:wrap;gap:12px}.count-pager .row{flex-wrap:wrap}.count-upload{margin-top:16px;padding:18px;text-align:left}.count-upload .row{justify-content:flex-start;flex-wrap:wrap}.count-upload input[type=file]{max-width:320px}.count-confirm{margin:16px 0}.count-table input.count-actual{width:100px}
.list-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--border);background:#fff}.list-pager>.row{flex-wrap:wrap;gap:8px}.list-pager input{width:64px}.list-pager>span{color:var(--muted)}.match-layout .list-pager{align-items:flex-start}.match-layout .list-pager .row{gap:6px}.list-pager label{white-space:nowrap}
.orders-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px}.orders-search{justify-content:flex-end;align-items:flex-start}.orders-filters .date-custom{left:0;right:auto}.orders-filters .date-wrap>button{width:100%;white-space:normal;text-align:left}.orders-grid .table-scroll{max-height:65vh;overflow:auto}.orders-grid th{position:sticky;top:0;background:#f7f9fc;z-index:1}.orders-grid .wrap-cell{min-width:160px;max-width:280px;overflow-wrap:anywhere}.order-detail-value{overflow-wrap:anywhere;margin-top:8px}.panel:has(.orders-filters){overflow:visible}@media(max-width:1100px){.orders-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
