:root {
  --bg: #141210;
  --surface: #1e1c19;
  --surface2: #282522;
  --border: #3a3632;
  --text: #e8e4df;
  --muted: #9a948c;
  --accent-kitchen: #c4703a;
  --accent-front: #5b8fa8;
  --danger: #c44c4c;
  --warn: #c9a227;
  --ok: #5a9f6e;
  --radius: 10px;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: #5a5046 #1b1815;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #5a5046 #1b1815;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #1b1815;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b5d50 0%, #4c4138 100%);
  border-radius: 999px;
  border: 1px solid #2a2521;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7a6959 0%, #584a40 100%);
}

a {
  color: var(--accent-front);
}

.app-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.app-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.app-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.week-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.week-pill .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--accent-kitchen);
}

.app-header-aside {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.staff-admin-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.staff-admin-header-link .material-symbols-outlined {
  font-size: 1rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: 0;
  min-height: calc(100vh - 5rem);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.main-panel {
  padding: 1rem 1.25rem 2rem;
  min-width: 0;
  overflow-x: hidden;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.toolbar > * {
  flex-shrink: 0;
}

.toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.toolbar-field .material-symbols-outlined {
  font-size: 1rem;
}

.toolbar-field select {
  background: #1a1816;
  color: var(--text);
  border: 1px solid #4a433c;
  border-radius: 6px;
  font: inherit;
  padding: 0.2rem 0.4rem;
}

.toolbar-schedule-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.toolbar-schedule-hint[hidden] {
  display: none !important;
}

.schedule-save-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 5.5rem;
  font-weight: 600;
}

.schedule-save-toolbar .schedule-save-icon-sm {
  font-size: 1.05rem;
  vertical-align: middle;
}

.schedule-save-toolbar--dirty {
  background: #1b5e20 !important;
  border-color: #2e7d32 !important;
  color: #e8f5e9 !important;
}

.schedule-save-toolbar--saved {
  background: #c5e7c8 !important;
  border-color: #81c784 !important;
  color: #1b451c !important;
  cursor: default;
}

.schedule-save-toolbar[aria-disabled="true"] {
  cursor: default;
}

.schedule-save-toolbar:disabled:not(.schedule-save-toolbar--saved) {
  opacity: 0.55;
  cursor: not-allowed;
}

.action-btn,
.ghost-btn {
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.action-btn {
  border: 1px solid #6d5a49;
  background: #2c231b;
  color: #f1ddcc;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
}

.generator-status {
  min-height: 1.8rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.side-panel {
  border-left: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1rem 2rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

@media (max-width: 960px) {
  .side-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
  }
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab .material-symbols-outlined {
  font-size: 1.1rem;
}

.tab:hover {
  color: var(--text);
  border-color: #524c46;
}

.tab.is-active {
  color: var(--text);
  border-color: var(--accent-kitchen);
  background: #2a221c;
}

.tab[data-dept="front"].is-active {
  border-color: var(--accent-front);
  background: #1c2428;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(4.5rem, 1fr));
  gap: 0.35rem;
  margin-bottom: 1rem;
  min-width: 0;
  max-width: 100%;
}

.summary-day {
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  min-width: 0;
}

@media (max-width: 960px) {
  .summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .summary-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    margin-right: -0.15rem;
  }

  .summary-day {
    flex: 0 0 auto;
    min-width: 4.85rem;
    scroll-snap-align: start;
  }
}

.summary-day.is-busy {
  border-color: #6a5544;
}

.summary-day .dow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-day .date {
  font-weight: 600;
  margin: 0.15rem 0;
}

.summary-day .wt {
  font-variant-numeric: tabular-nums;
}

.summary-day .target {
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-day.is-ok .wt {
  color: var(--ok);
}

.summary-day.is-low .wt {
  color: var(--warn);
}

.grid-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background: var(--surface);
  max-width: 100%;
}

.grid-wrap:focus-visible {
  outline: 2px solid var(--accent-kitchen);
  outline-offset: 2px;
}

.staff-hours-summary {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.staff-hours-summary-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.staff-hours-summary-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.staff-hours-summary-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}

.staff-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 520px;
}

.staff-hours-table th,
.staff-hours-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  vertical-align: middle;
}

.staff-hours-table thead th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

.staff-hours-staff-col {
  text-align: left;
  white-space: nowrap;
  min-width: 6.5rem;
  background: var(--surface2);
  font-weight: 500;
}

.staff-hours-num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
}

.staff-hours-num-col.is-empty-hours {
  color: var(--muted);
}

.staff-hours-total-col {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.staff-hours-detail-col {
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: var(--muted);
  min-width: 12rem;
}

.staff-hours-table thead .staff-hours-detail-col {
  text-align: left;
}

.staff-hours-table tbody tr:nth-child(odd) th {
  background: var(--surface2);
}

.staff-hours-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.02);
}

