.eocrm-wrap {
    --eocrm-bg: #f5f8fc;
    --eocrm-card: #ffffff;
    --eocrm-border: #d6e0ef;
    --eocrm-text: #1d2a3b;
    --eocrm-muted: #5a6a83;
    --eocrm-primary: #0057b8;
    --eocrm-primary-dark: #004080;
    background: linear-gradient(180deg, #ffffff 0%, var(--eocrm-bg) 100%);
    color: var(--eocrm-text);
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.eocrm-wrap.eocrm-public-wrap,
.eocrm-wrap[data-section] {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.eocrm-agent-login-panel {
    --eocrm-login-bg: #f5f8fc;
    --eocrm-login-card: #ffffff;
    --eocrm-login-border: #d6e0ef;
    --eocrm-login-text: #1d2a3b;
    --eocrm-login-muted: #5a6a83;
    --eocrm-login-primary: #0057b8;
    --eocrm-login-primary-dark: #004080;
    display: flex;
    justify-content: center;
    padding: clamp(24px, 6vw, 72px) 16px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 87, 184, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--eocrm-login-bg) 100%);
    color: var(--eocrm-login-text);
    box-sizing: border-box;
}

.eocrm-agent-login-panel__card {
    width: min(100%, 520px);
    border: 1px solid var(--eocrm-login-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(17, 38, 70, 0.14);
    padding: clamp(22px, 4vw, 36px);
    box-sizing: border-box;
}

.eocrm-agent-login-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 87, 184, 0.08);
    color: var(--eocrm-login-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding: 7px 12px;
    text-transform: uppercase;
}

.eocrm-agent-login-panel h2 {
    margin: 0 0 10px;
    color: var(--eocrm-login-text);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.08;
}

.eocrm-agent-login-panel p {
    margin: 0 0 18px;
    color: var(--eocrm-login-muted);
    line-height: 1.6;
}

.eocrm-agent-login-panel__form .login-username,
.eocrm-agent-login-panel__form .login-password,
.eocrm-agent-login-panel__form .login-remember,
.eocrm-agent-login-panel__form .login-submit {
    margin: 0 0 14px;
}

.eocrm-agent-login-panel__form label {
    display: block;
    margin-bottom: 7px;
    color: var(--eocrm-login-text);
    font-weight: 700;
}

.eocrm-agent-login-panel__form input[type="text"],
.eocrm-agent-login-panel__form input[type="password"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--eocrm-login-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(17, 38, 70, 0.04);
    padding: 10px 12px;
    box-sizing: border-box;
}

.eocrm-agent-login-panel__form input[type="text"]:focus,
.eocrm-agent-login-panel__form input[type="password"]:focus {
    border-color: var(--eocrm-login-primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.14);
    outline: none;
}

.eocrm-agent-login-panel__form .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eocrm-login-muted);
    font-weight: 600;
}

.eocrm-agent-login-panel__submit-row {
    display: flex;
    align-items: center;
    margin: 6px 0 16px;
}

.eocrm-agent-login-panel__form input[type="submit"],
.eocrm-agent-login-panel__form button[type="submit"],
.eocrm-agent-login-panel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--eocrm-login-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 22px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-agent-login-panel__button--submit {
    min-width: 180px;
}

.eocrm-agent-login-panel__button--crm {
    box-shadow: 0 12px 26px rgba(0, 87, 184, 0.2);
}

.eocrm-agent-login-panel__form input[type="submit"]:hover,
.eocrm-agent-login-panel__form input[type="submit"]:focus,
.eocrm-agent-login-panel__form button[type="submit"]:hover,
.eocrm-agent-login-panel__form button[type="submit"]:focus,
.eocrm-agent-login-panel__button:hover,
.eocrm-agent-login-panel__button:focus {
    background: var(--eocrm-login-primary-dark);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 87, 184, 0.22);
    transform: translateY(-1px);
}

.eocrm-agent-login-panel__lost,
.eocrm-agent-login-panel__link {
    color: var(--eocrm-login-primary);
    font-weight: 700;
    text-decoration: none;
}

.eocrm-agent-login-panel__lost:hover,
.eocrm-agent-login-panel__link:hover {
    color: var(--eocrm-login-primary-dark);
    text-decoration: underline;
}

.eocrm-agent-login-panel__status,
.eocrm-agent-login-panel__notice {
    border: 1px solid var(--eocrm-login-border);
    border-radius: 14px;
    background: #f8fbff;
    margin: 18px 0;
    padding: 14px 16px;
}

.eocrm-agent-login-panel__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .eocrm-agent-login-panel__submit-row,
    .eocrm-agent-login-panel__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .eocrm-agent-login-panel__button,
    .eocrm-agent-login-panel__button--submit {
        width: 100%;
    }
}

.eocrm-crm-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--eocrm-border);
}

.eocrm-crm-logout-btn {
    background: #eef4fb;
    color: var(--eocrm-primary);
    border-color: #c9d8ec;
}

.eocrm-crm-logout-btn:hover,
.eocrm-crm-logout-btn:focus {
    background: #e0ecfb;
    color: var(--eocrm-primary-dark);
}

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

.eocrm-header h2 {
    margin: 0 0 6px;
}

.eocrm-header p {
    margin: 0;
    color: var(--eocrm-muted);
}

.eocrm-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.eocrm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.eocrm-tab {
    text-decoration: none;
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--eocrm-text);
    background: #fff;
    font-weight: 600;
}

.eocrm-tab.is-active,
.eocrm-tab:hover {
    border-color: var(--eocrm-primary);
    color: #fff;
    background: var(--eocrm-primary);
}

.eocrm-grid {
    display: grid;
    gap: 12px;
}

.eocrm-grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.eocrm-card {
    background: var(--eocrm-card);
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    padding: 14px;
}

.eocrm-card h3,
.eocrm-card h4 {
    margin-top: 0;
}

.eocrm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    background: #fff;
    color: var(--eocrm-text);
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
}

.eocrm-btn:hover {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
}

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

.eocrm-btn-primary:hover {
    background: var(--eocrm-primary-dark);
    border-color: var(--eocrm-primary-dark);
    color: #fff;
}

.eocrm-btn-export {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #0f8b44;
    background: linear-gradient(140deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.eocrm-btn-export:hover {
    border-color: #0c7a3a;
    background: linear-gradient(140deg, #1fb954 0%, #15803d 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.42);
    transform: translateY(-1px);
}

.eocrm-export-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
}

.eocrm-btn-pdf {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #b22020;
    background: linear-gradient(140deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.eocrm-btn-pdf:hover {
    border-color: #991b1b;
    background: linear-gradient(140deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.42);
    transform: translateY(-1px);
}

.eocrm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(11, 21, 36, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.eocrm-modal[hidden] {
    display: none !important;
}

.eocrm-modal__dialog {
    width: min(460px, calc(100vw - 28px));
    background: #ffffff;
    border: 1px solid #d6e0ef;
    border-radius: 14px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
    padding: 16px 16px 14px;
    position: relative;
}

.eocrm-pdf-choice-modal .eocrm-modal__dialog {
    width: min(640px, calc(100vw - 28px));
}

.eocrm-stage-transaction-modal .eocrm-modal__dialog {
    width: min(560px, calc(100vw - 28px));
    padding: 22px 22px 18px;
}

.eocrm-owner-change-modal .eocrm-modal__dialog {
    width: min(620px, calc(100vw - 28px));
    padding: 22px 22px 18px;
}

.eocrm-owner-change-options {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.eocrm-owner-change-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
}

.eocrm-owner-change-option:hover,
.eocrm-owner-change-option:focus-within {
    border-color: #9fc0e8;
    background: #f3f8ff;
}

.eocrm-owner-change-option input {
    margin-top: 3px;
}

.eocrm-owner-change-option strong {
    display: block;
    color: #102947;
    font-size: 14px;
    line-height: 1.35;
}

.eocrm-owner-change-option small {
    display: block;
    margin-top: 3px;
    color: #52627a;
    font-size: 12px;
    line-height: 1.45;
}

.eocrm-owner-change-until-field {
    margin: 2px 0 12px;
}

.eocrm-owner-change-error {
    margin: -2px 0 12px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.eocrm-stage-transaction-modal__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #0057b8 0%, #16a34a 100%);
    box-shadow: 0 12px 28px rgba(0, 87, 184, 0.22);
    font-size: 22px;
}

.eocrm-stage-transaction-modal__icon .eocrm-transaction-icon {
    width: 25px;
    height: 25px;
}

.eocrm-agreement-related-action {
    margin-left: auto;
}

.eocrm-modal__dialog h3 {
    margin: 0 0 8px;
    color: #0f274d;
}

.eocrm-modal__dialog p {
    margin: 0 0 14px;
    color: #52627a;
}

.eocrm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-pdf-config-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eocrm-pdf-config-list {
    display: grid;
    gap: 8px;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding-right: 2px;
}

.eocrm-pdf-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px 10px;
}

.eocrm-pdf-config-item__label {
    color: #102947;
    font-size: 13px;
    font-weight: 600;
}

.eocrm-pdf-config-item__switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eocrm-pdf-config-item__switch label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 2px 8px;
    border: 1px solid #c6d6eb;
    border-radius: 999px;
    background: #ffffff;
    color: #254160;
    font-size: 11px;
    font-weight: 700;
}

.eocrm-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 1px solid #d6e0ef;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eocrm-modal__close:hover,
.eocrm-modal__close:focus {
    border-color: #0057b8;
    color: #0057b8;
}

body.eocrm-modal-open {
    overflow: hidden;
}

.eocrm-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    overflow: hidden;
}

.eocrm-table th,
.eocrm-table td {
    text-align: left;
    border-bottom: 1px solid var(--eocrm-border);
    padding: 10px;
    font-size: 14px;
}

.eocrm-table th {
    background: #eaf1fb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.eocrm-status-cell {
    white-space: nowrap;
}

.eocrm-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eocrm-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid transparent;
}

.eocrm-status-icon.is-active {
    background: #16a34a;
    border-color: #15803d;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.eocrm-status-icon.is-inactive {
    background: #dc2626;
    border-color: #b91c1c;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.28);
}

.eocrm-search-row {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.eocrm-property-table-filters,
.eocrm-table-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.eocrm-property-table-filters__label,
.eocrm-table-filters__label {
    margin-right: 2px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eocrm-table-filter-toggle {
    position: relative;
    display: inline-flex;
}

.eocrm-table-filter-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.eocrm-table-filter-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #b7cbe6;
    border-radius: 999px;
    background: #ffffff;
    color: #12304f;
    box-shadow: 0 4px 12px rgba(15, 31, 54, 0.06);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-table-filter-toggle input:checked + span {
    border-color: #1f6cd6;
    background: #1f6cd6;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 108, 214, 0.22);
}

.eocrm-table-filter-toggle input:focus-visible + span {
    outline: 2px solid rgba(31, 108, 214, 0.35);
    outline-offset: 2px;
}

.eocrm-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-inline-form input,
.eocrm-filters select,
.eocrm-filters input {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
}

.eocrm-metric {
    font-size: 32px;
    font-weight: 700;
    color: var(--eocrm-primary);
}

.eocrm-list {
    margin: 0;
    padding-left: 20px;
}

.eocrm-muted {
    color: var(--eocrm-muted);
}

.eocrm-alert {
    border: 1px solid #f0c36d;
    background: #fff8e6;
    color: #7a5700;
    border-radius: 8px;
    padding: 12px;
}

.eocrm-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.eocrm-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.eocrm-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.eocrm-tags span {
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 13px;
    line-height: 1.35;
}

.eocrm-property-flags-form {
    margin-top: 12px;
}

.eocrm-property-quick-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, .42fr);
    gap: 10px;
    align-items: end;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(31, 108, 214, .14);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, .95), rgba(238, 246, 255, .78));
}

.eocrm-property-quick-price .eocrm-form-field {
    margin: 0;
}

.eocrm-property-quick-price input,
.eocrm-property-quick-price select {
    min-height: 40px;
}

.eocrm-tag-toggle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.eocrm-tag-toggle {
    position: relative;
    display: inline-flex;
}

.eocrm-tag-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.eocrm-tag-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #b7cbe6;
    border-radius: 999px;
    background: #ffffff;
    color: #12304f;
    box-shadow: 0 4px 12px rgba(15, 31, 54, 0.06);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-tag-toggle input:checked + span {
    border-color: var(--eocrm-primary);
    background: var(--eocrm-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 87, 184, 0.22);
}

.eocrm-tag-toggle input:focus-visible + span {
    outline: 3px solid rgba(0, 87, 184, 0.22);
    outline-offset: 2px;
}

.eocrm-property-flags-actions {
    margin: 8px 0 0;
}

@media (max-width: 560px) {
    .eocrm-property-quick-price {
        grid-template-columns: 1fr;
    }
}

.eocrm-description {
    color: var(--eocrm-muted);
}

.is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .eocrm-header {
        flex-direction: column;
    }

    .eocrm-header-actions {
        margin-left: 0;
    }

    .eocrm-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.eocrm-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.eocrm-actions-row form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.eocrm-offer-section-divider {
    margin: 10px 0 14px;
    border-top: 1px solid rgba(139, 153, 176, 0.35);
}

.eocrm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.eocrm-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.eocrm-form-field label {
    font-weight: 600;
    color: #1f2e45;
}

.eocrm-form-field input,
.eocrm-form-field select,
.eocrm-form-field textarea {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
}

.eocrm-form-field textarea {
    min-height: 110px;
}

.eocrm-form-field-checkbox {
    margin: 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    min-height: 38px;
}

.eocrm-form-field-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.eocrm-form-field-checkbox input[type="checkbox"],
.eocrm-form-field-checkbox input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.eocrm-choice-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eocrm-choice-toggle-item {
    position: relative;
    margin: 0;
}

.eocrm-choice-toggle-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eocrm-choice-toggle-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 36px;
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    padding: 0 14px;
    background: #fff;
    font-weight: 700;
    color: #0f172a;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    cursor: pointer;
}

.eocrm-choice-toggle-item input[type="radio"]:checked + span {
    border-color: #1f6cd6;
    background: #1f6cd6;
    color: #fff;
}

.eocrm-commission-split {
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .7));
}

.eocrm-commission-stages-panel {
    margin-top: 14px;
}

.eocrm-commission-stages-list {
    display: grid;
    gap: 12px;
    margin: 12px 0;
}

.eocrm-commission-stage-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .75fr) minmax(120px, .65fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
}

.eocrm-commission-stage-row .eocrm-form-field {
    margin: 0;
}

.eocrm-commission-stage-remove {
    white-space: nowrap;
}

.eocrm-btn-soft-danger {
    border-color: rgba(220, 38, 38, .28);
    background: rgba(254, 242, 242, .92);
    color: #b91c1c;
}

.eocrm-btn-soft-danger:hover {
    border-color: rgba(220, 38, 38, .45);
    background: #fee2e2;
    color: #991b1b;
}

.eocrm-commission-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 6px 2px 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #12345b;
    font-size: .9rem;
}

.eocrm-commission-stage-pill strong {
    color: #0b63ce;
}

.eocrm-agreement-commission-def {
    grid-column: 1 / -1;
}

.eocrm-agreement-commission-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    width: 100%;
}

.eocrm-agreement-commission-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(31, 108, 214, .12);
    border-radius: 12px;
    background: rgba(238, 246, 255, .72);
    color: #12345b;
    font-size: .86rem;
    line-height: 1.25;
}

.eocrm-agreement-commission-line__stage {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eocrm-agreement-commission-line strong {
    color: #0b63ce;
    white-space: nowrap;
}

.eocrm-commission-transaction-hint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin: 18px 0 22px;
    padding: 18px 20px;
}

@media (max-width: 820px) {
    .eocrm-commission-stage-row {
        grid-template-columns: 1fr;
    }

    .eocrm-commission-stage-remove {
        width: 100%;
    }
}

.eocrm-alert-success {
    border-color: #95d5b2;
    background: #eafaf0;
    color: #1b6c41;
    margin-bottom: 12px;
}

.eocrm-alert-error {
    border-color: #f2a6a6;
    background: #fff0f0;
    color: #7f1d1d;
    margin-bottom: 12px;
}

.eocrm-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.eocrm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.eocrm-inline-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-parking-types.is-hidden {
    display: none;
}

.eocrm-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.eocrm-gallery-item {
    position: relative;
    display: inline-flex;
    width: 88px;
    height: 88px;
    border: 1px solid var(--eocrm-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: move;
}

.eocrm-single-media-item {
    position: relative;
    display: inline-flex;
    width: 88px;
    height: 88px;
    border: 1px solid var(--eocrm-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.eocrm-gallery-item.is-dragging {
    opacity: 0.45;
}

.eocrm-gallery-item.is-drag-target {
    outline: 2px dashed #0f6fec;
    outline-offset: 2px;
}

.eocrm-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.eocrm-gallery-remove:hover,
.eocrm-gallery-remove:focus {
    background: #a51414;
    color: #ffffff;
}

.eocrm-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: var(--eocrm-muted);
    background: #f8fafc;
    padding: 6px;
}

.eocrm-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 1px solid var(--eocrm-border);
    border-radius: 6px;
}

.eocrm-gallery-item .eocrm-thumb {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.eocrm-single-media-item .eocrm-thumb {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.eocrm-form-field-full {
    grid-column: 1 / -1;
}

.eocrm-floor-plan-builder {
    margin-top: 8px;
}

.eocrm-floor-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.eocrm-floor-plan-row {
    display: grid;
    grid-template-columns: 88px minmax(320px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.eocrm-floor-plan-thumb {
    display: inline-flex;
    width: 88px;
    height: 88px;
    border: 1px solid var(--eocrm-border);
    border-radius: 6px;
    overflow: hidden;
}

.eocrm-floor-plan-thumb .eocrm-thumb {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.eocrm-floor-plan-fields {
    display: grid;
    gap: 6px;
}

.eocrm-floor-plan-fields label {
    font-size: 12px;
    font-weight: 600;
}

.eocrm-floor-plan-label-input {
    width: 100%;
    min-width: 260px;
    max-width: 100%;
}

.eocrm-floor-plan-actions {
    display: inline-flex;
    flex-direction: column;
    grid-column: 3;
    grid-row: 1;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    align-self: stretch;
}

.eocrm-floor-plan-actions .eocrm-btn {
    white-space: nowrap;
    width: 100%;
    pointer-events: auto;
}

.eocrm-floor-plan-empty {
    margin: 0;
}

.eocrm-checkbox-item-stack {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.eocrm-checkbox-item-stack input[type="number"] {
    width: 100%;
    max-width: 150px;
}

.eocrm-map-box {
    margin: 8px 0 14px;
}

.eocrm-map-canvas {
    width: 100%;
    min-height: 300px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    background: #edf3fb;
}

.eocrm-map-canvas.eocrm-map-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eocrm-muted);
    text-align: center;
    padding: 16px;
}

.eocrm-map-canvas.eocrm-map-disabled p {
    margin: 0;
}

.eocrm-inline-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    min-height: 36px;
}

.eocrm-inline-checkboxes input[type="checkbox"],
.eocrm-inline-checkboxes input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.eocrm-checkbox-item-stack > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eocrm-checkbox-item input[type="checkbox"],
.eocrm-checkbox-item input[type="radio"],
.eocrm-checkbox-item-stack > label input[type="checkbox"],
.eocrm-checkbox-item-stack > label input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.eocrm-wrap .eocrm-form-field-checkbox {
    border: 0;
    padding: 0;
    background: transparent;
    min-height: 0;
}

.eocrm-wrap .eocrm-form-field-checkbox label,
.eocrm-wrap label.eocrm-checkbox-item,
.eocrm-wrap .eocrm-inline-checkboxes label,
.eocrm-wrap .eocrm-checkbox-item-stack > label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #b7cbe6;
    border-radius: 999px;
    background: #ffffff;
    color: #12304f;
    box-shadow: 0 4px 12px rgba(15, 31, 54, 0.06);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-wrap label.eocrm-checkbox-item {
    width: 100%;
}

.eocrm-wrap .eocrm-form-field-checkbox input[type="checkbox"],
.eocrm-wrap .eocrm-form-field-checkbox input[type="radio"],
.eocrm-wrap label.eocrm-checkbox-item > input[type="checkbox"],
.eocrm-wrap label.eocrm-checkbox-item > input[type="radio"],
.eocrm-wrap .eocrm-inline-checkboxes label > input[type="checkbox"],
.eocrm-wrap .eocrm-inline-checkboxes label > input[type="radio"],
.eocrm-wrap .eocrm-checkbox-item-stack > label > input[type="checkbox"],
.eocrm-wrap .eocrm-checkbox-item-stack > label > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.eocrm-wrap .eocrm-form-field-checkbox label:has(input:checked),
.eocrm-wrap label.eocrm-checkbox-item:has(> input:checked),
.eocrm-wrap .eocrm-inline-checkboxes label:has(> input:checked),
.eocrm-wrap .eocrm-checkbox-item-stack > label:has(> input:checked),
.eocrm-wrap .eocrm-form-field-checkbox label.is-eocrm-checked,
.eocrm-wrap label.eocrm-checkbox-item.is-eocrm-checked,
.eocrm-wrap .eocrm-inline-checkboxes label.is-eocrm-checked,
.eocrm-wrap .eocrm-checkbox-item-stack > label.is-eocrm-checked {
    border-color: #1f6cd6;
    background: #1f6cd6;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 108, 214, 0.22);
}

.eocrm-wrap .eocrm-form-field-checkbox label:has(input:focus-visible),
.eocrm-wrap label.eocrm-checkbox-item:has(> input:focus-visible),
.eocrm-wrap .eocrm-inline-checkboxes label:has(> input:focus-visible),
.eocrm-wrap .eocrm-checkbox-item-stack > label:has(> input:focus-visible) {
    outline: 2px solid rgba(31, 108, 214, 0.35);
    outline-offset: 2px;
}

.eocrm-btn-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.eocrm-profile-card {
    margin-bottom: 14px;
}

.eocrm-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.eocrm-profile-col h4 {
    margin: 0 0 8px;
}

.eocrm-profile-defs {
    margin: 0 0 12px;
}

.eocrm-profile-defs div {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--eocrm-border);
}

.eocrm-profile-defs dt {
    font-weight: 700;
}

.eocrm-profile-defs dd {
    margin: 0;
}

.eocrm-profile-richtext {
    margin-bottom: 12px;
}

.eocrm-profile-richtext p {
    margin: 0 0 8px;
}

.eocrm-profile-address {
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    background: #fff;
}

.eocrm-link-list {
    margin: 0 0 12px;
    padding-left: 18px;
}

.eocrm-link-list li {
    margin-bottom: 6px;
}

.eocrm-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.eocrm-stage-form {
    margin-bottom: 12px;
}

.eocrm-table-tight th,
.eocrm-table-tight td {
    padding: 8px;
    font-size: 13px;
}

.eocrm-office-section {
    margin-bottom: 14px;
}

.eocrm-office-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.eocrm-office-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border: 1px solid var(--eocrm-border);
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.eocrm-agent-card h5 {
    margin: 8px 0 8px;
}

.eocrm-agent-photo {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--eocrm-border);
}

.eocrm-team-wrap {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.eocrm-team-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.eocrm-team-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--eocrm-primary);
    font-weight: 700;
    margin: 0 0 8px;
}

.eocrm-team-brand {
    margin: 8px 0 0;
    font-weight: 700;
}

.eocrm-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.eocrm-team-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eocrm-team-card-horizontal {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
    overflow: visible;
    align-items: center;
}

.eocrm-team-card-media-horizontal {
    min-height: 0;
    background: transparent;
    padding: 0;
}

.eocrm-team-card-horizontal .eocrm-team-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f4f9;
}

