.calendar-card
  .calendar-day-btn:not(:disabled):not(.is-selected):not(.is-range-start):not(
    .is-range-end
  ),
.calendar-card .calendar-day-btn.is-today:not(:disabled):not(.is-selected) {
  background: rgba(34, 170, 90, 0.22);
  color: #eafff1;
  border: 1px solid rgba(34, 170, 90, 0.7);
}
.calendar-card .calendar-day-btn:not(:disabled):hover {
  background: rgba(34, 170, 90, 0.4);
}
.calendar-card .calendar-day-btn.is-unavailable,
.calendar-card .calendar-day-btn.is-unavailable:disabled {
  background: rgba(216, 35, 42, 0.28) !important;
  color: #ffd9db !important;
  border: 1px solid rgba(216, 35, 42, 0.8) !important;
  opacity: 1 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}
.calendar-card .calendar-day-btn.is-selected,
.calendar-card .calendar-day-btn.is-range-start,
.calendar-card .calendar-day-btn.is-range-end {
  background: #1f4fd8 !important;
  color: #fff !important;
  border: 1px solid #4f86ff !important;
}
.calendar-card .is-range-mid .calendar-day-btn,
.calendar-card .is-range-preview .calendar-day-btn {
  background: rgba(79, 134, 255, 0.35);
  border: 1px solid rgba(79, 134, 255, 0.8);
  color: #fff;
}
.calendar-card .calendar-day-btn.is-past,
.calendar-card .calendar-day-btn.is-other-month {
  background: transparent !important;
  border-color: transparent !important;
  opacity: 0.35;
}

/* Shared page layout */
.p34-page {
  padding-block: 2rem 4rem;
}
.p34-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.p34-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
.p34-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.p34-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.p34-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}
.p34-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.p34-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.p34-btn {
  padding: 0.65rem 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.p34-btn.block {
  width: 100%;
}
.p34-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  border-radius: var(--radius-control);
  cursor: pointer;
  min-height: 34px;
}
.btn-outline.p34-btn,
.btn-outline.p34-sm {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline.danger {
  border-color: var(--brand);
  color: #ff8a8f;
}
.p34-input,
.p34-grid-form input,
.p34-grid-form select,
.p34-grid-form textarea,
.p34-page select,
.p34-page textarea,
.p34-page input[type="text"],
.p34-page input[type="number"],
.p34-page input[type="date"],
.p34-page input[type="search"] {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.55rem 0.7rem;
  font: inherit;
  max-width: 100%;
}
.p34-grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
  align-items: end;
}
.p34-grid-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.p34-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.muted {
  color: var(--text-muted);
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
}
.inline-form {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.p34-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  margin-bottom: 1rem;
  border: 1px solid;
}
.p34-flash.ok,
.p34-flash.success {
  background: rgba(34, 170, 90, 0.15);
  border-color: rgba(34, 170, 90, 0.6);
  color: #b9f5cf;
}
.p34-flash.err,
.p34-flash.error {
  background: rgba(216, 35, 42, 0.15);
  border-color: rgba(216, 35, 42, 0.6);
  color: #ffc2c5;
}
.p34-flash.info {
  background: rgba(79, 134, 255, 0.15);
  border-color: rgba(79, 134, 255, 0.6);
  color: #cddcff;
}
.p34-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.p34-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.p34-stat > span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p34-stat b,
.p34-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 400;
}
.p34-stat small {
  font-size: 0.78rem;
  color: var(--text-3, var(--text-muted));
}
.p34-stat.bad {
  border-color: var(--brand);
}
.p34-stat.ok {
  border-color: rgba(34, 170, 90, 0.7);
}
.p34-badge,
.p34-count {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  vertical-align: middle;
}

