/* d'Greisslerei Dashboard — small additions on top of the Critso template. */

.box-logo img#logo_header {
  max-width: 100%;
  height: auto;
}

/* Nav-Leiste etwas breiter */
.section-menu-left {
  width: 300px;
  min-width: 300px;
}

.section-menu-left > .box-logo {
  width: 300px;
}

.header-dashboard {
  width: calc(100% - 300px);
}

.layout-wrap .section-content-right .main-content {
  padding-left: 300px;
}

/* Kleine Chevron-Icons bei den Untermenüpunkten */
.section-menu-left .sub-menu-item a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-menu-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sub-menu-chevron svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Custom inline SVG nav icons (Critso styles <i> icon-font icons by default) */
.menu-item .icon svg {
  width: 38px;
  height: 38px;
  display: block;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.menu-item a:hover .icon svg {
  color: var(--White);
}

/* Hauptbereiche (Online-Bestellung, Gerichte im Glas, Mittagsmenü) grafisch hervorheben */
.section-menu-left .menu-item-button {
  border-radius: 14px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.section-menu-left .menu-item-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section-menu-left .menu-item .menu-item-button.active {
  background: var(--White);
}

.section-menu-left .menu-item .menu-item-button.active .icon svg {
  color: var(--Primary);
}

.section-menu-left .menu-item .menu-item-button.active .text {
  color: var(--Primary);
}

/* Single-column sign-in page (no promo image side) */
.sign-in-box.single .left {
  width: 100%;
}

.sign-in-box.single .left .content {
  max-width: 620px;
}

.sign-in-box .left .content .heading img.login-logo {
  max-width: 320px;
  height: auto;
}

.sign-in-box .left .content .heading {
  padding-bottom: 40px;
}

.sign-in-box .left .sign-in-inner {
  padding: 56px 48px;
  border-radius: 16px;
}

.sign-in-box .left .sign-in-inner .f14-regular {
  font-size: 16px;
}

.sign-in-box .left .sign-in-inner input[type=text],
.sign-in-box .left .sign-in-inner input[type=password] {
  padding: 18px 16px;
  font-size: 16px;
}

.sign-in-box .left .sign-in-inner button.tf-button {
  padding: 18px 22px;
  font-size: 16px;
}

.login-error {
  background: #fdecea;
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-success {
  background: #e6f4ea;
  color: #1e7b34;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.warning-box {
  background: #fff3cd;
  color: #8a6416;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.warning-box ul,
.login-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.ablauf-hinweis {
  font-size: 1.15rem;
}

.ablauf-hinweis__headline {
  display: block;
  font-size: 1.5rem;
  padding-bottom: 10px;
}

.ablauf-hinweis li {
  margin-bottom: 8px;
}

.ablauf-hinweis li:last-child {
  margin-bottom: 0;
}

.ablauf-hinweis a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* --- Größere Schrift durchgehend --- */
h1, .h1 { font-size: 50px; }
h2, .h2 { font-size: 40px; }
h3, .h3 { font-size: 32px; }
h4, .h4 { font-size: 28px; }
h5, .h5 { font-size: 24px; }
h6, .h6 { font-size: 22px; }

.label-01 { font-size: 19px; }
.label-02 { font-size: 17px; }
.f16-regular, .f16-light { font-size: 18px; }
.f14-regular, .f14-bold, .f14-light { font-size: 16px; }
.f12-regular, .f12-medium, .f12-bold { font-size: 14px; }

/* Seitentitel oben im Content deutlich größer hervorheben */
.header-dashboard .header-left h6 {
  font-size: 28px;
}

/* Sidebar: größere Schrift für Bereichs- und Untermenü-Texte */
.section-menu-left .menu-item .text {
  font-size: 17px;
}

.section-menu-left .sub-menu-item a .text {
  font-size: 16px;
  padding-left: 4px;
}

/* Alle Menüpunkte (Haupt- und Unterpunkte) in Weiß */
.section-menu-left .menu-item .text,
.section-menu-left .menu-item .sub-menu a .text,
.section-menu-left .sub-menu-item a .text {
  color: var(--White) !important;
}

.section-menu-left .menu-item .menu-item-button.active .text {
  color: var(--Primary) !important;
}

.section-menu-left .sub-menu-item {
  padding-left: 84px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Kein Active-Indikator-Balken rechts an einem Bereich */
.section-menu-left .menu-item-button.active::before {
  display: none;
}

/* Deutliche Trennung zwischen den 3 Bereichen */
.section-menu-left .menu-item,
.section-menu-left .menu-item:not(:last-child) {
  margin-bottom: 48px !important;
}

.section-menu-left .menu-item > a {
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 14px;
}

.section-menu-left .sub-menu {
  padding-top: 6px;
}

/* Wochen-Eingabeformular (Mittagsmenü) */
.week-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.week-form__row {
  display: grid;
  grid-template-columns: 150px 2fr 200px 100px 1.6fr 160px;
  gap: 12px;
}

.week-form__row input,
.week-form__row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--LightGray);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--Black);
}

.week-form__row input:focus,
.week-form__row select:focus {
  outline: none;
  border-color: var(--Primary);
}

@media (max-width: 991px) {
  .week-form__row {
    grid-template-columns: 1fr;
  }
}

/* Gericht-Autocomplete (Wochenformular) */
.gericht-autocomplete {
  position: relative;
  width: 100%;
}

.gericht-autocomplete__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 15;
  background: var(--White);
  border: 1px solid var(--LightGray);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.gericht-autocomplete__list.is-open {
  display: block;
}

.gericht-autocomplete__item {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gericht-autocomplete__item:hover {
  background: var(--Gainsboro);
}

.gericht-autocomplete__meta {
  font-size: 12px;
  color: var(--GrayDark);
}

/* Filter-Leiste (Mittagsmenü) */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-bar__field {
  display: flex;
  flex-direction: column;
}

.filter-bar__field--grow {
  flex: 1;
  min-width: 220px;
}

.filter-bar__field select,
.filter-bar__field input {
  padding: 10px 12px;
  border: 1px solid var(--LightGray);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--Black);
  min-width: 220px;
}

.filter-bar__actions {
  display: flex;
  gap: 8px;
}

/* Tagesgerichte-Liste (Tabelle im Transaction-Stil) */
.tg-table {
  width: 100%;
}

.tg-table__head {
  display: flex;
  align-items: center;
  background: var(--Primary);
  border-radius: 8px;
  padding: 5px 4px;
  margin-bottom: 8px;
}

.tg-table__head .tg-table__col {
  color: var(--White);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tg-table__row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--LightGray);
}

.tg-table__row:last-child {
  border-bottom: none;
}

.tg-table__row:hover {
  background: var(--Gainsboro);
}

.tg-table__col {
  padding: 0 12px;
  font-size: 15px;
}

.tg-table__col--tag { width: 90px; flex-shrink: 0; font-weight: 700; }
.tg-table__col--gericht { flex: 2; min-width: 0; }
.tg-table__col--kategorie { width: 190px; flex-shrink: 0; }
.tg-table__col--preis { width: 100px; flex-shrink: 0; }
.tg-table__col--notiz { flex: 0.8; min-width: 0; color: var(--GrayDark); }
.tg-table__col--whatsapp { width: 90px; flex-shrink: 0; display: flex; gap: 6px; justify-content: center; }
.tg-table__col--aushang { width: 140px; flex-shrink: 0; display: flex; gap: 6px; justify-content: center; }
.tg-table__col--aktionen { width: 70px; flex-shrink: 0; display: flex; gap: 6px; justify-content: flex-end; margin-left: auto; }
.tg-table__col--info-span { flex: 1; min-width: 0; }

.category-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--Khaki);
  color: var(--Black);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.day-info-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.day-info-badge--feiertag {
  background: #fdecea;
  color: #b3261e;
}

