:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f6f7f9;
  --bg: #f6f7f9;
  --card: rgba(255, 255, 255, .94);
  --text: #172033;
  --muted: #5b667a;
  --line: #e2e6ee;
  --primary: #111827;
  --primary-hover: #1f2937;
  --secondary: #eef2ff;
  --secondary-text: #263f86;
  --success: #eaf8ef;
  --success-text: #196336;
  --warning: #fff7ed;
  --warning-text: #8a4b12;
  --danger: #fee2e2;
  --danger-text: #991b1b;
  --soft: #f8fafc;
  --shadow: 0 18px 60px rgba(20, 30, 50, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 170, 255, .16), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(140, 220, 180, .14), transparent 26rem),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--text);
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

p {
  font-size: 16px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
  margin: 10px 0 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(620px, 100%);
  margin: 9vh auto 0;
}

.card-header {
  margin-bottom: 22px;
}

.card-header.horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 14px;
  padding: 14px 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus {
  border-color: #9db6ff;
  box-shadow: 0 0 0 4px rgba(95, 133, 255, .14);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-text);
}

.btn-ghost {
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--line);
}

.message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--secondary-text);
  font-weight: 700;
}

.message.error {
  background: var(--danger);
  color: var(--danger-text);
}

.message.success {
  background: var(--success);
  color: var(--success-text);
}

.notice {
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: grid;
  gap: 6px;
  border: 1px solid transparent;
}

.notice.warning {
  background: var(--warning);
  color: var(--warning-text);
  border-color: #fed7aa;
}

.context-panel {
  margin-bottom: 18px;
}

.context-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.context-field {
  margin: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.hero-card {
  min-height: 154px;
}

.module-groups {
  display: grid;
  gap: 18px;
}

.module-group {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 20px;
  padding: 18px;
}

.module-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.module-group-header p {
  margin: 6px 0 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  gap: 10px;
  text-align: left;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  min-height: 132px;
  box-shadow: none;
}

.module-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(20, 30, 50, .08);
}

.module-card strong {
  font-size: 18px;
}

.module-card span {
  color: var(--muted);
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary);
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 800;
}

.features-card {
  margin-top: 18px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--success);
  color: var(--success-text);
  font-weight: 800;
  font-size: 14px;
}

.feature-pill.empty {
  background: #f3f4f6;
  color: #6b7280;
}

.placeholder-card {
  margin-top: 18px;
}

.placeholder-meta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.meta-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
}

.placeholder-actions {
  margin-top: 24px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  border: 1px dashed #cbd5e1;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .dashboard-hero,
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .card-header.horizontal {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .dashboard-hero,
  .module-grid,
  .context-row {
    grid-template-columns: 1fr;
  }

  .login-card {
    margin-top: 24px;
  }
}


.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, auto) minmax(160px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.btn-filter {
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--line);
}

.filter-field {
  margin: 0;
}

.search-field {
  min-width: 220px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.data-table th {
  color: #475569;
  background: #f8fafc;
  font-weight: 900;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-count {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}


.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 180px;
}

.btn-table-action {
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #263f86;
  border: 1px solid #dbe4ff;
  font-size: 13px;
}

.btn-table-action:hover {
  background: #e0e7ff;
}

.muted-small {
  color: var(--muted);
  font-size: 13px;
}


.selectable-row {
  cursor: pointer;
}

.selectable-row:hover td {
  background: #f8fafc;
}

.selectable-row.is-selected td {
  background: #eef6ff;
}

.selection-card {
  border: 1px solid #dbe4ff;
  background: #f8fbff;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0 16px;
}

.selection-title {
  font-weight: 900;
  color: #172033;
  margin-bottom: 12px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.selection-item {
  background: #fff;
  border: 1px solid #e5eaf5;
  border-radius: 14px;
  padding: 10px 12px;
}

.selection-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.selection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 180px;
}

.btn-table-action {
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #263f86;
  border: 1px solid #dbe4ff;
  font-size: 13px;
  font-weight: 900;
}

.btn-table-action:hover {
  background: #e0e7ff;
}

.muted-small {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }
}


.selectable-row,
.selectable-row:hover td,
.selectable-row.is-selected td {
  cursor: default;
  background: inherit;
}

.selection-card {
  display: none !important;
}


.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px;
  overflow: auto;
}

.modal-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 22px;
}

.wide-modal {
  width: min(1040px, 100%);
}

.modal-header,
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.icon-button {
  border: 0;
  background: #eef2ff;
  color: #172033;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.modal-section {
  border: 1px solid #e5eaf5;
  border-radius: 18px;
  padding: 16px;
  background: #f8fbff;
}

.modal-section h3 {
  margin: 0 0 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.field.span-2 {
  grid-column: span 2;
}

.field textarea,
.field select {
  border: 1px solid #d8deeb;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #172033;
}

.field select:disabled,
.field input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-actions.left {
  justify-content: flex-start;
}

.order-total {
  min-width: 140px;
  border: 1px solid #dbe4ff;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: right;
}

.order-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.order-total strong {
  font-size: 20px;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
}

.modal-table-wrap {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .modal-header,
  .section-title-row {
    flex-direction: column;
  }

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

  .field.span-2 {
    grid-column: auto;
  }

  .header-actions {
    justify-content: flex-start;
  }
}


.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.packaging-row td {
  background: #fffaf0;
}

/* reservierungen-v010c-modal-actions-css-v1 */
.sk-reservierungen-v010c-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.sk-btn-primary,
.sk-btn-secondary,
.sk-reservierungen-v010c-row-storno {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 650;
  cursor: pointer;
}

.sk-btn-primary {
  background: #1f2937;
  color: #fff;
}

.sk-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.sk-reservierungen-v010c-row-storno {
  background: #fee2e2;
  color: #991b1b;
  white-space: nowrap;
}

.sk-reservierungen-v010c-status {
  min-height: 22px;
  font-size: 14px;
}

.sk-reservierungen-v010c-status[data-type="error"],
.sk-reservierungen-v010c-modal-status[data-type="error"] {
  color: #991b1b;
}

.sk-reservierungen-v010c-status[data-type="success"],
.sk-reservierungen-v010c-modal-status[data-type="success"] {
  color: #166534;
}

.sk-reservierungen-v010c-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.sk-reservierungen-v010c-modal {
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  padding: 20px;
}

.sk-reservierungen-v010c-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sk-reservierungen-v010c-modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.sk-modal-x {
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.sk-reservierungen-v010c-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sk-reservierungen-v010c-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.sk-reservierungen-v010c-field input,
.sk-reservierungen-v010c-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.sk-reservierungen-v010c-field textarea,
.sk-reservierungen-v010c-field:has(textarea) {
  grid-column: 1 / -1;
}

.sk-reservierungen-v010c-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sk-reservierungen-v010c-modal-status {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 600;
}

.sk-reservierungen-v010c-action-cell {
  text-align: right;
}

@media (max-width: 720px) {
  .sk-reservierungen-v010c-form {
    grid-template-columns: 1fr;
  }

  .sk-reservierungen-v010c-modal-footer {
    flex-direction: column-reverse;
  }

  .sk-btn-primary,
  .sk-btn-secondary {
    width: 100%;
  }
}

/* reservierungen-v010g-row-storno-css-v1 */
.sk-reservierungen-v010g-action-cell {
  text-align: right;
  white-space: nowrap;
}

.sk-reservierungen-v010g-storno {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 7px 11px;
  font-weight: 650;
  cursor: pointer;
  background: #fee2e2;
  color: #991b1b;
}

/* reservierungen-v010h-bearbeiten-css-v1 */
.sk-reservierungen-v010g-action-cell {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
}

.sk-reservierungen-v010h-edit {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 7px 11px;
  font-weight: 650;
  cursor: pointer;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}

.sk-reservierungen-v010h-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.sk-reservierungen-v010h-modal {
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  padding: 20px;
}

.sk-reservierungen-v010h-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sk-reservierungen-v010h-head h2 {
  margin: 0;
  font-size: 24px;
}

.sk-reservierungen-v010h-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sk-reservierungen-v010h-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.sk-reservierungen-v010h-field input,
.sk-reservierungen-v010h-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.sk-reservierungen-v010h-field textarea,
.sk-reservierungen-v010h-field:has(textarea) {
  grid-column: 1 / -1;
}

.sk-reservierungen-v010h-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sk-reservierungen-v010h-status {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 600;
}

.sk-reservierungen-v010h-status[data-type="error"] {
  color: #991b1b;
}

.sk-reservierungen-v010h-status[data-type="success"] {
  color: #166534;
}

@media (max-width: 900px) {
  .sk-reservierungen-v010g-action-cell {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .sk-reservierungen-v010h-form {
    grid-template-columns: 1fr;
  }

  .sk-reservierungen-v010h-footer {
    flex-direction: column-reverse;
  }
}

/* feieranfragen-v011b-actions-css-v1 */
.sk-feier-v011b-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sk-feier-v011b-action-cell {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.sk-feier-v011b-edit,
.sk-feier-v011b-delete {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 7px 11px;
  font-weight: 650;
  cursor: pointer;
}

.sk-feier-v011b-edit {
  background: #e0e7ff;
  color: #3730a3;
}

.sk-feier-v011b-delete {
  background: #fee2e2;
  color: #991b1b;
}

.sk-feier-v011b-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.sk-feier-v011b-modal {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  padding: 20px;
}

.sk-feier-v011b-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sk-feier-v011b-head h2 {
  margin: 0;
  font-size: 24px;
}

.sk-feier-v011b-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sk-feier-v011b-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.sk-feier-v011b-check {
  justify-content: flex-end;
}

.sk-feier-v011b-field input,
.sk-feier-v011b-field select,
.sk-feier-v011b-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.sk-feier-v011b-check input {
  width: auto;
  align-self: flex-start;
}

.sk-feier-v011b-field textarea,
.sk-feier-v011b-field:has(textarea) {
  grid-column: 1 / -1;
}

.sk-feier-v011b-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sk-feier-v011b-status {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 600;
}

.sk-feier-v011b-status[data-type="error"] {
  color: #991b1b;
}

.sk-feier-v011b-status[data-type="success"] {
  color: #166534;
}

@media (max-width: 900px) {
  .sk-feier-v011b-action-cell {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .sk-feier-v011b-form {
    grid-template-columns: 1fr;
  }

  .sk-feier-v011b-footer,
  .sk-feier-v011b-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* zeiten-v012b-readonly-final-css-v1 */
.zeiten-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.zeiten-tabs .active {
  background: #1f2937;
  color: #fff;
}

.sk-zeiten-table {
  margin-top: 8px;
}

.sk-zeiten-table.hidden {
  display: none;
}

#zeitenMessage[data-type="error"] {
  color: #991b1b;
}

#zeitenMessage[data-type="info"] {
  color: #374151;
}

/* zeiten-v012b-ui-polish-v1 */
#zeitenView .card {
  overflow: hidden;
}

#zeitenView .zeiten-tabs {
  margin-bottom: 18px;
}

#zeitenView .table-wrap.sk-zeiten-table {
  overflow-x: auto;
  padding: 0;
  border-radius: 16px;
}

#zeitenView .sk-zeiten-table table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

#zeitenView .sk-zeiten-table th,
#zeitenView .sk-zeiten-table td {
  padding: 11px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
  white-space: nowrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

#zeitenView .sk-zeiten-table th {
  font-size: 14px;
  font-weight: 750;
  color: #334155;
  background: rgba(248, 250, 252, 0.9);
}

