/*global width*/
body:not(.fullscreen) #header .inner,
body:not(.fullscreen) #container {
  max-width: 100% !important;
}

.tl_submit_panel + .tl_filter {
  width: 90%;
}

#tmenu ul.menu_level_1 .info {
  display: none;
}

.widget {
  margin-left: 15px;
  margin-right: 15px;
  position: inherit !important;
}
a.dlh_googlemaps, a.calendar, a.comments, /*a.newsletter, a.news, */a.form {
  display: none !important;
}

/*Magazin page*/
#magazin legend {
  font-size: 13px;
}

#magazin .formitem1 select,
.formitem1 input {
  font-size: 13px;
  padding: 3px;
  margin: 5px;
}

.formitem11 h3 {
  font-size: 0.75rem;
}

.formitem13 select,
.formitem11 select {
  font-size: 14px !important;
}

.formitem13 select option,
.formitem11 select option {
  padding: 4px 5px;
  border: 1px dotted green;
}

#magazin h3 {
  font-size: 0.75rem;
  padding: 4px 0;
}

/*General*/

.w50,
#pal_order_user {
  margin-left: 15px;
}

fieldset,
form,
input,
optgroup,
select,
textarea {
  font-size: 0.75rem;
}

fieldset {
  display: block;
  margin-inline-start: 2px;
  margin-inline-end: 2px;
  border: groove 2px ThreeDFace;
  padding-block-start: 0.35em;
  padding-inline-end: 0.75em;
  padding-block-end: 0.625em;
  padding-inline-start: 0.75em;
  min-inline-size: min-content;
}

legend {
  padding-inline-start: 2px;
  padding-inline-end: 2px;
}

.cf .tl_filter.tl_subpanel {
  float: none;
}

#tl_member_data .widget {
  position: inherit !important;
}

#ctrl_communication_id {
  width: auto;
}

.customer_data {
  margin-left: 10px;
}
table.customer_data tr td {
  padding: 3px;
}

/*Spinner*/
.loadersmall {
  border: 5px solid #f3f3f3;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  border-top: 5px solid #555;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

form#datechooseform .choosedate {
  text-align: center;
}

.tl_right_nowrap {
  vertical-align: middle;
}

/*Ausbildung listing*/
.be_booking_course_label .cr_icons {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  text-align: center;
  vertical-align: middle;
}

.be_booking_course_label .cr_icons i.ph {
  font-size: 1.5em;
}

a.header_css_export {
  padding: 2px 0 3px 20px;
  margin-left: 10px;
  background: url("../images/css.gif") no-repeat left center;
}
a.header_css_export {
  padding: 2px 0 3px 20px;
  margin-left: 10px;
  background: url("../images/css.gif") no-repeat left center;
}
a.header_css_export {
  padding: 2px 0 3px 20px;
  margin-left: 10px;
  background: url("../images/css.gif") no-repeat left center;
}
a.header_css_export {
  padding: 2px 0 3px 20px;
  margin-left: 10px;
  background: url("../images/css.gif") no-repeat left center;
}
a.header_edit_all {
  background: url("../images/all.gif") no-repeat left center;
}

.tl_textarea {
  margin-top: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  background: #fff;
  resize: vertical;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.tl_textarea:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

form#tl_booking_course_orders #saveNduplicate,
form#tl_alizenz_orders #saveNduplicate {
  display: none;
}

.be_booking_course_label table td.partstatus {
  background: none;
  text-align: left;
  padding: 0 8px;
  border: none;
  vertical-align: middle;
  width: 120px;
}
.be_booking_course_label table td.partstatus table {
  background: none;
  box-shadow: none;
}
.be_booking_course_label table td.partstatus tr {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.be_booking_course_label table td.partstatus .col_status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 24px;
  line-height: 24px;
  padding: 0;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.85em;
  color: #fff;
  text-align: center;
  background: #aaa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: background 0.2s;
  box-sizing: border-box;
}

.be_booking_course_label table td.partstatus .col_status.empty {
  background: transparent;
  box-shadow: none;
  color: transparent;
  border: none;
}

.be_booking_course_label table td.col_status.total {
  background: none !important;
  color: inherit;
  font-weight: bold;
  text-align: center;
  border-radius: 12px;
  padding: 0;
  font-size: 0.95em;
  vertical-align: middle;
  border: none;
  height: 24px;
  line-height: 24px;
  box-shadow: none;
}
.be_booking_course_label table td.col_status.total .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.95em;
  color: #222;
  background: #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* Left part: course ID and date */
