@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #1f2933;
  --glopal-font: 'Rubik';
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  font-family: var(--glopal-font);
}

.page-header,
.page-footer {
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-footer a {
  color: #215ae2;
  text-decoration: none;
  font-weight: 600;
}

.content {
  flex: 1;
  padding: 0 clamp(1.5rem, 3vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.content.single-column {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.card {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.booking-card {
  width: 100%;
  padding: 0;
  border: 1px solid #e6eaf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.booking-card__header {
  padding: 10px 20px;
  border-bottom: 1px solid #e6eaf0;
  text-align: right;
}

.booking-card__title {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.booking-card__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="text"] {
  font-family: var(--glopal-font);
}

.booking-label {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.booking-input {
  width: 100%;
  height: 45px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  outline: 0;
  color: #111827;
}

.booking-input:focus {
  border-color: #0c1038;
}

.booking-input::placeholder {
  color: #9ca3af;
}

.booking-input[readonly] {
  background: #ffffff;
}

#booking-form .selection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#booking-form .selection-box {
  width: 100%;
  min-height: unset;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #ffffff;
  color: #111827;
  display: block;
  font-size: 14px;
  padding: 0 16px;
  font-family: var(--glopal-font);
}

#booking-form .selection-box:hover {
  border-color: #d6dbe4;
  background: #EEE;
}

#booking-form .selection-box.active {
  background: #e42330;
  color: #ffffff;
  border-color: #e42330;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#booking-form .selection-icon {
  font-size: 1.15rem;
}


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

.booking-input--compact {
  height: 40px;
  padding: 8px 12px;
  font-size: 16px;
}

.booking-submit {
  width: 100%;
  font-family: var(--glopal-font);
  border-radius: 35px;
  background: #0c1038;
  color: #ffffff;
  font-size: 16px;
}

.booking-submit:hover {
  background: #e42330;
}

#booking-form .helper {
  margin-top: -6px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: #334155;
}

input,
select,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  font-family: var(--glopal-font);
}

textarea {
  resize: vertical;
}

input[readonly] {
  background: #f8fafc;
}

button {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  background: #c4c4c4;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--glopal-font);
}

button:hover {
  background: #dc2626;
}

.button-secondary {
  background: #e2e8f0;
  color: #1f2933;
}

.button-secondary:hover {
  background: #cbd5f5;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.helper {
  margin: 0;
  font-weight: 600;
}

.helper.success {
  background: #137333;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 25px;
  text-align: center;
  font-weight: 400;
}

.helper.error {
  background: #b91c1c;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 25px;
  text-align: center;
  font-weight: 400;
}

.clock-display {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #f1f5ff;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.selection-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selection-label {
  margin: 0;
  font-weight: 600;
  color: #334155;
}

.selection-grid,
.payment-selection {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.selection-box,
.payment-option {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #dbe4ff;
  border-radius: 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.selection-box:hover,
.payment-option:hover {
  border-color: #215ae2;
  background: #edf3ff;
}

.selection-box.active,
.payment-option.active {
  border-color: #215ae2;
  box-shadow: 0 0 0 2px rgba(33, 90, 226, 0.2);
  background: #eef4ff;
}

.selection-icon {
  font-size: 1.4rem;
}


#receipt-card {
  width: 100%;
  padding: 0;
  background: #f9fafb;
  border: 1px solid #e6eaf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.receipt-card-header {

  background: #ffffff;
  border-bottom: 1px solid #e6eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.receipt-card-title {
  margin: 0;
  color: #1c1f26;
  font-size: 18px;
}

.receipt-content {
  padding: 1.5rem;
}

.receipt-content.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.receipt-logo-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0 0.5rem;
}

.receipt-logo {
  height: 55px;
}

.receipt-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.receipt-label {
  color: #6b7280;
  font-weight: 500;
}

.receipt-value {
  color: #1c1f26;
  font-size: 14px;
}

.receipt-divider {
  margin: 0.25rem 0;
  border: 0;
  border-top: 1px solid #e6eaf0;
}

.receipt-duration {
  margin: 0;
  color: #1c1f26;
  font-weight: 700;
  text-align: center;
}

.receipt-time-note {
  margin: 0;
  color: #e42330;
  font-weight: 700;
  text-align: center;
}

.receipt-final-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.receipt-final-total-value {
  color: #1c1f26;
  font-size: 1.35rem;
  font-weight: 700;
}

.future-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff7ed;
  color: #9a3412;
}