.day-info-badge--geschlossen {
  background: var(--Gainsboro);
  color: var(--GrayDark);
}

.tg-action-form {
  display: inline-flex;
}

.tg-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: none;
  background-color: transparent;
  color: var(--GrayDark);
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

.tg-action-btn svg {
  width: 18px;
  height: 18px;
  color: inherit;
  display: block;
}

.tg-action-btn:hover {
  background: var(--Gainsboro);
  color: var(--Primary);
}

.tg-action-btn--danger:hover {
  color: #e6564d;
}

.tg-action-btn--success:hover {
  color: #1e7b34;
}

@media (max-width: 991px) {
  .tg-table__head { display: none; }
  .tg-table__row { flex-wrap: wrap; gap: 8px; }
  .tg-table__col { width: 100% !important; flex: 1 1 100% !important; }
  .tg-table__col--aktionen { justify-content: flex-start; margin-left: 0; }
  .tg-table__col--whatsapp, .tg-table__col--aushang { justify-content: flex-start; }
}

/* Bearbeiten-Formular */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--LightGray);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--Black);
  resize: vertical;
}

/* Critso setzt global textarea { overflow: hidden } (styles.css) - bei viel
   Text (z. B. Mittagsmenü-Wochentext) lässt sich dann nicht scrollen. */
