#tableview,
#sourceview {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  overflow: hidden;
}
#tableview #grid {
  height: 0;
  flex: 1;
  border-radius: 0;
}
.tools input#address {
  width: 85px;
}
.tools input#filtercolumn {
  width: 50px;
}
.tools label input[type='checkbox'] {
  width: auto;
}
.sheet-row-header {
  background: #e8f1ec !important;
  color: #3f604b !important;
  font-weight: 600;
}
.cell-formula {
  color: #78521a;
}
.cell-readonly {
  background: #f2f4f3 !important;
  color: #849387 !important;
}
.cell-hidden-row {
  opacity: 0.65;
}
#sourceview #sourceeditor {
  flex: 1;
  height: 0;
  min-height: 120px;
  border: 1px solid var(--line);
  background: #fff;
}
#sourceerror {
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  color: #ad3f34;
  background: #fff;
}
#sourceerror:empty {
  display: none;
}
#grid th {
  min-width: 140px;
  width: 160px;
}
#grid th:first-child {
  min-width: 50px;
  width: 50px;
}
#notice {
  margin: 0;
}
#assistpreview {
  max-height: 220px;
}
.tools {
  gap: 6px;
}
.tools input {
  width: 130px;
}
.pagination button {
  padding: 5px 8px;
}
.cell-editor {
  min-width: 140px;
}
.formulabar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.formulabar[hidden] {
  display: none;
}
.formula-cell {
  min-width: 44px;
  padding: 2px 7px;
  text-align: center;
  font:
    600 12px Consolas,
    monospace;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.formula-type {
  padding: 2px 6px;
  font-size: 11px;
  color: var(--muted);
  background: #edf3f0;
  border-radius: 4px;
  white-space: nowrap;
}
.formula-fx {
  font:
    italic 700 13px Georgia,
    serif;
  color: #5b6d63;
  padding: 0 2px;
}
.formula-input {
  flex: 1;
  min-width: 120px;
  height: 26px;
  padding: 2px 8px;
  font:
    12.5px Consolas,
    monospace;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.formula-input:focus {
  outline: 2px solid #2b7a5740;
  border-color: var(--accent, #246f53);
}
.formulabar button {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}
