.spreadsheet-workspace{display:flex;flex-direction:column;gap:18px;min-width:0}.spreadsheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.spreadsheet-header h1{margin:4px 0 6px;font-size:30px;line-height:1.1}.spreadsheet-header p{margin:0;max-width:760px;color:var(--text-muted,#637083);font-size:14px}.spreadsheet-eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#1769aa}.spreadsheet-header-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.spreadsheet-header-meta span{border:1px solid #dce5ef;background:#fff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700;color:#536274}.spreadsheet-header-meta .online{color:#126a43;background:#edf9f3;border-color:#ccebdc}.spreadsheet-header-meta .offline{color:#8b5b12;background:#fff8e8;border-color:#f0dfb7}.spreadsheet-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dfe7f0;border-radius:14px;background:#fff;overflow:hidden}.spreadsheet-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-right:1px solid #e7edf4}.spreadsheet-summary>div:last-child{border-right:0}.spreadsheet-summary span{font-size:12px;color:#6d7887;font-weight:700}.spreadsheet-summary strong{font-size:20px;color:#172234}.spreadsheet-panel{background:#fff;border:1px solid #dfe7f0;border-radius:16px;box-shadow:0 10px 30px rgba(24,46,77,.06);overflow:hidden}.spreadsheet-tabs{display:flex;gap:4px;padding:10px 12px 0;border-bottom:1px solid #e5ebf2}.spreadsheet-tabs button{appearance:none;border:0;background:transparent;padding:10px 16px;border-radius:9px 9px 0 0;font:inherit;font-size:13px;font-weight:800;color:#6a7685;cursor:pointer}.spreadsheet-tabs button.active{background:#eef6ff;color:#075ea7;box-shadow:inset 0 -2px #1672c4}.spreadsheet-toolbar{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #e7edf4;background:#fbfcfe}.spreadsheet-search{height:38px;min-width:280px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #d7e1eb;border-radius:9px;background:#fff}.spreadsheet-search svg{width:16px;height:16px;color:#7b8795}.spreadsheet-search input{border:0;outline:0;width:100%;font:inherit;font-size:13px;background:transparent}.spreadsheet-filter{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#637083}.spreadsheet-filter select{height:38px;border:1px solid #d7e1eb;border-radius:9px;background:#fff;padding:0 28px 0 10px;font:inherit;font-size:13px}.spreadsheet-toolbar-spacer{flex:1}.spreadsheet-toolbar .secondary-button{white-space:nowrap}.spreadsheet-help{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 12px;background:#f7faff;color:#647386;font-size:11px;border-bottom:1px solid #e7edf4}.spreadsheet-help span{display:flex;align-items:center;gap:6px}.spreadsheet-help svg{width:14px;height:14px}.spreadsheet-message{margin:10px 12px 0;padding:10px 12px;border-radius:9px;font-size:12px;font-weight:700}.spreadsheet-message.info{background:#eef6ff;color:#175e9b}.spreadsheet-message.success{background:#ecf8f2;color:#126a43}.spreadsheet-message.error{background:#fff0f0;color:#9b2f2f}.spreadsheet-grid-wrap{max-width:100%;max-height:calc(100vh - 390px);overflow:auto}.spreadsheet-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.spreadsheet-grid th,.spreadsheet-grid td{height:42px;border-right:1px solid #e9eef4;border-bottom:1px solid #e9eef4;padding:0;background:#fff;vertical-align:middle}.spreadsheet-grid th{position:sticky;top:0;z-index:3;background:#f5f8fb;color:#4d5b6a;text-align:left;font-size:11px;font-weight:800;letter-spacing:.01em;resize:horizontal;overflow:hidden}.spreadsheet-grid th button{width:100%;height:100%;border:0;background:transparent;text-align:left;padding:0 10px;font:inherit;color:inherit;cursor:pointer}.spreadsheet-grid th.editable-heading{background:#eef6ff;color:#155f9f}.spreadsheet-grid tbody tr:hover td{background:#fbfdff}.spreadsheet-grid tbody tr.selected td{background:#f2f8ff}.spreadsheet-select-col{position:sticky;left:0;z-index:2;width:42px;min-width:42px;text-align:center!important;background:#f8fafc!important}.spreadsheet-grid thead .spreadsheet-select-col{z-index:5}.spreadsheet-row-number{position:sticky;left:42px;z-index:2;width:52px;min-width:52px;text-align:center!important;color:#8793a2;background:#f8fafc!important}.spreadsheet-grid thead .spreadsheet-row-number{z-index:5}.spreadsheet-grid td.read-cell{padding:0 10px;color:#4e5c6b}.spreadsheet-grid td.editable-cell{background:#fff}.spreadsheet-grid input[data-sheet-input]{display:block;width:100%;height:100%;box-sizing:border-box;border:0;outline:0;background:transparent;padding:0 10px;font:inherit;font-size:12px;color:#1f2b38}.spreadsheet-grid input[data-sheet-input]:hover{background:#f8fbff}.spreadsheet-grid input[data-sheet-input]:focus{background:#fff;box-shadow:inset 0 0 0 2px #1c78ca;position:relative;z-index:1}.spreadsheet-grid input[type=number]{text-align:right}.money-cell{display:block;text-align:right;font-variant-numeric:tabular-nums}.quantity-cell{display:inline-flex;align-items:center;justify-content:flex-end;min-width:54px;font-weight:800;font-variant-numeric:tabular-nums}.quantity-cell.low{color:#a46600}.quantity-cell.out{color:#b33636}.quantity-cell.ok{color:#1a6a4d}.sheet-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef2f6;color:#5e6b79;font-size:10px;font-weight:800}.sheet-status.pending{background:#fff4da;color:#855a08}.muted-cell{color:#929dab;font-size:11px}.spreadsheet-empty{padding:34px;text-align:center;color:#7a8795}.spreadsheet-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;color:#6d7887;font-size:12px}.spreadsheet-footer>div{display:flex;align-items:center;gap:10px}.spreadsheet-footer .compact{min-height:32px;padding:0 11px}@media(max-width:1100px){.spreadsheet-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.spreadsheet-summary>div:nth-child(2){border-right:0}.spreadsheet-summary>div:nth-child(-n+2){border-bottom:1px solid #e7edf4}.spreadsheet-toolbar{flex-wrap:wrap}.spreadsheet-toolbar-spacer{display:none}.spreadsheet-search{flex:1;min-width:220px}.spreadsheet-grid-wrap{max-height:calc(100vh - 460px)}}@media(max-width:720px){.spreadsheet-header{flex-direction:column}.spreadsheet-header-meta{justify-content:flex-start}.spreadsheet-summary{grid-template-columns:1fr 1fr}.spreadsheet-toolbar{align-items:stretch}.spreadsheet-search{min-width:100%}.spreadsheet-filter{flex:1}.spreadsheet-help{align-items:flex-start;flex-direction:column}.spreadsheet-grid-wrap{max-height:none}.spreadsheet-footer{align-items:flex-start;flex-direction:column}.spreadsheet-footer>div{width:100%;justify-content:space-between}}
.spreadsheet-actionbar{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #e7edf4;background:#fff}.spreadsheet-excel-label{display:flex;align-items:center;gap:9px;min-width:185px}.spreadsheet-excel-label>div{display:flex;flex-direction:column;gap:1px}.spreadsheet-excel-label strong{font-size:12px;color:#273446}.spreadsheet-excel-label small{font-size:10px;color:#7a8795}.spreadsheet-excel-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#137333;color:#fff;font-size:13px;font-weight:900}.spreadsheet-actionbar-spacer{flex:1}.spreadsheet-actionbar button{white-space:nowrap}
.spreadsheet-import-backdrop{position:fixed;inset:0;z-index:120;background:rgba(20,31,45,.52);display:flex;align-items:center;justify-content:center;padding:24px}.spreadsheet-import-modal{width:min(1120px,96vw);max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(10,24,44,.28);overflow:hidden}.spreadsheet-import-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid #e7edf4}.spreadsheet-import-header h2{margin:3px 0 5px;font-size:24px}.spreadsheet-import-header p{margin:0;color:#6b7888;font-size:12px}.spreadsheet-import-close{width:36px;height:36px;border:1px solid #dbe4ed;border-radius:9px;background:#fff;color:#687586;font-size:24px;line-height:1;cursor:pointer}.spreadsheet-import-close:disabled{opacity:.45;cursor:not-allowed}.spreadsheet-import-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #e7edf4}.spreadsheet-import-summary>div{padding:12px 16px;border-right:1px solid #e7edf4;display:flex;align-items:center;justify-content:space-between;gap:10px}.spreadsheet-import-summary>div:last-child{border-right:0}.spreadsheet-import-summary span{font-size:11px;color:#768292;font-weight:700}.spreadsheet-import-summary strong{font-size:18px}.spreadsheet-import-summary .new strong{color:#14754a}.spreadsheet-import-summary .update strong{color:#1769aa}.spreadsheet-import-summary .warning strong{color:#9a6400}.spreadsheet-import-summary .error strong{color:#a83434}.spreadsheet-import-blockers{margin:12px 16px 0;border:1px solid #f0caca;background:#fff5f5;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.spreadsheet-import-blockers>div{display:flex;gap:8px;align-items:flex-start;color:#8c3030;font-size:12px}.spreadsheet-import-blockers svg{width:15px;height:15px;flex:none;margin-top:1px}.spreadsheet-import-guidance{margin:12px 16px 0;border-radius:10px;padding:10px 12px;display:flex;align-items:flex-start;gap:9px;font-size:12px}.spreadsheet-import-guidance svg{width:16px;height:16px;flex:none;margin-top:1px}.spreadsheet-import-guidance.ready{background:#edf9f3;color:#126a43;border:1px solid #ccebdc}.spreadsheet-import-guidance.blocked{background:#fff8e8;color:#835a13;border:1px solid #efdfb8}.spreadsheet-import-progress{margin:12px 16px 0;display:flex;align-items:center;gap:12px;font-size:11px;font-weight:700;color:#536274}.spreadsheet-import-progress>div{flex:1;height:7px;border-radius:99px;background:#e8eef5;overflow:hidden}.spreadsheet-import-progress i{display:block;height:100%;background:#1769aa;border-radius:99px}.spreadsheet-import-table-wrap{margin:12px 16px 0;border:1px solid #e1e8f0;border-radius:10px;overflow:auto;min-height:160px;max-height:45vh}.spreadsheet-import-table{width:100%;border-collapse:collapse;font-size:11px}.spreadsheet-import-table th{position:sticky;top:0;z-index:1;background:#f5f8fb;color:#536171;text-align:left;padding:9px 10px;border-bottom:1px solid #e1e8f0;white-space:nowrap}.spreadsheet-import-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;color:#4d5a69;vertical-align:top}.spreadsheet-import-table tbody tr:last-child td{border-bottom:0}.spreadsheet-import-issue{max-width:260px;color:#7c5960!important}.import-status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap;background:#eef2f6;color:#596675}.import-status.new{background:#e9f8f0;color:#126a43}.import-status.update{background:#eaf4ff;color:#165f9e}.import-status.unchanged{background:#f0f2f5;color:#677382}.import-status.warning{background:#fff4d8;color:#8b5d08}.import-status.error{background:#fff0f0;color:#9b3030}.spreadsheet-import-more{padding:8px 18px 0;color:#788595;font-size:10px}.spreadsheet-import-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin-top:12px;border-top:1px solid #e7edf4;background:#fbfcfe}.spreadsheet-import-footer>div:first-child{display:flex;flex-direction:column;gap:2px}.spreadsheet-import-footer>div:first-child strong{font-size:11px;color:#344254}.spreadsheet-import-footer>div:first-child span{font-size:10px;color:#778494}.spreadsheet-import-footer>div:last-child{display:flex;align-items:center;gap:8px}
@media(max-width:900px){.spreadsheet-actionbar{flex-wrap:wrap}.spreadsheet-actionbar-spacer{display:none}.spreadsheet-excel-label{flex:1}.spreadsheet-import-summary{grid-template-columns:repeat(5,minmax(86px,1fr));overflow-x:auto}.spreadsheet-import-modal{max-height:94vh}.spreadsheet-import-footer{align-items:flex-start;flex-direction:column}.spreadsheet-import-footer>div:last-child{width:100%;justify-content:flex-end}}
@media(max-width:620px){.spreadsheet-import-backdrop{padding:8px}.spreadsheet-import-modal{width:100%;max-height:97vh;border-radius:13px}.spreadsheet-import-header{padding:16px}.spreadsheet-import-summary{display:flex;overflow-x:auto}.spreadsheet-import-summary>div{min-width:110px}.spreadsheet-actionbar button{flex:1}.spreadsheet-excel-label{min-width:100%}.spreadsheet-import-footer>div:last-child{justify-content:stretch}.spreadsheet-import-footer button{flex:1}}

.spreadsheet-tabs{overflow-x:auto;scrollbar-width:thin}.spreadsheet-tabs button{white-space:nowrap;flex:none}.spreadsheet-readonly-note{background:#f8fafc;color:#556575}.spreadsheet-readonly-note svg{color:#1769aa}.spreadsheet-grid td.read-cell .money-cell{font-weight:700;color:#273446}

.spreadsheet-productivity-bar{position:relative;gap:8px}
.spreadsheet-tool-menu{position:relative}
.spreadsheet-tool-menu>summary{list-style:none;cursor:pointer;border:1px solid #d7e1eb;border-radius:9px;background:#fff;padding:9px 12px;font-size:12px;font-weight:800;color:#445264;min-width:74px;text-align:center}
.spreadsheet-tool-menu>summary::-webkit-details-marker{display:none}
.spreadsheet-tool-menu[open]>summary{border-color:#9fc5e8;background:#f3f8fe;color:#135f9f}
.spreadsheet-tool-menu>summary span,.spreadsheet-bulk-button span{display:inline-flex;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;border-radius:999px;background:#eaf3fc;color:#1769aa;font-size:10px;margin-left:4px}
.spreadsheet-tool-popover{position:absolute;right:0;top:calc(100% + 7px);z-index:30;width:230px;padding:10px;background:#fff;border:1px solid #dce5ef;border-radius:12px;box-shadow:0 18px 50px rgba(19,42,70,.16);display:flex;flex-direction:column;gap:7px}
.spreadsheet-tool-popover button{width:100%;min-height:34px;border:0;border-radius:8px;background:#f7f9fc;color:#344254;text-align:left;padding:0 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.spreadsheet-tool-popover button:hover{background:#eef5fc}
.spreadsheet-tool-popover button.primary-button{background:#1769aa;color:#fff;text-align:center}
.spreadsheet-tool-popover small{font-size:10px;color:#7c8896;line-height:1.35}
.spreadsheet-tool-divider{height:1px;background:#e7edf4;margin:2px 0}
.spreadsheet-view-popover label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#5d6a79}
.spreadsheet-view-popover input{height:35px;border:1px solid #d8e1eb;border-radius:8px;padding:0 9px;font:inherit;font-size:12px;outline:none}
.spreadsheet-view-popover input:focus{border-color:#1769aa;box-shadow:0 0 0 2px rgba(23,105,170,.1)}
.spreadsheet-saved-view{display:grid;grid-template-columns:1fr 30px;gap:5px}
.spreadsheet-saved-view button:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spreadsheet-saved-view .spreadsheet-view-delete{display:grid;place-items:center;padding:0;background:#fff0f0;color:#9d3434;text-align:center}
.spreadsheet-column-popover{max-height:340px;overflow:auto}
.spreadsheet-column-choice{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:12px;color:#405064}
.spreadsheet-column-choice input{accent-color:#1769aa}
.spreadsheet-bulk-modal{width:min(620px,95vw);background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(10,24,44,.28);overflow:hidden}
.spreadsheet-bulk-body{padding:18px 20px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.spreadsheet-bulk-body label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#556273}
.spreadsheet-bulk-body select,.spreadsheet-bulk-body input{height:40px;border:1px solid #d7e1eb;border-radius:9px;background:#fff;padding:0 10px;font:inherit;font-size:13px}
.spreadsheet-bulk-warning{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border:1px solid #dce9f6;border-radius:9px;background:#f5f9fd;color:#526274;font-size:11px;line-height:1.4}
.spreadsheet-bulk-warning svg{width:15px;height:15px;flex:none;margin-top:1px}
@media(max-width:900px){.spreadsheet-productivity-bar{align-items:stretch}.spreadsheet-tool-menu{flex:1}.spreadsheet-tool-menu>summary{width:100%;box-sizing:border-box}.spreadsheet-tool-popover{left:0;right:auto;width:min(260px,85vw)}}
@media(max-width:620px){.spreadsheet-productivity-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.spreadsheet-productivity-bar .spreadsheet-excel-label{grid-column:1/-1}.spreadsheet-productivity-bar .spreadsheet-actionbar-spacer{display:none}.spreadsheet-bulk-button{width:100%}.spreadsheet-bulk-body{grid-template-columns:1fr}}
