:root {
  --navy: #10397d;
  --navy-deep: #0a285c;
  --teal: #58c4c2;
  --teal-soft: #dff6f5;
  --foam: #f7fbfc;
  --shell: #ffffff;
  --sand: #eef5f7;
  --ink: #172b4d;
  --ink-soft: #5a6b89;
  --gold: #d9b36b;
  --rose: #b85b68;
  --line: rgba(16, 57, 125, 0.12);
  --shadow: 0 26px 60px rgba(12, 34, 73, 0.14);
  --shadow-soft: 0 16px 36px rgba(12, 34, 73, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 196, 194, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 57, 125, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfeff 0%, #eef5f8 100%);
}

body.modal-open {
  overflow: hidden;
}

body.is-saving {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
.button,
.nav-link,
.open-link {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: relative;
  overflow: hidden;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background:
    radial-gradient(circle at top right, rgba(88, 196, 194, 0.22), transparent 32%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 60%, #081d46 100%);
  color: white;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}

.brand-lockup {
  display: grid;
  justify-content: center;
  gap: 18px;
}

.brand-badge {
  width: 116px;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 2px solid rgba(217, 179, 107, 0.92);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    inset 0 0 16px rgba(217, 179, 107, 0.38),
    0 0 0 1px rgba(255, 241, 186, 0.72),
    0 18px 35px rgba(6, 16, 38, 0.22);
}

.brand-badge img {
  display: block;
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 88%;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  object-position: center center;
  transform: none;
  transform-origin: center center;
}

.brand-badge--hero {
  width: 144px;
}

.sidebar h1,
.page-head h2,
.panel-head h3,
.login-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
}

.lede {
  margin: 10px 0 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
}

.nav-link.active,
.nav-link:hover {
  border-color: rgba(88, 196, 194, 0.28);
  background: rgba(88, 196, 194, 0.18);
  color: white;
  transform: translateX(2px);
}

.portal-card {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.portal-card strong {
  font-size: 17px;
}

.portal-card span,
.portal-card small {
  color: rgba(255, 255, 255, 0.8);
}

.portal-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.detail-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.detail-close-button:hover {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
}

.content {
  min-width: 0;
  padding: 30px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head h2 {
  font-size: clamp(32px, 4vw, 40px);
}

.employee-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.employee-profile-link:hover,
.employee-profile-link.active {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
  transform: translateY(-1px);
}

.employee-profile-link__avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36);
}

.employee-profile-link__name {
  font-weight: 900;
}

.badge-pair,
.button-row,
.totals,
.mini-tags,
.calendar-meta,
.inline-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.metric-pill,
.status-tag,
.mini-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.metric-pill {
  background: rgba(88, 196, 194, 0.14);
  color: var(--navy);
}

.metric-pill.subdued {
  background: rgba(16, 57, 125, 0.08);
  color: var(--ink-soft);
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.flash {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-color: rgba(88, 196, 194, 0.34);
}

.flash-warning,
.flash-error {
  border-color: rgba(184, 91, 104, 0.28);
}

.quote-viewers-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(217, 179, 107, 0.45);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.96), rgba(223, 246, 245, 0.84));
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.quote-viewers-banner[hidden] {
  display: none;
}

.quote-viewers-banner strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-viewers-banner span {
  color: var(--ink-soft);
  font-weight: 800;
  text-align: right;
}

.grid-two,
.detail-grid {
  display: grid;
  gap: 20px;
}

.grid-two {
  grid-template-columns: minmax(0, 370px) minmax(0, 1fr);
}

.detail-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

.panel {
  min-width: 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(16, 57, 125, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 252, 0.93));
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.form-stack,
.employee-stack,
.purchase-stack,
.calendar-stack,
.log-list {
  display: grid;
  gap: 16px;
}

.field-grid,
.skill-grid,
.service-grid,
.inline-builder,
.crew-grid {
  display: grid;
  gap: 14px;
}

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

.client-suggest-field {
  position: relative;
}

.client-suggest-control {
  position: relative;
}

.client-suggestion-list {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(88, 196, 194, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(12, 34, 73, 0.18);
}

.client-suggestion-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.client-suggestion-option:hover,
.client-suggestion-option:focus {
  outline: none;
  background: rgba(88, 196, 194, 0.13);
}

.client-suggestion-option strong {
  font-size: 14px;
}

.client-suggestion-option span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.oyster-tag-upload {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.oyster-tag-dropzone {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(88, 196, 194, 0.62);
  border-radius: 22px;
  background: rgba(223, 246, 245, 0.42);
  color: var(--navy);
  cursor: pointer;
}

.oyster-tag-dropzone span {
  font-weight: 900;
}

.oyster-tag-dropzone small {
  color: var(--ink-soft);
  font-weight: 800;
}

.oyster-tag-dropzone input {
  margin-top: 8px;
}

.oyster-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.oyster-tag-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.oyster-tag-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(16, 57, 125, 0.08), rgba(88, 196, 194, 0.16));
  color: var(--navy);
  font-weight: 900;
}

.oyster-tag-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oyster-tag-card__body {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.oyster-tag-card__body strong,
.oyster-tag-card__body span,
.oyster-tag-card__body small {
  overflow-wrap: anywhere;
}

.oyster-tag-card__body span,
.oyster-tag-card__body small {
  color: var(--ink-soft);
  font-weight: 800;
}

.client-contact-card {
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.client-contact-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  list-style-position: inside;
}

.client-contact-card summary strong {
  color: var(--navy);
  font-size: 1.04rem;
}

.client-contact-card summary span {
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-contact-fields {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.event-contact-card {
  background: linear-gradient(135deg, rgba(223, 246, 245, 0.84), rgba(255, 255, 255, 0.96));
}

.event-contact-card summary strong {
  font-size: 1.12rem;
}

.event-contact-notes {
  display: grid;
  gap: 7px;
  padding: 0 16px 16px;
}

.employee-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.inline-builder {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.inline-cost-form {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-cost-form input {
  min-width: 96px;
  padding: 9px 10px;
  border-radius: 12px;
}

.inline-action-form {
  margin-top: 8px;
}

.inline-action-form .open-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.inline-action-form .employee-invite-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(159, 114, 39, 0.24);
  border-radius: 999px;
  background: rgba(243, 219, 177, 0.42);
  color: #7a4a09;
  font-weight: 800;
  line-height: 1.15;
}

.inline-action-form .employee-invite-link:hover {
  background: rgba(243, 219, 177, 0.68);
  color: #5f3704;
}

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

.crew-grid > .button-row {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.address-field > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-field-warning input {
  border-color: rgba(184, 91, 104, 0.72);
  background: rgba(184, 91, 104, 0.08);
  color: var(--rose);
}

.address-warning-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(184, 91, 104, 0.12);
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tax-toggle-field {
  align-content: end;
}

.tax-toggle-field-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.tax-toggle-field > span:first-child {
  font-size: 14px;
  font-weight: 700;
}

.toggle-switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100%;
}

.employee-login-field {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.14);
  border: 1px solid rgba(16, 57, 125, 0.12);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(12, 34, 73, 0.2);
  transition: transform 160ms ease;
}

.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-color: rgba(88, 196, 194, 0.4);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.service-stack {
  display: grid;
  gap: 10px;
}

.service-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.selected-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.empty-selection {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(16, 57, 125, 0.06);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.service-grid-collapsed {
  padding: 14px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.intake-paste-field {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  background: linear-gradient(180deg, rgba(88, 196, 194, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.field-legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field-helper {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-helper[data-state="success"] {
  color: #0f6b62;
}

.field-helper[data-state="error"] {
  color: #b83c57;
}

.skill-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.skill-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
  box-shadow: none;
}

.skill-choice span {
  font-weight: 700;
  color: var(--ink);
}

.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.service-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
  box-shadow: none;
}

.service-option span {
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 57, 125, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(12, 34, 73, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(88, 196, 194, 0.7);
  box-shadow:
    0 0 0 4px rgba(88, 196, 194, 0.14),
    inset 0 1px 2px rgba(12, 34, 73, 0.03);
}

input.input-error,
select.input-error,
textarea.input-error {
  border-color: rgba(184, 91, 104, 0.72);
  background: rgba(184, 91, 104, 0.08);
}

option.food-option-existing {
  color: var(--ink-soft);
}

.food-qty-input {
  max-width: 76px;
}

#service-modal.modal-shell {
  padding: 24px;
}

.modal-panel.service-modal-panel {
  width: min(var(--service-modal-width, 860px), calc(100vw - 48px));
  min-width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
}

.service-modal-panel .modal-head {
  flex-shrink: 0;
}

.service-modal-panel #service-modal-form {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.service-equipment-panel,
.service-food-panel {
  padding: 18px;
}

.service-equipment-panel__head,
.service-food-panel__head {
  padding: 0 0 14px;
  margin-bottom: 14px;
}

.service-employee-panel__head {
  padding: 14px 0;
  margin-bottom: 0;
}

.service-items-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.service-items-details + .service-items-details,
.service-items-details + .service-employee-panel__head {
  margin-top: 14px;
}

.service-items-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  list-style-position: inside;
}

.service-items-details summary span {
  color: var(--navy);
  font-weight: 900;
}

.service-items-details summary strong {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-items-details__body {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.service-employee-table {
  min-width: 520px;
}

.service-employee-table .employee-count-input {
  max-width: 96px;
}

.service-food-row-hidden {
  display: none !important;
}

.service-food-table {
  width: var(--service-food-table-width, 1000px);
  min-width: var(--service-food-table-width, 1000px);
  table-layout: fixed;
}

.service-food-col-name {
  width: var(--service-food-name-width, 220px);
}

.service-food-col-details {
  width: var(--service-food-details-width, 240px);
}

.service-food-col-quantity {
  width: var(--service-food-quantity-width, 110px);
}

.service-food-col-unit {
  width: var(--service-food-unit-width, 120px);
}

.service-food-col-basis {
  width: var(--service-food-basis-width, 220px);
}

.service-food-col-actions {
  width: var(--service-food-actions-width, 116px);
}

.service-food-table .food-qty-input {
  max-width: none;
}

.service-food-pagination {
  justify-content: flex-end;
  margin-top: 12px;
}

.service-food-page-status {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.service-food-row-error {
  min-height: 16px;
  font-size: 11px;
}

.service-new-food-panel {
  width: min(860px, calc(100vw - 48px));
}

textarea {
  resize: vertical;
}

.button,
.open-link {
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.button:hover,
.open-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  box-shadow: 0 14px 28px rgba(16, 57, 125, 0.16);
}

.button.primary:hover {
  box-shadow: 0 18px 34px rgba(16, 57, 125, 0.2);
}

.button.danger {
  background: linear-gradient(135deg, var(--rose), #d98273);
  color: white;
  box-shadow: 0 14px 28px rgba(184, 91, 104, 0.16);
}

.button.ghost,
.open-link {
  border: 1px solid rgba(16, 57, 125, 0.12);
  background: rgba(16, 57, 125, 0.06);
  color: var(--navy);
}

.button.ghost:hover,
.open-link:hover {
  background: rgba(16, 57, 125, 0.1);
}

.open-link--subtle {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.open-link--subtle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button.tiny {
  padding: 8px 12px;
  font-size: 12px;
}

.status-buckets {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  margin-bottom: 14px;
}

.bucket {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(88, 196, 194, 0.24);
  background: linear-gradient(180deg, rgba(88, 196, 194, 0.12), rgba(255, 255, 255, 0.86));
  box-shadow: var(--shadow-soft);
}

.bucket:hover,
.bucket--active {
  border-color: rgba(16, 57, 125, 0.28);
  transform: translateY(-1px);
}

.bucket--active {
  box-shadow: 0 0 0 2px rgba(16, 57, 125, 0.14), var(--shadow-soft);
}

.bucket span {
  display: block;
  font-size: 12px;
}

.bucket strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.bucket[class*="status-"] span,
.bucket[class*="status-"] strong {
  color: inherit;
}

.new-request-alert {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(217, 179, 107, 0.68);
  border-radius: 20px;
  background:
    radial-gradient(circle at left, rgba(217, 179, 107, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(223, 246, 245, 0.94));
  box-shadow: 0 22px 54px rgba(12, 34, 73, 0.16);
}

.payment-received-alert {
  border-color: rgba(88, 196, 194, 0.64);
  background:
    radial-gradient(circle at left, rgba(88, 196, 194, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 238, 0.94));
}

.new-request-alert__pulse {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--teal) 0 26%, transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(217, 179, 107, 0.34) 0 52%, transparent 54%);
  box-shadow: 0 0 0 0 rgba(88, 196, 194, 0.3);
}

.payment-received-alert__pulse {
  background:
    radial-gradient(circle at 50% 50%, #4caf7a 0 25%, transparent 27%),
    radial-gradient(circle at 50% 50%, rgba(88, 196, 194, 0.34) 0 52%, transparent 54%);
}

.new-request-alert.is-ringing .new-request-alert__pulse {
  animation: request-alert-pulse 1.1s ease-out infinite;
}

.new-request-alert__body {
  display: grid;
  gap: 3px;
}

.new-request-alert__body span {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.new-request-alert__body strong {
  color: var(--navy);
  font-size: 17px;
}

.new-request-alert__body small {
  color: var(--ink-soft);
}

.new-request-alert__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@keyframes request-alert-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 196, 194, 0.34);
    transform: scale(0.95);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(88, 196, 194, 0);
    transform: scale(1.04);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(88, 196, 194, 0);
    transform: scale(0.95);
  }
}

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

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.crm-table {
  min-width: 1520px;
}

.crm-table th,
.crm-table td {
  text-align: center;
}

.crm-table .table-sort-link,
.crm-table .status-column-filter,
.crm-table .crm-date-filter__toggle {
  justify-content: center;
}

.crm-table .table-sort-link {
  width: 100%;
}

.crm-table .status-column-filter {
  justify-content: center;
}

.crm-table .table-filter-row input,
.crm-table .table-filter-row select,
.crm-table .crm-date-filter__toggle {
  text-align: center;
}

.crm-table td span,
.crm-table td strong {
  text-align: center;
}

.crm-table tbody tr.crm-row-new {
  background:
    radial-gradient(circle at 92% 50%, rgba(88, 196, 194, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(217, 179, 107, 0.08), rgba(255, 255, 255, 0.96) 22%);
}

.crm-table tbody tr.crm-row-new td:first-child {
  box-shadow: inset 4px 0 0 rgba(88, 196, 194, 0.82);
}

.crm-table .crm-new-status-pulse {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(88, 196, 194, 0.46);
  background:
    radial-gradient(circle at 22% 50%, rgba(88, 196, 194, 0.24), transparent 32%),
    rgba(16, 57, 125, 0.08);
  box-shadow: 0 0 0 0 rgba(88, 196, 194, 0.34);
  animation: request-alert-pulse 1.1s ease-out infinite;
}

.crm-table th:nth-child(1),
.crm-table td:nth-child(1) {
  min-width: 170px;
}

.crm-table th:nth-child(2),
.crm-table td:nth-child(2) {
  min-width: 170px;
}

.crm-table th:nth-child(3),
.crm-table td:nth-child(3) {
  min-width: 260px;
}

.crm-table th:nth-child(4),
.crm-table td:nth-child(4),
.crm-table th:nth-child(5),
.crm-table td:nth-child(5) {
  min-width: 260px;
}

.crm-table th:nth-child(6),
.crm-table td:nth-child(6) {
  min-width: 150px;
}

.crm-table th:nth-child(7),
.crm-table td:nth-child(7) {
  min-width: 170px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  vertical-align: bottom;
}

.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.table-sort-link small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.table-sort-link.active {
  color: var(--navy);
}

.table-sort-link.active small {
  color: var(--navy);
}

.table-filter-row th {
  padding-top: 0;
  vertical-align: top;
}

.table-filter-row input,
.table-filter-row select {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 57, 125, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.date-range-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 8px;
  align-items: start;
}

.crm-date-filter {
  position: relative;
}

.crm-date-filter__toggle {
  width: 100%;
  min-height: 38px;
  padding: 9px 36px 9px 10px;
  border: 1px solid rgba(16, 57, 125, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.crm-date-filter__toggle::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.crm-date-filter__toggle[aria-expanded="true"] {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
}

.crm-date-filter__popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 25;
  min-width: 328px;
  padding: 12px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(12, 34, 73, 0.18);
}

.crm-date-filter__popover .date-range-filter {
  grid-template-columns: 1fr;
}

.crm-date-filter__popover .date-range-filter__field input {
  min-width: 0;
}

.crm-date-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.date-range-filter__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.date-range-filter__field span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-column-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.status-column-filter .button,
.status-column-filter select {
  flex: 0 0 auto;
}

td strong,
.calendar-card strong {
  display: block;
}

td span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.compact table {
  min-width: 0;
}

.compact th,
.compact td {
  padding: 10px 8px;
}

.stats-dashboard {
  display: grid;
  gap: 20px;
}

.stats-dashboard--compact {
  gap: 16px;
}

.stats-hero {
  padding: 18px 20px;
}

.stats-hero__head {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.stats-hero__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  justify-items: center;
  align-items: start;
  padding-right: 240px;
}

.stats-hero__fact {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.stats-hero__fact span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stats-hero__fact strong {
  color: var(--navy);
  font-size: clamp(22px, 2.8vw, 28px);
}

.stats-hero__fact small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.28;
}

.stats-range-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.stats-range-controls__row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stats-month-arrow {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(12, 34, 73, 0.08);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.stats-month-arrow:hover {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
}

.stats-range-dropdown {
  position: relative;
}

.stats-range-dropdown summary {
  min-width: 118px;
  list-style: none;
  cursor: pointer;
}

.stats-range-dropdown summary::-webkit-details-marker {
  display: none;
}

.stats-range-dropdown[open] summary {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
}

.stats-range-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 138px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(12, 34, 73, 0.16);
  z-index: 20;
}

.stats-range-dropdown__item {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.stats-range-dropdown__item:hover {
  background: var(--teal-soft);
}

.stats-yoy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(12, 34, 73, 0.08);
}

.stats-yoy-toggle:hover {
  border-color: rgba(88, 196, 194, 0.42);
  color: var(--navy);
  background: var(--teal-soft);
}

.stats-yoy-toggle__track {
  width: 32px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.13);
  transition: background 160ms ease;
}

.stats-yoy-toggle__track span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 3px 8px rgba(12, 34, 73, 0.18);
  transform: translateX(0);
  transition: transform 160ms ease;
}

.stats-yoy-toggle.is-on {
  color: var(--navy);
}

.stats-yoy-toggle.is-on .stats-yoy-toggle__track {
  background: linear-gradient(90deg, var(--navy), var(--teal));
}

.stats-yoy-toggle.is-on .stats-yoy-toggle__track span {
  transform: translateX(14px);
}

.stats-line-chart {
  display: grid;
  gap: 10px;
}

.stats-line-chart__axis-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.stats-line-chart__axis-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-line-chart__body {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.stats-line-chart__y-axis {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  justify-items: end;
  min-height: 320px;
  padding: 6px 0 28px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.stats-line-chart__canvas {
  position: relative;
  min-height: 320px;
  padding: 6px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(223, 246, 245, 0.1));
}

.stats-line-chart__plot {
  position: absolute;
  inset: 0 0 34px 0;
}

.stats-line-chart__gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(16, 57, 125, 0.08);
}

.stats-line-chart__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stats-line-chart__polyline {
  fill: none;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: default;
  transition: opacity 160ms ease, filter 160ms ease, stroke-width 160ms ease;
}

.stats-line-chart__polyline--last,
.stats-year-legend__swatch--last {
  stroke: #7b95bf;
  color: #7b95bf;
  background: #7b95bf;
}

.stats-line-chart__polyline--current,
.stats-year-legend__swatch--current {
  stroke: var(--navy);
  color: var(--navy);
  background: var(--navy);
}

.stats-line-chart__polyline--next,
.stats-year-legend__swatch--next {
  stroke: var(--gold);
  color: #a36a00;
  background: var(--gold);
}

.stats-line-chart__polyline--metric-booked {
  stroke-width: 2.75;
  stroke-dasharray: none;
}

.stats-line-chart__polyline--metric-quotes {
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 0.3 3.9;
}

.stats-line-chart__polyline--metric-requests {
  stroke-width: 1.85;
  stroke-linecap: butt;
  stroke-dasharray: 7 4;
}

.stats-line-chart__polyline--metric-event_requests {
  stroke-width: 2.15;
  stroke-linecap: butt;
  stroke-dasharray: 10 3 2 3;
}

.stats-line-chart__value {
  position: absolute;
  --metric-x: 0px;
  --metric-y: -14px;
  --year-x: 0px;
  --year-y: 0px;
  transform: translate(
    calc(-50% + var(--metric-x) + var(--year-x)),
    calc(-50% + var(--metric-y) + var(--year-y))
  );
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(12, 34, 73, 0.08);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.stats-line-chart__value--metric-booked {
  --metric-x: 0px;
  --metric-y: -18px;
}

.stats-line-chart__value--metric-quotes {
  --metric-x: 12px;
  --metric-y: -6px;
}

.stats-line-chart__value--metric-requests {
  --metric-x: -12px;
  --metric-y: -6px;
}

.stats-line-chart__value--metric-event_requests {
  --metric-x: 14px;
  --metric-y: -18px;
}

.stats-line-chart__value--last {
  --year-x: -4px;
}

.stats-line-chart__value--next {
  --year-x: 4px;
}

.stats-line-chart__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 1.5px solid white;
  box-shadow: 0 4px 10px rgba(12, 34, 73, 0.12);
  background: currentColor;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.stats-line-chart__dot--last {
  color: #7b95bf;
}

.stats-line-chart__dot--current {
  color: var(--navy);
}

.stats-line-chart__dot--next {
  color: var(--gold);
}

.stats-line-chart__dot--metric-booked {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stats-line-chart__dot--metric-quotes {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.stats-line-chart__dot--metric-requests {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid currentColor;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.stats-line-chart__dot--metric-event_requests {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.stats-line-chart__months {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.stats-line-chart__year-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stats-line-chart__metric-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stats-year-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.stats-year-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.stats-metric-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.stats-metric-legend__swatch {
  position: relative;
  width: 22px;
  height: 12px;
  color: var(--navy);
}

.stats-metric-legend__swatch::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.stats-metric-legend__swatch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.stats-metric-legend__swatch--booked::before {
  border-top-width: 3px;
}

.stats-metric-legend__swatch--booked::after {
  border-radius: 999px;
}

.stats-metric-legend__swatch--quotes::after {
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.stats-metric-legend__swatch--quotes::before {
  border-top-width: 3px;
  border-top-style: dotted;
}

.stats-metric-legend__swatch--requests::before {
  border-top-style: dashed;
  border-top-width: 2px;
}

.stats-metric-legend__swatch--requests::after {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid currentColor;
}

.stats-metric-legend__swatch--event_requests::before {
  border-top-style: dashed;
  border-top-width: 2px;
}

.stats-metric-legend__swatch--event_requests::after {
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.stats-line-chart.is-series-selected .stats-line-chart__polyline,
.stats-line-chart.is-series-selected .stats-line-chart__dot,
.stats-line-chart.is-series-selected .stats-line-chart__value,
.stats-line-chart.is-series-selected .stats-year-legend__item,
.stats-line-chart.is-series-selected .stats-metric-legend__item {
  opacity: 0.22;
}

.stats-line-chart.is-series-selected .stats-line-chart__polyline[data-year-key][data-metric-key],
.stats-line-chart.is-series-selected .stats-line-chart__dot[data-year-key][data-metric-key],
.stats-line-chart.is-series-selected .stats-line-chart__value[data-year-key][data-metric-key] {
  filter: saturate(0.9);
}

.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="booked"] .stats-line-chart__value[data-year-key="last"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="quotes"] .stats-line-chart__value[data-year-key="last"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="requests"] .stats-line-chart__value[data-year-key="last"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="booked"] .stats-line-chart__value[data-year-key="current"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="quotes"] .stats-line-chart__value[data-year-key="current"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="requests"] .stats-line-chart__value[data-year-key="current"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="booked"] .stats-line-chart__value[data-year-key="next"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="quotes"] .stats-line-chart__value[data-year-key="next"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="requests"] .stats-line-chart__value[data-year-key="next"][data-metric-key="requests"] {
  opacity: 1;
}

.stats-line-chart.is-series-selected[data-selected-year-key="last"] .stats-year-legend__item[data-year-key="last"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"] .stats-year-legend__item[data-year-key="current"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"] .stats-year-legend__item[data-year-key="next"],
.stats-line-chart.is-series-selected[data-selected-metric-key="booked"] .stats-metric-legend__item[data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-metric-key="quotes"] .stats-metric-legend__item[data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-metric-key="requests"] .stats-metric-legend__item[data-metric-key="requests"] {
  opacity: 1;
  color: var(--navy);
  transform: translateY(-1px);
}

.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="last"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="current"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="booked"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="quotes"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="requests"] .stats-line-chart__dot[data-year-key="next"][data-metric-key="requests"] {
  transform: translate(-50%, -50%) scale(1.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(12, 34, 73, 0.2);
  z-index: 3;
}

.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="last"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="last"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="current"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="current"][data-metric-key="requests"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="booked"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="booked"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="quotes"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="quotes"],
.stats-line-chart.is-series-selected[data-selected-year-key="next"][data-selected-metric-key="requests"] .stats-line-chart__polyline[data-year-key="next"][data-metric-key="requests"] {
  stroke-width: 2.65;
  filter: drop-shadow(0 2px 8px rgba(12, 34, 73, 0.18));
}

.stats-line-chart.is-series-selected .is-selected-series {
  opacity: 1;
}

.stats-line-chart.is-series-selected .stats-year-legend__item.is-selected-series,
.stats-line-chart.is-series-selected .stats-metric-legend__item.is-selected-series {
  color: var(--navy);
  transform: translateY(-1px);
}

.stats-line-chart.is-series-selected .stats-line-chart__dot.is-selected-series {
  transform: translate(-50%, -50%) scale(1.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(12, 34, 73, 0.2);
  z-index: 3;
}

.stats-line-chart.is-series-selected .stats-line-chart__dot--metric-quotes.is-selected-series {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.32);
}

.stats-line-chart.is-series-selected .stats-line-chart__dot--metric-event_requests.is-selected-series {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1.32);
}

.stats-line-chart.is-series-selected .stats-line-chart__polyline.is-selected-series {
  stroke-width: 2.9;
  filter: drop-shadow(0 2px 8px rgba(12, 34, 73, 0.18));
}

.stats-trend {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: end;
}

.stats-trend__axis {
  display: grid;
  gap: 8px;
  align-content: space-between;
  min-height: 250px;
  padding-bottom: 26px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.stats-trend__axis small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.stats-trend__axis--right {
  text-align: right;
}

.stats-trend__plot {
  min-width: 0;
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to top, rgba(16, 57, 125, 0.06) 1px, transparent 1px) 0 100% / 100% 25%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(223, 246, 245, 0.12));
}

.stats-trend__month {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.stats-trend__bars {
  width: 100%;
  height: 188px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.stats-trend__bar {
  width: min(22px, 28%);
  min-height: 8px;
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 8px 20px rgba(12, 34, 73, 0.12);
}

.stats-trend__bar--navy {
  background: linear-gradient(180deg, rgba(16, 57, 125, 0.96), rgba(79, 124, 197, 0.82));
}

.stats-trend__bar--teal {
  background: linear-gradient(180deg, rgba(88, 196, 194, 0.96), rgba(40, 147, 157, 0.84));
}

.stats-trend__bar--gold {
  background: linear-gradient(180deg, rgba(217, 179, 107, 0.96), rgba(191, 140, 53, 0.84));
}

.stats-trend__month strong {
  color: var(--navy);
  font-size: 12px;
}

.stats-trend__month small {
  color: var(--ink-soft);
  font-size: 11px;
}

.stats-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats-panel-head--compact {
  margin-bottom: 10px;
}

.stats-panel-head--compact h3 {
  font-size: 22px;
}

.stats-panel-head--compact p {
  margin-top: 4px;
  font-size: 13px;
}

.stats-mini-list {
  display: grid;
  gap: 8px;
}

.stats-mini-list__item,
.stats-split-list__row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 57, 125, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.stats-mini-list__item strong,
.stats-split-list__row strong {
  color: var(--navy);
}

.stats-mini-list__item span,
.stats-mini-list__item small,
.stats-split-list__row span {
  color: var(--ink-soft);
}

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

.stats-bars {
  display: grid;
  gap: 12px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(118px, 180px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.stats-bar-row__labels {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stats-bar-row__labels strong {
  color: var(--navy);
}

.stats-bar-row__labels small {
  color: var(--ink-soft);
  line-height: 1.35;
}

.stats-bar-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.08);
  box-shadow: inset 0 0 0 1px rgba(16, 57, 125, 0.04);
}

.stats-bar-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(88, 196, 194, 0.92), rgba(16, 57, 125, 0.82));
}

.stats-bar-fill--gold {
  background: linear-gradient(90deg, rgba(217, 179, 107, 0.94), rgba(88, 196, 194, 0.86));
}

.stats-bar-fill--navy {
  background: linear-gradient(90deg, rgba(16, 57, 125, 0.96), rgba(79, 124, 197, 0.82));
}

.stats-bar-fill--teal {
  background: linear-gradient(90deg, rgba(88, 196, 194, 0.96), rgba(115, 220, 198, 0.84));
}

.stats-bar-value {
  min-width: 42px;
  text-align: right;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.stats-best-months,
.stats-live-viewers {
  display: grid;
  gap: 12px;
}

.stats-best-months--compact,
.stats-live-viewers--compact {
  gap: 8px;
}

.stats-best-month,
.stats-live-viewer {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 57, 125, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.stats-best-month strong,
.stats-live-viewer strong {
  color: var(--navy);
}

.stats-best-month span,
.stats-best-month small,
.stats-live-viewer small {
  color: var(--ink-soft);
}

.empty-item {
  margin: 0;
  color: var(--ink-soft);
}

.empty-cell,
.empty-item,
.muted {
  color: var(--ink-soft);
}

.token-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.token-list li,
.log-row,
.purchase-card,
.employee-card,
.calendar-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.employee-card__head {
  margin-bottom: 16px;
}

.token-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.token-list li.token-list-detail {
  display: block;
}

.quote-food-breakdown summary,
.quote-employee-breakdown summary,
.quote-travel-breakdown summary,
.quote-travel-pay-breakdown summary,
.quote-misc-breakdown summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style-position: inside;
}

.quote-food-table,
.quote-employee-table,
.inline-travel-form,
.inline-overhead-form,
.travel-pay-details {
  margin-top: 14px;
}

.quote-food-service-row td {
  padding-top: 14px;
  padding-bottom: 8px;
  background: rgba(88, 196, 194, 0.12);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-buying-form {
  display: grid;
  grid-template-columns: minmax(74px, 92px) auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 4px;
}

.inline-buying-form input {
  width: 100%;
  padding: 8px 10px;
  font-weight: 800;
  color: var(--navy);
}

.caviar-option-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.8fr);
  gap: 8px;
  margin: 6px 0 4px;
}

.caviar-option-fields label {
  gap: 4px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caviar-option-fields select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.inline-employee-form select,
.employee-count-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
}

.employee-count-input {
  max-width: 86px;
  font-weight: 800;
  color: var(--navy);
}

.employee-count-stack {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.employee-count-stack span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.employee-total-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(88, 196, 194, 0.72);
  text-underline-offset: 4px;
  cursor: pointer;
}

.employee-total-button:hover,
.employee-total-button:focus-visible {
  color: var(--teal);
}

.employee-total-modal-panel {
  width: min(680px, 100%);
}

.employee-total-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

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

.employee-cost-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.employee-cost-grid span,
.employee-cost-grid small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-cost-grid strong {
  color: var(--navy);
  font-size: 19px;
}

.employee-cost-grid__total {
  grid-column: 1 / -1;
  background: var(--teal-soft) !important;
  border-color: rgba(88, 196, 194, 0.34) !important;
}

.employee-cost-grid__total strong {
  font-size: 24px;
}

.quote-employee-add-form {
  margin-top: 14px;
}

.inline-travel-form,
.inline-overhead-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
}

.inline-travel-form input,
.inline-overhead-form input {
  width: 100%;
}

.travel-pay-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.travel-pay-details span,
.travel-pay-details strong {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.misc-overhead-lines {
  display: grid;
  gap: 10px;
}

.misc-overhead-base-form {
  display: grid;
  grid-template-columns: minmax(118px, 160px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0;
}

.misc-overhead-base-form input {
  width: 100%;
}

.misc-overhead-base-form span {
  color: var(--ink);
  font-weight: 800;
}

.misc-overhead-line,
.misc-overhead-line-form {
  display: grid;
  grid-template-columns: minmax(118px, 160px) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.misc-overhead-line--base {
  align-items: center;
}

.misc-overhead-line strong {
  text-align: right;
}

.misc-overhead-line-form input {
  width: 100%;
}

.misc-overhead-line-form--new {
  margin-top: 10px;
  grid-template-columns: minmax(118px, 160px) minmax(180px, 1fr);
}

.misc-overhead-section-title {
  margin: 12px 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.quote-travel-breakdown .muted,
.quote-travel-pay-breakdown .muted,
.quote-misc-breakdown .muted {
  margin: 10px 0 0;
}

.travel-pay-note {
  font-weight: 800;
}

.token-list li.travel-error {
  border-color: rgba(184, 91, 104, 0.28);
  background: rgba(184, 91, 104, 0.08);
}

.token-list li.travel-error span,
.token-list li.travel-error strong {
  color: var(--rose);
}

.crew-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.crew-card.recommended {
  border-color: rgba(88, 196, 194, 0.38);
  background:
    linear-gradient(180deg, rgba(223, 246, 245, 0.9), rgba(255, 255, 255, 0.96));
}

.crew-card__check {
  padding-top: 5px;
}

.crew-assignment-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(184, 91, 104, 0.22);
  border-radius: 16px;
  background: rgba(184, 91, 104, 0.1);
  color: var(--rose);
  font-weight: 800;
}

.crew-slot-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.crew-slot {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.crew-slot__role {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 57, 125, 0.1), rgba(88, 196, 194, 0.16));
  color: var(--navy);
}

.crew-slot__role span,
.crew-slot__note {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crew-slot__role strong {
  font-size: 20px;
}

.crew-slot__note {
  grid-column: 2;
  margin: -4px 0 0;
  text-transform: none;
  letter-spacing: 0;
}

.crew-slot__note[data-state="warning"],
.crew-slot__note[data-state="error"] {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(184, 91, 104, 0.1);
  color: var(--rose);
}

.crew-select {
  position: relative;
}

.crew-select__summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.crew-select__summary::after {
  content: "Search";
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crew-select__summary::-webkit-details-marker {
  display: none;
}

.crew-select[open] .crew-select__summary {
  border-color: rgba(88, 196, 194, 0.48);
  box-shadow: 0 0 0 3px rgba(88, 196, 194, 0.12);
}

.crew-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 10px;
  max-height: 380px;
  padding: 12px;
  border: 1px solid rgba(16, 57, 125, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(12, 34, 73, 0.2);
  overflow: auto;
}

.crew-select__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.crew-select__search input {
  width: 100%;
}

.crew-select__options {
  display: grid;
  gap: 7px;
}

.crew-select__option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.crew-select__option:hover,
.crew-select__option.is-selected {
  border-color: rgba(88, 196, 194, 0.42);
  background: var(--teal-soft);
}

.crew-select__option.recommended {
  border-color: rgba(88, 196, 194, 0.34);
}

.crew-select__option.has-conflict {
  border-color: rgba(184, 91, 104, 0.24);
  background: rgba(184, 91, 104, 0.06);
}

.crew-select__option:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  background: rgba(12, 34, 73, 0.05);
}

.crew-select__option strong {
  color: var(--navy);
}

.crew-select__option span,
.crew-select__option small,
.crew-directory-row span,
.crew-directory-row small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.crew-select__option--clear {
  border-style: dashed;
  color: var(--ink-soft);
  font-weight: 900;
  text-align: center;
}

.crew-directory-details {
  display: grid;
  gap: 12px;
}

.crew-directory-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.crew-directory-details summary::-webkit-details-marker {
  display: none;
}

.crew-directory-details summary strong {
  color: var(--navy);
}

.crew-directory-details summary span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.crew-directory-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.crew-directory-row {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.crew-directory-row.has-conflict {
  border-color: rgba(184, 91, 104, 0.22);
  background: rgba(184, 91, 104, 0.06);
}

.crew-card__role {
  display: grid;
  grid-template-columns: auto minmax(120px, 180px);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.crew-card__role span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crew-card__role select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 800;
}

.crew-conflict-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(184, 91, 104, 0.18);
  border-radius: 999px;
  background: rgba(184, 91, 104, 0.11);
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.crew-conflict-modal-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.crew-conflict-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.crew-conflict-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 91, 104, 0.18);
  border-radius: 18px;
  background: rgba(184, 91, 104, 0.08);
  color: var(--ink);
}

.crew-conflict-item strong {
  color: var(--navy);
}

.crew-conflict-item span {
  color: var(--muted);
  font-weight: 800;
}

.crew-score {
  display: inline-block;
  margin-top: 6px;
  color: #9c6a14;
  font-weight: 700;
}

.mini-tag {
  padding: 7px 11px;
  border: 1px solid transparent;
}

.mini-tag.good {
  background: rgba(88, 196, 194, 0.14);
  border-color: rgba(88, 196, 194, 0.22);
  color: var(--navy);
}

.mini-tag.warning {
  background: rgba(184, 91, 104, 0.11);
  border-color: rgba(184, 91, 104, 0.16);
  color: var(--rose);
}

.table-services {
  margin-top: 10px;
}

.employee-directory-table td {
  min-width: 0;
}

.employee-table__identity {
  display: grid;
  gap: 6px;
}

.employee-name-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.employee-name-button:hover {
  color: var(--navy-deep);
  text-decoration: underline;
}

.employee-signin-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 18px;
  background: rgba(16, 57, 125, 0.04);
}

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

.employee-signin-panel__copy {
  display: grid;
  gap: 4px;
}

.employee-signin-panel__copy strong {
  color: var(--navy);
  font-size: 14px;
}

.employee-signin-panel__copy span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.employee-signin-panel__form {
  margin: 0;
}

.employee-activity-panel {
  display: grid;
  gap: 10px;
}

.employee-activity-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-activity-panel__head strong {
  color: var(--navy);
  font-size: 15px;
}

.employee-activity-panel__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.08);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.employee-activity-log {
  display: grid;
  gap: 8px;
  max-height: 154px;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 18px;
  background: rgba(16, 57, 125, 0.035);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(88, 196, 194, 0.78) rgba(16, 57, 125, 0.08);
  scrollbar-width: thin;
}

.employee-activity-log::-webkit-scrollbar {
  width: 10px;
}

.employee-activity-log::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.08);
}

.employee-activity-log::-webkit-scrollbar-thumb {
  border: 2px solid rgba(247, 251, 252, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.employee-activity-log__row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 196, 194, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.employee-activity-log__row strong {
  color: var(--navy);
  font-size: 13px;
}

.employee-activity-log__row span,
.employee-activity-log__row small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.account-detail-list {
  display: grid;
  gap: 16px;
}

.account-detail-list > div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-detail-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-detail-list span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-number-link {
  color: var(--navy);
  font-weight: 800;
}

.quote-number-link:hover {
  color: var(--navy-deep);
  text-decoration: underline;
}

.employee-table__skills {
  gap: 8px;
}

.employee-status-active {
  background: rgba(88, 196, 194, 0.16);
  color: var(--navy);
}

.employee-status-inactive {
  background: rgba(184, 91, 104, 0.11);
  color: var(--rose);
}

.status-tag {
  background: rgba(16, 57, 125, 0.08);
  color: var(--navy);
}

.status-new,
.status-pending_payment,
.status-follow_up {
  background: rgba(16, 57, 125, 0.08);
  color: var(--navy);
}

.status-quoted,
.status-approved {
  background: rgba(217, 179, 107, 0.16);
  color: #916117;
}

.status-paid,
.status-deposit_paid,
.status-scheduled,
.status-completed {
  background: rgba(88, 196, 194, 0.16);
  color: var(--navy);
}

.status-warning {
  background: rgba(217, 179, 107, 0.16);
  color: #916117;
}

.status-open {
  background: rgba(16, 57, 125, 0.08);
  color: var(--navy);
}

.status-in_progress {
  background: rgba(217, 179, 107, 0.16);
  color: #916117;
}

.status-done {
  background: rgba(88, 196, 194, 0.16);
  color: var(--navy);
}

.totals {
  justify-content: flex-end;
  margin: 18px 0;
}

.totals div {
  min-width: 128px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 196, 194, 0.2);
  background: linear-gradient(180deg, rgba(88, 196, 194, 0.12), rgba(255, 255, 255, 0.92));
  display: grid;
  gap: 4px;
}

.totals .total-tile--editable {
  position: relative;
  padding-right: 42px;
}

.totals .total-tile--overridden {
  border-color: rgba(217, 179, 107, 0.58);
  background: linear-gradient(180deg, rgba(217, 179, 107, 0.18), rgba(255, 255, 255, 0.92));
}

.subtotal-edit-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.subtotal-edit-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 196, 194, 0.55);
}

.totals span {
  color: var(--ink-soft);
}

.quote-history-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(16, 57, 125, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.quote-history-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-history-list {
  display: grid;
  gap: 8px;
  max-height: var(--quote-history-list-max-height, clamp(260px, 34vh, 520px));
  margin: 0;
  padding-left: 20px;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(88, 196, 194, 0.78) rgba(16, 57, 125, 0.08);
  scrollbar-width: thin;
}

.quote-history-list::-webkit-scrollbar {
  width: 10px;
}

.quote-history-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(16, 57, 125, 0.08);
}

.quote-history-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(247, 251, 252, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.quote-history-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--teal), var(--navy-deep));
}

.quote-history-list li {
  color: var(--ink-soft);
}

.quote-history-list strong {
  display: block;
  color: var(--navy);
}

.quote-history-change-list {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 0.85rem;
}

.quote-history-change-list li {
  color: var(--ink-muted);
}

.payment-card {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.payment-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-card__head h3 {
  margin: 0;
}

.payment-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.payment-summary-fields,
.manual-payment-form,
.payment-settings-form {
  display: grid;
  gap: 12px;
  align-items: end;
}

.payment-summary-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-payment-form {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(160px, 1.3fr) auto;
}

.payment-settings-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.manual-payment-modal-form {
  gap: 16px;
}

.description-head,
.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.description-head h3,
.description-head p,
.calendar-toolbar h3,
.calendar-toolbar p {
  margin: 0;
}

.description-head p,
.calendar-toolbar p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.tax-control-stack {
  display: grid;
  gap: 8px;
  max-width: 132px;
}

.tax-rate-field-compact input {
  max-width: 96px;
}

.purchase-card__head,
.calendar-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
}

.calendar-card__date {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 57, 125, 0.14), rgba(88, 196, 194, 0.2));
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.calendar-card__body p {
  margin: 0;
  color: var(--ink);
}

.calendar-meta {
  color: var(--ink-soft);
  margin-top: 10px;
}

.calendar-controls,
.view-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.calendar-legend__swatch {
  width: 16px;
  height: 16px;
  border-radius: 7px;
  border: 1px solid rgba(16, 57, 125, 0.14);
}

.calendar-legend__swatch--paid {
  background: rgba(68, 168, 126, 0.28);
  border-color: rgba(68, 168, 126, 0.46);
}

.calendar-legend__swatch--partial {
  background: rgba(217, 179, 107, 0.32);
  border-color: rgba(217, 179, 107, 0.52);
}

.calendar-legend__swatch--quote {
  background: rgba(16, 57, 125, 0.12);
  border-color: rgba(16, 57, 125, 0.24);
}

.view-switcher .button.active {
  border-color: rgba(88, 196, 194, 0.48);
  background: var(--teal-soft);
  color: var(--navy);
}

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

.calendar-weekday {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 8px 4px;
}

.calendar-day,
.week-calendar-day,
.year-month-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.calendar-day--selected {
  grid-column: span 2;
  min-height: 260px;
  border-color: rgba(88, 196, 194, 0.48);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(223, 246, 245, 0.84));
}

.calendar-day--today,
.year-month-card--current {
  position: relative;
  border-color: rgba(217, 179, 107, 0.78);
  background:
    radial-gradient(circle at 18px 18px, rgba(217, 179, 107, 0.24), transparent 30px),
    linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(223, 246, 245, 0.92));
  box-shadow:
    0 0 0 3px rgba(217, 179, 107, 0.2),
    0 18px 44px rgba(12, 34, 73, 0.14);
}

.calendar-day--today::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(16, 57, 125, 0.2);
  border-radius: 15px;
  pointer-events: none;
}

.calendar-day--muted {
  opacity: 0.46;
}

.calendar-day__number,
.week-calendar-day__head,
.year-month-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 8px;
}

.calendar-day--today .calendar-day__number > span,
.calendar-day--today .week-calendar-day__head > strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 57, 125, 0.22);
}

.calendar-today-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 179, 107, 0.22);
  color: var(--navy);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-day__number small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.calendar-day-summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  text-align: right;
}

