html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: transparent;
    text-align: start;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    color: transparent;
    text-align: start;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--rz-base-200);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rz-base-300);
    vertical-align: middle;
}

.comparison-table .section-header {
    background: var(--rz-base-100);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tr:hover td {
    background: var(--rz-base-50);
}

.comparison-table .rz-dropdown,
.comparison-table .rz-dropdown-multiple,
.comparison-table .rz-inputtext,
.comparison-table .rz-textbox,
.comparison-table .rz-textarea,
.comparison-table .rz-datepicker {
    width: 100%;
    min-height: 2.75rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.comparison-table .rz-dropdown,
.comparison-table .rz-dropdown-multiple {
    display: flex;
    align-items: center;
    padding: 0;
}

.comparison-table .rz-inputtext,
.comparison-table .rz-textbox,
.comparison-table .rz-textarea {
    padding: 0.75rem 1rem;
}

.comparison-table .rz-dropdown .rz-dropdown-label,
.comparison-table .rz-dropdown-multiple .rz-dropdown-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    line-height: normal;
}

.data-sources-upload.rz-fileupload {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.data-sources-upload .rz-fileupload-buttonbar {
    background: transparent !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
}

.data-sources-upload .rz-fileupload-choose {
    box-shadow: none !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--rz-primary) !important;
    border: none !important;
    color: var(--rz-on-primary) !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-sources-upload .rz-fileupload-content {
    display: none !important;
}

.guid-text {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    display: inline-flex;
    flex-direction: column;
    gap: 0;
}

.guid-text .guid-line {
    display: block;
    white-space: nowrap;
}

.tss-text {
    min-width: 32ch;
}

.tx-action-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
    width: 100%;
}

.tx-action-stack .rz-button {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.puritas-map-popup {
    position: absolute;
    /* PC-936: --iw-shift опускает окошко, когда шапка не влезает над булавкой (crm-map.js, clampIntoMap). */
    transform: translate(-50%, calc(-100% - 12px + var(--iw-shift, 0px)));
    pointer-events: auto;
    z-index: 1;
}

.crm-map-shell {
    position: relative;
}

.crm-map-canvas {
    width: 100%;
    height: clamp(240px, 40vh, 520px);
}

.crm-map-panel {
    margin: 0;
}

.crm-map-control {
    position: absolute;
    top: 64px;
    right: 10px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.crm-map-control-button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 2px;
    border: 0 !important;
    background: #ffffff !important;
    color: #666666;
    opacity: 1;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-map-control-button .rzi {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    color: #666666;
    opacity: 1;
}

.crm-map-control-button:hover {
    color: #333333;
}

.crm-map-control-button:active {
    color: #111111;
}

.crm-map-input-row {
    width: 100%;
}

.crm-map-address-field {
    position: relative;
    flex: 2 1 0;
    min-width: 0;
}

.crm-map-address-input {
    width: 100%;
    padding-right: 46px;
}

.crm-map-clear-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-color: #d1d5db !important;
    background: #ffffff !important;
}

.crm-map-clear-button--infield {
    position: absolute !important;
    right: 6px;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 6px;
    z-index: 1;
}

.crm-map-clear-button .rzi {
    color: #6b7280;
    font-size: 20px;
}

.crm-map-clear-button:hover .rzi {
    color: #374151;
}

.crm-map-installer-select {
    min-width: 0;
    flex: 1 1 0;
    width: 100%;
}

.crm-map-installer-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crm-map-installer-name {
    font-weight: 600;
    color: #111827;
}

.crm-map-installer-line {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

.puritas-map-iw {
    font-family: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    min-width: 260px;
    max-width: 360px;
    width: auto;
    display: inline-block;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6eff2;
}

.puritas-map-iw__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    background: #2f7d8a;
    color: #ffffff;
}

.puritas-map-iw__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.puritas-map-iw__directions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.puritas-map-iw__directions-label {
    color: #e8f5f6;
    letter-spacing: 0.02em;
}

.puritas-map-iw__directions-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.22);
}

