/* RPT-XLSX-PREVIEW-1: the workbook preview and the GridCraft host page. */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{display:flex;flex-direction:column;font:13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;color:#1b2430;background:#fff}
.xp-head{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #d6dce5;background:#f6f8fb}
.xp-head .sp{flex:1}
.xp-ro{font-size:12px;color:#5b6677}
.xp-btn{font:inherit;font-size:12.5px;padding:5px 11px;border-radius:6px;background:#2f5fb3;color:#fff;text-decoration:none}
.xp-btn:hover{background:#244c93}
.xp-btn.xp-quiet{background:#e6ebf2;color:#1b2430}
.xp-btn.xp-quiet:hover{background:#d8dfea}
.xp-btn[hidden]{display:none}
.xp-tabs{display:flex;gap:2px;padding:6px 12px 0;border-bottom:1px solid #d6dce5;overflow-x:auto}
.xp-tabs a{padding:5px 12px;border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;color:#3a4f86;text-decoration:none;white-space:nowrap}
.xp-tabs a[aria-current]{background:#fff;border-color:#d6dce5;margin-bottom:-1px;color:#1b2430;font-weight:600}
.xp-note{margin:8px 12px 0;padding:6px 10px;border-radius:6px;background:#fff6db;color:#6b5200}
.xp-error{margin:12px;padding:8px 12px;border-radius:6px;background:#fde7ea;color:#8a1c2b}
.xp-status{margin:12px;color:#5b6677}
.xp-status[hidden]{display:none}
.xp-empty{margin:16px 12px;color:#5b6677}
.xp-wrap{flex:1;overflow:auto;padding:8px 12px 16px}
.xp-grid{border-collapse:collapse;table-layout:fixed}
.xp-grid td{border:1px solid #e1e5eb;padding:2px 6px;height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.xp-grid td.b{font-weight:700}
.xp-grid td.n{text-align:right;font-variant-numeric:tabular-nums}
.gc-frame{flex:1;width:100%;border:0}