.calendar-day__events,
.calendar-day-expanded,
.week-calendar,
.year-calendar,
.employee-calendar-list {
  display: grid;
  gap: 10px;
}

.week-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.year-calendar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-event-chip {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  background: rgba(16, 57, 125, 0.08);
  color: var(--navy);
  font-size: 12px;
}

.calendar-event-chip--pending {
  background: rgba(16, 57, 125, 0.12);
  border-color: rgba(16, 57, 125, 0.24);
}

.calendar-event-chip--paid-in-full {
  background: rgba(68, 168, 126, 0.18);
  border-color: rgba(68, 168, 126, 0.36);
}

.calendar-event-chip--partial {
  background: rgba(217, 179, 107, 0.24);
  border-color: rgba(217, 179, 107, 0.42);
}

.calendar-event-chip span,
.calendar-event-chip small {
  color: var(--ink-soft);
  font-weight: 800;
}

.calendar-event-chip strong {
  line-height: 1.25;
}

.employee-calendar-day--clickable {
  cursor: pointer;
}

.employee-calendar-day--clickable:hover,
.employee-calendar-day--clickable:focus {
  border-color: rgba(88, 196, 194, 0.48);
  box-shadow: 0 18px 42px rgba(12, 34, 73, 0.13);
  transform: translateY(-1px);
}