.staff-hours-table tbody tr:nth-child(even) th {
  background: rgba(255, 255, 255, 0.05);
}

.staff-hours-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.06);
}

.staff-hours-table tbody tr:hover th,
.staff-hours-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

.staff-hours-table tfoot th,
.staff-hours-table tfoot td {
  background: var(--surface2);
  font-weight: 600;
  border-top-width: 2px;
}

.schedule-table tbody .cell-select {
  max-width: 100%;
}

.toolbar-action-muted {
  opacity: 0.62;
  cursor: not-allowed;
}

.table-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 640px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.schedule-table thead th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  justify-content: space-between;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.sort-icon {
  font-size: 0.95rem;
  color: #9b9288;
}

.schedule-table thead th:first-child,
.schedule-table tbody th,
.schedule-table tfoot th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.35);
}

.schedule-table thead th:first-child {
  z-index: 3;
}

.schedule-table tbody th {
  background: var(--surface2);
  font-weight: 500;
  white-space: nowrap;
  min-width: 7rem;
}

.schedule-table tfoot th:first-child {
  background: #231f1b;
}

.schedule-table td.cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-select {
  width: 100%;
  min-width: 5.3rem;
  border: 1px solid #4f4740;
  background: #1d1a17;
  color: var(--text);
  border-radius: 5px;
  font: inherit;
  font-size: 0.74rem;
  padding: 0.15rem 0.25rem;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.role-mc {
  background: #5b242b;
  color: #ffd6da;
  border: 1px solid #8a3b45;
}

.role-ac {
  background: #243a62;
  color: #d6e5ff;
  border: 1px solid #3c5c96;
}

.role-kh {
  background: #5a3d21;
  color: #ffe0bd;
  border: 1px solid #8c6236;
}

.role-select {
  width: 100%;
  min-width: 3.2rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.32rem;
  border: 1px solid;
  appearance: none;
  cursor: pointer;
}

.role-select:disabled,
.cell-select:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.role-select.role-mc {
  background: #5b242b;
  color: #ffd6da;
  border-color: #8a3b45;
}

.role-select.role-ac {
  background: #243a62;
  color: #d6e5ff;
  border-color: #3c5c96;
}

.role-select.role-kh {
  background: #5a3d21;
  color: #ffe0bd;
  border-color: #8c6236;
}

.role-warning {
  margin-left: 0.3rem;
  padding: 0.04rem 0.25rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: #6b1f26;
  color: #ffb9be;
  border: 1px solid #9a3b45;
  cursor: pointer;
}

.role-warning-critical {
  background: #8f1d1d;
  color: #ffe4e4;
  border-color: #d94a4a;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.02rem 0.18rem;
}

.role-warning-icon {
  font-size: 0.86rem;
  line-height: 1;
}

.blink {
  animation: blinkPulse 0.95s ease-in-out infinite;
}

@keyframes blinkPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.36;
    transform: scale(0.95);
  }
}

.schedule-table .hrs-col {
  text-align: right;
  min-width: 5.5rem;
}

.schedule-table td.cell.is-empty {
  color: #5c5854;
}

.schedule-table td.cell.is-off {
  background: #2a1818;
  color: #e88888;
  font-weight: 600;
}

