.school-excel-workbench { --sew-line:#dbe5ef; --sew-ink:#173754; --sew-muted:#728297; --sew-blue:#1369a5; min-width:0; padding:18px; border:1px solid var(--sew-line); border-radius:14px; background:#fff; color:var(--sew-ink); }
.school-excel-workbench * { box-sizing:border-box; }
.school-excel-workbench [hidden] { display:none!important; }
.school-excel-workbench h3,.school-excel-workbench h4,.school-excel-workbench p { margin:0; }
.school-excel-workbench .sew-heading,.school-excel-workbench .sew-selection-title,.school-excel-workbench .sew-analysis-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.school-excel-workbench .sew-heading h3 { font-size:18px; line-height:1.5; }
.school-excel-workbench .sew-heading p { font-size:12px; line-height:1.7; color:var(--sew-muted); margin-top:4px; }
.school-excel-workbench .sew-private { flex:0 0 auto; color:#496d81; background:#eef5f8; padding:6px 10px; border-radius:6px; font-size:12px; }
.school-excel-workbench .sew-import,.school-excel-workbench .sew-sheet-bar,.school-excel-workbench .sew-view-controls,.school-excel-workbench .sew-range-controls { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; margin-top:16px; }
.school-excel-workbench label { display:flex; flex-direction:column; gap:5px; margin:0; font-size:12px; color:var(--sew-muted); min-width:0; }
.school-excel-workbench input,.school-excel-workbench select,.school-excel-workbench button { font:inherit; margin:0; box-shadow:none; }
.school-excel-workbench select,.school-excel-workbench input:not([type=checkbox]):not([type=file]) { height:36px; min-height:36px; border:1px solid var(--sew-line); border-radius:7px; padding:6px 9px; color:var(--sew-ink); background:#fff; line-height:22px; }
.school-excel-workbench select { width:360px; max-width:100%; }
.school-excel-workbench .sew-sheet-bar label { flex:0 1 420px; }
.school-excel-workbench .sew-sheet-bar select { width:100%; }
.school-excel-workbench .sew-import>label:first-child { flex:1 1 280px; }
.school-excel-workbench .sew-import>label:first-child select { width:100%; }
.school-excel-workbench button { height:36px; min-height:36px; border:1px solid var(--sew-line); border-radius:7px; background:#fff; color:var(--sew-ink); padding:0 12px; font-size:12px; line-height:34px; font-weight:600; white-space:nowrap; cursor:pointer; }
.school-excel-workbench button:hover { background:#f1f6fc; border-color:#b6ccdf; }
.school-excel-workbench button:disabled { opacity:.55; cursor:wait; }
.school-excel-workbench .sew-file-label { border:1px dashed #b6cbdd; border-radius:7px; padding:6px 10px; color:var(--sew-blue); }
.school-excel-workbench input[type=file] { font-size:12px; max-width:280px; width:100%; }
.school-excel-workbench .sew-status { padding:10px 12px; margin-top:14px; background:#f3f7fb; border-radius:7px; font-size:12px; line-height:1.6; color:#546d83; min-height:40px; }
.school-excel-workbench .sew-status.is-error { background:#fff5ee; color:#9c4725; }
.school-excel-workbench .sew-sheet-bar>span,.school-excel-workbench .sew-view-controls>span { color:var(--sew-muted); font-size:12px; line-height:1.6; align-self:center; }
.school-excel-workbench .sew-view-controls input { width:82px; }
.school-excel-workbench .sew-grid-wrap { margin-top:12px; overflow:auto; height:min(58vh,620px); min-height:240px; max-width:100%; border:1px solid var(--sew-line); border-radius:8px; background:#fff; overscroll-behavior:contain; scrollbar-gutter:stable; }
.school-excel-workbench table.sew-grid { display:table!important; table-layout:fixed!important; border-collapse:separate!important; border-spacing:0!important; max-width:none!important; min-width:0!important; margin:0!important; font-size:12px; }
.school-excel-workbench .sew-grid thead { display:table-header-group!important; }
.school-excel-workbench .sew-grid tbody { display:table-row-group!important; }
.school-excel-workbench .sew-grid tr { display:table-row!important; }
.school-excel-workbench .sew-grid th,.school-excel-workbench .sew-grid td { display:table-cell!important; padding:8px 10px!important; height:38px; min-width:0!important; border:0!important; border-right:1px solid #e5ecf2!important; border-bottom:1px solid #e5ecf2!important; vertical-align:top; line-height:20px; overflow:hidden; }
.school-excel-workbench .sew-grid thead th { position:sticky; top:0; z-index:3; background:#eaf1f8; color:#4d6478; font-weight:600; text-align:center; }
.school-excel-workbench .sew-grid tr>th:first-child { position:sticky; left:0; z-index:2; background:#f1f5fa; text-align:center; color:#65788a; }
.school-excel-workbench .sew-grid thead tr>th:first-child { z-index:4; background:#e4edf6; }
.school-excel-workbench .sew-grid td { cursor:pointer; color:#183651; background:#fff; position:relative; }
.school-excel-workbench .sew-grid td>span { display:block; max-height:60px; overflow:hidden; overflow-wrap:anywhere; white-space:pre-wrap; }
.school-excel-workbench .sew-grid td.is-number { text-align:right; font-variant-numeric:tabular-nums; }
.school-excel-workbench .sew-grid td.is-selected { background:#edf6ff; }
.school-excel-workbench .sew-grid td.is-merged { border-bottom-style:dashed!important; }
.school-excel-workbench .sew-grid td:focus { outline:2px solid #2379b8; outline-offset:-2px; background:#e6f1fc; }
.school-excel-workbench .sew-grid small { display:block; font-size:9px; color:#748297; line-height:12px; }
.school-excel-workbench .sew-grid td i { position:absolute; right:2px; top:0; font-size:9px; font-style:normal; color:#a77b32; }
.school-excel-workbench .sew-cell-info { margin-top:8px; border:1px solid var(--sew-line); border-radius:7px; padding:10px 12px; font-size:12px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; max-height:200px; overflow:auto; color:#62778c; background:#fbfcfe; }
.school-excel-workbench .sew-selection { margin-top:18px; border-top:1px solid var(--sew-line); padding-top:16px; }
.school-excel-workbench .sew-selection-title h4 { font-size:14px; }
.school-excel-workbench .sew-selection-title>span { color:var(--sew-muted); font-size:11px; }
.school-excel-workbench .sew-range-controls input { width:106px; }
.school-excel-workbench .sew-column-choices { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0; max-height:160px; overflow:auto; }
.school-excel-workbench .sew-column-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:14px; }
.school-excel-workbench .sew-column-navigation>span { flex:1 1 240px; font-size:12px; line-height:1.6; color:var(--sew-muted); }
.school-excel-workbench .sew-column-summary { font-size:12px; line-height:1.7; margin-bottom:12px; color:#53738d; }
.school-excel-workbench .sew-column-choices label { flex-direction:row; align-items:center; border:1px solid var(--sew-line); padding:5px 8px; border-radius:5px; color:#536e86; }
.school-excel-workbench .sew-column-choices input { width:14px; height:14px; accent-color:var(--sew-blue); }
.school-excel-workbench .sew-analysis-footer p { font-size:12px; color:var(--sew-muted); line-height:1.7; }
.school-excel-workbench button.sew-primary { color:#fff; background:var(--sew-blue); border-color:var(--sew-blue); }
@media(max-width:760px) { .school-excel-workbench { padding:12px; } .school-excel-workbench .sew-heading,.school-excel-workbench .sew-selection-title,.school-excel-workbench .sew-analysis-footer { align-items:flex-start; flex-direction:column; gap:8px; } .school-excel-workbench .sew-private { font-size:10px; } .school-excel-workbench .sew-grid-wrap { height:420px; } .school-excel-workbench .sew-sheet-bar label { flex-basis:100%; } .school-excel-workbench .sew-view-controls button { padding:0 8px; } }

.sew-edit-form{display:grid;gap:10px;padding:14px;background:#f4f9ff;border:1px solid #c7dced;border-radius:8px;margin:12px 0}.sew-edit-form[hidden]{display:none}.sew-edit-form textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #c7dced;border-radius:6px}.sew-grid td.is-modified{background:#fff6d9}.sew-edit-form small{color:#61758b}

.school-excel-workbench .sew-original-toggle{display:flex;align-items:center;gap:6px;white-space:nowrap;flex:none}.school-excel-workbench input[data-excel-original]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:none}