.employee-calendar-day--empty {
  background: rgba(12, 34, 73, 0.04);
  border-color: rgba(12, 34, 73, 0.08);
  box-shadow: none;
}

.employee-calendar-day--signed-up {
  background: linear-gradient(180deg, rgba(217, 179, 107, 0.26), rgba(255, 249, 237, 0.98));
  border-color: rgba(217, 179, 107, 0.52);
}

.employee-calendar-day.calendar-day--today {
  border-color: rgba(217, 179, 107, 0.78);
  background:
    radial-gradient(circle at 18px 18px, rgba(217, 179, 107, 0.24), transparent 30px),
    linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(223, 246, 245, 0.92));
  box-shadow:
    0 0 0 3px rgba(217, 179, 107, 0.2),
    0 18px 44px rgba(12, 34, 73, 0.14);
}

.employee-day-openings {
  display: grid;
  gap: 8px;
}

.employee-day-openings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(88, 196, 194, 0.3);
  background: rgba(223, 246, 245, 0.72);
  color: var(--navy);
}

.employee-day-openings__item strong {
  font-size: 20px;
  line-height: 1;
}

.employee-day-openings__item small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.employee-day-openings__item--filled {
  justify-content: center;
  background: rgba(12, 34, 73, 0.06);
  border-color: rgba(12, 34, 73, 0.08);
}

