:root {
  --color-bg: #F2F4F5;
  --color-surface: #FFFFFF;
  --color-primary: #106115;
  --color-accent: #106115;
  --color-success: #A3BFA4;
  --color-warning: #D7B36A;
  --color-danger: #C86F5A;
  --color-text: #2E3A42;
  --color-muted: #85929B;
  --color-border: #3a9147;
  --depth-shadow-soft: 0 6px 16px rgba(24, 47, 34, 0.10);
  --depth-shadow-mid: 0 10px 22px rgba(24, 47, 34, 0.14);
  --depth-highlight: inset 0 1px 0 rgba(255,255,255,0.92), inset 0 -1px 0 rgba(16,97,21,0.06);
  --surface-glass: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,245,0.94));
  --surface-hero: radial-gradient(circle at top left, rgba(255,255,255,0.9), rgba(236,246,238,0.65) 36%, rgba(240,245,247,0.9) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
}
@keyframes shellRoutePulse {
  0%, 100% {
    opacity: 0.26;
  }
  50% {
    opacity: 0.48;
  }
}
@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 14px 26px rgba(16,97,21,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  }
  50% {
    box-shadow: 0 18px 34px rgba(16,97,21,0.24), inset 0 1px 0 rgba(255,255,255,0.24);
  }
}
@keyframes badgeBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes cardLift {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  background:
    radial-gradient(circle at 12% 12%, rgba(16, 97, 21, 0.08), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(58, 145, 71, 0.08), transparent 18%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f1 46%, #f4f7f5 100%);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
  position: relative;
}

body::before,
body::after {
  content: none;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

body::before {
  right: -120px;
  top: 110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 189, 154, 0.14), rgba(124, 189, 154, 0));
  animation: floatOrb 8s ease-in-out infinite;
}

body::after {
  left: -80px;
  bottom: 60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(195, 220, 205, 0.16), rgba(195, 220, 205, 0));
  animation: floatOrb 10s ease-in-out infinite;
}

main,
.page-shell,
.app-shell {
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.18), transparent 16%),
    radial-gradient(circle at 86% 22%, rgba(255,255,255,0.1), transparent 14%),
    linear-gradient(135deg, #0d4f12 0%, #146a26 48%, #1d7b3c 100%);
  border-bottom: 1px solid rgba(10, 66, 17, 0.28);
  backdrop-filter: none;
  box-shadow: 0 6px 14px rgba(15, 47, 26, 0.16);
  padding: 8px 16px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
}

header .brand {
  position: relative;
  z-index: 4;
}

header .brand::before {
  content: none;
}

header .brand::after {
  content: none;
}

header > :last-child::before {
  content: none;
}

header > :last-child::after {
  content: none;
}

header::before {
  content: none;
  position: absolute;
  left: 112px;
  right: 48px;
  top: 14px;
  height: 1px;
  border-top: 2px dashed rgba(255,255,255,0.22);
  pointer-events: none;
  animation: shellRoutePulse 4s ease-in-out infinite;
  z-index: 2;
}

header::after {
  content: none;
}

header .title {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-width: 0;
  flex: 0 0 auto;
}

.brand img.brand-mark {
  width: 94px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.94);
  padding: 4px 6px;
  box-shadow: 0 4px 10px rgba(8, 35, 18, 0.12);
}

header > :last-child {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  margin-left: 6px;
  padding: 2px 4px 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  min-width: 0;
  position: relative;
  z-index: 4;
}

header > :last-child a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f5d1c !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,247,243,0.96));
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 4px 10px rgba(8, 35, 18, 0.10), inset 0 1px 0 rgba(255,255,255,0.94);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  scroll-snap-align: start;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
}

