.dialog-content {
  display: flex;
  flex-direction: column;
  background: #eeeeee;
  border: 1px solid #c3c3c3;
  border-radius: 10px;
  align-items: center;
  padding: 20px 30px;
}
#errorPopupCollision {
  top: 25%;
  background: none;
  border: none;
  outline: none;
  animation: fadeIn 0.5s;
}
.dialog-button {
  padding: 2px 20px;
  font-family: Amelia Roboto, sans-serif;
  font-size: 14px;
  margin: 20px;
  background-color: #265CF2;
  color: #ffffff;
  border-radius: 6px;
  border: 1px solid #265CF2;
  padding: 8px 20px;
  cursor: pointer;
}
.dialog-button:hover {
  background-color: rgba(38,92,242, 0.8);
}
#errorPopupCollision > header {
}
#errorPopupCollision > header > #closeButton {
  cursor: pointer;
  top: 8px;
  right: 12px;
  background: transparent !important;
  border: none;
  position: absolute;
  /*font-family: amelia-icons !important;*/
  /*font-style: normal;*/
  /*font-weight: 400;*/
}
#errorPopupCollision > header > #closeButton:active {
  border: none;
  outline: 0;
}

#myConfirm {
  top: 25%;
  background: none;
  border: none;
  outline: none;
  animation: fadeIn 0.5s;
}
#noShowWarning {
  top: 25%;
  background: none;
  border: none;
  outline: none;
  animation: fadeIn 0.5s;
}
.dialog-content #text > b {
  font-weight: bold;
}
.dialog-content #footer {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}
#btnCancel {
  background-color: #ff8888;
  border: 1px solid #ff8888;
}
#btnCancel:hover {
  background-color: rgba(255,136,146,0.8);
}


.wrap #date-switcher,
#date-switcher {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.wrap #date-switcher > div,
#date-switcher > div {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  white-space: nowrap;
}

@keyframes fadeIn {
  from {opacity: 0; }
  to {opacity: 1; }
}

/*@media only screen and (max-width: 767px) {*/
  /*#errorPopupCollision {*/
    /*left: auto;*/
    /*right: auto;*/
    /*transform: translate(-15px);*/
  /*}*/
/*}*/

#bulkBookingDialog {
  padding: 0;
  border-radius: 6px;
  border: none;
  min-width: 560px;
  max-width: 600px;
  background: #fff;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  color: #354052;
  font-size: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

#bulkBookingDialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

#bulkBookingDialog .el-dialog__header {
  padding: 24px 24px 0;
  position: relative;
}

#bulkBookingDialog .el-dialog__title {
  font-size: 18px;
  font-weight: 400;
  color: #354052;
  line-height: 24px;
}

#bulkBookingDialog .el-dialog__headerbtn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1A84EE;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
}

#bulkBookingDialog .el-dialog__headerbtn .el-icon-close {
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

#bulkBookingDialog .el-dialog__body {
  padding: 24px;
}

#bulkBookingDialog .bulk-label {
  display: block;
  font-size: 16px;
  color: #7F8FA4;
  margin-bottom: 6px;
}

#bulkBookingDialog .el-input__inner {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #E2E6EC;
  padding: 0 16px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  font-size: 16px;
  color: #354052;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 16px;
}

#bulkBookingDialog .el-input__inner:focus {
  outline: none;
  border-color: #1A84EE;
}

#bulkCustomerList {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #E2E6EC;
  border-radius: 4px;
  margin-bottom: 16px;
}

#bulkCustomerList ::-webkit-scrollbar {
  width: 6px;
}
#bulkCustomerList ::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(26,132,238, 0.3);
}
#bulkCustomerList ::-webkit-scrollbar-track {
  border-radius: 6px;
  background: rgba(26,132,238, 0.1);
}

#bulkCustomerList table {
  width: 100%;
  border-collapse: collapse;
}

#bulkCustomerList th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #E2E6EC;
  font-size: 14px;
  color: #7F8FA4;
  font-weight: 400;
  background: #f2f3f5;
}

#bulkCustomerList td {
  padding: 10px 12px;
  border-bottom: 1px solid #E2E6EC;
  font-size: 14px;
  color: #354052;
}

