/* Sheet's own surface: the formula bar, the grid, the cell editor, the sheet
 * tabs. Nothing here styles a toolbar, a palette or a status bar — those are
 * the shell's, and an app that restyled them would be undoing the point. */

.sh-fbar {
  display: flex; align-items: stretch; flex: none;
  background: #fff; border-bottom: 1px solid #E3E0DA;
}
.sh-addr {
  width: 76px; flex: none; display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .75rem; font-weight: 500; color: #4A4338;
  border-right: 1px solid #E3E0DA;
}
.sh-finput {
  flex: 1; border: 0; outline: none; padding: .4rem .6rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .8rem; color: #211C16; background: #fff;
}
.sh-finput:focus { background: #FFFDF8; }

.sh-wrap { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.sh-grid { width: 100%; height: 100%; display: block; cursor: cell; outline: none; }
.sh-editor {
  position: absolute; display: none; z-index: 5;
  border: 2px solid #9A3B1B; outline: none; padding: 0 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; background: #fff; color: #211C16;
}

.sh-tabs {
  display: none; gap: 2px; flex: none; padding: .25rem .5rem 0;
  background: #EFECE6; border-top: 1px solid #E3E0DA; overflow-x: auto;
}
.sh-tab {
  background: #F7F5F1; border: 1px solid #E3E0DA; border-bottom: 0;
  border-radius: 3px 3px 0 0; padding: .25rem .7rem; font-size: .76rem;
  cursor: pointer; color: #6C6356; white-space: nowrap;
}
.sh-tab:hover { color: #211C16; }
.sh-tab.on { background: #fff; color: #211C16; font-weight: 600; border-color: #CFCAC1; }

/* The pane body is a column: formula bar, grid, tabs. */
.gr-pane-body:has(.sh-wrap) { display: flex; flex-direction: column; }
