﻿#table-dialog{width:min(1220px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #dce1ef;border-radius:18px;color:#27344b;background:#fff;box-shadow:0 20px 80px #1c294044}
#table-dialog::backdrop{background:#1d294866;backdrop-filter:blur(4px)}
#table-dialog .table-dialog-head{display:flex;justify-content:space-between;align-items:center;min-height:0;padding:18px 22px;border-bottom:1px solid #e3e7f0;background:#fff;position:sticky;top:0;z-index:3}
#table-dialog h2{margin:0 0 4px;font-size:21px}#table-dialog h3{font-size:14px}#table-dialog small,.table-help{color:#79859b;font-size:12px}
#table-close{width:34px;height:34px;padding:0;background:#bc435b;color:white;border:0;font-size:24px;display:grid;place-items:center}
.table-dialog-layout{display:grid;grid-template-columns:205px minmax(0,1fr)}.table-library{padding:16px;border-right:1px solid #e2e7f0;background:#f7f8fd;max-height:68dvh;overflow:auto}.table-library input,.table-library select{width:100%;margin-bottom:8px;padding:8px;border:1px solid #dce1ef;border-radius:8px;min-width:0}
#table-templates{display:grid;gap:10px}.table-template{text-align:left;padding:9px;min-width:0;background:white}.table-template strong{font-size:12px;display:block;margin-top:8px}.table-template-sample{height:68px;overflow:hidden;pointer-events:none}.table-template-sample table{font-size:4px!important;line-height:1.5}.table-template-sample td{padding:3px!important;height:12px;white-space:nowrap!important;overflow:hidden}.table-template:hover{border-color:#8997d1}
.table-workbench{padding:16px;min-width:0}.table-controls{display:grid;gap:8px}.table-controls fieldset{margin:0;border:1px solid #e3e7f3;border-radius:10px;display:flex;flex-wrap:wrap;gap:6px;padding:8px}.table-controls legend{font-size:11px;color:#7a88a5;padding:0 6px}.table-controls label{display:flex;gap:5px;align-items:center;font-size:11px;color:#66738a}.table-controls button,.table-controls select,.table-quick button,.table-transfer button{font-size:12px;padding:7px 9px;min-height:34px}.table-controls input[type=number]{width:56px;padding:5px;border:1px solid #dce1ef;border-radius:6px}.table-controls input[type=color]{width:30px;height:30px;padding:2px;border:1px solid #dce1ef;border-radius:6px}.table-controls button[aria-pressed=true]{background:#4858ad;color:#fff}
.table-quick,.table-transfer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0}#table-selection{font-size:11px;color:#7884a0;margin-left:auto}#table-grid{overflow:auto;max-height:42dvh;border:1px solid #dfe5f1;border-radius:8px;padding:10px;background:#f9faff}#table-grid table{min-width:440px;background:#fff}#table-grid td{min-width:50px;cursor:text;outline:0;position:relative}#table-grid td.table-cell-selected{box-shadow:inset 0 0 0 2px #6975c6}#table-grid td:focus{box-shadow:inset 0 0 0 2px #4858ad;background-image:linear-gradient(#a0a8e21a,#a0a8e21a)}#table-latex{width:100%;max-width:100%;box-sizing:border-box;font:12px/1.6 Consolas,monospace;background:#f5f6fb;color:#364366;border:1px solid #dce1ef;padding:10px;resize:vertical;border-radius:8px}#table-status{min-height:18px;font-size:12px;color:#4858ad}.table-dialog-foot{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 20px;background:#fff;border-top:1px solid #e0e5f0}.table-dialog-foot span{margin-right:auto;font-size:11px;color:#7a879b}#table-dialog button{touch-action:manipulation}#table-dialog summary{cursor:pointer;color:#4858ad;font-size:12px}
#asset-items .asset-use .sircument-table{font-size:5px!important;line-height:1.2;pointer-events:none}#asset-items .asset-use .sircument-table td{padding:2px!important}#placement-ghost .sircument-table{font-size:9px;max-width:180px}#placement-ghost .sircument-table td{padding:3px!important}
@media(max-width:750px){#table-dialog{width:96vw;max-height:96dvh}.table-dialog-layout{grid-template-columns:minmax(0,1fr)}.table-library{max-height:205px;border-right:0;border-bottom:1px solid #e0e5f0;padding:10px}.table-library h3{margin:0 0 6px}.table-library input{width:60%;margin-right:2%}.table-library select{width:38%}#table-templates{display:flex;overflow-x:auto;gap:8px;padding-bottom:4px}.table-template{flex:0 0 125px}.table-template-sample{height:45px}.table-workbench{padding:10px}#table-dialog .table-dialog-head{padding:12px}#table-dialog small{font-size:10px}#table-dialog h2{font-size:18px}.table-dialog-foot{padding:10px;gap:6px}.table-dialog-foot button{font-size:12px;padding:9px}.table-dialog-foot span{width:100%}#table-selection{width:100%;margin:0}.table-controls fieldset{padding:6px;gap:5px}}
@media print{#table-dialog{display:none!important}}
#table-font{max-width:170px}#table-grid.range-mode{touch-action:none;user-select:none}#table-grid.range-mode td{cursor:cell}#table-range-mode[aria-pressed=true]{background:#4858ad;color:#fff}
/* Spreadsheet interaction shell: headers are editor-only, not exported. */
#table-dialog{width:min(1320px,97vw)}.table-sheet-tabs{display:flex;gap:4px;border-bottom:1px solid #dce3ef;margin-bottom:10px}.table-sheet-tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;padding:10px 16px;font-size:13px;color:#68758d}.table-sheet-tabs button[aria-pressed=true]{background:#edf0fb;color:#4858ad;box-shadow:inset 0 -2px #4858ad}.table-controls fieldset[hidden]{display:none!important}.table-create-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;font-size:12px}.table-create-bar label{display:flex;align-items:center;gap:5px}.table-create-bar input{width:52px;padding:7px;border:1px solid #dce2ef;border-radius:6px}.table-create-bar button{font-size:12px;background:#edf0fb;color:#4858ad}.table-formula-bar{display:flex;align-items:center;gap:10px;border:1px solid #dce2ef;border-radius:8px;background:#fff;overflow:hidden}.table-formula-bar output{display:block;min-width:82px;padding:10px;text-align:center;font:13px Consolas,monospace;border-right:1px solid #dce2ef;background:#f5f7fc;color:#4858ad}.table-formula-bar>span{color:#8a94aa}.table-formula-bar input{border:0;outline:0;flex:1;min-width:0;padding:10px;font-size:14px;background:transparent}.table-formula-bar:focus-within{outline:2px solid #b7c1e4}.table-help{margin:8px 0;font-size:11px}
#table-grid{padding:0;border-radius:6px;max-height:48dvh;background:#f6f8fc;overscroll-behavior:contain}#table-grid .spreadsheet-grid{min-width:0;border-collapse:separate!important;border-spacing:0;user-select:none;margin:0;background:white}#table-grid .spreadsheet-grid th{background:#eff2f8;color:#76839b;font:12px/1.3 Consolas,monospace;border-right:1px solid #d6ddea;border-bottom:1px solid #d6ddea;padding:0;height:30px;position:relative;white-space:nowrap;text-align:center}#table-grid .spreadsheet-grid thead th{position:sticky;top:0;z-index:3}#table-grid .spreadsheet-grid tr>th:first-child{position:sticky;left:0;width:38px;z-index:2}#table-grid .spreadsheet-grid thead th:first-child{z-index:4}#table-grid .spreadsheet-grid th button{font:inherit;background:transparent;border:0;border-radius:0;padding:7px 9px;width:100%;height:100%;color:inherit;min-height:30px}#table-grid .spreadsheet-grid th.sheet-header-selected{color:#4858ad;background:#e0e6f8}#table-grid .spreadsheet-grid td{cursor:cell;min-height:32px;outline:0;border:0!important;box-shadow:inset -1px -1px #e0e5ef;padding:7px 9px!important;line-height:1.5!important;user-select:none}#table-grid .spreadsheet-grid td.table-cell-selected{box-shadow:inset 0 0 0 2px #7a87c3;background-image:linear-gradient(#6e7fc219,#6e7fc219)}#table-grid .spreadsheet-grid td:focus{box-shadow:inset 0 0 0 2px #4858ad}#table-grid .spreadsheet-grid td.sheet-editing{cursor:text;user-select:text;background-image:none;box-shadow:inset 0 0 0 2px #4858ad}
.sheet-resize-col{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:5}.sheet-resize-row{position:absolute;bottom:-3px;left:0;right:0;height:7px;cursor:row-resize;touch-action:none;z-index:5}.sheet-resize-col:hover,.sheet-resize-row:hover{background:#8996cc88}#table-grid .spreadsheet-grid th .sheet-add-column{position:absolute;right:0;top:0;width:22px;height:30px;background:#e7ecfa;color:#4858ad;transform:translateX(100%);z-index:4;border:1px solid #d5ddef}.sheet-add-row{border:0;background:#edf1fb;color:#6275aa;min-height:32px;border-radius:0;font-size:12px;padding:7px 12px;margin-left:38px}.table-quick #table-select-all,.table-quick #table-select-row,.table-quick #table-select-col{display:none}.table-quick{margin:8px 0}.table-quick #table-range-mode{display:none}@media(pointer:coarse){.table-quick #table-range-mode{display:inline-block}.sheet-resize-col{width:12px;right:-6px}.sheet-resize-row{height:12px;bottom:-6px}}@media(max-width:750px){.table-sheet-tabs button{font-size:12px;padding:9px 12px}.table-formula-bar output{min-width:65px}.table-create-bar{gap:6px}.table-create-bar input{width:45px}.table-quick button{font-size:11px}#table-grid{max-height:48dvh}}
