:root {
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-primary-rgb: 37, 99, 235;
  --brand-accent: #0f172a;
  --brand-accent-rgb: 15, 23, 42;
  --brand-accent-soft: #eff6ff;
  --brand-background: #f8fafc;
  --brand-surface: #ffffff;
  --brand-primary-soft: #dbeafe;
  --brand-primary-fog: #eff6ff;
  --brand-primary-border: #93c5fd;
  --brand-primary-ink: #1e40af;
  --brand-accent-deep: #172554;
  --brand-accent-soft-2: #f8fafc;
  --brand-accent-border: #dbeafe;
  --brand-accent-ring: rgba(37, 99, 235, 0.14);
  --brand-neutral-soft: #f8fafc;
  --brand-neutral-border: #e2e8f0;
  --brand-cancel-soft: #fee2e2;
  --brand-cancel-border: #fecaca;
  --brand-cancel-ink: #b91c1c;
  --navy: var(--brand-accent);
  --blue: var(--brand-primary);
  --sand: var(--brand-background);
  --mint: var(--brand-accent-soft);
  --ink: #15202b;
  --muted: #64748b;
  --border-soft: #e2e8f0;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

body {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  background:
    radial-gradient(circle at top right, rgba(var(--brand-primary-rgb), 0.14), transparent 28%),
    radial-gradient(circle at left center, rgba(var(--brand-accent-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, var(--brand-primary-fog) 0%, var(--brand-background) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-6,
.hero-card__title,
.booking-shell__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

p,
li,
label,
input,
select,
textarea,
button,
.btn,
.badge,
.table,
.text-secondary,
.booking-shell__subtitle,
.hero-card__text {
  letter-spacing: -0.01em;
}

.app-nav {
  background: linear-gradient(120deg, var(--navy), var(--brand-accent-deep) 58%, var(--blue));
  box-shadow: 0 14px 28px rgba(var(--brand-accent-rgb), 0.18);
}

.app-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus,
.app-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(var(--brand-primary-rgb), 0.18);
}

.app-nav .navbar-collapse {
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(220px, 48vw);
}

.container-xl {
  max-width: 1180px;
}

.brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-wordmark--nav {
  max-height: 2.9rem;
}

.brand-wordmark--auth {
  max-width: 220px;
}

.brand-wordmark--hero {
  max-width: 240px;
  margin-bottom: 1.15rem;
}

.hero-card,
.metric-card,
.stat-card,
.availability-pill {
  border-radius: 22px;
}

.hero-card {
  padding: 1.85rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--brand-primary-soft) 52%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.12);
}

.hero-card--brand {
  overflow: hidden;
  position: relative;
}

.hero-card--brand::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.16), transparent 68%);
  pointer-events: none;
}

.hero-card__copy {
  max-width: 42rem;
}

.hero-card__title {
  font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  line-height: 0.98;
  color: var(--navy);
  margin-top: 0.55rem;
}

.hero-card__text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card__meta-item {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(var(--brand-accent-rgb), 0.06);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.brand-preview {
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.98), rgba(37, 99, 235, 0.94));
  color: #fff;
  padding: 1.55rem;
  border-radius: 22px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 22px 34px rgba(15, 23, 42, 0.18);
}

.brand-preview__line {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.section-title {
  color: var(--navy);
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.table thead th {
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 800;
}

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

.stat-card,
.metric-card {
  padding: 1.1rem 1.15rem;
  background: var(--brand-surface);
  box-shadow: 0 12px 26px rgba(var(--brand-accent-rgb), 0.08);
  border: 1px solid rgba(var(--brand-accent-rgb), 0.06);
}

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

.text-bg-light {
  background-color: var(--brand-primary-soft) !important;
  color: var(--navy) !important;
}

.stat-card strong,
.metric-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
}

.stat-card span,
.metric-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.metric-card.compact strong {
  font-size: 1.25rem;
}

.dashboard-hero {
  padding: 1.6rem 1.7rem;
}

.dashboard-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.dashboard-date-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
}