.edit-form textarea {
  overflow-y: auto;
}

.edit-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.edit-form__actions--spread {
  justify-content: space-between;
}

/* Gerichte im Glas — Liste */
.tg-table__col--bezeichnung { flex: 1.3; min-width: 0; font-weight: 700; }
.tg-table__col--zubereitung { flex: 1; min-width: 0; color: var(--GrayDark); }
.tg-table__col--preis { width: 130px; flex-shrink: 0; }
.tg-table__col--charge { width: 130px; flex-shrink: 0; }
.tg-table__col--haltbarkeit { width: 140px; flex-shrink: 0; }
.tg-table__col--status { width: 110px; flex-shrink: 0; }
.tg-table__col--etikette { width: 100px; flex-shrink: 0; display: flex; justify-content: center; }

/* Online-Bestellung — Produkte */
.tg-table__col--hinweis { flex: 1.2; min-width: 0; color: var(--GrayDark); }
.tg-table__col--einheit { width: 110px; flex-shrink: 0; }
.tg-table__col--lager { width: 150px; flex-shrink: 0; }
.tg-table__col--handle { width: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.drag-handle {
  display: flex;
  color: var(--GrayDark);
  cursor: grab;
}

.drag-handle svg {
  width: 18px;
  height: 18px;
}

.tg-table__row.is-dragging {
  opacity: 0.4;
}

.produkt-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: var(--Gainsboro);
}

.produkt-thumb--platzhalter {
  border: 1px dashed var(--LightGray);
}

.tg-status-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.tg-status-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tg-status-toggle--aktiv {
  background: #e6f4ea;
  color: #1e7b34;
}

.tg-status-toggle--aktiv:hover {
  background: #d2ead9;
}

.tg-status-toggle--inaktiv {
  background: #fdecea;
  color: #b3261e;
}

.tg-status-toggle--inaktiv:hover {
  background: #f8d7d3;
}

/* Online-Bestellung — Bestellungen */
.tg-table__col--bostatus { width: 100px; flex-shrink: 0; }
.tg-table__col--bodatum { width: 100px; flex-shrink: 0; }
.tg-table__col--bokategorie { width: 150px; flex-shrink: 0; }
.tg-table__col--boname { flex: 1.2; min-width: 0; font-weight: 700; }
.tg-table__col--boanzahl { width: 140px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.tg-table__col--bonotiz { flex: 1.5; min-width: 0; color: var(--GrayDark); }

.tg-table__col--boprodukt { flex: 1; min-width: 0; }

.bomenge-inline {
  font-weight: 700;
  color: var(--Primary);
}

.export-tabs {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.export-box-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.partner-status-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.partner-status-badge--ok {
  background: #e6f4ea;
  color: #1e7b34;
}

.partner-status-badge--fehler {
  background: #fdecea;
  color: #b3261e;
}

.email-attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--Gainsboro);
  border-radius: 8px;
  color: var(--GrayDark);
  font-size: 14px;
}

.email-attachment-chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--Primary);
}

.export-tabs .tf-button {
  font-size: 15px;
}

/* Online-Bestellung — Export (Sammelübersicht offene Bestellungen) */
.tg-table__col--exprodukt { flex: 1; min-width: 0; }
.tg-table__col--exmenge { width: 140px; flex-shrink: 0; }

/* Online-Bestellung — Abholtermine */
.tg-table__col--abotermin { flex: 1; min-width: 0; }

.abholtermin-modus-felder {
  display: flex;
  flex-direction: column;
}

.abo-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.abo-info-item {
  min-width: 200px;
}

.abo-info-item--rechts {
  margin-left: auto;
  text-align: right;
}

.abo-info-item__label {
  font-size: 13px;
  color: var(--GrayDark);
  margin-bottom: 4px;
}

.abo-info-item__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--Black);
}

.abo-info-item__value--highlight {
  color: var(--Primary);
}

.abo-termine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--LightGray);
}

.abo-termine-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--Khaki);
  color: var(--Black);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.abo-termine-chip--vergangen {
  background: var(--LightGray);
  color: var(--GrayDark);
  font-weight: 400;
}

.tg-table__row--export {
  align-items: flex-start;
}

.export-details {
  margin-top: 4px;
  font-size: 12px;
  color: var(--GrayDark);
}