/* tables */
.p34-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p34-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.p34-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
}
.p34-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border-dim);
  vertical-align: top;
  word-break: break-word;
}
.p34-table.compact td,
.p34-table.compact th {
  padding: 0.35rem 0.5rem;
}
.p34-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.p34-pager {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* status pills */
.p34-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  white-space: nowrap;
}
.p34-pill[class*="s-pending"],
.p34-pill.s-awaiting_eft,
.p34-pill.s-payment_pending,
.p34-pill.st-suspended {
  background: rgba(240, 170, 30, 0.2);
  color: #ffd98a;
}
.p34-pill.s-confirmed,
.p34-pill.s-completed,
.p34-pill.st-active,
.p34-pill.s-approved_awaiting_payment {
  background: rgba(34, 170, 90, 0.22);
  color: #aef0c8;
}
.p34-pill.s-declined,
.p34-pill.s-rejected,
.p34-pill.s-cancelled,
.p34-pill.s-expired,
.p34-pill.st-inactive {
  background: rgba(216, 35, 42, 0.22);
  color: #ffb3b6;
}

/* tabs, segmented, dialog */
.p34-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.p34-tabs button,
.p34-tabs a {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
}
.p34-tabs .on,
.p34-tabs .active {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent);
}
.p34-seg {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.p34-seg button {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
}
.p34-seg .on {
  background: var(--accent-deep);
  color: #fff;
}
.p34-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  width: min(520px, 94vw);
}
.p34-dialog.wide {
  width: min(820px, 96vw);
}
.p34-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.p34-dialog-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.p34-alt,
.p34-alt-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.toggle span {
  position: absolute;
  inset: 0;
  background: #3a3f52;
  border-radius: 26px;
  transition: 0.2s;
}
.toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + span {
  background: #22aa5a;
}
.toggle input:checked + span::after {
  transform: translateX(20px);
}

/* toasts + bell + staff dropdown */
#p34-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10000;
  max-width: min(380px, 92vw);
}
.p34-toast {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left-width: 5px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  transition: opacity 0.4s;
}
.p34-toast.error {
  border-color: var(--brand);
}
.p34-toast.out {
  opacity: 0;
}
.p34-bell {
  position: relative;
}
.p34-bell > button {
  background: none;
  border: 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 0.3rem 0.5rem;
  color: var(--text);
  min-height: 40px;
  white-space: nowrap;
}
.p34-bell .p34-count {
  display: inline-block;
  margin-left: 0.35rem;
  min-width: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2rem;
  text-align: center;
}
.p34-bell .p34-count[hidden] {
  display: none;
}
.p34-bell-panel {
  position: absolute;
  right: 0;
  top: 110%;
  width: min(340px, 90vw);
  max-height: 60vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 0.6rem;
  z-index: 300;
  box-shadow: var(--shadow-pop);
}
.p34-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.85rem;
}
.p34-note small {
  color: var(--text-muted);
  display: block;
}
.p34-note button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}
.p34-dd {
  position: relative;
  display: inline-block;
}
.p34-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 0.35rem;
  z-index: 300;
  box-shadow: var(--shadow-pop);
}
.p34-dd:hover .p34-dd-menu,
.p34-dd:focus-within .p34-dd-menu,
.p34-dd.open .p34-dd-menu {
  display: block;
}
.p34-dd-menu a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}
.p34-dd-menu a:hover {
  background: var(--surface-hover);
  color: var(--brand);
}

/* rental extras */
.p34-extras {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.6rem 0.9rem;
  margin: 0.8rem 0;
}
.p34-extras legend {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 0.4rem;
}
.p34-extras label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.88rem;
}
.p34-extras b {
  margin-left: auto;
  color: var(--accent);
}
.p34-paynote {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0.8rem;
}

/* Bar & restaurant (customer) */
.bar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}
.bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.bar-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bar-item.off {
  opacity: 0.5;
}
.bar-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 0.5rem;
}
.bar-cart {
  position: sticky;
  top: 5.5rem;
}
.bar-cart-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.bar-cart-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.bar-alert {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-control);
  margin: 0.6rem 0;
  background: rgba(216, 35, 42, 0.15);
  border: 1px solid rgba(216, 35, 42, 0.6);
}
.bar-mine-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  flex-wrap: wrap;
}
.bar-cats,
.cat-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .bar-layout {
    grid-template-columns: 1fr;
  }
  .bar-cart {
    position: static;
  }
}

