/* ==========================================================================
   报价管理系统 - 高对比度白色科技风 (PDF完美高亮 + 数据汇总Modal)
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  
  /* 加深线框颜色 */
  --border-color: #cbd5e1; 
  --border-dark: #94a3b8;  
  --border-hover: #0ea5e9;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --color-primary: #0284c7; /* 经典天空蓝 */
  --color-primary-dark: #0369a1;
  --color-secondary: #10b981; /* 翡翠绿 */
  --color-secondary-dark: #047857;
  --color-danger: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --font-primary: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 20px rgba(14, 165, 233, 0.18);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* 全局同步行高变量 */
  --global-row-height: 30px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.4;
  min-width: 320px;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

/* 粒子背景 */
.glow-bg-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.glow-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.45; }
.orb-1 { width: 550px; height: 550px; background: rgba(14, 165, 233, 0.12); top: -120px; left: -100px; }
.orb-2 { width: 480px; height: 480px; background: rgba(16, 185, 129, 0.1); bottom: 5%; right: -60px; }
.orb-3 { width: 380px; height: 380px; background: rgba(99, 102, 241, 0.06); top: 35%; left: 25%; }

/* 右键 Context Menu 样式 */
.context-menu {
  position: fixed;
  z-index: 9999;
  width: 170px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
}

.menu-item {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-item:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary-dark);
}

.menu-item.danger {
  color: var(--color-danger);
}

.menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* App Shell */
.app-shell {
  width: min(1760px, calc(100% - 32px));
  margin: 16px auto;
  position: relative;
  z-index: 1;
}