.eocrm-team-card-horizontal .eocrm-team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
}

.eocrm-team-card-body-horizontal {
    padding: 4px 4px 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eocrm-team-card-horizontal .eocrm-team-card-body-horizontal h4 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.08;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.eocrm-team-role-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    border: 1px solid #bfd6ff;
    color: #0f4da5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.eocrm-team-card-horizontal .eocrm-team-card-body-horizontal p {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.eocrm-team-card-horizontal .eocrm-team-card-body-horizontal .eocrm-description {
    margin-top: 8px;
}

.eocrm-team-card-horizontal .eocrm-team-card-body-horizontal p a {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.eocrm-team-card {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 31, 54, 0.06);
    width: 100%;
    min-height: 0;
}

.eocrm-team-card:not(.eocrm-team-card-horizontal) {
    min-height: 430px;
}

.eocrm-team-card.eocrm-team-card-horizontal {
    min-height: 264px;
}

.eocrm-team-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    min-height: 276px;
    padding: 12px 12px 8px;
}

.eocrm-team-photo {
    width: 100%;
    height: 252px;
    object-fit: contain;
    background: #ffffff;
    border: 0;
    border-radius: 18px;
}

.eocrm-team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #1f2e45;
    font-weight: 700;
}

.eocrm-team-card-body {
    padding: 10px 12px 12px;
}

.eocrm-team-card-body h4 {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-team-card-body p {
    margin: 0 0 3px;
    line-height: 1.2;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .eocrm-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .eocrm-team-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-team-card-horizontal {
        grid-template-columns: 1fr;
    }

    .eocrm-team-card-horizontal .eocrm-team-photo {
        height: 300px;
    }

    .eocrm-team-card-body-horizontal {
        padding-right: 0;
    }

    .eocrm-team-card-horizontal .eocrm-team-card-body-horizontal h4 {
        font-size: 28px;
    }
}

.eocrm-team-card-body p a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.eocrm-offers-wrap {
    background: #f6f8fb;
}

.eocrm-offers-hero {
    background: #fff;
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.eocrm-offers-filters {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d7e4f4;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(11, 35, 70, 0.06);
    gap: 12px;
}

.eocrm-offers-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eocrm-offers-filter-field label {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #334a63;
}

.eocrm-offers-filter-field input,
.eocrm-offers-filter-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cdddf0;
    background: #fff;
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.eocrm-offers-filter-field input:focus,
.eocrm-offers-filter-field select:focus {
    border-color: #1f5ea8;
    box-shadow: 0 0 0 3px rgba(31, 94, 168, 0.14);
    background: #fdfefe;
}

.eocrm-offers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.eocrm-offers-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.eocrm-offers-filters .eocrm-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.eocrm-live-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
    border: 1px solid #b8d1ef;
    color: #184a86;
    background: #edf5ff;
}

.eocrm-live-filter-pill.is-loading {
    border-color: #94bee8;
    color: #0f3e76;
    background: #dbeeff;
}

.eocrm-offers-wrap.is-live-loading .eocrm-offers-layout {
    opacity: 0.62;
    transition: opacity 0.16s ease;
}

.eocrm-offers-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 2px 0;
    color: #21466f;
    font-size: 13px;
    line-height: 1.25;
}

.eocrm-offers-meta-item strong {
    font-weight: 700;
    color: #0f3763;
}

.eocrm-offers-meta-separator {
    color: #8ea9c7;
}

.eocrm-offer-row-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(15, 31, 54, 0.07);
}

.eocrm-offer-row-media {
    position: relative;
    overflow: hidden;
}

.eocrm-offer-row-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.eocrm-offer-media-placeholder {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #e8eef7;
    color: var(--eocrm-muted);
    font-weight: 600;
}

.eocrm-offer-row-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.eocrm-offer-row-top {
    display: block;
}

.eocrm-offer-row-top h3 {
    margin: 0;
}

.eocrm-offer-address-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.08;
}

.eocrm-offer-price {
    margin: 0 !important;
    font-weight: 700;
    font-size: 34px;
    line-height: 0.95;
    color: var(--eocrm-primary);
    white-space: nowrap;
}

.eocrm-offer-location {
    margin: 0 !important;
    color: var(--eocrm-muted);
    line-height: 1.06;
}

.eocrm-offer-number-line {
    margin: 0 !important;
    font-size: 13px;
    color: var(--eocrm-muted);
    line-height: 1.05;
}

.eocrm-offer-property-type {
    margin: 0 !important;
    font-size: 13px;
    color: #1f2e45;
    font-weight: 600;
    line-height: 1.06;
}

.eocrm-offer-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.eocrm-offer-row-body .eocrm-offer-number-line + .eocrm-offer-metrics {
    margin-top: 4px;
}

.eocrm-offer-row-body .eocrm-offer-metrics + .eocrm-tags {
    margin-top: 4px;
}

.eocrm-offer-metric {
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.eocrm-offer-metric-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b4d68;
}

.eocrm-offer-metric-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eocrm-offer-metric-icon-solid svg {
    fill: currentColor;
    stroke: none;
}

.eocrm-offers-list .eocrm-description {
    margin: 1px 0 0;
    font-size: 14px;
    line-height: 1.18;
}

.eocrm-offers-map-panel {
    background: #fff;
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    padding: 12px;
    position: sticky;
    top: 16px;
    align-self: start;
}

.eocrm-offers-map-panel .eocrm-embed-wrap iframe {
    min-height: 560px;
    margin-bottom: 10px;
}

.eocrm-offers-map-canvas {
    min-height: 560px;
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    overflow: hidden;
}

.eocrm-map-info-window {
    width: 250px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 31, 54, 0.22);
}

.eocrm-offers-map-panel .gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(15, 31, 54, 0.22) !important;
}

.eocrm-offers-map-panel .gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.eocrm-offers-map-panel .gm-style .gm-ui-hover-effect {
    top: 4px !important;
    right: 4px !important;
    opacity: 0.85;
}

.eocrm-map-info-thumb {
    width: 100%;
    height: 132px;
    overflow: hidden;
    background: #e5edf8;
}

.eocrm-map-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eocrm-map-info-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.eocrm-map-info-content {
    padding: 10px 11px 11px;
    line-height: 1.18;
    font-size: 12px;
}

.eocrm-map-info-content p {
    margin: 0 0 2px !important;
}

.eocrm-map-info-address {
    margin: 0 0 3px !important;
    font-size: 14px;
    font-weight: 700;
    color: #1d2a3b;
}

.eocrm-map-info-line {
    margin: 0 0 2px !important;
    color: #334155;
}

.eocrm-map-info-link-wrap {
    margin: 6px 0 0 !important;
}

.eocrm-map-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0057b8;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.eocrm-map-info-link:hover {
    color: #ffffff;
    background: #004080;
}

.eocrm-offers-map-panel [data-eocrm-offers-map-status] {
    margin: 8px 0 0;
}

.eocrm-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-pagination-summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--eocrm-border);
    background: #f8fbff;
    color: var(--eocrm-muted);
    font-size: 13px;
    font-weight: 600;
}

.eocrm-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--eocrm-border);
    background: #fff;
    color: var(--eocrm-text);
    text-decoration: none;
    font-weight: 600;
}

.eocrm-page-link:hover {
    border-color: var(--eocrm-primary);
}

.eocrm-page-link.is-active {
    background: var(--eocrm-primary);
    border-color: var(--eocrm-primary);
    color: #fff;
}

.eocrm-page-link-last {
    border-style: dashed;
}

.eocrm-offer-single-wrap {
    background: #f8fafd;
    border: 0;
}

.eocrm-offer-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.eocrm-offer-single-media {
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.eocrm-offer-single-media img {
    width: 100%;
    min-height: 420px;
    max-height: 580px;
    object-fit: cover;
    display: block;
}

.eocrm-offer-mls-disclaimer {
    grid-column: 1 / -1;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.45;
}

.eocrm-offer-single-hero > .eocrm-offer-mls-disclaimer {
    grid-column: 1;
    margin-top: -4px;
}

.eocrm-offer-single-summary {
    border: 1px solid var(--eocrm-border);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.eocrm-offer-single-summary h2 {
    margin: 0 0 8px;
}

.eocrm-offer-single-summary .eocrm-offer-address-title {
    font-size: 30px;
    line-height: 1.12;
    margin: 0 0 5px;
}

.eocrm-offer-single-summary .eocrm-offer-price {
    font-size: 52px;
    line-height: 0.98;
    margin: 0 0 4px;
}

.eocrm-offer-single-summary .eocrm-offer-location,
.eocrm-offer-single-summary .eocrm-offer-property-type,
.eocrm-offer-single-summary .eocrm-offer-number-line {
    margin: 0 0 2px;
    line-height: 1.25;
}

.eocrm-offer-single-summary .eocrm-offer-metrics {
    margin-top: 6px;
}

.eocrm-offer-single-summary .eocrm-offer-metric {
    font-size: 21px;
    line-height: 1.08;
    padding: 10px 14px;
    gap: 12px;
}

.eocrm-offer-single-summary .eocrm-offer-metric-icon,
.eocrm-offer-single-summary .eocrm-offer-metric-icon svg {
    width: 30px;
    height: 30px;
}

.eocrm-offer-single-summary .eocrm-tags {
    margin-top: 8px !important;
    margin-bottom: 0;
}

.eocrm-offer-single-summary .eocrm-offer-metrics + .eocrm-tags {
    margin-top: 10px !important;
}

.eocrm-offer-single-summary .eocrm-tags span {
    font-size: 14px;
}

.eocrm-offer-single-hero-v2 {
    display: block;
}

.eocrm-offer-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 14px;
    align-items: start;
}

.eocrm-offer-v2-main {
    min-width: 0;
}

.eocrm-offer-v2-summary-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0 0 14px;
}

.eocrm-offer-v2-summary-wrap .eocrm-offer-single-summary {
    border: 0;
    background: transparent;
    padding: 0;
}

.eocrm-offer-single-summary-v2-large .eocrm-offer-address-title {
    font-size: 38px;
    line-height: 1.08;
}

.eocrm-offer-single-summary-v2-large .eocrm-offer-price {
    font-size: 70px;
    line-height: 0.95;
}

.eocrm-offer-single-summary-v2-large .eocrm-offer-location,
.eocrm-offer-single-summary-v2-large .eocrm-offer-property-type,
.eocrm-offer-single-summary-v2-large .eocrm-offer-number-line {
    font-size: 18px;
    line-height: 1.26;
}

.eocrm-offer-v2-side {
    top: 14px;
}

.eocrm-gallery-16x9 .eocrm-gallery-track {
    position: relative;
}

.eocrm-gallery-16x9 .eocrm-gallery-slide {
    position: relative;
}

.eocrm-gallery-16x9 .eocrm-gallery-slide::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.eocrm-gallery-16x9 .eocrm-gallery-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.eocrm-gallery-16x9 .eocrm-offer-media-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.eocrm-offer-v2-top-grid-wrap {
    padding: 0;
    border: 0;
    background: transparent;
}

.eocrm-offer-v2-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.eocrm-offer-v2-col {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    min-width: 0;
}

.eocrm-offer-v2-col-summary .eocrm-offer-single-summary {
    border: 0;
    padding: 0;
    background: transparent;
}

.eocrm-offer-v2-col-agent .eocrm-offer-agent-layout {
    grid-template-columns: 96px minmax(0, 1fr);
}

.eocrm-offer-v2-col-contact .eocrm-offer-contact-form {
    grid-template-columns: 1fr;
}

.eocrm-offer-v2-col-contact .eocrm-offer-contact-form .eocrm-offer-contact-field-message,
.eocrm-offer-v2-col-contact .eocrm-offer-contact-form .eocrm-offer-contact-actions {
    grid-column: auto;
}

.eocrm-offer-v3-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: start;
}

.eocrm-offer-v3-main {
    min-width: 0;
}

.eocrm-offer-v3-main > .eocrm-offer-single-media {
    margin-bottom: 14px;
}

.eocrm-offer-v3-side {
    display: grid;
    gap: 12px;
    align-content: start;
    min-width: 0;
    position: sticky;
    top: 14px;
}

.eocrm-offer-v3-side .eocrm-offer-single-summary,
.eocrm-offer-v3-agent,
.eocrm-offer-v3-contact {
    margin: 0;
}

.eocrm-offer-template-v4 .eocrm-offer-single-hero-v4 {
    grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
    gap: 18px;
}

