/*---------------------------------
	Events page shell and filters
-----------------------------------*/

.events-catalog-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 18px 32px;
}

.events-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.events-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.events-page-title .fa-solid {
  color: var(--accent-gold);
}

.events-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.events-cart-link:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.events-cart-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 12px;
}

.events-page-intro,
.events-notice {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.events-page-intro {
  margin-bottom: 14px;
}

.events-notice,
.events-empty-state {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #f8fafc;
}

.events-empty-state {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.events-notice.compact {
  margin-top: -6px;
  padding: 10px 14px;
}

.events-catalog-layout {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.events-entry-rail,
.events-main-column {
  min-width: 0;
  direction: rtl;
}

.events-entry-rail {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.events-entry-rail .entry-section {
  margin-bottom: 12px;
  border-color: var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.events-entry-rail .entry-header {
  align-items: flex-start;
  padding: 13px 14px;
  gap: 10px;
}

.events-entry-rail .entry-header:hover {
  background: #f8fafc;
}

.events-entry-rail .entry-header-left {
  align-items: flex-start;
}

.events-entry-rail .entry-header-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff7ed;
  font-size: 15px;
}

.events-entry-rail .entry-title {
  color: var(--text-primary);
  font-size: 15px;
}

.events-entry-rail .entry-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.events-entry-rail .entry-header-right {
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.events-entry-rail .entry-total-preview {
  color: var(--accent-blue);
  font-size: 13px;
}

.events-entry-rail .entry-body {
  border-top-color: var(--border-color);
}

.events-entry-rail .entry-person-row {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 8px;
  padding: 12px 14px;
  border-bottom-color: #e2e8f0;
}

.events-entry-rail .entry-person-row > * {
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.events-entry-rail .entry-person-details {
  flex: 1 1 auto;
  min-width: 0;
}

.events-entry-rail .entry-person-name {
  color: var(--text-primary);
  font-size: 14px;
}

.events-entry-rail .entry-person-sub {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.events-entry-rail .entry-person-voucher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  width: 80%;
  min-width: 80%;
  margin-right: auto;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.events-entry-rail .entry-person-voucher i {
  font-size: 10px;
}

.events-entry-rail .entry-person-pending-events {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.events-entry-rail .entry-day-toggles {
  justify-content: center;
  width: 100%;
  gap: 6px;
}

.events-entry-rail .entry-day-check {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  white-space: normal;
}

.events-entry-rail .entry-day-tag {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.events-entry-rail .entry-day-lock-note {
  font-size: 11px;
}

.events-entry-rail .entry-person-price {
  margin-right: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.events-entry-rail .entry-row-actions {
  margin-right: 0;
  width: auto;
}

.events-entry-rail .entry-row-action {
  width: 32px;
  height: 32px;
}

.entry-person-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.entry-person-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.events-entry-rail .entry-footer {
  align-items: stretch;
  flex-direction: column;
  padding: 12px 14px;
  gap: 10px;
}

.events-entry-rail .entry-footer-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.events-entry-rail .btn-entry-add {
  width: 100%;
}

.events-entry-rail .events-notice.compact {
  margin: 0;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.entry-section {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.entry-header:hover {
  background: #dbeafe;
}

.entry-header-left,
.entry-header-right,
.entry-title-row {
  display: flex;
  align-items: center;
}

.entry-header-left {
  gap: 12px;
  min-width: 0;
}

.entry-header-right {
  gap: 12px;
  flex-shrink: 0;
}

.entry-header-icon {
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 20px;
}

.entry-title-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3px;
}

.entry-title {
  color: #1e3a8a;
  font-size: 17px;
  font-weight: 800;
}

.entry-badge {
  padding: 3px 10px;
  border-radius: 20px;
  background: #bfdbfe;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

.entry-subtitle {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.entry-total-preview {
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.entry-chevron {
  color: #1d4ed8;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.entry-section.open .entry-chevron {
  transform: rotate(180deg);
}

.entry-body {
  display: none;
  border-top: 1px solid #93c5fd;
}

.entry-section.open .entry-body {
  display: block;
}

.entry-person-row {
  margin: 0;
  padding: 13px 22px;
  border-bottom: 1px solid #dbeafe;
}

.entry-person-row:last-child {
  border-bottom: 0;
}

.entry-person-row.purchased {
  background: #f0fdf4;
}

.entry-person-row.unsaved {
  background: #fff7ed;
}

.entry-person-row.stale {
  background: #f1f5f9;
  color: #64748b;
}

.entry-person-row.stale .entry-avatar,
.entry-person-row.stale .entry-person-price,
.entry-person-row.stale .entry-day-check,
.entry-person-row.stale .entry-day-tag {
  filter: grayscale(1);
  opacity: 0.62;
}

.entry-person-row.stale .entry-person-name,
.entry-person-row.stale .entry-person-sub,
.entry-person-row.stale .entry-person-voucher {
  color: #64748b;
}

.entry-person-row.stale .entry-person-voucher {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.entry-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  border: 4px solid transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.entry-avatar.cart {
  border-color: #2563eb;
}

.entry-avatar.purchased {
  border-color: #16a34a;
}

.entry-avatar.unsaved {
  border-color: #f97316;
}

.entry-avatar.avatar-color-0 {
  background: #2563eb;
}

.entry-avatar.avatar-color-1 {
  background: #0891b2;
}

.entry-avatar.avatar-color-2 {
  background: #7c3aed;
}

.entry-avatar.avatar-color-3 {
  background: #db2777;
}

.entry-avatar.avatar-color-4 {
  background: #ca8a04;
}

.entry-avatar.avatar-color-5 {
  background: #059669;
}

.entry-avatar.avatar-color-6 {
  background: #dc2626;
}

.entry-avatar.avatar-color-7 {
  background: #475569;
}

.entry-person-details {
  min-width: 0;
}

.entry-person-name {
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 700;
}

.entry-person-sub {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 400;
}

.entry-person-voucher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  width: 80%;
  min-width: 80%;
  margin-right: auto;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.entry-person-voucher i {
  font-size: 11px;
}

.entry-person-pending-events {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.entry-day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-day-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1.5px solid #93c5fd;
  border-radius: 8px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.entry-day-check.readonly {
  cursor: default;
}

.entry-day-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  user-select: none;
}

.entry-day-tag i {
  font-size: 11px;
}

.entry-day-tag.selected {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

.entry-day-tag.empty {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.entry-day-tag.event-locked {
  border-color: #94a3b8;
  background: #e2e8f0;
  color: #334155;
}

.entry-row-actions form {
  margin: 0;
}

.entry-day-check.selected {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
}

.entry-day-check.empty {
  border-color: #cbd5e1;
  color: #64748b;
}

.entry-day-check.event-locked {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

.entry-day-check.event-locked .entry-day-box {
  border-color: #94a3b8;
  background: #94a3b8;
}

.entry-day-lock-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.entry-day-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid #93c5fd;
  border-radius: 4px;
  background: #ffffff;
}

.entry-day-check.selected .entry-day-box {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.entry-day-box i {
  color: #ffffff;
  font-size: 9px;
}

.entry-day-check.empty .entry-day-box i {
  color: #94a3b8;
}

.entry-person-price {
  min-width: 62px;
  color: #93c5fd;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.entry-person-price.active {
  color: #2563eb;
}

.entry-row-actions,
.entry-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-row-actions {
  justify-content: flex-end;
}

.entry-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #ffffff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.entry-row-action:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.entry-row-icon-action {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
}

.entry-row-icon-action:hover {
  background: #e2e8f0;
  color: #334155;
}

.entry-row-action.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.entry-row-action.primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.entry-row-action.refresh {
  border-color: #94a3b8;
  background: #ffffff;
  color: #475569;
}

.entry-row-action.refresh:hover {
  background: #e2e8f0;
  color: #334155;
}

.entry-row-action.stale-delete {
  border-color: #94a3b8;
  background: #ffffff;
  color: #475569;
}

.entry-row-action.stale-delete:hover {
  border-color: #fecaca;
  background: #ffe4e6;
  color: #e11d48;
}

.entry-row-action.danger {
  border-color: #fecaca;
  background: #ffffff;
  color: #dc2626;
}

.entry-row-action.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.entry-row-action:disabled,
.entry-row-action.disabled {
  pointer-events: none;
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

.entry-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
}

.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid #93c5fd;
  background: #dbeafe;
}

.entry-footer-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.entry-footer-label {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
}

.entry-footer-price {
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 800;
}

.btn-entry-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-entry-add,
a.btn-entry-add,
a.btn-entry-add:link,
a.btn-entry-add:visited,
a.btn-entry-add:active {
  color: #ffffff;
  text-decoration: none;
}

.btn-entry-add:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.btn-entry-add.secondary {
  border-color: #1e3a8a;
  background: #1e3a8a;
}

.btn-entry-add.secondary,
a.btn-entry-add.secondary:link,
a.btn-entry-add.secondary:visited,
a.btn-entry-add.secondary:hover,
a.btn-entry-add.secondary:active {
  color: #ffffff;
}

.btn-entry-add.disabled {
  pointer-events: none;
  border-color: #bfdbfe;
  background: #bfdbfe;
  color: #60a5fa;
}

.ticket-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ticket-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ticket-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 420px;
  max-width: 95vw;
  padding: 28px 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
}

.ticket-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.ticket-modal-title i {
  color: var(--accent-blue);
}

.ticket-modal-note {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

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

.ticket-modal label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.ticket-modal input[type="text"],
.ticket-modal input[type="number"],
.ticket-modal select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.ticket-modal input:focus,
.ticket-modal select:focus {
  border-color: var(--accent-blue);
}

.ticket-modal-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-modal-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ticket-modal-day input {
  display: none;
}

.ticket-modal-day span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.ticket-modal-day span i {
  display: none;
  color: #ffffff;
  font-size: 9px;
}

.ticket-modal-day:has(input:checked) {
  border-color: var(--accent-blue);
  background: #dbeafe;
  color: var(--accent-blue);
}

.ticket-modal-day:has(input:checked) span {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
}

.ticket-modal-day:has(input:checked) span i {
  display: block;
}

.ticket-modal-day.event-locked,
.ticket-modal-day:has(input:disabled) {
  cursor: not-allowed;
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  opacity: 0.72;
}

.ticket-modal-day.event-locked span,
.ticket-modal-day:has(input:disabled) span {
  border-color: #94a3b8;
  background: #94a3b8;
}

.ticket-modal-day.event-locked span i,
.ticket-modal-day.event-locked .ticket-modal-day-note,
.ticket-modal-day:has(input:disabled) span i,
.ticket-modal-day:has(input:disabled) .ticket-modal-day-note {
  display: inline;
}

.ticket-modal-day-note {
  display: none;
  font-size: 11px;
  font-weight: 700;
}

.ticket-modal-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
}

.ticket-modal-help {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.ticket-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.ticket-modal-confirm,
.ticket-modal-delete,
.ticket-modal-cancel {
  min-height: 42px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ticket-modal-confirm {
  flex: 1;
  border: 0;
  background: var(--accent-blue);
  color: #ffffff;
}

.ticket-modal-confirm:disabled {
  background: #bfdbfe;
  color: #60a5fa;
  cursor: not-allowed;
}

.ticket-modal-delete {
  border: 1.5px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
}

.ticket-modal-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.ticket-modal-cancel {
  padding: 10px 18px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
}

.event-register-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.event-register-modal-overlay.open {
  display: flex;
}

.event-register-modal {
  width: 480px;
  max-width: 95vw;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.32);
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.event-register-head {
  padding: 18px 24px;
  border-bottom: 3px solid #facc15;
  background: #000000;
}

.event-register-type {
  margin-bottom: 4px;
  color: #facc15;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-register-title {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.event-register-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #94a3b8;
  font-size: 13px;
}

.event-register-body {
  padding: 20px 24px 12px;
}

.event-register-ask {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
}

.event-register-ask span {
  margin-right: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.event-register-ticket-row {
  display: block;
  margin: 0 0 8px;
}

.event-register-ticket-row input {
  display: none;
}

.event-register-row-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
  color: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.event-register-row-button:hover {
  border-color: var(--accent-blue);
  background: #f0f7ff;
}

.event-register-ticket-row.selected .event-register-row-button {
  border-color: var(--accent-blue);
  background: #eff6ff;
}

.event-register-ticket-row.blocked .event-register-row-button {
  opacity: 0.58;
  cursor: not-allowed;
  border-style: dashed;
}

.event-register-ticket-row.blocked .event-register-row-button:hover {
  border-color: var(--border-color);
  background: #ffffff;
}

.event-register-ticket-row.stale .event-register-row-button {
  background: #f8fafc;
  color: #64748b;
}

.event-register-ticket-row.stale .entry-avatar,
.event-register-ticket-row.stale .p-checkbox {
  filter: grayscale(1);
  opacity: 0.65;
}

.event-register-ticket-row.selected .p-checkbox {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  box-shadow: 0 0 0 3px #bfdbfe;
}

.event-register-ticket-row .p-checkbox i {
  display: none;
  color: #ffffff;
  font-size: 11px;
}

.event-register-ticket-row.selected .p-checkbox i {
  display: block;
}

.p-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-register-ticket-info {
  display: grid;
  flex: 1;
  min-width: 0;
}

.event-register-ticket-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.event-register-ticket-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.p-tag {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.ptag-me {
  background: #dbeafe;
  color: var(--accent-blue);
}

.ptag-friend {
  background: #d1fae5;
  color: var(--accent-green);
}

.ptag-block {
  background: #fee2e2;
  color: var(--accent-red);
}

.event-register-add-ticket {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 14px;
  color: #475569;
  font-size: 13px;
}

.event-register-add-ticket button {
  border: 0;
  background: none;
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
}

.event-register-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  color: var(--text-muted);
  font-weight: 700;
}

.event-register-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}

.smart-filter-container {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.filter-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filters-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.days-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: var(--border-color);
}

.day-tab {
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.day-tab:hover {
  color: var(--text-primary);
}

.day-tab.active {
  background: var(--bg-surface);
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 340px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  margin-right: 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
}

.btn-toggle-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-toggle-filters:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-toggle-filters.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--accent-blue);
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.type-chip {
  min-height: 32px;
  padding: 5px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.type-chip:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.type-chip.active {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #ffffff;
}

.day-tab i,
.type-chip i,
.filter-label i,
.btn-toggle-filters i,
.btn-reset i,
.events-cart-link i {
  margin-left: 5px;
}

.advanced-filters-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.advanced-filters-panel.open {
  display: block;
}

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

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.filter-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
}

.filter-select:focus {
  border-color: var(--accent-blue);
}

.filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.quick-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-wrapper input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.toggle-wrapper span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset:hover {
  color: var(--accent-red);
}

.events-results-summary {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.day-section {
  margin-bottom: 40px;
}

.day-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-blue);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
}

.day-section-header i {
  color: var(--accent-blue);
}

.day-section-count {
  margin-right: auto;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.slot-group {
  margin-bottom: 32px;
}

.slot-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.slot-time-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--bg-sidebar);
  color: #facc15;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.slot-time-range {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.slot-rule {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.slot-count {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-slot {
  padding: 28px;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 991.98px) {
  .events-catalog-layout {
    display: block;
    direction: rtl;
  }

  .events-entry-rail {
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 14px;
  }

  .events-entry-rail .entry-section {
    margin-bottom: 8px;
  }
}

@media (max-width: 767.98px) {
  .events-catalog-container {
    padding: 18px 8px 28px;
  }

  .events-page-topbar,
  .filter-primary-row,
  .filters-right,
  .filter-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .days-tabs,
  .search-box,
  .btn-toggle-filters,
  .events-cart-link {
    width: 100%;
  }

  .days-tabs {
    overflow-x: auto;
  }

  .day-tab {
    flex: 1 0 max-content;
  }

  .events-entry-rail {
    max-height: none;
  }

  .events-entry-rail .entry-header {
    padding: 11px 12px;
  }

  .events-entry-rail .entry-person-row,
  .events-entry-rail .entry-footer {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/*---------------------------------
	Events cards
-----------------------------------*/

.event-list-results {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.event-card {
  --card-border: #d8dee8;
  --card-muted: #64748b;
  --accent-blue: #2563eb;
  --accent-green: #15803d;
  --accent-red: #b91c1c;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 190px;
  min-height: 220px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  overflow: hidden;
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card.sold-out {
  background: #f8fafc;
  opacity: 0.78;
}

.event-card.in-cart {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe, 0 2px 9px rgba(37, 99, 235, 0.12);
}

.event-card.purchased {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px #bbf7d0, 0 2px 9px rgba(22, 163, 74, 0.12);
}

.card-action-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border-left: 2px solid #1e293b;
  background: #0f172a;
}

.time-display {
  display: grid;
  gap: 8px;
  text-align: center;
}

.date-big {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.time-big {
  display: grid;
  justify-items: center;
  color: #facc15;
  font-weight: 800;
  line-height: 1.1;
}

.time-start,
.time-end {
  font-size: 22px;
}

.time-sep {
  color: #475569;
  font-size: 15px;
}

.card-main {
  min-width: 0;
  padding: 16px;
}

.card-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.badge-type,
.badge-system,
.badge-free,
.badge-experience-required,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.badge-type {
  background: #e0f2fe;
  color: #075985;
}

.badge-system {
  background: #eef2ff;
  color: #3730a3;
}

.badge-experience-required {
  background: #FFDBBB;
  color: #D16200;
}

.badge-free {
  background: #dcfce7;
  color: var(--accent-green);
}

.card-title {
  display: block;
  margin-top: 11px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.event-card a.card-title,
.event-card a.card-title:link,
.event-card a.card-title:visited {
  color: #111827;
  text-decoration: none;
}

.event-card a.card-title:hover {
  color: #0b63ce;
}

.gm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #334155;
  font-size: 14px;
}

.gm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.card-description {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.tag {
  background: #f1f5f9;
  color: #334155;
}

.tag .fa-location-dot {
  color: var(--accent-blue);
}

.tag .fa-child,
.approval-approved {
  color: var(--accent-green);
}

.approval-pending {
  color: #b45309;
}

.card-btn-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border-right: 1px solid var(--card-border);
  background: #fbfdff;
}

.event-card.in-cart .card-btn-col {
  border-right-color: #bfdbfe;
  background: #eff6ff;
}

.event-card.purchased .card-btn-col {
  border-right-color: #86efac;
  background: #f0fdf4;
}

.table-composition {
  display: grid;
  gap: 8px;
}

.composition-header {
  text-align: center;
}

.composition-status,
.seats-status {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.seats-status {
  text-align: center;
}

.seats-status.green {
  color: var(--accent-green);
}

.seats-status.red {
  color: var(--accent-red);
}

.seats-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.seat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
}

.seat-icon.taken {
  background: #1e40af;
  color: #ffffff;
}

.seat-icon.empty {
  background: #dcfce7;
  color: #15803d;
}

.seat-icon.mine {
  border: 2px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe;
}

.seat-icon.stale {
  border: 2px solid #94a3b8;
  background: #f1f5f9;
  color: #64748b;
}

.seats-count-rows {
  display: grid;
  gap: 6px;
  justify-content: center;
}

.seat-count-row {
  display: grid;
  grid-template-columns: 22px minmax(120px, auto);
  align-items: center;
  justify-content: start;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.seats-progress {
  width: 100%;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.seats-progress .progress-bar {
  min-width: 2px;
}

.seats-progress-mine {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.seats-progress-stale {
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px #94a3b8;
}

.card-registration-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  font-weight: 800;
  text-align: center;
}

.card-registration-state-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
}

.card-registration-state.in-cart .card-registration-state-title {
  color: #1d4ed8;
}

.card-registration-state.purchased .card-registration-state-title {
  color: #15803d;
}

.card-registration-state-names {
  font-size: 12px;
  font-weight: 700;
}

.card-registration-state.in-cart .card-registration-state-names {
  color: #1d4ed8;
}

.card-registration-state.purchased .card-registration-state-names {
  color: #047857;
}

.btn-register.btn-register-secondary {
  border: 1px solid currentColor;
  background: transparent;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.btn-register.btn-register-secondary.in-cart {
  color: #2563eb;
}

.btn-register.btn-register-secondary.in-cart:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-register.btn-register-secondary.purchased {
  color: #15803d;
}

.btn-register.btn-register-secondary.purchased:hover {
  background: #dcfce7;
  color: #047857;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.btn-register:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-register.disabled,
.btn-register:disabled {
  cursor: not-allowed;
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

@media (max-width: 991.98px) {
  .entry-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .entry-footer-actions {
    flex-wrap: wrap;
  }

  .event-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .card-btn-col {
    grid-column: 1 / -1;
    border-top: 1px solid var(--card-border);
    border-right: 0;
  }
}

@media (max-width: 575.98px) {
  .entry-header,
  .entry-header-left,
  .entry-header-right {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-row-actions,
  .entry-footer-actions,
  .btn-entry-add {
    width: 100%;
  }

  .entry-row-actions {
    justify-content: flex-start;
  }

  .entry-person-price {
    text-align: right;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .card-action-col {
    border-left: 0;
    border-bottom: 1px solid var(--card-border);
  }

  .time-big {
    grid-auto-flow: column;
    gap: 8px;
  }

  .time-start,
  .time-end {
    font-size: 18px;
  }
}