.puritas-map-iw__directions-icon svg {
    fill: #2f7d8a;
}

.puritas-map-iw__body {
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem 0.8rem;
}

.puritas-map-iw__close {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.puritas-map-iw__close svg {
    display: block;
    fill: currentColor;
}

.puritas-map-iw__row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.puritas-map-iw__icon {
    color: #2f7d8a;
    margin-top: 0.12rem;
    flex: 0 0 auto;
}

.puritas-map-iw__icon svg {
    display: block;
    fill: currentColor;
}

.puritas-map-iw__text {
    font-size: 0.86rem;
    line-height: 1.4;
    color: #1f2937;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.puritas-map-iw__row--proposed .puritas-map-iw__icon,
.puritas-map-iw__row--proposed .puritas-map-iw__text {
    color: #ff9800;
    font-weight: 600;
}

.puritas-map-iw__row--confirmed .puritas-map-iw__icon,
.puritas-map-iw__row--confirmed .puritas-map-iw__text {
    color: #16a34a;
    font-weight: 600;
}

/* PC-922: строка «WC Typ» с выбором варианта унитаза прямо в окошке у точки. Подпись и выпадающий
   список стоят в одной строке с иконкой — той же раскладкой, что и строка желаемого срока ниже. */
.puritas-map-iw__row--toilet {
    align-items: center;
}

.puritas-map-iw__toilet-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2f7d8a;
    white-space: nowrap;
}

.puritas-map-iw__toilet-select {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.28rem 0.4rem;
    font-size: 0.82rem;
    border: 1px solid #d5e2e5;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}

.puritas-map-iw__desired {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.puritas-map-iw__desired-label {
    color: #ff9800;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.puritas-map-iw__date-input {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 152, 0, 0.24);
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.puritas-map-iw__desired-ok {
    flex: 0 0 auto;
    padding: 0.32rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #16a34a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.puritas-map-iw__desired-ok:hover {
    background: #15803d;
}

/* PC-968: результат сохранения из окошка у точки. Красный ряд внизу окошка — то же место и тот же
   вид, что у отказа в панели (.mobile-alert): раньше отказ уходил в панель, которой на широком
   экране нет, и окошко просто закрывалось. */
.puritas-map-iw__status {
    margin: 0.5rem 0 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

@media (max-width: 420px) {
    .puritas-map-iw {
        max-width: calc(100vw - 32px);
    }
}

.puritas-map-iw__text[href] {
    color: #2f7d8a;
}

.puritas-map-iw__text[href]:hover {
    text-decoration: underline;
}

.puritas-map-iw__remove {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.puritas-map-iw__remove:hover {
    background: #b91c1c;
}

.puritas-map-iw__remove svg {
    display: block;
    fill: currentColor;
}

.puritas-map-iw__remove + .puritas-map-iw__close {
    margin-left: 0.4rem;
}

.installer-shell {
    --installer-header-control-size: 48px;
    min-height: 100vh;
    background: #f6f7f9;
    color: #17202a;
}

.installer-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 66px;
    padding: 0.45rem 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid #d9e1e8;
}

.installer-header form {
    position: relative;
    z-index: 35;
}

.installer-header form .rz-button {
    box-sizing: border-box;
    width: var(--installer-header-control-size);
    min-width: var(--installer-header-control-size);
    height: var(--installer-header-control-size);
    min-height: var(--installer-header-control-size);
    padding: 0 !important;
    border: 1px solid #f3b4b4 !important;
    border-radius: 8px;
    background: #fff5f5 !important;
    color: #b42318 !important;
}

.installer-header form .rz-button .rz-button-icon-left {
    color: #b42318 !important;
    font-size: 1.35rem;
}

.installer-main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 0.9rem;
}

/* Вкладки исходов на странице партнёра. Цвета назвал владелец: отказ — красный, работа — жёлтая,
   оплата страховой — оранжевая, расчёт с партнёром — зелёный.

   Три из четырёх взяты из темы Radzen (material-base): --rz-danger #f44336, --rz-success #4caf50 и
   --rz-warning, который в этой теме и есть ОРАНЖЕВЫЙ #ff9800 — отдельной переменной под оранжевый
   заводить не пришлось. Жёлтого у темы нет вовсе, поэтому он один и объявлен здесь: значения взяты
   не с потолка, а из уже существующей в проекте янтарной тройки палитры значков магазина
   (StoreBadgePalettes в Crm/ClientCases/Index.razor).

   У каждой вкладки два вида, и цвет обязан читаться в обоих: активная залита цветом, неактивная —
   цветной текст и рамка на светлой подложке того же тона. На заливке текст выбран по контрасту, а не
   по привычке: на жёлтом и оранжевом белый не читается (2.1:1), поэтому там тёмный, а красный и
   зелёный взяты на тон темнее темы — на чистых --rz-danger/--rz-success белый даёт 4.0 и 2.6, что
   ниже порога 4.5. */
.partner-outcome-tabs {
    --partner-tab-yellow: #fcd34d;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.partner-outcome-tab.rz-button {
    border: 1px solid var(--partner-tab-color) !important;
    background: var(--partner-tab-surface) !important;
    color: var(--partner-tab-ink) !important;
}

.partner-outcome-tab.partner-outcome-tab--active.rz-button {
    background: var(--partner-tab-fill) !important;
    border-color: var(--partner-tab-fill) !important;
    color: var(--partner-tab-on-fill) !important;
}

.partner-outcome-tab--paid {
    --partner-tab-color: var(--rz-warning);
    --partner-tab-fill: var(--rz-warning);
    --partner-tab-surface: #fff7ed;
    --partner-tab-ink: #9a3412;
    /* На оранжевой заливке текст темнее, чем цветной текст неактивной вкладки: #7c2d12 давал на
       #ff9800 ровно 4.35 — измерено в браузере, порог 4.5. Этот даёт 5.2. */
    --partner-tab-on-fill: #6b2410;
}

.partner-outcome-tab--partner-paid {
    --partner-tab-color: var(--rz-success);
    --partner-tab-fill: var(--rz-success-darker);
    --partner-tab-surface: #f0fdf4;
    --partner-tab-ink: #15803d;
    --partner-tab-on-fill: #ffffff;
}

.partner-outcome-tab--in-progress {
    --partner-tab-color: var(--partner-tab-yellow);
    --partner-tab-fill: var(--partner-tab-yellow);
    --partner-tab-surface: #fefce8;
    --partner-tab-ink: #713f12;
    --partner-tab-on-fill: #713f12;
}

.partner-outcome-tab--negative {
    --partner-tab-color: var(--rz-danger);
    --partner-tab-fill: var(--rz-danger-dark);
    --partner-tab-surface: #fff5f5;
    --partner-tab-ink: #b42318;
    --partner-tab-on-fill: #ffffff;
}

.installer-page,
.installer-detail,
.installer-upload-section,
.installer-list,
.installer-info-grid {
    display: grid;
    gap: 0.8rem;
}

.installer-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.installer-page--detail .installer-detail-nav {
    position: fixed;
    top: 0.55rem;
    left: max(0.75rem, calc((100vw - 720px) / 2 + 0.9rem));
    z-index: 35;
    display: block;
    gap: 0;
}

.installer-page--detail .installer-detail-nav__back {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid #b9cdd1 !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #176b74 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.installer-page--detail .installer-detail-nav__back .rz-button-icon-left {
    color: #176b74 !important;
    font-size: 1.35rem;
    font-weight: 800;
}

.installer-detail__header h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.installer-detail__header span {
    color: #667085;
    font-size: 0.88rem;
}

.installer-day-nav {
    position: fixed;
    top: 0.45rem;
    left: max(0.75rem, calc((100vw - 720px) / 2 + 0.9rem));
    right: max(4.25rem, calc((100vw - 720px) / 2 + 4.4rem));
    z-index: 30;
    display: grid;
    grid-template-columns: var(--installer-header-control-size) minmax(0, 1fr) var(--installer-header-control-size);
    align-items: center;
    gap: 0.5rem;
}

.installer-day-nav .rz-button {
    box-sizing: border-box;
    width: var(--installer-header-control-size);
    min-width: var(--installer-header-control-size);
    height: var(--installer-header-control-size);
    min-height: var(--installer-header-control-size);
    padding: 0 !important;
    border: 1px solid #176b74 !important;
    border-radius: 8px;
    background: #eef7f8 !important;
    color: #176b74 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.installer-day-nav .rz-button .rz-button-icon-left {
    font-size: 1.55rem;
    font-weight: 800;
    color: #176b74 !important;
}

.installer-day-nav__date {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.1rem;
    box-sizing: border-box;
    height: var(--installer-header-control-size);
    min-height: var(--installer-header-control-size);
    padding: 0.2rem 0.75rem;
    border: 1px solid #b9cdd1;
    border-radius: 8px;
    background: #ffffff;
    color: #17202a;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.installer-day-nav__date span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.installer-day-nav__date strong {
    font-size: 1.15rem;
    line-height: 1.15;
}

.installer-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.35rem;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
}

.installer-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 0.55rem;
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    background: #ffffff;
    color: #52606d;
    font-weight: 700;
}

.installer-filter-button--active.installer-filter-button--upcoming {
    border-color: #176b74;
    background: #237781;
    color: #ffffff;
}

.installer-filter-button--active.installer-filter-button--completed {
    border-color: #166534;
    background: #18804b;
    color: #ffffff;
}

.installer-filter-button strong {
    min-width: 1.65rem;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 0.78rem;
    line-height: 1.35;
}

.installer-filter-button--active strong {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.installer-route-toolbar {
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
}

.installer-route-toolbar__summary {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.installer-route-toolbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.installer-route-toolbar__toggle {
    width: 100%;
    min-height: 38px;
}

.installer-route-toolbar__maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    height: 38px;
    border: 1px solid #176b74;
    border-radius: 8px;
    background: #237781;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.installer-route-toolbar__maps:disabled {
    border-color: #d0d5dd;
    background: #f2f4f7;
    color: #98a2b3;
    box-shadow: none;
}

.installer-card {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    text-align: left;
    overflow: hidden;
}

.installer-card--selected {
    border-color: #c26a00;
    box-shadow: 0 0 0 1px #c26a00;
}

.installer-card--upcoming {
    border-color: #f2a93b;
    background: #fff8ec;
}

.installer-card--upcoming .installer-card__meta {
    background: #ffefd2;
}

.installer-card--completed {
    border-color: #25a55f;
    background: #eefcf4;
}

.installer-card--completed .installer-card__meta {
    background: #d9f8e7;
}

.installer-card--completed.installer-card--selected {
    border-color: #18804b;
    box-shadow: 0 0 0 1px #18804b;
}

.installer-card__meta {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem 0.3rem;
}

.installer-card__route-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #374151;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
    cursor: pointer;
}

.installer-card__route-selector .rzi {
    display: inline-grid;
    place-items: center;
    color: currentColor;
    font-size: 2.3rem;
    width: 38px;
    height: 38px;
    line-height: 38px;
    overflow: hidden;
}

.installer-card__route-selector--active {
    background: #176b74;
    color: #ffffff;
    box-shadow: 0 2px 7px rgba(23, 107, 116, 0.32);
}

.installer-card__route-selector--disabled {
    background: #f2f4f7;
    color: #98a2b3;
    box-shadow: none;
    cursor: not-allowed;
}

.installer-card__open {
    display: grid;
    gap: 0.3rem;
    width: 100%;
    padding: 0.25rem 0.9rem 0.9rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.installer-card__open:focus-visible {
    outline: 2px solid #237781;
    outline-offset: -2px;
}

.installer-card__datetime {
    display: grid;
    justify-items: center;
    gap: 0.08rem;
    min-width: 0;
}

.installer-card__day {
    color: #a05a00;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.installer-card__time-label {
    color: #667085;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.installer-card__time {
    color: #17202a;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.installer-card--completed .installer-card__day,
.installer-card--completed .installer-card__time {
    color: #166534;
}

.installer-card__actual-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    min-height: 21px;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: #c8f3da;
    color: #14532d;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.installer-card__actual-time strong {
    font-size: 0.82rem;
}

.installer-card__map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
    cursor: pointer;
}

.installer-card__map-button--upcoming {
    background: #ffffff;
    color: #4b8790;
}

.installer-card__map-button--completed {
    background: #ffffff;
    color: #4b8790;
}

.installer-card__map-button:disabled {
    background: #f2f4f7;
    color: #98a2b3;
    box-shadow: none;
    cursor: not-allowed;
}

.installer-card__directions-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    background: transparent;
    color: currentColor;
}

.installer-card__directions-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.installer-card__map-button:disabled .installer-card__directions-icon {
    color: #98a2b3;
}

.installer-users-action-button.rz-button.rz-variant-text.rz-light {
    color: #3f3ad5;
    opacity: 1;
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.installer-users-action-button .rz-button-icon-left,
.installer-users-action-button .rzi {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: currentColor;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 1.5rem !important;
    line-height: 24px !important;
}

.installer-portal-users-card.rz-card {
    padding: 0;
    overflow: hidden;
    border-color: #d7dce7;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.installer-portal-users-card > .rz-card-content {
    padding: 0;
}

.installer-portal-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e3e7ef;
    background: #f8fafc;
}

.installer-portal-users-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.installer-portal-users-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: #403bd5;
    color: #ffffff;
}