#zeitenView .sk-zeiten-table tbody tr:last-child td {
  border-bottom: 0;
}

#zeitenView [data-zeiten-panel="/oeffnungszeiten"] th:nth-child(1),
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] td:nth-child(1) {
  min-width: 120px;
}

#zeitenView [data-zeiten-panel="/oeffnungszeiten"] th:nth-child(2),
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] td:nth-child(2) {
  min-width: 120px;
}

#zeitenView [data-zeiten-panel="/sonderzeiten"] th:nth-child(6),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(6),
#zeitenView [data-zeiten-panel="/sperrtage"] th:nth-child(2),
#zeitenView [data-zeiten-panel="/sperrtage"] td:nth-child(2) {
  white-space: normal;
  min-width: 260px;
}

#zeitenView .table-count {
  padding: 12px 18px 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  #zeitenView .sk-zeiten-table table {
    min-width: 720px;
  }

  #zeitenView .sk-zeiten-table th,
  #zeitenView .sk-zeiten-table td {
    padding: 10px 14px;
  }
}

/* zeiten-v012c-write-actions-css-v1 */
.sk-zeiten-v012c-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.sk-zeiten-v012c-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

.sk-zeiten-v012c-edit,
.sk-zeiten-v012c-delete {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 7px 11px;
  font-weight: 700;
  cursor: pointer;
}

.sk-zeiten-v012c-edit {
  background: #e0e7ff;
  color: #3730a3;
}

.sk-zeiten-v012c-delete,
.sk-zeiten-danger-soft {
  background: #fee2e2;
  color: #991b1b;
}

.sk-zeiten-danger-soft:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sk-sperrtag-select {
  width: 18px;
  height: 18px;
}

.sk-zeiten-v012c-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.sk-zeiten-v012c-modal {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  padding: 20px;
}

.sk-zeiten-v012c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sk-zeiten-v012c-head h2 {
  margin: 0;
  font-size: 24px;
}

.sk-zeiten-v012c-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sk-zeiten-v012c-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.sk-zeiten-v012c-field input,
.sk-zeiten-v012c-field select,
.sk-zeiten-v012c-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.sk-zeiten-v012c-field input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.sk-zeiten-v012c-field textarea,
.sk-zeiten-v012c-field:has(textarea),
.sk-zeiten-v012c-hint {
  grid-column: 1 / -1;
}

.sk-zeiten-v012c-hint {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.sk-zeiten-v012c-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sk-zeiten-v012c-status {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 700;
}

.sk-zeiten-v012c-status[data-type="error"],
#zeitenMessage[data-type="error"] {
  color: #991b1b;
}

.sk-zeiten-v012c-status[data-type="success"],
#zeitenMessage[data-type="success"] {
  color: #166534;
}

@media (max-width: 900px) {
  .sk-zeiten-v012c-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .sk-zeiten-v012c-form {
    grid-template-columns: 1fr;
  }

  .sk-zeiten-v012c-footer,
  .sk-zeiten-v012c-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* tische-v013c-readonly-css-v1 */
.sk-tische-v013c-page {
  padding: 24px;
  max-width: 1380px;
  margin: 0 auto;
}

.sk-tische-v013c-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.sk-tische-v013c-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
}

.sk-tische-v013c-sub {
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.sk-tische-v013c-message {
  margin: 0 0 14px;
  min-height: 22px;
  font-weight: 700;
}

.sk-tische-v013c-message[data-type="error"] {
  color: #991b1b;
}

.sk-tische-v013c-message[data-type="success"] {
  color: #166534;
}

.sk-tische-v013c-message.hidden {
  display: none;
}

.sk-tische-v013c-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sk-tische-v013c-stat {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.sk-tische-v013c-stat strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.sk-tische-v013c-stat span {
  color: #64748b;
}

.sk-tische-v013c-filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sk-tische-v013c-filters input,
.sk-tische-v013c-filters select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
}

.sk-tische-v013c-card,
.sk-tische-v013c-derived {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sk-tische-v013c-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.sk-tische-v013c-section-head h2,
.sk-tische-v013c-derived h2 {
  margin: 0;
  font-size: 20px;
}

.sk-tische-v013c-section-head span {
  color: #64748b;
  font-weight: 700;
}

.sk-tische-v013c-table-wrap {
  overflow-x: auto;
}

.sk-tische-v013c-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.sk-tische-v013c-small-table {
  min-width: 420px;
}

.sk-tische-v013c-table th,
.sk-tische-v013c-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.sk-tische-v013c-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sk-tische-v013c-derived-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.sk-tische-v013c-derived h2 {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.sk-tische-v013c-dashboard-card {
  appearance: none;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  color: inherit;
  min-height: 106px;
}

.sk-tische-v013c-dashboard-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.sk-tische-v013c-dashboard-card span {
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .sk-tische-v013c-stats,
  .sk-tische-v013c-filters,
  .sk-tische-v013c-derived-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .sk-tische-v013c-page {
    padding: 16px;
  }

  .sk-tische-v013c-head {
    flex-direction: column;
  }

  .sk-tische-v013c-stats,
  .sk-tische-v013c-filters,
  .sk-tische-v013c-derived-grid {
    grid-template-columns: 1fr;
  }
}

/* table-layout-stability-v015j-v1
   Stabilisiert Tabellenbreiten gegen sichtbaren Reflow beim Daten-/Button-Render.
   Kein JS, keine Nachkorrektur, nur Layout-Vertrag.
*/
.table-wrap,
.sk-zeiten-table,
.sk-tische-v013c-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.data-table,
.sk-zeiten-table table,
#zeitenView table,
.sk-tische-v013c-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.data-table {
  min-width: 920px;
}

.sk-zeiten-table table,
#zeitenView table {
  min-width: 760px;
}

.sk-tische-v013c-table {
  min-width: 840px;
}

.sk-tische-v013c-small-table {
  min-width: 420px;
}

.data-table th,
.data-table td,
.sk-zeiten-table th,
.sk-zeiten-table td,
#zeitenView th,
#zeitenView td,
.sk-tische-v013c-table th,
.sk-tische-v013c-table td {
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
}

.table-actions,
.sk-zeiten-v012c-actions {
  min-width: 180px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.btn-table-action,
.sk-zeiten-v012c-edit,
.sk-zeiten-v012c-delete {
  white-space: nowrap;
}
/* zeiten-last-jump-stabilize-v015y-v1
   Nach v015t bleibt nur noch ein einmaliger Layoutsprung:
   Loading-Zeile -> echte Daten. Der Zeitenbereich reserviert jetzt stabile
   Raumhöhe je Panel, damit Buttons/Tabelle beim Dateneinlauf nicht sichtbar
   runter/hoch springen. */
#zeitenView .card {
  min-height: 560px;
}

#zeitenView #zeitenTables {
  min-height: 400px;
}

#zeitenView .table-wrap.sk-zeiten-table {
  min-height: 360px;
  contain: layout paint;
}

