/* Яркая тема, слой поверх страничных CSS. Обычный вид не меняется.
   Оболочка как в Битрикс24: обои стоят, между страницами меняется белый лист. */

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-calculator):not(.page-calc-client) {
  background-color: #2a1d55 !important;
  background-image: url("/static/img/cmyk-apple-wallpaper.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

@media (min-width: 992px) {
  html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .cmykos-sidebar {
    top: 0;
    bottom: 0;
    z-index: 1040;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }
  html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]):not(.cmyk-nav-collapsed) body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .navbar-fintech {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .navbar-fintech,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .navbar-fintech {
    margin-left: 72px !important;
    width: calc(100% - 72px) !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar {
    width: 72px !important;
    transform: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding-left: 0;
    padding-right: 0;
    transition: width 0.22s ease;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:hover,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:hover {
    width: 268px !important;
    box-shadow: 14px 0 36px rgba(8, 6, 28, 0.38);
  }
}

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .cmykos-main {
  background: rgba(255, 255, 255, 0.46) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(16, 10, 40, 0.22);
  margin: 12px 16px 16px 266px !important;
  min-height: calc(100vh - var(--cmykos-topbar-h) - 28px);
  padding: 18px 20px 28px !important;
}
html[data-ui-style="vivid"].cmyk-nav-collapsed body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .cmykos-main,
html[data-ui-style="vivid"] body.cmyk-nav-collapsed:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .cmykos-main {
  margin: 12px 16px 16px 88px !important;
}
@media (min-width: 992px) {
  html[data-ui-style="vivid"].cmyk-nav-collapsed body.page-chats:not(.page-chats--partner):not(.chat-in-tab) .cmykos-main,
  html[data-ui-style="vivid"] body.page-chats.cmyk-nav-collapsed:not(.page-chats--partner):not(.chat-in-tab) .cmykos-main {
    margin-left: 72px !important;
  }
}

html[data-ui-style="vivid"] body.page-directories .cmykos-sidebar {
  display: block !important;
}
html[data-ui-style="vivid"] body.page-directories .cmykos-sidebar-toggle {
  display: inline-flex !important;
}

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-calculator):not(.page-calc-client) .cmykos-sidebar-toggle {
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-calculator):not(.page-calc-client) .cmykos-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
html[data-ui-style="vivid"] .cmykos-sidebar__label-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
html[data-ui-style="vivid"] .cmykos-sidebar__label .bi {
  font-size: 1.05rem;
  color: inherit;
}

@media (min-width: 992px) {
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-nav-rail,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-nav-rail {
    display: none !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-nav-collapse-btn,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-nav-collapse-btn {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    margin: 4px auto 10px;
    padding: 0;
    justify-content: center;
    border-color: transparent !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-nav-collapse-btn span,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-nav-collapse-btn span {
    display: none !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-nav-collapse-btn .bi,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-nav-collapse-btn .bi {
    transform: rotate(180deg);
    font-size: 1.15rem;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__panel,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__panel,
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__sublabel,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__sublabel,
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label-text,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label-text {
    display: none !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label {
    display: flex !important;
    justify-content: center !important;
    padding: 10px 0 !important;
    color: #fff !important;
    background: transparent !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label::after,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label::after {
    content: none !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label .bi,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__label .bi {
    margin: 0 !important;
    font-size: 1.3rem !important;
    color: #fff !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link {
    justify-content: center;
    gap: 0 !important;
    padding: 8px 0 !important;
    font-size: 0 !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link > span:not(.ico),
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link > span:not(.ico) {
    display: none !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link .ico,
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link .bi,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link .ico,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:not(:hover) .cmykos-sidebar__inner > .cmykos-sidebar__link .bi {
    font-size: 1.25rem !important;
    width: 1.4rem !important;
    margin: 0 auto;
    color: #fff !important;
  }
  html[data-ui-style="vivid"].cmyk-nav-collapsed .cmykos-sidebar:hover .cmykos-sidebar__panel,
  html[data-ui-style="vivid"] body.cmyk-nav-collapsed .cmykos-sidebar:hover .cmykos-sidebar__panel {
    display: flex !important;
  }
}

html[data-ui-style="vivid"] .modal-content,
html[data-ui-style="vivid"] .offcanvas {
  background: rgba(255, 255, 255, 0.62) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  color: #1a2332 !important;
  box-shadow: 0 24px 64px rgba(8, 6, 28, 0.4) !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-chats .chat-app,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-chats .chat-messages-area,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-chats #messages-scroll {
  background: transparent !important;
  background-image: none !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-chats .chat-layout .stripe-card {
  background: rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
html[data-ui-style="vivid"] .modal-header,
html[data-ui-style="vivid"] .offcanvas-header,
html[data-ui-style="vivid"] .modal-footer {
  background: #fff;
  color: #1a2332;
  border-color: #d5dee6 !important;
}
html[data-ui-style="vivid"] .modal-backdrop.show,
html[data-ui-style="vivid"] .offcanvas-backdrop.show {
  opacity: 0.62;
  background-color: #100a22;
}
html[data-ui-style="vivid"] .mp-card {
  background: #f6f8fa;
  border: 1px solid #c5ced6;
  color: #1a2332;
}
html[data-ui-style="vivid"] .mp-card-title { color: #121820; }
html[data-ui-style="vivid"] .mp-card-msg { color: #243040; }
html[data-ui-style="vivid"] .mp-card.sev-warning {
  background: #fff;
  border-color: #d6a400;
}
html[data-ui-style="vivid"] .mp-card.sev-critical {
  background: #fff;
  border-color: #e04b4b;
}
html[data-ui-style="vivid"] #nav-pulse-link .bi-bell {
  font-size: 1.25rem;
  line-height: 1;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-home-dash):not(.page-chats):not(.page-cabinet) .cmykos-main .sales-screen,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .order-card-page {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

@media (max-width: 991.98px) {
  html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-cabinet):not(.page-calculator):not(.page-calc-client) .cmykos-main {
    margin: 8px !important;
  }
  html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body:not(.page-chats):not(.page-calculator):not(.page-calc-client) .navbar-fintech {
    margin-left: 0 !important;
    width: auto !important;
  }
}

html[data-ui-style="vivid"] body.page-home-dash .home-dash {
  max-width: none;
  padding-top: 4px;
}
html[data-ui-style="vivid"] body.page-home-dash .home-dash__hello h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #12151c !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
html[data-ui-style="vivid"] body.page-home-dash .home-dash__hello p {
  color: #1c2430 !important;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-ui-style="vivid"] body.page-home-dash .home-dash__grid {
  gap: 14px;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-home-dash .home-widget {
  border-top: 0;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-home-dash .home-widget__head {
  background: #fff !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #eef2f4;
  border-radius: 0;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-home-dash .home-widget__title,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-home-dash .home-widget__link {
  color: #333 !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-home-dash .home-widget__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #f2f4f6 !important;
  color: #525c69 !important;
  filter: grayscale(1);
  opacity: 0.85;
}

html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-app {
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 0 28px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html[data-ui-style="vivid"] body.page-orders-queue .sales-screen__head {
  align-items: flex-end;
  border-bottom: 0;
  margin-bottom: 10px;
  padding-bottom: 0;
}
html[data-ui-style="vivid"] body.page-orders-queue .sales-screen__title {
  font-size: 30px !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em;
  color: #333 !important;
  line-height: 1.15;
}
html[data-ui-style="vivid"] body.page-orders-queue .sales-screen__sub {
  display: none;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-count {
  background: #fff !important;
  color: #525c69 !important;
  border: 1px solid #d5dde3;
  border-radius: 14px;
  font-weight: 600;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px !important;
  padding: 4px;
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 10px;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-tabs .ds-btn {
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #525c69 !important;
  box-shadow: none !important;
  min-height: 32px;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-tabs .ds-btn--primary {
  background: #2fc6f6 !important;
  color: #fff !important;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-panel {
  background: #fff;
  border: 1px solid #e3e8ed;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(32, 48, 64, 0.04);
  overflow: hidden;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-toolbar {
  background: #f7f9fb;
  border-bottom: 1px solid #e6ebf0;
  padding: 10px 12px;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-dl-chip {
  border-radius: 6px;
  background: #fff;
  border-color: #d5dde3;
  color: #525c69;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-dl-chip.is-active {
  background: #2fc6f6;
  border-color: #2fc6f6;
  color: #fff;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-dl-chip--overdue.is-active {
  background: #f54819;
  border-color: #f54819;
  color: #fff;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-table thead th {
  background: #fff !important;
  color: #9aa3ab !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #e6ebf0 !important;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-table tbody tr.order-row td {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border-bottom: 1px solid #f0f3f5;
  background: transparent;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-table tbody tr.order-row:hover td {
  background: #f3fbfe !important;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-order-no {
  color: #2066b0 !important;
  font-size: 16px;
  font-weight: 700;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-client {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
html[data-ui-style="vivid"] body.page-orders-queue .ws-badge {
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}
html[data-ui-style="vivid"] body.page-orders-queue .orders-queue-price {
  color: #1a7f4b;
  font-weight: 700;
}

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col:nth-child(5n+1) .crm-col__head { background: #2fc6f6 !important; }
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col:nth-child(5n+2) .crm-col__head { background: #9dcf00 !important; }
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col:nth-child(5n+3) .crm-col__head { background: #ffa900 !important; }
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col:nth-child(5n+4) .crm-col__head { background: #f54819 !important; }
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col:nth-child(5n+5) .crm-col__head { background: #b05cff !important; }
html[data-ui-style="vivid"] .vivid-top-suggest__row[data-kind="page"] .vivid-top-suggest__kind {
  background: #f4ecff;
  color: #6b3fa0;
}

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col__name,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) body.page-crm-board .crm-col__total {
  color: #fff !important;
}

/* Стеклянное меню поверх обоев: белый текст, светлая плашка у активного пункта. */

html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar.cmykos-sidebar {
  background: rgba(36, 24, 78, 0.42) !important;
  background-image: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar .ico {
  filter: none;
  opacity: 0.92;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link .ico,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link .bi {
  width: 1.25rem !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem !important;
  box-shadow: none !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link:hover,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link:focus-visible,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link:hover .ico,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link:hover .bi,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link.is-active .ico,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__link.is-active .bi {
  background: none !important;
  color: #fff !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__label::before {
  content: none !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__label {
  color: rgba(255, 255, 255, 0.62) !important;
}
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__label:hover,
html[data-ui-style="vivid"]:not([data-ds-appearance="dark"]) .cmykos-sidebar__accordion[open] > .cmykos-sidebar__label {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