/* Bar staff queue */
.queue-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.queue-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.queue-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.8rem;
}
.queue-card.fresh {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(216, 35, 42, 0.35);
  animation: p34pulse 1.6s ease-in-out infinite;
}
.queue-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.queue-card ul {
  margin: 0.4rem 0;
  padding-left: 1.1rem;
}
.queue-card footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.queue-card .btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.queue-card .note {
  color: #ffd98a;
  font-size: 0.85rem;
}
@keyframes p34pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(216, 35, 42, 0.1);
  }
}
.staff-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.staff-menu-grid label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.5rem 0.7rem;
}
@media (max-width: 900px) {
  .queue-cols {
    grid-template-columns: 1fr;
  }
}

/* POS (touch) */
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.25rem;
  align-items: start;
}
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.pos-tile {
  min-height: 96px;
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
.pos-tile:active:not(:disabled) {
  background: var(--accent-deep);
}
.pos-tile:disabled {
  opacity: 0.4;
}
.pos-tile span {
  color: var(--accent);
  font-weight: 700;
}
.pos-tile em {
  font-size: 0.7rem;
  color: #ffb3b6;
}
.pos-ticket {
  position: sticky;
  top: 5.5rem;
}
.pos-lines {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  max-height: 40vh;
  overflow: auto;
}
.pos-lines li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.pos-lines .qty button {
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}
.pos-lines .qty {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.pos-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  margin: 0.5rem 0;
}
.pos-totals dd {
  margin: 0;
  text-align: right;
}
.pos-totals .big {
  font-size: 1.4rem;
  font-family: var(--font-heading);
}
.pos-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.6rem 0;
}
.pos-pay .p34-btn {
  min-height: 64px;
  font-size: 1.3rem;
}
@media (max-width: 900px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .pos-ticket {
    position: static;
  }
}

/* Homepage promos */
.p34-banner {
  position: relative;
  min-height: 260px;
  background: linear-gradient(
    120deg,
    var(--surface-alt),
    var(--brand-tint-soft)
  );
  overflow: hidden;
}
.p34-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 2rem max(1rem, calc((100% - var(--container)) / 2));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s;
}
.p34-slide.on {
  opacity: 1;
  visibility: visible;
}
.p34-slide h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0;
  text-transform: uppercase;
}
.p34-slide p {
  max-width: 560px;
  color: var(--text-muted);
  margin: 0;
}
.p34-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.p34-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.p34-dots .on {
  background: #fff;
}
.p34-featured,
.p34-rental-info {
  padding-block: 2rem;
}
.p34-featured h2,
.p34-rental-info h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.p34-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.p34-fcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
}
.p34-fcard img,
.p34-fcard .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-control);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.p34-fcard span {
  color: var(--accent);
  font-weight: 700;
}
.p34-rental-info li {
  margin: 0.4rem 0;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {
  .p34-page {
    padding-inline: 0.75rem;
  }
  .p34-btn {
    width: 100%;
  }
  .p34-head {
    align-items: flex-start;
  }
  .p34-actions {
    width: 100%;
  }
  .pos-pay {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1800px) {
  .p34-page {
    max-width: 1600px;
  }
  .pos-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .p34-slide,
  .p34-toast,
  .queue-card.fresh {
    transition: none;
    animation: none;
  }
}
@media print {
  .subpage-nav,
  .p34-actions,
  .p34-bell,
  #p34-toasts {
    display: none !important;
  }
}

/* header */
.subpage-nav .nav-row {
  gap: 1rem;
}
.subpage-nav .nav-brand-slot {
  flex: 0 0 auto;
}
.subpage-nav .nav-links-cluster {
  gap: 1rem;
  min-width: 0;
}
.subpage-nav .nav-link-item {
  font-size: 1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.subpage-nav .nav-actions-right {
  flex: 0 0 auto;
}
.subpage-nav .nav-user-tag {
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1650px) {
  .subpage-nav:has(.p34-dd) .nav-links-cluster {
    display: none;
  }
  .subpage-nav:has(.p34-dd) .subpage-mobile-toggle {
    display: inline-flex;
  }
}
@media (max-width: 1250px) {
  .subpage-nav .nav-link-item {
    font-size: 0.9rem;
  }
  .subpage-nav .nav-links-cluster {
    gap: 0.7rem;
  }
}
.p34-flash code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Rental requests table */
.p34-table td small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-muted);
}
.p34-table td .p34-pill {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 9.5rem;
}
.p34-table td.r,
.p34-table th.r {
  text-align: right;
}
.p34-table .p34-row-actions {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 7.5rem;
}
.p34-table .p34-row-actions > * {
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}
.p34-table-wrap {
  max-width: 100%;
}