#zeitenView [data-zeiten-panel="/oeffnungszeiten"] {
  min-height: 386px;
}

#zeitenView [data-zeiten-panel="/sonderzeiten"] {
  min-height: 386px;
}

#zeitenView [data-zeiten-panel="/sperrtage"] {
  min-height: 430px;
}

#zeitenView .sk-zeiten-table table {
  table-layout: fixed;
}

#zeitenView .zeiten-tabs,
#zeitenView .sk-zeiten-v012c-toolbar {
  min-height: 50px;
  align-items: center;
}

#zeitenView .btn:hover {
  transform: none;
}

#zeitenView .btn {
  transition: background .12s ease, opacity .12s ease, border-color .12s ease;
}

#zeitenView .sk-zeiten-v012c-actions {
  min-width: 190px;
}

#zeitenView [data-zeiten-panel="/oeffnungszeiten"] th:nth-child(7),
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] td:nth-child(7),
#zeitenView [data-zeiten-panel="/sonderzeiten"] th:nth-child(7),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(7),
#zeitenView [data-zeiten-panel="/sperrtage"] th:nth-child(4),
#zeitenView [data-zeiten-panel="/sperrtage"] td:nth-child(4) {
  width: 190px;
  min-width: 190px;
}
/* listen-table-layout-v015z-v1
   Gemeinsamer Layoutvertrag für breite Listen.
   Lieber stabil horizontal scrollbar als gedrängte/überlappende Aktionsbuttons. */

#reservationsView .table-wrap,
#feierView .table-wrap,
#abholView .table-wrap,
#zeitenView .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

#reservationsView .data-table,
#feierView .data-table,
#abholView .data-table {
  width: 100%;
  table-layout: fixed;
}

#reservationsView .data-table {
  min-width: 1360px;
}

#feierView .data-table {
  min-width: 1400px;
}

#abholView .data-table {
  min-width: 1260px;
}

/* Reservierungen: Datum, Uhrzeit, Name, Personen, Telefon, Hinweis, Status, Quelle, Bearbeiten, Stornieren */
#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) { width: 112px; }

#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) { width: 92px; }

#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) { width: 170px; }

#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) { width: 100px; }

#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) { width: 150px; }

#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) { width: 250px; }

#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) { width: 105px; }

#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) { width: 130px; }

#reservationsView .data-table th:nth-child(9),
#reservationsView .data-table td:nth-child(9),
#reservationsView .data-table th:nth-child(10),
#reservationsView .data-table td:nth-child(10) {
  width: 126px;
  min-width: 126px;
}

/* Feieranfragen: Datum, Uhrzeit, Name, Telefon, Personen, Anlass, Status, Hinweis, Bearbeiten, Löschen */
#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) { width: 112px; }

#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) { width: 92px; }

#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) { width: 160px; }

#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) { width: 150px; }

#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) { width: 95px; }

#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) { width: 140px; }

#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) { width: 120px; }

#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) { width: 270px; }

#feierView .data-table th:nth-child(9),
#feierView .data-table td:nth-child(9),
#feierView .data-table th:nth-child(10),
#feierView .data-table td:nth-child(10) {
  width: 126px;
  min-width: 126px;
}

/* Abholbestellungen: defensiv mehr Platz für Status/Aktionen */
#abholView .data-table th:last-child,
#abholView .data-table td:last-child {
  width: 220px;
  min-width: 220px;
}

/* Zeiten/Sonderzeiten: Notiz + Aktion sauber trennen */
#zeitenView [data-zeiten-panel="/sonderzeiten"] .data-table,
#zeitenView [data-zeiten-panel="/sperrtage"] .data-table,
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] .data-table {
  min-width: 1120px;
  table-layout: fixed;
}

#zeitenView [data-zeiten-panel="/sonderzeiten"] th:nth-child(6),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(6) {
  width: 250px;
  min-width: 250px;
}

#zeitenView [data-zeiten-panel="/sonderzeiten"] th:nth-child(7),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(7) {
  width: 240px;
  min-width: 240px;
}

#zeitenView [data-zeiten-panel="/sperrtage"] th:nth-child(4),
#zeitenView [data-zeiten-panel="/sperrtage"] td:nth-child(4) {
  width: 240px;
  min-width: 240px;
}

#zeitenView .sk-zeiten-v012c-actions,
#zeitenView .table-actions,
#reservationsView .table-actions,
#feierView .table-actions,
#abholView .table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

#zeitenView .sk-zeiten-v012c-actions {
  min-width: 230px;
}

/* Textspalten dürfen umbrechen, Aktionsbuttons nicht. */
#reservationsView .data-table td:nth-child(3),
#reservationsView .data-table td:nth-child(6),
#reservationsView .data-table td:nth-child(8),
#feierView .data-table td:nth-child(3),
#feierView .data-table td:nth-child(6),
#feierView .data-table td:nth-child(8),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(6),
#zeitenView [data-zeiten-panel="/sperrtage"] td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#reservationsView .data-table td:nth-child(9),
#reservationsView .data-table td:nth-child(10),
#feierView .data-table td:nth-child(9),
#feierView .data-table td:nth-child(10),
#zeitenView [data-zeiten-panel="/sonderzeiten"] td:nth-child(7),
#zeitenView [data-zeiten-panel="/sperrtage"] td:nth-child(4) {
  white-space: nowrap;
  overflow: visible;
}

#reservationsView .btn,
#feierView .btn,
#abholView .btn,
#zeitenView .btn {
  max-width: none;
}
/* list-action-columns-rescue-v016b-v1
   Rescue nach v015z: Tabellen sind stabiler, aber rechte Aktionsspalten
   dürfen nicht aus dem sichtbaren Bereich laufen. Aktionsspalten bleiben
   rechts sichtbar und überdecken Text nicht transparent. */

#reservationsView .table-wrap,
#feierView .table-wrap,
#abholView .table-wrap,
#zeitenView .table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

/* Reservierungen: letzte zwei Spalten = Bearbeiten / Stornieren */
#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2) {
  position: sticky;
  right: 126px;
  z-index: 3;
  width: 126px;
  min-width: 126px;
  background: #fff;
}

#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 126px;
  min-width: 126px;
  background: #fff;
}

/* Feieranfragen: letzte zwei Spalten = Bearbeiten / Löschen */
#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  position: sticky;
  right: 126px;
  z-index: 3;
  width: 126px;
  min-width: 126px;
  background: #fff;
}

#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 126px;
  min-width: 126px;
  background: #fff;
}

/* Abholbestellungen: letzte Spalte = Aktionen */
#abholView .data-table th:last-child,
#abholView .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 210px;
  min-width: 210px;
  background: #fff;
}

/* Zeiten: letzte Aktionsspalte sichtbar halten */
#zeitenView [data-zeiten-panel="/sonderzeiten"] .data-table th:last-child,
#zeitenView [data-zeiten-panel="/sonderzeiten"] .data-table td:last-child,
#zeitenView [data-zeiten-panel="/sperrtage"] .data-table th:last-child,
#zeitenView [data-zeiten-panel="/sperrtage"] .data-table td:last-child,
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] .data-table th:last-child,
#zeitenView [data-zeiten-panel="/oeffnungszeiten"] .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 220px;
  min-width: 220px;
  background: #fff;
}