#bulkCustomerList th:first-child,
#bulkCustomerList td:first-child {
  width: 40px;
  text-align: center;
}

.bulk-customer-item {
  cursor: pointer;
}

.bulk-customer-item:hover td {
  background: #f9f9f9;
}

.bulk-customer-item:has(input[type="checkbox"]:checked) td {
  background: #e8f4fd;
}

#bulkCustomerList input[type="checkbox"] {
  accent-color: #1A84EE;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#bulkBookingDialog .am-dialog-footer {
  border-top: 2px solid #E2E6EC;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#bulkBookingDialog .el-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #E2E6EC;
  background: transparent;
  color: #354052;
  line-height: 1;
  transition: all 0.2s;
}

#bulkBookingDialog .el-button:hover {
  background: rgba(26,132,238, 0.1);
  color: #1A84EE;
  border-color: #1A84EE;
}

#bulkBookingDialog .el-button--primary {
  background: #1A84EE;
  border-color: #1A84EE;
  color: #fff;
}

#bulkBookingDialog .el-button--primary:hover {
  background: rgba(26,132,238, 0.85);
  border-color: #1A84EE;
  color: #fff;
}

#bulkBookingDialog .bulk-result {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: #354052;
}

@media (max-width: 640px) {
  #bulkBookingDialog {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    min-width: unset;
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    overflow-y: auto;
    font-size: 14px;
  }
  #bulkBookingDialog .el-dialog__header {
    padding: 16px 16px 0;
    border-bottom: 1px solid #E2E6EC;
  }
  #bulkBookingDialog .el-dialog__headerbtn {
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
  }
  #bulkBookingDialog .el-dialog__body {
    padding: 16px;
  }
  #bulkBookingDialog .am-dialog-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 16px;
    border-top: 2px solid #E2E6EC;
    flex-wrap: wrap;
    gap: 6px;
  }
  #bulkBookingDialog .el-button {
    padding: 8px 14px;
    font-size: 13px;
  }
  #bulkCustomerList {
    max-height: none;
    overflow: visible;
  }
  .my-event-card {
    width: 100% !important;
  }
}
  #bulkCustomerList th,
  #bulkCustomerList td {
    padding: 8px 6px;
    font-size: 13px;
  }
  #bulkCustomerList th:nth-child(3),
  #bulkCustomerList td:nth-child(3) {
    display: none;
  }
  #bulkCustomerList th:first-child,
  #bulkCustomerList td:first-child {
    width: 30px;
  }

#eventListTable td.combined-cell {
  position: relative;
  padding: 0 0 0 36px;
  min-height: 36px;
}
.cell-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}
.count-badge {
  font-weight: 700;
  font-size: 0.85em;
  text-align: center;
  line-height: 1.6;
}
.cell-names {
  padding: 4px 8px;
}
.waiting-name { color: #666; }

th[data-col-toggle] {
  cursor: pointer;
  user-select: none;
}
th[data-col-toggle] .expand-indicator {
  font-size: 0.7em;
  margin-left: 4px;
  color: #999;
}
th[data-col-toggle] .collapse-indicator {
  display: none;
  font-size: 0.7em;
  margin-left: 4px;
  color: #999;
}

#eventListTable td:nth-child(6).collapsible .cell-names,
#eventListTable td:nth-child(7).collapsible .cell-names {
  display: none;
}
#eventListTable[data-col6-expanded] td:nth-child(6).collapsible .cell-names,
#eventListTable[data-col7-expanded] td:nth-child(7).collapsible .cell-names {
  display: block;
}
#eventListTable[data-col6-expanded] th[data-col-toggle="6"] .expand-indicator,
#eventListTable[data-col7-expanded] th[data-col-toggle="7"] .expand-indicator {
  display: none;
}
#eventListTable[data-col6-expanded] th[data-col-toggle="6"] .collapse-indicator,
#eventListTable[data-col7-expanded] th[data-col-toggle="7"] .collapse-indicator {
  display: inline;
}

.hidden {
  display: none !important;
}

.view-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
}
.view-tab {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}
.view-tab.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  font-weight: 600;
}