.be_booking_course_label td.col_id {
  background: #f6fff6;
  border: 2px solid #4caf50;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-weight: bold;
  color: #178a1c;
  padding: 10px 16px 10px 14px;
  font-size: 1.1em;
  vertical-align: middle;
}
.be_booking_course_label td.col_days {
  background: #f6fff6;
  border: 2px solid #4caf50;
  border-left: none;
  border-radius: 0 10px 10px 0;
  color: #178a1c;
  font-weight: 500;
  padding: 10px 14px 10px 8px;
  vertical-align: middle;
}

.be_booking_course_label td.partstatus tr {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.be_booking_course_label td.partstatus .col_status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 1em;
  color: #fff;
  text-align: center;
  background: #aaa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: background 0.2s;
}

.be_booking_course_label td.col_id.past,
.be_booking_course_label td.col_days.past {
  background: #fff5f5;
  color: #a10000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: inset 0 1px 6px #f3bcbc;
}

.be_booking_course_label td.col_id.future,
.be_booking_course_label td.col_days.future {
  background: #f5fff5;
  color: #008a00;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: inset 0 1px 6px #b6eab6;
}

.be_booking_course_label td.col_id.actual,
.be_booking_course_label td.col_days.actual {
  background: #fffff5;
  color: #b0ae00;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: inset 0 1px 6px #eaeab6;
}

.be_booking_course_label td.col_id.inactive,
.be_booking_course_label td.col_days.inactive {
  background: #f7f7f7;
  color: #9c9c9c;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-style: italic;
  box-shadow: inset 0 1px 6px #e0e0e0;
}

.be_booking_course_label td.col_id_block {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  width: 200px;
  padding: 8px 8px;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  gap: 10px;
}
.be_booking_course_label td.col_id_block .course_id {
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 0;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  padding-left: 5px;
}
.be_booking_course_label td.col_id_block .course_date {
  font-size: 0.85em;
  text-align: right;
}

.be_booking_course_label td.col_id_block.past {
  background: #fff5f5;
  color: #a10000;
  box-shadow: inset 0 1px 6px #f3bcbc;
}
.be_booking_course_label td.col_id_block.future {
  background: #f5fff5;
  color: #008a00;
  box-shadow: inset 0 1px 6px #b6eab6;
}
.be_booking_course_label td.col_id_block.actual {
  background: #fffff5;
  color: #b0ae00;
  box-shadow: inset 0 1px 6px #eaeab6;
}
.be_booking_course_label td.col_id_block.inactive {
  background: #f7f7f7;
  color: #9c9c9c;
  font-style: italic;
  box-shadow: inset 0 1px 6px #e0e0e0;
}

.review-chip {
  position: absolute;
  top: -14px;
  right: -14px;
  border-radius: 8px;
  padding: 3px 4px;
  font-size: 0.7em;
  font-weight: bold;
  color: #333;
}

.review-chip.green {
  background-color: #a5d6a7;
}

.review-chip.yellow {
  background-color: #ffecb3;
}

.review-chip.red {
  background-color: #ef9a9a;
}

.review-chip.lightgrey {
  background-color: #e0e0e0;
}

.cr_icons a {
  position: relative;
}

.tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.cr_icons a:hover .tooltip {
  opacity: 1;
}

.be_booking_course_label table td.col_id {
  width: 120px;
  color: #770000;
  font-weight: bold;
}

.be_booking_course_label table td.col_date {
  width: 50px;
}

.be_booking_course_label table td.col_days {
  width: 70px;
  text-align: center;
}

.be_booking_course_label table td.col_type {
  width: 250px;
  padding-left: 10px;
}

.be_booking_course_label table td.partstatus {
  width: 290px;
  text-align: right;
  padding: 0 !important;
  margin: 0 !important;
}

.be_booking_course_label table td.actual {
  border: 1px solid #b0ae00;
  color: #b0ae00;
}

.be_booking_course_label table td.future {
  border: 1px solid #006600;
  color: #006600;
}

.be_booking_course_label table td.past {
  border: 1px solid #770000;
  color: #770000;
}

.be_booking_course_label table td.inactive {
  border: 1px dashed #9c9c9c;
  color: #9c9c9c;
}