.dashboard-date-form__picker {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.dashboard-layout .timeline-panel,
.dashboard-layout .card {
  border-radius: 24px;
}

.dashboard-agenda-panel .timeline-grid {
  min-width: 0;
}

.dashboard-agenda-panel .timeline-columns--day {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-timeline-shell {
  overflow-x: visible;
}

.dashboard-timeline-event {
  text-decoration: none;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.dashboard-metric-card {
  min-height: 100%;
}

.dashboard-metric-card strong {
  font-size: 1.45rem;
}

.dashboard-booking-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-booking-item .booking-card__body {
  margin-bottom: 0;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.staff-print-header {
  display: none;
}

.staff-print-header--screen {
  display: block;
}

.staff-print-grid {
  display: none;
}

.staff-print-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.staff-print-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-print-page__hint {
  margin-top: 0.25rem;
}

.staff-print-grid__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.84rem;
}

.staff-print-grid__table th,
.staff-print-grid__table td {
  vertical-align: top;
  border: 1px solid var(--brand-neutral-border);
  padding: 0.7rem;
  background: #fff;
}

.staff-print-grid__table thead th {
  background: #eff6ff;
  color: var(--navy);
}

.staff-print-grid__member-head,
.staff-print-grid__member {
  width: 12.5rem;
  min-width: 12.5rem;
}

.staff-print-grid__total-head,
.staff-print-grid__total {
  width: 5.75rem;
  min-width: 5.75rem;
}

.staff-print-grid__weekday,
.staff-print-grid__date {
  display: block;
}

.staff-print-grid__weekday {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.18rem;
}

.staff-print-grid__date {
  font-size: 0.84rem;
}

.staff-print-grid__member-name {
  display: block;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}

.staff-print-grid__member-role {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.staff-print-grid__cell {
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.025), rgba(255, 255, 255, 0.96));
}

.staff-print-grid__off {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.staff-print-grid__total {
  text-align: center;
  background: #f8fbff;
}

.staff-print-grid__total strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.staff-print-grid__empty {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  padding: 1.2rem;
}

.staff-print-shift {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.45rem;
  padding: 0.5rem 0.55rem;
  border-left: 3px solid #2563eb;
  border-radius: 0.75rem;
  background: #f8fbff;
  line-height: 1.25;
}

.staff-print-shift:last-child {
  margin-bottom: 0;
}

.staff-print-shift.is-scheduled {
  background: #dbeafe;
  border-left-color: #2563eb;
}

.staff-print-shift.is-checked-in {
  background: #cffafe;
  border-left-color: #0891b2;
}

.staff-print-shift.is-completed {
  background: #dcfce7;
  border-left-color: #16a34a;
}

.staff-print-shift__time {
  display: block;
  color: var(--navy);
  font-size: 0.77rem;
  line-height: 1.2;
}

.staff-print-shift__assignment {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
}

.staff-print-shift__status {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.1rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(var(--brand-accent-rgb), 0.08);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-pdf-screen {
  background:
    radial-gradient(circle at top right, rgba(var(--brand-primary-rgb), 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--brand-background) 100%);
}

.staff-pdf-screen main.container-xl {
  max-width: 1280px;
}

.staff-pdf-screen .staff-print-grid {
  display: block;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.staff-pdf-screen .staff-print-grid__table {
  min-width: 1024px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(var(--brand-accent-rgb), 0.08);
}

.fleet-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.availability-pill {
  min-width: 98px;
  padding: 0.75rem 0.9rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-neutral-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.availability-pill.open {
  background: var(--brand-primary-fog);
  border-color: var(--brand-primary-border);
}

.availability-pill.closed {
  background: var(--brand-cancel-soft);
  border-color: var(--brand-cancel-border);
}

.availability-pill strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.availability-pill span {
  color: var(--muted);
  font-size: 0.8rem;
}

.card {
  border-radius: 22px;
  background: var(--brand-surface);
}

.card-body {
  padding: 1.35rem;
}

.shadow-sm {
  box-shadow: 0 10px 28px rgba(var(--brand-accent-rgb), 0.08) !important;
}

.booking-shell__hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.booking-shell__title {
  font-size: clamp(1.95rem, 2.9vw, 3rem);
  line-height: 1.05;
  margin: 0.45rem 0 0.7rem;
  color: var(--navy);
}

.booking-shell__subtitle {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.booking-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calendar-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--brand-neutral-border);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), 0.05);
}

.calendar-view-switch__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-view-switch__tab:hover,
.calendar-view-switch__tab:focus {
  color: var(--brand-primary-dark);
  background: var(--brand-accent-soft);
}

.calendar-view-switch__tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(var(--brand-primary-rgb), 0.2);
}

.booking-filters {
  border-radius: 22px;
}

.booking-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.booking-legend--calendar {
  gap: 0.85rem;
}

.booking-legend__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.booking-legend__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-legend .calendar-chip {
  width: auto;
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--reservation-fill, #fff);
  border: 1px solid var(--brand-neutral-border);
  color: var(--reservation-text, var(--ink));
  font-size: 0.8rem;
  font-weight: 600;
}

.calendar-legend-item__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
  background: var(--reservation-border, var(--blue));
}

.staff-legend-item .calendar-legend-item__dot {
  background: currentColor;
}

.staff-legend-item.is-scheduled {
  color: #2563eb;
}

.staff-legend-item.is-checked-in {
  color: #0891b2;
}

.staff-legend-item.is-completed {
  color: #16a34a;
}

.staff-filters {
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.04), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(var(--brand-primary-rgb), 0.08);
}