.employee-day-openings__item--open {
  background: rgba(223, 246, 245, 0.82);
  border-color: rgba(88, 196, 194, 0.36);
}

.employee-day-openings__item--signed-up {
  background: rgba(217, 179, 107, 0.28);
  border-color: rgba(217, 179, 107, 0.42);
}

.calendar-day-expanded {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.calendar-expanded-event {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.employee-calendar-expanded-event--signed-up {
  background: linear-gradient(180deg, rgba(255, 243, 212, 0.98), rgba(255, 250, 239, 0.96));
  border-color: rgba(217, 179, 107, 0.58);
  box-shadow: 0 16px 30px rgba(163, 106, 0, 0.14);
}

.calendar-expanded-event--paid-in-full {
  background: rgba(68, 168, 126, 0.18);
  border-color: rgba(68, 168, 126, 0.36);
}

.calendar-expanded-event--partial {
  background: rgba(217, 179, 107, 0.24);
  border-color: rgba(217, 179, 107, 0.42);
}

.calendar-expanded-event--unpaid {
  background: rgba(16, 57, 125, 0.08);
  border-color: rgba(16, 57, 125, 0.2);
}

.calendar-expanded-event strong {
  color: var(--navy);
}

.calendar-expanded-event span,
.calendar-expanded-event small {
  color: var(--ink-soft);
  font-weight: 800;
}

.button-icon {
  min-width: 48px;
  padding-left: 0;
  padding-right: 0;
  font-size: 24px;
  line-height: 1;
}

.calendar-view-dropdown {
  position: relative;
}

.calendar-view-dropdown summary {
  list-style: none;
}

.calendar-view-dropdown summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 12px;
}

.calendar-view-dropdown summary::-webkit-details-marker {
  display: none;
}

.calendar-view-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(12, 34, 73, 0.18);
  z-index: 10;
}