#eventTreeView .tree-event {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 6px;
}
#eventTreeView .tree-event.hidden-row {
  display: none;
}
#eventTreeView .tree-event > summary {
  cursor: pointer;
  font-weight: 600;
}
#eventTreeView .tree-participants,
#eventTreeView .tree-promotion-log {
  margin: 6px 0 6px 20px;
}
#eventTreeView .tree-participants > summary,
#eventTreeView .tree-promotion-log > summary {
  cursor: pointer;
}
#eventTreeView ul {
  margin: 4px 0 4px 20px;
  padding: 0;
}

@media (max-width: 768px) {
  .wrap #date-switcher,
  #date-switcher {
    flex-direction: column !important;
    align-items: stretch;
  }
  #date-switcher > div {
    white-space: normal;
  }
  #date-switcher input {
    width: 100%;
    box-sizing: border-box;
  }
  #date-switcher button {
    width: 100%;
  }

  #eventListTable th:nth-child(4),
  #eventListTable td:nth-child(4),
  #eventListTable th:nth-child(5),
  #eventListTable td:nth-child(5),
  #eventListTable th:nth-child(8),
  #eventListTable td:nth-child(8),
  #eventListTable th:nth-child(9),
  #eventListTable td:nth-child(9),
  #eventListTable th:nth-child(10),
  #eventListTable td:nth-child(10) {
    display: none;
  }
  #eventListTable {
    font-size: 13px;
  }
  #eventListTable td {
    padding: 2px 3px;
  }
  #eventListTable td.combined-cell {
    padding: 0 0 0 32px;
    min-height: 30px;
  }
  #eventListTable .cell-left {
    width: 30px;
    font-size: 0.85em;
  }
  #eventListTable .event-id-badge {
    font-size: 0.75em;
  }
}

.my-events {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
}
.my-events-heading {
  margin-top: 40px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  color: #33434C;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 12px;
}
.my-event-card {
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(26,44,55,0.1);
  width: calc(50% - 8px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.my-event-card.card-past {
  background: #e8e8e8;
}
.my-event-card.card-waiting {
  background: #faf6e7;
}
.my-event-card.card-confirmed {
  background: #e6f5e8;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.event-name {
  font-weight: 600;
  font-size: 1em;
  color: #33434C;
}
.status-badge {
  font-size: 12px;
  padding: 0 10px;
  border-radius: 16px;
  font-weight: 500;
  height: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.status-approved { background: #e6f5e8; color: #019719; }
.status-pending  { background: #faf6e7; color: #CCA20C; }
.status-canceled,
.status-rejected { background: #fce8e7; color: #DC180B; }
.card-datetime {
  color: #808A90;
  font-size: 0.9em;
  margin-bottom: 12px;
}
.card-participants {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.participant-group strong {
  display: block;
  font-size: 0.85em;
  color: #33434C;
}
.participant-group span {
  font-size: 0.9em;
  color: #1A2C37;
}
.participant-group .instructor-me {
  color: #0253a4;
  margin-right: 0.4em;
}
.participant-group .participant-name {
  display: block;
}
.participant-group .instructor-name {
  margin-right: 0.4em;
}
.event-id-badge {
  font-weight: 700;
  font-size: 0.85em;
  color: #555;
  font-family: monospace;
}

.manage-participants-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 8px 12px;
  background: #2554a0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  font-size: 0.9em;
  cursor: pointer;
}
.manage-participants-btn.abgeschickt {
  background: #019719;
}
.manage-participants-btn.card-past-btn {
  background: #DC180B;
}
.manage-participants-btn:hover, .details-btn:hover {
  filter: brightness(0.9);
}

#attendanceDialog {
  padding: 0;
  border-radius: 8px;
  border: none;
  min-width: 400px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  color: #33434C;
  font-size: 15px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
#attendanceDialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.attendance-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E6EC;
  background: #f8f9fa;
}
.attendance-dialog-title {
  font-size: 1.1em;
  font-weight: 600;
}
.attendance-dialog-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #808A90;
  padding: 0 4px;
  line-height: 1;
}
.attendance-dialog-body {
  padding: 20px;
}
.attendance-table {
  width: 100%;
  border-collapse: collapse;
}
.attendance-table th,
.attendance-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #E2E6EC;
}
.attendance-table th {
  font-weight: 600;
  font-size: 0.85em;
  color: #808A90;
  text-transform: uppercase;
}
.custom-select {
  position: relative;
  display: inline-block;
}
.custom-select-trigger {
  padding: 4px 20px 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.custom-select-trigger::after {
  content: '\25BC';
  font-size: 0.65em;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #808A90;
}
.custom-select-options {
  display: none;
}
.custom-select-option {
  padding: 6px 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9em;
}
.custom-select-option:hover {
  filter: brightness(0.9);
}
.custom-select-portal {
  position: fixed;
  z-index: 9999;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.custom-select-portal .custom-select-option:hover {
  filter: brightness(0.9);
}
.add-participant-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.customer-search-wrap {
  position: relative;
}
#customerSearch {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: inherit;
  box-sizing: border-box;
}
.customer-search-results {
  display: none;
  position: static;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  max-height: 300px;
  overflow-y: auto;
}
.customer-search-result {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.9em;
  border-bottom: 1px solid #E2E6EC;
}
.customer-search-result:last-child {
  border-bottom: none;
}
.customer-search-result:hover {
  background: #f0f4ff;
}
.customer-search-result.disabled {
  color: #808A90;
  cursor: default;
}
.customer-search-result.disabled:hover {
  background: #fff;
}
.selected-customer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #e6f5e8;
  border-radius: 4px;
  font-size: 0.9em;
}
#removeSelectedCustomer {
  border: none;
  background: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #808A90;
  padding: 0 2px;
  line-height: 1;
}
.attendance-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #33434C;
  font-size: 0.9em;
  font-family: inherit;
  cursor: pointer;
}
.attendance-btn-primary {
  background: #2554a0;
  color: #fff;
  border-color: #2554a0;
}
.attendance-btn:hover {
  filter: brightness(0.9);
}
#toggleAddParticipant {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}
.confirm-note {
  font-size: 0.85em;
  color: #808A90;
  margin: 12px 0;
}
#confirmAttendanceList {
  display: block;
  width: 100%;
  background: #DC180B;
  border-color: #DC180B;
}