.schedule-table td.cell.is-oncall {
  background: #2a2618;
  color: #e0c46a;
}

.schedule-table tfoot th,
.schedule-table tfoot td {
  background: #231f1b;
  font-weight: 600;
}

.schedule-table tfoot td.total-staff-cell {
  color: #d7d2cb;
}

.footer-count {
  margin-right: 0.35rem;
}

.footer-show-btn {
  border: 1px solid #575047;
  background: #2b2723;
  color: #d7d2cb;
  border-radius: 5px;
  font: inherit;
  font-size: 0.66rem;
  padding: 0.12rem 0.35rem;
  cursor: pointer;
}

.footer-cell-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-warnings {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.side-panel-sticky-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  margin: -0.25rem -1rem 0.65rem;
  padding: 0.25rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.side-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.side-panel-sticky-top h2 {
  margin: 0 0 0.5rem;
}

.side-panel h2 .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--accent-front);
}

.side-note {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.availability-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: var(--surface2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.staff-ft-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(209, 151, 102, 0.22);
  color: #e8c9a8;
  border: 1px solid rgba(209, 151, 102, 0.45);
}

.card-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.card-summary {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.planner-role-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.planner-field-label {
  font-size: 0.68rem;
  color: var(--muted);
  min-width: 2.5rem;
}

.planner-role-select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.planner-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.planner-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--text);
  cursor: pointer;
}

.planner-toggle input {
  accent-color: #d19766;
}

.planner-toggle--locked {
  opacity: 0.65;
  cursor: default;
}

.planner-toggle--locked input {
  cursor: not-allowed;
}

.availability-out-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}

.planner-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--text);
}

.availability-out-radio-row--locked {
  opacity: 0.55;
}

.availability-out-radio {
  accent-color: #d19766;
}

.availability-out-radio:disabled {
  cursor: not-allowed;
}

.day-toggle-muted {
  opacity: 0.45;
}

.db-side-hint {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.availability-search-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid #524c46;
  background: var(--surface2);
}

.availability-search-icon {
  font-size: 1.15rem;
  color: var(--muted);
  flex-shrink: 0;
}

.availability-search-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.availability-search-input::placeholder {
  color: var(--muted);
}

.availability-search-clear {
  flex-shrink: 0;
  padding: 0.25rem 0.35rem;
  min-width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.availability-search-clear .material-symbols-outlined {
  font-size: 1.1rem;
}

.availability-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.35rem 0;
}
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
}

.windows li {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.windows li:first-child {
  border-top: none;
}

.day-toggle-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin: 0.45rem 0 0.2rem;
}

.day-toggle-row label {
  font-size: 0.66rem;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 0.1rem;
}