.calendar-view-dropdown__item {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.calendar-view-dropdown__item:hover {
  background: rgba(223, 246, 245, 0.68);
}

.employee-jobs-list {
  display: grid;
  gap: 16px;
}

.employee-job-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.employee-job-card__grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.employee-job-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.employee-job-map {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.employee-job-map__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-job-map__head span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-job-map__head a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(88, 196, 194, 0.72);
  text-underline-offset: 3px;
}

.employee-job-map iframe {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(88, 196, 194, 0.32);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.employee-event-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.employee-event-card__date {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 57, 125, 0.12), rgba(88, 196, 194, 0.22));
  color: var(--navy);
  text-align: center;
}

.employee-event-card__body {
  display: grid;
  gap: 10px;
}

.employee-event-card__body p {
  margin: 0;
}

.employee-event-card__action {
  display: flex;
  align-items: center;
}

.employee-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 900;
}

.employee-pay-row small {
  color: var(--ink-soft);
}

.employee-calendar-expanded-event__action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-event-sheet {
  display: grid;
  gap: 18px;
}

.employee-event-sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-event-sheet__card,
.employee-event-sheet__block {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.employee-event-sheet__card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.employee-event-sheet__card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-event-sheet__card strong,
.employee-event-sheet__notes {
  color: var(--navy);
}

.employee-event-sheet__notes {
  margin: 0;
  line-height: 1.6;
}

.employee-event-assignment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.employee-event-assignment-grid > div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(221, 249, 248, 0.72), rgba(255, 255, 255, 0.94));
}

