/* A familiar worksheet, framed by Magellano branding. */
.sheet-mode{background:#f6f8fa;color:#202124;height:100vh;overflow:hidden;color-scheme:light}
.sheet-mode #workspace{height:100vh;display:flex;flex-direction:column}.sheet-mode nav{background:#101318;color:#f5f6f7;height:60px;min-height:60px;padding:0 20px;gap:24px}.sheet-mode nav input,.sheet-mode nav select,.sheet-mode nav button{color-scheme:dark;background:#161b22;color:#e8eaed}.sheet-mode .brand{font-size:20px}.sheet-mode .layout{display:flex;flex:1;min-height:0;flex-direction:column}.sheet-mode aside{padding:0 18px;display:flex;gap:5px;background:#fff;border-right:0;border-bottom:1px solid #dadce0;min-height:38px;flex-shrink:0}.sheet-mode aside>.eyebrow,.sheet-mode .sidefooter{display:none}.sheet-mode .navbtn{width:auto;margin:0;padding:10px 14px;border-radius:0;color:#62666d;font-size:12px}.sheet-mode .navbtn.active{background:#fff;border-bottom:2px solid #e43838;color:#bb2828}.sheet-mode main{padding:0;max-width:none;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;width:100%}.workbook-title{display:flex;align-items:center;gap:12px;background:#fff;padding:12px 20px;flex-shrink:0}.workbook-title h1{font-size:19px;letter-spacing:-.3px;margin:0;font-weight:400}.workbook-title p{margin:3px 0 0;color:#666;font-size:11px}.file-icon{width:35px;height:42px;border-radius:5px;background:#d93636;color:#fff;display:grid;place-items:center;font-size:27px}.save-status{margin-left:20px;color:#65736a}.save-status.error{color:#b32424}.workbook-actions{margin-left:auto}.sheet-mode button{color:#3c4043;background:#fff;border-color:#dadce0;padding:7px 12px;font-size:12px}.sheet-mode .sheet-toolbar button{border:0;background:transparent;font-size:16px;padding:5px 9px}.sheet-mode .sheet-toolbar #refreshSheet{font-size:12px}.sheet-toolbar{display:flex;align-items:center;gap:4px;padding:6px 16px;background:#edf0f4;border-top:1px solid #e3e6ea;border-bottom:1px solid #dadce0;min-height:42px;flex-shrink:0}.tool-separator{height:20px;width:1px;background:#cbd0d6;margin:0 8px}.font-name{width:55px;font-size:13px}.sheet-toolbar input{width:220px;background:#fff;border:1px solid #d4d8dd;color:#222;padding:6px 10px;font-size:12px}.sheet-help{font-size:10px;margin-left:auto;color:#656a72;padding-left:15px}.formula-bar{height:33px;min-height:33px;background:#fff;border-bottom:1px solid #c8ccd0;display:flex;align-items:center;font-size:12px}.formula-bar input{background:#fff;color:#202124;border:0;border-radius:0;padding:6px 12px;font-size:12px;outline-offset:-2px}.formula-bar #cellAddress{width:100px;text-align:center;border-right:1px solid #dadce0}.fx{width:38px;text-align:center;color:#92969c;font-style:italic}.formula-bar #formulaValue{flex:1;min-width:0}.formula-bar #cellPermission{color:#8c9198;font-size:10px;padding:0 14px;white-space:nowrap}.sheet-scroll{overflow:auto;flex:1;min-height:0;outline:none;position:relative;background:#fff;scroll-padding:155px 10px 10px 330px}.sheet-grid{table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:'72',Arial,sans-serif;font-size:12px;color:#24282d;width:max-content;min-width:100%;user-select:none}.sheet-grid col{width:125px}.sheet-grid .row-number-col{width:46px}.summary-grid .col-0{width:52px}.summary-grid .col-1{width:230px}.summary-grid .col-2{width:270px}.summary-grid .col-3{width:320px}.summary-grid .col-4{width:220px}.summary-grid .col-5{width:340px}.summary-grid .col-6{width:180px}.summary-grid .col-7{width:280px}.summary-grid .col-8{width:300px}.summary-grid .col-9{width:300px}.summary-grid .col-10{width:320px}.supplier-grid .col-0{width:240px}.supplier-grid .col-1{width:560px}.supplier-grid .col-2{width:440px}.sheet-grid th,.sheet-grid td{padding:0;min-width:0;border:0;border-right:1px solid #dce0e5;border-bottom:1px solid #dce0e5;border-radius:0;vertical-align:top;text-align:left;line-height:1.4;background:#fff;position:relative;color:#202124;font-size:12px;font-weight:400}.sheet-grid td{height:28px;cursor:cell;overflow:visible}.sheet-grid .cell-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:6px 8px;min-height:27px;max-height:180px;overflow:hidden}.sheet-grid th{color:#666d75;background:#f5f6f7;text-align:center;vertical-align:middle;font-size:11px;height:27px;padding:4px;position:sticky;left:0;z-index:4}.sheet-grid thead{position:sticky;top:0;z-index:10}.sheet-grid thead th{height:27px;text-transform:none;letter-spacing:0;background:#f0f2f4}.sheet-grid thead .corner{z-index:15}.sheet-grid tbody tr:hover td{background:#fff}.sheet-grid td.yellow,.sheet-grid tbody tr:hover td.yellow{background:#fff2cc}.sheet-grid td.section-cell,.sheet-grid tbody tr:hover td.section-cell{background:#d9e2f3;font-weight:700}.summary-grid tr[data-row="3"] td,.summary-grid tr[data-row="3"]:hover td{background:#1f3864;color:#fff;font-weight:700;height:40px}.sheet-grid td.label-cell{font-weight:700}.sheet-grid .frozen-row td,.sheet-grid .frozen-row th{position:sticky;z-index:6}.sheet-grid .freeze-0 td,.sheet-grid .freeze-0 th{top:27px;height:30px}.sheet-grid .freeze-1 td,.sheet-grid .freeze-1 th{top:57px;height:30px}.sheet-grid .freeze-2 td,.sheet-grid .freeze-2 th{top:87px;height:28px}.sheet-grid .freeze-3 td,.sheet-grid .freeze-3 th{top:115px;height:40px;border-bottom:2px solid #a6adb7}.sheet-grid .frozen-col{position:sticky;z-index:5}.sheet-grid .frozen-col-0{left:46px}.sheet-grid .frozen-col-1{left:98px;border-right:2px solid #b4bbc4}.sheet-grid .frozen-row .frozen-col{z-index:8}.sheet-grid .frozen-row th{z-index:9}.sheet-grid td.range-cell{box-shadow:inset 0 0 0 9999px #e4383812}.sheet-grid td.selected-cell{outline:2px solid #de3434;outline-offset:-2px;z-index:7}.sheet-grid .frozen-row td.selected-cell{z-index:9}.sheet-grid .cell-link{border:0!important;background:transparent!important;padding:0!important;color:#1558b0!important;text-align:left;text-decoration:underline;line-height:1.4;cursor:pointer;font:inherit;white-space:pre-wrap}.sheet-grid td .cell-editor{position:absolute;inset:0;width:100%;height:max(100%,70px);min-height:70px;z-index:20;resize:both;background:#fff;color:#202124;border:2px solid #d93636;border-radius:0;font:inherit;line-height:1.4;padding:5px 7px;box-shadow:0 3px 12px #0003;user-select:text;outline:none}.sheet-bottom{height:44px;min-height:44px;background:#f4f6f8;border-top:1px solid #cbd0d7;display:flex;align-items:stretch}.sheet-tabs{display:flex;align-items:stretch;overflow-x:auto;flex:1;min-width:0;scrollbar-width:thin}.sheet-mode .sheet-tab{white-space:nowrap;border:0;border-right:1px solid #e0e3e7;border-radius:0;background:transparent;padding:0 20px;font-size:12px}.sheet-mode .sheet-tab.selected{color:#b82525;background:#fce7e7;border-top:2px solid #d93636;font-weight:700}.selection-info{padding:13px 15px;font-size:10px;color:#757b84;border-left:1px solid #d0d5dc;white-space:nowrap}.save-problem{background:#fff0f0;padding:12px 18px;color:#a02121;font-size:12px;display:flex;gap:15px;align-items:center;border-top:1px solid #e0a6a6}.save-problem span{flex:1}.sheet-mode dialog{background:#fff;color:#202124;color-scheme:light}.sheet-mode dialog input,.sheet-mode dialog textarea,.sheet-mode dialog select{background:#fff;color:#222}.sheet-mode dialog label{color:#555}.sheet-mode .history small{color:#707780}.sheet-mode .history del{color:#a02828}.sheet-mode .history ins{color:#247440}.sheet-mode #toast{color:#f3f4f5}.sheet-mode #sheetGrid tbody tr[hidden]{display:none!important}.sheet-mode .primary{background:#d93636;color:#fff}.sheet-mode .credential{color:#222}
@media(max-width:850px){.sheet-help{display:none}.sheet-mode nav{flex-wrap:nowrap;min-height:58px;padding:0 12px}.sheet-mode .navright{width:auto;margin-left:auto;flex-wrap:nowrap;gap:6px}.sheet-mode .navright #identity,.sheet-mode .navright #passwordBtn{display:none}.sheet-mode .navright select{width:82px;padding:6px}.workbook-title{padding:10px 12px}.workbook-title h1{font-size:16px}.workbook-actions button{font-size:10px}.save-status{display:block;margin:2px 0 0}.selection-info{display:none}.formula-bar #cellPermission{display:none}.sheet-toolbar{padding:6px}.sheet-toolbar input{width:180px}.font-name{width:25px}.sheet-mode .brand{font-size:15px}.sheet-mode .brand span{font-size:8px;margin-left:3px}.sheet-mode aside{min-height:34px;padding:0 6px}.sheet-mode .navbtn{padding:8px 10px;font-size:11px}.file-icon{display:none}}
@media(max-width:650px){.summary-grid .frozen-col-1{position:relative;left:auto;border-right:1px solid #dce0e5}.sheet-scroll{scroll-padding-left:100px}.sheet-grid td .cell-editor{resize:none}.sheet-toolbar input{width:130px}}
.summary-grid thead th:nth-child(2){left:46px;z-index:12}.summary-grid thead th:nth-child(3){left:98px;z-index:12;border-right:2px solid #b4bbc4}
@media(max-width:650px){.summary-grid thead th:nth-child(3){position:relative;left:auto;z-index:auto;border-right:1px solid #dce0e5}}
.column-resize{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:20;touch-action:none}.column-resize:hover{background:#d93636}
.summary-grid .col-11{width:330px}.workbook-actions{display:flex;gap:8px}.sheet-scroll.file-dragover{outline:4px dashed #d93636;outline-offset:-7px;background:#fff4f4}.document-controls{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.document-drop{border:2px dashed #b7bec8;border-radius:10px;padding:28px 20px;display:grid;justify-items:center;gap:14px;text-align:center}.document-drop.active{border-color:#d93636;background:#fceaea}.document-drop small{font-size:11px}.pending-document,.document-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #dce0e5;padding:13px 0;font-size:12px;overflow-wrap:anywhere}.pending-document small{margin-left:10px}.document-item small{display:block;line-height:1.6;margin-top:7px;font-size:10px}.document-list{margin-top:15px}.document-download{color:#1558b0!important;white-space:nowrap;font-size:12px}#uploadDocuments{margin-top:15px}#documentProgress{font-size:12px}.website-link{color:#1558b0!important}@media(max-width:650px){.document-controls{grid-template-columns:1fr}.documents-label{display:none}.workbook-actions{gap:4px}.workbook-title h1{font-size:14px}.workbook-actions button{padding:6px 7px}}

/* Uniform worksheet rows: fixed geometry, full text in value bar and tooltip. */
.sheet-grid tbody tr:not(.frozen-row){height:40px}
.sheet-grid tbody tr:not(.frozen-row)>td,.sheet-grid tbody tr:not(.frozen-row)>th{height:40px;padding:0;vertical-align:middle}
.sheet-grid tbody tr:not(.frozen-row) .cell-text{height:39px;min-height:39px;max-height:39px;padding:10px 8px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.sheet-grid .cell-text .cell-link{display:block;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;line-height:18px}
.sheet-grid .frozen-row .cell-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px;min-height:0}
.sheet-grid .freeze-0 .cell-text,.sheet-grid .freeze-1 .cell-text{height:29px;max-height:29px;padding:5px 8px}
.sheet-grid .freeze-2 .cell-text{height:27px;max-height:27px;padding:4px 8px}
.sheet-grid .freeze-3 .cell-text{height:38px;max-height:38px;padding:10px 8px}
.sheet-grid td .cell-editor{white-space:pre-wrap}