.installer-portal-users-icon .rzi {
    font-size: 1.55rem;
}

.installer-portal-users-heading {
    font-weight: 700;
}

.installer-portal-users-close.rz-button {
    color: #667085;
}

.installer-portal-user-create {
    margin: 0 1.15rem;
    padding: 1rem;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    background: #ffffff;
}

.installer-portal-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(200px, 1fr) minmax(180px, 0.85fr) minmax(180px, 0.85fr) auto;
    align-items: end;
    gap: 0.85rem;
}

.installer-portal-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.installer-portal-field label {
    color: #475467;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.installer-portal-field .rz-textbox,
.installer-portal-field .rz-password {
    min-height: 40px;
}

.installer-portal-create-action {
    display: flex;
    align-items: end;
}

.installer-portal-create-button.rz-button {
    min-height: 40px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(64, 59, 213, 0.18);
}

@media (max-width: 1200px) {
    .installer-portal-form-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .installer-portal-create-action {
        align-items: stretch;
    }

    .installer-portal-create-button.rz-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .installer-portal-users-header {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .installer-portal-user-create {
        margin: 0 0.9rem;
        padding: 0.85rem;
    }

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

.installer-card__name {
    font-size: 1.05rem;
    font-weight: 700;
}

.installer-card__badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.installer-card__badges-leading {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.installer-card__reklamation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-sizing: border-box;
    min-height: 26px;
    padding: 0.15rem 0.5rem;
    border: 1px solid #dfb0b7;
    border-radius: 8px;
    background: #f6e5e7;
    color: #8a2638;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.installer-card__reklamation strong {
    color: inherit;
    font: inherit;
}

.installer-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 26px;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}

.installer-card__status--upcoming {
    background: #ffdca8;
    color: #7a3f00;
}

.installer-card__status--icon-only {
    justify-content: center;
    min-width: 30px;
    padding-inline: 0.2rem;
}

.installer-card__status--completed {
    background: #c8f3da;
    color: #14532d;
}

.installer-card__toilet {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 26px;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    background: #fff0d6;
    color: #7a3f00;
    font-size: 0.88rem;
    font-weight: 700;
}

.installer-card--completed .installer-card__toilet {
    background: #c8f3da;
    color: #14532d;
}

.installer-card__address,
.installer-card__phone {
    color: #52606d;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.installer-card__contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.installer-card__contact-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    min-width: 0;
}

.installer-card__completion-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 2.45rem;
    color: #14532d;
}

.installer-detail,
.installer-upload-section,
.installer-empty,
.installer-alert,
.installer-note {
    padding: 0.9rem;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
}

.installer-detail__header {
    display: grid;
    gap: 0.35rem;
}

.installer-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.installer-pill--success {
    background: #e5f6ee;
    color: #166534;
}

.installer-info-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    color: #17202a;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.installer-info-row__value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.installer-note {
    color: #374151;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.installer-note--installation {
    display: grid;
    gap: 0.45rem;
    border-color: #f0b5c0;
    background: #fff7f8;
}

