:root {
  --navy: #17233c;
  --navy-soft: #263650;
  --blue: #315fa7;
  --blue-soft: #eaf1fb;
  --green: #27826c;
  --green-soft: #e5f4ef;
  --orange: #d47a2e;
  --orange-soft: #fff0e3;
  --red: #c65454;
  --red-soft: #fbeaea;
  --purple: #7162a9;
  --purple-soft: #f0edfa;
  --ink: #202a3a;
  --muted: #697386;
  --border: #e3e8ef;
  --background: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(26, 42, 68, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 980px;
  color: var(--ink);
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

.app-header {
  height: 76px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
}

.header-inner {
  width: min(1440px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-user {
  display: grid;
  gap: 2px;
  text-align: right;
}

.header-user span {
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.header-user small {
  color: #b7c2d2;
  font-size: 10px;
}

.backup-button,
.migration-button,
.logout-button {
  min-width: 92px;
  height: 36px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.backup-button {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.migration-button {
  color: var(--white);
  background: var(--blue);
  border-color: #6f91c4;
}

.migration-button:hover {
  background: #3d6eb5;
}

.backup-button:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.backup-button:focus-visible,
.migration-button:focus-visible,
.logout-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.backup-button:disabled,
.migration-button:disabled,
.logout-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  padding: 48px 24px;
  place-items: center;
  background:
    linear-gradient(rgba(23, 35, 60, 0.92), rgba(23, 35, 60, 0.96)),
    var(--navy);
}

.auth-card {
  width: min(420px, 100%);
  padding: 42px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(8, 15, 30, 0.28);
}

.auth-brand {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.auth-card h1 {
  font-size: 26px;
}

.auth-description {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.auth-form input,
.auth-form select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 95, 167, 0.13);
}

.auth-submit {
  height: 46px;
  margin-top: 12px;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.auth-submit:hover {
  background: var(--navy-soft);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
}

.auth-message.success {
  color: var(--green);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.brand-name,
.brand-subtitle,
.header-note,
.eyebrow,
.last-updated,
.metric-label,
.metric-value,
.record-count,
footer p {
  margin: 0;
}

.brand-name {
  letter-spacing: 0.16em;
  font-size: 14px;
  font-weight: 750;
}

.brand-subtitle {
  margin-top: 2px;
  color: #b7c2d2;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.header-note {
  color: #c5cedb;
  font-size: 13px;
}

.page-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0 44px;
}

#workspace-content {
  display: flex;
  flex-direction: column;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 30px;
  padding: 7px;
  background: #e8edf4;
  border: 1px solid #dce2eb;
  border-radius: 12px;
}

.workspace-tab {
  height: 46px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.workspace-tab:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

.workspace-tab.active {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(23, 35, 60, 0.18);
}

.workspace-tab:focus-visible {
  outline: 3px solid rgba(49, 95, 167, 0.28);
  outline-offset: 2px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.3;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 19px;
}

.last-updated {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 21px;
}

.metric-grid.office-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  min-width: 0;
  min-height: 120px;
  padding: 23px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

.metric-reservations .metric-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-attendance .metric-icon {
  color: var(--green);
  background: var(--green-soft);
}

.metric-cancellations .metric-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.metric-rate .metric-icon {
  color: var(--red);
  background: var(--red-soft);
}

.metric-average .metric-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.metric-business-day .metric-icon {
  color: var(--navy-soft);
  background: #edf1f5;
}

.office-only-metric[hidden] {
  display: none;
}

.metric-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value {
  margin-top: 7px;
  color: var(--navy);
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-value small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
}

.management-graphics {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.target-management-panel {
  margin-top: 22px;
  overflow: hidden;
}

.target-management-panel[hidden] {
  display: none;
}

.target-management-heading,
.target-save-bar {
  display: flex;
  padding: 18px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.target-management-heading {
  border-bottom: 1px solid var(--border);
}

.target-copy-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cad9ee;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.target-table-wrap {
  overflow-x: auto;
}

.target-table {
  width: 100%;
  border-collapse: collapse;
}

.target-table th,
.target-table td {
  padding: 13px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-align: left;
}

.target-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.target-table .numeric {
  text-align: right;
}

.target-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.daily-target-input {
  width: 100px;
  height: 38px;
  padding: 0 9px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #ccd5e1;
  border-radius: 6px;
  text-align: right;
  font-weight: 750;
}

.daily-target-input[aria-invalid="true"] {
  border-color: var(--red);
}

.monthly-target-output {
  color: var(--navy);
  font-weight: 750;
}

.target-save-bar {
  background: #fbfcfe;
}

.target-save-status {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.target-save-status.has-changes {
  color: var(--orange);
}

.target-save-status.error {
  color: var(--red);
}

.headquarters-target-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.collapsible-heading {
  position: relative;
}

.collapse-toggle {
  min-width: 78px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--navy-soft);
  background: #f7f9fc;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.collapse-toggle:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bfd0e8;
}

.collapse-toggle span {
  color: var(--blue);
  font-size: 9px;
}

.collapsible-content[hidden] {
  display: none !important;
}

.is-collapsed > .collapsible-heading {
  border-bottom: 0;
}

.target-management-panel.is-collapsed .target-copy-button {
  display: none;
}

.management-graphics[hidden] {
  display: none;
}

.graphic-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.graphic-heading {
  display: flex;
  min-height: 78px;
  padding: 18px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.graphic-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.goal-progress-list,
.comparison-list {
  display: grid;
}

.goal-progress-row,
.comparison-row {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.goal-progress-row:last-child,
.comparison-row:last-child {
  border-bottom: 0;
}

.goal-progress-header,
.comparison-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.goal-progress-header strong,
.comparison-row-header strong {
  color: var(--navy);
  font-size: 13px;
}

.goal-progress-header span,
.comparison-row-header span {
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 750;
}

.goal-progress-track,
.comparison-track {
  position: relative;
  height: 10px;
  margin-top: 11px;
  overflow: visible;
  background: #e8edf4;
  border-radius: 99px;
}

.goal-progress-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 13px;
}

.goal-progress-track-group .goal-progress-track {
  margin-top: 5px;
}

.goal-progress-track-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.goal-progress-track-label strong {
  color: var(--navy-soft);
  font-size: 11px;
}

.goal-progress-track.target-unset {
  background: repeating-linear-gradient(135deg, #edf0f4 0, #edf0f4 6px, #e2e6ec 6px, #e2e6ec 12px);
}

.goal-progress-bar,
.comparison-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #5e86c4);
  border-radius: inherit;
}

.goal-progress-bar.reservation-progress-bar {
  background: linear-gradient(90deg, #557eb9, #8ba8d0);
}

.goal-progress-bar.achievement-progress-bar {
  background: linear-gradient(90deg, var(--green), #69ad99);
}

.goal-progress-values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.goal-progress-values span {
  color: var(--muted);
  font-size: 11px;
}

.goal-progress-values strong {
  display: block;
  margin-top: 3px;
  color: var(--navy-soft);
  font-size: 13px;
}

.goal-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.goal-detail-grid span {
  min-height: 66px;
  padding: 12px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 10px;
}

.goal-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 14px;
}

.comparison-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.target-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-1px);
}

.chart-legend {
  min-height: 40px;
  padding: 10px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.legend-item i {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 99px;
}

.actual-swatch,
.attendance-swatch {
  background: var(--blue);
}

.target-swatch {
  background: var(--orange);
}

.reservation-swatch {
  background: #aebed5;
}

.line-chart {
  min-height: 270px;
  padding: 0 16px 12px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 270px;
}

.chart-grid-line {
  stroke: #e6eaf0;
  stroke-width: 1;
}

.actual-line,
.target-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.actual-line {
  stroke: var(--blue);
}

.target-line {
  stroke: var(--orange);
  stroke-dasharray: 7 6;
}

.actual-point {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 11px;
}

.y-axis-label {
  text-anchor: end;
}

.x-axis-label {
  text-anchor: middle;
}

.chart-empty {
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.headquarters-summary {
  margin-top: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.headquarters-summary[hidden] {
  display: none;
}

.summary-heading {
  display: flex;
  min-height: 79px;
  padding: 19px 24px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.summary-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-table-wrap {
  overflow-x: auto;
}

.summary-table th,
.summary-table td {
  height: 48px;
}

.content-grid {
  display: contents;
}

.month-filter-panel {
  order: 1;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.annual-trend[hidden],
.reservation-plan-panel[hidden],
.detail-tools-panel[hidden],
.office-insights[hidden],
.content-grid[hidden] {
  display: none;
}

.dashboard-section {
  order: 2;
  margin-top: 28px;
}

.panel-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.month-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-filter-controls input {
  width: 170px;
  text-align: center;
  font-weight: 700;
}

.month-move-button,
.current-month-button {
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cad9ee;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.month-move-button {
  width: 44px;
  padding: 0;
  font-size: 24px;
}

.current-month-button {
  min-width: 98px;
  padding: 0 14px;
}

.month-move-button:hover,
.current-month-button:hover {
  background: #dce8f8;
  border-color: #abc1e0;
}

.annual-trend {
  margin-top: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.annual-trend-table tbody tr:nth-child(odd) {
  background: #fcfdff;
}

.annual-trend-table th:nth-child(2),
.annual-trend-table td:nth-child(2) {
  width: 28%;
  min-width: 170px;
}

.trend-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  background: #e8edf4;
  border-radius: 99px;
}

.trend-bar {
  display: block;
  min-width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #5e86c4);
  border-radius: inherit;
}

.office-insights {
  order: 3;
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.insight-panel {
  overflow: hidden;
}

.insight-heading {
  display: flex;
  min-height: 78px;
  padding: 18px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.insight-heading > p,
.insight-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.compact-metric {
  min-height: 90px;
  padding: 19px 22px;
  background: var(--white);
}

.compact-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compact-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 22px;
}

.insight-note {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}

.office-goal-progress .goal-progress-row {
  border-bottom: 0;
}

.monthly-entry-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.monthly-weekday {
  padding: 9px 4px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.monthly-weekday.saturday,
.monthly-day.saturday .monthly-day-header > strong {
  color: var(--blue);
}

.monthly-weekday.sunday,
.monthly-day.sunday .monthly-day-header > strong {
  color: var(--red);
}

.monthly-calendar-days {
  display: contents;
}

.monthly-day {
  min-width: 0;
  min-height: 172px;
  padding: 9px;
  background: var(--white);
}

.monthly-day-blank {
  background: #f5f7fa;
}

.monthly-day.today-row {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.monthly-day-header,
.monthly-day-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.monthly-day-header > strong {
  color: var(--navy);
  font-size: 13px;
}

.today-badge {
  margin-left: 4px;
  vertical-align: 1px;
}

.business-day-toggle {
  min-width: 45px;
  height: 25px;
  padding: 0 7px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #c4e3da;
  border-radius: 99px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.business-day-toggle[aria-pressed="false"] {
  color: var(--muted);
  background: #eef1f5;
  border-color: #dce1e8;
}

.monthly-day-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.monthly-day-fields label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.monthly-number-input {
  height: 34px;
  margin-top: 4px;
  padding: 0 6px;
  text-align: right;
}

.monthly-number-input:disabled {
  color: #8b95a4;
  background: #f2f4f7;
  cursor: not-allowed;
}

.monthly-day-footer {
  margin-top: 10px;
  align-items: flex-end;
  flex-direction: column;
}

.monthly-day-footer .daily-cancellation-output {
  color: var(--muted);
  font-size: 10px;
}

.daily-status.missing {
  color: var(--orange);
  background: var(--orange-soft);
}

.daily-status.closed {
  color: var(--muted);
  background: #eef1f5;
}

.monthly-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fafbfc;
}

.unsaved-indicator,
.save-help {
  margin: 0;
}

.unsaved-indicator {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.unsaved-indicator.has-changes {
  color: var(--orange);
}

.save-help {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.monthly-save-button:disabled {
  background: #aab4c3;
  cursor: not-allowed;
}

.daily-performance-wrap {
  overflow-x: auto;
}

.daily-performance-table {
  min-width: 820px;
}

.daily-performance-table th,
.daily-performance-table td {
  height: 58px;
  padding: 7px 12px;
}

.daily-performance-table th:first-child,
.daily-performance-table td:first-child {
  width: 110px;
}

.daily-performance-table tbody th {
  color: var(--navy);
  background: transparent;
  font-size: 13px;
}

.daily-performance-table .numeric {
  width: 130px;
  text-align: center;
}

.daily-performance-table .today-row {
  background: #f2f6fc;
}

.daily-performance-table .today-row:hover {
  background: #edf4fd;
}

.daily-date-label {
  display: inline-block;
}

.today-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 750;
}

.daily-inline-input {
  width: 82px;
  height: 36px;
  padding: 0 8px;
  text-align: right;
}

.daily-inline-input:disabled {
  color: #8b95a4;
  background: #f2f4f7;
  cursor: not-allowed;
}

.daily-cancellation-output {
  color: var(--navy-soft);
  font-weight: 700;
}

.daily-cancellation-output.invalid {
  color: var(--red);
}

.daily-status {
  display: inline-block;
  min-width: 78px;
  padding: 5px 9px;
  border-radius: 99px;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
}

.daily-status.unreserved {
  color: var(--muted);
  background: #eef1f5;
}

.daily-status.reserved {
  color: var(--blue);
  background: var(--blue-soft);
}

.daily-status.completed {
  color: var(--green);
  background: var(--green-soft);
}

.daily-save-button {
  min-width: 66px;
  height: 34px;
  padding: 0 12px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.daily-save-button:hover {
  background: #274f90;
}

.daily-save-button:disabled {
  background: #aab4c3;
  cursor: not-allowed;
}

.daily-performance-message {
  min-height: 18px;
  margin: 10px 24px 0;
  color: var(--green);
  font-size: 12px;
}

.daily-performance-message.error {
  color: var(--red);
}

.weekday-average-table td:first-child {
  font-weight: 700;
}

.office-summary-row {
  cursor: pointer;
}

.office-summary-row:hover,
.office-summary-row:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.detail-tools-panel {
  order: 4;
  margin-top: 28px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-tools-panel h2 {
  margin-top: 5px;
  font-size: 18px;
}

.reservation-plan-panel {
  order: 7;
  margin-top: 28px;
  padding: 26px;
}

.reservation-plan-heading {
  align-items: center;
}

.reservation-plan-panel form {
  margin-top: 20px;
}

.reservation-plan-panel form[hidden] {
  display: none;
}

.plan-toggle-button {
  min-width: 190px;
  height: 42px;
  padding: 0 18px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cad9ee;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.plan-toggle-button:hover {
  background: #dce8f8;
  border-color: #abc1e0;
}

.reservation-plan-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 16px;
}

.reservation-plan-controls .form-field + .form-field {
  margin-top: 0;
}

.reservation-calendar-wrap {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.reservation-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.reservation-calendar[hidden] {
  display: none;
}

.calendar-weekday {
  padding: 10px 6px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.calendar-weekday.sunday,
.calendar-day.sunday .calendar-day-label {
  color: var(--red);
}

.calendar-weekday.saturday,
.calendar-day.saturday .calendar-day-label {
  color: var(--blue);
}

.calendar-days {
  display: contents;
}

.calendar-day {
  min-width: 0;
  min-height: 96px;
  padding: 9px;
  background: var(--white);
}

.calendar-day-blank {
  background: #f7f8fa;
}

.calendar-day-label {
  margin: 0 0 7px;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 750;
}

.plan-number-input {
  width: 100%;
}

.plan-number-input input {
  height: 38px;
  text-align: right;
}

.plan-empty-state {
  padding: 38px 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.plan-empty-state[hidden] {
  display: none;
}

.reservation-plan-actions {
  display: flex;
  min-height: 47px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.reservation-plan-actions .form-message {
  flex: 1;
  margin: 0;
  text-align: right;
}

.secondary-button {
  min-width: 210px;
  height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy-soft);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.15s ease;
}

.secondary-button:hover {
  background: var(--navy);
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.input-panel {
  order: 6;
  margin-top: 28px;
  padding: 26px;
}

.input-panel[hidden] {
  display: none;
}

.records-panel {
  order: 5;
  margin-top: 28px;
  min-height: 539px;
  overflow: hidden;
}

.records-panel .panel-heading {
  min-height: 91px;
  padding: 23px 26px 20px;
  border-bottom: 1px solid var(--border);
}

.record-count {
  padding: 6px 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.edit-mode-label {
  margin: 0;
  padding: 6px 11px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
}

.edit-mode-label[hidden] {
  display: none;
}

form {
  margin-top: 25px;
}

.form-field + .form-field,
.people-fields {
  margin-top: 18px;
}

.people-fields .form-field + .form-field {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 700;
}

label span {
  margin-left: 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

label .auto-label {
  color: var(--blue);
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd6e1;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 95, 167, 0.12);
}

input::placeholder {
  color: #a3abb8;
}

input[readonly] {
  color: var(--navy);
  background: var(--background);
  cursor: default;
}

select:disabled {
  color: var(--navy);
  background: var(--background);
  cursor: default;
  opacity: 1;
}

.number-input {
  position: relative;
}

.number-input input {
  padding-right: 40px;
}

.number-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.form-message {
  min-height: 18px;
  margin: 12px 0 4px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}

.form-message.success {
  color: var(--green);
}

.primary-button {
  width: 100%;
  height: 47px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: background 0.15s ease, transform 0.15s ease;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.cancel-edit-button {
  min-width: 132px;
  height: 47px;
  padding: 0 16px;
  color: var(--navy-soft);
  background: var(--white);
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.cancel-edit-button:hover {
  background: var(--background);
}

.cancel-edit-button[hidden] {
  display: none;
}

.primary-button:disabled {
  background: #aab4c3;
  cursor: not-allowed;
}

.primary-button:not(:disabled):hover {
  background: #274f90;
}

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

.primary-button:focus-visible,
.secondary-button:focus-visible,
.plan-toggle-button:focus-visible,
.month-move-button:focus-visible,
.current-month-button:focus-visible,
.daily-save-button:focus-visible,
.cancel-edit-button:focus-visible,
.edit-button:focus-visible,
.delete-button:focus-visible {
  outline: 3px solid rgba(49, 95, 167, 0.25);
  outline-offset: 2px;
}

.collapse-toggle:focus-visible {
  outline: 3px solid rgba(49, 95, 167, 0.25);
  outline-offset: 2px;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  height: 45px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 11px;
  font-weight: 700;
}

td {
  color: #354052;
}

tbody tr:hover {
  background: #fafcff;
}

.numeric {
  text-align: right;
}

.action-column {
  width: 128px;
  padding-left: 8px;
  text-align: center;
}

.record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.edit-button {
  height: 31px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.edit-button:hover {
  color: var(--white);
  background: var(--blue);
}

.classroom-badge {
  display: inline-block;
  padding: 4px 9px;
  color: var(--navy-soft);
  background: #edf1f5;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
}

.delete-button {
  width: 31px;
  height: 31px;
  color: #8992a0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.delete-button:hover {
  color: var(--red);
  background: var(--red-soft);
}

.empty-state {
  display: grid;
  min-height: 310px;
  padding: 40px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  place-items: center;
  color: #8490a2;
  background: #eef1f5;
  border-radius: 50%;
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 700;
}

.empty-state span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  padding: 0 0 25px;
  color: #8992a0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card {
    min-height: 105px;
  }

  .metric-grid.office-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .headquarters-target-overview,
  .goal-progress-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monthly-day {
    min-height: 164px;
    padding: 7px;
  }

  .monthly-day-fields {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