.eocrm-offer-template-v4 .eocrm-offer-single-summary {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
    border-color: rgba(26, 84, 196, 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.eocrm-gallery-style-thumbs .eocrm-gallery-thumb-dots {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 10px;
    justify-content: flex-start;
    gap: 8px;
    background: #fff;
    border-top: 1px solid var(--eocrm-border);
}

.eocrm-gallery-style-thumbs .eocrm-gallery-thumb-dot {
    width: 70px;
    height: 52px;
    border-radius: 9px;
    border: 2px solid transparent;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}

.eocrm-gallery-style-thumbs .eocrm-gallery-thumb-dot.is-active {
    border-color: var(--eocrm-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 8px 16px rgba(15, 23, 42, 0.2);
}

.eocrm-offer-template-v5 .eocrm-offer-v5-layout {
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
    gap: 18px;
}

.eocrm-offer-template-v5 .eocrm-offer-v5-side {
    top: 18px;
}

.eocrm-gallery-style-stack .eocrm-gallery-dots {
    left: auto;
    right: 14px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    counter-reset: eocrm-gallery-index;
}

.eocrm-gallery-style-stack .eocrm-gallery-dot {
    width: 32px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    counter-increment: eocrm-gallery-index;
}

.eocrm-gallery-style-stack .eocrm-gallery-dot::before {
    content: counter(eocrm-gallery-index);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.eocrm-gallery-style-stack .eocrm-gallery-dot.is-active {
    background: var(--eocrm-primary);
    border-color: rgba(255, 255, 255, 0.95);
}

.eocrm-offer-template-v6 .eocrm-offer-v6-layout {
    grid-template-columns: minmax(0, 2.3fr) minmax(340px, 1fr);
    gap: 18px;
}

.eocrm-offer-template-v6 .eocrm-offer-v6-side {
    top: 18px;
    gap: 14px;
}

.eocrm-gallery-style-progress .eocrm-gallery-dots {
    left: 0;
    right: 0;
    bottom: 12px;
    padding: 0 16px;
    justify-content: stretch;
    gap: 8px;
}

.eocrm-gallery-style-progress .eocrm-gallery-dot {
    flex: 1 1 0;
    min-width: 26px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.eocrm-gallery-style-progress .eocrm-gallery-dot.is-active {
    background: var(--eocrm-primary);
}

.eocrm-offers-list .eocrm-offer-row-body {
    gap: 6px;
}

.eocrm-offers-list .eocrm-offer-row-body > p {
    margin: 0;
}

.eocrm-offers-list .eocrm-offer-price {
    margin: 0;
}

.eocrm-gallery-slider .eocrm-gallery-track {
    position: relative;
}

.eocrm-gallery-slider .eocrm-gallery-slide {
    display: none;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.eocrm-gallery-slider .eocrm-gallery-slide.is-active {
    display: block;
}

.eocrm-gallery-slider .eocrm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eocrm-gallery-slider .eocrm-gallery-nav:hover {
    background: rgba(15, 23, 42, 0.92);
}

.eocrm-gallery-slider .eocrm-gallery-prev {
    left: 12px;
}

.eocrm-gallery-slider .eocrm-gallery-next {
    right: 12px;
}

.eocrm-gallery-slider .eocrm-gallery-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.eocrm-gallery-slider .eocrm-gallery-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.eocrm-gallery-slider .eocrm-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.eocrm-gallery-slider .eocrm-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.eocrm-gallery-slider .eocrm-gallery-dot.is-active {
    background: var(--eocrm-primary);
}

.eocrm-offer-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.34;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.eocrm-offer-watermark img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border: 0 !important;
    box-shadow: none !important;
}

.eocrm-offer-status-ribbon {
    position: absolute;
    top: calc(24px + (var(--eocrm-ribbon-index, 0) * 34px));
    right: -58px;
    z-index: 8;
    width: 220px;
    padding: 9px 0;
    transform: rotate(35deg);
    transform-origin: center;
    background: #d71920;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(119, 9, 14, 0.28);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

.eocrm-offer-status-ribbon-sold {
    background: #d71920;
}

.eocrm-offer-status-ribbon-rented {
    background: #0057b8;
}

.eocrm-offer-status-ribbon-new {
    background: #19a7e8;
}

.eocrm-offer-status-ribbon-mls {
    background: #0f766e;
}

.eocrm-offer-status-ribbon-premium {
    background: #d7a41b;
}

.eocrm-offer-status-ribbon-left {
    right: auto;
    left: -58px;
    transform: rotate(-35deg);
}

.eocrm-offer-status-ribbon-right {
    right: -58px;
    left: auto;
}

.eocrm-offer-row-media .eocrm-offer-status-ribbon {
    top: calc(18px + (var(--eocrm-ribbon-index, 0) * 27px));
    right: -48px;
    width: 178px;
    padding: 7px 0;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.eocrm-offer-row-media .eocrm-offer-status-ribbon-left {
    right: auto;
    left: -48px;
}

.eocrm-offer-row-media .eocrm-offer-status-ribbon-right {
    right: -48px;
    left: auto;
}

.eocrm-lightbox-watermark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.34;
    display: block;
    height: auto;
    object-fit: contain;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.eocrm-lightbox-watermark[hidden] {
    display: none !important;
}

.eocrm-zoomable {
    cursor: zoom-in;
}

.eocrm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 20, 34, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.eocrm-lightbox[hidden] {
    display: none !important;
}

.eocrm-lightbox img[hidden],
.eocrm-lightbox iframe[hidden] {
    display: none !important;
}

.eocrm-lightbox-media {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: min(1400px, 100%);
    max-height: calc(100vh - 56px);
}

.eocrm-lightbox-media[hidden] {
    display: none !important;
}

.eocrm-lightbox img[data-eocrm-lightbox-image] {
    display: block;
    width: auto;
    max-width: min(1400px, 100%);
    max-height: calc(100vh - 56px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
    background: #0f172a;
}

.eocrm-lightbox iframe {
    display: block;
    width: min(1400px, 100%);
    height: min(85vh, 920px);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
    background: #ffffff;
}

.eocrm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 18, 31, 0.68);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 4;
}

.eocrm-lightbox-prev {
    left: 16px;
}

.eocrm-lightbox-next {
    right: 16px;
}

.eocrm-lightbox-nav:hover,
.eocrm-lightbox-nav:focus {
    background: rgba(10, 18, 31, 0.9);
    color: #fff;
}

.eocrm-lightbox-nav[hidden] {
    display: none !important;
}

.eocrm-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.eocrm-lightbox-close:hover,
.eocrm-lightbox-close:focus {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

body.eocrm-lightbox-open {
    overflow: hidden;
}

.eocrm-offer-spec-grid {
    margin-bottom: 12px;
}

.eocrm-offer-details-card p {
    margin: 0 0 7px;
}

.eocrm-offer-details-card p:last-child {
    margin-bottom: 0;
}

.eocrm-offer-media-card .eocrm-offer-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.eocrm-offer-media-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.eocrm-offer-media-label {
    font-weight: 700;
    color: #0f274d;
    white-space: nowrap;
}

.eocrm-offer-media-value {
    color: #1b2738;
    overflow-wrap: anywhere;
}

.eocrm-embed-wrap iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    border-radius: 8px;
}

.eocrm-offer-media-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.eocrm-offer-media-embed > iframe,
.eocrm-offer-media-embed > embed,
.eocrm-offer-media-embed > object,
.eocrm-offer-media-embed > video,
.eocrm-offer-media-embed > *,
.eocrm-offer-media-embed iframe,
.eocrm-offer-media-embed embed,
.eocrm-offer-media-embed object,
.eocrm-offer-media-embed video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.eocrm-embed-zoomable {
    position: relative;
}

.eocrm-embed-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    background: rgba(10, 18, 31, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.eocrm-embed-zoom-btn:hover,
.eocrm-embed-zoom-btn:focus {
    background: rgba(10, 18, 31, 0.92);
    color: #fff;
}

.eocrm-offer-embedded-image {
    display: block;
    width: 100%;
    max-height: 640px;
    object-fit: contain;
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    background: #f8fafc;
}

.eocrm-floor-plans-frame {
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
}

.eocrm-floor-plan-switcher {
    margin-bottom: 12px;
}

.eocrm-floor-plan-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.eocrm-floor-plan-tab {
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--eocrm-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 12px;
    cursor: pointer;
}

.eocrm-floor-plan-tab:hover,
.eocrm-floor-plan-tab:focus {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
}

.eocrm-floor-plan-tab.is-active {
    background: var(--eocrm-primary);
    border-color: var(--eocrm-primary);
    color: #fff;
}

.eocrm-floor-plan-panel {
    display: none;
}

.eocrm-floor-plan-panel.is-active {
    display: block;
}

.eocrm-floor-plan-item {
    padding: 10px;
}

.eocrm-floor-plan-item .eocrm-embed-wrap iframe,
.eocrm-floor-plan-item .eocrm-offer-embedded-image {
    min-height: 320px;
}

.eocrm-offer-agent-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
    gap: 10px;
    align-items: start;
}

.eocrm-offer-agent-col {
    min-width: 0;
}

.eocrm-offer-agent-layout {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.eocrm-offer-agent-details p {
    margin: 0 0 4px;
}

.eocrm-offer-agent-details .eocrm-description {
    margin-top: 6px;
}

.eocrm-offer-agent-col-form h4 {
    margin: 0 0 8px;
}

.eocrm-offer-agent-col-form {
    width: 100%;
    max-width: none;
    justify-self: start;
    margin-left: 0;
}

.eocrm-offer-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    align-items: start;
}

.eocrm-offer-contact-form .eocrm-form-field label {
    font-size: 12px;
}

.eocrm-offer-contact-form .eocrm-form-field input,
.eocrm-offer-contact-form .eocrm-form-field textarea {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.eocrm-offer-contact-form .eocrm-form-field textarea {
    min-height: 82px;
}

.eocrm-offer-contact-form .eocrm-form-field {
    margin: 0;
}

.eocrm-offer-contact-form .eocrm-offer-contact-field-message,
.eocrm-offer-contact-form .eocrm-offer-contact-actions {
    grid-column: 1 / -1;
}

.eocrm-offer-contact-form .eocrm-offer-contact-actions {
    margin: 2px 0 0;
}

.eocrm-mortgage-card .eocrm-profile-defs {
    margin-top: 8px;
}

.eocrm-mortgage-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 14px;
    align-items: stretch;
}

.eocrm-offer-single-wrap .eocrm-card,
.eocrm-offer-single-wrap .eocrm-offer-single-summary,
.eocrm-offer-single-wrap .eocrm-offer-single-media,
.eocrm-offer-single-wrap .eocrm-floor-plans-frame,
.eocrm-offer-single-wrap .eocrm-offer-metric,
.eocrm-offer-single-wrap .eocrm-tags span,
.eocrm-offer-single-wrap .eocrm-offer-agent-photo,
.eocrm-offer-single-wrap .eocrm-offer-embedded-image {
    border: 0 !important;
    box-shadow: none !important;
}

.eocrm-offer-single-wrap .eocrm-floor-plan-item + .eocrm-floor-plan-item {
    border-left: 0;
    border-top: 0;
}

.eocrm-mortgage-card {
    width: 100%;
    max-width: none;
    overflow-x: auto;
    font-size: clamp(11px, 0.78vw, 15px);
}

.eocrm-mortgage-results .eocrm-profile-defs {
    margin: 0;
}

.eocrm-mortgage-settings .eocrm-mortgage-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

.eocrm-mortgage-results,
.eocrm-mortgage-settings {
    height: 100%;
}

.eocrm-mortgage-settings .eocrm-form-field-checkbox,
.eocrm-mortgage-settings .eocrm-mortgage-form-grid .eocrm-form-field:last-child {
    grid-column: 1 / -1;
}

.eocrm-wibor-toggle {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-wibor-btn {
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--eocrm-text);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

.eocrm-wibor-btn:hover,
.eocrm-wibor-btn:focus {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
    outline: none;
}

.eocrm-wibor-btn.is-active {
    background: var(--eocrm-primary);
    border-color: var(--eocrm-primary);
    color: #fff;
}

.eocrm-mortgage-card .eocrm-profile-defs div {
    grid-template-columns: minmax(180px, 260px) 1fr;
}

.eocrm-mortgage-card .eocrm-profile-defs dt,
.eocrm-mortgage-card .eocrm-profile-defs dd,
.eocrm-mortgage-card .eocrm-form-field label,
.eocrm-mortgage-card .eocrm-form-field input,
.eocrm-mortgage-card .eocrm-form-field select,
.eocrm-mortgage-card .eocrm-wibor-btn {
    white-space: nowrap;
}

.eocrm-mortgage-card .eocrm-profile-defs dt {
    font-size: clamp(10px, 0.66vw, 13px);
}

.eocrm-mortgage-card .eocrm-profile-defs dd {
    font-weight: 700;
    font-size: clamp(12px, 0.92vw, 16px);
}

.eocrm-mortgage-card .eocrm-form-field label,
.eocrm-mortgage-card .eocrm-form-field input,
.eocrm-mortgage-card .eocrm-form-field select {
    font-size: clamp(11px, 0.72vw, 14px);
}

.eocrm-mortgage-advisor {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(139, 153, 176, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 14px;
    align-items: stretch;
}

.eocrm-mortgage-advisor-media {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.eocrm-mortgage-advisor-media--left {
    justify-content: flex-start;
}

.eocrm-mortgage-advisor-media--center {
    justify-content: center;
}

.eocrm-mortgage-advisor-media--right {
    justify-content: flex-end;
}

.eocrm-mortgage-advisor-media img {
    width: auto;
    max-width: 100%;
    max-height: var(--eocrm-advisor-logo-max-height, 70%);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: 0 !important;
    box-shadow: none !important;
}

.eocrm-mortgage-advisor-media-placeholder {
    width: min(100%, 320px);
    max-width: 100%;
    max-height: var(--eocrm-advisor-logo-max-height, 70%);
    min-height: 180px;
    aspect-ratio: auto;
    border-radius: 14px;
    border: 1px dashed var(--eocrm-border);
    background: #f7faff;
    color: var(--eocrm-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.eocrm-mortgage-advisor-content h4 {
    margin: 0 0 8px;
}

.eocrm-mortgage-advisor-form {
    margin-top: 6px;
}

.eocrm-mortgage-advisor-form .eocrm-form-field {
    margin: 0;
}

.eocrm-mortgage-advisor-form .eocrm-offer-contact-actions {
    margin: 4px 0 0;
}

.eocrm-offer-agent-photo-wrap {
    display: flex;
    justify-content: center;
}

.eocrm-offer-agent-photo {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--eocrm-border);
}

.eocrm-offer-agent-details h4 {
    margin-top: 0;
}

.eocrm-offer-single-wrap .eocrm-thumb {
    width: 220px;
    height: 150px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .eocrm-offers-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-offers-map-panel {
        position: static;
    }

    .eocrm-offers-map-panel .eocrm-embed-wrap iframe {
        min-height: 320px;
    }

    .eocrm-offers-map-canvas {
        min-height: 320px;
    }

    .eocrm-offers-list {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-single-hero {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .eocrm-offer-single-hero > .eocrm-offer-single-media {
        order: 1;
        width: 100%;
    }

    .eocrm-offer-single-hero > .eocrm-offer-single-summary {
        order: 2;
        width: 100%;
    }

    .eocrm-offer-v2-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-v2-side {
        position: static;
    }

    .eocrm-offer-v3-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-v3-side {
        position: static;
    }

    /* Offer templates v2/v3/v5/v6: gallery first, then summary and agent on narrow screens. */
    .eocrm-offer-v2-layout,
    .eocrm-offer-v3-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }

    .eocrm-offer-v2-main,
    .eocrm-offer-v2-side,
    .eocrm-offer-v3-main {
        display: contents !important;
    }

    .eocrm-offer-v2-side,
    .eocrm-offer-v3-side {
        display: contents !important;
    }

    .eocrm-offer-v3-main > .eocrm-offer-single-media {
        order: 1;
        width: 100%;
        flex: 0 0 auto;
    }

    .eocrm-offer-v2-main .eocrm-offer-v2-summary-wrap,
    .eocrm-offer-v3-side .eocrm-offer-single-summary {
        order: 2;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 0 12px;
        width: 100%;
        flex: 0 0 auto;
    }

    .eocrm-offer-v2-side .eocrm-offer-v2-agent,
    .eocrm-offer-v3-side .eocrm-offer-v3-agent {
        order: 3;
        width: 100%;
        flex: 0 0 auto;
    }

    .eocrm-offer-v2-main > *:not(.eocrm-offer-v2-summary-wrap),
    .eocrm-offer-v3-main > *:not(.eocrm-offer-single-media) {
        order: 4;
        width: 100%;
        flex: 0 0 auto;
    }

    .eocrm-offer-v2-side .eocrm-offer-v2-contact,
    .eocrm-offer-v3-side .eocrm-offer-v3-contact {
        order: 5;
        width: 100%;
        flex: 0 0 auto;
    }

    .eocrm-offer-v2-layout .eocrm-card,
    .eocrm-offer-v3-layout .eocrm-card,
    .eocrm-offer-v3-layout .eocrm-offer-single-media {
        max-width: 100%;
        box-sizing: border-box;
    }

    .eocrm-offer-template-v4 .eocrm-offer-single-hero-v4,
    .eocrm-offer-template-v5 .eocrm-offer-v5-layout,
    .eocrm-offer-template-v6 .eocrm-offer-v6-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-template-v5 .eocrm-offer-v5-side,
    .eocrm-offer-template-v6 .eocrm-offer-v6-side {
        position: static;
    }

    .eocrm-gallery-style-stack .eocrm-gallery-dots {
        left: 0;
        right: 0;
        top: auto;
        bottom: 10px;
        transform: none;
        flex-direction: row;
        justify-content: center;
    }

    .eocrm-offer-v2-top-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-floor-plans-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-floor-plan-item + .eocrm-floor-plan-item {
        border-left: 0;
        border-top: 0;
    }

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

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

    .eocrm-mortgage-card {
        font-size: clamp(10px, 1.55vw, 14px);
    }

    .eocrm-mortgage-advisor {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .eocrm-offer-v3-main > .eocrm-offer-single-media {
        order: 1 !important;
    }

    .eocrm-offer-v2-main .eocrm-offer-v2-summary-wrap,
    .eocrm-offer-v3-side .eocrm-offer-single-summary {
        order: 2 !important;
    }

    .eocrm-offer-v2-side .eocrm-offer-v2-agent,
    .eocrm-offer-v3-side .eocrm-offer-v3-agent {
        order: 3 !important;
    }

    .eocrm-offer-v2-main > *:not(.eocrm-offer-v2-summary-wrap),
    .eocrm-offer-v3-main > *:not(.eocrm-offer-single-media) {
        order: 4 !important;
    }

    .eocrm-offer-v2-side .eocrm-offer-v2-contact,
    .eocrm-offer-v3-side .eocrm-offer-v3-contact {
        order: 5 !important;
    }

    .eocrm-offer-v2-main .eocrm-offer-v2-summary-wrap,
    .eocrm-offer-v2-side .eocrm-offer-v2-agent,
    .eocrm-offer-v3-side .eocrm-offer-single-summary,
    .eocrm-offer-v3-side .eocrm-offer-v3-agent {
        margin-top: 0;
    }

    .eocrm-team-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .eocrm-offer-row-card {
        display: flex;
    }

    .eocrm-offer-row-media img,
    .eocrm-offer-media-placeholder {
        min-height: 210px;
    }

    .eocrm-offer-single-media img {
        min-height: 260px;
    }

    .eocrm-offer-agent-columns {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-agent-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-agent-col-form {
        max-width: none;
        justify-self: stretch;
        margin-left: 0;
    }

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

    .eocrm-mortgage-advisor {
        grid-template-columns: 1fr;
    }

    .eocrm-mortgage-advisor-media {
        height: auto;
    }

    .eocrm-mortgage-advisor-media img,
    .eocrm-mortgage-advisor-media-placeholder {
        width: auto;
        max-width: 180px;
        max-height: none;
    }

    .eocrm-offer-media-card .eocrm-offer-media-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-offer-price {
        font-size: 28px;
    }

    .eocrm-offer-single-summary .eocrm-offer-address-title {
        font-size: 25px;
    }

    .eocrm-offer-single-summary .eocrm-offer-price {
        font-size: 40px;
    }

    .eocrm-offer-single-summary .eocrm-offer-metric {
        font-size: 15px;
        padding: 8px 12px;
    }

    .eocrm-offer-single-summary .eocrm-offer-metric-icon,
    .eocrm-offer-single-summary .eocrm-offer-metric-icon svg {
        width: 21px;
        height: 21px;
    }

    .eocrm-offer-metric {
        font-size: 13px;
    }

    .eocrm-offer-metric-icon,
    .eocrm-offer-metric-icon svg {
        width: 18px;
        height: 18px;
    }

    .eocrm-gallery-slider .eocrm-gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .eocrm-gallery-style-thumbs .eocrm-gallery-thumb-dot {
        width: 56px;
        height: 44px;
    }

    .eocrm-offer-single-wrap .eocrm-thumb {
        width: 100%;
        max-width: 220px;
    }

    .eocrm-floor-plan-list {
        grid-template-columns: 1fr;
    }

    .eocrm-floor-plan-row {
        grid-template-columns: 1fr;
    }

    .eocrm-floor-plan-label-input {
        min-width: 0;
    }

    .eocrm-floor-plan-actions {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .eocrm-floor-plan-thumb {
        width: 100%;
        max-width: 220px;
        height: 140px;
    }
}

/* ============================================================
   v1.1678 — Modern frontend polish overlay
   Refined design tokens, typography, forms, tables, buttons.
   Append-only: extends rules above without changing layout.
   ============================================================ */

.eocrm-wrap {
    --eocrm-bg: #f4f7fc;
    --eocrm-card: #ffffff;
    --eocrm-border: #e1e8f3;
    --eocrm-border-strong: #cdd9eb;
    --eocrm-text: #0f1d33;
    --eocrm-muted: #5d6d85;
    --eocrm-primary: #1d6ad6;
    --eocrm-primary-dark: #144d9c;
    --eocrm-primary-soft: #eaf2fd;
    --eocrm-accent: #6c4cf5;
    --eocrm-success: #16a34a;
    --eocrm-success-soft: #e8f7ee;
    --eocrm-danger: #d92d20;
    --eocrm-danger-soft: #fdecea;
    --eocrm-warning: #b8810b;
    --eocrm-warning-soft: #fff5d9;
    --eocrm-radius-sm: 8px;
    --eocrm-radius: 12px;
    --eocrm-radius-lg: 16px;
    --eocrm-shadow-sm: 0 1px 2px rgba(15, 31, 54, 0.05);
    --eocrm-shadow: 0 4px 14px rgba(15, 31, 54, 0.07);
    --eocrm-shadow-lg: 0 18px 38px rgba(15, 31, 54, 0.10);
    --eocrm-focus-ring: 0 0 0 4px rgba(29, 106, 214, 0.16);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv01", "cv11";
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(29, 106, 214, 0.07), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--eocrm-bg) 100%);
    border-color: var(--eocrm-border);
    border-radius: var(--eocrm-radius-lg);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap h1,
.eocrm-wrap h2,
.eocrm-wrap h3,
.eocrm-wrap h4 {
    color: #0c1e36;
    letter-spacing: -0.01em;
}

.eocrm-wrap h2 {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
}

.eocrm-wrap h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
}

/* Header */
.eocrm-header {
    align-items: center;
    margin-bottom: 18px;
}

.eocrm-header h2 {
    margin-bottom: 4px;
}

.eocrm-header p {
    font-size: 14px;
    line-height: 1.5;
}

/* Tabs — pill nav with subtle elevation */
.eocrm-tabs {
    margin-bottom: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    border: 1px solid var(--eocrm-border);
    box-shadow: var(--eocrm-shadow-sm);
    width: fit-content;
    max-width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eocrm-tab {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    background: transparent;
}

.eocrm-tab:hover {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: transparent;
}

.eocrm-tab.is-active {
    background: linear-gradient(180deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border-color: var(--eocrm-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 106, 214, 0.28);
}

/* Cards */
.eocrm-card {
    border-radius: var(--eocrm-radius);
    border-color: var(--eocrm-border);
    box-shadow: var(--eocrm-shadow-sm);
    padding: 16px 18px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.eocrm-card:hover {
    box-shadow: var(--eocrm-shadow);
    border-color: #d4dfee;
}

.eocrm-card h3,
.eocrm-card h4 {
    margin-bottom: 10px;
}

/* Metric numbers */
.eocrm-metric {
    font-size: 38px;
    font-weight: 800;
    color: var(--eocrm-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* ===================
   FORMS — main focus
   =================== */

/* Form section labels (h3/h4 inside card) sit on a subtle top accent */
.eocrm-card form > h3:first-child,
.eocrm-card > h3:first-child,
.eocrm-card > h4:first-child {
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--eocrm-border);
}

.eocrm-form-grid {
    gap: 14px;
    margin-bottom: 14px;
}

.eocrm-form-field {
    gap: 7px;
}

.eocrm-form-field label,
.eocrm-form-field > label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2c45;
    letter-spacing: 0.005em;
    line-height: 1.3;
}

/* Inputs — unified, modern, premium feel */
.eocrm-wrap input[type="text"],
.eocrm-wrap input[type="email"],
.eocrm-wrap input[type="number"],
.eocrm-wrap input[type="url"],
.eocrm-wrap input[type="password"],
.eocrm-wrap input[type="search"],
.eocrm-wrap input[type="tel"],
.eocrm-wrap input[type="date"],
.eocrm-wrap input[type="datetime-local"],
.eocrm-wrap input[type="time"],
.eocrm-wrap select,
.eocrm-wrap textarea,
.eocrm-form-field input:not([type="checkbox"]):not([type="radio"]),
.eocrm-form-field select,
.eocrm-form-field textarea,
.eocrm-inline-form input,
.eocrm-filters select,
.eocrm-filters input {
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid var(--eocrm-border-strong);
    border-radius: var(--eocrm-radius-sm);
    background: #ffffff;
    color: var(--eocrm-text);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: inset 0 1px 1px rgba(15, 31, 54, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.eocrm-wrap textarea,
.eocrm-form-field textarea {
    min-height: 120px;
    line-height: 1.6;
    padding: 11px 13px;
    resize: vertical;
}

.eocrm-wrap select,
.eocrm-form-field select {
    background-image: linear-gradient(45deg, transparent 50%, #5d6d85 50%),
                      linear-gradient(135deg, #5d6d85 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    cursor: pointer;
}

.eocrm-wrap select::-ms-expand {
    display: none;
}

.eocrm-wrap input:not([type="checkbox"]):not([type="radio"]):hover,
.eocrm-wrap select:hover,
.eocrm-wrap textarea:hover {
    border-color: #adc4e3;
}

.eocrm-wrap input:not([type="checkbox"]):not([type="radio"]):focus,
.eocrm-wrap select:focus,
.eocrm-wrap textarea:focus {
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-focus-ring);
    outline: none;
}

.eocrm-wrap input:disabled,
.eocrm-wrap select:disabled,
.eocrm-wrap textarea:disabled {
    background: #f7f9fc;
    color: #8597b1;
    cursor: not-allowed;
}

.eocrm-wrap input::placeholder,
.eocrm-wrap textarea::placeholder {
    color: #8e9eb5;
    opacity: 1;
}

/* Number input spinners trim */
.eocrm-wrap input[type="number"] {
    font-variant-numeric: tabular-nums;
}

/* Inline form (search bars) — input grows comfortably */
.eocrm-inline-form {
    gap: 10px;
}

.eocrm-inline-form input[type="search"],
.eocrm-inline-form input[type="text"] {
    min-width: 240px;
}

/* Filters bar */
.eocrm-filters {
    gap: 12px;
    margin-bottom: 16px;
}

/* Search row */
.eocrm-search-row {
    gap: 10px;
}

/* Buttons — refined */
.eocrm-btn {
    border-radius: 9px;
    padding: 10px 16px;
    min-height: 40px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.005em;
    border-color: var(--eocrm-border-strong);
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eocrm-btn:hover {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
    background: #fbfdff;
    box-shadow: var(--eocrm-shadow);
}

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

.eocrm-btn-primary {
    background: linear-gradient(180deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border-color: var(--eocrm-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 106, 214, 0.24);
}

.eocrm-btn-primary:hover {
    background: linear-gradient(180deg, #1f6ed1 0%, var(--eocrm-primary-dark) 100%);
    border-color: var(--eocrm-primary-dark);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(20, 77, 156, 0.30);
    transform: translateY(-1px);
}

.eocrm-btn-primary:focus-visible,
.eocrm-btn:focus-visible {
    outline: none;
    box-shadow: var(--eocrm-focus-ring);
}

/* Tables */
.eocrm-table {
    border-radius: var(--eocrm-radius);
    border-color: var(--eocrm-border);
    box-shadow: var(--eocrm-shadow-sm);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.eocrm-table th {
    background: linear-gradient(180deg, #f6faff 0%, #e9f1fa 100%);
    color: #0e2848;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--eocrm-border);
}

.eocrm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f8;
    font-size: 14px;
    color: #1a2c45;
}

.eocrm-table tbody tr {
    transition: background 0.15s ease;
}

.eocrm-table tbody tr:hover {
    background: #f6faff;
}

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

/* Tags / badges */
.eocrm-tags span {
    background: #f3f7fc;
    border-color: #d8e2f0;
    color: #1f3a5f;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 11px;
    box-shadow: var(--eocrm-shadow-sm);
}

/* Alerts */
.eocrm-alert {
    border-radius: var(--eocrm-radius);
    padding: 12px 14px;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-alert-success {
    border-color: #b8e6c9;
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-radius: var(--eocrm-radius);
    padding: 12px 14px;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-alert-error {
    border-color: #f7c4c0;
    background: var(--eocrm-danger-soft);
    color: #871e16;
    border-radius: var(--eocrm-radius);
    padding: 12px 14px;
    box-shadow: var(--eocrm-shadow-sm);
}

/* Pagination */
.eocrm-page-link {
    border-radius: 9px;
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.eocrm-page-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-page-link.is-active {
    box-shadow: 0 4px 12px rgba(29, 106, 214, 0.28);
}

/* Profile cards */
.eocrm-profile-card {
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-profile-defs div {
    padding: 8px 0;
    border-bottom-style: solid;
    border-bottom-color: #eef2f8;
}

.eocrm-profile-defs dt {
    color: #4a5b75;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.eocrm-profile-defs dd {
    color: #16294a;
    font-weight: 500;
}

/* Address card */
.eocrm-profile-address {
    border-radius: 10px;
    box-shadow: var(--eocrm-shadow-sm);
    padding: 12px 14px;
}

/* Map canvas frame */
.eocrm-map-canvas {
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
}

/* Filters chip group */
.eocrm-property-table-filters,
.eocrm-table-filters {
    border-radius: var(--eocrm-radius);
    border-color: #d8e3f3;
    box-shadow: var(--eocrm-shadow-sm);
    padding: 12px;
}

.eocrm-table-filter-toggle span {
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-table-filter-toggle span:hover {
    transform: translateY(-1px);
}

/* Tag toggles */
.eocrm-tag-toggle span {
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-tag-toggle span:hover {
    transform: translateY(-1px);
}

/* Choice toggle (segmented) */
.eocrm-choice-toggle {
    background: #f1f5fb;
    border: 1px solid var(--eocrm-border);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
    box-shadow: inset 0 1px 2px rgba(15, 31, 54, 0.04);
}

.eocrm-choice-toggle-item span {
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #3a4a66;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    min-height: 32px;
}

.eocrm-choice-toggle-item:hover span {
    color: var(--eocrm-primary-dark);
}

.eocrm-choice-toggle-item input[type="radio"]:checked + span {
    background: #ffffff;
    color: var(--eocrm-primary-dark);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-transaction-cooperation-details {
    margin: 8px 0 16px;
    border: 1px solid rgba(0, 87, 184, 0.12);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
}

.eocrm-transaction-cooperation-details[hidden],
.eocrm-transaction-cooperation-details [hidden] {
    display: none !important;
}

/* Pretty checkbox/radio pills (already styled in main; reinforce shadow) */
.eocrm-wrap label.eocrm-checkbox-item,
.eocrm-wrap .eocrm-form-field-checkbox label,
.eocrm-wrap .eocrm-inline-checkboxes label,
.eocrm-wrap .eocrm-checkbox-item-stack > label {
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.eocrm-wrap label.eocrm-checkbox-item:hover:not(:has(> input:checked)),
.eocrm-wrap .eocrm-form-field-checkbox label:hover:not(:has(input:checked)),
.eocrm-wrap .eocrm-inline-checkboxes label:hover:not(:has(> input:checked)),
.eocrm-wrap .eocrm-checkbox-item-stack > label:hover:not(:has(> input:checked)) {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary-dark);
    transform: translateY(-1px);
}

/* Modal polish */
.eocrm-modal__dialog {
    border-radius: var(--eocrm-radius-lg);
    box-shadow: 0 30px 70px rgba(9, 24, 44, 0.42);
    padding: 20px 22px 18px;
}

.eocrm-modal__dialog h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.eocrm-modal__close {
    border-radius: 999px;
    box-shadow: var(--eocrm-shadow-sm);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

/* Status icons — refine */
.eocrm-status-icon {
    box-shadow: 0 2px 4px rgba(15, 31, 54, 0.18);
}

/* Login panel — premium */
.eocrm-agent-login-panel__card {
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(17, 38, 70, 0.16);
    border: 1px solid rgba(214, 224, 239, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.eocrm-agent-login-panel__form input[type="text"],
.eocrm-agent-login-panel__form input[type="password"] {
    min-height: 48px;
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-agent-login-panel__form input[type="text"]:focus,
.eocrm-agent-login-panel__form input[type="password"]:focus {
    box-shadow: 0 0 0 4px rgba(29, 106, 214, 0.16);
}

.eocrm-agent-login-panel__form input[type="submit"],
.eocrm-agent-login-panel__form button[type="submit"],
.eocrm-agent-login-panel__button {
    background: linear-gradient(180deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(29, 106, 214, 0.28);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eocrm-agent-login-panel__form input[type="submit"]:hover,
.eocrm-agent-login-panel__form button[type="submit"]:hover,
.eocrm-agent-login-panel__button:hover {
    background: linear-gradient(180deg, #1f6ed1 0%, var(--eocrm-primary-dark) 100%);
    box-shadow: 0 12px 28px rgba(20, 77, 156, 0.32);
}

/* Offers list cards */
.eocrm-offer-row-card {
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eocrm-offer-row-card:hover {
    transform: translateY(-3px);
    border-color: #cdd9eb;
    box-shadow: var(--eocrm-shadow-lg);
}

.eocrm-offer-row-media img {
    transition: transform 0.45s ease;
}

.eocrm-offer-row-card:hover .eocrm-offer-row-media img {
    transform: scale(1.04);
}

.eocrm-offer-metric {
    box-shadow: var(--eocrm-shadow-sm);
}

/* Offers filters */
.eocrm-offers-filters {
    border-radius: var(--eocrm-radius-lg);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-offers-filter-field input,
.eocrm-offers-filter-field select {
    border-color: var(--eocrm-border-strong);
    box-shadow: inset 0 1px 1px rgba(15, 31, 54, 0.03);
}

.eocrm-offers-filter-field label {
    color: #4a5b75;
}

/* Floor plan rows */
.eocrm-floor-plan-row {
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
    padding: 10px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.eocrm-floor-plan-row:hover {
    box-shadow: var(--eocrm-shadow);
    border-color: #d4dfee;
}

/* Gallery items */
.eocrm-gallery-item,
.eocrm-single-media-item {
    border-radius: var(--eocrm-radius-sm);
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-gallery-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--eocrm-shadow);
}

/* Team cards */
.eocrm-team-card {
    border-radius: var(--eocrm-radius);
    border-color: var(--eocrm-border);
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eocrm-team-card:hover {
    transform: translateY(-2px);
    border-color: #cdd9eb;
    box-shadow: var(--eocrm-shadow);
}

/* Forms — submit button row alignment */
.eocrm-card form .eocrm-btn-primary,
.eocrm-card form .eocrm-btn {
    margin-top: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .eocrm-card,
    .eocrm-offer-row-card,
    .eocrm-team-card,
    .eocrm-floor-plan-row,
    .eocrm-gallery-item,
    .eocrm-tab,
    .eocrm-btn,
    .eocrm-page-link,
    .eocrm-table-filter-toggle span,
    .eocrm-tag-toggle span,
    .eocrm-wrap label.eocrm-checkbox-item,
    .eocrm-wrap .eocrm-form-field-checkbox label,
    .eocrm-wrap .eocrm-inline-checkboxes label,
    .eocrm-wrap .eocrm-checkbox-item-stack > label,
    .eocrm-offer-row-media img {
        transition: none !important;
    }
    .eocrm-card:hover,
    .eocrm-offer-row-card:hover,
    .eocrm-team-card:hover,
    .eocrm-floor-plan-row:hover,
    .eocrm-gallery-item:hover,
    .eocrm-page-link:hover,
    .eocrm-btn-primary:hover {
        transform: none !important;
    }
    .eocrm-offer-row-card:hover .eocrm-offer-row-media img {
        transform: none !important;
    }
}

/* Small screens — comfortable form spacing */
@media (max-width: 600px) {
    .eocrm-wrap input[type="text"],
    .eocrm-wrap input[type="email"],
    .eocrm-wrap input[type="number"],
    .eocrm-wrap input[type="url"],
    .eocrm-wrap input[type="password"],
    .eocrm-wrap input[type="search"],
    .eocrm-wrap input[type="tel"],
    .eocrm-wrap select,
    .eocrm-wrap textarea {
        font-size: 16px; /* prevent iOS zoom */
    }

    .eocrm-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* ============================================================
   v1.1679 — Modern role-aware dashboard
   Hero, KPI cards, recent lists, transaction breakdown,
   agent ranking, quick actions.
   ============================================================ */

.eocrm-dash {
    display: block;
    margin-bottom: 6px;
}

/* Hero */
.eocrm-dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 76, 245, 0.10), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(29, 106, 214, 0.10), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-dash-hero__role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(29, 106, 214, 0.10);
    color: var(--eocrm-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eocrm-dash-hero__greeting {
    margin: 0 0 4px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    color: #0c1e36;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.eocrm-dash-hero__greeting strong {
    color: var(--eocrm-primary);
    font-weight: 800;
}

.eocrm-dash-hero__subtitle {
    margin: 0;
    color: var(--eocrm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.eocrm-dash-hero__quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.eocrm-dash-quick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--eocrm-border-strong);
    color: #16294a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.eocrm-dash-quick:hover,
.eocrm-dash-quick:focus {
    transform: translateY(-2px);
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
    outline: none;
}

.eocrm-dash-quick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* KPI cards */
.eocrm-dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.eocrm-dash-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--eocrm-radius);
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    box-shadow: var(--eocrm-shadow-sm);
    text-decoration: none;
    color: var(--eocrm-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.eocrm-dash-kpi::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2f80d1 100%);
    opacity: 0.85;
}

.eocrm-dash-kpi--green::after {
    background: linear-gradient(90deg, #16a34a 0%, #34c759 100%);
}

.eocrm-dash-kpi--purple::after {
    background: linear-gradient(90deg, #6c4cf5 0%, #8a6cff 100%);
}

.eocrm-dash-kpi--orange::after {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.eocrm-dash-kpi:hover,
.eocrm-dash-kpi:focus {
    transform: translateY(-3px);
    border-color: #cdd9eb;
    box-shadow: var(--eocrm-shadow);
    color: var(--eocrm-text);
    outline: none;
}

.eocrm-dash-kpi__icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary);
    font-size: 24px;
    line-height: 1;
}

.eocrm-dash-kpi--green .eocrm-dash-kpi__icon {
    background: #e8f7ee;
    color: #16a34a;
}

.eocrm-dash-kpi--purple .eocrm-dash-kpi__icon {
    background: #ece6fe;
    color: #6c4cf5;
}

.eocrm-dash-kpi--orange .eocrm-dash-kpi__icon {
    background: #fff3df;
    color: #b8810b;
}

.eocrm-dash-kpi__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eocrm-dash-kpi__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5d6d85;
    line-height: 1.2;
    margin-bottom: 6px;
}

.eocrm-dash-kpi__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #0c1e36;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.eocrm-dash-kpi__sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--eocrm-muted);
    font-weight: 500;
    line-height: 1.35;
}

/* Grid of panels */
.eocrm-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.eocrm-dash-panel {
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    padding: 16px 18px;
    box-shadow: var(--eocrm-shadow-sm);
    margin: 0;
}

.eocrm-dash-panel--agreements,
.eocrm-dash-panel--properties {
    grid-column: 1 / 2;
}

.eocrm-dash-panel--mix,
.eocrm-dash-panel--agents,
.eocrm-dash-panel--searches {
    grid-column: 2 / 3;
}

.eocrm-dash-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.eocrm-dash-panel__head h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #0c1e36;
}

.eocrm-dash-panel__hint {
    margin: 0;
    color: var(--eocrm-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.eocrm-dash-panel__more {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--eocrm-primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.eocrm-dash-panel__more:hover {
    color: var(--eocrm-primary-dark);
    transform: translateX(2px);
}

.eocrm-dash-panel--gross {
    margin: 14px 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 87, 184, 0.08), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.eocrm-dash-rem-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.eocrm-dash-rem-tab {
    appearance: none;
    border: 1px solid #cfe0f5;
    background: #ffffff;
    color: #21405f;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.eocrm-dash-rem-tab:hover,
.eocrm-dash-rem-tab:focus-visible {
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
    box-shadow: 0 8px 18px rgba(0, 87, 184, 0.12);
    outline: none;
}

.eocrm-dash-rem-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--eocrm-primary) 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 87, 184, 0.2);
}

.eocrm-dash-rem-tab.is-active:hover,
.eocrm-dash-rem-tab.is-active:focus-visible {
    color: #ffffff;
}

.eocrm-dash-rem-panel[hidden] {
    display: none !important;
}

.eocrm-dash-rem-panel {
    border: 1px solid #d9e8f8;
    border-radius: 18px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
}

.eocrm-dash-rem-panel__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #5d6d85;
    font-size: 13px;
}

.eocrm-dash-rem-panel__meta strong {
    color: #0c1e36;
}

.eocrm-dash-rem-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.eocrm-dash-rem-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 84px;
    justify-content: center;
    border: 1px solid rgba(0, 87, 184, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(12, 30, 54, 0.06);
}

.eocrm-dash-rem-total__value {
    color: #0c1e36;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.eocrm-dash-rem-total__currency {
    color: #5d6d85;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eocrm-dash-rem-agents {
    margin-top: 14px;
    border-top: 1px solid rgba(0, 87, 184, 0.12);
    padding-top: 14px;
}

.eocrm-dash-rem-agents h4 {
    margin: 0 0 10px;
    color: #0c1e36;
    font-size: 14px;
    font-weight: 850;
}

.eocrm-dash-rem-agents ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.eocrm-dash-rem-agents li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(15, 31, 54, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
}

.eocrm-dash-rem-agent__name {
    min-width: 0;
    color: #0c1e36;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eocrm-dash-rem-agent__meta,
.eocrm-dash-rem-agents__empty {
    color: #5d6d85;
    font-size: 12px;
    font-weight: 700;
}

.eocrm-dash-rem-agents li strong {
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eocrm-dash-rem-agents__empty {
    margin: 0;
}

.eocrm-dash-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--eocrm-border);
    border-radius: var(--eocrm-radius-sm);
    text-align: center;
    color: var(--eocrm-muted);
    font-size: 13.5px;
    background: #fbfdff;
}

/* Lists in panels */
.eocrm-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.eocrm-dash-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f8;
}

.eocrm-dash-list-item:last-child {
    border-bottom: 0;
}

.eocrm-dash-list-item__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: var(--eocrm-text);
}

.eocrm-dash-list-item__main:hover .eocrm-dash-list-item__title {
    color: var(--eocrm-primary);
}

.eocrm-dash-list-item__title {
    font-weight: 700;
    font-size: 14px;
    color: #0c1e36;
    line-height: 1.3;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-dash-list-item__sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--eocrm-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-dash-list-item__price {
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    white-space: nowrap;
}

.eocrm-dash-list-item__date {
    font-size: 12px;
    color: var(--eocrm-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Status pill */
.eocrm-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    border: 1px solid transparent;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-dash-pill.is-progress {
    background: #eaf2fd;
    color: #144d9c;
    border-color: #c8dbf2;
}

.eocrm-dash-pill.is-done {
    background: #e8f7ee;
    color: #145e36;
    border-color: #b8e6c9;
}

.eocrm-dash-pill.is-published {
    background: #e8f7ee;
    color: #145e36;
    border-color: #b8e6c9;
}

/* Bars (transaction breakdown) */
.eocrm-dash-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eocrm-dash-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eocrm-dash-bar__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.eocrm-dash-bar__label {
    font-size: 13px;
    font-weight: 700;
    color: #16294a;
}

.eocrm-dash-bar__value {
    font-size: 13px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
}

.eocrm-dash-bar__value span {
    color: var(--eocrm-muted);
    font-weight: 600;
    margin-left: 2px;
}

.eocrm-dash-bar__track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
}

.eocrm-dash-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2f80d1 100%);
    transition: width 0.4s ease;
}

.eocrm-dash-bar--sprzedaz .eocrm-dash-bar__fill {
    background: linear-gradient(90deg, #1d6ad6 0%, #4f9bff 100%);
}

.eocrm-dash-bar--kupno .eocrm-dash-bar__fill {
    background: linear-gradient(90deg, #16a34a 0%, #34c759 100%);
}

.eocrm-dash-bar--wynajem .eocrm-dash-bar__fill {
    background: linear-gradient(90deg, #6c4cf5 0%, #8a6cff 100%);
}

.eocrm-dash-bar--najem .eocrm-dash-bar__fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Export breakdown */
.eocrm-dash-export {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--eocrm-border);
}

.eocrm-dash-export h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #16294a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eocrm-dash-export-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.eocrm-dash-export-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    background: #fbfdff;
    font-size: 12.5px;
    color: #16294a;
}

.eocrm-dash-export-grid li strong {
    margin-left: auto;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: #0c1e36;
}

.eocrm-dash-export-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
}

.eocrm-dash-export-dot--www {
    background: linear-gradient(135deg, #16a34a, #34c759);
}

.eocrm-dash-export-dot--www-only {
    background: linear-gradient(135deg, #1d6ad6, #4f9bff);
}

.eocrm-dash-export-dot--portals {
    background: linear-gradient(135deg, #6c4cf5, #8a6cff);
}

.eocrm-dash-export-dot--none {
    background: #c5cfe0;
}

.eocrm-dash-export-label {
    color: #4a5b75;
    font-weight: 600;
}

/* Agent ranking */
.eocrm-dash-rank {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: eocrm-rank;
}

.eocrm-dash-rank-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.eocrm-dash-rank-position {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
    flex: 0 0 30px;
}

.eocrm-dash-rank-item:nth-child(1) .eocrm-dash-rank-position {
    background: linear-gradient(135deg, #ffd47a 0%, #ffb247 100%);
    color: #6b3f00;
}

.eocrm-dash-rank-item:nth-child(2) .eocrm-dash-rank-position {
    background: linear-gradient(135deg, #d8e1ed 0%, #b6c4d8 100%);
    color: #2a3950;
}

.eocrm-dash-rank-item:nth-child(3) .eocrm-dash-rank-position {
    background: linear-gradient(135deg, #f0c69e 0%, #d99963 100%);
    color: #5b3013;
}

.eocrm-dash-rank-body {
    min-width: 0;
}

.eocrm-dash-rank-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 5px;
}

.eocrm-dash-rank-name {
    font-weight: 700;
    color: #16294a;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-dash-rank-total {
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eocrm-dash-rank-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
}

.eocrm-dash-rank-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #4f9bff 100%);
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 1080px) {
    .eocrm-dash-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-dash-panel--agreements,
    .eocrm-dash-panel--properties,
    .eocrm-dash-panel--mix,
    .eocrm-dash-panel--agents,
    .eocrm-dash-panel--searches {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .eocrm-dash-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .eocrm-dash-hero__quick {
        justify-content: flex-start;
    }

    .eocrm-dash-list-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .eocrm-dash-list-item__price,
    .eocrm-dash-list-item__date {
        justify-self: flex-start;
    }

    .eocrm-dash-pill {
        justify-self: flex-start;
    }

    .eocrm-dash-export-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-dash-panel__head,
    .eocrm-dash-rem-panel__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .eocrm-dash-rem-tabs {
        gap: 6px;
    }

    .eocrm-dash-rem-tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .eocrm-dash-rem-agents li {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-dash-quick,
    .eocrm-dash-kpi,
    .eocrm-dash-panel__more,
    .eocrm-dash-rem-tab,
    .eocrm-dash-bar__fill,
    .eocrm-dash-rank-fill {
        transition: none !important;
    }
    .eocrm-dash-quick:hover,
    .eocrm-dash-kpi:hover {
        transform: none !important;
    }
}

/* ============================================================
   v1.1680 — Modern properties listing
   Toolbar with search + filter pills, stats meta, modern table
   with thumbnails, status pills, owner avatars, WWW indicator.
   ============================================================ */

.eocrm-prop-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-prop-toolbar__search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    position: relative;
}

.eocrm-prop-toolbar__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d6d85;
    display: inline-flex;
    pointer-events: none;
}

.eocrm-prop-toolbar__search input[type="search"] {
    padding-left: 38px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    border-color: var(--eocrm-border-strong) !important;
    background: #fbfdff !important;
}

.eocrm-prop-toolbar__search input[type="search"]:focus {
    background: #ffffff !important;
}

.eocrm-prop-toolbar__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border: 1px solid var(--eocrm-primary-dark);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 106, 214, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.eocrm-prop-toolbar__search-btn:hover,
.eocrm-prop-toolbar__search-btn:focus {
    background: linear-gradient(180deg, #1f6ed1 0%, var(--eocrm-primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(20, 77, 156, 0.30);
    transform: translateY(-1px);
    outline: none;
}

.eocrm-prop-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.eocrm-prop-filters .eocrm-table-filter-toggle span {
    padding: 0 14px;
    min-height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border-color: var(--eocrm-border-strong);
    color: #16294a;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-prop-filters .eocrm-table-filter-toggle input:checked + span {
    background: linear-gradient(180deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border-color: var(--eocrm-primary-dark);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(29, 106, 214, 0.26);
}

.eocrm-prop-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 4px;
}

.eocrm-prop-meta__count {
    margin: 0;
    color: #16294a;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.eocrm-prop-meta__count strong {
    color: var(--eocrm-primary-dark);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.eocrm-prop-meta__count span {
    color: var(--eocrm-muted);
    font-weight: 500;
}

.eocrm-prop-meta__hint {
    font-style: normal;
    color: var(--eocrm-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Table */
.eocrm-prop-list-wrap {
    max-width: 100%;
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.eocrm-prop-list {
    width: 100%;
    min-width: 1080px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.eocrm-prop-list thead th {
    background: #f8fbff;
    color: #4a5b75;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 14px;
    border-bottom: 1px solid var(--eocrm-border);
    text-align: left;
    white-space: nowrap;
}

.eocrm-prop-list tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
    background: transparent;
}

.eocrm-prop-list tbody tr:last-child td {
    border-bottom: 0;
}

.eocrm-prop-row {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.eocrm-prop-row:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
}

/* Main column */
.eocrm-prop-cell-main {
    min-width: 260px;
}

.eocrm-prop-link {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.eocrm-prop-thumb {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef7;
    border: 1px solid var(--eocrm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eocrm-prop-row:hover .eocrm-prop-thumb {
    transform: translateY(-1px);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eocrm-prop-thumb__placeholder {
    font-size: 22px;
    color: #8e9eb5;
}

.eocrm-prop-titlewrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eocrm-prop-title {
    font-weight: 700;
    font-size: 14px;
    color: #0c1e36;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.eocrm-prop-row:hover .eocrm-prop-title {
    color: var(--eocrm-primary);
}

.eocrm-prop-subtitle {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--eocrm-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Location column */
.eocrm-prop-cell-loc {
    min-width: 160px;
}

.eocrm-prop-loc-primary {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #16294a;
    line-height: 1.25;
}

.eocrm-prop-loc-secondary {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--eocrm-muted);
    line-height: 1.3;
}

/* Price column */
.eocrm-prop-cell-price {
    text-align: right;
    min-width: 130px;
    white-space: nowrap;
}

.eocrm-prop-price {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.eocrm-prop-price-m2 {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--eocrm-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Metric column (area / rooms) */
.eocrm-prop-cell-metric {
    text-align: center;
    min-width: 80px;
}

.eocrm-prop-metric {
    display: inline-block;
    font-weight: 700;
    color: #16294a;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.eocrm-prop-metric sup {
    font-size: 9px;
    margin-left: 1px;
}

.eocrm-prop-metric--empty {
    color: #c2cbd9;
    font-weight: 500;
}

.eocrm-prop-metric-sub {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--eocrm-muted);
    font-weight: 500;
}

/* Owner column */
.eocrm-prop-cell-owner {
    min-width: 160px;
}

.eocrm-prop-owner {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.eocrm-prop-owner__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 32px;
    background: linear-gradient(135deg, var(--eocrm-primary-soft), #e7e1fe);
    color: var(--eocrm-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    border: 1px solid var(--eocrm-border);
}

.eocrm-prop-owner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eocrm-prop-owner__initial {
    line-height: 1;
}

.eocrm-prop-owner__name {
    font-size: 13px;
    font-weight: 600;
    color: #16294a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status pill */
.eocrm-prop-cell-status {
    min-width: 130px;
    white-space: nowrap;
}

.eocrm-prop-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.eocrm-prop-status-pill.is-active {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

.eocrm-prop-status-pill.is-sold {
    background: var(--eocrm-danger-soft);
    color: #871e16;
    border-color: #f7c4c0;
}

.eocrm-prop-status-pill.is-rented {
    background: #fff3df;
    color: #7a5400;
    border-color: #f4d39a;
}

.eocrm-prop-status-pill.is-premium {
    background: linear-gradient(135deg, #fff3df 0%, #fff8e7 100%);
    color: #7a5400;
    border-color: #f0c36d;
}

.eocrm-prop-status-pill.is-exclusive {
    background: linear-gradient(135deg, #ece6fe 0%, #f3eefe 100%);
    color: #4a30c0;
    border-color: #cbbef9;
}

.eocrm-prop-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    background: var(--eocrm-primary-soft);
    border: 1px solid #c8dbf2;
}

.eocrm-prop-mini-pill.is-portal {
    color: #4a30c0;
    background: #ece6fe;
    border-color: #cbbef9;
}

/* Status column — 3 globe-style icons (WWW / Portale / Umowa) */
.eocrm-prop-cell-status {
    min-width: 130px;
    white-space: nowrap;
}

.eocrm-prop-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eocrm-prop-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.eocrm-prop-status-icon.is-on {
    background: var(--eocrm-success-soft);
    color: #16a34a;
    border-color: #b8e6c9;
}

.eocrm-prop-status-icon.is-off {
    background: #f3f5f9;
    color: #94a3b8;
    border-color: #dde3ec;
}

.eocrm-prop-row:hover .eocrm-prop-status-icon.is-on {
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.20);
}

.eocrm-prop-row:hover .eocrm-prop-status-icon.is-off {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(15, 31, 54, 0.06);
}

/* Date column */
.eocrm-prop-cell-date {
    min-width: 100px;
    white-space: nowrap;
}

.eocrm-prop-date-main {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #16294a;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.eocrm-prop-date-sub {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--eocrm-muted);
    font-variant-numeric: tabular-nums;
}

/* Empty state */
.eocrm-prop-empty-row td {
    padding: 0 !important;
    background: #ffffff;
}

.eocrm-prop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 36px 20px;
    color: var(--eocrm-muted);
    text-align: center;
}

.eocrm-prop-empty__icon {
    font-size: 36px;
    opacity: 0.45;
    margin-bottom: 4px;
}

.eocrm-prop-empty__icon.eocrm-transaction-empty-icon {
    color: var(--eocrm-primary-dark);
    opacity: 0.62;
}

.eocrm-prop-empty__icon.eocrm-transaction-empty-icon .eocrm-transaction-icon {
    width: 38px;
    height: 38px;
}

.eocrm-prop-empty strong {
    color: #16294a;
    font-size: 15px;
}

.eocrm-prop-empty span {
    font-size: 13px;
    color: var(--eocrm-muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .eocrm-prop-toolbar {
        grid-template-columns: 1fr;
    }

    .eocrm-prop-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .eocrm-prop-list {
        min-width: 1080px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-prop-row,
    .eocrm-prop-thumb,
    .eocrm-prop-status-icon,
    .eocrm-prop-toolbar__search-btn,
    .eocrm-prop-title {
        transition: none !important;
    }
    .eocrm-prop-row:hover .eocrm-prop-thumb,
    .eocrm-prop-row:hover .eocrm-prop-status-icon,
    .eocrm-prop-toolbar__search-btn:hover {
        transform: none !important;
    }
}

/* ============================================================
   v1.1682 — Modern property profile
   Hero header, agreement-pulled stage timeline, quick stat cards,
   refined detail grid wrapper.
   ============================================================ */

.eocrm-prop-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hero */
.eocrm-prop-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 76, 245, 0.10), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(29, 106, 214, 0.10), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius-lg);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-profile-hero__main {
    min-width: 0;
}

.eocrm-prop-profile-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(29, 106, 214, 0.10);
    color: var(--eocrm-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eocrm-prop-profile-hero__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    color: #0c1e36;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill {
    font-size: 11.5px;
    padding: 5px 12px;
}

.eocrm-prop-profile-hero__meta {
    margin: 0;
    color: var(--eocrm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.eocrm-prop-profile-hero__meta strong {
    color: #16294a;
    font-weight: 700;
}

.eocrm-prop-profile-hero__sep {
    color: #c2cbd9;
    margin: 0 6px;
    font-weight: 600;
}

.eocrm-prop-profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.eocrm-prop-profile-hero__delete {
    margin: 0;
}

.eocrm-btn-danger {
    border-color: #e5b1ab;
    color: #871e16;
    background: linear-gradient(180deg, #fff7f5 0%, #ffefee 100%);
}

.eocrm-btn-danger:hover,
.eocrm-btn-danger:focus {
    border-color: #c74a3c;
    color: #7f241b;
    background: linear-gradient(180deg, #ffe9e5 0%, #ffd6d1 100%);
}

/* Stage timeline */
.eocrm-prop-stages {
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
    padding: 18px 20px;
}

.eocrm-prop-stages__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.eocrm-prop-stages__head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0c1e36;
}

.eocrm-prop-stages__hint {
    margin: 0;
    color: var(--eocrm-muted);
    font-size: 13px;
}

.eocrm-prop-stages__hint a {
    color: var(--eocrm-primary);
    text-decoration: none;
    font-weight: 600;
}

.eocrm-prop-stages__hint a:hover {
    text-decoration: underline;
}

.eocrm-prop-stages__sep {
    color: #c2cbd9;
    margin: 0 4px;
}

.eocrm-prop-stages__progress {
    display: grid;
    grid-template-columns: auto auto 160px;
    gap: 8px;
    align-items: center;
}

.eocrm-prop-stages__progress-label {
    color: var(--eocrm-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eocrm-prop-stages__progress-value {
    color: var(--eocrm-primary-dark);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.eocrm-prop-stages__progress-track {
    width: 160px;
    height: 8px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
    grid-column: 3 / 4;
}

.eocrm-prop-stages__progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a 0%, #1d6ad6 100%);
    transition: width 0.4s ease;
}

.eocrm-prop-stages__list {
    list-style: none;
    margin: 0;
    padding: 14px 4px 4px;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

.eocrm-prop-stage {
    flex: 1 1 0;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 6px 4px;
}

.eocrm-prop-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 3px;
    background: #e1e8f3;
    z-index: 0;
}

.eocrm-prop-stage.is-completed:not(:last-child)::after {
    background: linear-gradient(90deg, #16a34a 0%, #34c759 100%);
}

.eocrm-prop-stage.is-current:not(:last-child)::after {
    background: linear-gradient(90deg, #1d6ad6 0%, #e1e8f3 100%);
}

.eocrm-prop-stage.is-skipped:not(:last-child)::after {
    background: linear-gradient(90deg, #ef4444 0%, #e1e8f3 100%);
}

.eocrm-prop-stage__indicator {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #d6e0ef;
    color: #6b7d9a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--eocrm-shadow-sm);
    margin-bottom: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-prop-stage.is-completed .eocrm-prop-stage__indicator {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.30);
}

.eocrm-prop-stage.is-current .eocrm-prop-stage__indicator {
    background: linear-gradient(135deg, #2378e0 0%, #1d6ad6 100%);
    border-color: #144d9c;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(29, 106, 214, 0.35);
    transform: scale(1.08);
}

.eocrm-prop-stage.is-skipped .eocrm-prop-stage__indicator {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #dc2626;
    box-shadow: 0 5px 12px rgba(220, 38, 38, 0.20);
}

.eocrm-prop-stage.is-current .eocrm-prop-stage__indicator::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    border: 2px solid rgba(29, 106, 214, 0.22);
    pointer-events: none;
}

.eocrm-prop-stage__num {
    line-height: 1;
}

.eocrm-prop-stage__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.eocrm-prop-stage__name {
    font-size: 12.5px;
    font-weight: 700;
    color: #16294a;
    line-height: 1.25;
    max-width: 160px;
}

.eocrm-prop-stage.is-current .eocrm-prop-stage__name {
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-stage.is-upcoming .eocrm-prop-stage__name {
    color: #6b7d9a;
    font-weight: 600;
}

.eocrm-prop-stage.is-skipped .eocrm-prop-stage__name {
    color: #b91c1c;
}

.eocrm-prop-stage__sub {
    font-size: 11.5px;
    color: var(--eocrm-muted);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.eocrm-prop-stages--empty .eocrm-prop-stages__empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--eocrm-radius);
    background: linear-gradient(135deg, #fafcff 0%, #f3f7fc 100%);
    border: 1px dashed var(--eocrm-border);
}

.eocrm-prop-stages__empty-icon {
    font-size: 28px;
    flex: 0 0 auto;
}

.eocrm-prop-stages__empty strong {
    display: block;
    color: #16294a;
    font-size: 14px;
    margin-bottom: 2px;
}

.eocrm-prop-stages__empty span {
    font-size: 13px;
    color: var(--eocrm-muted);
}

/* Quick stats */
.eocrm-prop-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.eocrm-prop-quick-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.eocrm-prop-quick-stat::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2f80d1 100%);
}

.eocrm-prop-quick-stat--green::after {
    background: linear-gradient(90deg, #16a34a 0%, #34c759 100%);
}

.eocrm-prop-quick-stat--purple::after {
    background: linear-gradient(90deg, #6c4cf5 0%, #8a6cff 100%);
}

.eocrm-prop-quick-stat--orange::after {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.eocrm-prop-quick-stat:hover {
    transform: translateY(-2px);
    border-color: #cdd9eb;
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-quick-stat__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary);
    font-size: 22px;
    line-height: 1;
}

.eocrm-prop-quick-stat--green .eocrm-prop-quick-stat__icon {
    background: var(--eocrm-success-soft);
    color: #16a34a;
}

.eocrm-prop-quick-stat--purple .eocrm-prop-quick-stat__icon {
    background: #ece6fe;
    color: #6c4cf5;
}

.eocrm-prop-quick-stat--orange .eocrm-prop-quick-stat__icon {
    background: #fff3df;
    color: #b8810b;
}

.eocrm-prop-quick-stat__avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff3df, #ffe7c9);
    color: #b8810b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border: 1px solid var(--eocrm-border);
}

.eocrm-prop-quick-stat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eocrm-prop-quick-stat__avatar-initial {
    line-height: 1;
}

.eocrm-prop-quick-stat__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eocrm-prop-quick-stat__label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eocrm-muted);
    line-height: 1.2;
    margin-bottom: 4px;
}

.eocrm-prop-quick-stat__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    color: #0c1e36;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-prop-quick-stat__value--small {
    font-size: 15px;
    font-weight: 700;
}

.eocrm-prop-quick-stat__value sup {
    font-size: 11px;
    margin-left: 1px;
}

.eocrm-prop-quick-stat__sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--eocrm-muted);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inner detail card refresh */
.eocrm-prop-profile-card {
    border-radius: var(--eocrm-radius-lg) !important;
    box-shadow: var(--eocrm-shadow) !important;
}

.eocrm-prop-profile-card .eocrm-profile-grid {
    gap: 22px;
}

/* Responsive */
@media (max-width: 900px) {
    .eocrm-prop-profile-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .eocrm-prop-profile-hero__actions {
        justify-content: flex-start;
    }

    .eocrm-prop-stages__head {
        flex-direction: column;
    }

    .eocrm-prop-stages__progress {
        grid-template-columns: auto auto 1fr;
    }

    .eocrm-prop-stages__progress-track {
        width: 100%;
    }

    .eocrm-prop-stages__list {
        padding-bottom: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-prop-stage__indicator,
    .eocrm-prop-quick-stat,
    .eocrm-prop-stages__progress-fill {
        transition: none !important;
    }
    .eocrm-prop-stage.is-current .eocrm-prop-stage__indicator,
    .eocrm-prop-quick-stat:hover {
        transform: none !important;
    }
}

/* ============================================================
   v1.1683 — Modern themed profile detail
   Hero gallery + themed sub-cards (location / dimensions /
   condition / media / features / export) + related cards.
   ============================================================ */

.eocrm-prop-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hero gallery */
.eocrm-prop-detail-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius-lg);
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
    padding: 10px;
}

.eocrm-prop-detail-gallery__hero {
    position: relative;
    display: block;
    height: clamp(280px, 38vw, 440px);
    border-radius: var(--eocrm-radius);
    overflow: hidden;
    background: #e8eef7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eocrm-prop-detail-gallery__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.eocrm-prop-detail-gallery__hero:hover img {
    transform: scale(1.02);
}

.eocrm-prop-detail-gallery__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eocrm-prop-detail-gallery__count-icon {
    font-size: 14px;
    line-height: 1;
}

.eocrm-prop-detail-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.eocrm-prop-detail-gallery__thumb {
    display: block;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef7;
    border: 1px solid var(--eocrm-border);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-prop-detail-gallery__thumb:hover {
    transform: translateY(-2px);
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-detail-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eocrm-prop-detail-gallery--empty {
    padding: 22px;
}

.eocrm-prop-detail-gallery__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 28px 16px;
    color: var(--eocrm-muted);
}

.eocrm-prop-detail-gallery__empty-icon {
    font-size: 36px;
    opacity: 0.45;
    margin-bottom: 4px;
}

.eocrm-prop-detail-gallery__empty strong {
    color: #16294a;
    font-size: 15px;
}

/* Themed grid */
.eocrm-prop-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
}

/* Themed card */
.eocrm-prop-detail-card {
    background: #ffffff;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    box-shadow: var(--eocrm-shadow-sm);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.eocrm-prop-detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2f80d1 100%);
    opacity: 0.85;
}

.eocrm-prop-detail-card--location::before {
    background: linear-gradient(90deg, #1d6ad6 0%, #4f9bff 100%);
}

.eocrm-prop-detail-card--dimensions::before {
    background: linear-gradient(90deg, #16a34a 0%, #34c759 100%);
}

.eocrm-prop-detail-card--condition::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.eocrm-prop-detail-card--media::before {
    background: linear-gradient(90deg, #6c4cf5 0%, #8a6cff 100%);
}

.eocrm-prop-detail-card--features::before {
    background: linear-gradient(90deg, #16a34a 0%, #1d6ad6 100%);
}

.eocrm-prop-detail-card--export::before {
    background: linear-gradient(90deg, #6c4cf5 0%, #1d6ad6 100%);
}

.eocrm-prop-detail-card:hover {
    border-color: #cdd9eb;
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-detail-card--full {
    grid-column: 1 / -1;
}

.eocrm-prop-detail-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f8;
    flex-wrap: wrap;
}

.eocrm-prop-detail-card__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0c1e36;
    letter-spacing: -0.005em;
    flex: 1 1 auto;
    min-width: 0;
}

.eocrm-prop-detail-card__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary);
    font-size: 16px;
    line-height: 1;
}

.eocrm-prop-detail-card--location .eocrm-prop-detail-card__icon {
    background: #e7f0fb;
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-detail-card--dimensions .eocrm-prop-detail-card__icon {
    background: #e8f7ee;
    color: #16a34a;
}

.eocrm-prop-detail-card--condition .eocrm-prop-detail-card__icon {
    background: #fff3df;
    color: #b8810b;
}

.eocrm-prop-detail-card--media .eocrm-prop-detail-card__icon {
    background: #ece6fe;
    color: #6c4cf5;
}

.eocrm-prop-detail-card--features .eocrm-prop-detail-card__icon {
    background: #e3f5e9;
    color: #15803d;
}

.eocrm-prop-detail-card--export .eocrm-prop-detail-card__icon {
    background: #e7f0fb;
    color: var(--eocrm-primary);
}

.eocrm-transaction-icon {
    display: block;
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
}

.eocrm-transaction-icon-shell {
    background: linear-gradient(135deg, #e7f0fb 0%, #e5f8ee 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-quick-stat__icon.eocrm-transaction-icon-shell .eocrm-transaction-icon,
.eocrm-prop-detail-card__icon.eocrm-transaction-icon-shell .eocrm-transaction-icon {
    width: 18px;
    height: 18px;
}

.eocrm-prop-detail-card__hint {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--eocrm-muted);
    line-height: 1.4;
}

/* Defs inside themed card */
.eocrm-prop-detail-card__defs {
    margin: 0;
    display: grid;
    gap: 8px;
}

.eocrm-prop-detail-card__defs > div {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #eef2f8;
}

.eocrm-prop-detail-card__defs > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.eocrm-prop-detail-card__defs dt {
    font-size: 12.5px;
    font-weight: 700;
    color: #4a5b75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.eocrm-prop-detail-card__defs dd {
    margin: 0;
    font-size: 14px;
    color: #16294a;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Description card */
.eocrm-prop-detail-card--description .eocrm-prop-detail-card__richtext {
    color: #1d2a3b;
    font-size: 14.5px;
    line-height: 1.7;
}

.eocrm-prop-detail-card--description .eocrm-prop-detail-card__richtext p {
    margin: 0 0 12px;
}

.eocrm-prop-detail-card--description .eocrm-prop-detail-card__richtext p:last-child {
    margin-bottom: 0;
}

/* Floor plans + profile mini map */
.eocrm-prop-detail-media-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 14px;
    align-items: stretch;
}

.eocrm-prop-detail-media-row > .eocrm-prop-detail-card {
    min-width: 0;
}

.eocrm-prop-detail-mini-map {
    min-height: 260px;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #eef4fb;
    border: 1px solid var(--eocrm-border);
}

.eocrm-prop-detail-mini-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

/* Floor plans */
.eocrm-prop-detail-floor-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.eocrm-prop-detail-floor-plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--eocrm-text);
    transition: transform 0.18s ease;
}

.eocrm-prop-detail-floor-plan:hover {
    transform: translateY(-2px);
}

.eocrm-prop-detail-floor-plan__thumb {
    display: block;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f4f9;
    border: 1px solid var(--eocrm-border);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.eocrm-prop-detail-floor-plan:hover .eocrm-prop-detail-floor-plan__thumb {
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
}

.eocrm-prop-detail-floor-plan__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eocrm-prop-detail-floor-plan__label {
    font-size: 13px;
    font-weight: 600;
    color: #16294a;
    text-align: center;
}

/* Related (clients / agreement / tags) */
.eocrm-prop-detail-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.eocrm-prop-detail-related .eocrm-prop-detail-card::before {
    background: linear-gradient(90deg, #c2cbd9 0%, #d6e0ef 100%);
    opacity: 0.6;
}

.eocrm-prop-detail-empty {
    margin: 0;
    padding: 14px;
    border-radius: var(--eocrm-radius-sm);
    border: 1px dashed var(--eocrm-border);
    background: #fbfdff;
    color: var(--eocrm-muted);
    font-size: 13px;
    text-align: center;
}

.eocrm-prop-detail-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eocrm-prop-detail-related-list li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--eocrm-border);
    background: #fbfdff;
    color: #16294a;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.eocrm-prop-detail-related-list li > a:hover {
    transform: translateY(-1px);
    border-color: var(--eocrm-primary);
    color: var(--eocrm-primary);
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-prop-detail-related-list__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--eocrm-primary-soft), #e7e1fe);
    color: var(--eocrm-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 32px;
}

.eocrm-prop-detail-related-list__avatar.eocrm-transaction-related-avatar {
    background: linear-gradient(135deg, #e7f0fb 0%, #dff8ea 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-detail-related-list__avatar.eocrm-transaction-related-avatar .eocrm-transaction-icon {
    width: 17px;
    height: 17px;
}

.eocrm-prop-detail-related-list__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Agreement summary inside related */
.eocrm-prop-detail-agreement {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eocrm-prop-detail-agreement__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eocrm-prop-detail-agreement__number {
    font-size: 18px;
    font-weight: 800;
    color: #0c1e36;
    letter-spacing: -0.01em;
}

.eocrm-prop-detail-agreement__tx {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eocrm-prop-detail-agreement__stage {
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.eocrm-prop-detail-agreement__stage.is-progress {
    background: #eaf2fd;
    color: #144d9c;
    border-color: #c8dbf2;
}

.eocrm-prop-detail-agreement__stage.is-done {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

.eocrm-prop-detail-agreement .eocrm-btn {
    align-self: flex-start;
}

/* Tags chips */
.eocrm-prop-detail-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eocrm-prop-detail-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3df 0%, #fff8e7 100%);
    color: #7a5400;
    border: 1px solid #f4d39a;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

/* Quick flags card layout polish */
.eocrm-prop-detail-card--flags .eocrm-tag-toggle-grid {
    margin: 0 0 14px;
}

.eocrm-prop-detail-card--flags .eocrm-property-flags-actions {
    margin: 0;
}

/* Modal host (purely a wrapper for the existing PDF modal markup) */
.eocrm-prop-detail-modal-host {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 760px) {
    .eocrm-prop-detail-gallery__hero {
        height: clamp(220px, 50vw, 320px);
    }

    .eocrm-prop-detail-card__defs > div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-prop-detail-gallery__hero,
    .eocrm-prop-detail-gallery__hero img,
    .eocrm-prop-detail-gallery__thumb,
    .eocrm-prop-detail-card,
    .eocrm-prop-detail-floor-plan,
    .eocrm-prop-detail-floor-plan__thumb,
    .eocrm-prop-detail-related-list li > a {
        transition: none !important;
    }
    .eocrm-prop-detail-gallery__hero:hover img,
    .eocrm-prop-detail-gallery__thumb:hover,
    .eocrm-prop-detail-floor-plan:hover,
    .eocrm-prop-detail-related-list li > a:hover {
        transform: none !important;
    }
}

/* ============================================================
   v1.1684 — Hero row layout (2/3 photo + 1/3 flags)
   ============================================================ */

.eocrm-prop-detail-hero-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.eocrm-prop-detail-gallery--hero-only {
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.eocrm-prop-detail-gallery--hero-only .eocrm-prop-detail-gallery__hero {
    flex: 1 1 auto;
    height: clamp(320px, 42vw, 520px);
}

.eocrm-prop-detail-card--side {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.eocrm-prop-detail-card--side::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.eocrm-prop-detail-card--side .eocrm-prop-detail-card__icon {
    background: #fff3df;
    color: #b8810b;
}

.eocrm-prop-detail-card--side .eocrm-tag-toggle-grid {
    flex: 1 1 auto;
    overflow-y: auto;
    align-content: flex-start;
    margin: 0 0 12px;
}

.eocrm-prop-detail-card--side .eocrm-property-flags-actions {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #eef2f8;
    margin-top: auto;
    padding-top: 12px;
}

/* Galeria zdjec card (formerly thumb strip) */
.eocrm-prop-detail-card--gallery::before {
    background: linear-gradient(90deg, #1d6ad6 0%, #6c4cf5 100%);
}

.eocrm-prop-detail-card--gallery .eocrm-prop-detail-card__icon {
    background: #ece6fe;
    color: #6c4cf5;
}

.eocrm-prop-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.eocrm-prop-detail-gallery-grid .eocrm-prop-detail-gallery__thumb {
    height: 110px;
}

@media (max-width: 900px) {
    .eocrm-prop-detail-hero-row {
        grid-template-columns: 1fr;
    }

    .eocrm-prop-detail-media-row {
        grid-template-columns: 1fr;
    }

    .eocrm-prop-detail-gallery--hero-only .eocrm-prop-detail-gallery__hero {
        height: clamp(240px, 50vw, 360px);
    }
}

/* ============================================================
   v1.1685 — Modern searches (listing + profile)
   Reuses .eocrm-prop-* table/profile classes; adds icon-thumb
   variant and small numeric-range price tweaks.
   ============================================================ */

.eocrm-prop-thumb--icon {
    background: linear-gradient(135deg, var(--eocrm-primary-soft) 0%, #e7e1fe 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-thumb--icon svg {
    width: 22px;
    height: 22px;
}

.eocrm-search-list .eocrm-prop-price {
    font-size: 13.5px;
    font-weight: 700;
}

.eocrm-search-list .eocrm-prop-price--empty {
    color: #c2cbd9;
    font-weight: 500;
}

/* Make the hero status pill more readable when used as transaction badge */
.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-active {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: #c8dbf2;
}

/* ============================================================
   v1.1686 — Modern agreements (listing + profile)
   Reuses prop-* base classes; adds agreement-specific cards
   (clients, properties, history timeline, side panel).
   ============================================================ */

/* Listing */
.eocrm-prop-thumb--agreement {
    background: linear-gradient(135deg, #fff3df 0%, #ffe7c9 100%);
    color: #b8810b;
}

.eocrm-prop-thumb--transaction {
    background: linear-gradient(135deg, #e7f0fb 0%, #dcfce7 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-thumb--transaction .eocrm-transaction-icon {
    width: 24px;
    height: 24px;
}

.eocrm-prop-stage-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1.3;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-prop-stage-pill.is-progress {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: #c8dbf2;
}

.eocrm-prop-stage-pill.is-done {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

.eocrm-prop-loc-primary--link {
    color: var(--eocrm-primary-dark);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-block;
}

.eocrm-prop-loc-primary--link:hover {
    color: var(--eocrm-primary);
    text-decoration: underline;
}

.eocrm-prop-loc-primary--muted {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.eocrm-prop-date-main--badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ece6fe;
    color: #4a30c0;
    border: 1px solid #cbbef9;
    font-size: 12px;
    font-weight: 700;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-progress {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: #c8dbf2;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-done {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

/* Agreement details row directly under timeline (2/3 + 1/3) */
.eocrm-agreement-details-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.eocrm-agreement-details-row > article {
    margin: 0;
    min-width: 0;
}

/* Override .eocrm-prop-detail-card--full (which forces grid-column: 1 / -1)
   so the cards respect the 2fr/1fr split inside this row. */
.eocrm-agreement-details-row > .eocrm-prop-detail-card--full {
    grid-column: auto;
}

.eocrm-agreement-details-row__main {
    grid-column: 1 / 2;
}

.eocrm-agreement-details-row__side {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    max-height: 520px;
    overflow: hidden;
}

.eocrm-agreement-details-row__side .eocrm-agreement-history {
    overflow-y: auto;
    padding-right: 4px;
    flex: 1 1 auto;
}

@media (max-width: 1080px) {
    .eocrm-agreement-details-row {
        grid-template-columns: 1fr;
    }

    .eocrm-agreement-details-row__main,
    .eocrm-agreement-details-row__side {
        grid-column: 1 / -1;
    }

    .eocrm-agreement-details-row__side {
        max-height: none;
    }
}

/* Agreement profile main row (2/3 + 1/3) */
.eocrm-agreement-main-row {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
}

.eocrm-agreement-main-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.eocrm-agreement-side-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

@media (max-width: 1080px) {
    .eocrm-agreement-main-row {
        grid-template-columns: 1fr;
    }
}

/* Clients grid */
.eocrm-agreement-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.eocrm-agreement-client-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    background: #ffffff;
    color: var(--eocrm-text);
    text-decoration: none;
    align-items: center;
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.eocrm-agreement-client-card:hover {
    transform: translateY(-2px);
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
    color: var(--eocrm-text);
}

.eocrm-agreement-client-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--eocrm-primary-soft) 0%, #e7e1fe 100%);
    color: var(--eocrm-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border: 1px solid var(--eocrm-border);
}

.eocrm-agreement-client-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.eocrm-agreement-client-card__name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0c1e36;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eocrm-agreement-client-card:hover .eocrm-agreement-client-card__name {
    color: var(--eocrm-primary);
}

.eocrm-agreement-client-card__type {
    font-size: 11.5px;
    color: var(--eocrm-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.eocrm-agreement-client-card__contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
    font-size: 12px;
    color: #4a5b75;
    overflow: hidden;
}

.eocrm-agreement-client-card__contact > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Property grid */
.eocrm-agreement-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.eocrm-agreement-property-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    background: #ffffff;
    text-decoration: none;
    color: var(--eocrm-text);
    overflow: hidden;
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.eocrm-agreement-property-card:hover {
    transform: translateY(-3px);
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
    color: var(--eocrm-text);
}

.eocrm-agreement-property-card__thumb {
    display: block;
    width: 100%;
    height: 140px;
    background: #e8eef7;
    overflow: hidden;
    position: relative;
}

.eocrm-agreement-property-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.eocrm-agreement-property-card:hover .eocrm-agreement-property-card__thumb img {
    transform: scale(1.04);
}

.eocrm-agreement-property-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #8e9eb5;
}

.eocrm-agreement-property-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eocrm-agreement-property-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0c1e36;
}

.eocrm-agreement-property-card:hover .eocrm-agreement-property-card__title {
    color: var(--eocrm-primary);
}

.eocrm-agreement-property-card__sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--eocrm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.eocrm-agreement-property-card__address {
    font-size: 12.5px;
    color: #4a5b75;
    line-height: 1.35;
}

.eocrm-agreement-property-card__price {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Searches list inside agreement profile */
.eocrm-agreement-search-list .eocrm-prop-detail-related-list__avatar {
    background: #ece6fe;
    color: #6c4cf5;
    font-size: 16px;
}

.eocrm-agreement-search-list .eocrm-prop-detail-related-list__avatar.eocrm-transaction-related-avatar {
    background: linear-gradient(135deg, #e7f0fb 0%, #dff8ea 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-agreement-search-list .eocrm-prop-detail-related-list__name em {
    font-style: normal;
    color: var(--eocrm-muted);
    font-weight: 500;
}

/* Agreement details defs grid (2-col) */
.eocrm-agreement-defs-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 16px;
}

@media (max-width: 600px) {
    .eocrm-agreement-defs-grid {
        grid-template-columns: 1fr;
    }
}

/* History timeline */
.eocrm-agreement-history {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.eocrm-agreement-history::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #1d6ad6 0%, #d6e0ef 100%);
    border-radius: 2px;
}

.eocrm-agreement-history__item {
    position: relative;
    padding: 8px 0 14px 32px;
}

.eocrm-agreement-history__item:last-child {
    padding-bottom: 0;
}

.eocrm-agreement-history__dot {
    position: absolute;
    left: 4px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2378e0 0%, var(--eocrm-primary) 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px var(--eocrm-border);
}

.eocrm-agreement-history__item:not(:first-child) .eocrm-agreement-history__dot {
    background: #ffffff;
    border-color: var(--eocrm-primary);
    box-shadow: 0 0 0 1px var(--eocrm-border);
}

.eocrm-agreement-history__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eocrm-agreement-history__date {
    font-size: 12px;
    font-weight: 700;
    color: var(--eocrm-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.eocrm-agreement-history__name {
    font-size: 14px;
    font-weight: 700;
    color: #0c1e36;
    line-height: 1.3;
}

.eocrm-agreement-history__meta {
    font-size: 11.5px;
    color: var(--eocrm-muted);
    font-variant-numeric: tabular-nums;
}

.eocrm-agreement-history__admin {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--eocrm-border);
    border-radius: 10px;
    background: #f8fbff;
}

.eocrm-agreement-history__admin summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
}

.eocrm-agreement-history__form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.7fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 8px;
}

.eocrm-agreement-history__form + .eocrm-agreement-history__form {
    grid-template-columns: 1fr;
}

.eocrm-agreement-history__form select,
.eocrm-agreement-history__form input[type="date"] {
    min-height: 38px;
    border-radius: 8px;
}

/* Stage update form (sidebar) */
.eocrm-agreement-stage-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eocrm-agreement-stage-form .eocrm-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.eocrm-agreement-stage-form .eocrm-form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #4a5b75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eocrm-agreement-stage-form .eocrm-actions-row {
    margin-top: 4px;
}

/* Side owner card */
.eocrm-agreement-side-owner {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.eocrm-agreement-side-owner__avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff3df, #ffe7c9);
    color: #b8810b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    border: 1px solid var(--eocrm-border);
}

.eocrm-agreement-side-owner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eocrm-agreement-side-owner__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.eocrm-agreement-side-owner__name {
    font-size: 15px;
    font-weight: 700;
    color: #0c1e36;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eocrm-agreement-side-owner__email {
    font-size: 12.5px;
    color: var(--eocrm-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eocrm-agreement-side-owner__email:hover {
    color: var(--eocrm-primary-dark);
    text-decoration: underline;
}

/* Side summary card */
.eocrm-agreement-side-summary__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.eocrm-agreement-side-summary__pct {
    font-size: 32px;
    font-weight: 800;
    color: var(--eocrm-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.eocrm-agreement-side-summary__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--eocrm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eocrm-agreement-side-summary__track {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
    margin-top: 4px;
}

.eocrm-agreement-side-summary__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a 0%, #1d6ad6 100%);
    transition: width 0.4s ease;
}

.eocrm-agreement-side-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eocrm-agreement-side-summary__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f8;
    font-size: 13.5px;
}

.eocrm-agreement-side-summary__list li:last-child {
    border-bottom: 0;
}

.eocrm-agreement-side-summary__list li span {
    color: var(--eocrm-muted);
}

.eocrm-agreement-side-summary__list li strong {
    color: #0c1e36;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-agreement-client-card,
    .eocrm-agreement-property-card,
    .eocrm-agreement-property-card__thumb img,
    .eocrm-agreement-side-summary__fill {
        transition: none !important;
    }
    .eocrm-agreement-client-card:hover,
    .eocrm-agreement-property-card:hover {
        transform: none !important;
    }
    .eocrm-agreement-property-card:hover .eocrm-agreement-property-card__thumb img {
        transform: none !important;
    }
}

/* ============================================================
   v1.1689 — Modern clients (listing + profile)
   Reuses .eocrm-prop-* base; adds client-specific avatar thumb,
   client-type pill, hero with avatar, agreement cards.
   ============================================================ */

/* Listing — avatar/initial thumbnail */
.eocrm-prop-thumb--client {
    background: linear-gradient(135deg, var(--eocrm-primary-soft) 0%, #e7e1fe 100%);
    color: var(--eocrm-primary-dark);
}

.eocrm-prop-thumb--client.is-company {
    background: linear-gradient(135deg, #e8f7ee 0%, #d4f0dd 100%);
    color: #15803d;
}

.eocrm-prop-thumb--client svg {
    width: 22px;
    height: 22px;
}

.eocrm-prop-thumb__initial {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

/* Client type pill in listing status column */
.eocrm-prop-client-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.eocrm-prop-client-type-pill.is-individual {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: #c8dbf2;
}

.eocrm-prop-client-type-pill.is-company {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

/* Listing contact column: stack tel/email links */
.eocrm-client-list .eocrm-prop-cell-loc .eocrm-prop-loc-primary--link {
    display: block;
    text-decoration: none;
    font-size: 13.5px;
}

.eocrm-client-list .eocrm-prop-cell-loc .eocrm-prop-loc-secondary {
    display: block;
    font-size: 12.5px;
    margin-top: 2px;
}

/* Hero — wrap avatar + identity */
.eocrm-client-hero {
    grid-template-columns: minmax(0, 1fr) auto;
}

.eocrm-client-hero__identity {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.eocrm-client-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--eocrm-primary-soft) 0%, #e7e1fe 100%);
    color: var(--eocrm-primary-dark);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 31, 54, 0.12);
}

.eocrm-client-hero__avatar.is-company {
    background: linear-gradient(135deg, #e8f7ee 0%, #d4f0dd 100%);
    color: #15803d;
}

.eocrm-client-hero__initial {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.eocrm-prop-status-pill.is-company {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border: 1px solid #b8e6c9;
}

.eocrm-prop-status-pill.is-individual {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border: 1px solid #c8dbf2;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-company,
.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-individual {
    border: 1px solid currentColor;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-company {
    background: var(--eocrm-success-soft);
    color: #145e36;
    border-color: #b8e6c9;
}

.eocrm-prop-profile-hero__title .eocrm-prop-status-pill.is-individual {
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    border-color: #c8dbf2;
}

/* Make hero meta links visible */
.eocrm-prop-profile-hero__meta a {
    color: var(--eocrm-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.eocrm-prop-profile-hero__meta a:hover {
    color: var(--eocrm-primary);
    text-decoration: underline;
}

/* Address grid (2 cards) */
.eocrm-client-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.eocrm-client-address-card {
    padding: 14px 16px;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eocrm-client-address-card__label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eocrm-muted);
}

.eocrm-client-address-card__value {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #16294a;
    line-height: 1.5;
}

/* Agreements grid (cards) */
.eocrm-client-agreement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.eocrm-client-agreement-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    background: #ffffff;
    color: var(--eocrm-text);
    text-decoration: none;
    box-shadow: var(--eocrm-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.eocrm-client-agreement-card:hover {
    transform: translateY(-2px);
    border-color: var(--eocrm-primary);
    box-shadow: var(--eocrm-shadow);
    color: var(--eocrm-text);
}

.eocrm-client-agreement-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3df 0%, #ffe7c9 100%);
    color: #b8810b;
}

.eocrm-client-agreement-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eocrm-client-agreement-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.eocrm-client-agreement-card__number {
    font-size: 14.5px;
    font-weight: 700;
    color: #0c1e36;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eocrm-client-agreement-card:hover .eocrm-client-agreement-card__number {
    color: var(--eocrm-primary);
}

.eocrm-client-agreement-card__tx {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eocrm-client-agreement-card__date {
    font-size: 12px;
    color: var(--eocrm-muted);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
    .eocrm-client-hero__identity {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .eocrm-client-hero__avatar {
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-client-agreement-card {
        transition: none !important;
    }
    .eocrm-client-agreement-card:hover {
        transform: none !important;
    }
}

/* ============================================================
   v1.1690 — Modern CRUD forms
   Targets create/edit forms for properties / searches /
   agreements / clients via parent :has() — no template changes.
   ============================================================ */

.eocrm-card:has(> form[data-eocrm-property-form]),
.eocrm-card:has(> form[data-eocrm-search-form]),
.eocrm-card:has(> form[data-eocrm-agreement-form]),
.eocrm-card:has(> form[data-eocrm-client-form]) {
    border-radius: var(--eocrm-radius-lg);
    border-color: var(--eocrm-border);
    box-shadow: var(--eocrm-shadow);
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 14px;
}

/* Card title (h3) becomes a hero-style header */
.eocrm-card:has(> form[data-eocrm-property-form]) > h3,
.eocrm-card:has(> form[data-eocrm-search-form]) > h3,
.eocrm-card:has(> form[data-eocrm-agreement-form]) > h3,
.eocrm-card:has(> form[data-eocrm-client-form]) > h3 {
    margin: 0;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 800;
    color: #0c1e36;
    letter-spacing: -0.01em;
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 76, 245, 0.08), transparent 38%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
    border-bottom: 1px solid var(--eocrm-border);
    position: relative;
}

.eocrm-card:has(> form[data-eocrm-property-form]) > h3::before,
.eocrm-card:has(> form[data-eocrm-search-form]) > h3::before,
.eocrm-card:has(> form[data-eocrm-agreement-form]) > h3::before,
.eocrm-card:has(> form[data-eocrm-client-form]) > h3::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2f80d1 100%);
}

/* The form itself gets internal padding */
.eocrm-card > form[data-eocrm-property-form],
.eocrm-card > form[data-eocrm-search-form],
.eocrm-card > form[data-eocrm-agreement-form],
.eocrm-card > form[data-eocrm-client-form] {
    padding: 22px;
    display: block;
}

/* Section headings (h4) — accent line + uppercase */
.eocrm-card > form[data-eocrm-property-form] h4,
.eocrm-card > form[data-eocrm-search-form] h4,
.eocrm-card > form[data-eocrm-agreement-form] h4,
.eocrm-card > form[data-eocrm-client-form] h4 {
    margin: 22px 0 12px;
    padding: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eocrm-primary-dark);
    border-bottom: 2px solid var(--eocrm-primary-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eocrm-card > form[data-eocrm-property-form] h4:first-of-type,
.eocrm-card > form[data-eocrm-search-form] h4:first-of-type,
.eocrm-card > form[data-eocrm-agreement-form] h4:first-of-type,
.eocrm-card > form[data-eocrm-client-form] h4:first-of-type {
    margin-top: 4px;
}

.eocrm-card > form[data-eocrm-property-form] h4::before,
.eocrm-card > form[data-eocrm-search-form] h4::before,
.eocrm-card > form[data-eocrm-agreement-form] h4::before,
.eocrm-card > form[data-eocrm-client-form] h4::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--eocrm-primary) 0%, #2f80d1 100%);
    flex-shrink: 0;
}

/* Form grid spacing */
.eocrm-card > form[data-eocrm-property-form] .eocrm-form-grid,
.eocrm-card > form[data-eocrm-search-form] .eocrm-form-grid,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-form-grid,
.eocrm-card > form[data-eocrm-client-form] .eocrm-form-grid {
    gap: 16px;
    margin-bottom: 14px;
}

/* Field labels — refined */
.eocrm-card > form[data-eocrm-property-form] .eocrm-form-field > label,
.eocrm-card > form[data-eocrm-search-form] .eocrm-form-field > label,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-form-field > label,
.eocrm-card > form[data-eocrm-client-form] .eocrm-form-field > label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4a5b75;
    line-height: 1.3;
    margin-bottom: 4px;
}

.eocrm-card > form[data-eocrm-property-form] .eocrm-form-field,
.eocrm-card > form[data-eocrm-search-form] .eocrm-form-field,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-form-field,
.eocrm-card > form[data-eocrm-client-form] .eocrm-form-field {
    gap: 4px;
    margin-bottom: 0;
}

/* Inputs already styled globally — add subtle hover-friendly feel */
.eocrm-card > form[data-eocrm-property-form] input[readonly],
.eocrm-card > form[data-eocrm-search-form] input[readonly],
.eocrm-card > form[data-eocrm-agreement-form] input[readonly],
.eocrm-card > form[data-eocrm-client-form] input[readonly] {
    background: #f7f9fc !important;
    color: #5d6d85 !important;
    cursor: default;
}

/* Checkbox/radio fields — pretty toggles */
.eocrm-card > form[data-eocrm-property-form] .eocrm-form-field-checkbox,
.eocrm-card > form[data-eocrm-search-form] .eocrm-form-field-checkbox,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-form-field-checkbox,
.eocrm-card > form[data-eocrm-client-form] .eocrm-form-field-checkbox {
    margin: 8px 0;
}

/* Submit area — separator line + sticky-feel */
.eocrm-card > form[data-eocrm-property-form] > p:last-of-type,
.eocrm-card > form[data-eocrm-search-form] > p:last-of-type,
.eocrm-card > form[data-eocrm-agreement-form] > p:last-of-type,
.eocrm-card > form[data-eocrm-client-form] > p:last-of-type {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--eocrm-border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Make primary submit button bigger / more prominent */
.eocrm-card > form[data-eocrm-property-form] > p:last-of-type .eocrm-btn-primary,
.eocrm-card > form[data-eocrm-search-form] > p:last-of-type .eocrm-btn-primary,
.eocrm-card > form[data-eocrm-agreement-form] > p:last-of-type .eocrm-btn-primary,
.eocrm-card > form[data-eocrm-client-form] > p:last-of-type .eocrm-btn-primary {
    min-height: 44px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(29, 106, 214, 0.24);
}

/* Inline checkboxes inside form — slightly tighter vertical rhythm */
.eocrm-card > form[data-eocrm-property-form] .eocrm-checkbox-list,
.eocrm-card > form[data-eocrm-search-form] .eocrm-checkbox-list,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-checkbox-list,
.eocrm-card > form[data-eocrm-client-form] .eocrm-checkbox-list {
    gap: 8px;
    margin-bottom: 14px;
}

/* Tag-toggle grid spacing */
.eocrm-card > form[data-eocrm-property-form] .eocrm-tag-toggle-grid,
.eocrm-card > form[data-eocrm-search-form] .eocrm-tag-toggle-grid,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-tag-toggle-grid,
.eocrm-card > form[data-eocrm-client-form] .eocrm-tag-toggle-grid {
    margin: 8px 0 16px;
}

/* Helper paragraphs (e.g. "Wybierz co najmniej jednego klienta...") */
.eocrm-card > form[data-eocrm-property-form] > p:not(.eocrm-form-field):not(.eocrm-form-field-checkbox):not(.eocrm-actions-row),
.eocrm-card > form[data-eocrm-search-form] > p:not(.eocrm-form-field):not(.eocrm-form-field-checkbox):not(.eocrm-actions-row),
.eocrm-card > form[data-eocrm-agreement-form] > p:not(.eocrm-form-field):not(.eocrm-form-field-checkbox):not(.eocrm-actions-row),
.eocrm-card > form[data-eocrm-client-form] > p:not(.eocrm-form-field):not(.eocrm-form-field-checkbox):not(.eocrm-actions-row) {
    margin: 8px 0 14px;
    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid var(--eocrm-border);
    border-left: 3px solid var(--eocrm-primary);
    border-radius: 8px;
    color: #4a5b75;
    font-size: 13px;
    line-height: 1.5;
}

/* Nested clients-add-new card — visual grouping */
.eocrm-card > form[data-eocrm-agreement-form] > .eocrm-card.eocrm-agreement-new-client-wrap,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-card.eocrm-agreement-new-client-wrap {
    margin: 12px 0 16px;
    padding: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
    border: 1px solid #c8dbf2;
    border-radius: var(--eocrm-radius);
    box-shadow: none;
}

.eocrm-card > form[data-eocrm-agreement-form] > .eocrm-card.eocrm-agreement-new-client-wrap > h4:first-child,
.eocrm-card > form[data-eocrm-agreement-form] .eocrm-card.eocrm-agreement-new-client-wrap > h4:first-child {
    margin-top: 0;
}

/* Make agreement client-search input feel like a search box */
.eocrm-card > form[data-eocrm-agreement-form] input[data-eocrm-agreement-client-search] {
    min-height: 44px !important;
    border-radius: 10px !important;
}

.eocrm-search-property-types {
    margin: 6px 0 0;
}

.eocrm-additional-new-clients {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.eocrm-agreement-additional-client {
    margin: 0 !important;
    padding: 14px !important;
    border: 1px dashed #9ebce4 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.eocrm-inline-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.eocrm-inline-section-head h4 {
    margin: 0;
}

/* Mobile tweaks */
@media (max-width: 760px) {
    .eocrm-card:has(> form[data-eocrm-property-form]) > h3,
    .eocrm-card:has(> form[data-eocrm-search-form]) > h3,
    .eocrm-card:has(> form[data-eocrm-agreement-form]) > h3,
    .eocrm-card:has(> form[data-eocrm-client-form]) > h3 {
        padding: 14px 16px;
        font-size: 16px;
    }

    .eocrm-card > form[data-eocrm-property-form],
    .eocrm-card > form[data-eocrm-search-form],
    .eocrm-card > form[data-eocrm-agreement-form],
    .eocrm-card > form[data-eocrm-client-form] {
        padding: 16px;
    }
}

/* Frontend CRM: offices and agents management */
.eocrm-team-admin {
    display: grid;
    gap: 18px;
}

.eocrm-team-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(15, 68, 130, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 58%, #edf9f5 100%);
    box-shadow: 0 18px 42px rgba(15, 40, 74, 0.08);
}

.eocrm-team-admin-eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: #0b64bd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eocrm-team-admin-hero h3 {
    margin: 0 0 5px;
    color: #10243d;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.eocrm-team-admin-hero p {
    margin: 0;
    max-width: 720px;
    color: #536982;
    font-size: 14px;
    line-height: 1.55;
}

.eocrm-team-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.eocrm-team-admin-list {
    display: grid;
    gap: 14px;
}

.eocrm-team-admin-card,
.eocrm-team-admin-panel {
    border: 1px solid rgba(15, 68, 130, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(15, 40, 74, 0.07);
}

.eocrm-team-admin-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    align-items: center;
}

.eocrm-team-admin-card--agent {
    grid-template-columns: 112px minmax(0, 1fr);
}

.eocrm-team-admin-card__media {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e9f3ff, #f7fbff);
    color: #0b64bd;
    font-weight: 900;
}

.eocrm-team-admin-card__media--office {
    width: 106px;
    height: 82px;
    border-radius: 18px;
}

.eocrm-team-admin-card__media--agent {
    width: 104px;
    height: 104px;
    border-radius: 24px;
}

.eocrm-team-admin-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eocrm-team-admin-card__media--office img {
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.eocrm-team-admin-card__media span {
    font-size: 34px;
}

.eocrm-team-admin-card__body {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.eocrm-team-admin-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.eocrm-team-admin-card h4 {
    margin: 0 0 4px;
    color: #10243d;
    font-size: 19px;
    line-height: 1.2;
}

.eocrm-team-admin-card p {
    margin: 0;
    color: #58708b;
    font-size: 13px;
}

.eocrm-team-admin-card__edit {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: #f4f9ff;
    color: #0b5cad;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.eocrm-team-admin-card__edit:hover {
    background: #0b5cad;
    color: #fff;
}

.eocrm-team-admin-meta,
.eocrm-team-admin-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.eocrm-team-admin-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f6f9fd;
    color: #526982;
    font-size: 12px;
    line-height: 1.2;
}

.eocrm-team-admin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: #40536a;
    font-size: 12px;
    font-weight: 800;
}

.eocrm-team-admin-pill.is-ok {
    background: #e8f7ed;
    color: #14743b;
}

.eocrm-team-admin-pill.is-muted {
    background: #f4f6f8;
    color: #7b8795;
}

.eocrm-team-admin-panel {
    position: sticky;
    top: 20px;
    padding: 18px;
}

.eocrm-team-admin-panel h3 {
    margin: 0 0 14px;
    color: #10243d;
    font-size: 21px;
}

.eocrm-team-admin-form {
    display: grid;
    gap: 12px;
}

.eocrm-team-admin-form label {
    display: grid;
    gap: 6px;
    color: #20344f;
    font-size: 12px;
    font-weight: 800;
}

.eocrm-team-admin-form input,
.eocrm-team-admin-form select,
.eocrm-team-admin-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccdaea;
    border-radius: 12px;
    background: #fff;
    color: #10243d;
    font-size: 14px;
    font-weight: 500;
}

.eocrm-team-admin-form textarea {
    min-height: 104px;
    resize: vertical;
}

.eocrm-team-admin-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.eocrm-team-media-button {
    justify-self: start;
}

.eocrm-team-admin-preview {
    min-height: 0;
}

.eocrm-team-admin-preview img {
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid #d8e5f4;
    object-fit: contain;
    background: #fff;
}

.eocrm-team-admin-preview--avatar img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 24px;
}

.eocrm-team-admin-switches,
.eocrm-team-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.eocrm-team-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eocrm-team-toggle span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: #fff;
    color: #50647c;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.eocrm-team-toggle input:checked + span {
    border-color: #0b64bd;
    background: #eaf4ff;
    color: #0b5cad;
    box-shadow: inset 0 0 0 1px rgba(11, 100, 189, 0.12);
}

.eocrm-team-admin-static {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f9fd;
    color: #40536a;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .eocrm-team-admin-layout {
        grid-template-columns: 1fr;
    }

    .eocrm-team-admin-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .eocrm-team-admin-hero,
    .eocrm-team-admin-card__top,
    .eocrm-team-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .eocrm-team-admin-card,
    .eocrm-team-admin-card--agent {
        grid-template-columns: 1fr;
    }

    .eocrm-team-admin-card__media--agent,
    .eocrm-team-admin-card__media--office {
        width: 100%;
        max-width: 260px;
        justify-self: center;
    }

    .eocrm-team-admin-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CRM Notifications module ===== */
.eocrm-notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.eocrm-notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d3dce6;
    border-radius: 999px;
    background: #ffffff;
    color: #1f3a64;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.eocrm-notif-bell:hover,
.eocrm-notif-bell[aria-expanded="true"] {
    border-color: #6588c4;
    box-shadow: 0 4px 12px rgba(20, 58, 122, 0.12);
}

.eocrm-notif-bell-icon {
    font-size: 18px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eocrm-bell-svg {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.eocrm-bell-svg--minimal {
    display: none;
}

/* Modern bell: subtle accent color + soft shadow on hover */
.eocrm-bell-svg--modern {
    color: #1f3a64;
    filter: drop-shadow(0 1px 1px rgba(20, 58, 122, 0.18));
}

.eocrm-notif-bell:hover .eocrm-bell-svg--modern,
.eocrm-notif-bell[aria-expanded="true"] .eocrm-bell-svg--modern {
    color: #2378e0;
}

.eocrm-notif-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d83d3d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.eocrm-notif-bell-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: 480px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(20, 58, 122, 0.12);
    z-index: 60;
}

.eocrm-notif-bell-dropdown[hidden] {
    display: none;
}

.eocrm-notif-bell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    color: #1f3a64;
}

.eocrm-notif-bell-header a {
    font-size: 12px;
    color: #2c5fb1;
    text-decoration: none;
}

.eocrm-notif-bell-header a:hover {
    text-decoration: underline;
}

.eocrm-notif-empty {
    padding: 18px 16px;
    margin: 0;
    color: #4b5a72;
    font-size: 14px;
}

.eocrm-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eocrm-notif-list--full {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.eocrm-notif-item {
    border-bottom: 1px solid #eef2f7;
}

.eocrm-notif-item:last-child {
    border-bottom: 0;
}

.eocrm-notif-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

a.eocrm-notif-link:hover,
a.eocrm-notif-link:focus {
    background: #f3f7fd;
}

.eocrm-notif-emoji {
    flex: 0 0 24px;
    font-size: 18px;
    line-height: 1.2;
}

.eocrm-notif-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eocrm-notif-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #1f3a64;
    line-height: 1.3;
}

.eocrm-notif-message {
    font-size: 12.5px;
    color: #4b5a72;
    line-height: 1.4;
}

.eocrm-dash-panel--notifications {
    margin-bottom: 18px;
}

.eocrm-dash-panel--notifications .eocrm-notif-list {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    overflow: hidden;
}

.eocrm-notifications-card .eocrm-card-hint {
    color: #4b5a72;
    font-size: 13px;
    margin: 6px 0 14px;
}

.eocrm-notif-item--client_birthday .eocrm-notif-emoji { color: #d8467c; }
.eocrm-notif-item--rodo_retention .eocrm-notif-emoji { color: #b8742a; }
.eocrm-notif-item--search_match   .eocrm-notif-emoji { color: #2c5fb1; }
.eocrm-notif-item--agreement_anniversary .eocrm-notif-emoji { color: #4b8b3b; }
.eocrm-notif-item--agreement_ending .eocrm-notif-emoji { color: #c14b3c; }

/* ===== Notifications: read state + mark-all ===== */
.eocrm-notif-bell-badge[hidden] {
    display: none !important;
}

.eocrm-notif-bell-header-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eocrm-notif-mark-read {
    background: transparent;
    border: 0;
    padding: 0;
    color: #2c5fb1;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.eocrm-notif-mark-read[hidden] {
    display: none !important;
}

.eocrm-notif-mark-read:hover {
    color: #1b3f7e;
}

.eocrm-notif-item.is-read .eocrm-notif-link {
    background: #fafbfd;
}

.eocrm-notif-item.is-read .eocrm-notif-title {
    color: #6b7a92;
    font-weight: 500;
}

.eocrm-notif-item.is-read .eocrm-notif-message {
    color: #8896ab;
}

.eocrm-notif-item.is-read .eocrm-notif-emoji {
    opacity: .55;
}

/* ===== Public offer templates v7-v11 ===== */
.eocrm-modern-offer-template {
    --eocrm-modern-navy: #071d36;
    --eocrm-modern-ink: #10223d;
    --eocrm-modern-muted: #68758a;
    --eocrm-modern-green: #2f8f3d;
    --eocrm-modern-gold: #b98b43;
    --eocrm-modern-line: #dfe6ef;
    --eocrm-modern-soft: #f6f8fb;
    background: #f7f9fc;
    border-radius: 18px;
    color: var(--eocrm-modern-ink);
    padding: 22px;
}

.eocrm-modern-offer-template *,
.eocrm-modern-offer-template *::before,
.eocrm-modern-offer-template *::after {
    box-sizing: border-box;
}

.eocrm-modern-shell {
    max-width: 1320px;
    margin: 0 auto 22px;
}

.eocrm-modern-title-block h1,
.eocrm-v8-hero-content h1,
.eocrm-v9-header h1,
.eocrm-v10-hero-copy h1,
.eocrm-v11-intro h1 {
    margin: 8px 0 10px;
    color: var(--eocrm-modern-navy);
    font-size: 38px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.eocrm-modern-kicker,
.eocrm-modern-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(47, 143, 61, 0.12);
    color: #267934;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    text-transform: uppercase;
}

.eocrm-modern-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--eocrm-modern-muted);
    font-size: 15px;
    line-height: 1.4;
}

.eocrm-modern-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.eocrm-modern-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.eocrm-modern-card {
    min-width: 0;
    border: 1px solid var(--eocrm-modern-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 34, 61, 0.07);
    padding: 22px;
}

.eocrm-modern-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--eocrm-modern-navy);
    font-size: 20px;
    line-height: 1.25;
}

.eocrm-modern-card h4 {
    margin: 0 0 4px;
    color: var(--eocrm-modern-navy);
    font-size: 18px;
    line-height: 1.25;
}

.eocrm-modern-card p {
    color: var(--eocrm-modern-muted);
}

.eocrm-modern-card-tight {
    padding: 18px;
}

.eocrm-modern-grid {
    display: grid;
    gap: 18px;
}

.eocrm-modern-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.eocrm-modern-definition-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.eocrm-modern-definition-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    padding: 9px 0;
}

.eocrm-modern-definition-list > div:last-child {
    border-bottom: 0;
}

.eocrm-modern-definition-list dt {
    color: var(--eocrm-modern-muted);
    font-size: 14px;
}

.eocrm-modern-definition-list dd {
    margin: 0;
    color: var(--eocrm-modern-ink);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.eocrm-modern-icon-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eocrm-modern-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--eocrm-modern-ink);
    font-size: 14px;
    line-height: 1.35;
}

.eocrm-modern-icon-list .eocrm-modern-icon {
    width: 18px;
    height: 18px;
    color: var(--eocrm-modern-green);
}

.eocrm-modern-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.eocrm-modern-fact {
    min-width: 0;
    border: 1px solid var(--eocrm-modern-line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.eocrm-modern-fact .eocrm-modern-icon {
    color: var(--eocrm-modern-green);
    margin-bottom: 8px;
}

.eocrm-modern-fact-value,
.eocrm-modern-fact-label {
    display: block;
    overflow-wrap: anywhere;
}

.eocrm-modern-fact-value {
    color: var(--eocrm-modern-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.eocrm-modern-fact-label {
    margin-top: 4px;
    color: var(--eocrm-modern-muted);
    font-size: 12px;
    line-height: 1.25;
}

.eocrm-modern-gallery {
    position: relative;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.eocrm-modern-gallery-main {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #e7ecf3;
}

.eocrm-modern-gallery-main .eocrm-gallery-track,
.eocrm-modern-gallery-main .eocrm-gallery-slide {
    height: 100%;
}

.eocrm-modern-gallery-main .eocrm-gallery-slide::before {
    content: "";
    display: block;
    padding-top: 60%;
}

.eocrm-modern-gallery-main .eocrm-gallery-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.eocrm-modern-gallery .eocrm-gallery-nav {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--eocrm-modern-navy);
    box-shadow: 0 10px 24px rgba(16, 34, 61, 0.18);
}

.eocrm-modern-gallery .eocrm-gallery-nav .eocrm-modern-icon {
    display: none;
}

.eocrm-modern-gallery .eocrm-gallery-prev::before,
.eocrm-modern-gallery .eocrm-gallery-next::before {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.eocrm-modern-gallery .eocrm-gallery-prev::before {
    content: "<";
}

.eocrm-modern-gallery .eocrm-gallery-next::before {
    content: ">";
}

.eocrm-modern-gallery-counter {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--eocrm-modern-navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 10px 13px;
}

.eocrm-modern-ribbons {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eocrm-modern-ribbon {
    border-radius: 999px;
    background: rgba(7, 29, 54, 0.86);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.eocrm-modern-ribbon-premium {
    background: var(--eocrm-modern-gold);
}

.eocrm-modern-ribbon-new,
.eocrm-modern-ribbon-mls {
    background: var(--eocrm-modern-green);
}

.eocrm-modern-gallery-thumbs {
    display: grid;
    gap: 10px;
}

.eocrm-modern-gallery-thumb {
    position: relative;
    min-width: 0;
    height: 100%;
    min-height: 88px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #dce3ec;
    cursor: pointer;
    padding: 0;
}

.eocrm-modern-gallery-thumb.is-active {
    border-color: var(--eocrm-modern-green);
}

.eocrm-modern-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eocrm-modern-gallery-thumb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 29, 54, 0.78);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.eocrm-modern-agent {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.eocrm-modern-agent-photo {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    object-fit: cover;
    background: #e5eaf1;
}

.eocrm-modern-agent-placeholder {
    display: grid;
    place-items: center;
    color: var(--eocrm-modern-navy);
    font-size: 30px;
    font-weight: 800;
}

.eocrm-modern-agent p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 0;
    font-size: 14px;
}

.eocrm-modern-agent a {
    color: var(--eocrm-modern-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.eocrm-modern-agent-bio {
    margin-top: 14px;
}

.eocrm-modern-contact-card .eocrm-offer-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eocrm-modern-contact-card .eocrm-form-field {
    margin: 0;
}

.eocrm-modern-contact-card .eocrm-offer-contact-field-message,
.eocrm-modern-contact-card .eocrm-offer-contact-actions {
    grid-column: 1 / -1;
}

.eocrm-modern-price-card {
    display: grid;
    gap: 12px;
}

.eocrm-modern-price {
    margin: 0;
    color: var(--eocrm-modern-navy);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
}

.eocrm-modern-price-sub {
    margin: -6px 0 4px;
    color: var(--eocrm-modern-muted);
    font-weight: 700;
}

.eocrm-v7-layout,
.eocrm-v9-layout,
.eocrm-v10-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 22px;
    align-items: start;
}

.eocrm-v7-side,
.eocrm-v9-side,
.eocrm-v10-layout > aside {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.eocrm-modern-gallery-split {
    grid-template-columns: minmax(0, 1fr) 184px;
}

.eocrm-modern-gallery-split .eocrm-modern-gallery-thumbs {
    grid-template-rows: repeat(4, minmax(92px, 1fr));
}

.eocrm-modern-facts-pills {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.eocrm-v7-media-card,
.eocrm-v7-description-card {
    margin-top: 18px;
}

.eocrm-modern-shell-v8 {
    background: #fff;
}

.eocrm-v8-hero,
.eocrm-v10-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--eocrm-modern-navy);
}

.eocrm-v8-hero .eocrm-modern-gallery,
.eocrm-v10-hero .eocrm-modern-gallery,
.eocrm-modern-gallery-hero,
.eocrm-modern-gallery-cinematic {
    position: absolute;
    inset: 0;
}

.eocrm-v8-hero .eocrm-modern-gallery-main,
.eocrm-v10-hero .eocrm-modern-gallery-main,
.eocrm-modern-gallery-hero .eocrm-modern-gallery-main,
.eocrm-modern-gallery-cinematic .eocrm-modern-gallery-main {
    height: 100%;
    border-radius: 0;
}

.eocrm-v8-hero .eocrm-modern-gallery-main::after,
.eocrm-v10-hero .eocrm-modern-gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(7, 29, 54, 0.82), rgba(7, 29, 54, 0.25) 55%, rgba(7, 29, 54, 0.62));
    pointer-events: none;
}

.eocrm-v8-hero-content,
.eocrm-v10-hero-copy {
    position: relative;
    z-index: 5;
    width: min(100%, 660px);
    padding: 70px 64px;
    color: #fff;
}

.eocrm-v8-hero-content h1,
.eocrm-v10-hero-copy h1 {
    color: #fff;
    font-size: 56px;
}

.eocrm-v8-hero-content p,
.eocrm-v10-hero-copy p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.55;
}

.eocrm-v8-hero-content strong {
    display: block;
    margin-top: 34px;
    color: #fff;
    font-size: 38px;
    line-height: 1.1;
}

.eocrm-v8-hero-content span,
.eocrm-v10-hero-copy .eocrm-modern-status {
    color: #f0d4a8;
}

.eocrm-v8-facts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 14px 18px;
    background: var(--eocrm-modern-navy);
}

.eocrm-v8-facts .eocrm-modern-fact {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.eocrm-v8-facts .eocrm-modern-fact-value {
    color: #fff;
}

.eocrm-v8-facts .eocrm-modern-fact-label,
.eocrm-v8-facts .eocrm-modern-icon {
    color: #d4b27a;
}

.eocrm-v8-editorial {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 32px;
    padding: 34px 0 0;
}

.eocrm-v8-strip,
.eocrm-v10-gallery-strip > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
}

.eocrm-v8-strip-photo,
.eocrm-v10-gallery-strip button {
    height: 150px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #e3e8ef;
    cursor: pointer;
    padding: 0;
}

.eocrm-v8-strip-photo img,
.eocrm-v10-gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eocrm-v9-header,
.eocrm-v11-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.eocrm-v9-price,
.eocrm-v11-price {
    min-width: 240px;
    text-align: right;
}

.eocrm-v9-price strong,
.eocrm-v11-price strong,
.eocrm-v10-price-card strong {
    display: block;
    color: var(--eocrm-modern-navy);
    font-size: 38px;
    line-height: 1.1;
}

.eocrm-v9-price span,
.eocrm-v11-price span,
.eocrm-v10-price-card span {
    display: block;
    margin-top: 4px;
    color: var(--eocrm-modern-muted);
    font-weight: 700;
}

.eocrm-modern-gallery-dashboard .eocrm-modern-gallery-main .eocrm-gallery-slide::before,
.eocrm-modern-gallery-rounded .eocrm-modern-gallery-main .eocrm-gallery-slide::before {
    padding-top: 56%;
}

.eocrm-modern-gallery-dashboard .eocrm-modern-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.eocrm-v9-facts {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.eocrm-modern-map-card {
    overflow: hidden;
}

.eocrm-modern-map-frame {
    height: 220px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f8;
}

.eocrm-modern-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.eocrm-modern-map-visual {
    display: grid;
    place-items: center;
    min-height: 190px;
    margin-bottom: 14px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(47, 143, 61, 0.18), rgba(7, 29, 54, 0.08)),
        repeating-linear-gradient(45deg, #eef3f8 0 16px, #f8fbfd 16px 32px);
    color: var(--eocrm-modern-navy);
    font-weight: 900;
    text-transform: uppercase;
}

.eocrm-v10-hero {
    min-height: 480px;
    margin-bottom: 22px;
}

.eocrm-v10-hero-copy {
    padding-top: 86px;
}

.eocrm-v10-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 26px;
}

.eocrm-v10-facts .eocrm-modern-fact {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(7, 29, 54, 0.38);
}

.eocrm-v10-facts .eocrm-modern-fact-value {
    color: #fff;
}

.eocrm-v10-facts .eocrm-modern-fact-label,
.eocrm-v10-facts .eocrm-modern-icon {
    color: #dce9d7;
}

.eocrm-v10-price-card {
    position: absolute;
    right: 54px;
    bottom: 54px;
    z-index: 5;
    width: 290px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(7, 29, 54, 0.25);
    padding: 26px;
}

.eocrm-v10-price-card .eocrm-btn {
    width: 100%;
    margin-top: 18px;
}

.eocrm-v10-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.eocrm-v10-trust-row span {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--eocrm-modern-line);
    border-radius: 8px;
    background: #fff;
    color: var(--eocrm-modern-ink);
    font-weight: 700;
    padding: 14px 16px;
}

.eocrm-v11-facts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.eocrm-modern-gallery-rounded {
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-bottom: 22px;
}

.eocrm-modern-gallery-rounded .eocrm-modern-gallery-main,
.eocrm-modern-gallery-rounded .eocrm-modern-gallery-thumb {
    border-radius: 18px;
}

.eocrm-modern-gallery-rounded .eocrm-modern-gallery-thumbs {
    grid-template-rows: repeat(3, minmax(120px, 1fr));
}

.eocrm-v11-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.eocrm-v11-card-grid .eocrm-modern-description-card,
.eocrm-v11-card-grid .eocrm-modern-contact-card {
    grid-column: span 2;
}

.eocrm-v11-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(100%, 980px);
    margin: 22px auto 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #5aa342, #2f8f3d);
    box-shadow: 0 18px 44px rgba(47, 143, 61, 0.24);
    color: #fff;
    padding: 18px 24px;
}

.eocrm-v11-bottom-cta > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.eocrm-v11-bottom-cta .eocrm-modern-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
}

.eocrm-v11-bottom-cta span {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.eocrm-v11-bottom-cta small {
    color: rgba(255, 255, 255, 0.86);
}

.eocrm-v11-bottom-cta .eocrm-btn {
    background: var(--eocrm-modern-navy);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.eocrm-v11-contact-panel {
    width: min(100%, 980px);
    margin: 18px auto 0;
}

.eocrm-v11-contact-panel.is-hidden {
    display: none;
}

.eocrm-v11-contact-card {
    width: 100%;
}

@media (max-width: 1180px) {
    .eocrm-v7-layout,
    .eocrm-v9-layout,
    .eocrm-v10-layout,
    .eocrm-v8-editorial {
        grid-template-columns: 1fr;
    }

    .eocrm-v7-side,
    .eocrm-v9-side,
    .eocrm-v10-layout > aside {
        position: static;
    }

    .eocrm-modern-facts,
    .eocrm-modern-facts-pills,
    .eocrm-v8-facts,
    .eocrm-v9-facts,
    .eocrm-v10-facts,
    .eocrm-v11-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eocrm-v11-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .eocrm-modern-offer-template {
        padding: 14px;
    }

    .eocrm-modern-title-block h1,
    .eocrm-v9-header h1,
    .eocrm-v11-intro h1 {
        font-size: 30px;
    }

    .eocrm-v8-hero-content h1,
    .eocrm-v10-hero-copy h1 {
        font-size: 38px;
    }

    .eocrm-modern-grid-two,
    .eocrm-modern-gallery-split,
    .eocrm-modern-gallery-rounded,
    .eocrm-v9-header,
    .eocrm-v11-intro {
        grid-template-columns: 1fr;
    }

    .eocrm-v9-price,
    .eocrm-v11-price {
        min-width: 0;
        text-align: left;
    }

    .eocrm-modern-gallery-split .eocrm-modern-gallery-thumbs,
    .eocrm-modern-gallery-rounded .eocrm-modern-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .eocrm-modern-gallery-thumb {
        min-height: 86px;
    }

    .eocrm-modern-facts,
    .eocrm-modern-facts-pills,
    .eocrm-v8-facts,
    .eocrm-v9-facts,
    .eocrm-v10-facts,
    .eocrm-v11-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eocrm-v8-hero,
    .eocrm-v10-hero {
        min-height: 430px;
    }

    .eocrm-v8-hero-content,
    .eocrm-v10-hero-copy {
        padding: 42px 26px;
    }

    .eocrm-v10-price-card {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 5;
        width: auto;
        margin: -72px 18px 20px;
    }

    .eocrm-v8-strip,
    .eocrm-v10-gallery-strip > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eocrm-v11-bottom-cta {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .eocrm-modern-card {
        padding: 16px;
    }

    .eocrm-modern-title-block h1,
    .eocrm-v9-header h1,
    .eocrm-v11-intro h1 {
        font-size: 25px;
    }

    .eocrm-v8-hero-content h1,
    .eocrm-v10-hero-copy h1 {
        font-size: 31px;
    }

    .eocrm-modern-definition-list > div,
    .eocrm-modern-contact-card .eocrm-offer-contact-form,
    .eocrm-modern-agent,
    .eocrm-v11-card-grid {
        grid-template-columns: 1fr;
    }

    .eocrm-modern-definition-list dd {
        text-align: left;
    }

    .eocrm-modern-icon-list,
    .eocrm-modern-facts,
    .eocrm-modern-facts-pills,
    .eocrm-v8-facts,
    .eocrm-v9-facts,
    .eocrm-v10-facts,
    .eocrm-v11-facts {
        grid-template-columns: 1fr;
    }

    .eocrm-v11-card-grid .eocrm-modern-description-card,
    .eocrm-v11-card-grid .eocrm-modern-contact-card {
        grid-column: auto;
    }

    .eocrm-v8-strip,
    .eocrm-v10-gallery-strip > div,
    .eocrm-modern-gallery-split .eocrm-modern-gallery-thumbs,
    .eocrm-modern-gallery-rounded .eocrm-modern-gallery-thumbs {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   v1.1830 - Estate Office CRM workspace refresh
   Visual system based on the light navy/green product dashboard.
   Scoped to the authenticated CRM so public offer templates stay intact.
   ============================================================ */

.eocrm-wrap[data-section] {
    --eocrm-bg: #f4f7fb;
    --eocrm-card: #ffffff;
    --eocrm-border: #e2e8f1;
    --eocrm-border-strong: #cbd6e5;
    --eocrm-text: #10233f;
    --eocrm-muted: #66758d;
    --eocrm-primary: #092e6f;
    --eocrm-primary-dark: #061f50;
    --eocrm-primary-soft: #edf3ff;
    --eocrm-accent: #49ad4e;
    --eocrm-success: #49ad4e;
    --eocrm-success-soft: #edf8ee;
    --eocrm-radius-sm: 10px;
    --eocrm-radius: 16px;
    --eocrm-radius-lg: 22px;
    --eocrm-shadow-sm: 0 2px 8px rgba(12, 38, 77, 0.045);
    --eocrm-shadow: 0 12px 32px rgba(12, 38, 77, 0.075);
    --eocrm-shadow-lg: 0 22px 52px rgba(12, 38, 77, 0.11);
    --eocrm-focus-ring: 0 0 0 4px rgba(9, 46, 111, 0.14);
    position: relative;
    box-sizing: border-box;
    margin: 18px auto;
    padding: clamp(14px, 2vw, 28px);
    border: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 173, 78, 0.055), transparent 28%),
        linear-gradient(180deg, #fbfcfe 0%, var(--eocrm-bg) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 46px rgba(12, 38, 77, 0.08);
    color: var(--eocrm-text);
}

.eocrm-wrap[data-section]::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 34px;
    left: 34px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--eocrm-primary) 0 78%, var(--eocrm-accent) 78% 100%);
    opacity: 0.95;
}

.eocrm-wrap[data-section] > * {
    position: relative;
    z-index: 1;
}

/* Product header and primary navigation. */
.eocrm-wrap[data-section] .eocrm-header {
    display: flex;
    z-index: 100;
    align-items: center;
    gap: 22px;
    margin: 0 0 12px;
    padding: 14px 18px;
    overflow: visible;
    border: 1px solid rgba(226, 232, 241, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 18px;
}

.eocrm-brand__logo-frame {
    position: relative;
    flex: 0 0 270px;
    width: 270px;
    height: 54px;
    margin: 0 !important;
    overflow: hidden;
}

.eocrm-brand__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 350px;
    max-width: none !important;
    height: auto;
    transform: translate(-50%, -50%);
}

.eocrm-brand__copy {
    min-width: 0;
    padding-left: 18px;
    border-left: 1px solid var(--eocrm-border);
}

.eocrm-brand__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--eocrm-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eocrm-wrap[data-section] .eocrm-brand__copy p {
    max-width: 390px;
    margin: 0;
    color: var(--eocrm-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.eocrm-wrap[data-section] .eocrm-header-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.eocrm-wrap[data-section] .eocrm-header-primary-action {
    min-height: 44px;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid var(--eocrm-primary);
    border-radius: 999px;
    background: linear-gradient(135deg, #0c377f 0%, var(--eocrm-primary) 100%);
    box-shadow: 0 10px 22px rgba(9, 46, 111, 0.2);
    font-weight: 750;
}

.eocrm-header-primary-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.eocrm-wrap[data-section] .eocrm-header-primary-action:hover {
    border-color: var(--eocrm-primary-dark);
    background: linear-gradient(135deg, var(--eocrm-primary) 0%, var(--eocrm-primary-dark) 100%);
    box-shadow: 0 13px 28px rgba(9, 46, 111, 0.27);
}

.eocrm-wrap[data-section] .eocrm-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 0 12px;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(226, 232, 241, 0.94);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--eocrm-shadow-sm);
    scrollbar-width: thin;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.eocrm-wrap[data-section] .eocrm-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #54627a;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 50px;
}

.eocrm-wrap[data-section] .eocrm-tab::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--eocrm-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.eocrm-wrap[data-section] .eocrm-tab:hover {
    border: 0;
    background: #f7f9fc;
    color: var(--eocrm-primary);
}

.eocrm-wrap[data-section] .eocrm-tab.is-active {
    border: 0;
    background: transparent;
    color: var(--eocrm-primary);
    box-shadow: none;
    font-weight: 800;
}

.eocrm-wrap[data-section] .eocrm-tab.is-active::after {
    transform: scaleX(1);
}

.eocrm-wrap[data-section] .eocrm-tab:focus-visible,
.eocrm-wrap[data-section] .eocrm-dash-quick:focus-visible,
.eocrm-wrap[data-section] .eocrm-dash-kpi:focus-visible,
.eocrm-wrap[data-section] .eocrm-dash-panel__more:focus-visible {
    outline: 3px solid rgba(9, 46, 111, 0.2);
    outline-offset: -3px;
}

/* Shared panel elements beyond the dashboard. */
.eocrm-wrap[data-section] .eocrm-card {
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid var(--eocrm-border);
    border-radius: var(--eocrm-radius);
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section] .eocrm-card:hover {
    border-color: #d7dfeb;
    box-shadow: var(--eocrm-shadow);
    transform: none;
}

.eocrm-wrap[data-section] .eocrm-actions-row {
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--eocrm-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section] .eocrm-btn {
    min-height: 42px;
    padding: 9px 15px;
    border-color: var(--eocrm-border-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--eocrm-primary);
    box-shadow: none;
    font-weight: 700;
}

.eocrm-wrap[data-section] .eocrm-btn:hover {
    border-color: var(--eocrm-primary);
    background: var(--eocrm-primary-soft);
    color: var(--eocrm-primary);
    box-shadow: none;
}

.eocrm-wrap[data-section] .eocrm-btn-primary {
    border-color: var(--eocrm-primary);
    background: linear-gradient(135deg, #0c377f 0%, var(--eocrm-primary) 100%);
    color: #ffffff;
    box-shadow: 0 7px 17px rgba(9, 46, 111, 0.17);
}

.eocrm-wrap[data-section] .eocrm-btn-primary:hover {
    border-color: var(--eocrm-primary-dark);
    background: linear-gradient(135deg, var(--eocrm-primary) 0%, var(--eocrm-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(9, 46, 111, 0.23);
}

.eocrm-wrap[data-section] input[type="text"],
.eocrm-wrap[data-section] input[type="email"],
.eocrm-wrap[data-section] input[type="number"],
.eocrm-wrap[data-section] input[type="url"],
.eocrm-wrap[data-section] input[type="password"],
.eocrm-wrap[data-section] input[type="search"],
.eocrm-wrap[data-section] input[type="tel"],
.eocrm-wrap[data-section] input[type="date"],
.eocrm-wrap[data-section] input[type="datetime-local"],
.eocrm-wrap[data-section] input[type="time"],
.eocrm-wrap[data-section] select,
.eocrm-wrap[data-section] textarea {
    min-height: 44px;
    border-color: #d7dfeb;
    border-radius: 10px;
    background-color: #fbfcfe;
    box-shadow: 0 1px 2px rgba(12, 38, 77, 0.025) inset;
}

.eocrm-wrap[data-section] textarea {
    min-height: 112px;
}

.eocrm-wrap[data-section] input:not([type="checkbox"]):not([type="radio"]):focus,
.eocrm-wrap[data-section] select:focus,
.eocrm-wrap[data-section] textarea:focus {
    border-color: var(--eocrm-primary);
    background: #ffffff;
    box-shadow: var(--eocrm-focus-ring);
}

.eocrm-wrap[data-section] .eocrm-table {
    border: 1px solid var(--eocrm-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section] .eocrm-table th {
    border-bottom-color: var(--eocrm-border);
    background: #f5f7fa;
    color: #536179;
    font-size: 11px;
    letter-spacing: 0.055em;
}

.eocrm-wrap[data-section] .eocrm-table td {
    border-bottom-color: #edf1f6;
    color: var(--eocrm-text);
}

.eocrm-wrap[data-section] .eocrm-table tbody tr:hover {
    background: #f8fafc;
}

/* Dashboard: flat hierarchy, four KPI cards and paired data panels. */
.eocrm-wrap[data-section="dashboard"] .eocrm-dash {
    margin: 0;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    margin: 0 0 18px;
    padding: 10px 4px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.eocrm-dash-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__role {
    margin: 0;
    padding: 5px 10px;
    background: var(--eocrm-success-soft);
    color: #2f8735;
    font-size: 10px;
    letter-spacing: 0.09em;
}

.eocrm-dash-hero__meta time {
    color: #7a8799;
    font-size: 12px;
    font-weight: 600;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__greeting {
    margin: 0 0 6px;
    color: var(--eocrm-primary);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__subtitle {
    color: var(--eocrm-muted);
    font-size: 13.5px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__subtitle strong {
    color: var(--eocrm-text);
    font-weight: 750;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__quick {
    gap: 8px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-quick {
    min-height: 42px;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border-color: var(--eocrm-border);
    border-radius: 11px;
    background: #ffffff;
    color: #42526a;
    box-shadow: var(--eocrm-shadow-sm);
    font-size: 12.5px;
    font-weight: 700;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-quick:hover {
    border-color: rgba(73, 173, 78, 0.5);
    color: var(--eocrm-primary);
    box-shadow: 0 8px 20px rgba(12, 38, 77, 0.08);
    transform: translateY(-1px);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-quick__icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--eocrm-success-soft);
    color: var(--eocrm-accent);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    grid-template-rows: auto 1fr;
    min-height: 132px;
    gap: 10px 12px;
    padding: 17px 17px 15px;
    border: 1px solid var(--eocrm-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi::after {
    display: none;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi:hover {
    border-color: #d4dde9;
    box-shadow: 0 13px 28px rgba(12, 38, 77, 0.09);
    transform: translateY(-2px);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi__body {
    grid-row: 1 / 3;
    grid-column: 1;
    justify-content: flex-start;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi__icon {
    grid-row: 1;
    grid-column: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f68c7;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi--green .eocrm-dash-kpi__icon,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi--orange .eocrm-dash-kpi__icon {
    background: var(--eocrm-success-soft);
    color: var(--eocrm-accent);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi--purple .eocrm-dash-kpi__icon {
    background: #edf3ff;
    color: #416fc1;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi__label {
    margin: 0 0 10px;
    color: #66758d;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi__value {
    color: #10233f;
    font-size: clamp(29px, 2.7vw, 38px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi__sub {
    margin-top: 9px;
    color: #499c4d;
    font-size: 11px;
    font-weight: 650;
}

.eocrm-dash-kpi__arrow {
    align-self: end;
    justify-self: end;
    grid-row: 2;
    grid-column: 2;
    color: #a4afbf;
    font-size: 17px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.eocrm-dash-kpi:hover .eocrm-dash-kpi__arrow {
    color: var(--eocrm-accent);
    transform: translateX(2px);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 14px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel {
    padding: 18px;
    border: 1px solid var(--eocrm-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--gross {
    margin: 0 0 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 173, 78, 0.07), transparent 34%),
        #ffffff;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--agreements,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--properties,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--notifications {
    grid-column: 1;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--mix,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--agents,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--searches {
    grid-column: 2;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel__head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel__head h3 {
    color: #152641;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel__hint {
    color: #7b8799;
    font-size: 11.5px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel__more {
    color: var(--eocrm-primary);
    font-size: 11.5px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-list-item {
    min-height: 52px;
    padding: 10px 0;
    border-bottom-color: #edf1f6;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-list-item__title {
    color: #20324e;
    font-size: 12.8px;
    font-weight: 750;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-list-item__sub,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-list-item__date {
    color: #8190a3;
    font-size: 10.8px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-list-item__price {
    color: var(--eocrm-primary);
    font-size: 12.5px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-pill {
    padding: 4px 8px;
    font-size: 10px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-bar__track,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rank-track {
    background: #edf1f5;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-bar__fill,
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rank-fill {
    background: linear-gradient(90deg, var(--eocrm-primary) 0%, #2e6bb9 68%, var(--eocrm-accent) 100%);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rem-tab {
    border-color: var(--eocrm-border);
    border-radius: 10px;
    color: #4f6078;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rem-tab.is-active {
    border-color: var(--eocrm-primary);
    background: var(--eocrm-primary);
    color: #ffffff;
    box-shadow: 0 7px 17px rgba(9, 46, 111, 0.18);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rem-panel {
    border-color: var(--eocrm-border);
    border-radius: 14px;
    background: #f7f9fc;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-rem-total {
    border-color: var(--eocrm-border);
    border-radius: 13px;
    box-shadow: var(--eocrm-shadow-sm);
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-list {
    gap: 0;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-item {
    border-bottom: 1px solid #edf1f6;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-item:last-child {
    border-bottom: 0;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-link {
    min-height: 48px;
    padding: 9px 4px;
    border-radius: 10px;
}

.eocrm-wrap[data-section="dashboard"] a.eocrm-notif-link:hover {
    background: #f6f9fc;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-title {
    color: #20324e;
    font-size: 12.5px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-notif-message {
    color: #8190a3;
    font-size: 10.8px;
}

.eocrm-wrap[data-section] .eocrm-notif-bell {
    width: 44px;
    height: 44px;
    border-color: var(--eocrm-border);
    background: #f7f9fc;
    color: var(--eocrm-primary);
}

.eocrm-wrap[data-section] .eocrm-notif-bell:hover,
.eocrm-wrap[data-section] .eocrm-notif-bell[aria-expanded="true"] {
    border-color: rgba(73, 173, 78, 0.45);
    background: var(--eocrm-success-soft);
    color: var(--eocrm-primary);
}

.eocrm-wrap[data-section] .eocrm-notif-bell-badge {
    background: var(--eocrm-accent);
}

.eocrm-wrap[data-section] .eocrm-notif-bell-dropdown {
    border-color: var(--eocrm-border);
    border-radius: 16px;
    box-shadow: var(--eocrm-shadow-lg);
    z-index: 120;
}

@media (max-width: 1260px) {
    .eocrm-brand__copy {
        display: none;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--agreements,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--properties,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--notifications,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--mix,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--agents,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel--searches {
        grid-column: 1;
    }
}

@media (max-width: 820px) {
    .eocrm-wrap[data-section] .eocrm-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .eocrm-wrap[data-section] .eocrm-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .eocrm-wrap[data-section] .eocrm-header-primary-action {
        margin-left: auto;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__quick {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .eocrm-wrap[data-section] {
        margin: 8px auto;
        padding: 10px;
        border-radius: 18px;
    }

    .eocrm-wrap[data-section]::before {
        right: 18px;
        left: 18px;
    }

    .eocrm-wrap[data-section] .eocrm-header {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .eocrm-brand__logo-frame {
        flex-basis: 225px;
        width: 225px;
        height: 46px;
    }

    .eocrm-brand__logo {
        width: 292px;
    }

    .eocrm-wrap[data-section] .eocrm-header-actions {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .eocrm-wrap[data-section] .eocrm-header-primary-action {
        width: 100%;
        margin: 0;
    }

    .eocrm-wrap[data-section] .eocrm-tabs {
        margin-bottom: 16px;
        padding: 0 6px;
        border-radius: 13px;
    }

    .eocrm-wrap[data-section] .eocrm-tab {
        min-height: 46px;
        padding: 0 12px;
        line-height: 46px;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero {
        gap: 16px;
        padding: 6px 2px 2px;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__quick {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-quick {
        justify-content: flex-start;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpis {
        grid-template-columns: 1fr;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-kpi {
        min-height: 118px;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel {
        padding: 15px;
        border-radius: 14px;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-panel__head,
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-rem-panel__meta {
        gap: 7px;
    }
}

@media (max-width: 420px) {
    .eocrm-brand__logo-frame {
        flex-basis: 200px;
        width: 200px;
    }

    .eocrm-brand__logo {
        width: 260px;
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-hero__quick {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eocrm-wrap[data-section] .eocrm-tab::after,
    .eocrm-wrap[data-section] .eocrm-dash-kpi__arrow {
        transition: none;
    }
}

/* Dashboard charts: sales funnel, property-type donut and transactions timeline. */
.eocrm-wrap[data-section="dashboard"] .eocrm-dash-analytics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 14px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-chart-card {
    min-height: 330px;
}

.eocrm-wrap[data-section="dashboard"] .eocrm-dash-chart-card--timeline {
    grid-column: 1 / -1;
    min-height: 360px;
}

.eocrm-sales-funnel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(190px, 0.86fr);
    align-items: center;
    gap: clamp(18px, 3vw, 38px);
    min-height: 235px;
}

.eocrm-sales-funnel__shape {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 6px 0;
}

.eocrm-sales-funnel__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    margin-top: -1px;
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
    filter: drop-shadow(0 4px 6px rgba(9, 46, 111, 0.08));
}

.eocrm-sales-funnel__segment strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(5, 25, 58, 0.18);
}

.eocrm-sales-funnel__segment--1 {
    width: 100%;
    margin-top: 0;
    background: #2f6db7;
}

.eocrm-sales-funnel__segment--2 {
    width: 86%;
    background: #428fc4;
}

.eocrm-sales-funnel__segment--3 {
    width: 72%;
    background: #62abc6;
}

.eocrm-sales-funnel__segment--4 {
    width: 58%;
    background: #86bd58;
}

.eocrm-sales-funnel__segment--5 {
    width: 44%;
    background: #49a84e;
}

.eocrm-sales-funnel__legend,
.eocrm-property-donut__legend {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eocrm-sales-funnel__legend li,
.eocrm-property-donut__legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-bottom: 1px solid #edf1f6;
}

.eocrm-sales-funnel__legend li:last-child,
.eocrm-property-donut__legend li:last-child {
    border-bottom: 0;
}

.eocrm-sales-funnel__dot,
.eocrm-property-donut__swatch {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.eocrm-sales-funnel__dot--1 { background: #2f6db7; }
.eocrm-sales-funnel__dot--2 { background: #428fc4; }
.eocrm-sales-funnel__dot--3 { background: #62abc6; }
.eocrm-sales-funnel__dot--4 { background: #86bd58; }
.eocrm-sales-funnel__dot--5 { background: #49a84e; }

.eocrm-sales-funnel__label,
.eocrm-property-donut__legend li > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    color: #43536c;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eocrm-sales-funnel__legend strong,
.eocrm-property-donut__legend strong {
    color: #162943;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.eocrm-sales-funnel__legend small,
.eocrm-property-donut__legend small {
    min-width: 34px;
    color: #8995a7;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.eocrm-property-donut {
    display: grid;
    grid-template-columns: minmax(170px, 0.82fr) minmax(190px, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    min-height: 235px;
}

.eocrm-property-donut__chart {
    position: relative;
    justify-self: center;
    width: min(100%, 205px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--eocrm-donut-gradient, conic-gradient(#dfe6ef 0 100%));
    box-shadow: 0 13px 28px rgba(12, 38, 77, 0.1);
}

.eocrm-property-donut__chart::after {
    content: "";
    position: absolute;
    inset: 27%;
    border: 1px solid rgba(226, 232, 241, 0.85);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(12, 38, 77, 0.06) inset;
}

.eocrm-property-donut__center {
    position: absolute;
    z-index: 1;
    inset: 27%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #66758d;
    text-align: center;
}

.eocrm-property-donut__center strong {
    color: #142640;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
    line-height: 1;
}

.eocrm-property-donut__center span {
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.eocrm-property-donut__swatch {
    background: var(--eocrm-chart-color, #2f6db7);
}

.eocrm-transactions-timeline {
    margin-top: 8px;
}

.eocrm-transactions-timeline__scroll {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-color: #b9c6d8 transparent;
    scrollbar-width: thin;
}

.eocrm-transactions-timeline__canvas {
    min-width: 620px;
}

.eocrm-transactions-timeline__plot {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.eocrm-transactions-timeline__grid line {
    stroke: #e4eaf2;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.eocrm-transactions-timeline__grid text {
    fill: #8b98aa;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-anchor: end;
}

.eocrm-transactions-timeline__area {
    fill: rgba(47, 109, 183, 0.12);
}

.eocrm-transactions-timeline__line {
    fill: none;
    stroke: #2f6db7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.eocrm-transactions-timeline__point {
    fill: #ffffff;
    stroke: #2f6db7;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.eocrm-transactions-timeline__axis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: -2px 0 0;
    padding: 0 10px 0 34px;
    list-style: none;
}

.eocrm-transactions-timeline__axis li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    color: #77869b;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}

.eocrm-transactions-timeline__axis strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    min-height: 23px;
    margin-bottom: 5px;
    padding: 2px 7px;
    border: 1px solid #dce5f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #17325a;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
    .eocrm-sales-funnel,
    .eocrm-property-donut {
        grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 1fr);
        gap: 18px;
    }
}

@media (max-width: 920px) {
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-analytics {
        grid-template-columns: minmax(0, 1fr);
    }

    .eocrm-sales-funnel,
    .eocrm-property-donut {
        grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr);
    }

    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-chart-card--timeline {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .eocrm-wrap[data-section="dashboard"] .eocrm-dash-chart-card {
        min-height: 0;
    }

    .eocrm-sales-funnel,
    .eocrm-property-donut {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .eocrm-sales-funnel__shape {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .eocrm-property-donut__chart {
        width: min(72vw, 205px);
    }
}