/* 顶部 Header */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px 24px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-color); border-radius: 16px;
  box-shadow: var(--shadow-md); margin-bottom: 16px;
}
.brand-container { display: flex; align-items: center; gap: 16px; }
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.logo-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.version-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(14, 165, 233, 0.08); color: var(--color-primary); border: 1px solid rgba(14, 165, 233, 0.25); }
.title-group h1 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin: 0; line-height: 1.2; }
.subtitle { font-size: 0.8rem; color: var(--text-muted); margin: 2px 0 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.access-status { padding: 4px 10px; background: rgba(16, 185, 129, 0.08); color: var(--color-secondary-dark); border: 1.5px solid rgba(16, 185, 129, 0.3); border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.sync-status { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.sync-status.error { color: var(--color-danger); }
.sync-status.saved { color: var(--color-secondary-dark); }

/* 按钮基础 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  border: 1px solid transparent; transition: all var(--transition-fast);
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.button-primary { background: var(--gradient-primary); color: #ffffff; box-shadow: var(--shadow-glow); }
.button-primary:hover:not(:disabled) { box-shadow: 0 8px 18px rgba(14, 165, 233, 0.3); }
.button-secondary { background: #f1f5f9; color: var(--text-primary); border: 1.5px solid var(--border-color); }
.button-secondary:hover:not(:disabled) { background: #e2e8f0; border-color: var(--border-dark); color: var(--color-primary-dark); }
.button-outline { background: #ffffff; color: var(--text-secondary); border: 1.5px solid var(--border-color); }
.button-outline:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); background: rgba(14, 165, 233, 0.04); }
.btn-block { width: 100%; }

/* 主工作区 */
.workspace {
  position: relative;
  display: flex;
  gap: 0;
  width: 100%;
}

/* 侧边栏默认收纳隐藏状态 */
.period-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 500;
  width: 26px;
  height: 100%;
  min-height: 480px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, padding 0.28s ease;
}

.period-panel::before {
  content: '📅 报价周期 ❯';
  writing-mode: vertical-lr;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: 2px;
  margin: 10px auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.period-panel:hover::before {
  opacity: 0;
  display: none;
}

.period-panel:hover {
  width: 250px;
  padding: 14px 12px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.2);
  border-color: var(--color-primary);
  cursor: default;
}

.period-panel:hover .panel-heading,
.period-panel:hover .period-list,
.period-panel:hover .text-button {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.panel-heading, .period-list, .text-button {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  border-bottom: 1.5px solid var(--border-color);
}

.panel-heading h2 { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: var(--gradient-primary); color: #fff; font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.icon-button:hover:not(:disabled) { transform: scale(1.06); }
.period-list { padding: 8px 0; flex: 1; display: flex; flex-direction: column; gap: 5px; max-height: calc(100vh - 280px); overflow-y: auto; }
.period-item-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.period-item { width: 100%; padding: 7px 28px 7px 10px; text-align: left; border: 1.5px solid transparent; border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; transition: all var(--transition-fast); }
.period-item:hover { background: #f1f5f9; color: var(--text-primary); border-color: var(--border-color); }
.period-item.active { background: rgba(14, 165, 233, 0.08); border-color: var(--color-primary); color: var(--color-primary-dark); font-weight: 800; }
.delete-period-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 0; border-radius: 4px; background: transparent; color: #94a3b8; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.delete-period-btn:hover { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); }
.text-button { width: 100%; padding: 8px; color: var(--color-primary); background: rgba(14, 165, 233, 0.05); border: 1.5px dashed rgba(14, 165, 233, 0.35); border-radius: 6px; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; transition: all var(--transition-fast); }
.text-button:hover { background: rgba(14, 165, 233, 0.12); border-color: var(--color-primary); }

/* 右侧主表 Card */
.sheet-panel {
  flex: 1;
  margin-left: 36px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sheet-toolbar { padding: 14px 18px; border-bottom: 1.5px solid var(--border-color); background: #ffffff; }
.toolbar-centered { display: flex; justify-content: center; align-items: center; width: 100%; }
.title-centered { text-align: center; font-size: 1.45rem; font-weight: 800; color: var(--text-primary); border: 0; outline: 0; background: transparent; width: 100%; max-width: 500px; margin: 0 auto; }

/* 底部独立操作按钮栏 */
.sheet-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1.5px solid var(--border-color);
}

/* 表格部分 */
.table-wrap { width: 100%; overflow-x: auto; flex: 1; }
.table-wrap table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.85rem; table-layout: fixed; border-left: 1.5px solid var(--border-dark); border-top: 1.5px solid var(--border-dark); }
.table-wrap th { position: relative; padding: 4px 6px; background: #f1f5f9; color: var(--text-primary); font-weight: 800; text-align: center; border-bottom: 2px solid var(--border-dark); border-right: 1.5px solid var(--border-dark); white-space: nowrap; font-size: 0.82rem; user-select: none; height: var(--global-row-height); min-height: 20px; }

.col-resizer { position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; user-select: none; z-index: 10; }
.col-resizer:hover, .col-resizer.resizing { background: var(--color-primary); opacity: 0.9; }

.table-wrap tbody tr { height: var(--global-row-height); min-height: 18px; }
.table-wrap td { padding: 1px 4px; border-right: 1.5px solid var(--border-color); border-bottom: 1.5px solid var(--border-color); text-align: center; vertical-align: middle; background: #ffffff; height: var(--global-row-height); min-height: 18px; box-sizing: border-box; transition: background var(--transition-fast); }

.table-wrap tr:hover td:not(.status-completed):not(.bg-yellow-highlight) { background: #f0f9ff; }

.row-number { position: relative; color: var(--text-muted); font-weight: 700; font-family: 'Outfit', sans-serif; user-select: none; font-size: 0.8rem; }
.row-resizer { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; cursor: row-resize; user-select: none; z-index: 10; }
.row-resizer:hover, .row-resizer.resizing { background: var(--color-primary); opacity: 0.9; }

.table-wrap td:nth-child(3), .table-wrap td:nth-child(9) { text-align: left; word-break: break-all; }

/* 输入框与下拉选择框 */
.cell-input, .cell-select {
  width: 100%; height: 100%; min-height: 18px; padding: 1px 4px; border: 1px solid transparent; border-radius: 4px; color: var(--text-primary); background: transparent; box-sizing: border-box; font-size: 0.85rem; transition: all var(--transition-fast);
}
.cell-select { cursor: pointer; appearance: auto; font-weight: 600; }
.cell-select.status-select { text-align: center; text-align-last: center; }
.cell-input.text-center { text-align: center; }
.cell-textarea { min-width: 100%; height: 100%; resize: none; line-height: 1.35; word-break: break-all; white-space: pre-wrap; }

.cell-input:focus, .cell-select:focus { outline: 0; border-color: var(--color-primary); background: #ffffff !important; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); }

/* 高亮填充规则 */
.status-completed { background-color: #dcfce7 !important; color: #15803d !important; font-weight: 700; }
.status-completed input, .status-completed select { color: #15803d !important; font-weight: 700; text-align: center; text-align-last: center; }

.bg-yellow-highlight { background-color: #fef9c3 !important; }
.bg-yellow-highlight input, .bg-yellow-highlight textarea { background-color: transparent; }

/* 表尾嵌入式4大核心统计 */
tfoot { background: #f8fafc; font-weight: 700; display: table-footer-group; }
tfoot tr { height: 48px !important; page-break-inside: avoid; break-inside: avoid; }
tfoot td { 
  border-top: 2px solid var(--border-dark); 
  border-right: 1.5px solid var(--border-color); 
  border-bottom: 1.5px solid var(--border-dark); 
  padding: 6px 10px; 
  color: var(--text-primary); 
  height: 48px !important; 
  font-size: 0.88rem; 
  vertical-align: middle;
}

.foot-stat-item {
  display: table-cell;
  vertical-align: middle;
}

.foot-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 2px;
}

.foot-val {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.foot-price-item {
  background: #f0fdf4;
}

.foot-price {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

/* ==========================================================================
   数据汇总 Modal 样式
   ========================================================================== */
.summary-dialog {
  width: min(880px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  margin: auto;
}

.summary-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.summary-modal-content {
  padding: 24px 28px;
}

.summary-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-color);
}

.summary-modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.close-modal-btn {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-modal-btn:hover {
  background: #f1f5f9;
  color: var(--color-danger);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.summary-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.summary-card span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-card strong {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.summary-card small {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-card.accent-card {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.3);
}

.summary-card.accent-card strong {
  color: var(--color-primary-dark);
}

.summary-table-wrap {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.summary-table th {
  background: #f1f5f9;
  color: var(--text-primary);
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1.5px solid var(--border-color);
}

.summary-table th:not(:first-child), .summary-table td:not(:first-child) {
  text-align: center;
}

.summary-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
}

.summary-table tr:hover td {
  background: #f0f9ff;
}

.summary-table tfoot td {
  background: #f8fafc;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 2px solid var(--border-dark);
  border-bottom: 0;
}

/* 验证 Modal */
dialog { width: min(400px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--text-primary); background: #ffffff; box-shadow: var(--shadow-lg); margin: auto; }
dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(6px); }
dialog form { padding: 28px; }
.dialog-header { margin-bottom: 18px; }
.dialog-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--color-primary); background: rgba(14, 165, 233, 0.08); padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; }
dialog h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
dialog p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.4; }
.form-group { margin: 16px 0 12px; }
dialog label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
dialog input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: 8px; background: #f8fafc; color: var(--text-primary); font-size: 0.9rem; transition: all var(--transition-fast); }
dialog input:focus { outline: 0; background: #ffffff; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.form-error { min-height: 18px; margin: 4px 0 12px; color: var(--color-danger); font-size: 0.8rem; font-weight: 600; }

/* 工艺单数据导入弹窗 */
.data-import-dialog { width: min(650px, calc(100% - 32px)); }
.data-import-modal { padding: 24px 28px; }
.data-import-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.data-import-header h2 { margin: 0 0 6px; }
.data-import-header p { margin: 0; max-width: 510px; }
.upload-dropzone { min-height: 148px; margin: 20px 0 16px; padding: 24px; border: 2px dashed #94a3b8; border-radius: 12px; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast); }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: var(--color-primary); background: rgba(14, 165, 233, 0.07); }
.upload-dropzone strong { color: var(--text-primary); font-size: 1rem; }
.upload-dropzone span { color: var(--text-muted); font-size: 0.82rem; }
.import-paste-area { display: grid; gap: 8px; }
.import-paste-area label { color: var(--text-primary); font-size: 0.82rem; font-weight: 700; }
#upload-paste-input { width: 100%; min-height: 96px; resize: vertical; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: 8px; color: var(--text-primary); background: #ffffff; font: inherit; font-size: 0.85rem; }
#upload-paste-input:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
#parse-paste-btn { justify-self: start; }
.upload-data-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 12px; border: 1.5px solid var(--border-color); border-radius: 10px; background: #f8fafc; }
.import-preview-item { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.import-preview-item label { color: var(--text-muted); font-size: 0.72rem; font-weight: 700; }
.import-preview-input { width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); background: #ffffff; font: inherit; font-size: 0.86rem; }
.import-preview-input:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14); }
.import-status { min-height: 20px; margin: 12px 0 0; white-space: pre-line; }
.import-status.error { color: var(--color-danger); }
.data-import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 620px) {
  .sheet-bottom-actions { flex-wrap: wrap; }
  .data-import-modal { padding: 20px; }
  .upload-data-preview { grid-template-columns: 1fr; }
}

/* 打印/导出通用渲染规范 */
@media print {
  @page {
    size: auto;
    margin: 8mm 10mm;
  }
  
  html, body {
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }

  .glow-bg-container, .topbar, .period-panel, .sheet-bottom-actions, .col-resizer, .row-resizer, .delete-period-btn, .context-menu {
    display: none !important;
  }

  .app-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sheet-panel {
    border: 0 !important;
    box-shadow: none !important;
    margin-left: 0 !important;
    overflow: visible !important;
  }

  .sheet-toolbar {
    padding: 10px 0 16px !important;
    border-bottom: 0 !important;
  }

  .title-centered {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
  }

  .table-wrap {
    overflow: visible !important;
  }

  .table-wrap table {
    font-size: 10px !important;
    table-layout: auto !important;
    width: 100% !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  tr {
    height: auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  td {
    height: auto !important;
    max-height: none !important;
    word-break: break-all !important;
  }

  tfoot {
    display: table-footer-group !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cell-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    background: transparent !important;
  }

  .cell-input, .cell-textarea {
    border: none !important;
    background: transparent !important;
    height: auto !important;
    max-height: none !important;
    word-break: break-all !important;
    white-space: pre-wrap !important;
  }
}