.installer-note--installation p {
    margin: 0;
    color: #17202a;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.installer-note__content,
.installer-note__translation {
    display: grid;
    gap: 0.2rem;
}

.installer-note__translation {
    padding-top: 0.6rem;
    border-top: 1px solid #e7c8cd;
}

.installer-note__content small,
.installer-note__translation small {
    color: #667085;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.installer-upload-section h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.installer-upload {
    border: 1px dashed #b8c4cc;
    border-radius: 8px;
    background: #f9fafb;
}

.installer-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.installer-media-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid #d9e1e8;
    background: #f3f4f6;
    overflow: hidden;
    color: #17202a;
    text-decoration: none;
}

.installer-media-card > img,
.installer-media-card__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.installer-media-card > img {
    display: block;
    border: 0;
    object-fit: cover;
    background: #ffffff;
}

.installer-media-card__preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f3f4f6;
}

.installer-media-card__preview img,
.installer-media-card__preview object {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #ffffff;
}

.installer-media-card__preview object {
    pointer-events: none;
}

.installer-media-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #237781;
    background: linear-gradient(180deg, #ffffff, #eef6f7);
}

.installer-alert--success {
    border-color: #b7e4c7;
    background: #f0fdf4;
    color: #166534;
}

.installer-alert--danger {
    border-color: #f7c1c1;
    background: #fff5f5;
    color: #991b1b;
}

