/* core/web: 스프레드시트 테마. 실제 제품 로고나 이름은 쓰지 않고, 일반적인 시트 모양만 흉내 낸다. */
:root {
  --ink: #1f1f1f;
  --ink-soft: #5f5f5f;
  --line: #e1e1e1;
  --line-strong: #c6c6c6;
  --head: #f5f5f5;
  --head-active: #d6eadf;
  --accent: #1e7145;
  --accent-soft: #e8f3ec;
  --paper: #ffffff;
  --chrome: #f3f3f3;
  --stamp: #c62828;
  --font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --cell-h: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.35 var(--font); color: var(--ink); background: var(--paper); }

.sheet {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 100%;
  outline: none;
  user-select: none;
}
.sheet th, .sheet td {
  height: var(--cell-h);
  padding: 0 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.sheet td { min-width: 72px; cursor: cell; }
.sheet thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--head); color: var(--ink-soft); font-weight: normal; text-align: center;
  border-bottom-color: var(--line-strong);
}
.sheet .sheet-corner { width: 40px; left: 0; z-index: 3; }
.sheet .sheet-rowname {
  position: sticky; left: 0; z-index: 1;
  width: 40px; min-width: 40px; background: var(--head); color: var(--ink-soft);
  font-weight: normal; text-align: center; border-right-color: var(--line-strong);
}
.sheet .sheet-title { font-weight: bold; background: #fafafa; }
.sheet .sheet-empty { color: var(--ink-soft); font-style: italic; }
.sheet .align-right { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .align-center { text-align: center; }
.sheet td.is-data { cursor: pointer; }
.sheet td.is-active-row { background: var(--accent-soft); }
.sheet td.is-active { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--paper); }
.sheet:focus-visible td.is-active { outline-width: 3px; }

/* 결재 도장 (근무기록, 라이브러리) */
.stamp {
  display: inline-block; min-width: 18px; padding: 0 4px; margin-right: 2px;
  border: 1.5px solid var(--stamp); border-radius: 50%;
  color: var(--stamp); font-size: 11px; line-height: 16px; text-align: center; transform: rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
