.modal-backdrop--worksheet{padding:12px}
.modal--worksheet{width:calc(100vw - 24px);max-width:1800px;height:calc(var(--app-viewport-height,100dvh) - 24px);max-height:calc(var(--app-viewport-height,100dvh) - 24px);display:flex;flex-direction:column;overflow:hidden;border-radius:18px}
.modal--worksheet .modal__head{flex:none;padding:16px 20px}.modal--worksheet .modal__head h2{font-size:18px}.modal--worksheet .modal__head p{font-size:12px}
.modal--worksheet .modal__body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:0;gap:0}
.modal--worksheet .modal__foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;flex:none;padding:10px 18px;background:#f7fafb;border-top:1px solid #dce6eb}
.ows-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px 18px;background:#fff;flex:none}.ows-tools label{display:grid;gap:5px;font-size:11px;font-weight:600;min-width:0}.ows-work{flex:2 1 280px}.ows-search{flex:1 1 230px}
.ows-tools select,.ows-tools input{width:100%;min-width:0;border:1px solid #cfdee6;border-radius:9px;min-height:40px;padding:8px 10px;color:#193c50;background:white;font:inherit;font-size:12px}.ows-tools .btn{min-height:40px;font-size:12px}
.ows-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px 12px;font-size:11px;color:#647d8b;flex:none;flex-wrap:wrap}.ows-status [data-ows-status]{color:#177650}.ows-status [data-ows-status]::before{content:'';display:inline-block;width:7px;height:7px;background:currentColor;border-radius:50%;margin-right:6px}.ows-status .ows-offline{color:#9b650a}
.ows-formula{display:flex;align-items:center;gap:10px;flex:none;border-block:1px solid #dce6eb;background:#f8fafb;padding:6px 12px;min-height:44px}.ows-formula [data-ows-coordinate]{width:60px;text-align:center;font:12px Arial,sans-serif;flex:none}.ows-fx{color:#8096a3;font:italic 16px Georgia,serif;border-left:1px solid #dce6eb;padding-left:12px}.ows-formula input{border:0;background:transparent;flex:1;min-width:0;padding:4px;font:12px Arial,sans-serif;color:#193c50}.ows-formula .icon-btn{width:34px;height:30px;flex:none}
.ows-scroll{overflow:auto;flex:1;min-width:0;min-height:130px;overscroll-behavior:contain;background:#fff;scrollbar-gutter:stable}
.ows-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font:12px/1.5 Arial,sans-serif;color:#244454;margin:0}
.ows-grid th,.ows-grid td{padding:9px 12px;min-width:0;border:0;border-right:1px solid #e0e7eb;border-bottom:1px solid #e0e7eb;text-align:left;white-space:nowrap;max-width:400px;overflow:hidden;text-overflow:ellipsis;height:40px;text-transform:none;letter-spacing:normal}
.ows-grid thead th{position:sticky;background:#f3f7f9;z-index:3;font-size:11px;font-weight:600}.ows-grid thead .ows-letters th{top:0;height:28px;padding:3px 10px;text-align:center;color:#718996;background:#f4f7f8}.ows-grid thead .ows-labels th{top:28px;height:52px;padding:4px 10px;color:#0d4566;background:#eaf3f8}.ows-grid thead .ows-filters th{top:80px;height:38px;padding:4px 8px;background:#f8fafb}
.ows-grid thead button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;width:100%;height:42px;padding:0;border:0;background:transparent;color:inherit;font:600 11px/1.5 Arial,sans-serif;cursor:pointer}.ows-grid thead button span:first-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal}.ows-grid thead button span:last-child{color:#87a0ac}
.ows-grid thead th[aria-sort=ascending] button span:last-child,.ows-grid thead th[aria-sort=descending] button span:last-child{color:#0a849e}
.ows-grid .ows-filters input{display:block;width:100%;min-width:0;border:1px solid #dce6eb;border-radius:5px;background:#fff;padding:5px 7px;height:28px;font:11px Arial,sans-serif;color:#244454}
.ows-grid tr>th:first-child{position:sticky;left:0;z-index:2;min-width:48px;width:48px;padding:7px;text-align:center;background:#f4f7f8;color:#6d8795;font-weight:400}.ows-grid thead tr>th:first-child{z-index:6}.ows-grid .ows-filters th:first-child svg{width:14px;height:14px;margin:auto}
.ows-grid tbody tr:nth-child(even) td{background:#fbfdfe}.ows-grid tbody tr:hover td{background:#f1f8fb}.ows-grid td[aria-selected=true]{background:#e6f5fa!important;box-shadow:inset 0 0 0 2px #1681a2;outline:none}.ows-grid td:focus-visible{outline:2px solid #1681a2;outline-offset:-2px}.ows-grid td.ows-percent,.ows-grid td.ows-currency,.ows-grid td.ows-number{text-align:right;font-variant-numeric:tabular-nums}.ows-grid td.ows-date{font-variant-numeric:tabular-nums}.ows-grid .ows-empty{padding:24px;white-space:normal;color:#718996;text-align:center;max-width:none}
.ows-tabs{display:flex;gap:5px;align-items:center;flex:1;min-width:0}.ows-tabs button{padding:9px 18px;min-height:38px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:#647d8b;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.ows-tabs button[aria-selected=true]{background:#fff;border-color:#dce6eb;border-bottom-color:#1582a0;color:#0d4566}.ows-count{font-size:11px;color:#718996;white-space:nowrap}
@media(max-width:650px){.modal-backdrop--worksheet{padding:0}.modal--worksheet{width:100vw;max-width:100vw;height:var(--app-viewport-height,100dvh);max-height:var(--app-viewport-height,100dvh);border-radius:0}.modal--worksheet .modal__head{padding:12px}.modal--worksheet .modal__head h2{font-size:15px}.modal--worksheet .modal__head p{font-size:10px;line-height:1.5}.ows-tools{padding:10px;gap:8px}.ows-work{flex:1 1 100%}.ows-search{flex:1 1 100%}.ows-tools .btn{flex:1}.ows-status{padding:0 10px 8px;font-size:10px}.ows-formula{padding:4px 8px;gap:5px}.ows-formula [data-ows-coordinate]{width:38px}.modal--worksheet .modal__foot{padding:7px 10px;gap:8px}.ows-tabs{flex:1 1 100%}.ows-tabs button{flex:1;padding:8px}.ows-count{flex:1}.modal--worksheet .modal__foot>.btn{min-height:36px;padding:7px 12px;font-size:11px}}
@media(max-width:650px) and (max-height:680px){.modal--worksheet .modal__head p{display:none}.modal--worksheet .modal__head{padding:10px 12px}.ows-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 10px}.ows-tools label{font-size:10px}.ows-tools .btn{padding:7px;font-size:11px;min-height:34px}.ows-status{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;font-size:9px;padding-bottom:6px}.ows-status span{white-space:nowrap}.ows-formula{min-height:36px}.ows-tabs{flex:1 1 auto}.ows-tabs button{padding:7px 8px;min-height:34px;font-size:11px}.modal--worksheet .modal__foot{gap:7px}.ows-count{display:none}.ows-scroll{min-height:170px}}