/* Dialogs */
.p34-dialog {
  max-height: 92vh;
  overflow-y: auto;
  background: #151a24;
  color: #f2f4f8;
}
.p34-dialog-actions {
  position: sticky;
  bottom: -1.4rem;
  background: #151a24;
  padding: 0.8rem 0 0.2rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}
.p34-dialog .p34-cancel {
  background: #2a3142;
  color: #fff;
  border: 1px solid #7f8aa3;
  border-radius: var(--radius-control);
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 34px;
}
.p34-dialog .p34-cancel:hover {
  background: #3a4359;
}
.p34-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  margin-top: 0.7rem;
}
.p34-dialog textarea,
.p34-dialog input[type="text"] {
  background: #0e121a;
  color: #f2f4f8;
  border: 1px solid #3a4359;
  border-radius: var(--radius-control);
  padding: 0.55rem 0.7rem;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.p34-alt {
  display: block;
  border: 1px solid #3a4359;
  border-radius: var(--radius-control);
  padding: 0.7rem 0.8rem;
  margin: 0.9rem 0 0;
}
.p34-alt legend {
  padding: 0 0.4rem;
  font-size: 0.85rem;
  color: #cfd6e6;
}
.p34-alt-help {
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.p34-mini {
  max-width: 17rem;
  margin: 0 auto 0.5rem;
}
.p34-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.p34-mini-nav {
  background: #2a3142;
  color: #fff;
  border: 1px solid #7f8aa3;
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.p34-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.p34-mini-grid .dow {
  text-align: center;
  font-size: 0.68rem;
  color: #9aa6c0;
  padding: 0.15rem 0;
}
.p34-mini-grid .day {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}
.p34-mini-grid .day.free {
  background: rgba(34, 170, 90, 0.28);
  border-color: rgba(34, 170, 90, 0.85);
  color: #eafff1;
}
.p34-mini-grid .day.free:hover {
  background: rgba(34, 170, 90, 0.5);
}
.p34-mini-grid .day.taken {
  background: rgba(216, 35, 42, 0.3);
  border-color: rgba(216, 35, 42, 0.85);
  color: #ffd9db;
  text-decoration: line-through;
  cursor: not-allowed;
}
.p34-mini-grid .day.pick {
  background: #1e5bd6;
  border-color: #6a9bff;
  color: #fff;
  font-weight: 700;
}
.p34-mini-grid .day.past {
  background: transparent;
  color: #5d6780;
  cursor: default;
}
.p34-mini-key {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #9aa6c0;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.p34-mini-key .k {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  display: inline-block;
}
.p34-mini-key .k.free {
  background: rgba(34, 170, 90, 0.7);
}
.p34-mini-key .k.taken {
  background: rgba(216, 35, 42, 0.8);
}
.p34-mini-key .k.pick {
  background: #1e5bd6;
}
.p34-alt-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
  min-height: 1.6rem;
  font-size: 0.85rem;
}
.p34-chip {
  background: #1e5bd6;
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 0.7rem;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.p34-chip button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