.future-note h3 {
  margin-top: 0;
}

.open-sessions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#open-sessions-card {
  width: 100%;
  border: 1px solid #e6eaf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
}

#open-sessions-card .open-sessions-header {
  padding: 10px 20px;
  border-bottom: 1px solid #e6eaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

#open-sessions-card .open-sessions-title {
  margin: 0;
  font-size: 18px;
  color: #0e1a2b;
}

#open-sessions-card .open-sessions-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#open-sessions-card .open-sessions-count-label {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
}

#open-sessions-card .open-sessions-count-value {
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  border-radius: 10px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
}

#open-sessions {
  padding: 16px;
}

#open-sessions-card .open-session-card {
  border: 1px solid #0e1a2b;
  border-radius: 10px;
  background: rgba(14, 26, 43, 0.02);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  position: relative;
}

#open-sessions-card .open-session-card::before {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;

  background: #e42330;
}

#open-sessions-card .session-compact {
  width: 100%;
  background: transparent;
  color: #0f172a;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

#open-sessions-card .session-compact-main {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

#open-sessions-card .session-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

#open-sessions-card .client-name {
  color: #0e1a2b;
  font-size: 16px;
  margin: 0;
}

#open-sessions-card .toggle-icon {
  font-size: 2rem;
  line-height: 1;
  color: #0e1a2b;
}

#open-sessions-card .space-badge {
  align-self: flex-start;
  border-radius: 35px;
  border: 1px solid #d7dce2;
  background: #ffffff;
  color: #6b7280;
  font-size: 14px;
  padding: 5px 10px;
}

#open-sessions-card .session-compact-time {
  border-right: 1px solid #eceff3;
  padding-top: 5px;
  color: #e42330;
  font-size: 16px;
  min-width: 110px;
  padding-right: 15px;
  text-align: left;
  gap: 8px;
}

#open-sessions-card .session-details {
  border-top: 1px solid #e6eaf0;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 18px;
}

#open-sessions-card .open-session-card.expanded .session-details {
  display: flex;
}

#open-sessions-card .details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

#open-sessions-card .detail-item {
  margin: 0;
}

#open-sessions-card .detail-item strong {
  display: block;
  color: #9ca3af;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

#open-sessions-card .detail-item span {
  color: #111827;
}

#open-sessions-card .section-title {
  margin: 0 0 10px;
  color: #e42330;
  font-size: 16px;
}

#open-sessions-card .products-controls {
  display: grid;
  grid-template-columns: 1fr 70px 52px;
  gap: 8px;
  align-items: stretch;
}

#open-sessions-card .add-drink-action {
  border: 1px solid #e42330;
  background: #ffffff;
  color: #e42330;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}

#open-sessions-card .add-drink-action:hover {
  background: #fff1f2;
}

#open-sessions-card .drinks-list-table,
#open-sessions-card .drinks-list-table th,
#open-sessions-card .drinks-list-table td {
  border-color: #e5e7eb;
}

#open-sessions-card .drinks-list-table th,
#open-sessions-card .drinks-list-table td {
  font-size: 0.9rem;
}

#open-sessions-card .drinks-total-line {
  text-align: center;
}

#open-sessions-card .discount-input-wrap {
  position: relative;
}

#open-sessions-card .discount-input-wrap .currency {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

#open-sessions-card .discount-input-wrap input {
  padding-inline-start: 58px;
}

#open-sessions-card .running-totals-grid {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

#open-sessions-card .final-summary {
  border-top: 1px solid #e6eaf0;
  padding-top: 14px;
}

#open-sessions-card .final-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#open-sessions-card .final-total-label {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

#open-sessions-card .final-total-value {
  margin: 0;
  color: #e42330;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

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

.receipt-payment-selection .payment-option {
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e42330;
  background: #fff;
  color: #e42330;
  font-size: 1.05rem;
  font-weight: 700;
}

.receipt-payment-selection .payment-option.active {
  border-color: #111827;
  background: #0c1038;
  color: #FFF;
  box-shadow: none;
}

#open-sessions-card .close-session-button {
  width: 100%;
  border-radius: 35px;
  border: none;
  background: #e42330;
  color: #ffffff;
  margin-top: 10px;
}

