/* Cleanex Customer Panel v2 — isolated application component. */
:root {
  --cxcp-header-height: 76px;
  --cxcp-border: rgba(173, 204, 231, .18);
  --cxcp-surface: rgba(8, 23, 38, .94);
  --cxcp-surface-soft: rgba(15, 37, 58, .72);
  --cxcp-text: #f5f9fc;
  --cxcp-muted: #9fb3c5;
  --cxcp-accent: #75b900;
  --cxcp-accent-strong: #91d314;
  --cxcp-background-image: none;
}

html:has(body.cxcp-page-body),
body.cxcp-page-body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #06111e;
}

body.cxcp-page-body main.cxcp-page.cleanex-standalone-app {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(110deg, rgba(3, 12, 22, .96), rgba(4, 18, 30, .82) 52%, rgba(3, 13, 23, .94)),
    var(--cxcp-background-image) center / cover no-repeat !important;
  isolation: isolate;
}

body.cxcp-page-body main.cxcp-page.cleanex-standalone-app::before,
body.cxcp-page-body main.cxcp-page.cleanex-standalone-app::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: var(--cxcp-header-height) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  pointer-events: auto !important;
}

body.cxcp-page-body main.cxcp-page > .cxcp-content {
  position: absolute !important;
  inset: var(--cxcp-header-height) 0 0 !important;
  z-index: 10 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 24px 24px !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.cxcp-shell,
.cxcp-shell * {
  box-sizing: border-box;
}

.cxcp-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1640px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  color: var(--cxcp-text);
  background: var(--cxcp-surface);
  border: 1px solid var(--cxcp-border);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  isolation: isolate;
  pointer-events: auto;
}

.cxcp-shell::before,
.cxcp-shell::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

.cxcp-nav {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding: 24px 16px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 38, 60, .98), rgba(7, 22, 37, .98));
  border-right: 1px solid var(--cxcp-border);
  pointer-events: auto;
}

.cxcp-nav__heading {
  display: grid;
  gap: 4px;
  padding: 0 10px 14px;
  border-bottom: 1px solid var(--cxcp-border);
}

.cxcp-nav__heading strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.cxcp-nav__heading small,
.cxcp-nav__eyebrow {
  color: var(--cxcp-muted);
  font-size: .74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cxcp-nav__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.cxcp-nav__tabs {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cxcp-nav__tab,
.cxcp-nav__back {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  color: #dce8f2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.cxcp-nav__tab:hover,
.cxcp-nav__tab:focus-visible,
.cxcp-nav__back:hover,
.cxcp-nav__back:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .1);
  outline: none;
}

.cxcp-nav__tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(117, 185, 0, .26), rgba(117, 185, 0, .12));
  border-color: rgba(145, 211, 20, .34);
  box-shadow: inset 3px 0 0 var(--cxcp-accent-strong);
}

.cxcp-nav__back {
  margin-top: auto;
  color: var(--cxcp-muted);
}

.cxcp-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(22px, 2.4vw, 38px);
  background: linear-gradient(160deg, rgba(4, 15, 26, .64), rgba(11, 29, 45, .36));
  scrollbar-width: thin;
  pointer-events: auto;
}

.cxcp-preview-note {
  margin: 0 0 20px;
  padding: 10px 13px;
  color: #cde2f1;
  background: rgba(117, 185, 0, .1);
  border: 1px solid rgba(117, 185, 0, .24);
  border-radius: 10px;
  font-size: .85rem;
}

.cxcp-view[hidden],
.cxcp-subtabs__panel[hidden] {
  display: none !important;
}

.cxcp-view {
  min-width: 0;
  animation: cxcp-fade .16s ease;
}

@keyframes cxcp-fade {
  from { opacity: .45; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

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

.cxcp-view__header h1,
.cxcp-section-title h2 {
  margin: 4px 0 0;
  color: #fff;
  letter-spacing: -.025em;
}

.cxcp-view__header h1 {
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  line-height: 1.04;
}

.cxcp-view__header p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--cxcp-muted);
  line-height: 1.55;
}

.cxcp-kicker,
.cxcp-section-title span {
  display: block;
  color: #9ed12c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cxcp-primary-action,
.cxcp-shell .cleanex-btn {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: #0a1603;
  background: linear-gradient(135deg, var(--cxcp-accent-strong), var(--cxcp-accent));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(117, 185, 0, .2);
  font: inherit;
  font-size: .87rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.cxcp-primary-action:hover,
.cxcp-primary-action:focus-visible,
.cxcp-shell .cleanex-btn:hover,
.cxcp-shell .cleanex-btn:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(145, 211, 20, .35);
  outline-offset: 2px;
}

.cxcp-shell .cleanex-btn--ghost {
  color: #dce8f2;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cxcp-border);
  box-shadow: none;
}

.cxcp-empty,
.cxcp-shell .cleanex-customer-empty-card,
.cxcp-shell .cleanex-empty-state {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--cxcp-muted);
  background: rgba(255, 255, 255, .035);
  border: 1px dashed rgba(173, 204, 231, .22);
  border-radius: 14px;
}

.cxcp-empty strong,
.cxcp-shell .cleanex-customer-empty-card strong {
  color: #f4f8fb;
}

.cxcp-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.cxcp-section-title {
  margin-bottom: 13px;
}

.cxcp-section-title h2 {
  font-size: 1.08rem;
}

.cxcp-shell .cleanex-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cxcp-border);
  border-radius: 14px;
  background: rgba(4, 15, 25, .46);
}

.cxcp-shell .cleanex-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #dfeaf2;
}

.cxcp-shell .cleanex-table th,
.cxcp-shell .cleanex-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(173, 204, 231, .1);
  text-align: left;
  vertical-align: middle;
}

.cxcp-shell .cleanex-table th {
  color: #a9bdcb;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cxcp-shell .cleanex-card,
.cxcp-shell .cleanex-order-card,
.cxcp-shell .cleanex-customer-order-card,
.cxcp-shell .cleanex-contract-card,
.cxcp-shell .cleanex-recommendation-card {
  color: var(--cxcp-text);
  background: rgba(255, 255, 255, .045);
  border-color: var(--cxcp-border);
  box-shadow: none;
}

.cxcp-shell .cleanex-panel-lead,
.cxcp-shell .cleanex-muted,
.cxcp-shell small {
  color: var(--cxcp-muted);
}

.cxcp-subtabs {
  display: grid;
  gap: 18px;
}

.cxcp-subtabs__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cxcp-border);
}

.cxcp-subtabs__button {
  appearance: none;
  min-height: 40px;
  padding: 9px 14px;
  color: #c9d8e4;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--cxcp-border);
  border-radius: 9px;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}

.cxcp-subtabs__button.is-active {
  color: #fff;
  background: rgba(117, 185, 0, .18);
  border-color: rgba(145, 211, 20, .34);
}

.cxcp-form,
.cxcp-shell .cleanex-form,
.cxcp-shell form {
  display: grid;
  gap: 16px;
}

.cxcp-form label,
.cxcp-shell .cleanex-form label,
.cxcp-shell form > label {
  display: grid;
  gap: 7px;
  color: #d8e5ee;
  font-size: .84rem;
  font-weight: 700;
}

.cxcp-form input,
.cxcp-form select,
.cxcp-form textarea,
.cxcp-shell .cleanex-form input,
.cxcp-shell .cleanex-form select,
.cxcp-shell .cleanex-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #f4f8fb;
  background: rgba(3, 13, 22, .76);
  border: 1px solid rgba(173, 204, 231, .2);
  border-radius: 9px;
  font: inherit;
  outline: none;
}

.cxcp-form textarea,
.cxcp-shell .cleanex-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cxcp-form input:focus,
.cxcp-form select:focus,
.cxcp-form textarea:focus,
.cxcp-shell .cleanex-form input:focus,
.cxcp-shell .cleanex-form select:focus,
.cxcp-shell .cleanex-form textarea:focus {
  border-color: rgba(145, 211, 20, .62);
  box-shadow: 0 0 0 3px rgba(117, 185, 0, .12);
}

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

.cxcp-issues {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--cxcp-border);
  border-radius: 12px;
}

.cxcp-issues legend {
  padding: 0 7px;
  color: #fff;
  font-weight: 800;
}

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

.cxcp-issues__grid label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--cxcp-border);
  border-radius: 9px;
  cursor: pointer;
}

.cxcp-issues__grid input {
  width: auto;
  min-height: auto;
}

.cxcp-shell--preview {
  width: 100%;
  height: min(760px, calc(100dvh - 150px));
  min-height: 640px;
  grid-template-columns: 240px minmax(0, 1fr);
  margin: 0;
  border-radius: 16px;
}

/* Existing customer settings/order helper markup stays functional but is visually scoped. */
.cxcp-shell .cleanex-customer-settings,
.cxcp-shell .cleanex-customer-addresses,
.cxcp-shell .cleanex-customer-stack,
.cxcp-shell .cleanex-customer-order-groups,
.cxcp-shell .cleanex-customer-contracts,
.cxcp-shell .cleanex-customer-ticket-list {
  min-width: 0;
  max-width: 100%;
}

.cxcp-shell .cleanex-customer-address-row {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(280px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 980px) {
  html:has(body.cxcp-page-body),
  body.cxcp-page-body {
    overflow: auto;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-standalone-app {
    position: relative !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
    position: relative !important;
    min-height: var(--cxcp-header-height) !important;
  }

  body.cxcp-page-body main.cxcp-page > .cxcp-content {
    position: relative !important;
    inset: auto !important;
    min-height: calc(100dvh - var(--cxcp-header-height)) !important;
    padding: 12px !important;
    overflow: visible !important;
  }

  .cxcp-shell,
  .cxcp-shell--preview {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - var(--cxcp-header-height) - 24px);
  }

  .cxcp-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: block;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--cxcp-border);
  }

  .cxcp-nav__heading {
    display: none;
  }

  .cxcp-nav__tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }

  .cxcp-nav__tab {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 8px 12px;
  }

  .cxcp-nav__tab.is-active {
    box-shadow: inset 0 -3px 0 var(--cxcp-accent-strong);
  }

  .cxcp-nav__back {
    display: none;
  }

  .cxcp-main {
    min-height: 0;
    overflow: visible;
    padding: 22px 16px 32px;
  }

  .cxcp-columns,
  .cxcp-form__grid,
  .cxcp-issues__grid {
    grid-template-columns: 1fr;
  }

  .cxcp-shell .cleanex-customer-address-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cxcp-view__header {
    display: grid;
  }

  .cxcp-primary-action {
    width: 100%;
  }

  .cxcp-main {
    padding: 18px 12px 28px;
  }
}

/* v0.9.25: stabilne menu boczne — pełny obszar kliknięcia i izolacja od globalnych handlerów. */
.cxcp-nav {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.cxcp-nav__tabs {
  position: relative;
  z-index: 3;
  overflow: visible;
  flex: 0 0 auto;
  pointer-events: auto !important;
}

.cxcp-nav__tab {
  position: relative;
  z-index: 4;
  isolation: isolate;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto !important;
}

.cxcp-nav__tab::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.cxcp-nav__tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(38, 152, 255, .28), rgba(38, 152, 255, .12));
  border-color: rgba(74, 169, 255, .44);
  box-shadow: inset 3px 0 0 #2698ff;
}

.cxcp-nav__tab:active {
  transform: translateY(1px);
}

.cxcp-nav__tab:focus-visible {
  outline: 2px solid rgba(74, 169, 255, .78);
  outline-offset: 2px;
}

.cxcp-shell[data-cleanex-tabs] .cxcp-nav__tab,
.cxcp-shell[data-cleanex-tabs] .cxcp-main {
  pointer-events: auto !important;
}

@media (max-width: 980px) {
  .cxcp-nav {
    overflow: visible;
  }

  .cxcp-nav__tabs {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cxcp-nav__tab.is-active {
    box-shadow: inset 0 -3px 0 #2698ff;
  }
}


/* v0.9.26: zakładki są prawdziwymi linkami — działają także bez JavaScriptu. */
a.cxcp-nav__tab {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}


/* v0.9.28: shared-controller details, customer settings and customer-only header controls. */
body.cxcp-page-body .site-search {
  display: none !important;
}

.cxcp-shell .cleanex-customer-order-detail-row:not([hidden]) {
  display: table-row !important;
}

.cxcp-shell [data-customer-details-toggle][aria-expanded="true"] {
  color: #071302;
  background: linear-gradient(135deg, var(--cxcp-accent-strong), var(--cxcp-accent));
  border-color: transparent;
}

.cxcp-shell .cleanex-customer-settings-form {
  display: grid !important;
  gap: 18px;
  margin: 0;
}

.cxcp-shell .cleanex-customer-settings-block {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  color: var(--cxcp-text);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--cxcp-border);
  border-radius: 14px;
}