header > :last-child a:hover {
  background: linear-gradient(180deg, #ffffff, #eef7f0);
  border-color: rgba(200, 238, 208, 0.72);
  box-shadow: 0 6px 14px rgba(8, 35, 18, 0.12);
}

header > :last-child a.active {
  background: linear-gradient(180deg, #ffffff 0%, #f2fff4 100%);
  border-color: rgba(255,255,255,0.74);
  color: #0d5b1b !important;
  box-shadow: 0 6px 14px rgba(8, 35, 18, 0.14), inset 0 1px 0 rgba(255,255,255,0.96);
  font-weight: 800;
  text-shadow: none;
}

header > :last-child a.active {
  box-shadow: 0 6px 14px rgba(8, 35, 18, 0.14), inset 0 1px 0 rgba(255,255,255,0.96), 0 0 0 1px rgba(255,255,255,0.08);
}

header > :last-child a.active::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(22, 129, 27, 0.18);
  pointer-events: none;
}

header > :last-child a.active::after {
  content: none;
}

header > :last-child a:active {
  box-shadow: 0 8px 16px rgba(8, 35, 18, 0.16);
  transform: translateY(0);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.44);
  font-size: 10px;
  font-weight: 700;
  color: #274233;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(8, 35, 18, 0.12);
}

.user-badge .role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b7d28, #106115);
  color: #fff !important;
  font-size: 9px;
  letter-spacing: 0.3px;
}

.logout-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.44);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,247,243,0.96));
  color: #274233;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(8, 35, 18, 0.12), inset 0 1px 0 rgba(255,255,255,0.88);
  white-space: nowrap;
  flex-shrink: 0;
}

.logout-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff, #eef7f0);
}

header .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 7px;
  background: rgba(10, 66, 17, 0.24);
  border: 1px solid rgba(255,255,255,0.24);
  color: #f4fff7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 10px;
}

header > :last-child::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
header > :last-child::-webkit-scrollbar-thumb {
  background: transparent;
}
header > :last-child::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1100px) {
  header {
    gap: 14px;
    padding: 14px 24px 12px 16px;
  }

  header::before,
  header .brand::before,
  header .brand::after,
  header > :last-child::after {
    display: none;
  }

}

@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  header > :last-child {
    width: 100%;
    justify-content: flex-start;
  }

  header > :last-child a,
  .logout-btn,
  .user-badge,
  header .pill {
    font-size: 13px;
  }

  header > :last-child a {
    padding: 8px 12px;
  }
}

.card,
.modal-card {
  background: var(--surface-hero);
  border: 1px solid rgba(58, 145, 71, 0.36);
  border-radius: 18px;
  box-shadow: var(--depth-highlight), var(--depth-shadow-soft);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: cardLift 220ms ease-out;
}

.card::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(29, 123, 60, 0.9), rgba(29, 123, 60, 0.1));
  opacity: 0.9;
}

.card:hover,
.modal-card:hover {
  box-shadow: var(--depth-highlight), var(--depth-shadow-mid);
  border-color: rgba(58, 145, 71, 0.46);
  transform: translateY(-2px);
}

.empty-state {
  margin-top: 12px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px dashed #cfdccf;
  background: linear-gradient(180deg, #fbfefb, #f1f8f3);
  color: var(--color-muted);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.section-divider {
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 5px;
}

.filter-chip {
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid #cfe0d0;
  background: linear-gradient(180deg, #ffffff, #f2f7f3);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 10px;
  box-shadow: 0 3px 8px rgba(46,58,66,0.05);
}

.chip-clear {
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid #cfe0d0;
  background: linear-gradient(180deg, #ffffff, #f2f7f3);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 10px;
  cursor: pointer;
}

.summary-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin: 6px 0;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 5px 0 8px;
}

.step {
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px dashed #c7d2e2;
  background: linear-gradient(180deg, #fbfdfc, #f1f6f3);
  color: var(--color-muted);
  font-weight: 700;
  font-size: 10px;
}

.step.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step.is-done {
  background: #e8f4ea;
  border-color: #b6d8bf;
  color: #0f5c1c;
}

.hotkey-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px dashed #c7d2e2;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
}

button,
.action-btn,
.pill-button,
.pill-toggle,
.inline-btn,
.remove-booking,
.submit-btn {
  background: linear-gradient(180deg, #16811b 0%, #106115 65%, #0d4f12 100%);
  color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  cursor: pointer;
  padding: 5px 8px;
  font-weight: 700;
  letter-spacing: 0.1px;
  width: auto;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(16,97,21,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: background 0.18s ease, box-shadow 0.12s ease, filter 0.12s ease, transform 0.12s ease;
  position: relative;
  overflow: hidden;
}

button::before,
.action-btn::before,
.pill-button::before,
.pill-toggle::before,
.inline-btn::before,
.remove-booking::before,
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.16), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.4s ease;
  pointer-events: none;
}

button:hover,
.action-btn:hover,
.pill-button:hover,
.pill-toggle:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16,97,21,0.22), inset 0 1px 0 rgba(255,255,255,0.22);
}

button:hover::before,
.action-btn:hover::before,
.pill-button:hover::before,
.pill-toggle:hover::before,
.inline-btn:hover::before,
.remove-booking:hover::before,
.submit-btn:hover::before {
  transform: translateX(120%);
}

button:active,
.action-btn:active,
.pill-button:active,
.pill-toggle:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(46, 58, 66, 0.14);
}