#open-sessions-card .close-session-button:hover {
  background: #111827;
}

#open-sessions-card .open-session-card.collapsed .session-details {
  display: none;
}

.placeholder {
  margin: 0;
  color: #64748b;
}

.table-wrapper {
  width: 100%;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow-x: auto;
}

.admin-section table {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
}

.admin-section thead {
  background: #f9fafb;
}

.admin-section th {

  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666666;
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid #eaeaea;
}

.admin-section td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
}

.admin-section tbody tr:last-child td {
  border-bottom: none;
}

.admin-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  gap: 24px;
  min-height: 121px;
  width: 100%;
}

.admin-heading-block {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: #111111;
}

.admin-date-range {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #111111;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-actions form {
  margin: 0;
}

.admin-filters {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #666666;
}

.filter-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #666666;
}

.admin-filters input,
.admin-filters select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #eaeaea;

  font-size: 14px;
  width: 100%;
}

.payment-filter {
  display: flex;
  border: 1px solid #e53935;
  border-radius: 0;
  overflow: hidden;
}

.payment-filter .payment-option {
  height: 40px;
  font-size: 14px;
  background: #ffffff;
  color: #e53935;
  border: none;
  border-left: 1px solid #e53935;
  cursor: pointer;
  min-height: 40px;
  border-radius: 0;
}

.payment-filter .payment-option:last-child {
  border-left: none;
}

.payment-filter .payment-option.active {
  background: #e53935;
  color: #ffffff;
}

.filters-actions {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filters-actions #apply-filters {
  height: 40px;
  padding: 0 20px;
  background: #e53935;
  color: #ffffff;
  font-weight: 700;
}

.filters-actions #apply-filters:hover {
  background: #0c1038;
}

.filters-actions #reset-filters {
  height: 40px;
  padding: 0 20px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  color: #666666;

  font-weight: 700;
}

.filters-actions #reset-filters:hover {
  background: #bebebe;
  color: #0c1038;
}

.admin-revenue-card {
  order: 2;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  box-sizing: border-box;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 16px 0;
  min-height: 86px;
}

.admin-revenue-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-revenue-label {
  margin: 0;

  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  color: #666666;
}

.admin-revenue-value {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.admin-revenue-value-month {
  color: #e53935;
}

.admin-revenue-value-day {
  color: #111111;
}

.admin-revenue-divider {
  width: 1px;
  height: 48px;
  background: #eaeaea;
}

.version-label {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #64748b;
}

.admin-section {
  margin-top: 2rem;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.admin-section-title-wrap {
  display: flex;
  align-items: center;
}

.admin-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  background: #e53935;
  border-radius: 50%;
  margin-right: 8px;
}

.admin-status-dot-muted {
  background: #666666;
}

.subtitle {
  margin: 0.5rem 0 0;
  color: #64748b;
}

.login-card {
  width: 100%;
}


@media (max-width: 1024px) {
  #open-sessions-card .open-session-card {
    max-width: 100%;
  }

}

@media (max-width: 768px) {
  .admin-header {
    flex-wrap: wrap;
  }

  .admin-revenue-card {
    width: 100%;
    justify-content: space-between;
  }

  .booking-card__title {
    font-size: 1.5rem;
  }

  .booking-card__subtitle {
    font-size: 0.95rem;
  }

  .booking-form {
    padding: 20px;
  }

  .booking-inline-group {
    grid-template-columns: 1fr;
  }

  #booking-form .selection-title {
    font-size: 1.05rem;
  }

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

  .payment-selection {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions button {
    width: 100%;
  }

  .filters-actions {
    width: 100%;
    flex-direction: row;
    gap: 12px;
  }

  .admin-section-header {
    padding: 0 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-export-controls {
    width: 100%;
    flex-wrap: wrap;
  }
}


.drinks-section {
  border: 1px solid #dbe4ff;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drinks-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.drinks-controls>label {
  margin: 0;
}

.drinks-controls>label:first-child {
  flex: 1 1 260px;
  min-width: 0;
}

.drinks-controls>label:nth-child(2) {
  flex: 0 0 110px;
}

.drinks-controls .drink-select-input,
.drinks-controls .drink-quantity-input {
  width: 100%;
}

#open-sessions-card .add-drink-action {
  min-height: 42px;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-inline-start: 0.25rem;
  align-self: flex-end;
}

