:root { color: #182136; background: #fff; font: 14px/1.4 system-ui, sans-serif; --line: #e0e5ee; --blue: #224b94; }
* { box-sizing: border-box; }
body { margin: 0; }
main { padding: clamp(10px, 2vw, 20px); }
.sheet-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
h1 { margin: 0; font-size: clamp(19px, 3vw, 24px); }
.sheet-head p, .sheet-hint { margin: 4px 0 0; color: #506079; }
.sheet-head label { display: flex; flex-direction: column; gap: 4px; font-weight: 650; max-width: 100%; }
select { min-height: 44px; max-width: 100%; padding: 6px 10px; border: 1px solid #9aacc8; border-radius: 5px; background: #fff; color: inherit; font: inherit; }
.sheet-hint { margin-block: 12px 8px; font-size: 13px; }
.sheet-scroll { max-height: 560px; overflow: auto; border: 1px solid #bdc9dc; }
:focus-visible { outline: 3px solid #315fd2; outline-offset: 2px; }
table { width: 100%; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { min-width: 76px; padding: 6px 8px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); text-align: right; }
thead th { position: sticky; top: 0; z-index: 3; background: #eaf0fa; }
thead small { display: block; font-weight: 500; }
th:first-child { min-width: 150px; position: sticky; left: 0; z-index: 2; text-align: left; background: #fff; }
thead th:first-child { z-index: 4; background: #eaf0fa; }
th .unit { display: block; color: #52617a; font-size: 10px; font-weight: 500; }
.period { background: #f0f4fc; font-weight: 700; }
.week { background: #f4f6fa; font-weight: 700; }
.weekend { color: #9a3136; }
.group th, .group td { background: #e9eff8; color: #254473; }
.group th { font-size: 13px; }
.negative { color: #aa2530; }
.profit th, .profit td { font-weight: 750; background: #e9f4ed; }
.sheet-method, .sheet-import { margin-top: 10px; }
.sheet-method summary, .sheet-import { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--blue); }
.sheet-method summary::before { content: '+'; margin-right: 8px; }
.sheet-method[open] summary::before { content: '−'; }
.sheet-method p { max-width: 78ch; margin: 0 0 8px; }
@media (max-width: 480px) { th:first-child { min-width: 112px; max-width: 112px; white-space: normal; } th, td { padding: 5px 7px; } }