.employee-event-assignment-grid span,
.employee-event-crew-list__row span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-event-assignment-grid strong {
  color: var(--navy);
  font-size: 20px;
}

.employee-event-assignment-grid small {
  color: var(--ink-soft);
}

.employee-event-crew-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.employee-event-crew-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.employee-event-crew-list__row.is-current {
  border-color: rgba(75, 195, 194, 0.45);
  background: rgba(221, 249, 248, 0.75);
}

.employee-event-crew-list__row strong span {
  color: var(--ink-soft);
  font-size: 13px;
}

.employee-document-list {
  display: grid;
  gap: 10px;
}

.employee-document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(221, 249, 248, 0.72), rgba(255, 255, 255, 0.94));
  color: var(--navy);
  text-decoration: none;
}

.employee-document-link strong {
  overflow-wrap: anywhere;
}

.employee-document-link span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.employee-app .page-head__actions {
  min-width: 0;
}

.employee-app .employee-profile-link__name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-select-form label {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.disabled-button {
  opacity: 0.68;
}

.disabled-button-wrap {
  display: inline-flex;
  cursor: pointer;
}

.disabled-button[disabled],
.disabled-button[aria-disabled="true"] {
  cursor: not-allowed;
}

.employee-conflict-modal-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  justify-items: center;
}

.employee-conflict-modal__mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(217, 179, 107, 0.56);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.98), rgba(223, 246, 245, 0.72));
  box-shadow: 0 18px 34px rgba(12, 34, 73, 0.12);
}