.drinks-list-wrap {
  overflow-x: auto;
}

.drinks-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  overflow: hidden;
}

#open-sessions-card .drinks-list-table th,
#open-sessions-card .drinks-list-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  font-size: 0.9rem;
}

.drinks-list-table tbody tr:last-child td {
  border-bottom: none;
}


.drink-qty-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.drink-decrease-btn {
  height: 28px;
  min-width: 28px;
  border: 1px solid #dc2626;
  background: #fff;
  color: #dc2626;
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
  padding: 0;
}

.drink-decrease-btn:hover {
  background: #fef2f2;
}

.drink-decrease-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drink-qty {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.remove-drink-action {
  background: #fee2e2;
  color: #b91c1c;
}

.remove-drink-action:hover {
  background: #fecaca;
}

@media (max-width: 768px) {
  .drinks-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .drinks-controls>label:first-child,
  .drinks-controls>label:nth-child(2) {
    flex: 1 1 auto;
  }

  #open-sessions-card .add-drink-action {
    width: 100%;
    margin-inline-start: 0;
  }
}

/* Shared app header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6eaf0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 5px;
}

.app-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "datetime brand title";
  align-items: center;
  gap: 1rem;
  direction: ltr;
}

.app-header__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header__logo {
  width: auto;
  height: 45px;
  display: block;
}

.app-header__title {
  grid-area: title;
  margin: 0;
  direction: rtl;
  text-align: right;
  font-size: 1.03rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  justify-self: end;
}

.app-header__datetime {
  grid-area: datetime;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #334155;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.25;
  direction: ltr;
  justify-self: start;
}

.app-header__datetime span:last-child {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 780px) {
  .app-header__inner {
    min-height: 120px;
    padding: 0.7rem 0.85rem;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.4rem;
  }

  .app-header__title {
    font-size: 0.86rem;
    white-space: normal;
    justify-self: center;
    text-align: center;
  }

  .app-header__datetime {
    font-size: 0.84rem;
    align-items: center;
    justify-self: center;
  }

  .app-header__logo {
    width: auto;
    height: 100px;
  }

  .app-header__datetime span:last-child {
    font-size: 0.74rem;
  }
}

/* Admin login redesign */
.admin-login-page {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
}

.admin-login-panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}

.admin-login-brand {
  display: flex;
  justify-content: center;
}

.admin-login-logo {
  width: 138px;
  max-width: 100%;
  height: auto;
}

.admin-login-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-login-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #1c1f26;
  font-weight: 700;
}

.admin-login-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6b7280;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-login-form label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.admin-login-input-wrap {
  position: relative;
}

.admin-login-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #e6dce1;

  padding: 0 16px 0 40px;
  font-size: 18px;
  text-align: right;
  box-sizing: border-box;
}

.admin-login-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.75;
}

.admin-login-submit {
  width: 100%;
  height: 48px;

  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 16px;
  font-weight: 700;
}

.admin-login-submit:hover {
  background: #e5e7eb;
}

.admin-login-error {
  margin-top: -8px;
  text-align: center;
}

.admin-login-back {
  text-align: center;
  color: #0c1038;
  text-decoration: none;
  font-weight: 600;
}

.admin-login-back:hover {
  text-decoration: underline;
}

/* Admin page refresh */

.admin-export-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.admin-total {
  font-weight: 700;
  color: #111111;
}

.admin-edit-button,
.admin-delete-button {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #666666;
}

.admin-delete-button {
  color: #666666;
}

.admin-delete-button:hover {
  color: #e53935;
  background: none;
}

.admin-edit-button:hover {
  color: #111111;
  background: none;
}

.closed-booking-row {
  cursor: pointer;
}

.closed-booking-row:hover {
  background: #f9fafb;
}

.admin-modal.hidden {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.admin-modal-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

.admin-modal-card {
  position: relative;
  width: min(720px, 92vw);
  margin: 4vh auto;
  background: #fff;
  border-radius: 6px;
  padding: 18px;
  max-height: 92vh;
  overflow: auto;
  pointer-events: auto;
}

.admin-modal-close {
  position: absolute;
  left: 12px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.admin-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  ;
}

.admin-edit-form button {
  grid-column: 1 / -1;
}

.details-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.details-drinks-list {
  margin-top: 14px;
}