.calendar-legend-item.is-jetski,
.calendar-chip.product-jetski,
.timeline-event.product-jetski {
  --reservation-fill: #fee2e2;
  --reservation-border: #dc2626;
  --reservation-text: #991b1b;
}

.calendar-legend-item.is-boat-without-licence,
.calendar-chip.product-boat-without-licence,
.timeline-event.product-boat-without-licence {
  --reservation-fill: #dbeafe;
  --reservation-border: #2563eb;
  --reservation-text: #1d4ed8;
}

.calendar-legend-item.is-searay,
.calendar-chip.product-searay,
.timeline-event.product-searay {
  --reservation-fill: #fef3c7;
  --reservation-border: #f59e0b;
  --reservation-text: #92400e;
}

.calendar-legend-item.is-other,
.calendar-chip.product-other,
.timeline-event.product-other {
  --reservation-fill: #dcfce7;
  --reservation-border: #16a34a;
  --reservation-text: #166534;
}

.calendar-kpi-row .metric-card--calendar {
  min-height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.calendar-kpi-row .metric-card--calendar span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.calendar-kpi-row .metric-card--calendar strong {
  margin-top: 0.25rem;
  font-size: 1.65rem;
}

.calendar-panel,
.day-panel,
.timeline-panel {
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calendar-toolbar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-toolbar__title h2 {
  letter-spacing: -0.03em;
}

.calendar-toolbar__context {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.calendar-toolbar__nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calendar-nav-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--brand-neutral-border);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(var(--brand-accent-rgb), 0.04);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-nav-btn:hover,
.calendar-nav-btn:focus {
  background: var(--brand-accent-soft);
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary-border);
}

.calendar-nav-btn--today {
  min-width: auto;
  padding: 0 0.95rem;
  font-size: 0.86rem;
}

.calendar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-shell {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 860px;
  border: 1px solid var(--brand-neutral-border);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.timeline-axis {
  border-right: 1px solid var(--brand-neutral-border);
  background: #fff;
}

.timeline-axis__header {
  min-height: 4.6rem;
  border-bottom: 1px solid var(--brand-neutral-border);
  background: #fff;
}

.timeline-axis__body {
  position: relative;
}

.timeline-axis__label {
  position: absolute;
  left: 0.75rem;
  transform: translateY(-0.55rem);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.timeline-axis__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brand-neutral-border);
}

.timeline-columns {
  display: grid;
  background: #fff;
}

.timeline-columns--week {
  grid-template-columns: repeat(7, minmax(170px, 1fr));
}

.timeline-columns--day {
  grid-template-columns: minmax(320px, 1fr);
}

.timeline-column {
  min-width: 0;
  border-right: 1px solid var(--brand-neutral-border);
}

.timeline-column:last-child {
  border-right: 0;
}

.timeline-column.is-selected .timeline-column__header {
  background: #eef4ff;
}

.timeline-column.is-today .timeline-column__header {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.timeline-column__header {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-height: 4.6rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--brand-neutral-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.timeline-column__header:hover,
.timeline-column__header:focus {
  background: #f8fbff;
}

.timeline-column__weekday {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.timeline-column__day {
  font-size: 0.96rem;
  color: var(--navy);
}

.timeline-column__meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.timeline-column__body {
  position: relative;
  background:
    linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.02), transparent 16%),
    #fff;
}

.timeline-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brand-neutral-border);
}

