.notes-title-row{display:flex;align-items:center;gap:10px}.notes-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #d9e1dd;border-radius:12px;background:#f5f7f6}.notes-tab{appearance:none;border:0;border-radius:9px;background:transparent;color:#61706a;padding:8px 16px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.notes-tab:hover{background:#fff}.notes-tab.active{background:#fff;color:#405d53;box-shadow:0 1px 5px rgba(52,73,66,.12)}.notes-sheet-workbook-bar{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.notes-sheet-book-tabs{min-width:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.notes-sheet-book-tab,.notes-sheet-book-add{appearance:none;border:1px solid #d7dfdb;background:#f5f7f6;color:#5c6d66;border-radius:8px;padding:5px 10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.notes-sheet-book-tab:hover,.notes-sheet-book-add:hover{background:#fff;border-color:#bdcbc5}.notes-sheet-book-tab.active{background:#fff;color:#3f6256;border-color:#aebfb7;box-shadow:0 1px 4px rgba(52,73,66,.10)}.notes-sheet-book-add{width:30px;padding-inline:0;font-size:16px;line-height:1}.notes-sheet-name{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;font-weight:800}.notes-sheet-name-input{width:145px;max-width:42vw;height:30px;border:1px solid #d7dfdb;border-radius:8px;background:#fff;padding:4px 8px;color:var(--text);font:inherit;font-size:12px;font-weight:750;outline:none}.notes-sheet-name-input:focus{border-color:#91aaa3;box-shadow:0 0 0 3px rgba(95,124,119,.10)}
.notes-sheet-panel{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);overflow:hidden}.notes-sheet-scroll{max-width:100%;overflow-x:auto;overflow-y:auto;max-height:65vh;overscroll-behavior-inline:contain;scrollbar-gutter:auto}.notes-sheet-table{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.notes-sheet-table th,.notes-sheet-table td{box-sizing:border-box;border-left:1px solid #e0e6e2;border-bottom:1px solid #e7ece9;padding:0}.notes-sheet-table th:last-child,.notes-sheet-table td:last-child{border-left:0}.notes-sheet-table thead th{position:relative;height:48px;background:#eef2f0;color:#465852;vertical-align:middle}.notes-sheet-table tbody td{height:42px;background:#fff}.notes-sheet-table tbody tr:nth-child(even) td{background:#fbfcfb}.notes-sheet-table tbody tr:hover td{background:#f7faf8}.notes-sheet-table tfoot td{height:48px;background:#f1f5f3;border-bottom:0}.notes-sheet-column-head{position:relative;height:100%;padding:4px 5px 18px;display:block}.notes-sheet-title-input{min-width:0;width:100%;border:0;border-bottom:1px solid transparent;background:transparent;padding:3px;color:#40514b;font:inherit;font-size:11px;font-weight:850;outline:none}.notes-sheet-title-input:focus{border-bottom-color:#8ca59b;background:#fff}.notes-sheet-sum-toggle{position:absolute;inset-inline-start:5px;bottom:3px;display:inline-flex;align-items:center;gap:2px;color:#66766f;font-size:8px;font-weight:800;cursor:pointer;white-space:nowrap}.notes-sheet-sum-toggle input{width:12px;height:12px;margin:0}.notes-sheet-column-delete,.notes-sheet-row-add,.notes-sheet-row-delete,.notes-sheet-actions-head button{appearance:none;border:1px solid transparent;background:transparent;border-radius:7px;font:inherit;font-weight:850;cursor:pointer}.notes-sheet-column-delete{position:absolute;inset-inline-end:4px;bottom:1px;width:18px;height:18px;padding:0;color:#9a6259;font-size:15px;line-height:16px}.notes-sheet-column-delete:hover,.notes-sheet-row-delete:hover{background:#fff2ef;border-color:#efd8d1}.notes-sheet-resizer{position:absolute;left:-5px;top:0;width:10px;height:100%;cursor:col-resize;touch-action:none;z-index:3}.notes-sheet-resizer::after{content:"";position:absolute;left:4px;top:11px;bottom:11px;width:1px;background:#cfd8d3}.notes-sheet-resizer:hover::after,.notes-sheet-resizer.dragging::after{width:2px;background:#78978b}.notes-sheet-cell{display:block;width:100%;height:41px;border:0;background:transparent;padding:8px 10px;color:var(--text);font:inherit;font-size:13px;outline:none}.notes-sheet-cell:focus{background:#fff;box-shadow:inset 0 0 0 2px rgba(95,124,119,.24)}.notes-sheet-cell.numeric{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.notes-sheet-actions-col{width:78px}.notes-sheet-actions-head{width:78px;text-align:center!important;vertical-align:middle!important}.notes-sheet-actions-head button{width:34px;height:34px;background:#fff;border-color:#d7dfdb;color:#55766b;font-size:19px}.notes-sheet-row-actions{width:78px;padding:4px 6px!important;text-align:center;white-space:nowrap}.notes-sheet-row-add,.notes-sheet-row-delete{width:29px;height:29px;margin:0 2px;font-size:17px}.notes-sheet-row-add{color:#55766b}.notes-sheet-row-add:hover{background:#edf5f1;border-color:#d5e3dc}.notes-sheet-row-delete{color:#9a6259}.notes-sheet-empty-row td{padding:28px 16px!important;text-align:center;color:var(--muted);font-size:12px}.notes-sheet-total-cell{padding:7px 10px!important;text-align:left!important;direction:ltr}.notes-sheet-total-cell span{display:block;color:#74817c;font-size:9px;font-weight:800;direction:rtl;text-align:left}.notes-sheet-total-cell b{display:block;margin-top:2px;color:#334a42;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:780px){.notes-title-row{width:100%}.notes-tabs{width:100%}.notes-tab{flex:1}.notes-sheet-workbook-bar{align-items:stretch}.notes-sheet-book-tabs{width:100%}.notes-sheet-name{width:100%;justify-content:space-between}.notes-sheet-name-input{flex:1;max-width:none}.notes-sheet-panel{border-radius:14px}.notes-sheet-actions-col,.notes-sheet-actions-head,.notes-sheet-row-actions{width:72px}.notes-sheet-sum-toggle{font-size:8px}}

/* Compact spreadsheet chrome, frozen labels and one clear active cell. */
.notes-tabs{width:auto;flex-shrink:0;padding:3px;border-radius:7px}
.notes-tab{padding:6px 13px;border-radius:4px;font-size:12px}
.notes-sheet-panel{--sheet-green:#217346;border-radius:7px;box-shadow:0 2px 10px #153d2610;color:#24352b}
.notes-sheet-table{min-width:0;margin:0!important;font-family:Aptos,Calibri,"Segoe UI",Arial,sans-serif}
.notes-sheet-table thead th{position:sticky;top:0;z-index:4;height:auto;background:#f2f4f3}
.notes-sheet-column-letter{text-align:center;font-size:11px;line-height:23px;background:#e8edea;border-bottom:1px solid #cdd6d0;font-weight:500;direction:ltr}
.notes-sheet-column-head{height:51px;padding:4px 5px 20px}
.notes-sheet-title-input{font-size:12px;font-weight:600}
.notes-sheet-sum-toggle{font-size:10px;bottom:4px;gap:4px}
.notes-sheet-sum-toggle input{accent-color:var(--sheet-green)}
.notes-sheet-table tbody td{height:32px;background:#fff}
.notes-sheet-table tbody tr:nth-child(even) td{background:#fff}
.notes-sheet-table tbody tr:hover td{background:#f8fbf9}
.notes-sheet-cell{resize:none;overflow:auto;white-space:pre;line-height:24px;height:32px;padding:4px 7px;font-size:14px;border-radius:0!important;min-width:0}
.notes-sheet-cell:focus{background:#fff;box-shadow:inset 0 0 0 2px var(--sheet-green)}
.notes-sheet-index-col{width:42px}
.notes-sheet-table .notes-sheet-row-index,.notes-sheet-table .notes-sheet-corner{position:sticky;inset-inline-start:0;text-align:center!important;background:#edf1ef;color:#58645c;font-size:11px;min-width:42px;width:42px;z-index:2;font-weight:500}
.notes-sheet-table .notes-sheet-corner{z-index:6}
.notes-sheet-table tbody tr:focus-within .notes-sheet-row-index{background:#d9ede1;color:#185b36;box-shadow:inset -3px 0 var(--sheet-green)}
.notes-sheet-table tfoot td{position:sticky;bottom:0;z-index:3;height:43px;background:#eaf3ed;border-top:1px solid #b9cfc1}
.notes-sheet-table tfoot .notes-sheet-row-index{z-index:5}
.notes-sheet-actions-col,.notes-sheet-actions-head,.notes-sheet-row-actions{width:65px}
.notes-sheet-row-actions{padding:0 2px!important}
.notes-sheet-row-add,.notes-sheet-row-delete{width:26px;height:27px;margin:0;font-size:16px}
.notes-sheet-workbook-bar{margin:0;padding:7px 10px;border-top:1px solid #dce4df;background:#f4f6f5;gap:8px}
.notes-sheet-book-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;flex:1}
.notes-sheet-book-tab,.notes-sheet-book-add{border:0;border-radius:0;background:transparent;font-size:12px;white-space:nowrap;padding:7px 12px;flex-shrink:0}
.notes-sheet-book-tab.active{box-shadow:inset 0 -3px var(--sheet-green);color:var(--sheet-green);background:#fff}
.notes-sheet-manage{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.notes-sheet-name-input{border-radius:4px}
.notes-sheet-status{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:7px 10px;font-size:11px;color:#637069;border-top:1px solid #dce4df;background:#fafcfb}
.notes-workbook-view{min-width:0;max-width:100%}
.spreadsheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 2px;font-size:12px;color:#42624e}
.spreadsheet-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}
.spreadsheet-toolbar [data-state="error"],.spreadsheet-toolbar [data-state="conflict"]{color:#a52d23}
.spreadsheet-editor{border:0;padding:0;margin:0;min-width:0;width:100%}
.spreadsheet-editor:disabled{opacity:.7}
.notes-sheet-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;border-top:1px solid #dce4df;font-size:12px;background:#fafcfb}
.spreadsheet-backups>div{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}
.notes-workbook-view .notes-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.notes-workbook-heading{display:flex;align-items:center;gap:12px;flex:1;min-width:0;flex-wrap:wrap}
.notes-workbook-search{min-width:100px;width:260px;max-width:100%;height:34px;border:1px solid #d7dfdb;border-radius:5px;padding:5px 10px;font:inherit;font-size:12px;background:#fff}
.notes-sheet-panel button:focus-visible,.notes-tab:focus-visible{outline:2px solid #217346;outline-offset:2px}
@media(max-width:780px){.notes-sheet-workbook-bar{padding:7px}.notes-sheet-book-tabs{flex-basis:100%}.notes-sheet-manage{width:100%}.notes-sheet-name{width:auto;flex:1}.notes-sheet-name-input{width:90px}.notes-sheet-status{font-size:10px}.notes-sheet-scroll{max-height:60vh}.notes-sheet-panel{border-radius:7px}}
