:root {
  --app-bg: #f8f3eb;
  --app-surface: #fffaf3;
  --app-surface-soft: #f3eadf;
  --app-border: #d8c6b1;
  --app-border-soft: #eadfd1;
  --app-text: #2f2117;
  --app-muted: #8b6f55;
  --app-primary: #7c5633;
  --app-primary-hover: #5f3f22;
  --app-accent: #6f7f4f;
  --app-warning: #c8912c;
  --app-radius: 8px;
  --app-shadow: 0 10px 26px rgba(61, 40, 21, 0.08);
}

body {
  background:
    linear-gradient(180deg, #fffaf3 0, var(--app-bg) 18rem),
    var(--app-bg);
  color: var(--app-text);
  font-feature-settings: "tnum";
}

.app-navbar {
  background: rgba(255, 250, 243, 0.95);
  border-bottom: 1px solid var(--app-border-soft);
  box-shadow: 0 4px 18px rgba(61, 40, 21, 0.06);
  min-height: 3.8rem;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.app-navbar .container-fluid {
  gap: 0.75rem;
  max-width: 1680px;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  padding-right: clamp(1rem, 2vw, 1.75rem);
}

.navbar-brand {
  align-items: center;
  color: var(--app-text);
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--app-primary);
}

.brand-mark {
  border-radius: 7px;
  height: 2rem;
  object-fit: cover;
  width: 2rem;
}

.app-navbar .navbar-toggler {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.app-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2823, 32, 42, 0.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.app-navbar .nav-link {
  border-radius: 999px;
  color: #6f5841;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.12rem;
  padding: 0.58rem 0.78rem;
}

.app-navbar .nav-link:hover {
  background: var(--app-surface-soft);
  color: var(--app-primary);
}

.app-navbar .nav-link.active {
  background: #f1e6d8;
  color: var(--app-primary);
}

.app-user-name {
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-logout-button {
  border-color: var(--app-border);
  border-radius: 999px;
  font-weight: 700;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.app-main {
  max-width: 1680px;
  padding: clamp(1rem, 2.4vw, 2rem);
}

h1.h3 {
  color: var(--app-text);
  letter-spacing: 0;
}

.text-muted {
  color: var(--app-muted) !important;
}

.card {
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.card.shadow-sm {
  box-shadow: var(--app-shadow) !important;
}

.card-body {
  padding: 1rem;
}

a.card {
  color: var(--app-text) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

a.card:hover,
a.card:focus {
  border-color: rgba(124, 86, 51, 0.28);
  box-shadow: 0 14px 34px rgba(61, 40, 21, 0.12) !important;
  transform: translateY(-2px);
}

a.card h2 {
  color: var(--app-text);
  font-weight: 800;
  letter-spacing: 0;
}

.btn {
  border-radius: 7px;
  font-weight: 700;
}

.btn-dark {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

.btn-outline-dark {
  border-color: var(--app-primary);
  color: var(--app-primary);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-outline-secondary {
  border-color: var(--app-border);
  color: #6f5841;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #f1e6d8;
  border-color: #cfb79f;
  color: var(--app-text);
}

.form-control,
.form-select {
  border-color: var(--app-border);
  border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.2rem rgba(124, 86, 51, 0.16);
}

.form-label {
  color: #6f5841;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.table {
  --bs-table-color: var(--app-text);
  --bs-table-border-color: var(--app-border-soft);
  font-size: 0.9rem;
}

.table > :not(caption) > * > * {
  padding: 0.62rem 0.72rem;
}

.table-light {
  --bs-table-bg: var(--app-surface-soft);
  --bs-table-color: #6f5841;
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--app-radius);
  box-shadow: 0 8px 20px rgba(61, 40, 21, 0.05);
}

.modal-content {
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: 0 20px 50px rgba(61, 40, 21, 0.22);
}

.modal-header,
.modal-footer {
  border-color: var(--app-border-soft);
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.shadow-sm {
  box-shadow: var(--app-shadow) !important;
}

.admin-dashboard {
  margin-left: auto;
  margin-right: auto;
  max-width: 1480px;
  width: 100%;
}

.dashboard-clean {
  display: grid;
  gap: 1rem;
}

.dashboard-clean-head,
.dashboard-primary-panel,
.dashboard-side-panel,
.dashboard-secondary-panel,
.dashboard-status-strip {
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.dashboard-clean-head {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.dashboard-clean .dashboard-kicker {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-clean .dashboard-title {
  color: var(--app-text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0.25rem 0;
}

.dashboard-clean .dashboard-copy {
  color: var(--app-muted);
  font-weight: 750;
}

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

.dashboard-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
}

.dashboard-primary-panel,
.dashboard-side-panel,
.dashboard-secondary-panel {
  padding: 1rem;
}

.dashboard-panel-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.dashboard-panel-head.compact {
  margin-bottom: 0.7rem;
}

.dashboard-panel-head h2 {
  color: var(--app-text);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0.1rem 0 0;
}

.dashboard-panel-head a {
  color: var(--app-primary);
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.dashboard-month-pill {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.3rem 0.7rem;
}

.dashboard-work-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-work-card {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  color: var(--app-text);
  display: grid;
  gap: 0.35rem;
  min-height: 8.8rem;
  padding: 0.9rem;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-work-card.primary {
  background: #f1e6d8;
  border-color: rgba(124, 86, 51, 0.2);
}

.dashboard-work-card:hover,
.dashboard-work-card:focus {
  border-color: rgba(124, 86, 51, 0.3);
  box-shadow: 0 14px 28px rgba(61, 40, 21, 0.1);
  color: var(--app-text);
  transform: translateY(-1px);
}

.dashboard-work-label {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.dashboard-work-card strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.22;
}

.dashboard-work-card small {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-period-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-period-row {
  align-items: center;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem;
}

.dashboard-period-row strong,
.dashboard-period-row span,
.dashboard-period-status b {
  display: block;
}

.dashboard-period-row strong {
  color: var(--app-text);
  font-size: 0.94rem;
  font-weight: 900;
}

.dashboard-period-row span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-period-status {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  text-align: right;
}

.dashboard-period-status b {
  color: var(--app-text);
  font-size: 1rem;
  font-weight: 900;
}

.dashboard-status-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.dashboard-status-strip div {
  border-right: 1px solid var(--app-border-soft);
  min-width: 0;
  padding: 0.8rem 1rem;
}

.dashboard-status-strip div:last-child {
  border-right: 0;
}

.dashboard-status-strip span,
.dashboard-status-strip small {
  color: var(--app-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
}

.dashboard-status-strip strong {
  color: var(--app-text);
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.08;
  margin: 0.25rem 0 0.15rem;
}

.dashboard-link-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-link-list a {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  color: var(--app-text);
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  text-decoration: none;
}

.dashboard-link-list a:hover,
.dashboard-link-list a:focus {
  border-color: rgba(124, 86, 51, 0.28);
  color: var(--app-text);
}

.dashboard-link-list strong {
  font-size: 0.94rem;
  font-weight: 900;
}

.dashboard-link-list span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-task-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-task-row {
  align-items: center;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  color: var(--app-text);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
}

.dashboard-task-row:hover,
.dashboard-task-row:focus {
  border-color: rgba(124, 86, 51, 0.3);
  color: var(--app-text);
}

.dashboard-task-row.urgent {
  background: #fff7e0;
  border-color: rgba(200, 145, 44, 0.34);
}

.dashboard-task-row.done {
  background: #edf2e6;
  border-color: rgba(111, 127, 79, 0.28);
}

.dashboard-task-row strong,
.dashboard-task-row span {
  display: block;
}

.dashboard-task-row strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.dashboard-task-row span {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.forecast-page {
  max-width: 1480px;
}

.forecast-hero {
  align-items: flex-end;
  background: #ffffff;
  border: 1px solid var(--app-border-soft);
  border-left: 6px solid var(--app-primary);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.forecast-kicker {
  color: var(--app-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-title {
  color: var(--app-text);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0.25rem 0 0.35rem;
}

.forecast-copy {
  color: var(--app-muted);
  font-weight: 650;
}

.forecast-hero-form {
  align-items: end;
  display: flex;
  gap: 0.55rem;
  min-width: 20rem;
}

.forecast-tabs .nav-link {
  border-radius: 999px;
  color: #6f5841;
  font-weight: 800;
}

.forecast-tabs .nav-link.active {
  background: var(--app-primary);
}

.forecast-toolbar .card-body {
  padding: 1rem;
}

.forecast-area-stack {
  display: grid;
  gap: 1rem;
}

.forecast-area-section {
  display: grid;
  gap: 0.75rem;
}

.forecast-area-head {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.forecast-area-title {
  color: #6f5841;
  font-size: 1.08rem;
  font-weight: 900;
  margin: 0;
}

.forecast-area-count {
  background: #f1e6d8;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
}

.forecast-store-card {
  overflow: hidden;
}

.forecast-store-card .card-body {
  padding: 0.95rem;
}

.forecast-store-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.forecast-store-title {
  color: var(--app-text);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.forecast-kpi-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1.35fr 1fr 1fr;
  margin-bottom: 0.65rem;
}

.forecast-kpi {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  min-width: 0;
  padding: 0.55rem 0.6rem;
}

.forecast-kpi-main {
  background: #f1e6d8;
  border-color: rgba(124, 86, 51, 0.16);
}

.forecast-kpi-label {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.forecast-kpi-value {
  color: var(--app-primary);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.forecast-kpi-main .forecast-kpi-value {
  font-size: 1.28rem;
}

.forecast-highlight {
  align-items: center;
  background: #fff7e0;
  border: 1px solid rgba(242, 183, 5, 0.28);
  border-radius: var(--app-radius);
  color: #5c4705;
  display: flex;
  font-size: 0.84rem;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.6rem;
}

.forecast-highlight-label {
  color: #8a6a00;
  font-size: 0.72rem;
  font-weight: 900;
}

.forecast-table {
  min-width: 760px;
}

.forecast-mini-table {
  font-size: 0.8rem;
}

.forecast-mini-table > :not(caption) > * > * {
  padding: 0.38rem 0.45rem;
}

.forecast-date-cell {
  font-weight: 850;
  white-space: nowrap;
}

.forecast-date-cell span {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-left: 0.2rem;
}

.forecast-type-pill,
.forecast-weather-pill {
  background: #f1e6d8;
  border-radius: 999px;
  color: #6f5841;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}

.forecast-weather-pill {
  background: #edf2e6;
  color: #4f6538;
}

.forecast-detail-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.25fr 1fr 1fr;
}

.forecast-detail-kpi {
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.forecast-detail-kpi.primary {
  background: #f1e6d8;
  border-color: rgba(124, 86, 51, 0.16);
}

.forecast-detail-value {
  color: var(--app-primary);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.forecast-row-highlight > td {
  background: #fff7e0 !important;
}

@media (max-width: 1100px) {
  .forecast-hero,
  .forecast-hero-form {
    align-items: stretch;
    flex-direction: column;
  }

  .forecast-hero-form {
    min-width: 0;
  }

  .forecast-kpi-row,
  .forecast-detail-kpis {
    grid-template-columns: 1fr;
  }
}

.forecast-chart-wrap {
  height: 440px;
  min-height: 440px;
}

.forecast-peak-list {
  display: grid;
  gap: 0.55rem;
  max-height: 520px;
  overflow: auto;
}

.forecast-peak-item {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  padding: 0.7rem;
}

.forecast-classic {
  --forecast-bg: #f8f3eb;
  --forecast-panel: #fffaf3;
  --forecast-line: rgba(124, 86, 51, 0.18);
  --forecast-brown: #7c5633;
  --forecast-ink: #3d2815;
  --forecast-muted: #9b7755;
  --forecast-soft: #f1e6d8;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 250px minmax(0, 1fr);
}

.forecast-sidebar,
.forecast-main-panel,
.forecast-classic-panel,
.forecast-classic-card {
  background: var(--forecast-panel);
  border: 1px solid var(--forecast-line);
  box-shadow: 0 18px 38px rgba(61, 40, 21, 0.08);
}

.forecast-sidebar {
  align-self: start;
  border-radius: 18px;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 1rem;
  position: sticky;
  top: 5rem;
}

.forecast-brand-mini {
  border-bottom: 1px solid var(--forecast-line);
  color: var(--forecast-ink);
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.forecast-brand-mini span {
  color: var(--forecast-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.forecast-brand-mini strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.forecast-side-block,
.forecast-store-links {
  display: grid;
  gap: 0.55rem;
}

.forecast-side-label,
.forecast-eyebrow {
  color: var(--forecast-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-side-area {
  display: grid;
  gap: 0.35rem;
}

.forecast-side-area-title {
  color: var(--forecast-ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.forecast-store-link {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--forecast-ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}

.forecast-store-link:hover,
.forecast-store-link.active {
  background: #fff;
  border-color: var(--forecast-line);
  color: var(--forecast-brown);
}

.forecast-store-link.active {
  box-shadow: inset 4px 0 0 var(--forecast-brown);
}

.forecast-model-note {
  background: #fff;
  border: 1px solid var(--forecast-line);
  border-radius: 14px;
  color: var(--forecast-muted);
  display: grid;
  font-size: 0.78rem;
  gap: 0.25rem;
  line-height: 1.45;
  margin-top: 1rem;
  padding: 0.8rem;
}

.forecast-main-panel {
  border-radius: 20px;
  min-width: 0;
  padding: 1.15rem;
}

.forecast-classic-topbar {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.forecast-classic-title {
  color: var(--forecast-ink);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0.25rem 0;
}

.forecast-classic-copy {
  color: var(--forecast-muted);
  font-weight: 750;
  margin: 0;
}

.forecast-classic-controls {
  align-items: end;
  display: flex;
  gap: 0.55rem;
}

.forecast-classic .forecast-tabs .nav-link.active {
  background: var(--forecast-brown);
}

.forecast-classic-summary {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.forecast-classic-card {
  border-radius: 16px;
  min-width: 0;
  padding: 0.9rem 1rem;
}

.forecast-classic-card.selected {
  background: var(--forecast-brown);
  color: #fff;
}

.forecast-classic-card span {
  color: var(--forecast-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.forecast-classic-card.selected span {
  color: rgba(255, 255, 255, 0.72);
}

.forecast-classic-card strong {
  color: var(--forecast-ink);
  display: block;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.forecast-classic-card.selected strong {
  color: #fff;
  font-size: 1.08rem;
  white-space: normal;
}

.forecast-classic-panel {
  border-radius: 18px;
  margin-bottom: 0.9rem;
  padding: 1rem;
}

.forecast-section-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.forecast-section-head h2,
.forecast-model-panel h2 {
  color: var(--forecast-ink);
  font-size: 1.05rem;
  font-weight: 950;
  margin: 0.1rem 0 0;
}

.forecast-cache-pill,
.forecast-lunch-pill {
  background: var(--forecast-soft);
  border: 1px solid var(--forecast-line);
  border-radius: 999px;
  color: var(--forecast-brown);
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.25rem 0.55rem;
}

.forecast-day-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.forecast-day-card {
  background: #fff;
  border: 1px solid var(--forecast-line);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.75rem;
}

.forecast-day-card:hover,
.forecast-day-card.active {
  border-color: rgba(124, 86, 51, 0.48);
  box-shadow: 0 12px 24px rgba(61, 40, 21, 0.1);
  transform: translateY(-1px);
}

.forecast-day-card.active {
  outline: 3px solid rgba(124, 86, 51, 0.12);
}

.forecast-day-card.sat {
  background: #f2f8ff;
}

.forecast-day-card.sun,
.forecast-day-card.holiday {
  background: #fff2f0;
}

.forecast-day-date {
  align-items: baseline;
  color: var(--forecast-ink);
  display: flex;
  gap: 0.35rem;
}

.forecast-day-date strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.forecast-day-date span {
  color: var(--forecast-muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.forecast-day-weather {
  display: grid;
  gap: 0.15rem;
}

.forecast-weather-chip {
  align-items: center;
  color: var(--forecast-ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.28rem;
}

.forecast-weather-icon {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-1px);
}

.forecast-day-weather small,
.forecast-day-sub {
  color: var(--forecast-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.forecast-day-main {
  color: var(--forecast-brown);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.forecast-day-metrics {
  display: grid;
  gap: 0.4rem;
}

.forecast-day-metrics div {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  min-width: 0;
}

.forecast-day-metrics span {
  color: var(--forecast-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.forecast-day-metrics strong {
  color: var(--forecast-brown);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
}

.forecast-day-sub {
  display: grid;
  gap: 0.1rem;
}

.forecast-classic-detail-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
}

.forecast-classic .forecast-chart-wrap {
  height: 330px;
  min-height: 330px;
}

.forecast-selected-day {
  color: var(--forecast-muted);
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0.2rem 0 0;
}

.forecast-peak-list.compact {
  max-height: 330px;
}

.forecast-peak-line {
  align-items: center;
  color: var(--forecast-muted);
  display: flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.forecast-peak-line strong {
  color: var(--forecast-brown);
}

.forecast-model-panel {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.forecast-model-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.forecast-model-grid div {
  background: #fff;
  border: 1px solid var(--forecast-line);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.forecast-model-grid span {
  color: var(--forecast-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
}

.forecast-model-grid strong {
  color: var(--forecast-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.forecast-retrain-form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.performance-upload-page {
  display: grid;
  gap: 1rem;
}

.performance-upload-head {
  align-items: flex-end;
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-left: 6px solid var(--app-primary);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.performance-month-form {
  align-items: end;
  display: flex;
  gap: 0.55rem;
}

.performance-status-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.performance-status-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  min-width: 0;
  padding: 0.95rem 1rem;
}

.performance-status-card.done {
  background: #edf2e6;
  border-color: rgba(111, 127, 79, 0.26);
}

.performance-status-card span,
.performance-status-card small {
  color: var(--app-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
}

.performance-status-card strong {
  color: var(--app-text);
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.1;
  margin: 0.3rem 0 0.2rem;
}

.performance-reflect-panel {
  align-items: center;
  background: #fff7e0;
  border: 1px solid rgba(200, 145, 44, 0.3);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.95rem 1rem;
}

.performance-reflect-panel strong,
.performance-reflect-panel span {
  display: block;
}

.performance-reflect-panel strong {
  color: var(--app-text);
  font-weight: 900;
}

.performance-reflect-panel span {
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.performance-file-info {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
}

.performance-file-info strong {
  color: var(--app-text);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.performance-file-info span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.performance-store-list {
  display: grid;
  gap: 0.6rem;
}

.performance-store-row {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
}

.performance-store-main,
.performance-store-form {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.performance-store-main strong,
.performance-store-main span {
  display: block;
}

.performance-store-main strong {
  color: var(--app-text);
  font-size: 0.92rem;
  font-weight: 900;
}

.performance-store-main span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.performance-store-form .form-control {
  min-width: 0;
}

.forecast-daily-table {
  font-size: 0.86rem;
  min-width: 820px;
}

.forecast-daily-table > :not(caption) > * > * {
  border-color: rgba(124, 86, 51, 0.14);
  padding: 0.48rem 0.55rem;
}

.forecast-daily-table thead th {
  background: var(--forecast-soft);
  color: var(--forecast-ink);
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.forecast-date-cell.sat {
  color: #2f6690;
}

.forecast-date-cell.sun {
  color: #b24a42;
}

@media (max-width: 1180px) {
  .forecast-classic {
    grid-template-columns: 1fr;
  }

  .forecast-sidebar {
    max-height: none;
    position: static;
  }

  .forecast-store-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-day-grid,
  .forecast-classic-summary,
  .forecast-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-classic-detail-grid,
  .forecast-model-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .forecast-main-panel {
    padding: 0.8rem;
  }

  .forecast-classic-topbar,
  .forecast-classic-controls,
  .performance-upload-head,
  .performance-month-form,
  .performance-reflect-panel,
  .forecast-retrain-form {
    align-items: stretch;
    flex-direction: column;
  }

  .forecast-store-links,
  .forecast-day-grid,
  .forecast-classic-summary,
  .performance-status-grid,
  .forecast-model-grid {
    grid-template-columns: 1fr;
  }

  .performance-store-main,
  .performance-store-form {
    align-items: stretch;
    flex-direction: column;
  }
}

.dashboard-hero {
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(124, 86, 51, 0.98), rgba(111, 127, 79, 0.92)),
    #7c5633;
  border-radius: var(--app-radius);
  box-shadow: 0 16px 38px rgba(61, 40, 21, 0.18);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 2rem);
}

.dashboard-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.25rem 0 0.6rem;
}

.dashboard-copy {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.dashboard-hero-actions .btn-dark {
  background: #fff;
  border-color: #fff;
  color: var(--app-primary);
}

.dashboard-hero-actions .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.dashboard-hero-actions .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-stat-card,
.dashboard-period-card,
.dashboard-action-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.dashboard-stat-card {
  min-height: 8rem;
  padding: 1rem;
}

.dashboard-stat-label {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.dashboard-stat-value {
  color: var(--app-text);
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0.55rem 0 0.2rem;
}

.dashboard-stat-sub {
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-period-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.dashboard-period-title {
  font-size: 1.05rem;
  font-weight: 850;
}

.dashboard-period-meta {
  text-align: right;
}

.dashboard-period-count {
  color: var(--app-text);
  font-size: 1.35rem;
  font-weight: 850;
  margin-top: 0.35rem;
}

.dashboard-section-title {
  color: #6f5841;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.75rem;
  text-transform: uppercase;
}

.dashboard-action-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-action-card {
  align-items: flex-start;
  color: var(--app-text);
  display: flex;
  gap: 0.85rem;
  min-height: 8.5rem;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-action-card:hover,
.dashboard-action-card:focus {
  border-color: rgba(124, 86, 51, 0.3);
  box-shadow: 0 16px 36px rgba(61, 40, 21, 0.12);
  color: var(--app-text);
  transform: translateY(-2px);
}

.dashboard-action-primary {
  border-color: rgba(124, 86, 51, 0.28);
}

.dashboard-action-icon {
  align-items: center;
  background: #f1e6d8;
  border-radius: 7px;
  color: var(--app-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 850;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.dashboard-action-title,
.dashboard-action-copy {
  display: block;
}

.dashboard-action-title {
  font-size: 1.02rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.dashboard-action-copy {
  color: var(--app-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .app-navbar .navbar-collapse {
    background: var(--app-surface);
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    margin-top: 0.75rem;
    padding: 0.65rem;
  }

  .app-navbar .nav-link {
    border-radius: 7px;
    margin: 0.1rem 0;
  }

  .app-user-name {
    display: block;
    margin: 0.6rem 0 0.5rem;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-clean-head,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-clean-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-head-actions {
    justify-content: flex-start;
  }

  .dashboard-work-grid,
  .dashboard-link-list {
    grid-template-columns: 1fr;
  }

  .dashboard-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-status-strip div:nth-child(2) {
    border-right: 0;
  }

  .dashboard-status-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--app-border-soft);
  }
}

@media (max-width: 575.98px) {
  .app-main {
    padding: 0.85rem;
  }

  h1.h3 {
    font-size: 1.35rem;
  }

  .card-body {
    padding: 0.85rem;
  }

  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card {
    min-height: 7rem;
  }

  .dashboard-period-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-period-meta {
    text-align: left;
  }

  .dashboard-status-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-status-strip div,
  .dashboard-status-strip div:nth-child(2) {
    border-bottom: 1px solid var(--app-border-soft);
    border-right: 0;
  }

  .dashboard-status-strip div:last-child {
    border-bottom: 0;
  }

  .dashboard-period-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-period-status {
    justify-items: start;
    text-align: left;
  }
}

.shift-overview-table-wrap {
  max-height: calc(100vh - 16rem);
  overflow: auto;
}

.shift-overview-table {
  min-width: 1120px;
  table-layout: fixed;
}

.shift-overview-table thead th {
  background: var(--app-surface-soft);
  box-shadow: inset 0 -1px 0 var(--app-border);
  color: #6f5841;
  position: sticky;
  top: 0;
  z-index: 2;
}

.shift-overview-table .shift-sticky-col {
  background: var(--app-surface);
  box-shadow: inset -1px 0 0 var(--app-border);
  left: 0;
  position: sticky;
  z-index: 3;
}

.shift-overview-table thead .shift-sticky-col {
  background: var(--app-surface-soft);
  z-index: 4;
}

.shift-name-col {
  min-width: 13rem;
  width: 13rem;
}

.shift-day-header {
  min-width: 4.5rem;
  width: 4.5rem;
}

.shift-request-cell {
  font-size: 0.78rem;
  height: 3.25rem;
  line-height: 1.15;
  padding: 0.25rem;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.shift-staff-button {
  color: #212529;
}

.shift-cell-text {
  display: inline-block;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.shift-cell-text span {
  display: block;
}

.shift-type-time {
  color: var(--app-primary);
  font-weight: 700;
}

.shift-type-free {
  color: var(--app-accent);
  font-weight: 700;
}

.shift-type-off {
  color: #6c757d;
  font-weight: 700;
}

.shift-saturday {
  background-color: #eef6fb !important;
}

.shift-sunday {
  background-color: #fff3f1 !important;
}

.shift-editor-request {
  background: var(--app-surface-soft);
  border-left: 4px solid var(--app-primary);
  border-radius: var(--app-radius);
  padding: 0.75rem;
}

.monthly-shift-table .monthly-shift-cell {
  cursor: pointer;
  min-height: 3.5rem;
  padding: 0.2rem;
  vertical-align: top;
}

.monthly-shift-table {
  font-size: 0.82rem;
}

.monthly-shift-table .shift-day-header {
  font-weight: 700;
}

.monthly-shift-table-wrap {
  max-height: calc(100vh - 13.5rem);
}

.monthly-shift-table .monthly-shift-cell:hover {
  outline: 2px solid var(--app-primary);
  outline-offset: -2px;
}

.monthly-request-chip,
.monthly-shift-chip {
  align-items: center;
  border-radius: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.08rem 0;
  padding: 0.14rem 0.08rem;
}

.monthly-request-chip {
  background: #fff8df;
  border: 1px solid rgba(242, 183, 5, 0.38);
}

.monthly-request-free {
  background: #edf2e6;
  border-color: rgba(111, 127, 79, 0.28);
}

.monthly-request-off {
  background: #f1f4f7;
  border-color: rgba(102, 112, 133, 0.24);
}

.monthly-shift-chip {
  background: #fff;
  border: 1px solid rgba(124, 86, 51, 0.18);
}

.monthly-store-badge {
  background: #3d2815;
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  padding: 0.12rem 0.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-shift-time {
  color: var(--app-primary);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.monthly-request-text {
  color: #664d03;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.monthly-request-free .monthly-request-text {
  color: #1f776d;
}

.monthly-request-off .monthly-request-text {
  color: #495057;
}

.monthly-modal-request {
  background: #fff8df;
  border: 1px solid rgba(242, 183, 5, 0.38);
  border-radius: var(--app-radius);
  padding: 0.75rem;
}

.monthly-modal-request-empty {
  background: var(--app-surface-soft);
  border-color: var(--app-border);
}

.monthly-area-row th,
.monthly-area-row td {
  background: #e6ebf0 !important;
  color: #243646;
  font-weight: 700;
}

.monthly-store-row th,
.monthly-store-row td {
  background: var(--app-surface-soft);
}

.monthly-store-cell {
  color: #495057;
  font-size: 0.75rem;
}

.monthly-store-timeline-cell {
  cursor: pointer;
  vertical-align: top;
}

.monthly-store-timeline-cell:hover {
  outline: 2px solid var(--app-warning);
  outline-offset: -2px;
}

.monthly-store-staff {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.2;
  padding: 0.18rem 0;
}

.monthly-store-staff:last-child {
  border-bottom: 0;
}

.monthly-shift-image-title {
  color: #212529;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.monthly-shift-image-capture,
.monthly-shift-image-capture * {
  color: #212529;
  letter-spacing: 0;
}

.monthly-shift-image-capture .card {
  border: 1px solid #dee2e6;
  box-shadow: none !important;
}

.monthly-shift-image-capture .shift-overview-table-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.monthly-shift-image-capture .shift-sticky-col {
  box-shadow: none !important;
  left: auto !important;
  position: static !important;
}

.monthly-shift-image-capture .shift-name-col {
  min-width: 11rem;
  width: 11rem;
}

.monthly-shift-image-capture .shift-day-header {
  min-width: 4.2rem;
  width: 4.2rem;
}

.monthly-shift-image-capture .shift-request-cell {
  min-width: 4.2rem;
  width: 4.2rem;
}

.shift-today {
  box-shadow: inset 0 0 0 2px var(--app-warning);
}

.store-timeline-wrap {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.store-timeline-editor {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 0.75rem;
}

.timeline-forecast-panel {
  background: linear-gradient(135deg, #fff8ea 0%, #f3eadc 100%);
  border: 1px solid rgba(124, 86, 51, 0.18);
  border-radius: var(--app-radius);
  padding: 0.8rem;
}

.timeline-forecast-panel.timeline-forecast-error {
  background: #fff5f5;
  border-color: rgba(190, 70, 70, 0.2);
}

.timeline-forecast-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.timeline-forecast-head strong {
  color: var(--app-text);
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.timeline-forecast-head span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.timeline-forecast-weather {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 86, 51, 0.12);
  border-radius: 999px;
  color: var(--app-text);
  font-size: 0.88rem;
  font-weight: 850;
  padding: 0.32rem 0.65rem;
  white-space: nowrap;
}

.timeline-forecast-kpis {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-forecast-kpis > div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 86, 51, 0.12);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
}

.timeline-forecast-kpis span {
  color: var(--app-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 0.18rem;
}

.timeline-forecast-kpis strong {
  color: var(--app-text);
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.timeline-candidate-panel {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 0.75rem;
}

.timeline-candidate-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.timeline-candidate-head strong {
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 900;
}

.timeline-candidate-head span,
.timeline-candidate-empty {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.timeline-candidate-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-candidate-label {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.timeline-candidate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.timeline-candidate-button {
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-text);
  display: inline-flex;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.35rem 0.28rem 0.6rem;
}

.timeline-candidate-button:hover,
.timeline-candidate-button:focus {
  border-color: rgba(124, 86, 51, 0.36);
}

.timeline-candidate-name {
  font-size: 0.82rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-timeline-hours,
.store-timeline-row,
.store-timeline-forecast-row {
  display: grid;
  grid-template-columns: 9rem minmax(840px, 1fr);
  min-width: 980px;
}

.store-timeline-hours {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.store-timeline-scale,
.store-timeline-track {
  position: relative;
}

.store-timeline-scale {
  background:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(1.785714% - 1px),
      rgba(108, 117, 125, 0.16) calc(1.785714% - 1px),
      rgba(108, 117, 125, 0.16) 1.785714%
    ),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(7.142857% - 1px),
      rgba(33, 37, 41, 0.22) calc(7.142857% - 1px),
      rgba(33, 37, 41, 0.22) 7.142857%
    );
  border-bottom: 1px solid #ced4da;
  height: 1.6rem;
}

.store-timeline-hour {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.store-timeline-hour::after {
  background: #dee2e6;
  content: "";
  height: 0.55rem;
  left: 50%;
  position: absolute;
  top: 1rem;
  width: 1px;
}

.store-timeline-row {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  min-height: 3.25rem;
}

.store-timeline-row:last-child {
  border-bottom: 0;
}

.store-timeline-forecast-row {
  align-items: center;
  border-bottom: 1px solid rgba(124, 86, 51, 0.16);
  margin-bottom: 0.4rem;
  min-height: 4.2rem;
}

.store-timeline-name {
  font-weight: 700;
  padding-right: 0.75rem;
}

.store-timeline-track {
  background:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(1.785714% - 1px),
      rgba(108, 117, 125, 0.12) calc(1.785714% - 1px),
      rgba(108, 117, 125, 0.12) 1.785714%
    ),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(7.142857% - 1px),
      rgba(124, 86, 51, 0.16) calc(7.142857% - 1px),
      rgba(124, 86, 51, 0.16) 7.142857%
    ),
    #fffaf3;
  border-radius: 0.45rem;
  height: 2.2rem;
}

.store-timeline-forecast-track {
  align-items: end;
  display: block;
  height: 3.45rem;
  overflow: hidden;
}

.store-timeline-forecast-bar {
  background: linear-gradient(180deg, rgba(202, 145, 53, 0.92), rgba(153, 103, 39, 0.78));
  border-radius: 0.25rem 0.25rem 0 0;
  bottom: 0.25rem;
  min-height: 0.6rem;
  position: absolute;
}

.store-timeline-forecast-peak {
  background: #3f2b1a;
  border-radius: 999px;
  bottom: 0.3rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.18rem 0.32rem;
  position: absolute;
  transform: translateX(-50%);
}

.store-timeline-bar {
  align-items: center;
  background: var(--app-primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 0.25rem 0.65rem rgba(124, 86, 51, 0.22);
  border-radius: 0.45rem;
  color: #fff;
  cursor: grab;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 1.7rem;
  justify-content: center;
  min-width: 2.75rem;
  position: absolute;
  top: 0.25rem;
  user-select: none;
}

.store-timeline-bar:active {
  cursor: grabbing;
}

.store-timeline-bar.is-selected {
  background: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(111, 127, 79, 0.22);
}

.store-timeline-status-published {
  background: var(--app-accent);
}

.store-timeline-status-draft {
  background: var(--app-primary);
}

.store-timeline-resize {
  cursor: ew-resize;
  height: 100%;
  position: absolute;
  top: 0;
  width: 0.7rem;
}

.store-timeline-resize-start {
  left: 0;
}

.store-timeline-resize-end {
  right: 0;
}

.store-timeline-bar-time {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  line-height: 1;
  padding: 0.22rem 0.45rem;
  pointer-events: none;
  white-space: nowrap;
}

.confirmed-shift-table {
  font-size: 0.82rem;
  min-width: 980px;
}

.confirmed-shift-table-wrap {
  max-height: calc(100vh - 13.5rem);
}

.confirmed-shift-cell {
  vertical-align: top;
}

.confirmed-shift-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(111, 127, 79, 0.2);
  border-radius: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.08rem 0;
  padding: 0.14rem 0.08rem;
}

.confirmed-own-row .shift-sticky-col,
.confirmed-own-row td {
  background-color: #f2eee3;
}

.confirmed-shift-memo {
  color: #6c757d;
  font-size: 0.62rem;
  line-height: 1.1;
}

.confirmed-shift-table .shift-name-col {
  min-width: 10rem;
  width: 10rem;
}

.confirmed-shift-table .shift-day-header {
  min-width: 3.45rem;
  width: 3.45rem;
}

.confirmed-shift-table .shift-request-cell {
  font-size: 0.72rem;
  padding: 0.18rem;
}

.payroll-summary-card .card-body {
  padding: 0.85rem;
}

.payroll-summary-card .h3,
.payroll-summary-card .h4 {
  font-size: 1.25rem;
}

.payroll-total-card {
  border: 1px solid rgba(25, 135, 84, 0.3);
}

.mypage-calendar-wrap {
  overflow-x: visible;
}

.mypage-calendar {
  font-size: 0.78rem;
  width: 100%;
  table-layout: fixed;
}

.mypage-calendar th {
  background: #f8f9fa;
  font-size: 0.72rem;
  padding: 0.3rem 0.15rem;
}

.mypage-calendar td {
  height: 5rem;
  overflow: hidden;
  padding: 0.18rem;
  vertical-align: top;
}

.mypage-calendar-date {
  color: #495057;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.16rem;
}

.mypage-calendar-empty {
  background: #f5eee5;
}

.mypage-shift-chip {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(124, 86, 51, 0.18);
  border-radius: 0.28rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-bottom: 0.12rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.14rem 0.16rem;
}

.mypage-shift-chip .monthly-store-badge,
.mypage-shift-chip .monthly-shift-time {
  max-width: 100%;
}

.mypage-shift-chip .monthly-store-badge {
  display: block;
}

.mypage-shift-chip .monthly-shift-time {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mypage-detail-table {
  font-size: 0.84rem;
}

.mypage-detail-table th,
.mypage-detail-table td {
  padding: 0.45rem 0.55rem;
}

.shift-request-page .fc {
  font-size: 0.95rem;
}

.shift-request-page .fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.shift-request-page .fc .fc-button {
  border-radius: 0.5rem;
}

.shift-request-page .fc .fc-daygrid-day-number {
  color: #212529;
  text-decoration: none;
}

.shift-request-page .fc .fc-event {
  border: 0;
  border-radius: 0.35rem;
  padding: 0.1rem 0.25rem;
}

.shift-request-page .fc .fc-event-title,
.shift-request-page .fc .fc-event-main {
  white-space: normal;
}

.shift-submit-button {
  width: 100%;
}

@media (min-width: 576px) {
  .shift-submit-button {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .confirmed-shift-table {
    font-size: 0.68rem;
    min-width: 780px;
  }

  .confirmed-shift-table .shift-name-col {
    min-width: 7rem;
    width: 7rem;
  }

  .confirmed-shift-table .shift-day-header {
    min-width: 2.95rem;
    width: 2.95rem;
  }

  .confirmed-shift-table .shift-request-cell {
    font-size: 0.64rem;
    height: 2.8rem;
    padding: 0.12rem;
  }

  .confirmed-shift-table .shift-sticky-col {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .confirmed-shift-chip,
  .confirmed-shift-table .monthly-request-chip,
  .confirmed-shift-table .monthly-shift-chip {
    border-radius: 0.22rem;
    gap: 0.04rem;
    margin: 0.05rem 0;
    padding: 0.08rem 0.05rem;
  }

  .confirmed-shift-chip .monthly-store-badge,
  .confirmed-shift-table .monthly-store-badge {
    font-size: 0.48rem;
    padding: 0.07rem 0.12rem;
  }

  .confirmed-shift-chip .monthly-shift-time,
  .confirmed-shift-table .monthly-shift-time,
  .confirmed-shift-table .monthly-request-text {
    font-size: 0.54rem;
    line-height: 1.08;
    white-space: normal;
  }

  .confirmed-shift-table .monthly-store-staff {
    font-size: 0.58rem;
    line-height: 1.1;
    padding: 0.1rem 0;
  }

  .payroll-summary-card .card-body {
    padding: 0.65rem;
  }

  .payroll-summary-card .h3,
  .payroll-summary-card .h4 {
    font-size: 1.05rem;
  }

  .mypage-calendar {
    font-size: 0.66rem;
  }

  .mypage-calendar th {
    font-size: 0.64rem;
    padding: 0.24rem 0.05rem;
  }

  .mypage-calendar td {
    height: 4.1rem;
    padding: 0.08rem;
  }

  .mypage-calendar-date {
    font-size: 0.65rem;
  }

  .mypage-shift-chip {
    border-radius: 0.22rem;
    gap: 0.04rem;
    margin-bottom: 0.08rem;
    padding: 0.08rem;
  }

  .mypage-shift-chip .monthly-store-badge {
    font-size: 0.5rem;
    padding: 0.07rem 0.12rem;
  }

  .mypage-shift-chip .monthly-shift-time {
    font-size: 0.54rem;
    line-height: 1.08;
  }

  .mypage-detail-wrap {
    overflow-x: visible;
  }

  .mypage-detail-table,
  .mypage-detail-table thead,
  .mypage-detail-table tbody,
  .mypage-detail-table tr,
  .mypage-detail-table th,
  .mypage-detail-table td {
    display: block;
  }

  .mypage-detail-table {
    border-collapse: separate;
    border-spacing: 0 0.65rem;
    font-size: 0.82rem;
  }

  .mypage-detail-table thead {
    display: none;
  }

  .mypage-detail-table tr {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.3rem 0;
  }

  .mypage-detail-table td {
    align-items: center;
    border: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.28rem 0.75rem;
    text-align: right !important;
  }

  .mypage-detail-table td::before {
    color: #6c757d;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    padding-right: 0.75rem;
    text-align: left;
  }

  .shift-request-page .fc {
    font-size: 0.82rem;
  }

  .shift-request-page .fc .fc-toolbar {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .shift-request-page .fc .fc-toolbar-title {
    font-size: 1rem;
  }

  .shift-request-page .fc .fc-button {
    padding: 0.25rem 0.55rem;
  }

  .shift-request-page .fc .fc-col-header-cell-cushion,
  .shift-request-page .fc .fc-daygrid-day-number {
    padding: 0.25rem;
  }

  .shift-request-page .fc .fc-daygrid-day-frame {
    min-height: 4.7rem;
  }

  .shift-request-page .fc .fc-daygrid-event {
    margin: 1px 2px;
  }

  .shift-request-page .fc .fc-event {
    padding: 0.05rem 0.2rem;
  }

  .shift-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .shift-modal-actions {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    margin-left: 0 !important;
    width: 100%;
  }

  .shift-modal-footer #deleteButton {
    width: 100%;
  }
}