.export-notiz {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
}

/* Interne Bestellung */
.interne-bestellung-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.interne-bestellung-meta input:disabled {
  background: var(--Gainsboro);
  color: var(--GrayDark);
}

.produkt-auswahl {
  margin: 12px 0;
}

.tg-table__col--menge {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.produkt-auswahl__einheit {
  font-size: 15px;
  font-weight: 700;
  color: var(--Black);
}

.edit-form .produkt-auswahl__menge {
  width: 64px;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid var(--LightGray);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  text-align: center;
  margin-bottom: 0;
}

.edit-form__mengen-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.edit-form__mengen-row .f14-regular {
  flex: 1;
  min-width: 0;
}

.edit-form__mengen-row .f14-regular:last-child {
  flex: 0 0 auto;
}

.edit-form .edit-form__mengen-input {
  width: 80px;
  flex-shrink: 0;
  padding: 8px 10px;
  margin-bottom: 0;
  text-align: center;
}

.status-badge--offen {
  background: #fdecea;
  color: #b3261e;
}

.status-badge--vorbestellt {
  background: #fff3cd;
  color: #8a6d1f;
}

.status-badge--bestellt {
  background: var(--Khaki);
  color: var(--Black);
}

.menueplan-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.week-title__status {
  margin-left: 10px;
  vertical-align: middle;
}

.tf-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.produkt-thumb--gross {
  width: 140px;
  height: 140px;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--aktiv {
  background: #e6f4ea;
  color: #1e7b34;
}

.status-badge--inaktiv {
  background: var(--Gainsboro);
  color: var(--GrayDark);
}

/* Chargen-Gruppen (aufklappbar) */
.tg-group-toggle {
  width: 100%;
  border: none;
  background: none;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  text-align: left;
  border-bottom: 1px solid var(--LightGray);
}

.tg-group-toggle:hover {
  background: var(--Gainsboro);
}

.tg-table__col--charge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-group-toggle__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--GrayDark);
  white-space: nowrap;
}

.tg-group-toggle__icon {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  color: var(--GrayDark);
}

.tg-group-toggle__icon svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.tg-group.is-open .tg-group-toggle__icon {
  transform: rotate(180deg);
}

.tg-group-children {
  display: none;
  background: var(--Gainsboro);
}

.tg-group.is-open .tg-group-children {
  display: block;
}

.tg-table__row--child {
  padding-left: 34px;
  border-bottom: 1px solid var(--LightGray);
}

.tg-table__row--child:last-child {
  border-bottom: none;
}

.tf-button.gap8 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tf-button.gap8 svg {
  width: 16px;
  height: 16px;
}

/* Mittagsmenü — Wochentitel mit PDF-Button */
.week-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header rechts oben: Benutzer-Icon vor dem Namen */
.header-user.wg-user {
  gap: 10px;
}

.user-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--Khaki);
  color: var(--Primary);
  flex-shrink: 0;
}

.user-icon-badge svg {
  width: 20px;
  height: 20px;
}

/* Header-Dropdown: Icon vor "Abmelden" */
.popup-wrap.user .dropdown-menu.show .user-item {
  gap: 10px;
}

.popup-wrap.user .dropdown-menu.show .user-item .icon {
  display: flex;
  align-items: center;
}

.popup-wrap.user .dropdown-menu.show .user-item .icon svg {
  width: 20px;
  height: 20px;
  color: var(--GrayDark);
  transition: color 0.2s ease;
}

.popup-wrap.user .dropdown-menu.show .user-item:hover .icon svg {
  color: var(--Secondary);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--Black);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Etikett erstellen — fullscreen (kein Sidebar/Header-Layout) */
.etikett-fullscreen {
  min-height: 100vh;
  background: var(--Gainsboro);
}

.etikett-fullscreen__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: var(--White);
  border-bottom: 1px solid var(--LightGray);
}

.etikett-fullscreen__bar h6 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
}

.etikett-fullscreen__bar h6 svg {
  width: 24px;
  height: 24px;
  color: var(--Primary);
  flex-shrink: 0;
}

.etikett-fullscreen__body {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
}

/* "Zurück"-Buttons app-weit einheitlich hellgrau hinterlegen */
.tf-button.style-default {
  background-color: #e8e8e8 !important;
  padding: 7px !important;
  border-radius: 4px;
  color: var(--Black) !important;
}

.tf-button.style-default:hover {
  background-color: #d4d4d4 !important;
}