.installer-empty {
    min-height: 140px;
    align-content: center;
    justify-items: center;
    color: #667085;
    text-align: center;
}

#blazor-error-ui {
    display: none;
}

/* Document storage summary (Settings > Document storage) */
.storage-summary {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.storage-stat-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.storage-stat-group__title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color, #6b7280);
}

.storage-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.storage-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 7.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--rz-base-300, #e5e7eb);
    border-radius: 8px;
    background: var(--rz-base-background-color, #ffffff);
}

.storage-stat__value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--rz-text-color, #1f2937);
}

.storage-stat__label {
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color, #6b7280);
}

.storage-stat--ok {
    border-color: #b7e4c7;
    background: #f0fdf4;
}

.storage-stat--ok .storage-stat__value {
    color: #166534;
}

.storage-stat--warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.storage-stat--warn .storage-stat__value {
    color: #92400e;
}

.storage-stat--danger {
    border-color: #f7c1c1;
    background: #fff5f5;
}

.storage-stat--danger .storage-stat__value {
    color: #991b1b;
}

.storage-stat-note {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color, #6b7280);
}

.storage-summary__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

@media (max-width: 520px) {
    .installer-main {
        padding: 0.75rem;
    }

    .installer-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* PC-936: два срока монтажа в окошке у точки различаются цветом подписи — оранжевая «Planung»
   (планирование) и зелёный «Termin» (подтверждённый срок), тот же зелёный, что у подтверждённой даты. */
.puritas-map-iw__desired--scheduled .puritas-map-iw__desired-label {
    color: #16a34a;
}