.day-toggle-row input {
  accent-color: #d19766;
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-kitchen {
  background: #3d2618;
  color: #e4a882;
}

.badge-front {
  background: #1a2e36;
  color: #8ecae6;
}

.badge-both {
  background: #2e2a36;
  color: #c4b8dc;
}

.legend {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.app-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
}

.modal-overlay--custom-shift {
  z-index: 120;
}

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

.modal-panel {
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #1c1916;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.modal-sub {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.modal-body h4 {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.8rem;
  color: #d7d2cb;
}

.chart-wrap {
  border: 1px solid var(--border);
  background: #24201c;
  border-radius: 8px;
  padding: 0.35rem;
  overflow-x: auto;
}

.chart-svg {
  width: 100%;
  height: auto;
  min-width: 720px;
}

.grid-line {
  stroke: #423b34;
  stroke-width: 1;
}

.axis-label {
  fill: #918980;
  font-size: 11px;
}

.top-hour-label {
  fill: #a8a096;
  font-size: 10px;
}

.name-label {
  fill: #d8d2cb;
  font-size: 12px;
}

.shift-bar {
  fill: #6f8fa1;
}

.shift-bar.role-mc {
  fill: #8a3f47;
}

.shift-bar.role-ac {
  fill: #4e71ad;
}

.shift-bar.role-kh {
  fill: #9a6c3e;
}


.bar-label {
  fill: #f0f3f5;
  font-size: 10px;
}

.coverage-line {
  stroke: #d6a56f;
  stroke-width: 2;
}

.coverage-dot {
  fill: #f2cc8f;
}

.coverage-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0.15rem 0 0.45rem;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.coverage-table-label {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.coverage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.coverage-remove-msg {
  font-size: 0.72rem;
  color: var(--muted);
}

.coverage-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.coverage-staff-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  font-size: 0.68rem;
  background: #2b2723;
}

.coverage-remove-btn {
  border: 1px solid #6a403f;
  background: #3a2323;
  color: #f2c1c1;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0.06rem 0.35rem;
  cursor: pointer;
}

.export-check-panel {
  width: min(760px, 96vw);
}

.export-check-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.export-check-summary {
  margin: 0;
  font-size: 0.84rem;
  color: #d7d2cb;
}

.export-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.export-check-item {
  border: 1px solid rgba(217, 74, 74, 0.35);
  background: rgba(143, 29, 29, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.export-check-item--critical {
  border-color: rgba(217, 74, 74, 0.45);
  background: rgba(143, 29, 29, 0.16);
}

.export-check-item--warning {
  border-color: rgba(209, 151, 102, 0.45);
  background: rgba(209, 151, 102, 0.12);
}

.export-check-item-title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffe4e4;
}

.export-check-item--warning .export-check-item-title {
  color: #f3d7a8;
}

.export-check-item-detail {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #d7d2cb;
}

.export-check-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.coverage-table th,
.coverage-table td {
  border-top: 1px solid var(--border);
  padding: 0.25rem 0.35rem;
}

.coverage-table th {
  color: var(--muted);
  text-align: left;
}

.export-board {
  width: 1320px;
  background: #d8ecfb;
  color: #111;
  font-family: "DM Sans", Arial, sans-serif;
  border: 2px solid #222;
}

.export-block + .export-block {
  margin-top: 8px;
}

.export-title {
  background: #fff566;
  text-align: center;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  padding: 8px 0;
  border-bottom: 2px solid #0a0a0a;
}

.export-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.export-table th,
.export-table td {
  border: 1px solid #0a0a0a;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  padding: 8px 6px;
}

.export-table .ym-head {
  width: 200px;
  background: #ffffff;
}

.export-table .day-head:nth-child(2) {
  background: #ffd6e8;
}
.export-table .day-head:nth-child(3) {
  background: #b8daf8;
}
.export-table .day-head:nth-child(4) {
  background: #c4edc4;
}
.export-table .day-head:nth-child(5) {
  background: #e0e0e0;
}
.export-table .day-head:nth-child(6) {
  background: #ddb8f0;
}
.export-table .day-head:nth-child(7) {
  background: #ffe8a8;
}
.export-table .day-head:nth-child(8) {
  background: #ff5c9d;
}

.export-table .date-head {
  background: #ffffff;
  font-size: 32px;
}

.export-table .section-head.kitchen-head {
  background: #5ee8ed;
  font-size: 34px;
  letter-spacing: 0.02em;
}

.export-table .section-head.front-head {
  background: #ffb24d;
  font-size: 34px;
  letter-spacing: 0.02em;
}

.export-table .name-cell {
  background: #ffffff;
  text-align: left;
  padding-left: 14px;
  width: 200px;
}

.export-table .off-cell {
  background: #ff9aa8;
}

.export-table .shift-cell {
  background: #ffffff;
}

.export-table .empty-cell {
  background: #d8ecfb;
}

.custom-shift-panel {
  width: min(420px, 94vw);
}

.custom-shift-body {
  padding-top: 0.25rem;
}

.custom-shift-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.custom-shift-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-shift-hint {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.custom-shift-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  background: #1d1a17;
  color: var(--text);
}

.custom-shift-row label {
  font-size: 0.82rem;
  color: var(--muted);
}

.custom-shift-select {
  width: 100%;
}

.custom-shift-error {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--danger);
}

.custom-shift-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