/* Header über Datenzellen halten */
#reservationsView .data-table thead th:nth-last-child(2),
#reservationsView .data-table thead th:last-child,
#feierView .data-table thead th:nth-last-child(2),
#feierView .data-table thead th:last-child,
#abholView .data-table thead th:last-child,
#zeitenView .data-table thead th:last-child {
  z-index: 6;
  background: #f8fafc;
}

/* Weiche Trennkante, damit sichtbar bleibt, wo Sticky-Aktionen beginnen. */
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table td:nth-last-child(2),
#abholView .data-table td:last-child,
#zeitenView .data-table td:last-child {
  box-shadow: -10px 0 14px rgba(255,255,255,.86);
}

/* Buttons in Aktionszellen bleiben komplett sichtbar. */
#reservationsView .data-table td:nth-last-child(2) .btn,
#reservationsView .data-table td:last-child .btn,
#feierView .data-table td:nth-last-child(2) .btn,
#feierView .data-table td:last-child .btn,
#abholView .data-table td:last-child .btn,
#zeitenView .data-table td:last-child .btn {
  max-width: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* reserv-feier-columns-refine-v016c-v1
   Feinjustierung nach v015z/v016b:
   Abholbestellungen bleiben unverändert. Reservierungen und Feieranfragen
   werden kompakter, die Aktionsspalten bleiben rechts sichtbar. */

/* Reservierungen kompakter */
#reservationsView .data-table {
  min-width: 1240px;
}

#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) { width: 104px; }

#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) { width: 82px; }

#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) { width: 150px; }

#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) { width: 88px; }

#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) { width: 136px; }

#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) { width: 220px; }

#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) { width: 88px; }

#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) { width: 104px; }

#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2) {
  right: 118px;
  width: 118px;
  min-width: 118px;
}

#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child {
  right: 0;
  width: 118px;
  min-width: 118px;
}

/* Feieranfragen kompakter */
#feierView .data-table {
  min-width: 1260px;
}

#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) { width: 104px; }

#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) { width: 82px; }

#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) { width: 148px; }

#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) { width: 136px; }

#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) { width: 82px; }

#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) { width: 118px; }

#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) { width: 104px; }

#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) { width: 220px; }

#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  right: 118px;
  width: 118px;
  min-width: 118px;
}

#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  right: 0;
  width: 118px;
  min-width: 118px;
}

/* Sticky-Kante an neue Breite anpassen */
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  box-shadow: -8px 0 12px rgba(255,255,255,.9);
}

/* Lange Texte bleiben kontrolliert, aber nicht unnötig breit. */
#reservationsView .data-table td:nth-child(6),
#reservationsView .data-table td:nth-child(8),
#feierView .data-table td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* single-action-column-contract-v016e-v1
   Strukturkorrektur nach v016d:
   Reservierungen und Feieranfragen haben in JS nur eine echte Aktionszelle.
   Alte v016b/v016c-Regeln behandelten nth-last-child(2) zusätzlich als Aktion.
   Ab jetzt ist nur last-child die Aktionsspalte. */

/* Reservierungen: Datum | Uhrzeit | Name | Personen | Telefon | Hinweis | Status | Quelle | Aktion */
#reservationsView .data-table {
  min-width: 1180px;
  table-layout: fixed;
}

#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) { width: 96px; }

#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) { width: 76px; }

#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) { width: 140px; }

#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) { width: 76px; }

#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) { width: 128px; }

#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) { width: 230px; }

#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) { width: 82px; }

#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) {
  position: static;
  right: auto;
  z-index: auto;
  width: 90px;
  min-width: 90px;
  background: transparent;
  box-shadow: none;
}

/* Feieranfragen: Datum | Uhrzeit | Name | Telefon | Personen | Anlass | Status | Hinweis | Aktion */
#feierView .data-table {
  min-width: 1200px;
  table-layout: fixed;
}

#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) { width: 96px; }

#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) { width: 76px; }

#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) { width: 138px; }

#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) { width: 128px; }

#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) { width: 76px; }

#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) { width: 112px; }

#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) { width: 98px; }

#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) {
  position: static;
  right: auto;
  z-index: auto;
  width: 250px;
  min-width: 250px;
  background: transparent;
  box-shadow: none;
}

/* Nur die echte letzte Spalte ist Aktion. */
#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child,
#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 220px;
  min-width: 220px;
  background: #fff;
  white-space: nowrap;
}

#reservationsView .data-table thead th:last-child,
#feierView .data-table thead th:last-child {
  z-index: 7;
  background: #f8fafc;
}

/* Explizit alte Zwei-Aktionsspalten-Logik entschärfen. */
#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  position: static;
  right: auto;
  z-index: auto;
  background: transparent;
  box-shadow: none;
}

/* Danach echte letzte Aktionsspalte wieder setzen, falls ältere Regeln stärker waren. */
#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child,
#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 5;
  background: #fff;
  box-shadow: -8px 0 12px rgba(255,255,255,.9);
}

/* Action-Zelle hält beide Buttons zusammen. */
#reservationsView .sk-reservierungen-v010g-action-cell,
#feierView .sk-feier-v011b-action-cell,
#reservationsView td[data-column="aktion"],
#feierView td[data-column="aktion"] {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#reservationsView .sk-reservierungen-v010g-action-cell .btn,
#feierView .sk-feier-v011b-action-cell .btn,
#reservationsView td[data-column="aktion"] .btn,
#feierView td[data-column="aktion"] .btn {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

/* Textspalten sauber umbrechen, ohne in Aktion zu laufen. */
#reservationsView .data-table td:nth-child(3),
#reservationsView .data-table td:nth-child(6),
#reservationsView .data-table td:nth-child(8),
#feierView .data-table td:nth-child(3),
#feierView .data-table td:nth-child(6),
#feierView .data-table td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Abholbestellungen bewusst nicht anfassen. */
/* single-action-column-visual-refine-v016f-v1
   Feinschliff nach v016e:
   Struktur ist jetzt korrekt. Diese Regeln verhindern hässliche Umbrüche
   bei Datum/Uhrzeit/Personen und geben der gemeinsamen Aktionsspalte genug Raum.
   Abholbestellungen bleiben unberührt. */

/* Reservierungen: kompakt, aber ohne hässliche Header-/Datumsumbrüche */
#reservationsView .data-table {
  min-width: 1280px;
  table-layout: fixed;
}

#reservationsView .data-table th,
#reservationsView .data-table td,
#feierView .data-table th,
#feierView .data-table td {
  vertical-align: top;
}

/* Datum */
#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) {
  width: 118px;
  min-width: 118px;
  white-space: nowrap;
}

/* Uhrzeit */
#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) {
  width: 84px;
  min-width: 84px;
  white-space: nowrap;
}

/* Name */
#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) {
  width: 150px;
  min-width: 150px;
}

/* Personen */
#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) {
  width: 88px;
  min-width: 88px;
  white-space: nowrap;
}

/* Telefon */
#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) {
  width: 136px;
  min-width: 136px;
  white-space: nowrap;
}

/* Hinweis */
#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) {
  width: 250px;
  min-width: 250px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Status */
#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) {
  width: 86px;
  min-width: 86px;
  white-space: nowrap;
}

/* Quelle */
#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) {
  width: 104px;
  min-width: 104px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Aktion */
#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child {
  width: 230px;
  min-width: 230px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 5;
}

/* Feieranfragen: etwas mehr Breite, weil Hinweis oft länger ist */
#feierView .data-table {
  min-width: 1320px;
  table-layout: fixed;
}

/* Datum */
#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) {
  width: 118px;
  min-width: 118px;
  white-space: nowrap;
}

/* Uhrzeit */
#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) {
  width: 84px;
  min-width: 84px;
  white-space: nowrap;
}

/* Name */
#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) {
  width: 148px;
  min-width: 148px;
}

/* Telefon */
#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) {
  width: 136px;
  min-width: 136px;
  white-space: nowrap;
}

/* Personen */
#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) {
  width: 90px;
  min-width: 90px;
  white-space: nowrap;
}

/* Anlass */
#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) {
  width: 126px;
  min-width: 126px;
}

/* Status */
#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) {
  width: 104px;
  min-width: 104px;
  white-space: nowrap;
}

