/* cleanom 1.7.2 – black primary palette and workflow corrections */
:root {
  --blue: #000000;
  --blue-dark: #1b1b1b;
  --app-blue: #000000;
  --app-blue-soft: #f1f1f1;
}

.button:not(.secondary):not(.ghost):not(.danger),
.button.primary,
.quick-add,
.login-button,
.booking-page .button,
.manage-page .button {
  background: #000000;
  border-color: #000000;
}
.button:not(.secondary):not(.ghost):not(.danger):hover,
.button.primary:hover,
.quick-add:hover,
.login-button:hover {
  background: #1b1b1b;
  border-color: #1b1b1b;
}
.sidebar nav button.active {
  color: #000;
  background: #f1f1f1;
  box-shadow: inset 3px 0 #000;
}
.sidebar .workspace-icon,
.kpi-icon,
.notice-icon {
  color: #000;
  background: #f0f0f0;
}

/* KPI values form one continuous bar instead of isolated cards. */
.kpi-grid,
.kpi-grid.three {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 21px;
  border: 1px solid var(--app-line, #dfe4ea);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 31, 43, .04);
}
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid .kpi {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--app-line-soft, #e9edf1);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.kpi-grid .kpi:last-child { border-right: 0; }

/* Clearer add-on fields. */
.service-addon-editor::before {
  content: "Name   ·   Beschreibung   ·   Preis brutto   ·   Position / Dauer   ·   Online";
  color: #5d6874;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.service-addon-row input::placeholder { color: #75808b; opacity: 1; }

/* Customer handover and message editor spacing. */
.customer-adopt-button { margin-top: 16px; margin-bottom: 18px; }
.message-composer {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(360px, 1.8fr) auto;
  align-items: end;
  gap: 14px;
  padding: 20px;
  background: #fafbfc;
  border-bottom: 1px solid #e7ebef;
}
.message-composer input,
.message-composer textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: #fff;
}
.message-composer textarea { min-height: 150px; resize: vertical; }
.message-composer .button { min-height: 46px; }
.message-history { padding-top: 10px; }

/* Visible action for orders. */
.appointment-open-button {
  min-width: 128px;
  gap: 7px;
  justify-content: center;
}
.appointment-open-button svg { width: 14px; }

/* Job navigation uses discrete buttons and never a horizontal slider. */
.job-detail-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
  gap: 7px;
  padding: 7px;
}
.job-detail-tabs button {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #dfe4e9;
  background: #fff;
  white-space: normal;
  line-height: 1.25;
}
.job-detail-tabs button.active {
  color: #fff;
  border-color: #000;
  background: #000;
}

.payment-reminder-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d7c28b;
  border-radius: 9px;
  background: #fffaf0;
}
.payment-reminder-callout strong { display: block; margin-bottom: 4px; }
.payment-reminder-callout p { margin: 0; color: #6b5b33; }
.payment-reminder-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Starter white-label restriction is visually explicit. */
.branding-note.locked {
  border: 1px solid #d6d9dd;
  background: repeating-linear-gradient(-45deg, #f7f7f7, #f7f7f7 8px, #f1f1f1 8px, #f1f1f1 16px);
  color: #4d535a;
}
.branding-note.locked > svg { color: #6f747a; }

/* Public booking header: no empty strip above and centered mobile mail icon. */
.booking-page { padding-top: 0 !important; }
.booking-header {
  margin-top: 0 !important;
  border-top: 0;
  border-radius: 0 0 calc(var(--booking-radius, 10px) + 2px) calc(var(--booking-radius, 10px) + 2px);
}
.booking-header > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}
.booking-header > a svg { display: block; flex: 0 0 auto; margin: 0; }

@media (max-width: 1100px) {
  .job-detail-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .message-composer { grid-template-columns: 1fr 1fr; }
  .message-composer textarea { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .kpi-grid,
  .kpi-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid .kpi:nth-child(2n) { border-right: 0; }
  .kpi-grid .kpi:nth-child(n+3) { border-top: 1px solid var(--app-line-soft, #e9edf1); }
  .job-detail-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-reminder-callout { align-items: stretch; flex-direction: column; }
  .payment-reminder-actions .button { flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .booking-header {
    width: 100%;
    margin: 0 !important;
    border-left: 0;
    border-right: 0;
  }
  .booking-header > a {
    display: grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
  }
  .booking-header > a svg { width: 18px; height: 18px; }
  .job-detail-tabs { gap: 6px; padding: 6px; }
  .job-detail-tabs button { min-height: 48px; font-size: 10.5px; }
  .message-composer { grid-template-columns: 1fr; padding: 15px; }
  .message-composer textarea { grid-column: auto; min-height: 180px; }
  .message-composer .button { width: 100%; }
  .appointment-open-button { width: 100%; min-width: 0; }
  .service-addon-editor::before { content: "Felder: Name, Beschreibung, Preis brutto und Position / Dauer"; }
}

/* cleanom 1.7.2 – workflow, booking confirmation and assignment corrections */
.complete-callout .button {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
}

.dashboard-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dashboard-orders-panel { margin-bottom: 21px; }
.dashboard-order-list { display: grid; }
.dashboard-order-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 240px) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--app-line-soft, #e9edf1);
}
.dashboard-order-row:first-child { border-top: 0; }
.dashboard-order-main { display: grid; gap: 3px; min-width: 0; }
.dashboard-order-main strong,
.dashboard-order-main span,
.dashboard-order-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-order-main span { color: #56616d; }
.dashboard-order-main small { color: #79838d; }
.dashboard-order-row select { min-width: 0; }

.checklist-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 4px 0 16px;
  padding: 13px;
  border: 1px solid #e2e6ea;
  border-radius: 9px;
  background: #f8f9fa;
}
.checklist-add-row input { min-width: 0; background: #fff; }

.booking-confirm-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 56px;
}
.booking-confirm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
  padding: 0 4px;
}
.booking-confirm-brand > img,
.booking-confirm-brand > div {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--booking-surface, #fff);
  font-size: 18px;
  font-weight: 800;
}
.booking-confirm-brand span { display: grid; gap: 2px; }
.booking-confirm-brand strong { font-size: 16px; }
.booking-confirm-brand small { color: color-mix(in srgb, var(--booking-text, #26313d) 62%, transparent); }
.booking-confirm-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid color-mix(in srgb, var(--booking-text, #26313d) 13%, transparent);
  border-radius: calc(var(--booking-radius, 10px) + 5px);
  background: var(--booking-surface, #fff);
  box-shadow: 0 18px 55px rgba(22, 31, 42, .10);
  color: var(--booking-text, #26313d);
}
.booking-confirm-card .confirm-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.booking-confirm-card .confirm-icon svg { width: 24px; height: 24px; }
.booking-confirm-kicker {
  margin-bottom: 7px;
  color: #59636e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.booking-confirm-card h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(27px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.booking-confirm-lead {
  max-width: 620px;
  margin: 13px 0 24px;
  color: #606b76;
  font-size: 15px;
  line-height: 1.6;
}
.booking-reference-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #dfe3e7;
  border-radius: 10px;
  background: #f7f8f9;
}
.booking-reference-card span,
.booking-reference-card small { color: #66717c; }
.booking-reference-card strong {
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.booking-confirm-notice,
.booking-payment-card {
  margin-top: 15px;
  padding: 17px 19px;
  border: 1px solid #ded5af;
  border-radius: 10px;
  background: #fffaf0;
}
.booking-confirm-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.booking-confirm-notice span { display: grid; gap: 3px; }
.booking-confirm-notice.neutral { border-color: #dfe3e7; background: #f7f8f9; }
.booking-payment-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.booking-payment-card > div:first-child span { color: #626d78; }
.booking-payment-card > div:first-child strong { font-size: 24px; }
.booking-payment-card dl {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr);
  gap: 8px 18px;
  margin: 0;
}
.booking-payment-card dt { color: #68737e; }
.booking-payment-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.booking-payment-card .payment-reference { font-size: 17px; letter-spacing: .035em; }
.booking-payment-card.compact { display: grid; gap: 7px; }
.booking-payment-card.compact p,
.booking-payment-card > p { margin: 0 0 14px; line-height: 1.55; }
.booking-payment-card.compact p { margin: 0; }
.booking-payment-card.paid { border-color: #bcd9c8; background: #f2fbf5; }
.booking-invoice-download {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 15px;
  padding: 11px 16px;
  border: 1px solid #151515;
  border-radius: 9px;
  color: #151515;
  font-weight: 800;
  text-decoration: none;
}
.booking-invoice-download:hover { background: #f3f3f3; }
.booking-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ea;
}
.booking-confirm-actions > * { flex: 1 1 190px; justify-content: center; }

@media (max-width: 1200px) {
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-kpis .kpi:nth-child(3n) { border-right: 0; }
  .dashboard-kpis .kpi:nth-child(n+4) { border-top: 1px solid var(--app-line-soft, #e9edf1); }
}

@media (max-width: 820px) {
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpis .kpi:nth-child(3n) { border-right: 1px solid var(--app-line-soft, #e9edf1); }
  .dashboard-kpis .kpi:nth-child(2n) { border-right: 0; }
  .dashboard-kpis .kpi:nth-child(n+3) { border-top: 1px solid var(--app-line-soft, #e9edf1); }
  .dashboard-order-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-order-row select,
  .dashboard-order-row .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .checklist-add-row { grid-template-columns: 1fr; }
  .checklist-add-row .button { width: 100%; }
  .booking-confirm-shell { width: 100%; padding: 0 0 30px; }
  .booking-confirm-brand { padding: 15px 18px; margin: 0; }
  .booking-confirm-card { border-left: 0; border-right: 0; border-radius: 0; padding: 25px 18px 30px; box-shadow: none; }
  .booking-payment-card dl { grid-template-columns: 1fr; gap: 2px; }
  .booking-payment-card dd { margin-bottom: 8px; }
  .booking-confirm-actions { flex-direction: column; }
  .booking-confirm-actions > * { flex-basis: auto; width: 100%; }
}
