/* 月次 (core UI_SPEC §10.1): only what the shell does not have yet. Values come from /shell/shell.css. */

/* A row or a 明細 whose save is being calculated: the old amounts faded, never shown as the result. */
tr.pending td.num, tr.pending .cell-btn { opacity: .45; }
tr.pending td { font-style: italic; }
/* The 期間 is moved between the 上の段 of 台帳 and of 例外・店舗: its holder takes no box of its own. */
.period-slot { display: contents; }
/* ① 's widths from the start (the choices come with the rows: nothing after them moves), and the 状態の札's room. */
#payroll-monthly .top-select { width: 9.5em; }
#payroll-monthly .top-select[aria-label="役職"] { width: 8em; }
#payroll-monthly .btn.top-state { min-width: 6em; justify-content: center; }
@media (max-width: 767px) {
  #payroll-monthly .top-select, #payroll-monthly .top-select[aria-label="役職"] { width: calc(33% - 6px); min-width: 0; }
}
/* 状態の札's window: when each input was imported and when the month was calculated. */
.month-state-table th { width: 6em; text-align: left; font-weight: 400; color: var(--muted); }
.month-state-table tr.warn td, .month-state p.warn { color: var(--warn); }

/* The tabs are the shell's (NomyuShell.tabs); 例外 shows its count in colour. */
/* Room for 3 digits from the start: the tab after it (店舗) does not move when the count comes (UI_SPEC §3.4). */
.tab-count { display: inline-block; min-width: 3ch; text-align: left; font-variant-numeric: tabular-nums; font-weight: 600; }
.tab-count.bad { color: var(--error); }
.tab-count.warn { color: var(--warn); }
.tab-count.off { color: var(--planned); }

/* An amount that opens its basis or parts: a number, not a link colour. */
button.cell-btn { color: inherit; font: inherit; font-variant-numeric: tabular-nums; }
button.cell-btn:hover { text-decoration: underline dotted; }
/* 役職 and the 印 of a person's own 時給 (「+50」「特1,500」): the 役職 is cut when long, the 印 never. */
.role-cell { display: flex; gap: 4px; min-width: 0; }
.role-cell .role-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rate-mark { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; cursor: default; }

.pop { position: fixed; z-index: 20; max-width: 360px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); font-size: var(--font-table); }
.pop p { margin: 0; }
.pop-table td { height: 28px; border-bottom: 0; }

.month-person .person-line { margin: 8px 0; color: var(--muted); font-size: var(--font-table); }
/* The name line, the buttons and the tabs stay at the top while a tab's contents scroll. */
.month-person .person-top { position: sticky; top: -4px; z-index: 2; margin-top: -4px; padding-top: 4px; background: var(--panel); }
.month-person tr.day-total td { font-weight: 600; background: var(--hover); }
/* ‹ n / N › at the right of the buttons (the digit of each tab is the shell's tabs). */
.month-person .person-nav { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.month-person .person-nav .btn { width: calc(var(--row-h) - 6px); justify-content: center; padding: 0; }
.month-person .person-nav .count { margin: 0; min-width: 5em; text-align: center; }
.month-person tr.on td { background: var(--accent-bg); }
.month-person .dot.next { margin-left: 4px; }

/* 店舗 (month-stores.js): amber = to look at (a 社保 cell short of a company share, a store the setting does not know, the
   bar's notices); the 根拠 box scrolls its people. */
button.cell-btn.warn { color: var(--warn); }
.month-stores .stores-notice { margin-left: 8px; color: var(--warn); }
.month-stores .stores-notice:empty { margin-left: 0; }
.month-stores th.warn, .month-stores td.warn { color: var(--warn); }
.pop.pop-scroll { max-height: 60vh; overflow: auto; }
.pop .pop-people { margin-top: 4px; border-top: 1px solid var(--line); }
.pop p.warn { color: var(--warn); }

/* 例外 (month-issues.js): the buttons of a row side by side, a little lower than the row. */
#issues .issue-actions { display: inline-flex; gap: 4px; white-space: nowrap; }
#issues .issue-actions .btn { height: calc(var(--row-h) - 12px); padding: 0 8px; }