/* Hinweis */
#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) {
  width: 280px;
  min-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Aktion */
#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  width: 230px;
  min-width: 230px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 5;
}

/* Header der Aktionsspalte sauber über Datenzellen */
#reservationsView .data-table thead th:last-child,
#feierView .data-table thead th:last-child {
  background: #f8fafc;
  z-index: 8;
}

/* Vorletzte Spalte bleibt ausdrücklich normale Textspalte, keine zweite Aktion. */
#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  position: static;
  right: auto;
  z-index: auto;
  box-shadow: none;
}

/* Gemeinsame Aktionszelle: zwei Buttons, eine Spalte. */
#reservationsView td[data-column="aktion"],
#feierView td[data-column="aktion"],
#reservationsView .sk-reservierungen-v010g-action-cell,
#feierView .sk-feier-v011b-action-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  box-shadow: -8px 0 12px rgba(255,255,255,.9);
}

#reservationsView td[data-column="aktion"] .btn,
#feierView td[data-column="aktion"] .btn,
#reservationsView .sk-reservierungen-v010g-action-cell .btn,
#feierView .sk-feier-v011b-action-cell .btn {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

/* Headline-Labels nicht zerhacken */
#reservationsView .data-table th,
#feierView .data-table th {
  overflow-wrap: normal;
  word-break: normal;
}

/* Abholbestellungen bleiben bewusst unberührt. */
/* hint-action-balance-v016g-v1
   Feinschliff nach v016e/v016f:
   Die Struktur mit einer Aktionsspalte bleibt. Die Sticky-Überlagerung
   über Hinweis/Quelle wird für Reservierungen und Feieranfragen entfernt.
   Hinweise werden vollständig per Zeilenumbruch sichtbar. Abhol bleibt unberührt. */

#reservationsView .table-wrap,
#feierView .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

/* Beide Tabellen sollen in den sichtbaren Kartenbereich passen. */
#reservationsView .data-table,
#feierView .data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

/* Reservierungen: Datum | Uhrzeit | Name | Personen | Telefon | Hinweis | Status | Quelle | Aktion */
#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) { width: 9%; white-space: nowrap; }

#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) { width: 7%; white-space: nowrap; }

#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) { width: 14%; }

#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) { width: 7%; white-space: nowrap; }

#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) { width: 12%; white-space: nowrap; }

#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) {
  width: 22%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
}

#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) { width: 7%; white-space: nowrap; }

#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) {
  width: 5%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child {
  width: 17%;
}

/* Feieranfragen: Datum | Uhrzeit | Name | Telefon | Personen | Anlass | Status | Hinweis | Aktion */
#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) { width: 9%; white-space: nowrap; }

#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) { width: 7%; white-space: nowrap; }

#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) { width: 13%; }

#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) { width: 12%; white-space: nowrap; }

#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) { width: 8%; white-space: nowrap; }

#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) { width: 10%; }

#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) { width: 8%; white-space: nowrap; }

#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) {
  width: 16%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
}

#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  width: 17%;
}

/* Keine Sticky-Überlagerung mehr bei Reservierungen/Feieranfragen.
   Die Aktion bleibt normale rechte Spalte innerhalb der Tabelle. */
#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child,
#feierView .data-table th:last-child,
#feierView .data-table td:last-child,
#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  position: static !important;
  right: auto !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Aktion bleibt optisch als Button-Gruppe rechts ausgerichtet. */
#reservationsView td[data-column="aktion"],
#feierView td[data-column="aktion"],
#reservationsView .sk-reservierungen-v010g-action-cell,
#feierView .sk-feier-v011b-action-cell {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: visible;
}

#reservationsView td[data-column="aktion"] .btn,
#feierView td[data-column="aktion"] .btn,
#reservationsView .sk-reservierungen-v010g-action-cell .btn,
#feierView .sk-feier-v011b-action-cell .btn {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

/* Header nicht zerhacken. */
#reservationsView .data-table th,
#feierView .data-table th {
  overflow-wrap: normal;
  word-break: normal;
}

/* Abholbestellungen bleiben bewusst unberührt. */
/* reserv-feier-wide-content-area-v016h-v1
   Korrektur nach v016g:
   Nicht quetschen, nicht horizontal scrollen. Reservierungen und Feieranfragen
   bekommen einen breiteren Arbeitsbereich. Abholbestellungen bleiben unberührt. */

/* Die App-Hülle darf auf Listen mit vielen Spalten deutlich breiter werden. */
@media (min-width: 1180px) {
  body:has(#reservationsView:not(.hidden)) .app-shell,
  body:has(#feierView:not(.hidden)) .app-shell {
    width: min(1460px, calc(100vw - 40px)) !important;
    max-width: min(1460px, calc(100vw - 40px)) !important;
  }
}

@media (min-width: 1500px) {
  body:has(#reservationsView:not(.hidden)) .app-shell,
  body:has(#feierView:not(.hidden)) .app-shell {
    width: min(1520px, calc(100vw - 40px)) !important;
    max-width: min(1520px, calc(100vw - 40px)) !important;
  }
}

/* Kartenbereich selbst vollständig nutzen. */
#reservationsView,
#feierView,
#reservationsView .card,
#feierView .card,
#reservationsView .table-wrap,
#feierView .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
}

/* Kein horizontaler Scrollbalken für diese beiden Listen. */
#reservationsView .table-wrap,
#feierView .table-wrap {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Tabellen füllen den breiteren Bereich. */
#reservationsView .data-table,
#feierView .data-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

/* Reservierungen: Datum | Uhrzeit | Name | Personen | Telefon | Hinweis | Status | Quelle | Aktion */
#reservationsView .data-table th:nth-child(1),
#reservationsView .data-table td:nth-child(1) { width: 8.5% !important; white-space: nowrap !important; }

#reservationsView .data-table th:nth-child(2),
#reservationsView .data-table td:nth-child(2) { width: 6.5% !important; white-space: nowrap !important; }

#reservationsView .data-table th:nth-child(3),
#reservationsView .data-table td:nth-child(3) { width: 13% !important; }

#reservationsView .data-table th:nth-child(4),
#reservationsView .data-table td:nth-child(4) { width: 7% !important; white-space: nowrap !important; }

#reservationsView .data-table th:nth-child(5),
#reservationsView .data-table td:nth-child(5) { width: 11% !important; white-space: nowrap !important; }

#reservationsView .data-table th:nth-child(6),
#reservationsView .data-table td:nth-child(6) {
  width: 22% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#reservationsView .data-table th:nth-child(7),
#reservationsView .data-table td:nth-child(7) { width: 7% !important; white-space: nowrap !important; }

#reservationsView .data-table th:nth-child(8),
#reservationsView .data-table td:nth-child(8) {
  width: 6% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child {
  width: 19% !important;
}

/* Feieranfragen: Datum | Uhrzeit | Name | Telefon | Personen | Anlass | Status | Hinweis | Aktion */
#feierView .data-table th:nth-child(1),
#feierView .data-table td:nth-child(1) { width: 8.5% !important; white-space: nowrap !important; }

#feierView .data-table th:nth-child(2),
#feierView .data-table td:nth-child(2) { width: 6.5% !important; white-space: nowrap !important; }

#feierView .data-table th:nth-child(3),
#feierView .data-table td:nth-child(3) { width: 12.5% !important; }

#feierView .data-table th:nth-child(4),
#feierView .data-table td:nth-child(4) { width: 12% !important; white-space: nowrap !important; }

#feierView .data-table th:nth-child(5),
#feierView .data-table td:nth-child(5) { width: 7.5% !important; white-space: nowrap !important; }

#feierView .data-table th:nth-child(6),
#feierView .data-table td:nth-child(6) { width: 10% !important; }

#feierView .data-table th:nth-child(7),
#feierView .data-table td:nth-child(7) { width: 8.5% !important; white-space: nowrap !important; }

#feierView .data-table th:nth-child(8),
#feierView .data-table td:nth-child(8) {
  width: 19% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#feierView .data-table th:last-child,
#feierView .data-table td:last-child {
  width: 15.5% !important;
}

/* Keine Sticky-Überlagerung in diesen beiden Tabellen. */
#reservationsView .data-table th:last-child,
#reservationsView .data-table td:last-child,
#feierView .data-table th:last-child,
#feierView .data-table td:last-child,
#reservationsView .data-table th:nth-last-child(2),
#reservationsView .data-table td:nth-last-child(2),
#feierView .data-table th:nth-last-child(2),
#feierView .data-table td:nth-last-child(2) {
  position: static !important;
  right: auto !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Aktion bleibt optisch rechts als Button-Gruppe. */
