:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #d8dee9;
  --line-strong: #9aa7b8;
  --text: #1f2937;
  --muted: #667085;
  --accent: #2563eb;
  --danger: #dc2626;
  --shift-bg: #eef4ff;
  --empty-bg: #f3f4f6;
  --sticky-bg: #ffffff;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button, select {
  font: inherit;
}

button {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}

button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #64748b;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 10px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border-bottom: 1px solid var(--line);
}

.app-header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .02em;
}

.app-header h1 span {
  font-size: 13px;
  color: var(--muted);
}

.app-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  white-space: nowrap;
}

.app-shell {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-btn {
  width: 86px;
  line-height: 1.15;
  padding: 7px 8px;
}

.history-btn small {
  color: var(--muted);
}

.day-nav select {
  min-width: 76px;
  text-align: center;
}

.view-label {
  color: var(--muted);
  font-size: 13px;
}

button.danger {
  color: var(--danger);
  border-color: #f2aaaa;
}

.toolbar-note {
  flex: 1;
  min-width: 260px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.editor-area {
  min-height: 0;
  flex: 1;
  display: flex;
  gap: 10px;
}

.work-panel {
  width: 112px;
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-height: 0;
}

.work-panel h2 {
  font-size: 15px;
  margin: 0 0 8px;
}

.selected-work {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.3;
}

.work-palette {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.work-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
}

.work-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.work-item.selected .work-chip {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.work-shortcut {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.grid-section {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.grid-meta {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.grid-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  position: relative;
}

.schedule-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
  user-select: none;
}

.schedule-grid th,
.schedule-grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 28px;
  min-width: 34px;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.schedule-grid thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8fafc;
  color: #475467;
  font-weight: 700;
}

.schedule-grid .staff-head,
.schedule-grid .staff-name {
  position: sticky;
  left: 0;
  z-index: 6;
  min-width: 136px;
  width: 136px;
  max-width: 136px;
  background: var(--sticky-bg);
  border-right: 2px solid var(--line-strong);
  text-align: left;
  padding: 0 8px;
}

.schedule-grid thead .staff-head {
  z-index: 8;
  background: #f8fafc;
}

.schedule-grid .time-head.hour-start {
  border-left: 2px solid var(--line-strong);
}

.schedule-grid td.hour-start {
  border-left: 2px solid var(--line-strong);
}

.staff-no {
  display: inline-block;
  min-width: 24px;
  color: var(--muted);
  font-size: 11px;
}

.cell {
  background: var(--empty-bg);
  cursor: not-allowed;
  color: transparent;
}

.cell.shift {
  background: var(--shift-bg);
  cursor: crosshair;
  color: var(--text);
}

.cell.worked {
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px rgba(255,255,255,.35);
}

.cell.painting {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.status-bar {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .app-header { align-items: flex-start; flex-direction: column; }
  .editor-area { flex-direction: column; }
  .work-panel { width: 100%; flex: 0 0 auto; max-height: 190px; }
  .work-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
  .work-item { margin-bottom: 0; }
  .toolbar-note { text-align: left; }
}

.import-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.import-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.file-label span {
  font-weight: 700;
  color: var(--accent);
}

.file-label input {
  max-width: 250px;
}

.import-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.import-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .import-panel,
  .import-left {
    align-items: stretch;
    flex-direction: column;
  }
  .import-actions {
    flex-wrap: wrap;
  }
  .file-label {
    justify-content: space-between;
  }
}

/* v0.4: EXE版に寄せた 1スタッフ2行表示 */
.two-line-grid .sticky-col {
  position: sticky;
  z-index: 6;
  background: var(--sticky-bg);
}

.two-line-grid thead .sticky-col {
  z-index: 9;
  background: #f8fafc;
}

.two-line-grid .staff-col {
  left: 0;
  min-width: 120px;
  width: 120px;
  max-width: 120px;
  border-right: 1px solid var(--line-strong);
}

.two-line-grid .type-col {
  left: 120px;
  min-width: 54px;
  width: 54px;
  max-width: 54px;
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid var(--line);
}

.two-line-grid .info-col {
  left: 174px;
  min-width: 150px;
  width: 150px;
  max-width: 150px;
  text-align: left;
  padding: 0 8px;
  border-right: 2px solid var(--line-strong);
  white-space: nowrap;
}

.two-line-grid .staff-name {
  vertical-align: middle;
  font-weight: 700;
}

.two-line-grid .staff-work-row th,
.two-line-grid .staff-work-row td {
  border-bottom: 2px solid var(--line-strong);
}

.two-line-grid .row-type {
  font-size: 11px;
  color: #334155;
  font-weight: 700;
}

.two-line-grid .row-info {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.two-line-grid .remaining-text {
  color: #dc2626;
  font-weight: 800;
}

.two-line-grid .cell {
  min-width: 24px;
  width: 24px;
  height: 24px;
  background: #f8fafc;
  cursor: crosshair;
}

.two-line-grid .shift-line-cell.shift-band {
  background: #c9c9c9;
}

.two-line-grid .work-line-cell {
  background: #ffffff;
}

.two-line-grid .work-line-cell.shift.work-empty {
  background: #e8f7ff;
}

.two-line-grid .work-line-cell.worked {
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}

.two-line-grid .shift-line-cell,
.two-line-grid .work-line-cell.shift {
  cursor: crosshair;
}

.two-line-grid .work-line-cell:not(.shift) {
  cursor: not-allowed;
}

.two-line-grid .time-head {
  min-width: 24px;
  width: 24px;
  font-size: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 58px;
}

/* v0.5: EXE版にさらに寄せたコンパクト表示 */
:root {
  --bg: #eeeeee;
  --panel: #eeeeee;
  --line: #d6d6d6;
  --line-strong: #8c8c8c;
  --text: #111111;
  --muted: #444444;
  --accent: #1f5fd1;
  --shadow: none;
  --sticky-bg: #eeeeee;
}

html, body {
  background: #eeeeee;
  font-family: "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif;
  font-size: 12px;
}

button,
select {
  border-radius: 0;
  padding: 4px 10px;
  min-height: 26px;
  background: #f5f5f5;
  border: 1px solid #9a9a9a;
  box-shadow: none;
  font-size: 12px;
}

button:hover:not(:disabled) {
  background: #ffffff;
  border-color: #555555;
}

.app-header {
  padding: 6px 14px 4px;
  background: #eeeeee;
  border-bottom: 1px solid #d0d0d0;
}

.app-header h1 {
  font-size: 14px;
  font-weight: 700;
}

.app-header h1 span,
.app-header p {
  font-size: 11px;
}

.app-shell {
  padding: 6px 8px 4px;
  gap: 5px;
}

.import-panel,
.toolbar,
.work-panel,
.grid-section {
  border-radius: 0;
  box-shadow: none;
  background: #eeeeee;
  border-color: #c9c9c9;
}

.import-panel {
  padding: 4px 6px;
}

.import-note,
.toolbar-note,
.grid-meta,
.status-bar {
  font-size: 11px;
}

.toolbar {
  padding: 4px 6px;
  gap: 6px;
}

.toolbar-group {
  gap: 5px;
}

.history-btn {
  width: 78px;
  height: 38px;
  line-height: 1.05;
  padding: 2px 4px;
}

.day-nav select,
#viewModeSelect,
#editModeSelect {
  min-width: 70px;
  height: 28px;
  padding: 2px 6px;
}

.editor-area {
  gap: 6px;
}

.work-panel {
  width: 42px;
  flex-basis: 42px;
  padding: 4px 3px;
}

.work-panel h2 {
  margin: 0 0 3px;
  font-size: 12px;
}

.selected-work {
  display: none;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
}

.work-chip {
  width: 32px;
  min-height: 22px;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.work-item.selected .work-chip {
  outline: 2px solid #0078d7;
  outline-offset: 0;
}

.work-shortcut {
  font-size: 10px;
  width: 8px;
  overflow: hidden;
}

.grid-section {
  background: #ffffff;
}

.grid-meta {
  padding: 4px 8px;
  background: #f8f8f8;
}

.grid-wrap {
  background: #ffffff;
}

.schedule-grid {
  font-size: 11px;
  table-layout: fixed;
}

.schedule-grid th,
.schedule-grid td {
  height: 24px;
  min-width: 22px;
  width: 22px;
  border-right: 1px solid #dedede;
  border-bottom: 1px solid #c8c8c8;
}

.schedule-grid thead th {
  height: 28px;
  background: #eeeeee;
  color: #000000;
  font-size: 12px;
}

.two-line-grid thead .sticky-col,
.schedule-grid thead .staff-head {
  background: #eeeeee;
}

.two-line-grid .staff-col {
  left: 0;
  min-width: 158px;
  width: 158px;
  max-width: 158px;
  background: #ffffff;
}

.two-line-grid .type-col {
  left: 158px;
  min-width: 36px;
  width: 36px;
  max-width: 36px;
  background: #ffffff;
  border-right: 0;
  text-align: right;
  padding: 0 4px 0 0;
}

.two-line-grid .info-col {
  left: 194px;
  min-width: 160px;
  width: 160px;
  max-width: 160px;
  background: #ffffff;
  border-right: 2px solid #8c8c8c;
  padding: 0 4px 0 2px;
}

.two-line-grid .staff-name {
  background: #ffffff;
  text-align: left;
  padding: 0 6px;
  font-size: 12px;
  border-bottom: 1px solid #c8c8c8;
}

.two-line-grid .staff-name-text {
  font-weight: 700;
}

.staff-no {
  min-width: 24px;
  color: #333333;
  font-size: 11px;
  margin-right: 2px;
}

.two-line-grid .row-type {
  font-size: 10px;
  font-weight: 400;
  color: #333333;
}

.two-line-grid .row-info {
  font-size: 11px;
  font-weight: 600;
  color: #000000;
}

.two-line-grid .staff-shift-row th,
.two-line-grid .staff-shift-row td,
.two-line-grid .staff-work-row th,
.two-line-grid .staff-work-row td {
  height: 24px;
}

.two-line-grid .staff-work-row th,
.two-line-grid .staff-work-row td {
  border-bottom: 1px solid #a9a9a9;
}

.two-line-grid .remaining-text {
  color: #ff0000;
  font-weight: 700;
}

.two-line-grid .cell {
  min-width: 22px;
  width: 22px;
  height: 24px;
  background: #ffffff;
}

.two-line-grid .time-head {
  min-width: 22px;
  width: 22px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  vertical-align: top;
  padding-top: 7px;
  overflow: visible;
  white-space: nowrap;
}

.two-line-grid .time-head.hour-start {
  border-left: 2px solid #7d7d7d;
  text-align: left;
  padding-left: 1px;
}

.schedule-grid td.hour-start {
  border-left: 2px solid #8c8c8c;
}

.two-line-grid .shift-line-cell.shift-band {
  background: #c9c9c9;
}

.two-line-grid .work-line-cell.shift.work-empty {
  background: #bdefff;
}

.two-line-grid .work-line-cell.worked {
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.cell.painting {
  outline: 2px solid #0078d7;
  outline-offset: -2px;
}

.status-bar {
  padding: 4px 8px;
  background: #eeeeee;
}

/* v0.7: 作業帯も連結表示 */
.work-panel {
  width: 54px;
  flex-basis: 54px;
  padding: 4px 3px;
}

.work-item {
  display: grid;
  grid-template-columns: 34px 10px;
  align-items: center;
  gap: 2px;
  width: 46px;
}

.work-chip {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 22px;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  word-break: keep-all;
  line-height: 22px;
  display: block;
  text-align: center;
  font-size: 12px;
}

.work-shortcut {
  width: 10px;
  min-width: 10px;
  text-align: left;
}

.schedule-grid th,
.schedule-grid td,
.two-line-grid .cell,
.two-line-grid .time-head {
  min-width: var(--slot-width, 17px);
  width: var(--slot-width, 17px);
  max-width: var(--slot-width, 17px);
}

.two-line-grid .cell {
  height: 22px;
}

.two-line-grid .staff-shift-row th,
.two-line-grid .staff-shift-row td,
.two-line-grid .staff-work-row th,
.two-line-grid .staff-work-row td {
  height: 22px;
}

.two-line-grid .time-head {
  position: sticky;
  top: 0;
  height: 28px;
  overflow: visible;
  padding: 0;
  vertical-align: top;
  z-index: 5;
}

.two-line-grid .time-head .time-label {
  position: absolute;
  top: 6px;
  left: 2px;
  display: block;
  width: 48px;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  z-index: 7;
}

.two-line-grid .time-head.hour-start {
  padding-left: 0;
}

.two-line-grid .shift-line-cell.shift-band {
  position: relative;
  background: #c9c9c9;
}

.two-line-grid .shift-line-cell.shift-band.band-start,
.two-line-grid .shift-line-cell.shift-band.band-middle {
  border-right-color: #c9c9c9;
}

.two-line-grid .shift-line-cell.shift-band.band-end {
  border-right-color: #dedede;
}

.two-line-grid .shift-line-cell.hour-start.shift-band {
  border-left: 2px solid #8c8c8c;
}

.shift-band-label {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.two-line-grid .work-line-cell.worked {
  font-size: 10px;
  letter-spacing: -0.5px;
}


/* v0.8: 作業行も同じ作業が続く範囲を1本の帯として見せる */
.two-line-grid .work-line-cell.worked {
  position: relative;
  overflow: visible;
  font-size: 10px;
  letter-spacing: 0;
}

/* v0.8: 作業帯の15分単位線は薄いグレーにして目立たせない */
.two-line-grid .work-line-cell.worked.work-band-start,
.two-line-grid .work-line-cell.worked.work-band-middle {
  border-right-color: rgba(0, 0, 0, 0.10);
}

.two-line-grid .work-line-cell.worked.work-band-end {
  border-right-color: rgba(0, 0, 0, 0.12);
}

.two-line-grid .work-line-cell.hour-start.worked {
  border-left: 2px solid #8c8c8c;
}

.work-band-label {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* v0.9: 作業マスタ編集モーダル */
button.primary {
  background: #e8f0fe;
  border-color: #4f79d9;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #eeeeee;
  border: 1px solid #777777;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #c0c0c0;
}

.modal-footer {
  border-top: 1px solid #c0c0c0;
  border-bottom: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 14px;
  flex: 1;
}

.modal-close {
  min-width: 30px;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 8px 10px;
  background: #f5f5f5;
}

.modal-note {
  margin: 0 0 8px;
  color: #444;
  font-size: 12px;
}

.modal-spacer {
  flex: 1;
}

.work-master-table-wrap {
  overflow: auto;
  border: 1px solid #b6b6b6;
  background: #fff;
}

.work-master-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12px;
}

.work-master-table th,
.work-master-table td {
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  padding: 4px;
  text-align: left;
  height: 30px;
}

.work-master-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e6e6e6;
  font-weight: 700;
}

.work-master-table .wm-order {
  width: 58px;
  text-align: center;
  white-space: nowrap;
}

.work-master-table .wm-id {
  width: 44px;
  text-align: right;
  color: #444;
  padding-right: 8px;
}

.work-master-table input[type="text"] {
  width: 100%;
  height: 24px;
  border: 1px solid #999;
  padding: 2px 4px;
  font: inherit;
}

.work-master-table input[type="color"] {
  width: 48px;
  height: 24px;
  padding: 0;
  border: 1px solid #999;
  background: #fff;
}

.wm-name { min-width: 180px; }
.wm-short { min-width: 70px; }
.wm-shortcut { width: 42px !important; text-align: center; }

.wm-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border: 1px solid rgba(0,0,0,.35);
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}

.wm-move {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  margin-right: 2px;
  line-height: 1;
}

.wm-move:disabled {
  color: #aaa;
  border-color: #ccc;
  background: #f3f3f3;
}

.wm-delete {
  color: #dc2626;
  border-color: #d79a9a;
  padding: 2px 8px;
}

/* v0.16: 出勤行内の休憩帯 */
.two-line-grid .shift-line-cell.shift-break {
  position: relative;
  background: #eeeeee;
}

.two-line-grid .shift-line-cell.shift-break.band-start,
.two-line-grid .shift-line-cell.shift-break.band-middle {
  border-right-color: #eeeeee;
}

.two-line-grid .shift-line-cell.shift-break.band-end {
  border-right-color: #dedede;
}

.two-line-grid .shift-line-cell.hour-start.shift-break {
  border-left: 2px solid #8c8c8c;
}

.shift-break-label {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.two-line-grid .work-line-cell.work-break {
  background: #f4f4f4;
  border-right-color: rgba(0, 0, 0, 0.08);
}

/* v0.16 add-on: 出勤行の8時間超過部分を残業として赤表示 */
.two-line-grid .shift-line-cell.shift-overtime {
  position: relative;
  background: #ff8a8a;
}

.two-line-grid .shift-line-cell.shift-overtime.band-start,
.two-line-grid .shift-line-cell.shift-overtime.band-middle {
  border-right-color: #ff8a8a;
}

.two-line-grid .shift-line-cell.shift-overtime.band-end {
  border-right-color: #dedede;
}

.two-line-grid .shift-line-cell.hour-start.shift-overtime {
  border-left: 2px solid #8c8c8c;
}

.shift-overtime-label {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.range-controls select {
  padding: 7px 8px;
  min-width: 76px;
}

.range-controls #rangeModeSelect {
  min-width: 70px;
}

.range-separator {
  color: var(--muted);
  font-weight: 700;
}

/* v0.20: 年月入力 */
.month-control input[type="month"] {
  height: 28px;
  padding: 2px 6px;
  min-width: 118px;
  border: 1px solid #aeb9cc;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
