.database-header-actions,.editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.database-header-actions .search{min-width:260px}.editor-card{margin:0 0 24px;padding:24px;scroll-margin-top:16px}.editor-card .section-title{align-items:flex-start;gap:16px}.editor-card h3{overflow-wrap:anywhere}.editor-actions a{display:inline-flex;align-items:center;text-decoration:none;font-size:13px}.editor-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 0}.editor-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px}.editor-toolbar select{min-width:160px}.editor-toolbar #edit-status{margin-left:auto;font-size:12px;color:var(--muted)}.editing #edit-status{color:var(--blue)}.formula-bar{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:7px;overflow:hidden;background:#f8fafc;min-height:40px}.formula-bar #cell-address{display:flex;align-items:center;min-width:130px;max-width:220px;padding:8px 12px;font-size:12px;overflow-wrap:anywhere}.formula-bar select{width:110px;flex-shrink:0;border:0;border-left:1px solid var(--border);border-radius:0}.formula-bar textarea{flex:1;min-width:100px;padding:9px 12px;resize:vertical;max-height:140px;border:0;border-left:1px solid var(--border);font:inherit;font-size:13px;background:white}.formula-bar textarea:disabled{background:#f8fafc;color:var(--muted)}.editor-hint{font-size:12px;color:var(--muted);margin:10px 0;line-height:1.7}.sheet-scroll{max-height:560px;min-height:180px;overflow:auto;border:1px solid #dce2ed;border-radius:6px;position:relative;background:white}.sheet-scroll[aria-busy=true]{opacity:.5;pointer-events:none}.sheet-grid{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px}.sheet-grid thead{position:sticky;top:0;z-index:3}.sheet-grid th{background:#eef2f8;color:#58677e;font-weight:500;text-align:center;padding:7px;border-right:1px solid #dce2ed;border-bottom:1px solid #dce2ed;height:32px;min-width:150px}.sheet-grid td{min-width:150px;max-width:360px;width:180px;padding:7px 9px;vertical-align:top;line-height:1.6;border-right:1px solid #e4e8ef;border-bottom:1px solid #e4e8ef;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;cursor:cell;height:36px}.sheet-grid .row-index{position:sticky;left:0;min-width:48px;width:48px;z-index:2}.sheet-grid thead .row-index{z-index:4}.sheet-grid td.selected-cell{box-shadow:inset 0 0 0 2px var(--blue)}.sheet-grid td.changed-cell{background-color:#fff9e6!important}.sheet-grid td[contenteditable=plaintext-only]:focus{background:#f1f6ff}.sheet-grid .merged-cell{background:#f8fafc;cursor:default}.sheet-grid td[contenteditable=plaintext-only]{cursor:text}.editor-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:14px}.editor-pagination>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.editor-pagination span,.editor-pagination label{font-size:12px;color:var(--muted)}.editor-pagination label{display:flex;align-items:center;gap:7px}.editor-pagination input{width:85px;height:34px}.editor-pagination button{font-size:12px;padding:7px 10px}.history-table .operations{min-width:180px;white-space:nowrap}.file-name-button{border:0;background:none;padding:0;color:var(--blue);font-weight:600;text-align:left;cursor:pointer;font-size:13px;overflow-wrap:anywhere}.history-table small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.page-header{align-items:flex-start;flex-wrap:wrap;gap:16px}.database-header-actions{width:100%}.database-header-actions .search{min-width:0;flex:1}.editor-card{padding:16px}.editor-actions{gap:8px}.formula-bar{flex-wrap:wrap}.formula-bar textarea{flex-basis:100%;border-top:1px solid var(--border);border-left:0}.sheet-scroll{max-height:480px}.editor-toolbar #edit-status{margin-left:0}.editor-card .section-title{flex-wrap:wrap}} 
.sheet-grid td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:36px;max-width:180px}.sheet-grid th{height:32px}.formula-bar textarea{line-height:1.5}
.formula-bar:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #bdcff5}.formula-bar select:focus,.formula-bar textarea:focus{outline:none;box-shadow:none}
.history-table{min-width:1400px}.history-table .audit-person{min-width:200px}.history-table .audit-time{min-width:170px;white-space:nowrap}.history-table th.operations,.history-table td.operations{position:sticky;right:0;background:white;box-shadow:-5px 0 9px #17203308;z-index:1}.history-table th.operations{background:#f8fafc}.editor-card .section-title>div:first-child{min-width:0;flex:1}.editor-card .section-title p{overflow-wrap:anywhere;line-height:1.8}

.batch-panel{padding:20px 24px;margin-bottom:24px}.batch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.batch-panel progress{width:100%;height:8px;accent-color:var(--blue);margin:16px 0}.batch-panel ul{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}.batch-panel li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13px}.batch-panel li span{overflow-wrap:anywhere;min-width:0}.batch-panel li strong{font-size:12px;font-weight:500;text-align:right}.batch-success{color:#059669}.batch-failed{color:#dc2626}.batch-queued,.batch-skipped{color:var(--muted)}.office-open{overflow:hidden}.office-overlay{position:fixed;inset:0;z-index:1000;background:#f4f6fa;display:flex;flex-direction:column}.office-overlay[hidden]{display:none}.office-header{min-height:68px;background:white;border-bottom:1px solid var(--border);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.office-header strong{display:block;font-size:15px}.office-header #office-status{font-size:12px;color:var(--muted);display:block;margin-top:5px}.office-buttons{display:flex;gap:10px;flex-shrink:0}.office-workspace{flex:1;min-height:0;position:relative}.office-workspace>div,.office-workspace>iframe{height:100%;width:100%;border:0}.office-overlay .error-box{margin:0;border-radius:0;flex-shrink:0}.office-overlay .error-box[hidden]{display:none}@media(max-width:700px){.office-header{padding:10px;flex-wrap:wrap}.office-buttons{margin-left:auto}.office-header #office-status{font-size:11px}.batch-panel{padding:16px}}

.office-buttons{flex-wrap:wrap}.office-header>div:first-child{min-width:0}.office-header strong{overflow-wrap:anywhere}.office-buttons #office-fullscreen[aria-pressed=true]{background:#e8efff;border-color:#93b4ef;color:var(--blue)}:fullscreen .office-overlay{width:100%;height:100dvh}