.cxcp-shell .cleanex-customer-settings-block .cleanex-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cxcp-shell .cleanex-customer-settings-block h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.12rem;
}

.cxcp-shell .cleanex-customer-settings-block small,
.cxcp-shell .cleanex-field-hint {
  color: var(--cxcp-muted);
  line-height: 1.5;
}

.cxcp-shell .cleanex-form-grid--company {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cxcp-shell .cleanex-address-list {
  display: grid;
  gap: 10px;
}

.cxcp-shell .cleanex-address-row {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.35fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  padding: 12px;
  background: rgba(3, 13, 22, .42);
  border: 1px solid rgba(173, 204, 231, .13);
  border-radius: 11px;
}

.cxcp-shell .cleanex-address-row > label {
  min-width: 0;
}

@media (max-width: 820px) {
  .cxcp-shell .cleanex-form-grid--company,
  .cxcp-shell .cleanex-address-row {
    grid-template-columns: 1fr !important;
  }

  .cxcp-shell .cleanex-customer-settings-block .cleanex-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.9.31: repeat purchase and minimalist customer ticket workspace. */
.cleanex-repeat-order-form { margin: 0; }
.cleanex-btn.is-disabled { opacity: .55; pointer-events: none; }
.cleanex-customer-ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(74, 155, 230, .24);
  border-radius: 14px;
  background: rgba(10, 27, 44, .74);
  color: #eef7ff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cleanex-customer-ticket-card:hover { border-color: rgba(47, 154, 255, .72); background: rgba(14, 39, 64, .9); transform: translateY(-1px); }
.cleanex-customer-ticket-card > div:first-child { display: grid; gap: 5px; min-width: 0; }
.cleanex-customer-ticket-card > div:first-child small,
.cleanex-customer-ticket-card > div:first-child span { color: rgba(184, 205, 224, .78); }
.cleanex-customer-ticket-card > div:first-child strong { font-size: .98rem; color: #fff; }
.cleanex-customer-ticket-card__meta { display: grid; justify-items: end; gap: 7px; min-width: 190px; }
.cleanex-customer-ticket-card__meta b { color: #63b5ff; font-size: .8rem; }
.cxcp-ticket-detail { display: grid; gap: 18px; max-width: 1120px; margin: 0 auto; }
.cxcp-ticket-detail__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cxcp-ticket-back { color: #82c5ff; text-decoration: none; font-weight: 800; font-size: .8rem; }
.cxcp-ticket-detail__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 4px; }
.cxcp-ticket-detail__header h1 { margin: 6px 0 4px; font-size: clamp(1.55rem, 3vw, 2.55rem); color: #fff; }
.cxcp-ticket-detail__header p { margin: 0; color: rgba(190, 210, 228, .74); }
.cxcp-ticket-summary { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(74, 155, 230, .2); border-radius: 14px; background: rgba(8, 24, 39, .68); }
.cxcp-ticket-summary > div:first-child > span { color: #7bbfff; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cxcp-ticket-summary p { margin: 8px 0 0; color: rgba(236, 246, 255, .88); }
.cxcp-ticket-issues { display: flex; flex-wrap: wrap; gap: 7px; }
.cxcp-ticket-issues span { padding: 6px 9px; border-radius: 999px; background: rgba(47, 154, 255, .12); color: #a9d8ff; font-size: .7rem; font-weight: 800; }
.cxcp-file-field input[type=file], .cleanex-ticket-upload input[type=file] { padding: 12px; border-style: dashed; background: rgba(255,255,255,.025); }
.cxcp-file-field small, .cleanex-ticket-upload small { display: block; margin-top: 6px; color: rgba(178, 198, 218, .65); font-size: .68rem; }
.cleanex-ticket-progress { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(74, 155, 230, .2); border-radius: 14px; background: rgba(7, 21, 35, .74); }
.cleanex-ticket-progress__head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.cleanex-ticket-progress__head span { color: #70b9fb; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cleanex-ticket-progress__head strong { color: rgba(231, 243, 253, .86); font-size: .78rem; }
.cleanex-ticket-progress__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cleanex-ticket-progress__steps li { position: relative; display: flex; gap: 9px; align-items: center; min-width: 0; color: rgba(162, 185, 205, .55); }
.cleanex-ticket-progress__steps li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 36px; right: -6px; height: 2px; background: rgba(100, 145, 184, .16); }
.cleanex-ticket-progress__steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgba(100, 145, 184, .28); border-radius: 50%; background: #0b1c2c; color: inherit; font-style: normal; font-size: .7rem; font-weight: 900; }
.cleanex-ticket-progress__steps div { display: grid; gap: 2px; min-width: 0; }
.cleanex-ticket-progress__steps strong { color: inherit; font-size: .72rem; }
.cleanex-ticket-progress__steps small { color: inherit; font-size: .6rem; }
.cleanex-ticket-progress__steps li.is-done,
.cleanex-ticket-progress__steps li.is-current { color: #6cb9ff; }
.cleanex-ticket-progress__steps li.is-current i { background: #2196f3; border-color: #67c0ff; color: #04111d; box-shadow: 0 0 0 5px rgba(33, 150, 243, .12); }
.cleanex-ticket-progress__steps li.is-done i { background: rgba(33, 150, 243, .22); border-color: rgba(71, 175, 255, .65); }
.cleanex-ticket-progress__steps li.is-done:not(:last-child)::after { background: rgba(47, 154, 255, .55); }
.cleanex-ticket-conversation { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(74, 155, 230, .2); border-radius: 14px; background: rgba(7, 21, 35, .76); }
.cleanex-ticket-conversation__head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.cleanex-ticket-conversation__head span { color: #70b9fb; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cleanex-ticket-conversation__head h2 { margin: 4px 0 0; color: #fff; font-size: 1.2rem; }
.cleanex-ticket-conversation__head small { max-width: 360px; color: rgba(178, 198, 218, .65); text-align: right; }
.cleanex-ticket-chat { display: grid; gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 5px; }
.cleanex-ticket-chat__message { width: min(82%, 720px); padding: 12px 14px; border: 1px solid rgba(83, 141, 190, .2); border-radius: 14px; background: rgba(14, 35, 54, .86); }
.cleanex-ticket-chat__message.is-customer { justify-self: end; border-bottom-right-radius: 4px; background: rgba(21, 79, 122, .72); }
.cleanex-ticket-chat__message.is-operator { justify-self: start; border-bottom-left-radius: 4px; }
.cleanex-ticket-chat__message.is-system { justify-self: center; width: auto; max-width: 90%; padding: 8px 12px; background: rgba(47, 154, 255, .09); border-style: dashed; text-align: center; }
.cleanex-ticket-chat__message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cleanex-ticket-chat__message header strong { color: #fff; font-size: .75rem; }
.cleanex-ticket-chat__message header time { color: rgba(190, 210, 228, .58); font-size: .62rem; }
.cleanex-ticket-chat__body p { margin: 0; color: rgba(239, 248, 255, .9); font-size: .83rem; line-height: 1.55; }
.cleanex-ticket-reply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr) auto; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid rgba(90, 151, 203, .16); }
.cleanex-ticket-reply label { display: grid; gap: 6px; color: rgba(207, 224, 239, .82); font-size: .68rem; font-weight: 800; }
.cleanex-ticket-reply textarea, .cleanex-ticket-reply input[type=file] { width: 100%; min-height: 46px; border: 1px solid rgba(79, 150, 211, .28); border-radius: 10px; background: rgba(4, 15, 25, .68); color: #fff; padding: 10px 12px; }
.cleanex-ticket-reply textarea { resize: vertical; min-height: 84px; }
.cleanex-ticket-chat__closed { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(206, 223, 237, .76); }
.cleanex-ticket-media-grid, .cleanex-ticket-files-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin-top: 10px; }
.cleanex-ticket-media { margin: 0; overflow: hidden; border: 1px solid rgba(81, 148, 205, .22); border-radius: 10px; background: rgba(2, 12, 21, .62); }
.cleanex-ticket-media img, .cleanex-ticket-media video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #02080d; }
.cleanex-ticket-media figcaption { padding: 7px 9px; color: rgba(197, 216, 231, .72); font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .cleanex-customer-ticket-card { grid-template-columns: 1fr; }
  .cleanex-customer-ticket-card__meta { justify-items: start; min-width: 0; }
  .cleanex-ticket-progress__steps { grid-template-columns: 1fr 1fr; }
  .cleanex-ticket-progress__steps li::after { display: none; }
  .cleanex-ticket-reply { grid-template-columns: 1fr; }
  .cleanex-ticket-conversation__head { display: grid; }
  .cleanex-ticket-conversation__head small { text-align: left; }
}
@media (max-width: 560px) {
  .cxcp-ticket-detail__header, .cxcp-ticket-detail__top { display: grid; }
  .cleanex-ticket-progress__steps { grid-template-columns: 1fr; }
  .cleanex-ticket-chat__message { width: 94%; }
}

/* v0.9.32: stable anchor fallback when ticket forms reload without JavaScript. */
.cleanex-ticket-conversation[id],
.cleanex-ticket-status-form[id] {
  scroll-margin-top: 1rem;
}

/* v0.9.34: wewnętrzne zakładki ustawień klienta. */
.cxcp-shell .cleanex-customer-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(74, 155, 230, .18);
  border-radius: 14px;
  background: rgba(4, 17, 29, .56);
}

.cxcp-shell .cleanex-customer-settings-tabs .cleanex-btn {
  min-height: 38px;
  padding: 0 14px;
}

.cxcp-shell .cleanex-customer-settings-tabs .cleanex-btn.is-active {
  border-color: rgba(38, 152, 255, .7);
  background: rgba(38, 152, 255, .16);
  color: #fff;
}

.cxcp-shell .cleanex-customer-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 2px;
  background: linear-gradient(180deg, rgba(4, 14, 24, 0), rgba(4, 14, 24, .96) 38%);
}


/* v0.9.36: Help Desk 24/7 w bocznym menu panelu klienta. */
.cxcp-nav__footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.cxcp-nav__footer .cxcp-nav__back {
  margin-top: 0;
}

.cxcp-helpdesk {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  color: #eaf5ff;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(38, 152, 255, .13), rgba(7, 25, 42, .8));
  border: 1px solid rgba(58, 164, 255, .28);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.cxcp-helpdesk:hover,
.cxcp-helpdesk:focus-visible {
  color: #fff;
  background: linear-gradient(145deg, rgba(38, 152, 255, .22), rgba(9, 32, 52, .92));
  border-color: rgba(70, 174, 255, .58);
  transform: translateY(-1px);
  outline: none;
}

.cxcp-helpdesk__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #5bb5ff;
  background: rgba(38, 152, 255, .12);
  border: 1px solid rgba(70, 174, 255, .3);
  border-radius: 12px;
}

.cxcp-helpdesk__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cxcp-helpdesk__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cxcp-helpdesk__copy small {
  color: #71bdff;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cxcp-helpdesk__copy strong {
  color: #fff;
  font-size: .83rem;
  line-height: 1.25;
}

.cxcp-helpdesk__copy > span {
  color: var(--cxcp-muted);
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .cxcp-nav__footer {
    display: block;
    margin-top: 9px;
  }

  .cxcp-helpdesk {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 48px;
    padding: 7px 10px;
  }

  .cxcp-helpdesk__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .cxcp-helpdesk__copy {
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: baseline;
  }

  .cxcp-helpdesk__copy small {
    display: none;
  }

  .cxcp-helpdesk__copy strong {
    font-size: .78rem;
  }

  .cxcp-helpdesk__copy > span {
    font-size: .74rem;
    text-align: right;
  }
}

@media (max-width: 620px) {
  .cxcp-helpdesk__copy > span {
    display: none;
  }
}

/* v0.9.37: panel klienta wykorzystuje pełną szerokość obszaru pod nagłówkiem. */
@media (min-width: 981px) {
  body.cxcp-page-body main.cxcp-page.cleanex-standalone-app > .cxcp-content {
    width: 100% !important;
    max-width: none !important;
    padding: 8px 12px 12px !important;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-standalone-app > .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* v0.9.38: układ panelu klienta zgodny z pełnoekranowym workspace panelu operatora. */
@media (min-width: 981px) {
  body.cxcp-page-body {
    overflow: hidden !important;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-standalone-app {
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 4.9rem !important;
    margin: 0 !important;
    padding-left: clamp(1rem, 2vw, 2rem) !important;
    padding-right: clamp(1rem, 2vw, 2rem) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 1rem 1rem !important;
    background: rgba(2, 9, 18, .94) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header .site-nav {
    gap: clamp(1.6rem, 4vw, 4.5rem) !important;
  }

  body.cxcp-page-body main.cxcp-page > .cxcp-content {
    position: absolute !important;
    inset: 4.9rem 0 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: calc(100dvh - 4.9rem) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.cxcp-page-body .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview) {
    width: 100vw !important;
    max-width: none !important;
    height: calc(100dvh - 4.9rem) !important;
    min-height: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: clamp(190px, 13vw, 238px) minmax(0, 1fr) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(3, 13, 24, .56) !important;
    box-shadow: none !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-nav {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 8 !important;
    width: 100% !important;
    height: calc(100dvh - 4.9rem) !important;
    min-height: 0 !important;
    gap: .7rem !important;
    padding: .9rem .72rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 0 !important;
    border-right: 1px solid rgba(84, 158, 234, .18) !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(3, 13, 24, .96), rgba(4, 16, 29, .90)) !important;
    box-shadow: 18px 0 42px rgba(0, 0, 0, .16) !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading {
    padding: 0 .55rem .8rem !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading strong {
    font-size: .98rem !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tabs {
    gap: .45rem !important;
    overflow: visible !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab,
  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back {
    min-height: 2.65rem !important;
    margin: 0 !important;
    padding: 0 .85rem !important;
    border-radius: .75rem !important;
    font-size: .88rem !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main {
    width: 100% !important;
    height: calc(100dvh - 4.9rem) !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(5, 16, 29, .62), rgba(7, 19, 35, .70)) !important;
    box-shadow: none !important;
    padding: clamp(1rem, 1.4vw, 1.55rem) clamp(1.15rem, 1.9vw, 2rem) 2.2rem !important;
    scrollbar-color: rgba(38, 152, 255, .88) rgba(255, 255, 255, .06) !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar {
    width: 10px;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .045);
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #31a7ff, #1378d1);
    border: 2px solid rgba(3, 13, 24, .9);
    border-radius: 999px;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-view {
    max-width: none !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-view__header h1 {
    font-size: clamp(2rem, 2.55vw, 3.15rem) !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__footer {
    gap: .65rem !important;
  }

  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) .cxcp-helpdesk {
    min-height: 68px !important;
    padding: 10px !important;
    border-radius: .8rem !important;
  }
}

@media (min-width: 1600px) {
  body.cxcp-page-body .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview) {
    grid-template-columns: 250px minmax(0, 1fr) !important;
  }
}


/* v0.9.39: wyrownanie gornego menu panelu klienta bez zmian w workspace. */
@media (min-width: 981px) {
  body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: clamp(1rem, 2vw, 2rem) !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-logo {
    justify-self: start !important;
    margin: 0 !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-nav {
    justify-self: center !important;
    width: max-content !important;
    margin: 0 !important;
    flex: none !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-actions {
    justify-self: end !important;
    width: max-content !important;
    margin: 0 !important;
  }
}


/* v0.9.40: naglowek panelu klienta jako pelna belka aplikacji przyklejona do krawedzi ekranu. */
@media (min-width: 981px) {
  body.cxcp-page-body,
  body.cxcp-page-body main.cxcp-page.cleanex-standalone-app {
    padding: 0 !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 clamp(1rem, 1.8vw, 1.65rem) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(84, 158, 234, .18) !important;
    border-radius: 0 !important;
    background: rgba(2, 9, 18, .97) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18) !important;
  }

  body.cxcp-page-body main.cxcp-page > .cxcp-content {
    position: absolute !important;
    inset: 4.9rem 0 0 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 4.9rem) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* v0.9.41: prawdziwy app-shell — bez paska admina, bez górnej szczeliny, niższy header. */
@media (min-width: 981px) {
  html:has(body.cxcp-page-body),
  html.admin-bar:has(body.cxcp-page-body),
  body.cxcp-page-body,
  body.cxcp-page-body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.cxcp-page-body #wpadminbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    box-sizing: border-box !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    height: 70px !important;
    min-height: 70px !important;
    margin: 0 !important;
    padding: 0 clamp(18px, 1.8vw, 30px) !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(84, 158, 234, .18) !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-logo,
  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-nav,
  body.cxcp-page-body main.cxcp-page > .cleanex-global-header > .site-actions {
    align-self: center !important;
  }

  body.cxcp-page-body main.cxcp-page > .cxcp-content {
    inset: 70px 0 0 0 !important;
    width: 100dvw !important;
    height: calc(100dvh - 70px) !important;
  }

  body.cxcp-page-body .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview),
  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-nav,
  body.cxcp-page-body .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main {
    height: calc(100dvh - 70px) !important;
  }
}


/* v0.9.42: panel klienta korzysta z tego samego pełnoekranowego app-shella co panel operatora. */
@media (min-width: 981px) {
  html:has(body.cxcp-page-body),
  html.admin-bar:has(body.cxcp-page-body),
  body.cxcp-page-body,
  body.cxcp-page-body.admin-bar,
  body.cxcp-page-body main.cxcp-page.cleanex-customer-page.cleanex-standalone-app {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-customer-page.cleanex-standalone-app {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > .cleanex-global-header,
  body.cxcp-page-body main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > header.cleanex-global-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;
    height: 70px !important;
    min-height: 70px !important;
    margin: 0 !important;
    padding: 0 clamp(18px, 1.8vw, 30px) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(84, 158, 234, .18) !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body.cxcp-page-body main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > .cxcp-content.cleanex-page-content.cleanex-customer-content {
    position: absolute !important;
    inset: 70px 0 0 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: calc(100dvh - 70px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* v0.9.43: Pakiet A — rekomendacje, filtry zakupów, płatności, dokumenty i archiwum. */
.cxcp-inline-notice {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  color: #dff7ff;
  background: rgba(38, 152, 255, .12);
  border: 1px solid rgba(38, 152, 255, .3);
  border-radius: .8rem;
  font-size: .82rem;
  font-weight: 800;
}

.cxcp-shell .cleanex-rec-card {
  align-content: start;
}

.cxcp-rec-add-form {
  display: grid;
  gap: .38rem;
  align-self: end;
  margin-top: auto;
}

.cxcp-rec-add-form .cleanex-btn {
  width: 100%;
}

.cxcp-rec-add-status {
  min-height: 1em;
  color: #94d8ff !important;
  font-size: .68rem !important;
}

.cxcp-shell .cleanex-rec-card.is-added {
  border-color: rgba(117, 185, 0, .52);
  box-shadow: 0 0 0 1px rgba(117, 185, 0, .16), 0 14px 32px rgba(117, 185, 0, .08);
}

.cxcp-purchase-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .65fr) minmax(170px, .72fr) auto auto;
  gap: .7rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: .85rem;
  border: 1px solid rgba(84, 158, 234, .2);
  border-radius: .95rem;
  background: rgba(8, 25, 43, .62);
}

.cxcp-purchase-toolbar label {
  display: grid;
  gap: .35rem;
  color: rgba(205, 225, 242, .72);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.cxcp-purchase-toolbar input[type="search"],
.cxcp-purchase-toolbar select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0 .72rem;
  color: #fff;
  background: rgba(3, 14, 24, .8);
  border: 1px solid rgba(94, 164, 226, .24);
  border-radius: .7rem;
  outline: none;
}

.cxcp-purchase-toolbar input[type="search"]:focus,
.cxcp-purchase-toolbar select:focus {
  border-color: rgba(38, 152, 255, .75);
  box-shadow: 0 0 0 3px rgba(38, 152, 255, .12);
}

.cxcp-purchase-toolbar__archive {
  display: flex !important;
  min-height: 2.65rem;
  align-items: center;
  gap: .48rem !important;
  padding: 0 .7rem;
  border: 1px solid rgba(94, 164, 226, .18);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .025);
  white-space: nowrap;
}

.cxcp-purchase-toolbar__archive input {
  accent-color: #2698ff;
}

.cxcp-purchase-toolbar__actions {
  display: flex;
  gap: .45rem;
}

.cxcp-purchase-toolbar__count {
  grid-column: 1 / -1;
  color: rgba(184, 207, 226, .58);
  font-size: .68rem;
}

.cxcp-purchase-table td:last-child {
  min-width: 250px;
}

.cxcp-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.cxcp-order-actions form {
  margin: 0;
}

.cxcp-order-actions .cleanex-btn {
  min-height: 2.45rem;
  padding-inline: .72rem;
  font-size: .72rem;
  white-space: nowrap;
}

.cxcp-purchase-table tr.is-archived {
  opacity: .72;
}

.cxcp-archive-badge {
  display: inline-flex;
  margin-top: .35rem;
  padding: .2rem .45rem;
  color: rgba(215, 230, 242, .78);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .cxcp-purchase-toolbar {
    grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(150px, .7fr));
  }
  .cxcp-purchase-toolbar__archive,
  .cxcp-purchase-toolbar__actions {
    align-self: end;
  }
}

@media (max-width: 820px) {
  .cxcp-purchase-toolbar {
    grid-template-columns: 1fr;
  }
  .cxcp-purchase-toolbar__count {
    grid-column: auto;
  }
  .cxcp-purchase-toolbar__actions {
    width: 100%;
  }
  .cxcp-purchase-toolbar__actions .cleanex-btn {
    flex: 1;
  }
}


/* v0.9.44 / Pakiet B: scalony moduł wynajmów i rezerwacji. */
.cxcp-rental-table {
  min-width: 1180px;
}

.cxcp-rental-table th,
.cxcp-rental-table td {
  vertical-align: middle;
}

.cxcp-rental-table td:first-child {
  min-width: 220px;
}

.cxcp-rental-table td:nth-child(3) {
  min-width: 180px;
}

.cxcp-rental-table td:nth-child(4) {
  min-width: 210px;
}

.cxcp-rental-status {
  white-space: nowrap;
}

.cxcp-rental-status.is-active,
.cxcp-rental-status.is-confirmed,
.cxcp-rental-status.is-delivery {
  border-color: rgba(38, 152, 255, .42);
  background: rgba(38, 152, 255, .14);
  color: #bfe2ff;
}

.cxcp-rental-status.is-extension,
.cxcp-rental-status.is-pickup {
  border-color: rgba(255, 188, 75, .42);
  background: rgba(255, 188, 75, .12);
  color: #ffe0a5;
}

.cxcp-rental-status.is-service_blocked,
.cxcp-rental-status.is-cancelled {
  border-color: rgba(255, 104, 104, .42);
  background: rgba(255, 104, 104, .12);
  color: #ffc0c0;
}

.cxcp-rental-status.is-completed {
  border-color: rgba(144, 164, 184, .32);
  background: rgba(144, 164, 184, .1);
  color: #c7d3dd;
}

.cxcp-rental-address {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(217, 232, 244, .82);
  font-size: .78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cxcp-rental-relations {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.cxcp-rental-relations a,
.cxcp-rental-relations span {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: .28rem .5rem;
  color: #b8dfff;
  background: rgba(38, 152, 255, .09);
  border: 1px solid rgba(38, 152, 255, .2);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.cxcp-rental-relations span {
  color: rgba(193, 211, 226, .58);
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .08);
}

.cxcp-rental-actions {
  min-width: 220px;
}

.cxcp-rental-table tr.is-archived {
  opacity: .7;
}

@media (max-width: 900px) {
  .cxcp-rental-toolbar {
    grid-template-columns: 1fr !important;
  }
}

/* v0.9.45 / Pakiet C: faktury, umowy i harmonogramy płatności. */
.cxcp-toolbar.cleanex-invoice-toolbar,
.cxcp-toolbar.cleanex-contract-customer-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(140px, .6fr)) repeat(2, minmax(145px, .62fr)) minmax(170px, .7fr) auto;
  gap: .7rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: .85rem;
  border: 1px solid rgba(62, 139, 205, .2);
  border-radius: 1rem;
  background: rgba(7, 22, 37, .72);
}
.cxcp-toolbar label {
  display: grid;
  gap: .35rem;
  color: rgba(188, 211, 231, .68);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cxcp-toolbar input,
.cxcp-toolbar select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0 .75rem;
  color: #f4f9fd;
  border: 1px solid rgba(72, 146, 209, .25);
  border-radius: .72rem;
  background: rgba(4, 16, 28, .82);
}
.cleanex-invoice-toolbar__actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cleanex-invoice-table td,
.cleanex-invoice-table th { vertical-align: middle; }
.cleanex-invoice-table td > strong,
.cleanex-invoice-table td > small { display: block; }
.cleanex-invoice-table td > small { margin-top: .25rem; color: var(--cxcp-muted); }
.cleanex-inline-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cleanex-inline-actions form { margin: 0; }
.cleanex-invoice-sync-status { display: block; max-width: 24rem; color: #dcebf7; font-size: .78rem; line-height: 1.35; }
.cleanex-customer-contract-list--expanded { display: grid; gap: .75rem; }
.cleanex-customer-contract-card--expanded {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) minmax(150px, .65fr) minmax(150px, .65fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(67, 145, 212, .2);
  border-radius: 1rem;
  background: rgba(11, 30, 48, .72);
}
.cleanex-customer-contract-card__main,
.cleanex-customer-contract-card__finance,
.cleanex-customer-contract-card__renew { display: grid; gap: .2rem; min-width: 0; }
.cleanex-customer-contract-card__main small,
.cleanex-customer-contract-card__finance span,
.cleanex-customer-contract-card__renew span { color: var(--cxcp-muted); font-size: .68rem; }
.cleanex-customer-contract-card__main strong { color: #fff; font-size: 1rem; }
.cleanex-customer-contract-card__main span,
.cleanex-customer-contract-card__main em { color: #b7cbdb; font-size: .78rem; font-style: normal; overflow-wrap: anywhere; }
.cleanex-customer-contract-card__finance strong,
.cleanex-customer-contract-card__renew strong { color: #fff; }
.cleanex-contract-link-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0;
}
.cleanex-contract-link-dashboard > div {
  display: grid;
  gap: .35rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid rgba(67, 145, 212, .18);
  border-radius: .9rem;
  background: rgba(8, 25, 41, .76);
}
.cleanex-contract-link-dashboard span { color: var(--cxcp-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cleanex-contract-link-dashboard strong { color: #fff; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.cleanex-contract-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.cleanex-contract-workspace-card { padding: 1rem; border-radius: 1rem; }
.cleanex-contract-workspace-card h2 { margin: .2rem 0 1rem; }
.cleanex-contract-renewal { align-content: start; }
.cleanex-contract-renewal p { color: var(--cxcp-muted); line-height: 1.5; }
.cleanex-contract-renewal-state { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0; padding: .75rem; border-radius: .75rem; background: rgba(39, 145, 234, .08); }
.cleanex-contract-renewal-state span { color: var(--cxcp-muted); }
.cleanex-contract-renewal > small { display: block; margin: -.2rem 0 .8rem; color: #a9bfd1; }
.cleanex-contract-schedule { margin: 1rem 0; padding: 1rem; }
.cleanex-contract-payment-status { display: inline-flex; padding: .35rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.cleanex-contract-payment-status.is-paid { color: #9fe8d5; background: rgba(27, 170, 128, .14); border: 1px solid rgba(27, 170, 128, .28); }
.cleanex-contract-payment-status.is-overdue { color: #ffd29d; background: rgba(231, 141, 45, .13); border: 1px solid rgba(231, 141, 45, .28); }
.cleanex-contract-payment-status.is-upcoming { color: #9ed4ff; background: rgba(38, 152, 255, .12); border: 1px solid rgba(38, 152, 255, .25); }
.cleanex-contract-machine-list,
.cleanex-contract-ticket-list,
.cleanex-contract-document-list,
.cleanex-contract-history { display: grid; gap: .55rem; }
.cleanex-contract-machine-list article,
.cleanex-contract-ticket-list a,
.cleanex-contract-document-list a,
.cleanex-contract-history > div {
  display: grid;
  gap: .18rem;
  padding: .75rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(75, 148, 210, .17);
  border-radius: .75rem;
  background: rgba(6, 20, 34, .7);
}
.cleanex-contract-ticket-list a { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .7rem; }
.cleanex-contract-document-list a { grid-template-columns: 1fr auto; align-items: center; }
.cleanex-contract-machine-list span,
.cleanex-contract-ticket-list span,
.cleanex-contract-history span { color: var(--cxcp-muted); font-size: .72rem; }
.cleanex-contract-machine-list small,
.cleanex-contract-ticket-list small,
.cleanex-contract-history time { color: #78baf4; font-size: .65rem; }
.cleanex-contract-history > div { grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; }
.cleanex-checkbox-row { display: flex !important; flex-direction: row !important; gap: .6rem !important; align-items: center; }
.cleanex-checkbox-row input { width: auto !important; }
@media (max-width: 1180px) {
  .cxcp-toolbar.cleanex-invoice-toolbar,
  .cxcp-toolbar.cleanex-contract-customer-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cleanex-customer-contract-card--expanded { grid-template-columns: 1fr 1fr; }
  .cleanex-contract-link-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cxcp-toolbar.cleanex-invoice-toolbar,
  .cxcp-toolbar.cleanex-contract-customer-toolbar,
  .cleanex-customer-contract-card--expanded,
  .cleanex-contract-workspace-grid,
  .cleanex-contract-link-dashboard { grid-template-columns: 1fr; }
  .cleanex-contract-history > div,
  .cleanex-contract-ticket-list a { grid-template-columns: 1fr; }
}
.cleanex-toolbar-check { align-self: center; display: flex !important; grid-auto-flow: column; justify-content: start; align-items: center; gap: .5rem !important; padding-top: 1.15rem; }
.cleanex-toolbar-check input { width: auto !important; min-height: auto !important; }
.cleanex-toolbar-check span { color: #dbe9f5; font-size: .75rem; text-transform: none; letter-spacing: 0; }


/* v0.9.46: pomocnicze etykiety dokumentów i cen. */
.cxcp-shell .cleanex-document-pending { white-space: nowrap; }
.cxcp-shell .cleanex-invoice-table td:nth-child(5) strong::after { content: ' brutto'; color: var(--cxcp-muted); font-size: .62rem; font-weight: 700; }

/* v0.9.51: rozdzielenie najmu krótkoterminowego i długoterminowego. */
.cleanex-customer-contract-sections {
  display: grid;
  gap: 1rem;
}
.cleanex-customer-contract-section {
  overflow: hidden;
  border: 1px solid rgba(67, 145, 212, .2);
  border-radius: 1.05rem;
  background: rgba(7, 23, 39, .56);
}
.cleanex-customer-contract-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(67, 145, 212, .16);
  background: rgba(32, 108, 174, .07);
}
.cleanex-customer-contract-section > header span {
  display: block;
  color: #65b8ff;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cleanex-customer-contract-section > header h2 {
  margin: .15rem 0 0;
  color: #fff;
  font-size: 1rem;
}
.cleanex-customer-contract-section > header p {
  max-width: 34rem;
  margin: 0;
  color: var(--cxcp-muted);
  font-size: .73rem;
  line-height: 1.45;
  text-align: right;
}
.cleanex-customer-contract-section .cleanex-customer-contract-list {
  padding: .8rem;
}
.cleanex-customer-contract-card--expanded.is-short-rental {
  border-left: 3px solid #38bdf8;
}
.cleanex-customer-contract-card--expanded.is-long-rental {
  border-left: 3px solid #84cc16;
}
.cleanex-customer-contract-card__finance small,
.cleanex-customer-contract-card__renew small {
  display: block;
  color: var(--cxcp-muted);
  font-size: .68rem;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .cleanex-customer-contract-section > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .cleanex-customer-contract-section > header p {
    text-align: left;
  }
}

/* v0.9.55: dashboard klienta zamiast powielonego widoku koszyka. */
.cxcp-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.cxcp-dashboard-stats > a {
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: .18rem;
  padding: .9rem 1rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(72, 149, 216, .2);
  border-radius: .95rem;
  background: linear-gradient(180deg, rgba(14, 47, 76, .7), rgba(7, 25, 42, .8));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.cxcp-dashboard-stats > a:hover,
.cxcp-dashboard-stats > a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(38, 152, 255, .48);
  background: linear-gradient(180deg, rgba(20, 66, 104, .78), rgba(9, 31, 52, .88));
  outline: none;
}
.cxcp-dashboard-stats small {
  color: #6dbbff;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.cxcp-dashboard-stats strong {
  color: #fff;
  font-size: 1.72rem;
  line-height: 1;
}
.cxcp-dashboard-stats span {
  color: var(--cxcp-muted);
  font-size: .72rem;
  line-height: 1.35;
}
@media (max-width: 1180px) {
  .cxcp-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cxcp-dashboard-stats { grid-template-columns: 1fr 1fr; }
  .cxcp-dashboard-stats > a { min-height: 100px; }
}
@media (max-width: 480px) {
  .cxcp-dashboard-stats { grid-template-columns: 1fr; }
}

/* v0.9.60: light mode support for the customer panel loaded after theme styles. */
body.cleanex-ui-light .cxcp-page,
body.cleanex-ui-light .cxcp-shell,
body.cleanex-ui-light .cxcp-layout,
body.cleanex-ui-light .cxcp-main,
body.cleanex-ui-light .cxcp-view {
  background: #eef3f8 !important;
  color: #152338 !important;
}
body.cleanex-ui-light .cxcp-shell::before,
body.cleanex-ui-light .cxcp-shell::after,
body.cleanex-ui-light .cxcp-page::before,
body.cleanex-ui-light .cxcp-page::after {
  background: none !important;
  opacity: 0 !important;
}
body.cleanex-ui-light .cxcp-sidebar,
body.cleanex-ui-light .cxcp-card,
body.cleanex-ui-light .cxcp-panel,
body.cleanex-ui-light .cxcp-toolbar,
body.cleanex-ui-light .cxcp-dashboard-card,
body.cleanex-ui-light .cleanex-customer-settings-block,
body.cleanex-ui-light .cleanex-customer-settings-form {
  background: #fff !important;
  color: #152338 !important;
  border-color: rgba(45,107,158,.18) !important;
  box-shadow: 0 12px 30px rgba(43,75,103,.06) !important;
}
body.cleanex-ui-light .cxcp-sidebar a,
body.cleanex-ui-light .cxcp-sidebar button,
body.cleanex-ui-light .cxcp-nav-button {
  background: #edf3f8 !important;
  color: #2c435a !important;
  border-color: rgba(45,107,158,.14) !important;
}
body.cleanex-ui-light .cxcp-sidebar .is-active,
body.cleanex-ui-light .cxcp-nav-button.is-active {
  background: #2698ff !important;
  color: #fff !important;
  border-color: #2698ff !important;
}
body.cleanex-ui-light .cxcp-shell h1,
body.cleanex-ui-light .cxcp-shell h2,
body.cleanex-ui-light .cxcp-shell h3,
body.cleanex-ui-light .cxcp-shell strong {
  color: #152338 !important;
}
body.cleanex-ui-light .cxcp-shell p,
body.cleanex-ui-light .cxcp-shell small,
body.cleanex-ui-light .cxcp-shell em,
body.cleanex-ui-light .cxcp-shell .cxcp-muted {
  color: #61748a !important;
}
body.cleanex-ui-light .cxcp-shell input,
body.cleanex-ui-light .cxcp-shell select,
body.cleanex-ui-light .cxcp-shell textarea {
  background: #fff !important;
  color: #152338 !important;
  border-color: rgba(45,107,158,.24) !important;
}
body.cleanex-ui-light .cxcp-shell table,
body.cleanex-ui-light .cxcp-shell .cxcp-table {
  color: #263b52 !important;
}
body.cleanex-ui-light .cxcp-shell th {
  background: #e8f0f7 !important;
  color: #354c63 !important;
  border-color: rgba(45,107,158,.16) !important;
}
body.cleanex-ui-light .cxcp-shell td {
  background: #fff !important;
  color: #263b52 !important;
  border-color: rgba(45,107,158,.13) !important;
}
body.cleanex-ui-light .cxcp-shell tbody tr:nth-child(even) td {
  background: #f7fafc !important;
}

/* v0.9.75: jasny podglad panelu klienta w panelu operatora. */
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview {
  --cxcp-border: #d5e1eb;
  --cxcp-surface: #f5f8fb;
  --cxcp-surface-soft: #ffffff;
  --cxcp-text: #172536;
  --cxcp-muted: #607488;
  --cxcp-accent: #69ad00;
  --cxcp-accent-strong: #86cb0a;
  background: #f6f9fc !important;
  color: #172536 !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 18px 44px rgba(40, 68, 94, .10) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav {
  background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%) !important;
  color: #172536 !important;
  border-right: 1px solid #d5e1eb !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__heading {
  border-bottom-color: #d7e2ec !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__heading strong {
  color: #172536 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__heading small,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__eyebrow {
  color: #607488 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__tab,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__back {
  color: #2c465f !important;
  background: transparent !important;
  border-color: transparent !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__tab:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__tab:focus-visible,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__back:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__back:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f2fb !important;
  border-color: #bfd8eb !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav__tab.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2698ff, #1678d8) !important;
  border-color: #2698ff !important;
  box-shadow: inset 3px 0 0 #0b68bd, 0 8px 18px rgba(38, 152, 255, .16) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-main {
  background: linear-gradient(180deg, #eef4f9 0%, #edf2f7 100%) !important;
  color: #172536 !important;
  scrollbar-color: #5aa9e6 #dfe8f0 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-preview-note {
  color: #315e19 !important;
  background: #eef8e7 !important;
  border-color: #bddb9c !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-preview-note strong {
  color: #213f12 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-view__header h1,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-section-title h2 {
  color: #172536 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-view__header p,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-section-head small,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-muted {
  color: #607488 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-kicker,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-section-title span,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-eyebrow {
  color: #6da900 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-primary-action,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-btn:not(.cleanex-btn--ghost) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8bd10d, #68ad00) !important;
  border-color: #68ad00 !important;
  box-shadow: 0 10px 24px rgba(105, 173, 0, .20) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-primary-action:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-primary-action:focus-visible,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-btn:not(.cleanex-btn--ghost):hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-btn:not(.cleanex-btn--ghost):focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #78bd06, #578f00) !important;
  outline-color: rgba(105, 173, 0, .26) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a {
  color: #172536 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 20px rgba(40, 68, 94, .06) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:nth-child(1) { border-top: 3px solid #2698ff !important; }
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:nth-child(2) { border-top: 3px solid #2ca66f !important; }
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:nth-child(3) { border-top: 3px solid #7c63d8 !important; }
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:nth-child(4) { border-top: 3px solid #d39318 !important; }
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:nth-child(5) { border-top: 3px solid #cf5d52 !important; }

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats > a:focus-visible {
  color: #172536 !important;
  background: #edf6fd !important;
  border-color: #9fc9e8 !important;
  box-shadow: 0 12px 26px rgba(40, 68, 94, .10) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats small {
  color: #526b82 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats strong {
  color: #172536 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-dashboard-stats span {
  color: #607488 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-recommendations,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-mini-grid > section,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-stack > section,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-order-detail,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-list,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-settings-form,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-ticket-form {
  background: #ffffff !important;
  color: #172536 !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-quick-card,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-card {
  background: #f8fbfe !important;
  color: #172536 !important;
  border-color: #d9e3ec !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-quick-card:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-card:hover {
  background: #eef6fd !important;
  border-color: #b8d6eb !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card > span {
  color: #6b7f92 !important;
  background: #f3f8fc !important;
  border-color: #cbdde9 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card strong,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card b,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-quick-card strong,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-card strong {
  color: #172536 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-rec-card small,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-quick-card small,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-quick-card span,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-card small,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cleanex-customer-contract-card span {
  color: #607488 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-main::-webkit-scrollbar-track,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav::-webkit-scrollbar-track {
  background: #dfe8f0 !important;
}

body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-main::-webkit-scrollbar-thumb,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview .cxcp-nav::-webkit-scrollbar-thumb {
  background: #5aa9e6 !important;
  border-color: #dfe8f0 !important;
}

/* v0.9.76: complete customer light theme + customer-selectable appearance. */
html:has(body.cxcp-page-body.cleanex-ui-light),
body.cxcp-page-body.cleanex-ui-light {
  background: #edf2f7 !important;
}

body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-standalone-app {
  background:
    radial-gradient(circle at 78% 0%, rgba(38, 152, 255, .08), transparent 36%),
    linear-gradient(180deg, #f7fafd 0%, #edf2f7 100%) !important;
}

.cxcp-shell.cxcp-theme-light {
  --cxcp-border: #d5e1eb;
  --cxcp-surface: #f5f8fb;
  --cxcp-surface-soft: #ffffff;
  --cxcp-text: #172536;
  --cxcp-muted: #607488;
  --cxcp-accent: #69ad00;
  --cxcp-accent-strong: #86cb0a;
  color: #172536 !important;
  background: #f6f9fc !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 18px 44px rgba(40, 68, 94, .10) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav {
  color: #172536 !important;
  background: linear-gradient(180deg, #f9fbfd 0%, #eef4f9 100%) !important;
  border-right-color: #d5e1eb !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__heading {
  border-bottom-color: #d7e2ec !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__heading strong,
.cxcp-shell.cxcp-theme-light .cxcp-nav__tab,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back,
.cxcp-shell.cxcp-theme-light h1,
.cxcp-shell.cxcp-theme-light h2,
.cxcp-shell.cxcp-theme-light h3,
.cxcp-shell.cxcp-theme-light h4,
.cxcp-shell.cxcp-theme-light strong {
  color: #172536 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__heading small,
.cxcp-shell.cxcp-theme-light .cxcp-nav__eyebrow,
.cxcp-shell.cxcp-theme-light p,
.cxcp-shell.cxcp-theme-light small,
.cxcp-shell.cxcp-theme-light em,
.cxcp-shell.cxcp-theme-light .cxcp-muted,
.cxcp-shell.cxcp-theme-light .cleanex-muted,
.cxcp-shell.cxcp-theme-light .cleanex-field-hint {
  color: #607488 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back {
  background: transparent !important;
  border-color: transparent !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab:hover,
.cxcp-shell.cxcp-theme-light .cxcp-nav__tab:focus-visible,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back:hover,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f2fb !important;
  border-color: #bfd8eb !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #2698ff, #1678d8) !important;
  border-color: #2698ff !important;
  box-shadow: inset 3px 0 0 #0b68bd, 0 8px 18px rgba(38, 152, 255, .16) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active span {
  color: #fff !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-main,
.cxcp-shell.cxcp-theme-light .cxcp-view {
  color: #172536 !important;
  background: linear-gradient(180deg, #eef4f9 0%, #edf2f7 100%) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-preview-note {
  color: #315e19 !important;
  background: #eef8e7 !important;
  border-color: #bddb9c !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-preview-note strong {
  color: #213f12 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-kicker,
.cxcp-shell.cxcp-theme-light .cxcp-section-title span,
.cxcp-shell.cxcp-theme-light .cleanex-eyebrow {
  color: #6da900 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-primary-action,
.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost) {
  color: #fff !important;
  background: linear-gradient(135deg, #8bd10d, #68ad00) !important;
  border-color: #68ad00 !important;
  box-shadow: 0 10px 24px rgba(105, 173, 0, .18) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-primary-action:hover,
.cxcp-shell.cxcp-theme-light .cxcp-primary-action:focus-visible,
.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost):hover,
.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost):focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #78bd06, #578f00) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost {
  color: #29435d !important;
  background: #f5f8fb !important;
  border-color: #cddae6 !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost:hover,
.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f2fb !important;
  border-color: #b8d5ec !important;
}

/* Search/filter toolbars: remove dark islands. */
.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar.cleanex-invoice-toolbar,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar.cleanex-contract-customer-toolbar {
  color: #172536 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar label,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar label,
.cxcp-shell.cxcp-theme-light .cleanex-toolbar-check span {
  color: #52677d !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar input,
.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar select,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar input,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar select,
.cxcp-shell.cxcp-theme-light .cxcp-form input,
.cxcp-shell.cxcp-theme-light .cxcp-form select,
.cxcp-shell.cxcp-theme-light .cxcp-form textarea,
.cxcp-shell.cxcp-theme-light .cleanex-form input,
.cxcp-shell.cxcp-theme-light .cleanex-form select,
.cxcp-shell.cxcp-theme-light .cleanex-form textarea {
  color: #172536 !important;
  background: #fff !important;
  border-color: #cbd8e4 !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light input::placeholder,
.cxcp-shell.cxcp-theme-light textarea::placeholder {
  color: #8b9aac !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar__count {
  color: #718499 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar__archive {
  color: #52677d !important;
  background: #f5f8fb !important;
  border: 1px solid #d7e1eb !important;
}

/* Tables and document states. */
.cxcp-shell.cxcp-theme-light .cleanex-table-scroll,
.cxcp-shell.cxcp-theme-light .cleanex-table,
.cxcp-shell.cxcp-theme-light table {
  color: #263b52 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-table th,
.cxcp-shell.cxcp-theme-light table th {
  color: #354c63 !important;
  background: #e8f0f7 !important;
  border-color: #d4dfe9 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-table td,
.cxcp-shell.cxcp-theme-light table td {
  color: #263b52 !important;
  background: #fff !important;
  border-color: #dce5ed !important;
}

.cxcp-shell.cxcp-theme-light tbody tr:nth-child(even) td {
  background: #f7fafc !important;
}

.cxcp-shell.cxcp-theme-light tbody tr:hover td {
  background: #edf6fd !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-invoice-sync-status,
.cxcp-shell.cxcp-theme-light .cleanex-document-pending {
  color: #607488 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-document-pending {
  background: #edf2f6 !important;
  border: 1px solid #d4dfe8 !important;
}

/* Contracts: remove grey group headers and dark cards. */
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section {
  color: #172536 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header {
  background: linear-gradient(180deg, #edf6fd 0%, #e6f1f9 100%) !important;
  border-bottom-color: #cddde9 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header span {
  color: #0b6fb8 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header h2 {
  color: #172536 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header p {
  color: #607488 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card,
.cxcp-shell.cxcp-theme-light .cleanex-contract-link-dashboard > div,
.cxcp-shell.cxcp-theme-light .cleanex-contract-workspace-card,
.cxcp-shell.cxcp-theme-light .cleanex-contract-machine-list article,
.cxcp-shell.cxcp-theme-light .cleanex-contract-ticket-list a,
.cxcp-shell.cxcp-theme-light .cleanex-contract-document-list a,
.cxcp-shell.cxcp-theme-light .cleanex-contract-history > div {
  color: #172536 !important;
  background: #f9fbfd !important;
  border-color: #d8e3ec !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded strong,
.cxcp-shell.cxcp-theme-light .cleanex-contract-link-dashboard strong,
.cxcp-shell.cxcp-theme-light .cleanex-contract-workspace-card strong,
.cxcp-shell.cxcp-theme-light .cleanex-contract-machine-list strong,
.cxcp-shell.cxcp-theme-light .cleanex-contract-ticket-list strong,
.cxcp-shell.cxcp-theme-light .cleanex-contract-history strong {
  color: #172536 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded span,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded small,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded em,
.cxcp-shell.cxcp-theme-light .cleanex-contract-link-dashboard span,
.cxcp-shell.cxcp-theme-light .cleanex-contract-machine-list span,
.cxcp-shell.cxcp-theme-light .cleanex-contract-ticket-list span,
.cxcp-shell.cxcp-theme-light .cleanex-contract-history span,
.cxcp-shell.cxcp-theme-light .cleanex-contract-history time {
  color: #607488 !important;
}

/* Tickets/help: white cards in light mode. */
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card,
.cxcp-shell.cxcp-theme-light .cxcp-ticket-summary,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-progress,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-conversation,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-chat__message,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-file {
  color: #172536 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 22px rgba(40, 68, 94, .04) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card:hover {
  background: #edf6fd !important;
  border-color: #9fc9e8 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card > div:first-child strong,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-conversation__head h2,
.cxcp-shell.cxcp-theme-light .cxcp-ticket-detail__header h1,
.cxcp-shell.cxcp-theme-light .cxcp-ticket-summary p,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-chat__message strong,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-chat__message p {
  color: #172536 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card > div:first-child small,
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card > div:first-child span,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-conversation__head small,
.cxcp-shell.cxcp-theme-light .cxcp-ticket-detail__header p,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-chat__message time {
  color: #607488 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-subtabs__menu {
  border-bottom-color: #d5e1eb !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-subtabs__button {
  color: #29435d !important;
  background: #f5f8fb !important;
  border-color: #cddae6 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-subtabs__button:hover,
.cxcp-shell.cxcp-theme-light .cxcp-subtabs__button:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f2fb !important;
  border-color: #b8d5ec !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-subtabs__button.is-active {
  color: #315e19 !important;
  background: #eaf6dd !important;
  border-color: #b8d989 !important;
}

/* Settings: remove the dark tab bar and cards. */
.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-form,
.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-block {
  color: #172536 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs,
.cxcp-shell.cxcp-theme-light .cleanex-subnav.cleanex-customer-settings-tabs {
  padding: .45rem !important;
  background: #fff !important;
  border: 1px solid #d5e1eb !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 22px rgba(40, 68, 94, .04) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs .cleanex-btn {
  color: #29435d !important;
  background: #f5f8fb !important;
  border-color: #cddae6 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs .cleanex-btn.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #8bd10d, #68ad00) !important;
  border-color: #68ad00 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-address-row {
  background: #f7fafc !important;
  border-color: #d8e3ec !important;
}

/* Dashboard cards and recommendation surfaces. */
.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats > a,
.cxcp-shell.cxcp-theme-light .cleanex-customer-recommendations,
.cxcp-shell.cxcp-theme-light .cleanex-customer-mini-grid > section,
.cxcp-shell.cxcp-theme-light .cleanex-customer-stack > section,
.cxcp-shell.cxcp-theme-light .cleanex-customer-order-detail,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-list,
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-form,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card {
  color: #172536 !important;
  background: #fff !important;
  border-color: #d5e1eb !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats strong,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card strong,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card b,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card strong {
  color: #172536 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats span,
.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats small,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card small,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card small,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card span {
  color: #607488 !important;
}

/* Customer appearance control. */
.cxcp-appearance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.cxcp-appearance-option {
  display: grid !important;
  grid-template-columns: auto 7.2rem minmax(0, 1fr);
  align-items: center;
  gap: .9rem !important;
  min-height: 7.2rem;
  padding: 1rem !important;
  border: 1px solid var(--cxcp-border);
  border-radius: 1rem;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.cxcp-appearance-option:has(input:checked) {
  border-color: rgba(117, 185, 0, .62);
  box-shadow: 0 0 0 3px rgba(117, 185, 0, .12);
}

.cxcp-shell.cxcp-theme-light .cxcp-appearance-option {
  color: #172536 !important;
  background: #f8fbfe !important;
  border-color: #d5e1eb !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-appearance-option:has(input:checked) {
  background: #f2f9e9 !important;
  border-color: #9dca62 !important;
  box-shadow: 0 0 0 3px rgba(105, 173, 0, .10) !important;
}

.cxcp-appearance-option input {
  width: 1.05rem !important;
  height: 1.05rem !important;
  accent-color: #75b900;
}

.cxcp-appearance-preview {
  position: relative;
  display: grid;
  align-content: center;
  gap: .35rem;
  width: 7.2rem;
  height: 4.7rem;
  padding: .7rem;
  overflow: hidden;
  border-radius: .8rem;
  box-shadow: 0 8px 18px rgba(17, 36, 54, .12);
}

.cxcp-appearance-preview::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 26%;
  opacity: .72;
}

.cxcp-appearance-preview i,
.cxcp-appearance-preview b,
.cxcp-appearance-preview em {
  display: block;
  width: 66%;
  height: .38rem;
  margin-left: auto;
  border-radius: 999px;
}

.cxcp-appearance-preview--dark {
  background: #0b1d2e;
  border: 1px solid #26445f;
}
.cxcp-appearance-preview--dark::before { background: #071522; }
.cxcp-appearance-preview--dark i { background: #2698ff; }
.cxcp-appearance-preview--dark b,
.cxcp-appearance-preview--dark em { background: #375a76; }

.cxcp-appearance-preview--light {
  background: #f7fafc;
  border: 1px solid #d4e0ea;
}
.cxcp-appearance-preview--light::before { background: #e7eef5; }
.cxcp-appearance-preview--light i { background: #2698ff; }
.cxcp-appearance-preview--light b,
.cxcp-appearance-preview--light em { background: #cddbe7; }

.cxcp-appearance-copy {
  display: grid;
  gap: .25rem;
}

.cxcp-appearance-copy strong {
  font-size: 1rem;
}

.cxcp-appearance-copy small {
  line-height: 1.4;
}

.cxcp-shell.cxcp-theme-light .cxcp-main::-webkit-scrollbar-track,
.cxcp-shell.cxcp-theme-light .cxcp-nav::-webkit-scrollbar-track {
  background: #dfe8f0 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-main::-webkit-scrollbar-thumb,
.cxcp-shell.cxcp-theme-light .cxcp-nav::-webkit-scrollbar-thumb {
  background: #5aa9e6 !important;
  border-color: #dfe8f0 !important;
}

@media (max-width: 820px) {
  .cxcp-appearance-options { grid-template-columns: 1fr; }
  .cxcp-appearance-option { grid-template-columns: auto 6rem minmax(0, 1fr); }
  .cxcp-appearance-preview { width: 6rem; }
}

/* v0.9.77: panel klienta korzysta z tej samej palety, ról tekstu i zasad light theme co panel operatora. */
.cxcp-shell.cxcp-theme-light,
.cxcp-shell.cleanex-ui-light {
  --cx-light-bg: #edf2f7;
  --cx-light-surface: #ffffff;
  --cx-light-surface-soft: #f7f9fc;
  --cx-light-surface-soft-2: #eef4f9;
  --cx-light-border: #d7e1eb;
  --cx-light-border-strong: #c8d5e1;
  --cx-light-text: #172536;
  --cx-light-text-2: #263b51;
  --cx-light-muted: #64788d;
  --cx-light-muted-2: #8a9cad;
  --cx-light-accent: #188fe8;
  --cx-role-heading: #172536;
  --cx-role-body: #263b51;
  --cx-role-muted: #64788d;
  --cx-role-label: #50667d;
  --cx-role-link: #0b6fb8;
  --cxcp-border: var(--cx-light-border);
  --cxcp-surface: var(--cx-light-surface);
  --cxcp-surface-soft: var(--cx-light-surface-soft);
  --cxcp-text: var(--cx-light-text);
  --cxcp-muted: var(--cx-light-muted);
  --cxcp-accent: var(--cx-light-accent);
  --cxcp-accent-strong: #0878ce;
  color: var(--cx-role-body) !important;
  background: var(--cx-light-surface) !important;
  border-color: var(--cx-light-border) !important;
  box-shadow: 0 18px 44px rgba(40, 68, 94, .10) !important;
}

.cxcp-shell.cxcp-theme-light .cx-heading,
.cxcp-shell.cxcp-theme-light h1,
.cxcp-shell.cxcp-theme-light h2,
.cxcp-shell.cxcp-theme-light h3,
.cxcp-shell.cxcp-theme-light h4,
.cxcp-shell.cxcp-theme-light strong {
  color: var(--cx-role-heading) !important;
}

.cxcp-shell.cxcp-theme-light .cx-body,
.cxcp-shell.cxcp-theme-light p,
.cxcp-shell.cxcp-theme-light li,
.cxcp-shell.cxcp-theme-light td {
  color: var(--cx-role-body) !important;
}

.cxcp-shell.cxcp-theme-light .cx-muted,
.cxcp-shell.cxcp-theme-light small,
.cxcp-shell.cxcp-theme-light time,
.cxcp-shell.cxcp-theme-light em,
.cxcp-shell.cxcp-theme-light .cleanex-muted,
.cxcp-shell.cxcp-theme-light .cleanex-field-hint,
.cxcp-shell.cxcp-theme-light .cxcp-muted {
  color: var(--cx-role-muted) !important;
}

.cxcp-shell.cxcp-theme-light .cx-label,
.cxcp-shell.cxcp-theme-light label,
.cxcp-shell.cxcp-theme-light legend,
.cxcp-shell.cxcp-theme-light th,
.cxcp-shell.cxcp-theme-light .cleanex-eyebrow,
.cxcp-shell.cxcp-theme-light .cxcp-kicker,
.cxcp-shell.cxcp-theme-light .cxcp-section-title span {
  color: var(--cx-role-label) !important;
}

.cxcp-shell.cxcp-theme-light a:not(.cleanex-btn):not(.cxcp-nav__tab):not(.cxcp-nav__back) {
  color: var(--cx-role-link) !important;
}

html:has(body.cxcp-page-body.cleanex-ui-light),
body.cxcp-page-body.cleanex-ui-light,
body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-standalone-app {
  background: var(--cx-light-bg, #edf2f7) !important;
}

body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-standalone-app {
  background:
    radial-gradient(circle at 78% 0%, rgba(24, 143, 232, .08), transparent 36%),
    linear-gradient(180deg, #f7fafd 0%, var(--cx-light-bg, #edf2f7) 100%) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav {
  color: var(--cx-role-body) !important;
  background: linear-gradient(180deg, #f9fbfd 0%, var(--cx-light-surface-soft-2) 100%) !important;
  border-right-color: var(--cx-light-border) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__heading {
  border-bottom-color: var(--cx-light-border) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back {
  color: var(--cx-role-heading) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab:hover,
.cxcp-shell.cxcp-theme-light .cxcp-nav__tab:focus-visible,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back:hover,
.cxcp-shell.cxcp-theme-light .cxcp-nav__back:focus-visible {
  color: var(--cx-role-link) !important;
  background: #e7f2fb !important;
  border-color: #bfd8eb !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active {
  color: #fff !important;
  background: #188fe8 !important;
  border-color: #188fe8 !important;
  box-shadow: inset 3px 0 0 #0878ce, 0 8px 18px rgba(24, 143, 232, .16) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active *,
.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active span,
.cxcp-shell.cxcp-theme-light .cxcp-nav__tab.is-active strong {
  color: #fff !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-main,
.cxcp-shell.cxcp-theme-light .cxcp-view {
  color: var(--cx-role-body) !important;
  background: linear-gradient(180deg, var(--cx-light-surface-soft-2) 0%, var(--cx-light-bg) 100%) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-preview-note {
  color: #315e19 !important;
  background: #eef8e7 !important;
  border-color: #bddb9c !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-preview-note strong {
  color: #213f12 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost),
.cxcp-shell.cxcp-theme-light .cxcp-primary-action,
.cxcp-shell.cxcp-theme-light button[type="submit"]:not(.cleanex-btn--ghost) {
  color: #fff !important;
  background: #188fe8 !important;
  border-color: #188fe8 !important;
  box-shadow: 0 10px 24px rgba(24, 143, 232, .16) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost):hover,
.cxcp-shell.cxcp-theme-light .cleanex-btn:not(.cleanex-btn--ghost):focus-visible,
.cxcp-shell.cxcp-theme-light .cxcp-primary-action:hover,
.cxcp-shell.cxcp-theme-light .cxcp-primary-action:focus-visible,
.cxcp-shell.cxcp-theme-light button[type="submit"]:not(.cleanex-btn--ghost):hover,
.cxcp-shell.cxcp-theme-light button[type="submit"]:not(.cleanex-btn--ghost):focus-visible {
  color: #fff !important;
  background: #0878ce !important;
  border-color: #0878ce !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost {
  color: #29435d !important;
  background: #f4f7fa !important;
  border-color: #cfdbe6 !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost:hover,
.cxcp-shell.cxcp-theme-light .cleanex-btn--ghost:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f1fa !important;
  border-color: #b8d5ec !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar,
.cxcp-shell.cxcp-theme-light .cleanex-invoice-toolbar,
.cxcp-shell.cxcp-theme-light .cleanex-contract-customer-toolbar,
.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-form,
.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-block,
.cxcp-shell.cxcp-theme-light .cleanex-customer-recommendations,
.cxcp-shell.cxcp-theme-light .cleanex-customer-mini-grid > section,
.cxcp-shell.cxcp-theme-light .cleanex-customer-stack > section,
.cxcp-shell.cxcp-theme-light .cleanex-customer-order-detail,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-list,
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-form,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card,
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-progress,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-conversation,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-chat__message,
.cxcp-shell.cxcp-theme-light .cleanex-ticket-file {
  color: var(--cx-role-body) !important;
  background: var(--cx-light-surface) !important;
  border-color: var(--cx-light-border) !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats > a {
  color: var(--cx-role-body) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  border-color: var(--cx-light-border) !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .05) !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-dashboard-stats > a:hover,
.cxcp-shell.cxcp-theme-light .cleanex-rec-card:hover,
.cxcp-shell.cxcp-theme-light .cleanex-customer-quick-card:hover,
.cxcp-shell.cxcp-theme-light .cleanex-customer-ticket-card:hover {
  background: #edf6fd !important;
  border-color: #9fc9e8 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-purchase-toolbar label,
.cxcp-shell.cxcp-theme-light .cxcp-toolbar label,
.cxcp-shell.cxcp-theme-light .cleanex-toolbar-check span,
.cxcp-shell.cxcp-theme-light .cleanex-form label,
.cxcp-shell.cxcp-theme-light .cxcp-form label {
  color: var(--cx-role-label) !important;
}

.cxcp-shell.cxcp-theme-light input,
.cxcp-shell.cxcp-theme-light select,
.cxcp-shell.cxcp-theme-light textarea,
.cxcp-shell.cxcp-theme-light .cleanex-form input,
.cxcp-shell.cxcp-theme-light .cleanex-form select,
.cxcp-shell.cxcp-theme-light .cleanex-form textarea,
.cxcp-shell.cxcp-theme-light .cxcp-form input,
.cxcp-shell.cxcp-theme-light .cxcp-form select,
.cxcp-shell.cxcp-theme-light .cxcp-form textarea {
  color: var(--cx-role-heading) !important;
  background: #fff !important;
  border-color: #cbd8e4 !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light input:focus,
.cxcp-shell.cxcp-theme-light select:focus,
.cxcp-shell.cxcp-theme-light textarea:focus {
  border-color: #188fe8 !important;
  box-shadow: 0 0 0 3px rgba(24, 143, 232, .13) !important;
}

.cxcp-shell.cxcp-theme-light input::placeholder,
.cxcp-shell.cxcp-theme-light textarea::placeholder {
  color: #8b9aac !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-table-scroll,
.cxcp-shell.cxcp-theme-light .cleanex-table,
.cxcp-shell.cxcp-theme-light table {
  color: var(--cx-role-body) !important;
  background: #fff !important;
  border-color: var(--cx-light-border) !important;
  box-shadow: none !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-table th,
.cxcp-shell.cxcp-theme-light table th {
  color: #354b61 !important;
  background: #e9f0f6 !important;
  border-color: #d4dfe9 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-table td,
.cxcp-shell.cxcp-theme-light table td {
  color: var(--cx-role-body) !important;
  background: #fff !important;
  border-color: #dde5ed !important;
}

.cxcp-shell.cxcp-theme-light tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

.cxcp-shell.cxcp-theme-light tbody tr:hover td {
  background: #edf6fd !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header {
  color: var(--cx-role-body) !important;
  background: #eef4f9 !important;
  border-bottom-color: var(--cx-light-border) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header span,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header h2,
.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-section > header p {
  color: inherit !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-contract-card--expanded,
.cxcp-shell.cxcp-theme-light .cleanex-contract-link-dashboard > div,
.cxcp-shell.cxcp-theme-light .cleanex-contract-workspace-card,
.cxcp-shell.cxcp-theme-light .cleanex-contract-machine-list article,
.cxcp-shell.cxcp-theme-light .cleanex-contract-ticket-list a,
.cxcp-shell.cxcp-theme-light .cleanex-contract-document-list a,
.cxcp-shell.cxcp-theme-light .cleanex-contract-history > div,
.cxcp-shell.cxcp-theme-light .cleanex-address-row {
  color: var(--cx-role-body) !important;
  background: var(--cx-light-surface-soft) !important;
  border-color: var(--cx-light-border) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs,
.cxcp-shell.cxcp-theme-light .cleanex-subnav.cleanex-customer-settings-tabs {
  padding: .45rem !important;
  background: #fff !important;
  border: 1px solid var(--cx-light-border) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 22px rgba(40, 68, 94, .04) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs .cleanex-btn {
  color: #29435d !important;
  background: #f4f7fa !important;
  border-color: #cfdbe6 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-tabs .cleanex-btn.is-active {
  color: #fff !important;
  background: #188fe8 !important;
  border-color: #188fe8 !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-customer-settings-savebar {
  background: linear-gradient(180deg, rgba(237,242,247,0), rgba(237,242,247,.96) 38%) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-appearance-options,
.cxcp-shell.cxcp-theme-light .cxcp-appearance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.cxcp-shell.cxcp-theme-light .cleanex-appearance-option,
.cxcp-shell.cxcp-theme-light .cxcp-appearance-option {
  color: var(--cx-role-body) !important;
  background: #f8fafc !important;
  border-color: #d3dfeb !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-appearance-option:has(input:checked),
.cxcp-shell.cxcp-theme-light .cxcp-appearance-option:has(input:checked) {
  color: var(--cx-role-body) !important;
  background: #eef7ff !important;
  border-color: #86c3ef !important;
  box-shadow: 0 0 0 3px rgba(24,143,232,.10) !important;
}

.cxcp-shell.cxcp-theme-light .cleanex-appearance-option input,
.cxcp-shell.cxcp-theme-light .cxcp-appearance-option input {
  accent-color: #188fe8 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-main::-webkit-scrollbar-track,
.cxcp-shell.cxcp-theme-light .cxcp-nav::-webkit-scrollbar-track {
  background: #e5ebf1 !important;
}

.cxcp-shell.cxcp-theme-light .cxcp-main::-webkit-scrollbar-thumb,
.cxcp-shell.cxcp-theme-light .cxcp-nav::-webkit-scrollbar-thumb {
  background: #a8bacb !important;
  border-color: #e5ebf1 !important;
}

@media (max-width: 820px) {
  .cxcp-shell.cxcp-theme-light .cleanex-appearance-options,
  .cxcp-shell.cxcp-theme-light .cxcp-appearance-options {
    grid-template-columns: 1fr;
  }
}


/* v0.9.78: rzeczywisty panel klienta korzysta 1:1 z jasnego app-shella operatora. */
body.cxcp-page-body.cleanex-ui-light,
body.cxcp-page-body.cleanex-customer-theme-light {
  --cx-light-bg: #edf2f7;
  --cx-light-surface: #ffffff;
  --cx-light-surface-soft: #f7f9fc;
  --cx-light-surface-soft-2: #eef4f9;
  --cx-light-border: #d7e1eb;
  --cx-light-border-strong: #c8d5e1;
  --cx-light-text: #172536;
  --cx-light-text-2: #263b51;
  --cx-light-muted: #64788d;
  --cx-light-muted-2: #8a9cad;
  --cx-light-accent: #188fe8;
  color: var(--cx-light-text-2) !important;
  background: var(--cx-light-bg) !important;
}

html:has(body.cxcp-page-body.cleanex-ui-light),
html:has(body.cxcp-page-body.cleanex-customer-theme-light),
body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app,
body.cxcp-page-body.cleanex-customer-theme-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app {
  background:
    radial-gradient(circle at 78% 0%, rgba(24, 143, 232, .08), transparent 36%),
    linear-gradient(180deg, #f7fafd 0%, var(--cx-light-bg) 100%) !important;
}

body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > .cleanex-global-header,
body.cxcp-page-body.cleanex-ui-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > header.cleanex-global-header,
body.cxcp-page-body.cleanex-customer-theme-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > .cleanex-global-header,
body.cxcp-page-body.cleanex-customer-theme-light main.cxcp-page.cleanex-customer-page.cleanex-standalone-app > header.cleanex-global-header {
  background: #ffffff !important;
  color: var(--cx-light-text) !important;
  border-bottom: 1px solid var(--cx-light-border) !important;
  box-shadow: 0 8px 24px rgba(40, 68, 94, .06) !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-logo,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-logo__main,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-logo__sub,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-logo,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-logo__main,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-logo__sub {
  color: #172536 !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-logo__main span,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-logo__main span {
  color: #188fe8 !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-nav a,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-nav a {
  color: #29435d !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-nav a:hover,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-nav a:focus-visible,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-nav a:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-nav a:focus-visible {
  color: #0b6fb8 !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-icon,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-user-menu > summary,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .cleanex-live-notifications__toggle,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-icon,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-user-menu > summary,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .cleanex-live-notifications__toggle {
  background: #f4f7fa !important;
  color: #29435d !important;
  border-color: #cfdbe6 !important;
  box-shadow: none !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-icon:hover,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .site-user-menu > summary:hover,
body.cxcp-page-body.cleanex-ui-light .cleanex-global-header .cleanex-live-notifications__toggle:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-icon:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .site-user-menu > summary:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header .cleanex-live-notifications__toggle:hover {
  background: #e7f1fa !important;
  color: #0b6fb8 !important;
  border-color: #b8d5ec !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-global-header svg,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-global-header svg {
  stroke: currentColor !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-live-sync-indicator,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-sync-indicator {
  background: #f7f9fc !important;
  border-color: #d4e0ea !important;
  color: #29435d !important;
  box-shadow: none !important;
}

body.cxcp-page-body.cleanex-ui-light .cleanex-live-sync-indicator__title,
body.cxcp-page-body.cleanex-ui-light .cleanex-live-sync-indicator__time,
body.cxcp-page-body.cleanex-ui-light .cleanex-live-sync-indicator__state,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-sync-indicator__title,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-sync-indicator__time,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-sync-indicator__state {
  color: #29435d !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview),
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-content > .cxcp-shell:not(.cxcp-shell--preview) {
  color: var(--cx-light-text-2) !important;
  background: var(--cx-light-bg) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-nav,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-nav {
  color: var(--cx-light-text-2) !important;
  background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%) !important;
  border-right: 1px solid var(--cx-light-border) !important;
  box-shadow: 10px 0 28px rgba(40, 68, 94, .05) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading {
  border-bottom-color: var(--cx-light-border) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading strong,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading strong {
  color: var(--cx-light-text) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading small,
body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__eyebrow,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__heading small,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__eyebrow {
  color: var(--cx-light-muted) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab,
body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back {
  color: var(--cx-light-text) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab:hover,
body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab:focus-visible,
body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back:hover,
body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back:focus-visible,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab:focus-visible,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back:hover,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__back:focus-visible {
  color: #0b6fb8 !important;
  background: #e7f2fb !important;
  border-color: #bfd8eb !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab.is-active,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab.is-active {
  color: #ffffff !important;
  background: #188fe8 !important;
  border-color: #188fe8 !important;
  box-shadow: inset 3px 0 0 #0878ce, 0 8px 18px rgba(24, 143, 232, .16) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab.is-active *,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-nav__tab.is-active * {
  color: #ffffff !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-helpdesk,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-helpdesk {
  color: #29435d !important;
  background: #ffffff !important;
  border-color: #d3dfeb !important;
  box-shadow: 0 8px 22px rgba(40, 68, 94, .04) !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-helpdesk *,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) .cxcp-helpdesk * {
  color: inherit !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main {
  color: var(--cx-light-text-2) !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(24, 143, 232, .07), transparent 32%),
    linear-gradient(180deg, #f7fafd 0%, var(--cx-light-bg) 100%) !important;
  box-shadow: none !important;
  scrollbar-color: #a8bacb #e5ebf1 !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-track,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-track {
  background: #e5ebf1 !important;
}

body.cxcp-page-body.cleanex-ui-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-thumb,
body.cxcp-page-body.cleanex-customer-theme-light .cxcp-shell:not(.cxcp-shell--preview) > .cxcp-main::-webkit-scrollbar-thumb {
  background: #a8bacb !important;
  border-color: #e5ebf1 !important;
}

body.cxcp-page-body.cleanex-ui-light .site-user-dropdown,
body.cxcp-page-body.cleanex-ui-light .cleanex-live-notifications__panel,
body.cxcp-page-body.cleanex-customer-theme-light .site-user-dropdown,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-notifications__panel {
  color: var(--cx-light-text-2) !important;
  background: #ffffff !important;
  border-color: #cfdbe6 !important;
  box-shadow: 0 20px 50px rgba(40, 66, 89, .18) !important;
}

body.cxcp-page-body.cleanex-ui-light .site-user-dropdown *,
body.cxcp-page-body.cleanex-ui-light .cleanex-live-notifications__panel *,
body.cxcp-page-body.cleanex-customer-theme-light .site-user-dropdown *,
body.cxcp-page-body.cleanex-customer-theme-light .cleanex-live-notifications__panel * {
  color: var(--cx-light-text-2);
}


/* v0.9.79: kontrast przycisku „Otwórz koszyk” w jasnym panelu klienta. */
body.cleanex-ui-light a.cxcp-primary-action,
body.cleanex-ui-light .cxcp-shell a.cxcp-primary-action,
body.cleanex-ui-light .cxcp-shell.cxcp-theme-light a.cxcp-primary-action,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview a.cxcp-primary-action,
body.cxcp-page-body.cleanex-ui-light a.cxcp-primary-action {
  color: #ffffff !important;
  background: #188fe8 !important;
  border: 1px solid #188fe8 !important;
  box-shadow: 0 10px 24px rgba(24, 143, 232, .18) !important;
  text-shadow: none !important;
}

body.cleanex-ui-light a.cxcp-primary-action *,
body.cleanex-ui-light .cxcp-shell a.cxcp-primary-action *,
body.cleanex-ui-light .cxcp-shell.cxcp-theme-light a.cxcp-primary-action *,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview a.cxcp-primary-action *,
body.cxcp-page-body.cleanex-ui-light a.cxcp-primary-action * {
  color: #ffffff !important;
}

body.cleanex-ui-light a.cxcp-primary-action:hover,
body.cleanex-ui-light a.cxcp-primary-action:focus-visible,
body.cleanex-ui-light .cxcp-shell a.cxcp-primary-action:hover,
body.cleanex-ui-light .cxcp-shell a.cxcp-primary-action:focus-visible,
body.cleanex-ui-light .cxcp-shell.cxcp-theme-light a.cxcp-primary-action:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-theme-light a.cxcp-primary-action:focus-visible,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview a.cxcp-primary-action:hover,
body.cleanex-ui-light .cxcp-shell.cxcp-shell--preview a.cxcp-primary-action:focus-visible,
body.cxcp-page-body.cleanex-ui-light a.cxcp-primary-action:hover,
body.cxcp-page-body.cleanex-ui-light a.cxcp-primary-action:focus-visible {
  color: #ffffff !important;
  background: #075f9f !important;
  border-color: #075f9f !important;
  box-shadow: 0 12px 26px rgba(7, 95, 159, .24) !important;
  outline: 3px solid rgba(24, 143, 232, .18) !important;
  outline-offset: 2px !important;
  filter: none !important;
}

/* v0.9.85: backend-driven showroom categories */
.cleanex-category-create-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.2rem;
  border: 1px solid rgba(66, 154, 235, .18);
  border-radius: 1.2rem;
  background: rgba(3, 15, 28, .38);
}
.cleanex-category-create-card > header {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: end;
}
.cleanex-category-create-card > header span {
  display: block;
  color: #249cff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cleanex-category-create-card > header h3 { margin: .25rem 0 0; }
.cleanex-category-create-card > header p { margin: 0; opacity: .72; line-height: 1.5; }
.cleanex-category-media-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.cleanex-category-image-preview,
.cleanex-category-admin-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(66,154,235,.28);
  border-radius: 1rem;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    rgba(2,9,18,.28);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.cleanex-category-image-preview { min-height: 13rem; aspect-ratio: 1; }
.cleanex-category-image-preview img,
.cleanex-category-admin-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cleanex-category-image-preview span,
.cleanex-category-admin-thumb em { opacity: .55; font-size: .75rem; font-style: normal; }
.cleanex-inline-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: .7rem !important;
}
.cleanex-inline-check input { width: auto !important; margin-top: .2rem; flex: 0 0 auto; }
.cleanex-inline-check span { display: grid; gap: .2rem; }
.cleanex-inline-check small { opacity: .65; line-height: 1.4; }
.cleanex-showroom-checkbox {
  padding: .9rem 1rem;
  border: 1px solid rgba(36,156,255,.2);
  border-radius: .9rem;
  background: rgba(36,156,255,.05);
}
.cleanex-category-admin-list { display: grid; gap: .7rem; }
.cleanex-category-admin-card {
  border: 1px solid rgba(66,154,235,.16);
  border-radius: 1rem;
  background: rgba(2,10,18,.28);
  overflow: hidden;
}
.cleanex-category-admin-card > summary {
  display: grid;
  grid-template-columns: 4.2rem minmax(13rem, 1fr) auto auto auto auto auto;
  gap: .8rem;
  align-items: center;
  min-height: 5.25rem;
  padding: .6rem .8rem;
  cursor: pointer;
  list-style: none;
}
.cleanex-category-admin-card > summary::-webkit-details-marker { display: none; }
.cleanex-category-admin-thumb { width: 4.2rem; height: 4.2rem; border-radius: .8rem; }
.cleanex-category-admin-main { min-width: 0; display: grid; gap: .14rem; }
.cleanex-category-admin-main strong,
.cleanex-category-admin-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cleanex-category-admin-main small { opacity: .55; }
.cleanex-category-admin-kind,
.cleanex-category-admin-visibility,
.cleanex-category-admin-order,
.cleanex-category-admin-count {
  padding: .38rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 800;
}
.cleanex-category-admin-kind.is-machine { color: #bde3ff; background: rgba(36,156,255,.12); }
.cleanex-category-admin-kind.is-accessory { color: #f2d6a4; background: rgba(238,170,60,.12); }
.cleanex-category-admin-visibility.is-visible { color: #bff7d4; background: rgba(39,190,105,.12); }
.cleanex-category-admin-visibility.is-hidden { color: rgba(231,239,247,.58); background: rgba(255,255,255,.05); }
.cleanex-category-admin-order,
.cleanex-category-admin-count { color: rgba(231,239,247,.66); background: rgba(255,255,255,.045); }
.cleanex-category-admin-edit { color: #69b9ff; font-weight: 900; }
.cleanex-category-admin-editor { padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.cleanex-category-form.is-compact { padding: 0; }

.cxcp-shell.cxcp-theme-light .cleanex-category-create-card,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-create-card,
.cxcp-shell.cxcp-theme-light .cleanex-category-admin-card,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-admin-card {
  border-color: #d8e4ef;
  background: rgba(255,255,255,.76);
}
.cxcp-shell.cxcp-theme-light .cleanex-category-image-preview,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-image-preview,
.cxcp-shell.cxcp-theme-light .cleanex-category-admin-thumb,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-admin-thumb {
  border-color: #cbdce9;
  background-color: #f4f8fb;
}
.cxcp-shell.cxcp-theme-light .cleanex-category-admin-order,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-admin-order,
.cxcp-shell.cxcp-theme-light .cleanex-category-admin-count,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-admin-count {
  color: #4d6070;
  background: #eef4f8;
}

@media (max-width: 1100px) {
  .cleanex-category-admin-card > summary { grid-template-columns: 4.2rem minmax(10rem,1fr) auto auto; }
  .cleanex-category-admin-order,
  .cleanex-category-admin-count,
  .cleanex-category-admin-edit { display: none; }
}
@media (max-width: 720px) {
  .cleanex-category-create-card > header,
  .cleanex-category-media-grid { grid-template-columns: 1fr; }
  .cleanex-category-image-preview { width: min(100%, 15rem); }
  .cleanex-category-admin-card > summary { grid-template-columns: 3.6rem minmax(0,1fr) auto; }
  .cleanex-category-admin-thumb { width: 3.6rem; height: 3.6rem; }
  .cleanex-category-admin-kind { display: none; }
}


/* v0.9.90: compact warehouse image thumbnails. */
.cleanex-machine-title {
  display: grid !important;
  grid-template-columns: 3.4rem minmax(0,1fr);
  align-items: center;
  gap: .7rem;
}
.cleanex-machine-admin-thumb {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: .72rem;
  background: rgba(255,255,255,.035);
}
.cleanex-machine-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.cleanex-machine-admin-thumb em {
  padding: .2rem;
  font-size: .55rem;
  line-height: 1.1;
  text-align: center;
  opacity: .58;
}
.cleanex-machine-title-copy { min-width: 0; display: grid; gap: .15rem; }
.cleanex-category-image-preview {
  width: 7rem !important;
  height: 7rem !important;
  min-height: 0 !important;
  aspect-ratio: 1;
}
.cleanex-category-admin-thumb {
  width: 3.8rem !important;
  height: 3.8rem !important;
}
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-machine-admin-thumb,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-image-preview,
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-category-admin-thumb {
  background: #fff;
  border-color: rgba(37,73,110,.16);
}

/* v0.9.91: catalog filter metadata in warehouse. */
.cleanex-catalog-filter-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(66,154,235,.16);
  border-radius: 1rem;
  background: rgba(4,18,32,.28);
}
.cleanex-catalog-filter-fields > legend {
  padding: 0 .45rem;
  color: #8dcbff;
  font-weight: 900;
}
.cleanex-catalog-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.cleanex-catalog-filter-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .85rem;
  background: rgba(255,255,255,.025);
}
.cleanex-catalog-filter-grid > div > strong {
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cleanex-catalog-filter-grid .cleanex-parent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-catalog-filter-fields {
  border-color: #d5e3ee;
  background: rgba(247,250,253,.88);
}
body.cleanex-operator-page-body.cleanex-ui-light .cleanex-catalog-filter-grid > div {
  border-color: #dbe6ee;
  background: #fff;
}
@media (max-width: 980px) {
  .cleanex-catalog-filter-grid { grid-template-columns: 1fr; }
}


/* v0.9.93: catalog-based cart recommendations. */
.cleanex-cart-recommendation-card--compact {
  grid-template-columns: 4.5rem minmax(0,1fr) auto;
  align-items: center;
  gap: .75rem;
}
.cleanex-cart-recommendation-thumb {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(38,152,255,.16);
  border-radius: .8rem;
  background: rgba(255,255,255,.035);
}
.cleanex-cart-recommendation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .2rem;
}
.cleanex-cart-recommendation-thumb span {
  padding: .3rem;
  font-size: .58rem;
  text-align: center;
  opacity: .6;
}
.cleanex-cart-recommendation-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 720px) {
  .cleanex-cart-recommendation-card--compact { grid-template-columns: 3.8rem minmax(0,1fr); }
  .cleanex-cart-recommendation-thumb { width: 3.8rem; height: 3.8rem; }
  .cleanex-cart-recommendation-action { grid-column: 1 / -1; }
}

/* v0.9.98: dedicated ordering rules cards in warehouse settings. */
.cleanex-settings-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cleanex-settings-rule-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(74, 142, 226, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 37, 67, 0.82), rgba(8, 25, 47, 0.9));
  box-shadow: 0 18px 34px rgba(0, 10, 26, 0.12);
}

.cleanex-settings-rule-card > span {
  color: #62b5ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cleanex-settings-rule-card > strong {
  font-size: 1.05rem;
}

.cleanex-settings-rule-card > p {
  margin: 0;
  color: rgba(215, 229, 247, 0.76);
  line-height: 1.5;
}

.cleanex-settings-rule-card label {
  margin-top: 2px;
}

.cleanex-ui-light .cleanex-settings-rule-card,
.cleanex-operator-theme-light .cleanex-settings-rule-card {
  border-color: rgba(58, 111, 170, 0.18);
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow: 0 14px 28px rgba(32, 65, 100, 0.08);
}

.cleanex-ui-light .cleanex-settings-rule-card > p,
.cleanex-operator-theme-light .cleanex-settings-rule-card > p {
  color: #59708a;
}

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