#reservationsView td[data-column="aktion"],
#feierView td[data-column="aktion"],
#reservationsView .sk-reservierungen-v010g-action-cell,
#feierView .sk-feier-v011b-action-cell {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#reservationsView td[data-column="aktion"] .btn,
#feierView td[data-column="aktion"] .btn,
#reservationsView .sk-reservierungen-v010g-action-cell .btn,
#feierView .sk-feier-v011b-action-cell .btn {
  flex: 0 0 auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

/* Header nicht zerhacken. */
#reservationsView .data-table th,
#feierView .data-table th {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Abholbestellungen bleiben bewusst unberührt. */
/* modal-storno-delete-v017b-v1
   Destruktive Aktionen im Bearbeiten-Dialog sauber links,
   Abbrechen/Speichern rechts. Keine Tabellen-CSS-Änderung. */

.sk-modal-v017b-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.sk-modal-v017b-left,
.sk-modal-v017b-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sk-modal-v017b-right {
  justify-content: flex-end;
}

.sk-btn-danger,
.sk-reservierungen-v017b-storno,
.sk-feier-v017b-delete {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fee2e2;
  color: #991b1b;
  white-space: nowrap;
}

.sk-btn-danger:hover,
.sk-reservierungen-v017b-storno:hover,
.sk-feier-v017b-delete:hover {
  background: #fecaca;
}

@media (max-width: 720px) {
  .sk-modal-v017b-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sk-modal-v017b-left,
  .sk-modal-v017b-right {
    justify-content: stretch;
  }

  .sk-modal-v017b-left > *,
  .sk-modal-v017b-right > * {
    width: 100%;
  }
}
/* global-print-button-v018b-v1
   Globaler Drucken-Button als Kundenservice.
   Drucklogik läuft über ein separates Printfenster und verändert keine Tabellenlayouts. */
#btnGlobalPrint {
  white-space: nowrap;
}