button:focus-visible,
.action-btn:focus-visible,
.pill-button:focus-visible,
.pill-toggle:focus-visible {
  outline: 3px solid rgba(93, 166, 166, 0.45);
  outline-offset: 2px;
}

button.secondary,
.action-btn.secondary,
.pill-button.secondary,
.pill-toggle.secondary {
  background: var(--surface-glass);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(46,58,66,0.10), inset 0 1px 0 rgba(255,255,255,0.92);
}

button:disabled,
.action-btn:disabled,
.pill-button:disabled,
.pill-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: linear-gradient(180deg, #f4f8f5, #e8efea);
  box-shadow: 0 8px 18px rgba(46,58,66,0.06);
}

.status::before {
  font-weight: 700;
}

.status.success {
  background: #eef5f0;
  border-color: #c9dcca;
  color: #2d4a35;
}
.status.success::before { content: "✔ Success"; }

.status.error {
  background: #fbecea;
  border-color: #e7b9ae;
  color: #6b2b21;
}
.status.error::before { content: "✖ Error"; }

.status.warning {
  background: #f9f2e5;
  border-color: #e4cf9f;
  color: #5d4621;
}
.status.warning::before { content: "⚠ Warning"; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #f8fbf8, #eef4ef);
  color: var(--color-text);
  animation: badgeBob 4.4s ease-in-out infinite;
  font-size: 10px;
}