.employee-conflict-modal__mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.employee-conflict-modal__head {
  text-align: center;
}

.employee-conflict-modal__head h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.employee-conflict-modal__message {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  background: rgba(223, 246, 245, 0.52);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
  width: 100%;
}

.employee-signup-modal-panel {
  max-width: min(520px, calc(100vw - 32px));
}

.employee-signup-modal__event {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.employee-signup-modal__roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.employee-signup-modal__roles .button {
  justify-content: center;
  min-height: 58px;
}

.log-row {
  display: grid;
  gap: 6px;
}

.log-row p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.inline-filter {
  justify-content: flex-end;
}

.save-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 44%, rgba(88, 196, 194, 0.2), transparent 24%),
    radial-gradient(circle at 50% 56%, rgba(217, 179, 107, 0.12), transparent 34%),
    rgba(9, 22, 47, 0.58);
  backdrop-filter: blur(9px);
}

.save-loader.is-visible {
  display: grid;
}

.save-loader__card {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: white;
  text-align: center;
}

.save-loader__card::before,
.save-loader__card::after {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.save-loader__card::before {
  background:
    conic-gradient(
      from 45deg,
      transparent 0 16%,
      rgba(217, 179, 107, 0.95) 22%,
      rgba(88, 196, 194, 0.9) 34%,
      transparent 47% 100%
    );
  filter: drop-shadow(0 0 18px rgba(88, 196, 194, 0.42));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  animation: shell-loader-tide 1.7s linear infinite;
}

.save-loader__card::after {
  width: 13px;
  height: 13px;
  inset: 44px auto auto 50%;
  background: radial-gradient(circle at 35% 30%, white, #d9ffff 48%, rgba(88, 196, 194, 0.92));
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.72),
    0 0 26px rgba(88, 196, 194, 0.52);
  transform-origin: 0 66px;
  animation: shell-loader-pearl 1.7s linear infinite;
}

.save-loader__card img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter:
    saturate(1.24)
    contrast(1.08)
    drop-shadow(0 16px 28px rgba(3, 14, 34, 0.42))
    drop-shadow(0 0 10px rgba(88, 196, 194, 0.18));
  transform-origin: 50% 58%;
  animation: shell-loader-float 1.7s ease-in-out infinite;
}

.save-loader__card strong {
  position: absolute;
  top: calc(50% + 82px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(3, 14, 34, 0.78);
  white-space: nowrap;
}

@keyframes shell-loader-float {
  0%,
  100% {
    transform: translateY(5px) rotate(-4deg) scale(0.98);
  }

  50% {
    transform: translateY(-7px) rotate(4deg) scale(1.05);
  }
}

@keyframes shell-loader-tide {
  to {
    transform: rotate(1turn);
  }
}

@keyframes shell-loader-pearl {
  0% {
    transform: rotate(0deg) translateX(66px) rotate(0deg) scale(0.86);
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(1turn) translateX(66px) rotate(-1turn) scale(0.86);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .save-loader__card::before,
  .save-loader__card::after,
  .save-loader__card img {
    animation: none;
  }
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.modal-shell.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(9, 22, 47, 0.52);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(16, 57, 125, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96));
  box-shadow: 0 36px 80px rgba(12, 34, 73, 0.24);
  pointer-events: auto;
}

.confirm-modal-panel {
  width: min(520px, 100%);
}

.payment-link-update-modal-panel {
  display: grid;
  gap: 18px;
  text-align: center;
}

.payment-link-update-logo {
  display: grid;
  place-items: center;
}

.payment-link-update-logo img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(3, 14, 34, 0.16));
}

.payment-link-update-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.02em;
}

.payment-link-update-copy p,
.payment-link-update-action {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.payment-link-update-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-link-update-summary div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 196, 194, 0.24);
  background: linear-gradient(180deg, rgba(223, 246, 245, 0.76), rgba(255, 255, 255, 0.92));
}

.payment-link-update-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-link-update-summary strong {
  color: var(--navy);
  font-size: 20px;
}

.payment-link-update-actions {
  justify-content: center;
}

.quote-modal-panel {
  width: min(1120px, calc(100vw - 48px));
  height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-preview-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(16, 57, 125, 0.12);
  border-radius: 20px;
  background: white;
}

.modal-head {
  align-items: flex-start;
}

.modal-head-actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-close {
  flex-shrink: 0;
}

.modal-actions {
  justify-content: flex-end;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(88, 196, 194, 0.24), transparent 30%),
    radial-gradient(circle at 72% 18%, rgba(217, 179, 107, 0.18), transparent 26%),
    linear-gradient(180deg, #f9fdfe 0%, #edf5f8 100%);
  animation: login-tide 12s ease-in-out infinite alternate;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.login-shell--centered {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px;
}

.login-shell--centered::before,
.login-shell--centered::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
}

.login-shell--centered::before {
  left: -120px;
  top: 8%;
  background: radial-gradient(circle, rgba(88, 196, 194, 0.28), transparent 68%);
  animation: login-drift 11s ease-in-out infinite;
}

.login-shell--centered::after {
  right: -130px;
  bottom: -90px;
  border: 1px solid rgba(16, 57, 125, 0.1);
  box-shadow: inset 0 0 70px rgba(217, 179, 107, 0.18);
  animation: login-drift 14s ease-in-out infinite reverse;
}

.login-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(88, 196, 194, 0.26), transparent 32%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 62%, #081d46 100%);
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-hero h1 {
  font-size: clamp(38px, 5vw, 54px);
}

.login-points {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.login-point {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.login-point span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.login-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.login-shell--centered .login-main {
  width: min(100%, 480px);
  align-items: stretch;
  padding: 0;
  animation: login-rise 700ms ease-out both;
}

.login-brand-lockup {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.login-brand-lockup h1 {
  margin: 6px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 54px);
  letter-spacing: 0.02em;
}

.login-brand-lockup p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-badge--login {
  position: relative;
  z-index: 2;
  width: 132px;
  border-radius: 999px;
  animation: shell-float 4.8s ease-in-out infinite;
}

.brand-badge--login img {
  max-width: 76%;
  max-height: 76%;
  filter: drop-shadow(0 8px 12px rgba(16, 57, 125, 0.16));
  animation: shell-glow 3.2s ease-in-out infinite alternate;
}

.login-logo-orbit {
  position: absolute;
  top: -11px;
  width: 154px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(88, 196, 194, 0.34);
  animation: shell-orbit 9s linear infinite;
}

.login-logo-orbit span {
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(88, 196, 194, 0.92);
}

.login-logo-orbit span:first-child {
  top: 9px;
  left: 50%;
}

.login-logo-orbit span:last-child {
  right: 14px;
  bottom: 25px;
  width: 7px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(217, 179, 107, 0.9);
}

.login-panel {
  max-width: 620px;
  width: 100%;
  animation: login-card-in 780ms ease-out both;
}

.login-shell--centered .login-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

@keyframes login-tide {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 26px 18px, -18px 22px, 0 0;
  }
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(28px, -18px, 0) scale(1.08);
  }
}

@keyframes shell-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}

@keyframes shell-glow {
  from {
    filter: drop-shadow(0 8px 12px rgba(16, 57, 125, 0.16));
  }
  to {
    filter: drop-shadow(0 10px 18px rgba(88, 196, 194, 0.42));
  }
}