@media print {
  #appTopbar,
  .filter-bar,
  .header-actions,
  .sk-feier-v011b-header-actions,
  .modal-backdrop,
  .btn {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .app-shell,
  .card,
  .table-wrap {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
  }
}


/* settings-readonly-v019c-css-v1 */
.settings-readonly-v019c {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.settings-head-v019c {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.settings-head-v019c h2 {
  margin: 4px 0 6px;
}

.settings-badge-v019c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.9;
}

.settings-grid-v019c {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
}

.settings-card-v019c {
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.settings-card-v019c h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.settings-card-v019c dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-field-v019c {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(160px, 1.15fr);
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.settings-field-v019c:first-child {
  border-top: 0;
}

.settings-field-v019c dt {
  margin: 0;
  opacity: 0.7;
  font-size: 13px;
}

.settings-field-v019c dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.settings-note-v019c {
  margin: 0;
  padding: 0 4px;
  opacity: 0.72;
  font-size: 13px;
}

.settings-error-v019c {
  border-color: rgba(248, 113, 113, 0.34);
}

@media (max-width: 900px) {
  .settings-grid-v019c {
    grid-template-columns: 1fr;
  }

  .settings-head-v019c {
    flex-direction: column;
  }

  .settings-field-v019c {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* settings-v020f-b-appsmith-webapp-style-v1 */
.settings-card-shell-v020f{display:grid;gap:18px;}
.settings-summary-v020f{margin:0;}
.settings-form-v020f{gap:18px;}
.settings-section-v020f{background:#f8fbff;}
.settings-section-v020f .form-grid{grid-template-columns:repeat(3,minmax(180px,1fr));}
.settings-grid-v020f .span-2{grid-column:span 2;}
.settings-toggle-grid-v020f{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;}
.settings-rules-v020f{grid-template-columns:repeat(3,minmax(190px,1fr));}
.settings-toggle-v020f{display:flex;align-items:center;gap:10px;border:1px solid #d8deeb;background:#fff;border-radius:14px;padding:11px 12px;min-height:46px;cursor:pointer;}
.settings-toggle-v020f input{position:absolute;opacity:0;pointer-events:none;}
.settings-toggle-ui-v020f{width:38px;height:22px;border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto;transition:background .15s ease;}
.settings-toggle-ui-v020f:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.18);transition:transform .15s ease;}
.settings-toggle-v020f input:checked + .settings-toggle-ui-v020f{background:var(--primary);}
.settings-toggle-v020f input:checked + .settings-toggle-ui-v020f:after{transform:translateX(16px);}
.settings-toggle-v020f strong{font-size:14px;color:#172033;line-height:1.25;}
.settings-footer-v020f{justify-content:space-between;align-items:center;border-top:1px solid #e5eaf5;padding-top:14px;}
#settingsMessageV020f[data-type="success"]{color:#166534;font-weight:800;}
#settingsMessageV020f[data-type="error"]{color:#991b1b;font-weight:800;}
@media (max-width:1100px){.settings-section-v020f .form-grid{grid-template-columns:repeat(2,minmax(160px,1fr));}.settings-rules-v020f{grid-template-columns:repeat(2,minmax(180px,1fr));}}
@media (max-width:760px){.settings-section-v020f .form-grid,.settings-toggle-grid-v020f,.settings-rules-v020f{grid-template-columns:1fr}.settings-grid-v020f .span-2{grid-column:auto}.settings-footer-v020f{flex-direction:column;align-items:flex-start}}
/* settings-v020f-d-professional-ux-v1 */
.settings-shell-v020fd{display:grid;gap:18px;}
.settings-hero-v020fd{align-items:flex-start;}
.settings-summary-v020fd{margin:0;background:#f8fbff;border:1px solid #dde5f2;}
.settings-metric-v020fd.is-on strong{color:#166534;}
.settings-metric-v020fd.is-off strong{color:#991b1b;}
.settings-layout-v020fd{gap:18px;}
.settings-section-v020fd{background:#fff;border:1px solid #dde5f2;border-radius:18px;padding:18px;box-shadow:0 10px 32px rgba(15,23,42,.05);}
.settings-online-section-v020fd{background:linear-gradient(135deg,#f8fbff,#eef6ff);border-color:#cfe0f7;}
.settings-section-head-v020fd{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e5eaf5;}
.settings-section-head-v020fd h3{margin:0;font-size:1.05rem;color:#172033;}
.settings-section-head-v020fd p{margin:4px 0 0 0;color:#64748b;font-size:.9rem;}
.settings-grid-v020fd{grid-template-columns:repeat(3,minmax(190px,1fr));gap:14px;}
.settings-grid-v020fd .settings-wide-v020fd{grid-column:span 2;}
.settings-grid-v020fd .field small{display:block;margin-top:5px;color:#64748b;font-size:.78rem;line-height:1.25;}
.settings-switch-grid-v020fd{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:12px;}
.settings-online-grid-v020fd{grid-template-columns:1.45fr 1fr 1fr;}
.settings-switch-v020fd{display:flex;gap:12px;align-items:flex-start;background:#f8fbff;border:1px solid #d8deeb;border-radius:16px;padding:13px;min-height:74px;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease;}
.settings-switch-v020fd:hover{background:#fff;border-color:#b9c8dd;transform:translateY(-1px);}
.settings-switch-v020fd input{position:absolute;opacity:0;pointer-events:none;}
.settings-switch-ui-v020fd{width:42px;height:24px;border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto;margin-top:1px;transition:background .15s ease;}
.settings-switch-ui-v020fd:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.20);transition:transform .15s ease;}
.settings-switch-v020fd input:checked + .settings-switch-ui-v020fd{background:var(--primary,#2563eb);}
.settings-switch-v020fd input:checked + .settings-switch-ui-v020fd:after{transform:translateX(18px);}
.settings-switch-v020fd strong{display:block;color:#172033;font-size:.93rem;line-height:1.22;}
.settings-switch-v020fd em{display:block;font-style:normal;color:#64748b;font-size:.8rem;line-height:1.28;margin-top:4px;}
.settings-switch-featured-v020fd{background:#eef6ff;border-color:#b8d3f2;box-shadow:inset 4px 0 0 var(--primary,#2563eb);}
.settings-footer-v020fd{justify-content:space-between;align-items:center;border-top:1px solid #e5eaf5;padding-top:14px;}
#settingsMessageV020fd[data-type="success"]{color:#166534;font-weight:800;}
#settingsMessageV020fd[data-type="error"]{color:#991b1b;font-weight:800;}
@media (max-width:1200px){.settings-grid-v020fd,.settings-switch-grid-v020fd,.settings-online-grid-v020fd{grid-template-columns:repeat(2,minmax(180px,1fr));}.settings-grid-v020fd .settings-wide-v020fd{grid-column:span 2;}}
@media (max-width:760px){.settings-grid-v020fd,.settings-switch-grid-v020fd,.settings-online-grid-v020fd{grid-template-columns:1fr}.settings-grid-v020fd .settings-wide-v020fd{grid-column:auto}.settings-footer-v020fd{flex-direction:column;align-items:flex-start}}

/* settings-v020f-j-simple-contact-alignment-v1 */
.settings-contact-section-v020fi .settings-grid-v020fd{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:18px 24px;align-items:start;}
.settings-contact-section-v020fi .settings-grid-v020fd .field{width:100%;max-width:none;min-height:112px;display:flex;flex-direction:column;justify-content:flex-start;}
.settings-contact-section-v020fi .settings-grid-v020fd .field span{min-height:30px;display:flex;align-items:flex-end;margin:0 0 6px 0;}
.settings-contact-section-v020fi .settings-grid-v020fd .field input{width:100%;height:58px;min-height:58px;box-sizing:border-box;}
.settings-contact-section-v020fi .settings-grid-v020fd .field small{display:none;}
.settings-contact-section-v020fi .settings-grid-v020fd .settings-voice-agent-field-v020fe small{display:block;order:2;margin:0 0 6px 0;min-height:22px;color:#64748b;font-weight:700;line-height:1.2;}
.settings-contact-section-v020fi .settings-grid-v020fd .settings-voice-agent-field-v020fe span{order:1;margin-bottom:2px;}
.settings-contact-section-v020fi .settings-grid-v020fd .settings-voice-agent-field-v020fe input{order:3;}
.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="ansprechpartner_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="telefon_inhaber"]){padding-top:30px;}
.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="restaurant_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="webseite"]){grid-column:span 2;}
.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="restaurant_name"]) input,.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="email"]) input,.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="webseite"]) input{font-size:clamp(18px,1.1vw,22px);}
@media (max-width:1200px){.settings-contact-section-v020fi .settings-grid-v020fd{grid-template-columns:repeat(2,minmax(240px,1fr));}.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="restaurant_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="webseite"]){grid-column:span 2;}.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="ansprechpartner_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="telefon_inhaber"]){padding-top:0;}}
@media (max-width:760px){.settings-contact-section-v020fi .settings-grid-v020fd{grid-template-columns:1fr;}.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="restaurant_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="webseite"]){grid-column:auto;}.settings-contact-section-v020fi .settings-grid-v020fd .field{min-height:auto}.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="ansprechpartner_name"]),.settings-contact-section-v020fi .settings-grid-v020fd .field:has(input[data-setup-key="telefon_inhaber"]){padding-top:0;}}
/* settings-v020f-k-voice-agent-readonly-v1 */
.settings-readonly-field-v020fk input.settings-readonly-input-v020fk{background:#f4f7fb !important;color:#475569 !important;border-style:dashed !important;cursor:not-allowed !important;}
.settings-readonly-field-v020fk input.settings-readonly-input-v020fk:focus{box-shadow:none !important;border-color:#cbd5e1 !important;}
.settings-readonly-field-v020fk small{color:#64748b !important;font-weight:700 !important;}



/* SK_TISCHE_MODAL_V021F_START */
.sk-tische-toolbar-v021f{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:16px 0;
  padding:16px 18px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.sk-tische-toolbar-v021f strong{display:block;font-size:16px}
.sk-tische-toolbar-v021f span{display:block;font-size:13px;opacity:.68;margin-top:3px}
.sk-primary-v021f{
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background:#111827;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}
.sk-edit-tisch-v021f{
  border:1px solid rgba(15,23,42,.16);
  border-radius:10px;
  padding:7px 10px;
  background:#fff;
  cursor:pointer;
}
.sk-action-cell-v021f{white-space:nowrap}
.sk-modal-v021f.hidden{display:none}
.sk-modal-v021f{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.sk-modal-backdrop-v021f{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(4px);
}
.sk-modal-card-v021f{
  position:relative;
  width:min(760px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  padding:22px;
}
.sk-modal-head-v021f{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.sk-modal-head-v021f h2{margin:0;font-size:24px;line-height:1.15}
.sk-modal-head-v021f p{margin:6px 0 0;color:#64748b}
.sk-icon-btn-v021f{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  font-size:24px;
  cursor:pointer;
}
.sk-form-grid-v021f{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.sk-form-grid-v021f label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:700;
  color:#0f172a;
}
.sk-form-grid-v021f input,
.sk-form-grid-v021f select{
  min-height:44px;
  border:1px solid rgba(15,23,42,.18);
  border-radius:12px;
  padding:10px 12px;
  font-size:15px;
  background:#fff;
}
.sk-form-grid-v021f input:disabled{
  background:#f8fafc;
  color:#475569;
}
.sk-form-grid-v021f small{
  color:#64748b;
  font-weight:400;
}
.sk-wide-v021f{grid-column:1/-1}
.sk-check-v021f{
  grid-column:1/-1;
  flex-direction:row!important;
  align-items:center;
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  padding:12px;
}
.sk-check-v021f input{min-height:auto;width:18px;height:18px}
.sk-modal-status-v021f{
  min-height:22px;
  margin-top:14px;
  color:#475569;
}
.sk-modal-actions-v021f{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:18px;
  flex-wrap:wrap;
}
.sk-modal-actions-v021f button{
  border:1px solid rgba(15,23,42,.16);
  border-radius:12px;
  padding:10px 14px;
  background:#fff;
  cursor:pointer;
  font-weight:700;
}
.sk-modal-actions-v021f .sk-primary-v021f{background:#111827;color:white;border-color:#111827}
.sk-danger-v021f{color:#991b1b!important;border-color:#fecaca!important;background:#fff5f5!important}
.sk-warn-v021f{color:#92400e!important;border-color:#fed7aa!important;background:#fff7ed!important}
.sk-spacer-v021f{flex:1}
.sk-toast-v021f{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:100000;
  max-width:420px;
  padding:13px 16px;
  border-radius:14px;
  background:#111827;
  color:#fff;
  box-shadow:0 18px 60px rgba(15,23,42,.22);
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.18s ease;
}
.sk-toast-v021f.show{opacity:1;transform:translateY(0)}
.sk-toast-v021f[data-type="success"]{background:#065f46}
.sk-toast-v021f[data-type="error"]{background:#991b1b}
@media(max-width:720px){
  .sk-form-grid-v021f{grid-template-columns:1fr}
  .sk-tische-toolbar-v021f{align-items:flex-start;flex-direction:column}
}
/* SK_TISCHE_MODAL_V021F_END */




/* SK_WETTERAUTOMATIK_V022G_CSS */
.sk-weather-card{
  margin:24px 0;
  padding:22px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 28px rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.08);
}
.sk-weather-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.sk-weather-head h3{
  margin:0 0 6px;
  font-size:20px;
}
.sk-weather-head p{
  margin:0;
  color:#64748b;
}
.sk-weather-badge{
  padding:8px 12px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:13px;
  white-space:nowrap;
}
.sk-weather-badge.is-online{
  background:#dcfce7;
  color:#166534;
}
.sk-weather-badge.is-offline{
  background:#fee2e2;
  color:#991b1b;
}
.sk-weather-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(160px,1fr));
  gap:14px;
}
.sk-weather-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
  color:#334155;
}
.sk-weather-grid input,
.sk-weather-grid select{
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:8px 10px;
  font:inherit;
}
.sk-weather-check{
  justify-content:flex-end;
  flex-direction:row!important;
  align-items:center;
  min-height:68px;
}
.sk-weather-check input{
  min-height:auto;
  width:18px;
  height:18px;
}
.sk-weather-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}
.sk-weather-actions button{
  border:0;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  background:#0f172a;
  color:white;
  font-weight:600;
}
.sk-weather-actions button + button{
  background:#e2e8f0;
  color:#0f172a;
}
.sk-weather-result{
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  background:#f8fafc;
  color:#334155;
  line-height:1.4;
}
@media (max-width:900px){
  .sk-weather-grid{
    grid-template-columns:1fr;
  }
  .sk-weather-head{
    flex-direction:column;
  }
}


/* dom-rebuild-workcopy-v1 */
.sk-app-main {
  min-height: 100vh;
  background: #f6f7f8;
  padding: 24px;
  box-sizing: border-box;
}

.sk-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.sk-shell-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.sk-shell-title {
  font-size: 24px;
  font-weight: 750;
}

.sk-shell-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-nav-btn {
  border: 1px solid #d6d9dd;
  background: white;
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
}

.sk-nav-btn:hover {
  background: #f0f2f4;
}

.sk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sk-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.sk-card h2,
.sk-card h3 {
  margin-top: 0;
}
\n\n

/* dom-zeiten-ui-v1 */

.sk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-list-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid #e3e7eb;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.sk-card-grid {
  align-items: start;
}

.sk-card {
  transition: box-shadow .15s ease;
}

.sk-card:hover {
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

@media (max-width: 768px) {

  .sk-shell-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sk-shell-nav {
    width: 100%;
  }

  .sk-nav-btn {
    flex: 1 1 auto;
  }

}



/* dom-topbar-v1 */

.sk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.sk-topbar-title {
  font-size: 20px;
  font-weight: 700;
}

.sk-topbar-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.sk-topbar-badge {
  background: #111827;
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {

  .sk-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

}



/* dom-sidebar-layout-v1 */

.sk-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  min-height: 100vh;
}

.sk-sidebar {
  background: #111827;
  color: white;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.sk-sidebar-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
}

.sk-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-sidebar-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.84);
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
}

.sk-sidebar-link:hover {
  background: rgba(255,255,255,.08);
}

.sk-sidebar-link.active {
  background: white;
  color: #111827;
  font-weight: 700;
}

.sk-layout-main {
  min-width: 0;
}

@media (max-width: 980px) {

  .sk-layout {
    grid-template-columns: 1fr;
  }

  .sk-sidebar {
    height: auto;
    position: relative;
  }

}



/* dom-devtools-v1 */

.sk-devtools {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 40px));
  max-height: 80vh;
  overflow: auto;
  z-index: 100000;
  background: #0f172a;
  color: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
}

.sk-devtools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sk-devtools-title {
  font-size: 16px;
  font-weight: 700;
}

.sk-devtools-close {
  border: 0;
  background: rgba(255,255,255,.08);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.sk-devtools-json {
  margin: 0;
  padding: 18px;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}



/* dom-error-boundary-v1 */

.sk-error-boundary {
  background: white;
  border: 1px solid #fecaca;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  text-align: center;
}

.sk-error-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.sk-error-title {
  margin: 0 0 10px;
  font-size: 28px;
  color: #991b1b;
}

.sk-error-text {
  color: #6b7280;
  margin-bottom: 20px;
}

.sk-error-stack {
  background: #111827;
  color: #f3f4f6;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.sk-error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sk-btn-primary,
.sk-btn-secondary {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.sk-btn-primary {
  background: #111827;
  color: white;
}

.sk-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}



/* dom-layout-engine-v1-fix */

body[data-layout="mobile"] .sk-layout {
  grid-template-columns: 1fr !important;
}

body[data-layout="mobile"] .sk-sidebar {
  position: relative;
  height: auto;
}

body[data-layout="mobile"] .sk-layout-main {
  min-width: 0;
}

body[data-layout="mobile"] .sk-context-grid {
  grid-template-columns: 1fr;
}

body[data-layout="mobile"] .sk-debug-console {
  width: calc(100vw - 20px);
  left: 10px;
  bottom: 10px;
}

body[data-layout="tablet"] .sk-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}



/* dom-modal-manager-v1 */

.sk-modal-root {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(6px);
}

.sk-modal-window {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100vw - 40px));
  max-height: 90vh;
  overflow: auto;
  border-radius: 28px;
  background: var(--sk-card);
  color: var(--sk-text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 28px;
}

.sk-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 20px;
}



/* dom-datatable-engine-v1-fix */

.sk-datatable-root {
  width: 100%;
  background: var(--sk-card);
  border: 1px solid var(--sk-border);
  border-radius: 22px;
  overflow: hidden;
}

.sk-datatable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--sk-border);
}

.sk-datatable-search {
  width: min(320px,100%);
  border: 1px solid var(--sk-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--sk-card);
  color: var(--sk-text);
}

.sk-datatable {
  width: 100%;
  border-collapse: collapse;
}

.sk-datatable-th {
  background: rgba(99,102,241,.08);
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
}

.sk-datatable-td {
  padding: 14px 16px;
  border-top: 1px solid var(--sk-border);
  font-size: 14px;
}

.sk-datatable-row:hover {
  background: rgba(99,102,241,.05);
}

.sk-datatable-empty {
  padding: 30px !important;
  text-align: center;
  color: var(--sk-muted);
}



/* dom-state-persistence-v1 */

body.state-restored::before {
  content: "State restored";
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 100000;
  background: #111827;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  opacity: .92;
}



/* dom-api-cache-layer-v1 */

.sk-api-cache-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
}



/* dom-query-manager-v1 */

.sk-query-running {
  position: relative;
}

.sk-query-running::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  background: #6366f1;
  animation: skQueryPulse 1s infinite;
}

@keyframes skQueryPulse {

  0% {
    transform: scale(.8);
    opacity: .5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(.8);
    opacity: .5;
  }

}



/* dom-module-registry-v1 */

.sk-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(99,102,241,.10);
  color: #4338ca;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}



/* dom-permission-system-v1 */

.sk-permission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  color: #047857;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.sk-permission-denied {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 18px;
  padding: 18px;
  font-size: 14px;
  font-weight: 700;
}



/* dom-plugin-runtime-v1 */

.sk-plugin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(168,85,247,.12);
  color: #7e22ce;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.sk-plugin-runtime-panel {
  border: 1px dashed #c084fc;
  background: rgba(168,85,247,.06);
  border-radius: 18px;
  padding: 16px;
}



/* dom-realtime-sync-engine-v1 */

.sk-realtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(59,130,246,.12);
  color: #1d4ed8;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.sk-realtime-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  animation: skRealtimePulse 1s infinite;
}

@keyframes skRealtimePulse {

  0% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }

  100% {
    opacity: .4;
    transform: scale(.8);
  }

}



/* dom-job-scheduler-v1 */

.sk-job-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  color: #b45309;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.sk-job-running::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  animation: skJobPulse 1s infinite;
}

@keyframes skJobPulse {

  0% {
    transform: scale(.8);
    opacity: .5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(.8);
    opacity: .5;
  }

}



/* dom-feature-flags-v1 */

.sk-feature-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  color: #047857;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.sk-feature-flag.disabled {
  background: rgba(239,68,68,.12);
  color: #b91c1c;
}



/* dom-telemetry-runtime-v1 */

.sk-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(14,165,233,.12);
  color: #0369a1;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.sk-telemetry-live {
  position: relative;
}

.sk-telemetry-live::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  position: absolute;
  right: -10px;
  top: 50%;
  margin-top: -4px;
  animation: skTelemetryPulse 1s infinite;
}

@keyframes skTelemetryPulse {

  0% {
    transform: scale(.8);
    opacity: .4;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(.8);
    opacity: .4;
  }

}



/* dom-runtime-health-dashboard-v1 */

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

.sk-runtime-card {
  border: 1px solid var(--sk-border);
  background: var(--sk-card);
  border-radius: 22px;
  padding: 20px;
}

.sk-runtime-card-title {
  font-size: 13px;
  color: var(--sk-muted);
  margin-bottom: 10px;
}

.sk-runtime-card-value {
  font-size: 28px;
  font-weight: 800;
}

.sk-runtime-feature-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sk-runtime-feature {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.sk-runtime-feature.enabled {
  background: rgba(16,185,129,.12);
  color: #047857;
}

.sk-runtime-feature.disabled {
  background: rgba(239,68,68,.12);
  color: #b91c1c;
}



/* dom-runtime-dev-console-v1 */

.sk-dev-console {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(680px, calc(100vw - 40px));
  height: min(75vh, 760px);
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  z-index: 999999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 80px rgba(0,0,0,.45);
}

.sk-dev-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom:
    1px solid rgba(255,255,255,.08);
}

.sk-dev-console-title {
  font-size: 15px;
  font-weight: 800;
}

.sk-dev-console-close {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.sk-dev-console-body {
  flex: 1;
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk-dev-console-event {
  border-radius: 18px;
  background:
    rgba(255,255,255,.04);
  padding: 14px;
}

.sk-dev-console-event-type {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 10px;
}

.sk-dev-console-event-payload {
  margin: 0;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
}