.badge.success { background: #eef5f0; border-color: #c9dcca; color: #2d4a35; }
.badge.muted { background: #eef1f3; border-color: var(--color-border); color: var(--color-muted); }

table {
  border-collapse: collapse;
  border-color: var(--color-border);
  width: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

th {
  background: linear-gradient(180deg, #edf7ef, #e3efe7);
  color: #204530;
  border-color: var(--color-border);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 14px;
}

tbody tr {
  transition: background 0.16s ease, transform 0.16s ease;
}

tbody tr:nth-child(even) {
  background: rgba(245, 250, 247, 0.58);
}

tbody tr:hover {
  background: rgba(229, 243, 234, 0.86);
  transform: scale(1.001);
}

.muted {
  color: var(--color-muted);
}

/* Soft panels and shells used across pages */
.items,
.table-shell,
.attachments,
.helper,
.detail {
  background: var(--surface-hero);
  border: 1px solid rgba(58, 145, 71, 0.32);
  border-radius: 16px;
  box-shadow: var(--depth-highlight), 0 12px 24px rgba(46,58,66,0.08);
  padding: 12px;
}

.items table {
  background: transparent;
  border-radius: 10px;
}

.detail-grid .detail {
  background: #f6f9fc;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Tab buttons active state */
.tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(93,166,166,0.25);
}

/* Form controls share unified border color */
input,
select,
textarea {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 38px;
  line-height: 1.2;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,248,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.94), 0 6px 14px rgba(46,58,66,0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #7c8e86;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2d7f38;
  box-shadow: 0 0 0 3px rgba(58, 145, 71, 0.16), 0 10px 20px rgba(46,58,66,0.08);
  outline: none;
}

.field--checkbox,
.invoice-card__include {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.invoice-chip,
.chip,
.pill-button,
.pill-toggle {
  min-height: 24px;
}

hr {
  border-color: var(--color-border);
}

/* Modal spinner overlay */
.modal-spinner {
  position: fixed;
  inset: 0;
  background: rgba(46, 58, 66, 0.2);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2000;
}
.modal-spinner.hidden { display: none; }
.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(93,166,166,0.35);
  border-top-color: var(--color-primary);
  animation: spin 0.9s linear infinite;
}
.spinner-label {
  background: #f6f9fc;
  border: 1px dashed var(--color-border);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 6px 16px rgba(46,58,66,0.06);
  color: var(--color-text);
  font-weight: 700;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.app-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 32px rgba(46, 58, 66, 0.16);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.2px;
  min-width: 240px;
  max-width: 420px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  z-index: 2200;
  backdrop-filter: blur(10px);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,246,0.94));
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.success {
  border-color: var(--color-success);
  background: #f3f7f3;
}

.app-toast.error {
  border-color: var(--color-danger);
  background: #fff6f4;
}

.app-toast.warning {
  border-color: var(--color-warning);
  background: #fff9f0;
}

.input-error,
input.input-error,
select.input-error,
textarea.input-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 2px rgba(200, 111, 90, 0.2);
  background: #fff7f5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 10px;
  text-transform: capitalize;
  border: 1px solid var(--color-border);
}
.status-pill.muted {
  background: #f4f7f3;
  color: var(--color-text);
  border-color: #d0d6dc;
}
.status-pill.success {
  background: #e4f7e9;
  color: #0f5c1c;
  border-color: #3a9147;
}
.status-pill.error {
  background: #ffecea;
  color: #8f2c1f;
  border-color: #c86f5a;
}

.notification-banner {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--color-border);
  background: linear-gradient(120deg, rgba(16, 97, 21, 0.12), rgba(16, 97, 21, 0.04));
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(46, 58, 66, 0.18), inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 0 0 16px 16px;
}

.notification-banner strong {
  font-weight: 800;
  margin-right: 6px;
}

.notification-banner .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #1f8a2f;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-text);
}

.notification-banner.warning {
  background: linear-gradient(120deg, #fff3d7, #fff9ec);
  border-color: #e4cf9f;
  color: #5d4621;
}

.notification-banner.error {
  background: linear-gradient(120deg, #ffe4e6, #fff1f2);
  border-color: #f3c7c7;
  color: #6b2b21;
}

.notification-banner.info {
  background: linear-gradient(120deg, #e6f2ff, #f4f9ff);
  border-color: #c9ddf0;
  color: #1e3a5f;
}

[data-depth-ready="1"] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  header::before,
  header::after,
  .card,
  .modal-card,
  button,
  .action-btn,
  .pill-button,
  .pill-toggle,
  .inline-btn,
  .remove-booking,
  .submit-btn,
  header > :last-child a,
  input,
  select,
  textarea {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1366px) {
  header {
    padding: 14px 22px 12px 16px;
    gap: 14px;
  }

  header::before {
    left: 92px;
    right: 26px;
    top: 11px;
  }

  .brand img.brand-mark {
    width: 96px;
    height: 56px;
    border-radius: 12px;
  }

  header > :last-child {
    margin-left: 8px;
    padding: 10px 12px 2px 8px;
    gap: 8px;
  }

  header > :last-child a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  header {
    padding: 12px 14px 10px 12px;
    gap: 10px;
  }

  header::before {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand img.brand-mark {
    width: 84px;
    height: 48px;
    padding: 4px 6px;
  }

  header > :last-child {
    padding: 8px 8px 2px 4px;
    gap: 6px;
  }

  header > :last-child a {
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-height: 900px) {
  .modal-card,
  .status-modal__panel {
    max-height: calc(100vh - 24px);
  }

  .table-shell,
  .table-wrap {
    max-height: min(58vh, 520px);
  }
}