.timeline-event {
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0.42rem 0.5rem 0.46rem;
  border-radius: 0.9rem;
  border-left: 3px solid var(--reservation-border, var(--blue));
  background: var(--reservation-fill, #e8f0fe);
  color: var(--reservation-text, #1f1f1f);
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(var(--brand-accent-rgb), 0.08);
  overflow: hidden;
}

.timeline-event:hover,
.timeline-event:focus {
  box-shadow: 0 14px 24px rgba(var(--brand-accent-rgb), 0.12);
}

.timeline-event.is-cancelled {
  opacity: 0.62;
  border-left-style: dashed;
  box-shadow: none;
}

.timeline-event__time {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-event__title {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.timeline-event__meta {
  display: block;
  margin-top: 0.18rem;
  color: inherit;
  opacity: 0.72;
  font-size: 0.68rem;
  line-height: 1.2;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
}

.calendar-scroll {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.calendar-frame {
  min-width: 920px;
  overflow: hidden;
  border: 1px solid var(--brand-neutral-border);
  border-radius: 22px;
  background: #fff;
}

.calendar-grid > :nth-child(7n) {
  border-right: 0;
}

.calendar-grid > .calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-grid__weekday {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.85rem 0.95rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  background: #fff;
  border-right: 1px solid var(--brand-neutral-border);
  border-bottom: 1px solid var(--brand-neutral-border);
}

.calendar-day {
  min-height: 158px;
  padding: 0.68rem;
  background: #fff;
  border-right: 1px solid var(--brand-neutral-border);
  border-bottom: 1px solid var(--brand-neutral-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 0;
  position: relative;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day:hover {
  background: #f9fbff;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), 0.12);
}

.calendar-day.is-muted {
  background: #f8fafc;
}

.calendar-day.is-muted .calendar-day__number,
.calendar-day.is-muted .calendar-day__meta,
.calendar-day.is-muted .calendar-chip,
.calendar-day.is-muted .calendar-day__count {
  opacity: 0.62;
}

.calendar-day.is-selected {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px rgba(var(--brand-primary-rgb), 0.7);
  z-index: 1;
}

.calendar-day.is-today .calendar-day__number {
  background: var(--blue);
  color: #fff;
}

.calendar-day.is-busy {
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.05), #fff 45%);
}

.calendar-day.is-light {
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.025), #fff 45%);
}

.calendar-day.is-selected,
.calendar-day.is-selected.is-busy,
.calendar-day.is-selected.is-light {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px rgba(var(--brand-primary-rgb), 0.7);
}

.calendar-day__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.calendar-day__headline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calendar-day__number {
  width: 1.95rem;
  height: 1.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
}

.calendar-day__today-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-dark);
  font-size: 0.66rem;
  font-weight: 700;
}

.calendar-day__count {
  min-width: auto;
  height: auto;
  padding: 0.22rem 0.52rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  color: var(--brand-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-day__meta {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-height: 2.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.calendar-day__meta-line {
  line-height: 1.3;
}

.calendar-day__availability {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
}

.calendar-day__availability.is-free {
  background: #eef7ee;
  color: #166534;
}

.calendar-day__events {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: auto;
}

.calendar-chip {
  display: inline-flex;
  align-items: flex-start;
  width: 100%;
  gap: 0.42rem;
  padding: 0.34rem 0.42rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  border-left: 3px solid var(--reservation-border, var(--blue));
  background: var(--reservation-fill, #e8f0fe);
  color: var(--reservation-text, #1f1f1f);
}

.calendar-chip__time {
  flex: 0 0 auto;
  min-width: 2.5rem;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.94;
}

.calendar-chip__title {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-chip__title small {
  display: block;
  margin-top: 0.08rem;
  color: inherit;
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.72;
}

.calendar-chip.is-cancelled {
  opacity: 0.62;
  border-left-style: dashed;
}

.calendar-chip.is-more {
  justify-content: center;
  border-left-width: 1px;
  border-left-style: dashed;
  border-left-color: var(--brand-primary-border);
  background: transparent;
  border-top: 1px dashed var(--brand-primary-border);
  border-right: 1px dashed var(--brand-primary-border);
  border-bottom: 1px dashed var(--brand-primary-border);
  color: var(--muted);
  font-weight: 700;
}

.staff-shift-chip,
.staff-timeline-event {
  --reservation-fill: #dbeafe;
  --reservation-border: #2563eb;
  --reservation-text: #1d4ed8;
}

.staff-shift-chip.is-scheduled,
.staff-timeline-event.is-scheduled {
  --reservation-fill: #dbeafe;
  --reservation-border: #2563eb;
  --reservation-text: #1d4ed8;
}

.staff-shift-chip.is-checked-in,
.staff-timeline-event.is-checked-in {
  --reservation-fill: #cffafe;
  --reservation-border: #0891b2;
  --reservation-text: #0f766e;
}

.staff-shift-chip.is-completed,
.staff-timeline-event.is-completed {
  --reservation-fill: #dcfce7;
  --reservation-border: #16a34a;
  --reservation-text: #166534;
}

.day-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.day-panel__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.day-panel__summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
}

.day-panel__empty {
  border: 1px dashed var(--brand-primary-border);
  border-radius: 18px;
  padding: 1.1rem;
  color: var(--muted);
  background: #f8fbff;
}

.staff-shift-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.staff-shift-card {
  border-radius: 20px;
  border: 1px solid rgba(var(--brand-accent-rgb), 0.08);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(var(--brand-accent-rgb), 0.05);
  padding: 1rem;
}

.staff-shift-card.is-scheduled {
  border-left: 4px solid #2563eb;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.45), #fff 48%);
}

.staff-shift-card.is-checked-in {
  border-left: 4px solid #0891b2;
  background: linear-gradient(180deg, rgba(207, 250, 254, 0.5), #fff 48%);
}

.staff-shift-card.is-completed {
  border-left: 4px solid #16a34a;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.55), #fff 48%);
}

.staff-shift-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.staff-shift-card__time {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.staff-shift-card__name {
  font-size: 1.08rem;
  margin: 0.2rem 0;
  color: var(--navy);
}

.staff-shift-card__assignment {
  color: var(--brand-primary-ink);
  font-weight: 600;
}

.staff-shift-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.staff-shift-card__line {
  border-radius: 16px;
  background: rgba(var(--brand-accent-rgb), 0.04);
  padding: 0.72rem 0.82rem;
}

.staff-shift-card__line span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.18rem;
}

.staff-shift-card__line strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.staff-shift-card__notes {
  margin-top: 0.8rem;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  background: rgba(var(--brand-primary-rgb), 0.06);
  color: var(--ink);
}

.staff-shift-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.9rem;
}

.staff-shift-card__actions form {
  margin: 0;
}

.staff-roster {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.staff-roster__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.04), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
}

.staff-roster__item strong {
  color: var(--navy);
}

.day-panel__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-card {
  border: 1px solid var(--brand-neutral-border);
  border-left: 4px solid var(--blue);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(var(--brand-accent-rgb), 0.06);
}

.booking-card--paid {
  border-left-color: #2563eb;
}

.booking-card--partial {
  border-left-color: #60a5fa;
}

.booking-card--pending {
  border-left-color: #64748b;
}

.booking-card--cancelled {
  border-left-color: #ef4444;
  background: #fff8f8;
}

.booking-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.booking-card__time {
  font-size: 0.74rem;
  color: var(--brand-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-card__name {
  font-size: 1.02rem;
  margin: 0.2rem 0;
  color: var(--navy);
}

.booking-card__vehicle {
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: end;
}

.booking-card__badges .badge {
  background: var(--brand-accent-soft) !important;
  color: var(--navy) !important;
  font-weight: 700;
}

.booking-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.booking-card__line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.booking-card__line span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.booking-card__line strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.booking-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-card__payment-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--brand-neutral-border);
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--brand-neutral-border);
}

.btn {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.72rem 1.18rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.92rem;
}

.btn-primary {
  background-color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  box-shadow: 0 14px 28px rgba(var(--brand-primary-rgb), 0.22);
}

.btn-outline-primary {
  color: var(--blue);
  border-color: rgba(var(--brand-primary-rgb), 0.34);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--brand-primary-dark);
  border-color: rgba(var(--brand-primary-rgb), 0.52);
}

.btn-outline-secondary {
  border-radius: 999px;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 1rem;
  border-color: var(--brand-neutral-border);
  padding: 0.75rem 0.95rem;
  font-size: 0.96rem;
}

.form-control-sm {
  min-height: 2.35rem;
  padding: 0.45rem 0.72rem;
  border-radius: 0.8rem;
}

.form-check-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(var(--brand-primary-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.14);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.96);
}

.alert {
  border-radius: 18px;
}

.alert-success,
.alert-info {
  background: var(--brand-accent-soft-2);
  border-color: var(--brand-accent-border);
  color: var(--navy);
}

.alert-warning {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary-border);
  color: var(--brand-primary-ink);
}

.alert-danger {
  background: var(--brand-cancel-soft);
  border-color: var(--brand-cancel-border);
  color: var(--brand-cancel-ink);
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body.print-mode-staff-week {
    background: #fff;
  }

  body.print-mode-staff-week .app-nav,
  body.print-mode-staff-week .alert,
  body.print-mode-staff-week .booking-shell,
  body.print-mode-staff-week .calendar-kpi-row,
  body.print-mode-staff-week .day-panel,
  body.print-mode-staff-week #staff-member-form,
  body.print-mode-staff-week #staff-shift-form,
  body.print-mode-staff-week .staff-roster,
  body.print-mode-staff-week .staff-shift-list,
  body.print-mode-staff-week .btn,
  body.print-mode-staff-week .booking-legend {
    display: none !important;
  }

  body.print-mode-staff-week main.container-xl {
    max-width: none;
    padding: 0;
  }

  body.print-mode-staff-week .calendar-workspace {
    display: block;
    margin: 0;
  }

  body.print-mode-staff-week .calendar-workspace > .col-xl-8 {
    width: 100%;
    max-width: 100%;
  }

  body.print-mode-staff-week .calendar-workspace > .col-xl-4 {
    display: none !important;
  }

  body.print-mode-staff-week .staff-week-print-area {
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.print-mode-staff-week .staff-week-print-area .card-body {
    padding: 0;
  }

  body.print-mode-staff-week .staff-print-header {
    display: block;
    margin-bottom: 1rem;
  }

  body.print-mode-staff-week .timeline-toolbar,
  body.print-mode-staff-week .timeline-shell {
    display: none !important;
  }

  body.print-mode-staff-week .staff-print-grid {
    display: block;
  }

  body.print-mode-staff-week .staff-print-grid__table {
    font-size: 11px;
  }

  body.print-mode-staff-week .staff-print-grid__table th,
  body.print-mode-staff-week .staff-print-grid__table td {
    padding: 0.42rem;
  }

  body.print-mode-staff-week .staff-print-grid__member-head,
  body.print-mode-staff-week .staff-print-grid__member {
    width: 9.5rem;
    min-width: 9.5rem;
  }

  body.print-mode-staff-week .staff-print-grid__total-head,
  body.print-mode-staff-week .staff-print-grid__total {
    width: 4.8rem;
    min-width: 4.8rem;
  }

  body.print-mode-staff-week .staff-print-shift {
    break-inside: avoid;
    box-shadow: none;
  }

  body.print-mode-staff-week .staff-print-grid__cell,
  body.print-mode-staff-week .staff-print-grid__member,
  body.print-mode-staff-week .staff-print-grid__total {
    break-inside: avoid;
  }

  body.staff-pdf-screen {
    background: #fff;
  }

  body.staff-pdf-screen main.container-xl {
    max-width: none;
    padding: 0;
  }

  body.staff-pdf-screen .staff-print-page__actions,
  body.staff-pdf-screen .staff-print-page__hint {
    display: none !important;
  }

  body.staff-pdf-screen .staff-print-grid {
    overflow: visible;
    padding-bottom: 0;
  }

  body.staff-pdf-screen .staff-print-grid__table {
    font-size: 11px;
    min-width: 0;
    box-shadow: none;
  }

  body.staff-pdf-screen .staff-print-grid__table th,
  body.staff-pdf-screen .staff-print-grid__table td {
    padding: 0.42rem;
  }

  body.staff-pdf-screen .staff-print-grid__member-head,
  body.staff-pdf-screen .staff-print-grid__member {
    width: 9.5rem;
    min-width: 9.5rem;
  }

  body.staff-pdf-screen .staff-print-grid__total-head,
  body.staff-pdf-screen .staff-print-grid__total {
    width: 4.8rem;
    min-width: 4.8rem;
  }

  body.staff-pdf-screen .staff-print-shift {
    break-inside: avoid;
    box-shadow: none;
  }

  body.staff-pdf-screen .staff-print-grid__cell,
  body.staff-pdf-screen .staff-print-grid__member,
  body.staff-pdf-screen .staff-print-grid__total {
    break-inside: avoid;
  }
}

@media (min-width: 1200px) {
  .day-panel {
    position: sticky;
    top: 1.25rem;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: 1.3rem;
  }

  .brand-lockup {
    max-width: calc(100vw - 6rem);
  }

  .card-body {
    padding: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .booking-shell__hero,
  .calendar-toolbar,
  .day-panel__header,
  .booking-card__top,
  .staff-print-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-view-switch {
    width: 100%;
    justify-content: space-between;
    border-radius: 1.2rem;
  }

  .calendar-view-switch__tab {
    flex: 1 1 calc(33.333% - 0.3rem);
    min-width: 0;
  }

  .calendar-toolbar__left,
  .calendar-toolbar__context {
    width: 100%;
  }

  .calendar-toolbar__left {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-toolbar__nav,
  .calendar-toolbar__context {
    justify-content: flex-start;
  }

  .calendar-nav-btn {
    min-height: 2.45rem;
  }

  .calendar-day {
    min-height: 144px;
  }

  .timeline-grid {
    grid-template-columns: 72px minmax(0, 1fr);
    min-width: 720px;
  }

  .timeline-axis__label {
    left: 0.55rem;
    font-size: 0.68rem;
  }

  .timeline-column__header {
    min-height: 4.2rem;
    padding: 0.7rem 0.75rem;
  }

  .timeline-columns--week {
    grid-template-columns: repeat(7, minmax(140px, 1fr));
  }

  .timeline-columns--day {
    grid-template-columns: minmax(260px, 1fr);
  }

  .booking-legend {
    align-items: stretch;
  }

  .calendar-legend-item {
    width: fit-content;
  }

  .booking-card__body,
  .booking-card__payment-form,
  .staff-shift-card__body {
    grid-template-columns: 1fr;
  }

  .dashboard-hero__content,
  .dashboard-date-form,
  .dashboard-date-form__picker {
    flex-direction: column;
    align-items: stretch;
  }

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

  .staff-shift-card__top,
  .staff-roster__item {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-shift-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 991.98px) {
  .app-nav .navbar-collapse {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    padding-bottom: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .app-nav .navbar-nav {
    gap: 0.35rem;
  }

  .app-nav .nav-link {
    display: inline-flex;
    width: fit-content;
  }
}