@keyframes shell-orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1160px) {
  .shell,
  .grid-two,
  .detail-grid,
  .crew-grid,
  .employee-event-assignment-grid,
  .employee-event-sheet__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .span-two {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero,
  .login-main,
  .content,
  .sidebar {
    padding: 24px;
  }

  .employee-app .shell {
    display: block;
  }

  .employee-app .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    overflow: visible;
    box-shadow: 0 12px 28px rgba(8, 29, 70, 0.18);
  }

  .employee-app .sidebar::after {
    display: none;
  }

  .employee-app .brand-lockup {
    flex: 0 0 auto;
  }

  .employee-app .brand-badge {
    width: 58px;
    border-radius: 16px;
  }

  .employee-app .nav {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .employee-app .nav-link {
    min-height: 46px;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 15px;
    font-weight: 900;
    text-align: center;
  }

  .employee-app .nav-link:hover,
  .employee-app .nav-link.active {
    transform: none;
  }

  .employee-app .content {
    padding: 16px 12px 28px;
  }

  .employee-app .page-head {
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding-top: 12px;
  }

  .employee-app .page-head h2 {
    font-size: clamp(34px, 12vw, 52px);
    line-height: 1.04;
  }

  .employee-app .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .employee-app .employee-profile-link {
    padding: 6px 10px 6px 6px;
    gap: 8px;
  }

  .employee-app .employee-profile-link__avatar {
    width: 34px;
    height: 34px;
  }

  .employee-app .employee-profile-link__name {
    max-width: 116px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .field-grid,
  .employee-field-grid,
  .skill-grid,
  .service-grid,
  .inline-builder,
  .employee-cost-grid,
  .payment-fields,
  .payment-summary-fields,
  .manual-payment-form,
  .payment-settings-form,
  .status-buckets,
  .calendar-card,
  .month-calendar,
  .week-calendar,
  .year-calendar,
  .employee-event-card {
    grid-template-columns: 1fr;
  }

  .crew-slot {
    grid-template-columns: 1fr;
  }

  .crew-slot__note {
    grid-column: auto;
  }

  .crew-select__menu {
    position: static;
    max-height: 320px;
    margin-top: 8px;
  }

  .calendar-day--selected {
    grid-column: auto;
  }

  .page-head,
  .panel-head,
  .calendar-toolbar,
  .stats-bar-row {
    flex-direction: column;
  }

  .employee-app .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .employee-app .page-head__actions {
    justify-self: end;
  }

  .stats-bar-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .stats-trend,
  .stats-compact-grid,
  .stats-split-list,
  .stats-line-chart__body {
    grid-template-columns: 1fr;
  }

  .stats-hero__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
  }

  .stats-range-controls {
    position: static;
    justify-content: flex-end;
  }

  .stats-range-dropdown {
    position: relative;
  }

  .stats-trend__axis {
    min-height: 0;
    padding-bottom: 0;
  }

  .stats-trend__plot {
    min-height: 220px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .stats-line-chart__y-axis {
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: none;
    justify-items: start;
    padding: 0;
  }

  .stats-line-chart__axis-head {
    flex-wrap: wrap;
  }

  .stats-line-chart__canvas {
    min-height: 280px;
  }

  .stats-line-chart__year-legend {
    justify-content: flex-start;
  }

  .stats-bar-value {
    text-align: left;
  }

  .modal-shell {
    padding: 16px;
  }

  .inline-filter {
    justify-content: flex-start;
  }

  .brand-badge {
    width: 108px;
  }

  .calendar-controls--employee,
  .calendar-view-dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-controls--employee .button,
  .calendar-view-dropdown .button,
  .employee-calendar-expanded-event__action .button {
    min-height: 46px;
  }

  .month-calendar--employee {
    gap: 12px;
  }

  .month-calendar--employee .calendar-weekday--employee {
    display: none;
  }

  .month-calendar--employee .employee-calendar-day {
    min-height: auto;
    padding: 14px;
    border-radius: 22px;
    scroll-margin-top: 86px;
  }

  .month-calendar--employee .employee-calendar-day--empty {
    display: block;
    background: rgba(12, 34, 73, 0.05);
  }

  .month-calendar--employee .employee-calendar-day--clickable {
    box-shadow: 0 16px 28px rgba(12, 34, 73, 0.08);
  }

  .month-calendar--employee .calendar-day__number {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .month-calendar--employee .calendar-day__number small {
    font-size: 12px;
  }

  .employee-day-openings__item {
    padding: 12px 14px;
  }

  .employee-day-openings__item strong {
    font-size: 24px;
  }

  .employee-calendar-expanded-event {
    gap: 8px;
    padding: 14px;
  }

  .employee-job-card__grid {
    grid-template-columns: 1fr;
  }

  .employee-app .panel {
    padding: 16px;
    border-radius: 24px;
  }

  .employee-app .panel-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .employee-app .panel-head h3 {
    font-size: 24px;
    line-height: 1.1;
  }

  .employee-app .button,
  .employee-app button,
  .employee-app input,
  .employee-app select,
  .employee-app textarea {
    min-height: 46px;
  }

  .employee-calendar-panel {
    padding: 14px;
  }

  .employee-calendar-panel .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 0;
  }

  .employee-calendar-panel .calendar-toolbar > div:first-child {
    display: none;
  }

  .calendar-controls--employee {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    width: auto;
  }

  .employee-calendar-panel .calendar-view-dropdown {
    width: auto;
  }

  .calendar-controls--employee strong {
    text-align: center;
    color: var(--navy);
    font-size: 18px;
  }

  .calendar-view-dropdown__menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .month-calendar--employee .calendar-day--muted.employee-calendar-day--empty {
    display: none;
  }

  .month-calendar--employee .employee-calendar-day--empty {
    padding: 10px 12px;
    border-radius: 18px;
  }

  .month-calendar--employee .employee-calendar-day--empty .calendar-day__number {
    margin-bottom: 0;
    color: rgba(90, 107, 137, 0.78);
  }

  .month-calendar--employee .employee-calendar-day--empty .calendar-day__number small {
    display: none;
  }

  .month-calendar--employee .employee-calendar-day:not(.employee-calendar-day--empty) {
    border-radius: 24px;
    padding: 16px;
  }

  .month-calendar--employee .calendar-day--selected {
    padding: 16px;
  }

  .employee-day-openings {
    gap: 10px;
  }

  .employee-day-openings__item {
    min-height: 52px;
    border-radius: 16px;
  }

  .employee-day-openings__item small {
    font-size: 12px;
  }

  .employee-calendar-expanded-event__head,
  .employee-pay-row,
  .employee-calendar-expanded-event__action {
    align-items: stretch;
  }

  .employee-calendar-expanded-event__head {
    display: grid;
    gap: 8px;
  }

  .employee-calendar-expanded-event__head .status-tag {
    justify-self: start;
  }

  .employee-calendar-expanded-event__action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-calendar-expanded-event__action .button,
  .employee-calendar-expanded-event__action form,
  .employee-calendar-expanded-event__action .disabled-button-wrap {
    width: 100%;
  }

  .employee-calendar-expanded-event__action .button {
    justify-content: center;
  }

  .week-calendar-day {
    min-height: auto;
  }

  .employee-jobs-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .employee-jobs-summary .bucket {
    padding: 10px;
    border-radius: 16px;
  }

  .employee-jobs-summary .bucket span {
    font-size: 10px;
    line-height: 1.2;
  }

  .employee-jobs-summary .bucket strong {
    font-size: clamp(18px, 6vw, 28px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .employee-job-card {
    padding: 18px;
    border-radius: 26px;
  }

  .employee-job-card .panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-job-card .status-tag {
    justify-self: start;
  }

  .employee-job-card__grid {
    gap: 10px;
  }

  .employee-job-card__grid > div,
  .employee-event-sheet__card,
  .employee-event-assignment-grid > div {
    padding: 14px;
    border: 1px solid rgba(16, 57, 125, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
  }

  .employee-job-map__head {
    align-items: flex-start;
  }

  .employee-job-map iframe {
    min-height: 210px;
    border-radius: 18px;
  }

  .employee-job-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-job-card__actions .button,
  .employee-job-card__actions form {
    width: 100%;
  }

  .employee-job-card__actions .button {
    justify-content: center;
  }

  .employee-event-sheet {
    gap: 14px;
  }

  .employee-event-sheet > .panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-event-sheet > .panel-head .button-row,
  .employee-event-sheet > .panel-head .button {
    width: 100%;
  }

  .employee-event-sheet > .panel-head .button {
    justify-content: center;
  }

  .employee-event-sheet__grid,
  .employee-event-assignment-grid {
    gap: 10px;
  }

  .employee-event-sheet__card strong,
  .employee-event-assignment-grid strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .employee-event-crew-list__row,
  .employee-document-link {
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .employee-document-link span {
    text-align: left;
  }

  .employee-conflict-modal-panel {
    width: min(100%, 420px);
    border-radius: 28px;
  }

  .employee-signup-modal__roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .employee-app .sidebar {
    gap: 8px;
    padding: 8px;
  }

  .employee-app .brand-badge {
    width: 50px;
    border-radius: 14px;
  }

  .employee-app .nav {
    gap: 6px;
  }

  .employee-app .nav-link {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 14px;
  }

  .employee-app .content {
    padding: 12px 8px 24px;
  }

  .employee-app .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .employee-app .page-head h2 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .employee-app .employee-profile-link {
    padding: 5px;
  }

  .employee-app .employee-profile-link__name {
    display: none;
  }

  .employee-app .employee-profile-link__avatar {
    width: 38px;
    height: 38px;
  }

  .employee-app .panel {
    padding: 14px;
    border-radius: 22px;
  }

  .employee-jobs-summary {
    position: sticky;
    top: 66px;
    z-index: 20;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(247, 251, 252, 0.96), rgba(247, 251, 252, 0.82));
    backdrop-filter: blur(14px);
  }

  .employee-jobs-summary .bucket {
    box-shadow: none;
  }

  .employee-job-card {
    padding: 14px;
  }

  .employee-job-map iframe {
    min-height: 190px;
  }

  .employee-calendar-panel {
    padding: 12px;
  }

  .month-calendar--employee {
    gap: 8px;
  }

  .month-calendar--employee .employee-calendar-day:not(.employee-calendar-day--empty),
  .month-calendar--employee .calendar-day--selected {
    padding: 12px;
    scroll-margin-top: 74px;
  }

  .employee-calendar-expanded-event {
    padding: 12px;
  }

  .employee-event-sheet__block {
    padding: 14px;
  }
}