.be_booking_course_label table td.col_status {
  padding: 0;
  margin: 0;
  width: 27px;
  height: 27px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.be_booking_course_label table td.total {
  background-color: #ccc !important;
  color: #333;
}

.be_booking_course_label table td.booked {
  background-color: #006600 !important;
}

.be_booking_course_label table td.waiting {
  background-color: #aa7700 !important;
}

.be_booking_course_label table td.nachpruefung {
  background-color: #357edc !important;
}

.be_booking_course_label table td.storno {
  background-color: #770000 !important;
}

.be_booking_course_label table td.cr_icons .fa {
  color: #000000;
  font-size: 1.8em !important;
}
.redalert {
  background-color: red !important;
}

/* Toggle Switch Styling for Backend Checkboxes */
.toggleSwitch .tl_checkbox_single_container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: auto !important;
  margin: 0 !important;
}

.toggleSwitch .tl_checkbox_single_container input[type="checkbox"] {
  position: relative;
  width: 52px;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: #ccc;
  border-radius: 14px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0;
  flex-shrink: 0;
}

.toggleSwitch .tl_checkbox_single_container input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggleSwitch .tl_checkbox_single_container input[type="checkbox"]:checked {
  background: #4caf50;
}

.toggleSwitch
  .tl_checkbox_single_container
  input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}

.toggleSwitch .tl_checkbox_single_container input[type="checkbox"]:hover {
  opacity: 0.9;
}

.toggleSwitch .tl_checkbox_single_container input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.toggleSwitch .tl_checkbox_single_container label {
  order: -1;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: #333;
}

/* Hide help icon for checkboxes with toggle styling */
.toggleSwitch .tl_checkbox_single_container + .tl_help.tl_tip {
  display: none;
}

/* ============================================================
   BE Inline Controls
   Horizontal row of checkboxes and/or inputs (e.g. payment
   status widgets). Replace bare checkbox_container divs.
   ============================================================ */
.be-inline-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 6px 0 10px;
}

.be-inline-controls span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.be-inline-controls label {
  margin: 0;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ============================================================
   BE Amount Input
   Fixed-width input for monetary/numeric values.
   ============================================================ */
.be-amount-input {
  width: 180px !important;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  background: #fff;
  transition: border-color 0.15s ease;
}

.be-amount-input:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   BE Summary Table
   Calculation/revenue breakdown tables in modals and widgets.

   Structure:
     <table class="be-summary-table">
       <tr class="be-summary-table__header"> ... </tr>
       <tr> ... </tr>
       <tr class="be-summary-table__total"> ... </tr>
     </table>
   ============================================================ */
.be-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #f4f6f8;
}

.be-summary-table td {
  padding: 9px 12px;
  border: 1px solid #e2e6ea;
  text-align: right;
}

.be-summary-table td:first-child {
  text-align: left;
}

.be-summary-table tr.be-summary-table__header td {
  background: #e8eaed;
  font-weight: 600;
}

.be-summary-table tr.be-summary-table__total td {
  background: #4a4a4a;
  color: #fff;
  font-weight: bold;
  border-color: #3a3a3a;
}

/* ============================================================
   BE Text Utilities
   ============================================================ */
.be-text-danger {
  color: #c0392b;
}

/* ============================================================
   BE Panel
   Modern fieldset replacement. Use on <fieldset> or <div>.
   ============================================================ */
.be-panel {
  border: 1px solid #d5d7db;
  border-radius: 6px;
  padding: 16px 20px;
    margin: 10px 10px;
  background: transparent;
}

.be-panel legend {
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
  padding: 0 8px;
}

/* ============================================================
   BE Sticky Submit (popup only)
   Keeps the submit bar pinned to the bottom inside popups.
   Apply .be-popup on the <form> or outer wrapper.
   ============================================================ */
.be-popup .tl_tbox {
  padding-top: 0;
  margin-top: 0;
  border-bottom: none;
}

.be-popup .tl_submit_container {
  position: sticky;
  bottom: 0;
  background: #f1f1f2;
  border-top: 1px solid #d5d7db;
  padding: 10px 15px;
  z-index: 10;
  text-align: right;
}

/* ============================================================
   BE Section
   Vertical spacing between form sections/fieldsets.
   ============================================================ */
.be-section {
  margin-top: 20px;
  margin-bottom: 20px;
}
