@import url("/assets/actiontext-e646701d.css");

:root {
  color-scheme: dark;
  --app-surface: rgba(255, 255, 255, 0.075);
  --app-border: rgba(255, 255, 255, 0.12);
  --app-border-strong: rgba(255, 255, 255, 0.18);
  --app-focus: #5eead4;
}

html {
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.6;
}

a,
button,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.75);
  outline-offset: 3px;
}

.app-shell {
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.18), transparent 36rem),
    radial-gradient(circle at 100% 8%, rgba(245, 158, 11, 0.13), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-brand-mark {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.app-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}

.app-nav a,
.app-nav button,
.app-button {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.app-main {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 5rem;
}

.app-main a[class*="rounded-md"][class*="px-"],
.app-main button[class*="rounded-md"],
.app-main input[type="submit"] {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-md {
  border-radius: 0.55rem;
}

section[class*="bg-white/"],
div[class*="bg-white/"][class*="border-white/10"],
.app-panel {
  background-color: var(--app-surface);
  border-color: var(--app-border);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
}

section > [class*="border-b"],
.app-section-header {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

h1.text-3xl {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

h2.text-base {
  font-size: 1.15rem;
  line-height: 1.35;
}

p.text-slate-400,
p.text-slate-300 {
  font-size: 1rem;
}

label,
.form-label {
  font-size: 0.98rem;
  line-height: 1.35;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select,
.app-input {
  min-height: 3.15rem;
  border-color: var(--app-border-strong) !important;
  background-color: rgba(2, 6, 23, 0.82) !important;
  padding: 0.8rem 0.95rem !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
}

textarea {
  min-height: 8.5rem;
}

input[type="checkbox"],
input[type="radio"] {
  min-height: 1.25rem;
  min-width: 1.25rem;
}

input[type="range"] {
  min-height: 2.5rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--app-focus) !important;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14);
}

table {
  font-size: 0.98rem;
}

th {
  font-size: 0.78rem;
}

td,
th {
  vertical-align: middle;
}

.app-stat {
  min-height: 8rem;
}

.app-stat p:last-child {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
}

.app-empty {
  padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
}

.app-mobile-card-list {
  display: none;
}

.app-mobile-card {
  display: block;
  padding: 1rem;
  border-top: 1px solid var(--app-border);
}

.app-mobile-card:first-child {
  border-top: 0;
}

.app-mobile-card__meta {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.app-mobile-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.app-mobile-card__meta dt,
.app-mobile-card__label {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
}

.app-mobile-card__meta dd {
  color: #f8fafc;
  text-align: right;
}

.responsive-table-wrapper {
  overflow-x: auto;
}

@media (max-width: 767px) {
  html {
    font-size: 18px;
  }

  .app-header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .app-nav {
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .app-nav a,
  .app-nav button,
  .app-button {
    min-height: 3rem;
    padding: 0.8rem 1rem;
  }

  .app-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-desktop-table {
    display: none;
  }

  .app-mobile-card-list {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    border-top: 1px solid var(--app-border);
    padding: 0.35rem 0;
  }

  .responsive-table tr:first-child {
    border-top: 0;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 42%) 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem !important;
    text-align: right;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .responsive-table td:first-child {
    padding-top: 1rem !important;
  }

  .responsive-table td:last-child {
    padding-bottom: 1rem !important;
  }

  .responsive-table td input {
    margin-left: auto;
    width: 100% !important;
  }

  .responsive-table td [class*="w-20"],
  .responsive-table td [class*="w-28"] {
    width: 100% !important;
  }
}

trix-toolbar {
  margin-top: 0.5rem;
}

trix-toolbar .trix-button-row {
  gap: 0.25rem;
  flex-wrap: wrap;
}

trix-toolbar .trix-button-group {
  border-color: rgba(15, 23, 42, 0.14);
  border-radius: 0.375rem;
  overflow: hidden;
}

trix-toolbar .trix-button {
  background: #ffffff;
  border-bottom: 0;
}

trix-editor {
  min-height: 16rem;
  border: 0;
  padding: 0.75rem;
  outline: none;
}

.trix-content {
  line-height: 1.65;
}

.calendar-day-cell {
  -webkit-user-select: none;
  user-select: none;
}

.calendar-dashboard {
  display: block;
}

.calendar-board {
  margin-left: 50%;
  max-width: 96rem;
  overflow: hidden;
  transform: translateX(-50%);
  width: calc(100vw - clamp(2rem, 4vw, 4rem));
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) auto minmax(6.5rem, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.calendar-toolbar a:first-child {
  justify-self: start;
}

.calendar-toolbar a:last-child {
  justify-self: end;
}

.calendar-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.calendar-day-cell {
  min-height: clamp(11rem, 14vh, 15rem);
}

.calendar-day-cell.is-empty {
  min-height: clamp(11rem, 14vh, 15rem);
}

.calendar-day-cell[role="link"]:hover {
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.18);
}

.app-main a.calendar-booking {
  align-items: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  width: 100%;
}

.app-main a.calendar-booking span {
  display: block;
  width: 100%;
}

.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(2, 6, 23, 0.34);
}

.calendar-filter {
  min-height: 2.875rem;
}

.calendar-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2rem);
  text-align: right;
}

.calendar-summary div {
  min-width: 5rem;
}

.calendar-summary dt {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-summary dd {
  margin-top: 0.35rem;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 767px) {
  .calendar-board {
    margin-left: 0;
    max-width: none;
    transform: none;
    width: 100%;
  }

  .calendar-toolbar {
    grid-template-columns: auto 1fr auto;
  }

  .calendar-toolbar a {
    min-width: 0;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .calendar-title {
    font-size: 1.45rem;
  }

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

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

  .calendar-summary {
    justify-content: space-between;
    text-align: left;
  }

  .calendar-summary div {
    min-width: 0;
  }
}