#attendanceDialog hr {
  border: none;
  border-top: 1px solid #E2E6EC;
  margin: 16px 0;
}
#attendanceDialog h3 {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  #attendanceDialog {
    min-width: unset;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    height: 100dvh;
  }
  .attendance-dialog-body {
    max-height: none;
  }
  #customerSearch {
    min-width: unset;
  }
}

.card-description {
  font-size: 0.9em;
  color: #808A90;
  margin-bottom: 8px;
  line-height: 1.4;
}

.details-btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: #2554a0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  margin-top: auto;
}

.participant-dialog {
  padding: 0;
  border-radius: 8px;
  border: none;
  min-width: 400px;
  max-width: 600px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  color: #33434C;
  font-size: 15px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.dialog-description {
  padding: 16px;
  line-height: 1.6;
  white-space: pre-line;
}

.resign-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #DC180B;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  margin: 16px;
}

.resign-btn:hover {
  background: #a31208;
}

.my-parts-heading {
  margin-top: 40px;
  font-size: 30px;
  font-weight: 600;
  color: #33434C;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
}



.waiting-badge {
  display: inline-block;
  background: #faf6e7;
  color: #CCA20C;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin: 4px 0;
  align-self: flex-start;
}

.card-search {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  box-sizing: border-box;
}

.date-range-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
}

.date-range-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: #33434C;
}

.date-range-form input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  box-sizing: border-box;
}

.date-range-form button {
  padding: 6px 16px;
  background: #265CF2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  cursor: pointer;
}

.date-range-form button:hover {
  background: rgba(38,92,242,0.8);
}

.search-no-results {
  text-align: center;
  color: #808A90;
  font-family: 'Amelia Roboto', 'Roboto', sans-serif;
  padding: 24px;
}

table, th, td {
  border: 1px dotted black;
  border-collapse: collapse;
  padding: 3px;
  background: #fafafc;
}
.yellow {
  background: #fdfcb4;
}
.red {
  background: #e6abab;
}
.orange {
  background: #ffe0b2;
}
.green {
  background: #a4ec9e;
}
#from, #to {
  padding: 5px;
  margin: 10px;
}
#submit {
  padding: 5px;
  font-size: larger;
}
.hidden-row {
  display: none;
}
