:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
    --dark: #212529;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Admin property form */
.property-form-page {
    background: #f3f6f8;
    margin: -1rem -1.5rem 0;
    padding: 1.25rem 1.5rem 2rem;
    min-height: calc(100vh - 76px);
}

.property-form-page .page-toolbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 54%, #eef7f4 100%);
    border: 1px solid #d8e6ef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.property-form-page .page-toolbar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #0f766e, #2563eb);
}

.property-toolbar-intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 280px;
    padding-left: 4px;
}

.property-toolbar-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.property-toolbar-icon i {
    font-size: 1.45rem;
}

.client-toolbar-icon {
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.2);
}

.client-form-page .page-toolbar,
.client-form-page .property-form-section,
.client-form-page .property-quality-card {
    animation: clientPanelEnter 0.36s ease-out both;
}

.client-form-page .property-form-section:nth-of-type(2) {
    animation-delay: 0.04s;
}

.client-form-page .property-form-section:nth-of-type(3) {
    animation-delay: 0.08s;
}

.client-form-page .col-lg-4 > .card:nth-child(1) {
    animation-delay: 0.06s;
}

.client-form-page .col-lg-4 > .card:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes clientPanelEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-form-page *,
    .client-form-page *::before,
    .client-form-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.property-toolbar-copy h4 {
    color: #0f172a;
}

.client-toolbar-context {
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.property-toolbar-eyebrow {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.property-toolbar-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.property-toolbar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.property-toolbar-tags span {
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid #d7e2ea;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.page-toolbar-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.property-action-stack {
    width: 170px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 0 0 170px;
}

.property-save-btn {
    min-height: 46px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
    letter-spacing: 0;
}

.property-save-btn:hover {
    background: #115e59 !important;
    border-color: #115e59 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.26);
}

.property-save-btn.has-unsaved {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
}

.property-save-btn.has-unsaved:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.property-save-btn.is-saving {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #fff !important;
}

.property-save-state {
    min-height: 24px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f5132;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.property-save-state.has-unsaved {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.property-action-btn {
    min-height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
}

.client-whatsapp-action {
    border-color: #22c55e !important;
    color: #15803d !important;
    background: #f0fdf4 !important;
}

.client-whatsapp-action i {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.client-whatsapp-action:hover {
    background: #22c55e !important;
    color: #fff !important;
}

.client-whatsapp-action:hover i {
    background: #fff;
    color: #16a34a;
}

.publication-panel {
    min-width: min(680px, 62vw);
    background: #f8fafc;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    padding: 10px;
}

.client-status-panel {
    min-width: min(520px, 52vw);
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border: 1px solid #cfe0ee;
    border-radius: 8px;
    padding: 10px;
}

.client-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.client-status-head > div:first-child {
    min-width: 0;
}

.client-status-head span {
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-status-head strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    margin-top: 2px;
}

.client-status-score {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #bfdbfe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
}

.client-status-score span {
    color: #1d4ed8;
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.client-status-score small {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 4px;
    text-transform: uppercase;
}

.client-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.client-status-grid span {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #dbe5ef;
    background: #fff;
    color: #334155;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    padding: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: left;
}

.client-status-grid i {
    grid-row: 1 / 3;
    color: #1d4ed8;
    font-size: 1rem;
}

.client-status-grid small {
    color: #64748b;
    display: block;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.client-status-grid strong {
    color: #0f172a;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-status-grid span.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.client-status-grid span.is-ok i,
.client-status-grid span.is-ok strong {
    color: #0f766e;
}

.client-status-grid span.is-muted {
    background: #f8fafc;
}

.client-status-grid span.is-alert {
    background: #fffbeb;
    border-color: #fde68a;
}

.client-status-grid span.is-alert i,
.client-status-grid span.is-alert strong {
    color: #92400e;
}

.publication-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #334155;
}

.publication-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.publication-panel-head strong {
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.74rem;
    padding: 4px 9px;
}

.publication-switcher {
    display: grid;
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    gap: 8px;
}

.publication-option {
    position: relative;
    min-height: 66px;
    border: 1px solid #d6e0ea;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 9px 10px 9px 38px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.publication-option i {
    position: absolute;
    left: 11px;
    top: 12px;
    font-size: 1.1rem;
}

.publication-option span {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
}

.publication-option small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.1;
}

.publication-option:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.publication-option-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publication-option-check i {
    position: static;
    font-size: 0.75rem;
}

.publication-switcher .btn-check:checked + .publication-option {
    background: #ecfdf5;
    border-color: #0f766e;
    color: #0f5132;
    box-shadow: inset 0 0 0 1px #0f766e, 0 8px 18px rgba(15, 118, 110, 0.14);
}

.publication-switcher .btn-check:checked + .publication-option small {
    color: #0f5132;
}

.publication-switcher .btn-check:checked + .publication-option .publication-option-check {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.publication-switcher .btn-check:checked + .publication-option-rascunho {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #2563eb, 0 8px 18px rgba(37, 99, 235, 0.14);
}

.publication-switcher .btn-check:checked + .publication-option-rascunho small {
    color: #1d4ed8;
}

.publication-switcher .btn-check:checked + .publication-option-rascunho .publication-option-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.publication-switcher .btn-check:checked + .publication-option-oculto {
    background: #fff7ed;
    border-color: #f97316;
    color: #9a3412;
    box-shadow: inset 0 0 0 1px #f97316, 0 8px 18px rgba(249, 115, 22, 0.14);
}

.publication-switcher .btn-check:checked + .publication-option-oculto small {
    color: #9a3412;
}

.publication-switcher .btn-check:checked + .publication-option-oculto .publication-option-check {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.publication-switcher .btn-check:checked + .publication-option-arquivado {
    background: #f1f5f9;
    border-color: #64748b;
    color: #334155;
    box-shadow: inset 0 0 0 1px #64748b, 0 8px 18px rgba(100, 116, 139, 0.14);
}

.publication-switcher .btn-check:checked + .publication-option-arquivado small {
    color: #334155;
}

.publication-switcher .btn-check:checked + .publication-option-arquivado .publication-option-check {
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

@media (max-width: 1199px) {
    .property-form-page .page-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .page-toolbar-actions {
        align-items: stretch;
        justify-content: space-between;
    }

    .publication-panel {
        min-width: 0;
        width: 100%;
    }

    .client-status-panel {
        min-width: 0;
        width: 100%;
    }

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

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

    .client-assignment-grid {
        grid-template-columns: 1fr;
    }

    .property-action-stack {
        width: 180px;
        flex-basis: 180px;
    }
}

@media (max-width: 768px) {
    .page-toolbar-actions {
        flex-direction: column;
    }

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

    .client-status-grid {
        grid-template-columns: 1fr;
    }

    .client-type-grid {
        grid-template-columns: 1fr;
    }

    .client-origin-grid {
        grid-template-columns: 1fr;
    }

    .property-action-stack {
        width: 100%;
        flex-basis: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .property-save-btn,
    .property-save-state {
        grid-column: 1 / -1;
    }
}

.property-form-section {
    border: 1px solid #dfe7ef !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

.client-form-page .property-form-section,
.client-form-page .property-quality-card,
.client-status-panel {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-form-page .property-form-section:hover,
.client-form-page .property-quality-card:hover,
.client-status-panel:hover {
    border-color: #c7d8ea !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.property-form-section .card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e6edf4;
}

.property-form-section .card-header h6 {
    color: #1f2937;
}

.property-form-section .form-label {
    color: #374151;
    font-size: 0.86rem;
    font-weight: 600;
}

.property-form-section .form-control,
.property-form-section .form-select {
    border-color: #d7e0ea;
}

.property-form-section .form-control:focus,
.property-form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.12);
}

.client-form-page .form-control,
.client-form-page .form-select {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.property-description-section {
    border-left-color: #0f766e !important;
}

.property-description-section .card-header {
    background: #f0fdfa !important;
}

.property-description-section textarea {
    background: #fbfefd;
}

.client-form-section {
    border-left-color: #1d4ed8 !important;
}

.client-form-section .card-header {
    background: #f8fbff !important;
}

.client-section-hint {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.client-section-badge {
    min-height: 28px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.client-address-helper {
    min-height: 0;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.client-address-helper i {
    color: #1d4ed8;
    margin-top: 1px;
}

.client-field-note {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

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

.client-type-choice {
    min-height: 76px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.client-type-choice:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.08);
}

.client-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.client-type-choice strong,
.client-type-choice small {
    display: block;
}

.client-type-choice strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.client-type-choice small {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2px;
}

.client-type-check {
    color: #cbd5e1;
    opacity: 0;
    transition: var(--transition);
}

.client-form-page .btn-check:checked + .client-type-choice {
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18), 0 8px 18px rgba(29, 78, 216, 0.1);
    transform: translateY(-1px);
}

.client-form-page .btn-check:checked + .client-type-choice .client-type-icon {
    background: #1d4ed8;
    color: #fff;
}

.client-form-page .btn-check:checked + .client-type-choice .client-type-check {
    color: #1d4ed8;
    opacity: 1;
    transform: scale(1.04);
}

.client-origin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.client-origin-choice {
    min-height: 66px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    cursor: pointer;
    transition: var(--transition);
}

.client-origin-choice:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.08);
}

.client-origin-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}

.client-origin-choice strong,
.client-origin-choice small {
    display: block;
}

.client-origin-choice strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.client-origin-choice small {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.client-form-page .btn-check:checked + .client-origin-choice {
    border-color: #0f766e;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16), 0 8px 18px rgba(15, 118, 110, 0.08);
    transform: translateY(-1px);
}

.client-form-page .btn-check:checked + .client-origin-choice .client-origin-icon {
    background: #0f766e;
    color: #fff;
}

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

.client-assignment-card {
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-assignment-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.client-funnel-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfb 100%);
}

.client-assignment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    font-size: 1.12rem;
}

.client-funnel-card .client-assignment-icon {
    background: #ecfdf5;
    color: #0f766e;
}

.client-assignment-content {
    min-width: 0;
    flex: 1;
}

.client-assignment-card .form-select {
    background-color: #fff;
    font-weight: 700;
}

.client-control-hint {
    color: #64748b;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 7px;
}

.client-funnel-picker {
    display: grid;
    gap: 8px;
}

.client-funnel-option {
    --funnel-color: #0f766e;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 9px 10px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.client-funnel-option::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--funnel-color);
    opacity: 0.3;
}

.client-funnel-option:hover {
    border-color: var(--funnel-color);
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.client-funnel-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--funnel-color) 14%, #ffffff);
    color: var(--funnel-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
}

.client-funnel-option strong,
.client-funnel-option small {
    display: block;
}

.client-funnel-option strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.client-funnel-option small {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.client-funnel-empty {
    --funnel-color: #64748b;
}

.client-form-page .btn-check:checked + .client-funnel-option {
    border-color: var(--funnel-color);
    background: color-mix(in srgb, var(--funnel-color) 9%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--funnel-color) 22%, transparent), 0 8px 18px rgba(15, 23, 42, 0.08);
}

.client-form-page .btn-check:checked + .client-funnel-option::before {
    opacity: 1;
}

.client-form-page .btn-check:checked + .client-funnel-option .client-funnel-dot {
    background: var(--funnel-color);
    color: #fff;
}

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

.client-link-header span {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.client-link-header > i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}

.client-property-search {
    position: relative;
}

.client-property-search i {
    color: #64748b;
    left: 11px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.client-property-search .form-control {
    padding-left: 34px;
}

.client-property-picker {
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    display: grid;
    gap: 7px;
    max-height: 286px;
    overflow: auto;
    padding: 8px;
}

.client-property-picker.has-no-results::after {
    color: #64748b;
    content: "Nenhum imóvel encontrado para essa busca.";
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px;
}

.client-property-empty {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px;
}

.client-property-option {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    transition: var(--transition);
}

.client-property-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.07);
}

.client-property-option input {
    width: 17px;
    height: 17px;
}

.client-property-option-body {
    min-width: 0;
}

.client-property-option-body strong,
.client-property-option-body small {
    display: block;
}

.client-property-option-body strong {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.25;
}

.client-property-option-body small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 2px;
}

.client-property-option > .bi {
    color: #cbd5e1;
    opacity: 0;
}

.client-property-option:has(input:checked) {
    border-color: #0f766e;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.13);
    transform: translateY(-1px);
}

.client-property-option:has(input:checked) > .bi {
    color: #0f766e;
    opacity: 1;
}

.client-quality-card {
    border-left: 4px solid #1d4ed8 !important;
}

.client-quality-card .progress-bar {
    background: linear-gradient(90deg, #1d4ed8, #0f766e);
    transition: width 0.45s ease;
}

.client-quality-score {
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 5px 10px;
}

.client-summary-list {
    display: grid;
    gap: 8px;
}

.client-summary-list div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 9px 10px;
}

.client-summary-list span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.client-summary-list strong {
    display: block;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 800;
    margin-top: 2px;
    word-break: break-word;
}

.client-quality-list {
    display: grid;
    gap: 8px;
}

.client-quality-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.client-quality-list li.is-complete i {
    color: #0f766e;
}

.client-quality-list li.is-pending i {
    color: #94a3b8;
}

.client-next-step {
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

/* Admin leads */
.leads-page .page-toolbar,
.leads-page .leads-metric-card,
.leads-page .property-form-section {
    animation: clientPanelEnter 0.36s ease-out both;
}

.leads-page .leads-metric-card:nth-child(2) { animation-delay: 0.03s; }
.leads-page .leads-metric-card:nth-child(3) { animation-delay: 0.06s; }
.leads-page .leads-metric-card:nth-child(4) { animation-delay: 0.09s; }
.leads-page .property-form-section { animation-delay: 0.1s; }

.leads-toolbar-icon {
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.2);
}

.leads-hero-toolbar {
    align-items: stretch !important;
}

.leads-hero-eyebrow,
.leads-hero-status,
.leads-hero-funnel-link {
    min-height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.leads-hero-eyebrow {
    width: fit-content;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.leads-hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.leads-hero-title-row h4 {
    font-size: 1.45rem;
    letter-spacing: 0;
}

.leads-hero-status {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 4px 10px;
}

.leads-hero-subtitle {
    max-width: 720px;
    margin-top: 6px;
    color: #52637a;
    font-weight: 600;
}

.leads-hero-tags span {
    background: #fff !important;
    border-color: #dbe7f2 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.leads-toolbar-panel {
    min-width: 250px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #1e3a8a;
    padding: 14px;
    display: grid;
    align-content: center;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.08);
}

.leads-toolbar-panel span,
.leads-toolbar-panel small {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.leads-toolbar-panel strong {
    display: block;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.leads-toolbar-panel small {
    color: #64748b;
    text-transform: none;
}

.leads-conversion-copy {
    text-align: right;
}

.leads-conversion-meter {
    height: 8px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.leads-conversion-meter span {
    display: block;
    min-width: 6px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #0f766e);
}

.leads-hero-funnel-link {
    justify-content: center;
    background: #1d4ed8;
    border: 1px solid #1d4ed8;
    color: #fff;
    padding: 7px 10px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.leads-hero-funnel-link:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.22);
}

.leads-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.leads-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 166px;
    border-radius: 8px;
    border: 1px solid rgba(219, 231, 242, 0.92);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.leads-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--metric-accent, #1d4ed8);
}

.leads-metric-card::after {
    content: "";
    position: absolute;
    width: 94px;
    height: 94px;
    right: -34px;
    bottom: -42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--metric-accent, #1d4ed8) 13%, transparent);
}

.leads-metric-card:hover {
    border-color: #c7d8ea;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.leads-metric-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.leads-metric-label,
.leads-metric-badge {
    min-height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.leads-metric-label {
    color: color-mix(in srgb, var(--metric-accent, #1d4ed8) 75%, #0f172a);
}

.leads-metric-label i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--metric-accent, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--metric-accent, #1d4ed8) 22%, transparent);
}

.leads-metric-badge {
    background: color-mix(in srgb, var(--metric-accent, #1d4ed8) 10%, white);
    border: 1px solid color-mix(in srgb, var(--metric-accent, #1d4ed8) 22%, white);
    color: color-mix(in srgb, var(--metric-accent, #1d4ed8) 78%, #0f172a);
    padding: 4px 9px;
}

.leads-metric-body {
    position: relative;
    z-index: 1;
}

.leads-metric-body span {
    min-height: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--metric-accent, #1d4ed8) 9%, white);
    border: 1px solid color-mix(in srgb, var(--metric-accent, #1d4ed8) 18%, white);
    color: color-mix(in srgb, var(--metric-accent, #1d4ed8) 72%, #334155);
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.leads-metric-body strong {
    display: block;
    color: #0f172a;
    font-size: 2.45rem;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 8px;
}

.leads-metric-progress {
    position: relative;
    z-index: 1;
    height: 7px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.leads-metric-progress span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--metric-accent, #1d4ed8), color-mix(in srgb, var(--metric-accent, #1d4ed8) 70%, white));
}

.leads-metric-footer {
    position: relative;
    z-index: 1;
    min-height: 34px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--metric-accent, #1d4ed8) 8%, white);
    border: 1px solid color-mix(in srgb, var(--metric-accent, #1d4ed8) 18%, white);
    color: color-mix(in srgb, var(--metric-accent, #1d4ed8) 70%, #334155);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
}

.leads-metric-footer i {
    flex: 0 0 auto;
    font-size: 0.85rem;
}

.leads-metric-card.is-total { --metric-accent: #1d4ed8; }
.leads-metric-card.is-new { --metric-accent: #eab308; }
.leads-metric-card.is-today { --metric-accent: #0f766e; }
.leads-metric-card.is-converted { --metric-accent: #16a34a; }

.leads-analytics-card {
    border-left-color: #0f766e !important;
}

.leads-analytics-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leads-analytics-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 1.12rem;
}

.leads-analytics-title h6 {
    color: #0f172a;
}

.leads-analytics-title span:not(.leads-analytics-icon) {
    color: #64748b;
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 2px;
}

.leads-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.leads-analytics-column {
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
    min-width: 0;
}

.leads-analytics-column-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef5;
    margin-bottom: 10px;
}

.leads-analytics-column-head strong {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 900;
}

.leads-analytics-column-head i {
    color: #0f766e;
}

.leads-analytics-column-head span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.leads-analytics-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px;
}

.leads-analytics-row + .leads-analytics-row {
    margin-top: 8px;
}

.leads-analytics-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.leads-analytics-row-top strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leads-analytics-row-top span {
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 4px 8px;
}

.leads-analytics-progress {
    height: 7px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.leads-analytics-progress span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #22c55e);
}

.leads-analytics-progress.is-stage span {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.leads-analytics-progress.is-agent span {
    background: linear-gradient(90deg, #6d28d9, #a78bfa);
}

.leads-analytics-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.leads-analytics-meta span {
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 4px 8px;
}

.leads-analytics-meta span.is-warning {
    background: #fef9c3;
    border-color: #fde047;
    color: #713f12;
}

.leads-analytics-meta span.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.leads-analytics-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 18px;
    text-align: center;
}

.leads-filter-card,
.leads-list-card {
    border-left-color: #1d4ed8 !important;
}

.leads-filter-card {
    position: relative;
    z-index: 40;
    overflow: visible;
}

.leads-filter-card .card-body {
    overflow: visible;
}

.leads-list-card {
    position: relative;
    z-index: 1;
}

.leads-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 0.8fr)) minmax(210px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.leads-search-field .input-group-text {
    background: #f8fbff;
    border-color: #d7e0ea;
    color: #1d4ed8;
}

.leads-search-field {
    position: relative;
}

.leads-search-suggestions {
    position: absolute;
    z-index: 1000;
    top: calc(100% - 16px);
    left: 0;
    right: 0;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    padding: 8px;
}

.leads-search-suggestion {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.leads-search-suggestion:hover,
.leads-search-suggestion:focus {
    border-color: #bfdbfe;
    background: #eff6ff;
    outline: none;
    transform: translateY(-1px);
}

.leads-search-suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

.leads-search-suggestion-main,
.leads-search-suggestion-side {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.leads-search-suggestion-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 900;
}

.leads-search-suggestion-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.leads-search-suggestion-side {
    justify-items: end;
}

.leads-search-suggestion-side em,
.leads-search-suggestion-side small {
    border-radius: 999px;
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 3px 7px;
    white-space: nowrap;
}

.leads-search-suggestion-side em {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.leads-search-suggestion-side small {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.leads-search-suggestion-empty {
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 12px;
    text-align: center;
}

.leads-live-search-status {
    min-height: 16px;
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 5px;
}

.leads-list-card {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.leads-list-card.is-loading {
    opacity: 0.72;
    filter: saturate(0.92);
    pointer-events: none;
}

.leads-filter-actions {
    display: flex;
    gap: 8px;
}

.leads-filter-actions .btn {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.leads-pipeline-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leads-pipeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 1.12rem;
}

.leads-pipeline-title h6 {
    color: #0f172a;
}

.leads-pipeline-title span:not(.leads-pipeline-icon) {
    color: #64748b;
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 2px;
}

.leads-pipeline-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.leads-pipeline-summary > span {
    min-width: 92px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 10px;
}

.leads-pipeline-summary > span.is-alert {
    background: #fef9c3;
    border-color: #fde047;
    box-shadow: 0 10px 22px rgba(234, 179, 8, 0.14);
}

.leads-pipeline-summary > span.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.leads-pipeline-summary small {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.leads-pipeline-summary strong {
    display: block;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.05;
    margin-top: 2px;
}

.leads-bulk-bar {
    border-bottom: 1px solid #dbe7f2;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) minmax(360px, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.leads-bulk-bar.is-active {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.leads-bulk-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.leads-bulk-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
}

.leads-bulk-counter strong {
    color: #0f172a;
    display: block;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.15;
}

.leads-bulk-counter small,
.leads-bulk-feedback {
    color: #64748b;
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
}

.leads-bulk-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.leads-bulk-controls .form-select,
.leads-bulk-submit {
    min-height: 36px;
    border-radius: 8px;
    font-weight: 800;
}

.leads-bulk-controls .form-select {
    max-width: 190px;
    border-color: #d7e0ea;
    background-color: #fff;
}

.leads-bulk-action-select {
    color: #334155;
    background-color: #f8fafc;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.leads-bulk-action-select.is-read-action {
    background-color: #ecfdf5;
    border-color: #86efac;
    color: #166534;
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.12);
}

.leads-bulk-action-select.is-unread-action {
    background-color: #fef9c3;
    border-color: #fde047;
    color: #713f12;
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.14);
}

.leads-bulk-action-select.is-stage-action {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.12);
}

.leads-bulk-action-select.is-agent-action {
    background-color: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.12);
}

.leads-bulk-action-select option {
    color: #0f172a;
    background: #fff;
}

.leads-bulk-action-select option.is-read-action {
    background: #ecfdf5;
    color: #166534;
}

.leads-bulk-action-select option.is-unread-action {
    background: #fef9c3;
    color: #713f12;
}

.leads-bulk-action-select option.is-stage-action {
    background: #eff6ff;
    color: #1d4ed8;
}

.leads-bulk-action-select option.is-agent-action {
    background: #f5f3ff;
    color: #6d28d9;
}

.leads-bulk-dependent {
    display: none;
}

.leads-bulk-dependent.is-visible {
    display: block;
}

.leads-bulk-submit {
    white-space: nowrap;
}

.leads-bulk-feedback {
    grid-column: 1 / -1;
    color: #991b1b;
    min-height: 0;
}

.leads-select-cell {
    width: 44px;
    text-align: center;
}

.leads-select-cell .form-check-input,
.leads-mobile-title-wrap .form-check-input {
    width: 18px;
    height: 18px;
    border-color: #94a3b8;
    cursor: pointer;
}

.leads-select-cell .form-check-input:checked,
.leads-mobile-title-wrap .form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.leads-table thead th {
    background: #f8fbff;
    color: #334155;
    border-bottom: 1px solid #dbe7f2;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.leads-table tbody tr {
    border-left: 4px solid transparent;
}

.leads-table tbody tr.is-unread {
    border-left-color: #eab308;
    background: #fefce8;
}

.leads-table td {
    border-color: #edf2f7;
    padding: 14px 12px;
}

.leads-id-cell {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.leads-name {
    color: #0f172a;
    display: inline-flex;
    font-weight: 900;
    text-decoration: none;
}

.leads-name:hover {
    color: #1d4ed8;
}

.leads-contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.leads-contact-card {
    min-width: 250px;
    display: grid;
    gap: 8px;
}

.leads-contact-link {
    border-radius: 8px;
    border: 1px solid #dbe7f2;
    background: #fff;
    color: #334155;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.leads-contact-link:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    color: #1d4ed8;
    transform: translateY(-1px);
}

.leads-contact-link > span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.leads-contact-link strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 900;
}

.leads-contact-link.is-muted {
    color: #94a3b8;
    background: #f8fafc;
}

.leads-contact-link.is-muted > span {
    background: #f1f5f9;
    color: #94a3b8;
}

.leads-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.leads-phone-pill,
.leads-whatsapp-pill {
    min-height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.leads-phone-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.leads-phone-pill:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.leads-phone-pill.is-muted {
    color: #94a3b8;
}

.leads-whatsapp-pill {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.leads-whatsapp-pill:hover {
    color: #14532d;
    border-color: #86efac;
}

.leads-new-badge {
    margin-left: 48px;
    margin-top: 6px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
    display: inline-flex;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 900;
}

.leads-property-title {
    color: #334155;
    font-weight: 800;
    max-width: 240px;
}

.leads-stage-badge,
.leads-muted-pill,
.leads-status-badge,
.leads-priority-badge {
    min-height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.leads-stage-badge {
    color: var(--stage-color);
    background: color-mix(in srgb, var(--stage-color) 12%, white);
    border: 1px solid color-mix(in srgb, var(--stage-color) 28%, white);
}

.leads-stage-badge i {
    font-size: 0.5rem;
}

.leads-muted-pill {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.leads-status-badge.is-converted {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.leads-status-badge.is-new {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #713f12;
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.12);
}

.leads-status-badge.is-read {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.leads-stage-form {
    min-width: 160px;
    display: grid;
    gap: 5px;
}

.leads-stage-select {
    border-radius: 999px;
    border-color: #dbe7f2;
    background-color: #f8fbff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}

.leads-inline-feedback {
    min-height: 16px;
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

.leads-inline-form.is-saving select {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.leads-inline-form.is-saving .leads-inline-feedback {
    color: #1d4ed8;
}

.leads-inline-form.is-saved select {
    border-color: #86efac;
    background-color: #ecfdf5;
}

.leads-inline-form.is-saved .leads-inline-feedback {
    color: #166534;
}

.leads-inline-form.is-error select {
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.leads-inline-form.is-error .leads-inline-feedback {
    color: #991b1b;
}

.leads-priority-badge.is-new {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #713f12;
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.12);
}

.leads-priority-badge.is-unassigned {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.leads-priority-badge.is-stale {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.leads-priority-badge.is-converted {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.leads-priority-badge.is-following {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.leads-sla-badge {
    min-width: 122px;
    border-radius: 8px;
    border: 1px solid #dbe7f2;
    background: #f8fafc;
    color: #334155;
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 7px;
    row-gap: 1px;
    padding: 8px 9px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
}

.leads-sla-badge i {
    grid-row: span 2;
    font-size: 1rem;
}

.leads-sla-badge span,
.leads-sla-badge small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leads-sla-badge small {
    color: currentColor;
    font-size: 0.64rem;
    font-weight: 800;
    opacity: 0.76;
}

.leads-sla-badge.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.leads-sla-badge.is-warning {
    background: #fef9c3;
    border-color: #fde047;
    color: #713f12;
    box-shadow: 0 8px 18px rgba(234, 179, 8, 0.12);
}

.leads-sla-badge.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.1);
}

.leads-age {
    min-width: 96px;
    display: grid;
    gap: 2px;
}

.leads-age strong {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 900;
}

.leads-age span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.leads-action-group {
    min-width: 158px;
    display: inline-grid;
    grid-template-columns: repeat(3, 42px);
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.leads-action-button {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.leads-action-button i {
    font-size: 1.05rem;
    line-height: 1;
}

.leads-action-button:hover {
    transform: translateY(-1px);
}

.leads-action-button.is-view {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.leads-action-button.is-view:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.22);
}

.leads-action-button.is-whatsapp {
    background: #e7f8ee;
    border-color: #9de7ba;
    color: #128c4a;
}

.leads-action-button.is-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 211, 102, 0.25);
}

.leads-action-button.is-disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.leads-action-button.is-funnel {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.leads-action-button.is-funnel:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 10px 18px rgba(109, 40, 217, 0.2);
}

.leads-action-button.is-convert {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #15803d;
}

.leads-action-button.is-convert:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    box-shadow: 0 10px 18px rgba(21, 128, 61, 0.2);
}

.leads-action-button.is-task {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.leads-action-button.is-task:hover {
    background: #334155;
    border-color: #334155;
    color: #fff;
    box-shadow: 0 10px 18px rgba(51, 65, 85, 0.18);
}

.leads-action-button.is-visit {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.leads-action-button.is-visit:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
    box-shadow: 0 10px 18px rgba(234, 88, 12, 0.18);
}

.leads-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: #64748b;
    text-align: center;
}

.leads-empty-state i {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.leads-empty-state strong {
    color: #0f172a;
    font-size: 1rem;
}

.properties-hero-toolbar {
    border-left-color: #0f766e !important;
}

.properties-toolbar-icon {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

.properties-title-row,
.properties-metric-head,
.properties-list-title,
.properties-list-summary,
.properties-status-stack,
.properties-action-group {
    display: flex;
    align-items: center;
}

.properties-title-row {
    flex-wrap: wrap;
    gap: 10px;
}

.properties-hero-status {
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 5px 10px;
}

.properties-toolbar-panel {
    min-width: 280px;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.properties-toolbar-panel span,
.properties-toolbar-panel small {
    color: #64748b;
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
}

.properties-toolbar-panel strong {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.properties-publication-meter {
    height: 8px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.properties-publication-meter span {
    display: block;
    height: 100%;
    min-width: 7px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #22c55e);
}

.properties-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.properties-metric-card {
    --property-metric-color: #1d4ed8;
    border: 1px solid #dbe7f2;
    border-top: 4px solid var(--property-metric-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
    padding: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.properties-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.properties-metric-card.is-total { --property-metric-color: #1d4ed8; }
.properties-metric-card.is-published { --property-metric-color: #0f766e; }
.properties-metric-card.is-alert { --property-metric-color: #eab308; }
.properties-metric-card.is-featured { --property-metric-color: #7c3aed; }

.properties-metric-head {
    justify-content: space-between;
    gap: 10px;
}

.properties-metric-head span,
.properties-metric-head em {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
}

.properties-metric-head span {
    color: #0f172a;
}

.properties-metric-head span i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--property-metric-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.properties-metric-head em {
    background: color-mix(in srgb, var(--property-metric-color) 10%, white);
    border: 1px solid color-mix(in srgb, var(--property-metric-color) 24%, white);
    color: color-mix(in srgb, var(--property-metric-color) 76%, #0f172a);
    padding: 5px 9px;
}

.properties-metric-card strong {
    color: #0f172a;
    display: block;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 0.95;
}

.properties-metric-card small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.properties-analytics-panel {
    border: 1px solid #dbe7f2;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.88)),
        #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.properties-analytics-header {
    border-bottom: 1px solid rgba(219, 231, 242, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.properties-analytics-header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.properties-analytics-header span,
.properties-analytics-quality > span,
.properties-analytics-side-head span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.properties-analytics-header strong {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 900;
}

.properties-analytics-header small,
.properties-analytics-side-head small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.properties-analytics-header em {
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    padding: 6px 11px;
}

.properties-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 16px;
    padding: 16px;
}

.properties-analytics-main,
.properties-analytics-side {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.properties-analytics-main {
    display: grid;
    gap: 12px;
    padding: 14px;
}

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

.properties-analytics-kpis > div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.properties-analytics-kpis span,
.properties-analytics-kpis small,
.properties-analytics-quality small,
.properties-top-list small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.properties-analytics-kpis span {
    text-transform: uppercase;
}

.properties-analytics-kpis strong {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.properties-analytics-quality {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 9px;
}

.properties-analytics-quality > span {
    color: #334155;
}

.properties-analytics-quality a {
    min-height: 54px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    display: grid;
    grid-template-columns: 32px auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    padding: 9px;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.properties-analytics-quality a:hover {
    border-color: #99f6e4;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.1);
    transform: translateY(-1px);
}

.properties-analytics-quality i {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.properties-analytics-quality strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.properties-analytics-side {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.properties-analytics-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.properties-top-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.properties-top-list li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
}

.properties-top-list li > span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 900;
}

.properties-top-list div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.properties-top-list a {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.properties-top-list a:hover {
    color: #0f766e;
}

.properties-top-list strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.properties-analytics-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 14px;
    text-align: center;
}

.properties-audit-panel {
    border: 1px solid #dbe7f2;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.properties-audit-intro {
    border-radius: 8px;
    background: linear-gradient(135deg, #f0fdfa, #f8fafc);
    border: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.properties-audit-icon,
.properties-audit-action {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.properties-audit-icon {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.18);
}

.properties-audit-intro div,
.properties-audit-item div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.properties-audit-intro strong,
.properties-audit-item strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.properties-audit-intro small,
.properties-audit-item small,
.properties-audit-empty {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.properties-audit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.properties-audit-item,
.properties-audit-empty {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
}

.properties-audit-action.is-update {
    background: #eff6ff;
    color: #1d4ed8;
}

.properties-audit-action.is-danger {
    background: #fef2f2;
    color: #991b1b;
}

.properties-audit-empty {
    grid-column: 1 / -1;
    justify-content: center;
}

.properties-filter-card,
.properties-list-card {
    border-left-color: #0f766e !important;
}

.properties-filter-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.properties-filter-card:focus-within {
    border-left-color: #2563eb !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.properties-filter-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.6fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
    align-items: start;
}

.properties-search-field .input-group-text {
    background: #f8fbff;
    border-color: #d7e0ea;
    color: #0f766e;
}

.properties-search-field {
    position: relative;
}

.properties-filter-grid > div {
    min-width: 0;
}

.properties-filter-grid .form-label {
    min-height: 18px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.properties-filter-grid .form-control,
.properties-filter-grid .form-select,
.properties-search-field .input-group {
    min-height: 38px;
}

.properties-filter-grid .form-control,
.properties-filter-grid .form-select {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.properties-filter-grid .form-control:focus,
.properties-filter-grid .form-select:focus {
    border-color: #5eead4;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.properties-search-suggestions {
    position: absolute;
    z-index: 1000;
    top: calc(100% - 16px);
    left: 0;
    right: 0;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    padding: 8px;
}

.properties-search-suggestion {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.properties-search-suggestion:hover,
.properties-search-suggestion:focus {
    border-color: #99f6e4;
    background: #ecfdf5;
    outline: none;
    transform: translateY(-1px);
}

.properties-search-suggestion-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.properties-search-suggestion-main,
.properties-search-suggestion-side {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.properties-search-suggestion-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 900;
}

.properties-search-suggestion-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.properties-search-suggestion-side {
    justify-items: end;
}

.properties-search-suggestion-side em,
.properties-search-suggestion-side small {
    border-radius: 999px;
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 3px 7px;
    white-space: nowrap;
}

.properties-search-suggestion-side em {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.properties-search-suggestion-side small {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.properties-search-suggestion-empty {
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 12px;
    text-align: center;
}

.properties-live-search-status {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-height: 0;
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0;
    pointer-events: none;
}

.properties-list-card {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.properties-list-card.is-entering {
    animation: propertyListEnter 0.42s ease both;
}

.properties-list-card.is-loading {
    opacity: 0.72;
    filter: saturate(0.92);
    pointer-events: none;
}

.properties-filter-actions {
    display: flex;
    gap: 8px;
    align-self: start;
    padding-top: 24px;
}

.properties-filter-actions .btn {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.properties-list-title {
    gap: 12px;
}

.properties-list-title > span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 1.12rem;
}

.properties-list-title small {
    color: #64748b;
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 2px;
}

.properties-list-summary {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.properties-list-summary > span {
    min-width: 92px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 10px;
}

.properties-list-summary > span.is-alert {
    background: #fef9c3;
    border-color: #fde047;
}

.properties-list-summary > span.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.properties-list-summary small {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.properties-list-summary strong {
    color: #0f172a;
    display: block;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.05;
    margin-top: 2px;
}

.properties-bulk-bar {
    border-bottom: 1px solid #dbe7f2;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(230px, 0.72fr) minmax(430px, 1.1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.properties-bulk-bar.is-active {
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
}

.properties-bulk-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.properties-bulk-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
}

.properties-bulk-counter strong {
    color: #0f172a;
    display: block;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.15;
}

.properties-bulk-counter small,
.properties-bulk-feedback {
    color: #64748b;
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
}

.properties-bulk-safety {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
}

.properties-bulk-safety i {
    font-size: 1rem;
}

.properties-bulk-safety span {
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
}

.properties-bulk-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.properties-bulk-controls .form-select,
.properties-bulk-submit {
    min-height: 36px;
    border-radius: 8px;
    font-weight: 800;
}

.properties-bulk-controls .form-select {
    max-width: 220px;
    border-color: #d7e0ea;
    background-color: #fff;
}

.properties-bulk-action-select {
    color: #334155;
    background-color: #f8fafc;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.properties-bulk-action-select.is-publish-action,
.properties-bulk-action-select.is-feature-action {
    background-color: #ecfdf5;
    border-color: #86efac;
    color: #166534;
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.12);
}

.properties-bulk-action-select.is-hide-action,
.properties-bulk-action-select.is-draft-action {
    background-color: #fef9c3;
    border-color: #fde047;
    color: #713f12;
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.14);
}

.properties-bulk-action-select.is-archive-action,
.properties-bulk-action-select.is-muted-action {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.properties-bulk-action-select.is-status-action {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.12);
}

.properties-bulk-action-select option {
    color: #0f172a;
    background: #fff;
}

.properties-bulk-dependent {
    display: none;
}

.properties-bulk-dependent.is-visible {
    display: block;
}

.properties-bulk-feedback {
    grid-column: 1 / -1;
    color: #991b1b;
    min-height: 0;
}

.properties-select-cell {
    width: 44px;
    text-align: center;
}

.properties-select-cell .form-check-input,
.properties-mobile-head .form-check-input {
    width: 18px;
    height: 18px;
    border-color: #94a3b8;
    cursor: pointer;
}

.properties-select-cell .form-check-input:checked,
.properties-mobile-head .form-check-input:checked {
    background-color: #0f766e;
    border-color: #0f766e;
}

.properties-table thead th {
    background: #f8fbff;
    border-bottom: 1px solid #dbe7f2;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.properties-table tbody tr {
    border-left: 4px solid transparent;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.properties-table tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 0 1px 0 #e2e8f0, inset 0 -1px 0 #e2e8f0;
}

.properties-table tbody tr.is-selected {
    border-left-color: #0f766e;
    background: #f0fdfa;
    box-shadow: inset 0 1px 0 #99f6e4, inset 0 -1px 0 #99f6e4;
}

.properties-table tbody tr.is-unpublished {
    border-left-color: #eab308;
    background: #fffdf2;
}

.properties-table tbody tr.is-unpublished.is-selected {
    border-left-color: #0f766e;
    background: linear-gradient(90deg, #f0fdfa, #fffdf2);
}

.properties-table td {
    border-color: #edf2f7;
    padding: 14px 12px;
    vertical-align: middle;
}

.properties-property-cell {
    min-width: 340px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.properties-thumb {
    position: relative;
    width: 92px;
    height: 68px;
    border-radius: 8px;
    border: 1px solid #dbe7f2;
    background: #0b1220;
    flex: 0 0 92px;
    overflow: hidden;
}

.properties-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b1220;
    display: block;
    transition: transform 0.2s ease;
}

.properties-thumb:hover img {
    transform: scale(1.04);
}

.properties-thumb span {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #facc15;
    color: #713f12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.properties-property-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.properties-property-copy small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
}

.properties-property-copy > a {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
}

.properties-property-copy > a:hover {
    color: #0f766e;
}

.properties-property-copy > a:focus-visible,
.properties-mobile-head a:focus-visible,
.properties-action-button:focus-visible,
.properties-inline-select:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}

.properties-property-copy div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.properties-property-copy div span,
.properties-type-pill,
.properties-views-pill,
.properties-status-badge {
    min-height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.properties-property-copy div span,
.properties-views-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.properties-type-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.properties-location,
.properties-value {
    min-width: 140px;
    display: grid;
    gap: 6px;
}

.properties-location strong,
.properties-value strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.properties-location span,
.properties-value span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
}

.properties-value-line {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 1px;
    padding: 7px 9px;
}

.properties-value-line small {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.properties-value-line strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.15;
}

.properties-quality {
    min-width: 118px;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: #f8fafc;
    display: grid;
    gap: 5px;
    padding: 9px 10px;
}

.properties-quality-head {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: space-between;
}

.properties-quality-head strong {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
}

.properties-quality-head span {
    border-radius: 999px;
    font-size: 0.61rem;
    font-weight: 900;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}

.properties-quality small {
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.15;
}

.properties-quality small {
    color: #64748b;
}

.properties-quality em {
    color: #475569;
    display: block;
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.properties-quality-meter {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    width: 100%;
}

.properties-quality-meter span {
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.25s ease;
}

.properties-quality.is-strong {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.properties-quality.is-strong .properties-quality-head span {
    background: #dcfce7;
}

.properties-quality.is-strong .properties-quality-meter span {
    background: #16a34a;
}

.properties-quality.is-strong .properties-quality-head span,
.properties-quality.is-strong .properties-quality-head strong {
    color: #166534;
}

.properties-quality.is-medium {
    background: #fffbeb;
    border-color: #fde68a;
}

.properties-quality.is-medium .properties-quality-head span {
    background: #fef3c7;
}

.properties-quality.is-medium .properties-quality-meter span {
    background: #f59e0b;
}

.properties-quality.is-medium .properties-quality-head span,
.properties-quality.is-medium .properties-quality-head strong {
    color: #92400e;
}

.properties-quality.is-low {
    background: #fef2f2;
    border-color: #fecaca;
}

.properties-quality.is-low .properties-quality-head span {
    background: #fee2e2;
}

.properties-quality.is-low .properties-quality-meter span {
    background: #ef4444;
}

.properties-quality.is-low .properties-quality-head span,
.properties-quality.is-low .properties-quality-head strong {
    color: #991b1b;
}

.properties-status-stack {
    flex-wrap: wrap;
    gap: 6px;
    min-width: 150px;
}

.properties-inline-form {
    min-width: 142px;
    display: grid;
    gap: 3px;
}

.properties-inline-form label {
    display: grid;
    gap: 3px;
    margin: 0;
}

.properties-inline-form label > span {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.properties-inline-select {
    min-height: 32px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 5px 28px 5px 10px;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.properties-inline-select.is-available,
.properties-inline-select.is-published {
    background-color: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.properties-inline-select.is-sold {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.properties-inline-select.is-rented,
.properties-inline-select.is-hidden,
.properties-inline-select.is-reserved {
    background-color: #fef9c3;
    border-color: #fde047;
    color: #713f12;
}

.properties-inline-select.is-draft {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.properties-inline-select.is-archived {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}

.properties-inline-feedback {
    min-height: 14px;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
}

.properties-inline-form.is-saving .properties-inline-select {
    border-color: #93c5fd;
    background-color: #eff6ff;
    color: #1d4ed8;
}

.properties-inline-form.is-saving .properties-inline-feedback {
    color: #1d4ed8;
}

.properties-inline-form.is-saved .properties-inline-select {
    border-color: #86efac;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.properties-inline-form.is-saved .properties-inline-feedback {
    color: #166534;
}

.properties-inline-form.is-error .properties-inline-select {
    border-color: #fca5a5;
    background-color: #fef2f2;
    color: #991b1b;
}

.properties-inline-form.is-error .properties-inline-feedback {
    color: #991b1b;
}

.properties-status-badge {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
}

.properties-status-badge.is-available,
.properties-status-badge.is-published {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.properties-status-badge.is-sold {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.properties-status-badge.is-rented,
.properties-status-badge.is-hidden,
.properties-status-badge.is-reserved {
    background: #fef9c3;
    border-color: #fde047;
    color: #713f12;
}

.properties-status-badge.is-draft {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.properties-status-badge.is-archived {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}

.properties-status-badge.is-deal {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.properties-action-group {
    min-width: 226px;
    display: inline-grid;
    grid-template-columns: repeat(5, 38px);
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px;
}

.properties-action-button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.properties-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.properties-action-button.is-view {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.properties-action-button.is-view:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.properties-action-button.is-edit {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #0f766e;
}

.properties-action-button.is-edit:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.properties-action-button.is-media {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.properties-action-button.is-media:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.properties-action-button.is-copy {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.properties-action-button.is-duplicate {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.properties-action-button.is-duplicate:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.properties-action-form {
    display: inline-flex;
    margin: 0;
}

.properties-action-button.is-copy:hover,
.properties-action-button.is-copy.is-copied {
    background: #334155;
    border-color: #334155;
    color: #fff;
}

.properties-action-button.is-delete {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.properties-action-button.is-delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.properties-empty-state {
    min-height: 248px;
    margin: 18px;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(240, 253, 250, 0.94), rgba(248, 250, 252, 0.98)),
        #fff;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 28px;
    color: #64748b;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.properties-empty-state.is-filtered {
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(248, 250, 252, 0.98)),
        #fff;
}

.properties-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.14);
}

.properties-empty-state.is-filtered .properties-empty-icon {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.12);
}

.properties-empty-copy {
    display: grid;
    gap: 6px;
    max-width: 620px;
}

.properties-empty-state strong {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
}

.properties-empty-state span {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.properties-empty-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    max-width: 680px;
}

.properties-empty-filters span {
    min-height: 28px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 900;
}

.properties-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.properties-mobile-list {
    display: none;
}

.properties-mobile-card {
    border: 1px solid #dbe7f2;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.properties-mobile-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.properties-mobile-card.is-selected {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.14);
}

.properties-mobile-card.is-unpublished {
    border-left-color: #eab308;
    background: #fffdf2;
}

.properties-mobile-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b1220;
    display: block;
    overflow: hidden;
}

.properties-mobile-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b1220;
    display: block;
    transition: transform 0.22s ease;
}

.properties-mobile-card:hover .properties-mobile-cover img {
    transform: scale(1.025);
}

.properties-mobile-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    background: #facc15;
    color: #713f12;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(113, 63, 18, 0.12);
}

.properties-mobile-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.properties-mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.properties-mobile-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.properties-mobile-head small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
}

.properties-mobile-head a {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.properties-mobile-head a:hover {
    color: #0f766e;
}

.properties-mobile-value {
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.properties-mobile-value-lines {
    display: grid;
    gap: 6px;
}

.properties-mobile-value strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.properties-mobile-value span {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

.properties-mobile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.properties-mobile-facts span {
    min-height: 30px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 900;
}

.properties-mobile-health {
    display: grid;
    grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.25fr);
    gap: 10px;
    align-items: stretch;
}

.properties-mobile-health .properties-quality,
.properties-mobile-health .properties-status-stack {
    min-width: 0;
}

.properties-mobile-footer {
    border-top: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
}

.properties-mobile-footer .properties-action-group {
    min-width: 0;
}

@keyframes propertyListEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1399px) {
    .properties-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .properties-search-field {
        grid-column: span 2;
    }

    .properties-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 1199px) {
    .properties-page .page-toolbar {
        align-items: stretch !important;
    }

    .properties-toolbar-panel {
        width: 100%;
    }

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

    .properties-analytics-grid {
        grid-template-columns: 1fr;
    }

    .properties-audit-panel {
        grid-template-columns: 1fr;
    }

    .properties-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .properties-search-field {
        grid-column: 1 / -1;
    }

    .properties-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .properties-bulk-bar {
        grid-template-columns: 1fr;
    }

    .properties-bulk-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .properties-metrics-grid,
    .properties-filter-grid {
        grid-template-columns: 1fr;
    }

    .properties-analytics-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .properties-analytics-grid {
        padding: 10px;
    }

    .properties-analytics-panel,
    .properties-audit-panel {
        margin-left: 0;
        margin-right: 0;
    }

    .properties-analytics-kpis,
    .properties-analytics-quality {
        grid-template-columns: 1fr;
    }

    .properties-audit-list {
        grid-template-columns: 1fr;
    }

    .properties-list-card .table-responsive {
        display: none;
    }

    .properties-mobile-list {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .properties-mobile-head {
        align-items: stretch;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .properties-mobile-head .properties-type-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .properties-mobile-value-lines {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .properties-bulk-controls,
    .properties-bulk-controls .form-select,
    .properties-bulk-submit {
        width: 100%;
        max-width: none;
    }

    .properties-bulk-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .properties-filter-actions,
    .properties-filter-actions .btn {
        width: 100%;
    }

    .properties-filter-actions {
        flex-direction: column;
        padding-top: 0;
    }

    .properties-list-title,
    .properties-list-summary {
        width: 100%;
    }

    .properties-list-summary {
        justify-content: stretch;
    }

    .properties-list-summary > span {
        flex: 1 1 30%;
    }

    .properties-property-cell {
        min-width: 280px;
    }

    .properties-thumb {
        width: 78px;
        height: 58px;
        flex-basis: 78px;
    }
}

@media (max-width: 420px) {
    .properties-mobile-head,
    .properties-mobile-health,
    .properties-mobile-footer {
        grid-template-columns: 1fr;
        display: grid;
    }

    .properties-audit-intro,
    .properties-audit-item {
        align-items: flex-start;
    }

    .properties-audit-icon,
    .properties-audit-action {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .properties-top-list li {
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: flex-start;
    }

    .properties-top-list li > strong {
        grid-column: 2;
    }

    .properties-mobile-footer .properties-action-group {
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    .properties-mobile-footer .properties-action-button {
        min-width: 0;
        width: 100%;
    }
}

.leads-mobile-list {
    display: none;
}

.leads-mobile-card {
    border: 1px solid #dbe7f2;
    border-left: 4px solid #1d4ed8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.leads-mobile-card.is-unread {
    border-left-color: #eab308;
    background: #fefce8;
}

.leads-mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.leads-mobile-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.leads-mobile-title-wrap > div {
    min-width: 0;
}

.leads-mobile-id {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 2px;
}

.leads-mobile-name {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
}

.leads-mobile-name:hover {
    color: #1d4ed8;
}

.leads-mobile-sla .leads-sla-badge {
    width: 100%;
    min-width: 0;
}

.leads-mobile-contact {
    display: grid;
    gap: 7px;
}

.leads-mobile-contact a {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leads-mobile-contact a:hover {
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.leads-mobile-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 8px;
}

.leads-mobile-grid > div {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 9px;
}

.leads-mobile-grid small,
.leads-mobile-controls label {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.leads-mobile-grid strong {
    color: #0f172a;
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
}

.leads-mobile-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.leads-mobile-controls form {
    min-width: 0;
}

.leads-mobile-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.leads-mobile-date {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.leads-mobile-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
}

.leads-mobile-actions .leads-action-button {
    width: 100%;
}

.lead-detail-page {
    animation: fadeInUp 0.28s ease both;
}

.lead-detail-hero {
    border: 1px solid #dbe7f2;
    border-left: 5px solid #1d4ed8;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.78) 58%, rgba(255, 255, 255, 0.98)),
        #fff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    gap: 18px;
    padding: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-detail-hero:hover {
    border-color: #bfdbfe;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.11);
}

.lead-detail-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.lead-detail-back {
    width: fit-content;
    min-height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #dbe7f2;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.lead-detail-back i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-detail-back:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    transform: translateX(-2px);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.08);
}

.lead-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.lead-detail-avatar {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(29, 78, 216, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-detail-hero:hover .lead-detail-avatar {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 32px rgba(29, 78, 216, 0.26);
}

.lead-detail-title-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.lead-detail-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lead-detail-eyebrow,
.lead-section-head span {
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lead-detail-channel {
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 900;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.lead-detail-title-row h4 {
    color: #0f172a;
    font-size: 1.62rem;
    line-height: 1.12;
}

.lead-detail-question {
    max-width: 880px;
    border: 1px solid #dbe7f2;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lead-detail-question:hover {
    border-color: #99f6e4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(15, 118, 110, 0.08);
    transform: translateY(-1px);
}

.lead-detail-question i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ccfbf1;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-detail-question p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

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

.lead-detail-tags .leads-priority-badge {
    min-height: 34px;
    border-radius: 8px;
    padding: 5px 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lead-detail-tags .leads-priority-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.lead-detail-tags .leads-priority-badge i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.56);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-detail-tags > span:not(.leads-priority-badge) {
    min-height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #dbe7f2;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 900;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.lead-detail-tags > span:not(.leads-priority-badge):hover {
    border-color: #bfdbfe;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.lead-detail-tags > span:not(.leads-priority-badge) i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-detail-actions {
    align-content: start;
    display: grid;
    gap: 8px;
}

.lead-detail-action {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #dbe7f2;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.lead-detail-action:hover {
    transform: translateY(-1px);
}

.lead-detail-action.is-whatsapp {
    background: #e7f8ee;
    border-color: #9de7ba;
    color: #128c4a;
}

.lead-detail-action.is-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 211, 102, 0.22);
}

.lead-detail-action.is-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.lead-detail-action.is-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.lead-detail-action.is-outline:hover {
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.12);
}

.lead-detail-action.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.lead-detail-action.is-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.lead-detail-action.is-static {
    cursor: default;
}

.lead-detail-info-card,
.lead-side-card {
    border-left: 4px solid #1d4ed8 !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lead-detail-info-card:hover,
.lead-side-card:hover {
    border-color: #c7d8ea !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px);
}

.lead-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lead-health-card {
    --health-color: #1d4ed8;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--health-color) 22%, white);
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--health-color) 8%, white), #fff);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.lead-health-card:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.lead-health-card.is-success { --health-color: #16a34a; }
.lead-health-card.is-warning { --health-color: #eab308; }
.lead-health-card.is-danger { --health-color: #dc2626; }
.lead-health-card.is-stage { --health-color: #1d4ed8; }

.lead-health-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--health-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-health-card span:not(.lead-health-icon) {
    color: color-mix(in srgb, var(--health-color) 72%, #0f172a);
    display: block;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-health-card strong {
    min-width: 0;
    color: #0f172a;
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-agenda-card {
    border-left: 4px solid #0f766e !important;
}

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

.lead-agenda-column {
    min-width: 0;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    gap: 8px;
    padding: 12px;
}

.lead-agenda-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eef5;
}

.lead-agenda-column-head strong {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 900;
}

.lead-agenda-column-head i {
    color: #0f766e;
}

.lead-agenda-column-head a {
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f766e;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 8px;
    text-decoration: none;
}

.lead-agenda-item {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.lead-agenda-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.lead-agenda-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-agenda-icon.is-task {
    background: #7c3aed;
}

.lead-agenda-icon.is-visit {
    background: #0f766e;
}

.lead-agenda-item strong,
.lead-agenda-item small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-agenda-item strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.lead-agenda-item small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 2px;
}

.lead-agenda-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 14px;
    text-align: center;
}

.lead-section-head,
.lead-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.lead-section-head > i,
.lead-side-head > i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.lead-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lead-detail-field {
    min-width: 0;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 5px;
    padding: 10px;
}

.lead-detail-field span {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-detail-field span i {
    color: #1d4ed8;
}

.lead-detail-field strong {
    min-width: 0;
    color: #0f172a;
    display: block;
    font-size: 0.88rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.lead-detail-field a {
    color: #1d4ed8;
    text-decoration: none;
}

.lead-contact-edit-form {
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbe7f2;
    padding: 12px;
}

.lead-contact-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lead-contact-edit-grid label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.lead-contact-edit-grid label.is-wide {
    grid-column: 1 / -1;
}

.lead-contact-edit-grid label > span {
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-contact-edit-grid label > span i {
    color: #1d4ed8;
}

.lead-contact-edit-grid .form-control,
.lead-contact-edit-grid .form-select,
.lead-note-form .form-select {
    border-radius: 8px;
    border-color: #d7e0ea;
    background-color: #fff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
}

.lead-contact-edit-grid textarea.form-control {
    resize: vertical;
}

.lead-contact-edit-form.is-saving {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.lead-contact-edit-form.is-saved {
    border-color: #86efac;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

.lead-contact-edit-form.is-error {
    border-color: #fecaca;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.lead-contact-edit-actions {
    border-top: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
}

.lead-contact-edit-actions .lead-detail-action {
    min-width: 188px;
}

.lead-contact-edit-feedback {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
}

.lead-contact-edit-form.is-saved .lead-contact-edit-feedback {
    color: #166534;
}

.lead-contact-edit-form.is-error .lead-contact-edit-feedback {
    color: #991b1b;
}

.lead-detail-field.is-ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.lead-detail-field.is-alert {
    background: #fef2f2;
    border-color: #fecaca;
}

.lead-message-box {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    padding: 12px;
}

.lead-sla-card {
    --sla-color: #16a34a;
    border: 1px solid color-mix(in srgb, var(--sla-color) 28%, white);
    border-left: 4px solid var(--sla-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--sla-color) 9%, white);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.lead-sla-card.is-warning {
    --sla-color: #eab308;
}

.lead-sla-card.is-danger {
    --sla-color: #dc2626;
}

.lead-sla-card span {
    color: color-mix(in srgb, var(--sla-color) 75%, #0f172a);
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-sla-card strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 2px;
}

.lead-sla-card p {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 4px 0 0;
}

.lead-sla-card small {
    border-radius: 999px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--sla-color) 25%, white);
    color: var(--sla-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.lead-next-action-card {
    --next-action-color: #1d4ed8;
    border: 1px solid color-mix(in srgb, var(--next-action-color) 25%, white);
    border-left: 4px solid var(--next-action-color);
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--next-action-color) 8%, white), #fff);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lead-next-action-card:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
    transform: translateY(-1px);
}

.lead-next-action-card.is-success { --next-action-color: #16a34a; }
.lead-next-action-card.is-danger { --next-action-color: #dc2626; }
.lead-next-action-card.is-warning { --next-action-color: #eab308; }
.lead-next-action-card.is-stage { --next-action-color: #0f766e; }
.lead-next-action-card.is-activity { --next-action-color: #7c3aed; }

.lead-next-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--next-action-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: 0 12px 22px color-mix(in srgb, var(--next-action-color) 22%, transparent);
}

.lead-next-action-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.lead-next-action-copy span {
    color: color-mix(in srgb, var(--next-action-color) 72%, #0f172a);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-next-action-copy strong {
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
}

.lead-next-action-copy p {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.lead-next-action-link {
    grid-column: 1 / -1;
    min-height: 36px;
    border-radius: 8px;
    background: var(--next-action-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.lead-next-action-link:hover {
    color: #fff;
    filter: brightness(0.94);
    transform: translateY(-1px);
}

.lead-quick-edit {
    display: grid;
    gap: 10px;
}

.lead-quick-edit form {
    min-width: 0;
}

.lead-quick-edit label,
.lead-note-form label {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.lead-note-form {
    display: grid;
    gap: 10px;
}

.lead-note-form.is-saving .lead-detail-action {
    opacity: 0.76;
}

.lead-note-form.is-saved .lead-note-feedback {
    color: #166534;
}

.lead-note-form.is-error .lead-note-feedback {
    color: #991b1b;
}

.lead-note-feedback {
    color: #854d0e;
    font-size: 0.76rem;
    font-weight: 900;
    min-height: 16px;
}

.lead-note-card {
    position: relative;
    overflow: hidden;
    border-left-color: #eab308 !important;
    background: linear-gradient(145deg, #fff7b8 0%, #fef3c7 58%, #fde68a 100%);
    box-shadow: 0 16px 30px rgba(120, 83, 0, 0.14) !important;
}

.lead-note-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px) 0 44px / 100% 26px,
        radial-gradient(circle at 18px 18px, rgba(120, 83, 0, 0.1), transparent 18px);
}

.lead-note-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, #facc15 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.78;
}

.lead-note-card .card-body {
    position: relative;
    z-index: 1;
}

.lead-note-card .lead-side-head {
    border-bottom: 1px solid rgba(133, 77, 14, 0.16);
    padding-bottom: 10px;
}

.lead-note-card .lead-side-head > i {
    background: #854d0e;
    border-color: #854d0e;
    color: #fff;
    transform: rotate(-3deg);
}

.lead-note-card .lead-side-head h6 {
    color: #422006;
}

.lead-note-card .lead-note-form label {
    color: #854d0e;
}

.lead-note-card .lead-note-form .form-select,
.lead-note-card .lead-note-form textarea {
    border-color: rgba(133, 77, 14, 0.24);
    background: rgba(255, 255, 255, 0.64);
    color: #422006;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.lead-note-card .lead-note-form textarea::placeholder {
    color: rgba(66, 32, 6, 0.58);
}

.lead-note-card .lead-note-form textarea:focus,
.lead-note-card .lead-note-form .form-select:focus {
    border-color: #ca8a04;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.18);
}

.lead-note-card .lead-detail-action.is-primary {
    background: #854d0e;
    border-color: #854d0e;
    color: #fff;
    box-shadow: 0 10px 18px rgba(133, 77, 14, 0.22);
}

.lead-note-card .lead-detail-action.is-primary:hover {
    background: #713f12;
    border-color: #713f12;
}

.lead-note-form textarea {
    border-radius: 8px;
    border-color: #d7e0ea;
    background: #f8fafc;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    resize: vertical;
}

.lead-note-form .lead-detail-action {
    width: 100%;
}

.lead-timeline-card {
    border-left: 4px solid #1d4ed8 !important;
}

.lead-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.lead-timeline-head span {
    color: #1d4ed8;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lead-timeline-head i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -2px 0 14px;
}

.lead-timeline-filters button {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid #dbe7f2;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.lead-timeline-filters button:hover,
.lead-timeline-filters button.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.lead-timeline-list {
    position: relative;
    display: grid;
    gap: 12px;
}

.lead-timeline-list::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 17px;
    width: 2px;
    background: #e2e8f0;
}

.lead-timeline-item {
    --timeline-color: #1d4ed8;
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
}

.lead-timeline-item.is-fresh {
    animation: leadTimelineFresh 0.52s ease;
}

.lead-timeline-dot {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--timeline-color) 12%, white);
    border: 1px solid color-mix(in srgb, var(--timeline-color) 28%, white);
    color: var(--timeline-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lead-timeline-item strong {
    color: #0f172a;
    display: block;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.25;
}

.lead-timeline-item p {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 2px 0;
}

.lead-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.lead-timeline-meta span {
    min-height: 24px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 900;
}

.lead-timeline-meta i {
    color: var(--timeline-color);
}

.lead-timeline-item.is-warning { --timeline-color: #eab308; }
.lead-timeline-item.is-success { --timeline-color: #16a34a; }
.lead-timeline-item.is-read { --timeline-color: #475569; }
.lead-timeline-item.is-stage { --timeline-color: #1d4ed8; }
.lead-timeline-item.is-agent { --timeline-color: #6d28d9; }
.lead-timeline-item.is-property { --timeline-color: #0f766e; }
.lead-timeline-item.is-created { --timeline-color: #0284c7; }
.lead-timeline-item.is-activity { --timeline-color: #334155; }
.lead-timeline-item[data-timeline-category="tasks"] { --timeline-color: #7c3aed; }
.lead-timeline-item[data-timeline-category="visits"] { --timeline-color: #0f766e; }

@keyframes leadTimelineFresh {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lead-detail-page,
    .lead-detail-hero,
    .lead-detail-avatar,
    .lead-detail-question,
    .lead-detail-tags .leads-priority-badge,
    .lead-detail-tags > span,
    .lead-health-card,
    .lead-detail-info-card,
    .lead-side-card,
    .lead-next-action-card,
    .lead-next-action-link,
    .lead-agenda-item,
    .lead-timeline-item.is-fresh {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.lead-context-card {
    border-left: 4px solid #0f766e !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.lead-context-card .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-context-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.lead-context-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.lead-context-copy span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-context-copy strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.lead-context-copy small {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
}

.lead-context-link {
    margin-left: auto;
    border-radius: 8px;
    border: 1px solid #99f6e4;
    background: #ccfbf1;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.lead-context-link:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

@media (max-width: 1199px) {
    .leads-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leads-analytics-grid {
        grid-template-columns: 1fr;
    }

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

    .lead-detail-hero {
        grid-template-columns: 1fr;
    }

    .lead-detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .leads-page .page-toolbar {
        align-items: stretch !important;
    }

    .leads-toolbar-panel {
        min-width: 0;
        text-align: left;
    }

    .leads-conversion-copy {
        text-align: left;
    }

    .leads-metrics-grid,
    .leads-analytics-grid,
    .leads-filter-grid {
        grid-template-columns: 1fr;
    }

    .leads-analytics-column-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .leads-analytics-column-head span {
        text-align: left;
    }

    .leads-search-suggestion {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .leads-search-suggestion-side {
        grid-column: 2;
        justify-items: start;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .leads-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .leads-list-card .table-responsive {
        display: none;
    }

    .leads-mobile-list {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .leads-pipeline-summary {
        width: 100%;
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .leads-pipeline-summary > span {
        min-width: 0;
    }

    .leads-bulk-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .leads-bulk-controls {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .leads-bulk-controls .form-select {
        max-width: none;
    }

    .leads-action-group {
        min-width: 160px;
        grid-template-columns: repeat(3, 46px);
    }

    .leads-action-button {
        width: 46px;
        height: 46px;
    }

    .leads-mobile-actions .leads-action-button {
        width: 100%;
    }

    .lead-detail-title-row {
        align-items: flex-start;
    }

    .lead-detail-actions,
    .lead-detail-grid,
    .lead-contact-edit-grid,
    .lead-agenda-grid {
        grid-template-columns: 1fr;
    }

    .lead-health-grid {
        grid-template-columns: 1fr;
    }

    .lead-detail-action,
    .lead-contact-edit-actions .lead-detail-action {
        width: 100%;
    }

    .lead-contact-edit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lead-context-card .card-body {
        display: grid;
        grid-template-columns: 44px 1fr;
    }

    .lead-context-link {
        grid-column: 1 / -1;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .leads-mobile-grid,
    .leads-mobile-controls {
        grid-template-columns: 1fr;
    }

    .lead-detail-title-row {
        display: grid;
    }
}

.description-public-note,
.description-internal-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.86rem;
}

.description-public-note {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.description-internal-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.description-field-card {
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.description-field-card.featured {
    background: #f8fffd;
    border-color: #b7eadf;
}

.description-field-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.description-field-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.description-field-head small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.description-counter {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
}

.description-counter.good {
    background: #ecfdf5;
    color: #0f5132;
}

.description-counter.warn {
    background: #fffbeb;
    color: #92400e;
}

.description-linked-features {
    border: 1px dashed #b7eadf;
    border-radius: 8px;
    background: #f8fffd;
    padding: 10px;
}

.description-linked-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.description-linked-head span {
    color: #0f5132;
    font-size: 0.8rem;
    font-weight: 800;
}

.description-linked-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.description-linked-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #0f5132;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 700;
}

.description-linked-list small {
    color: #64748b;
    font-size: 0.8rem;
}

.description-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.description-checklist span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.description-checklist span.done {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #0f5132;
}

.property-internal-section {
    border-left-color: #f97316 !important;
}

.property-internal-section .card-header {
    background: #fff7ed !important;
}

.property-smart-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    padding: 12px 14px;
    color: #334155;
}

.property-smart-summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #0f766e;
    flex: 0 0 auto;
}

.property-smart-summary strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
}

.property-smart-summary span {
    display: block;
    margin-top: 2px;
    font-size: 0.84rem;
}

.property-metrics-grid {
    align-items: stretch;
}

.property-metric-card {
    height: 100%;
    min-height: 118px;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-metric-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #2563eb;
    flex: 0 0 auto;
}

.property-stepper {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.property-stepper .form-control {
    border: 0;
    border-left: 1px solid #e5edf5;
    border-right: 1px solid #e5edf5;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    min-width: 0;
}

.property-stepper .form-control:focus {
    box-shadow: none;
}

.property-stepper-btn {
    border: 0;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.property-stepper-btn:hover {
    background: #ecfdf5;
    color: #0f766e;
}

.property-metric-unit {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: auto;
}

.property-toggle-choice {
    min-height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    color: #475569;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.property-toggle-choice .bi {
    color: #94a3b8;
}

.property-form-page .btn-check:checked + .property-toggle-choice {
    background: #ecfdf5 !important;
    border-color: #0f766e !important;
    color: #0f5132 !important;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.property-form-page .btn-check:checked + .property-toggle-choice .bi {
    color: #0f5132 !important;
}

.property-smart-alert {
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    padding: 10px 12px;
    font-size: 0.86rem;
}

.property-side-panel {
    border: 1px solid #dfe7ef !important;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}

.property-quality-card {
    border: 1px solid #cfe5dc !important;
    border-top: 4px solid #0f766e !important;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.09) !important;
}

.property-quality-card .card-header {
    background: #ecfdf5 !important;
    border-bottom: 1px solid #cfe5dc;
}

.property-quality-card .progress {
    background: #dbe7e2;
}

.property-quality-card li {
    color: #475569;
}

.property-map-card {
    border: 1px solid #d8e4f0 !important;
    border-top: 4px solid #2563eb !important;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

.property-map-card .card-header {
    background: #eff6ff !important;
    border-bottom: 1px solid #d8e4f0;
}

.property-map-preview {
    width: 100%;
    height: 220px;
    min-height: 220px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3f7;
    position: relative;
}

.property-map-empty {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    text-align: center;
    padding: 24px;
    background:
        linear-gradient(rgba(248, 250, 252, 0.68), rgba(248, 250, 252, 0.82)),
        url('../ui/map-coordinates-placeholder.png') center / cover no-repeat;
}

.property-map-preview .leaflet-container,
.property-map-preview.leaflet-container {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px;
    border-radius: 8px;
}

.property-map-preview .leaflet-pane,
.property-map-preview .leaflet-tile,
.property-map-preview .leaflet-marker-icon,
.property-map-preview .leaflet-marker-shadow,
.property-map-preview .leaflet-tile-container,
.property-map-preview .leaflet-pane > svg,
.property-map-preview .leaflet-pane > canvas,
.property-map-preview .leaflet-zoom-box,
.property-map-preview .leaflet-image-layer,
.property-map-preview .leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.property-map-preview .leaflet-tile,
.property-map-preview .leaflet-marker-icon,
.property-map-preview .leaflet-marker-shadow {
    user-select: none;
    -webkit-user-drag: none;
}

.property-map-preview .leaflet-tile-pane {
    z-index: 200;
}

.property-map-preview .leaflet-overlay-pane {
    z-index: 400;
}

.property-map-preview .leaflet-marker-pane {
    z-index: 600;
}

.property-map-preview .leaflet-popup-pane {
    z-index: 700;
}

.property-map-preview .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.property-map-preview .leaflet-tile-container {
    line-height: 0;
}

.property-map-controls {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.property-map-control {
    width: 38px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.property-map-control:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.property-map-control-home {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.property-map-empty .bi {
    font-size: 1.55rem;
    color: #2563eb;
}

.property-map-empty strong {
    color: #334155;
    font-size: 0.86rem;
}

.property-map-empty span {
    max-width: 230px;
    font-size: 0.76rem;
    line-height: 1.3;
}

.property-map-marker {
    background: transparent;
    border: 0;
}

.property-map-marker-pin {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #dc2626;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-map-marker-pin .bi {
    transform: rotate(45deg);
    color: #fff;
    font-size: 1rem;
}

.property-map-marker-label {
    display: inline-block;
    margin-top: -2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    white-space: nowrap;
    transform: translateX(-50%);
    position: relative;
    left: 50%;
}

.quick-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-feature-tabs {
    gap: 6px;
}

.quick-feature-tabs .nav-link {
    border: 1px solid #d7e0ea;
    color: #475569;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
}

.property-form-page .quick-feature-tabs .nav-link.active {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.18);
}

.quick-feature-chip {
    border: 1px solid #d7e0ea;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.quick-feature-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fbff;
}

.property-form-page .quick-feature-chip.active {
    border-color: #0f766e !important;
    background: #ecfdf5 !important;
    color: #0f5132 !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.property-form-page .quick-feature-chip.active .bi,
.property-form-page .quick-feature-chip.active span {
    color: #0f5132 !important;
}

.property-form-page .btn-check:checked + .btn-outline-primary {
    background: #ecfdf5 !important;
    border-color: #0f766e !important;
    color: #0f5132 !important;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.property-form-page .btn-check:checked + .btn-outline-primary .bi {
    color: #0f5132 !important;
}

@media (min-width: 992px) {
    .property-form-sidebar {
        position: sticky;
        top: 92px;
        align-self: flex-start;
    }
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1a3a5c 100%);
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.backdrop-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

.min-vh-75 { min-height: 75vh; }

/* Property Cards */
.property-card {
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.property-img {
    height: 220px;
    object-fit: contain;
    background: #0b1220;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img {
    transform: none;
}

.property-detail-img {
    height: 450px;
    object-fit: contain;
    background: #0b1220;
}

@media (max-width: 768px) {
    .hero-section { min-height: 60vh; }
    .property-detail-img { height: 250px; }
    .property-img { height: 180px; }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.98);
    color: white;
    padding: 16px 0;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(8px);
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 90px;
}

/* Property Description */
.property-description {
    line-height: 1.8;
    color: #4a5568;
}

/* Pagination */
.page-link {
    border-radius: 8px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge adjustments */
.badge {
    font-weight: 500;
}

/* Card hover effect */
.card {
    transition: var(--transition);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive admin */
@media (max-width: 992px) {
    .navbar .container-fluid {
        padding: 0 16px;
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f8f9fa;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: #e8f0fe;
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.preview-thumb {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background: #eef2f7;
    border-radius: 6px;
}

.upload-preview-item {
    overflow: hidden;
}

.upload-preview-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.upload-preview-remove:hover {
    background: #b91c1c;
}

.upload-preview-handle {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: grab;
    touch-action: none;
}

.upload-preview-handle:active {
    cursor: grabbing;
}

[data-drag-index] {
    cursor: grab;
}

[data-drag-index].dragging {
    opacity: 0.4;
}

[data-drag-index].drag-over .upload-preview-item {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 6px;
}

.image-empty-state {
    min-height: 90px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.84rem;
    text-align: center;
}

.image-empty-state .bi {
    font-size: 1.6rem;
    color: #94a3b8;
}

/* Image Gallery */
.image-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: var(--transition);
}

.image-item:hover {
    border-color: var(--primary);
}

.image-thumb {
    height: 120px;
    width: 100%;
    object-fit: contain;
    background: #eef2f7;
    display: block;
    cursor: pointer;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.02) 55%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 1;
    padding: 5px;
    transition: var(--transition);
}

.image-item:hover .image-overlay {
    background: rgba(0,0,0,0.5);
    opacity: 1;
}

.image-actions {
    display: flex;
    gap: 4px;
}

.image-actions .btn {
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.image-actions .delete-image {
    padding: 4px 7px;
}

/* Touch devices can't trigger :hover, so keep the action buttons visible.
   Declared last so it wins over the rules above at equal specificity. */
@media (hover: none) {
    .image-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.35);
    }

    .image-actions .btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

.cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ffc107;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.drag-handle {
    cursor: grab;
    color: #adb5bd;
    font-size: 1.25rem;
    display: inline-block;
    padding: 6px 10px;
    touch-action: none;
}

.drag-handle:active {
    cursor: grabbing;
}

[data-img-id].dragging {
    opacity: 0.4;
}

[data-img-id].drag-over {
    border-top: 3px solid var(--primary);
}

.image-order {
    font-size: 0.7rem;
    line-height: 1;
}

/* Custom form focus */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: var(--primary);
}

/* Button transitions */
.btn {
    transition: var(--transition);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* WhatsApp Messenger */
.wa-messenger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wa-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.wa-float:active {
    transform: scale(0.95);
}

.wa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.wa-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: none;
    overflow: hidden;
    animation: waSlideUp 0.3s ease;
}

.wa-panel.open {
    display: block;
}

@keyframes waSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-panel-header {
    background: #075E54;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.wa-panel-header .bi-whatsapp {
    font-size: 22px;
}

.wa-panel-header .btn-close {
    margin-left: auto;
    font-size: 13px;
}

.wa-panel-body {
    padding: 16px;
}

.wa-greeting {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #dcf8c6;
    padding: 12px;
    border-radius: 12px 12px 12px 4px;
    margin-bottom: 14px;
    position: relative;
}

.wa-greeting::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    border: 8px solid transparent;
    border-top-color: #dcf8c6;
    border-bottom: 0;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: #075E54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.wa-quick-replies {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.wa-quick-replies .btn {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Responsive: mobile adjustments */
@media (max-width: 480px) {
    .wa-panel {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 68px;
    }
    .wa-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

/* Filter tags / badges */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f0fe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.filter-tag .bi-x {
    cursor: pointer;
    font-size: 14px;
}

/* Property card refinements */
.property-card .badge.bg-light {
    font-size: 10px;
    padding: 2px 6px;
    font-weight: 500;
}

.btn-success {
    background: #25D366;
    border-color: #25D366;
}

.btn-success:hover {
    background: #1da851;
    border-color: #1da851;
}

/* Improved hero for mobile */
@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    .hero-section .lead {
        font-size: 0.95rem;
    }
    .hero-section .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Kanban board (Funil de Vendas) */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    flex: 0 0 260px;
    min-width: 260px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.kanban-column-header {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 3px solid #6c757d;
    border-radius: 10px 10px 0 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 80px;
    transition: var(--transition);
}

.kanban-cards.drag-over {
    background: #e8f0fe;
}

.kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: grab;
}

.kanban-card.dragging {
    opacity: 0.4;
}

.kanban-card:active {
    cursor: grabbing;
}

/* Quick-pick dropdown for metric inputs */
.property-stepper-input-wrapper {
    position: relative;
    flex: 1;
}

.property-stepper-quickpick {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    padding: 6px;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.property-stepper-quickpick.show {
    display: grid;
}

.quickpick-btn {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quickpick-btn:hover {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.quickpick-btn:active {
    transform: scale(0.95);
}

/* Stepper select (andar): .property-stepper usa grid de 3 colunas (36px botão-/campo/36px
   botão+) para os steppers numéricos. O select não tem os botões +/-, só um filho, então
   sem essa sobrescrita ele fica espremido na 1ª coluna de 36px (posicionamento automático
   do grid) — some quase por completo e só aparece corretamente ao abrir o dropdown. */
.property-stepper.property-stepper-select {
    display: block;
    grid-template-columns: none;
}

.property-stepper-select .form-select {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 0;
    width: 100%;
}

/* Mobiliado radio group */
.property-mobiliado-group .btn-group {
    width: 100%;
}

.property-mobiliado-group .btn-group .btn {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 8px;
    flex: 1;
}

.property-mobiliado-group .btn-check:checked + .btn {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

/* Property form metric card adjustments */
.property-metric-card .form-select.property-metric-input {
    min-height: 38px;
}

/* Public map approximate */
#propertyApproxMap {
    border-radius: 12px;
}

/* Info venda badges */
.dm-card .badge.rounded-pill {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Reference code input */
.property-ref-code {
    display: flex;
    align-items: stretch;
}

.property-ref-code .property-ref-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 6px 0 0 6px;
    white-space: nowrap;
}

.property-ref-code .form-control {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

/* Public ref code badge */
.dm-ref-code {
    display: flex;
    align-items: center;
}

.dm-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: #475569;
}

.dm-ref-badge i {
    color: #0f766e;
    font-size: 1rem;
}

.dm-ref-badge strong {
    color: #0f172a;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Contact info in sidebar */
.dm-contact-card-header .bx-phone,
.dm-contact-card-header .bxl-whatsapp,
.dm-contact-card-header .bx-envelope {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Visitas */
.visitas-hero-toolbar {
    border-left-color: #0f766e !important;
}

.visitas-toolbar-icon {
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
}

.visitas-toolbar-eyebrow {
    color: #0f766e !important;
}

.visitas-page a.property-save-btn {
    text-decoration: none;
    justify-content: center;
}

.visitas-page a.properties-metric-card {
    color: inherit;
    text-decoration: none;
}

.visitas-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    border: 1px solid;
}

.visitas-alert > i {
    font-size: 1.2rem;
}

.visitas-alert > div {
    flex: 1;
}

.visitas-alert.is-requested { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.visitas-alert.is-reminder { background: #fffbeb; border-color: #fde68a; color: #78350f; }

.visitas-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.visitas-filter-bar .form-select {
    width: auto;
    min-width: 160px;
}

.visitas-search {
    flex: 1 1 240px;
    max-width: 360px;
}

.visitas-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
}

.visitas-status-badge.is-requested { background: #dbeafe; color: #1d4ed8; }
.visitas-status-badge.is-scheduled { background: #fef3c7; color: #92400e; }
.visitas-status-badge.is-confirmed { background: #cffafe; color: #0e7490; }
.visitas-status-badge.is-done { background: #dcfce7; color: #15803d; }
.visitas-status-badge.is-noshow { background: #f3e8ff; color: #7e22ce; }
.visitas-status-badge.is-canceled { background: #f1f5f9; color: #64748b; }
.visitas-status-badge.is-late { background: #fee2e2; color: #b91c1c; }
.visitas-status-badge.is-site { background: #e0e7ff; color: #4338ca; }

.visitas-list {
    display: grid;
}

.visitas-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
    border-left: 4px solid transparent;
}

.visitas-item:last-child {
    border-bottom: 0;
}

.visitas-item:hover {
    background: #f8fafc;
}

.visitas-item.is-requested { border-left-color: #3b82f6; }
.visitas-item.is-scheduled { border-left-color: #f59e0b; }
.visitas-item.is-confirmed { border-left-color: #06b6d4; }
.visitas-item.is-done { border-left-color: #22c55e; }
.visitas-item.is-noshow { border-left-color: #a855f7; }
.visitas-item.is-canceled { border-left-color: #cbd5e1; opacity: 0.75; }
.visitas-item.is-late { border-left-color: #ef4444; background: #fff7f7; }

.visitas-item-date {
    text-align: center;
    border-radius: 8px;
    background: #f1f5f9;
    padding: 6px 4px;
    line-height: 1.15;
}

.visitas-item-date span {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.visitas-item-date strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
}

.visitas-item-date em {
    display: block;
    color: #0f766e;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
}

.visitas-item-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.visitas-item-title a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
}

.visitas-item-title a:hover {
    color: #0f766e;
}

.visitas-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: #64748b;
    font-size: 0.78rem;
}

.visitas-item-note {
    margin-top: 6px;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.78rem;
    display: inline-block;
}

.visitas-item-note.is-result { background: #f0fdf4; color: #166534; }
.visitas-item-note.is-cancel { background: #f8fafc; color: #64748b; }

.visitas-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.visitas-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 16px;
}

.visitas-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

/* Agenda semanal */
.visitas-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.visitas-day {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visitas-day.is-today {
    border-color: #14b8a6;
    box-shadow: inset 0 3px 0 #14b8a6;
    background: #f0fdfa;
}

.visitas-day.is-past {
    opacity: 0.8;
}

.visitas-day-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #64748b;
    font-size: 0.78rem;
}

.visitas-day-head strong {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 500;
}

.visitas-day-add {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

.visitas-day-add:hover {
    color: #0f766e;
}

.visitas-day-empty {
    color: #cbd5e1;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 16px;
}

.visitas-event {
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    padding: 6px 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.78rem;
}

.visitas-event:hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.visitas-event.is-requested { border-left-color: #3b82f6; }
.visitas-event.is-confirmed { border-left-color: #06b6d4; }
.visitas-event.is-done { border-left-color: #22c55e; }
.visitas-event.is-noshow { border-left-color: #a855f7; }
.visitas-event.is-canceled { border-left-color: #cbd5e1; opacity: 0.6; text-decoration: line-through; }
.visitas-event.is-late { border-left-color: #ef4444; background: #fff7f7; }

.visitas-event-time {
    color: #0f766e;
    font-weight: 500;
}

.visitas-event strong {
    font-weight: 500;
}

.visitas-event small {
    color: #64748b;
}

.visitas-event .visitas-status-badge {
    justify-self: start;
    font-size: 0.66rem;
    padding: 1px 6px;
}

/* Formulário */
.visitas-conflicts {
    display: grid;
    gap: 4px;
}

.visitas-conflicts a {
    color: #991b1b;
    font-size: 0.85rem;
}

.visitas-side-facts {
    display: grid;
    gap: 4px;
    color: #64748b;
    font-size: 0.78rem;
    border-top: 1px solid #eef2f7;
    padding-top: 8px;
    margin-top: 4px;
}

.visitas-history {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    border-left: 2px solid #e2e8f0;
    display: grid;
    gap: 8px;
    font-size: 0.82rem;
}

.visitas-history strong {
    display: block;
    font-weight: 500;
    color: #0f172a;
}

.visitas-history small {
    color: #64748b;
    font-size: 0.72rem;
}

.visitas-result-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 1199.98px) {
    .visitas-week {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .visitas-week {
        grid-template-columns: 1fr;
    }
    .visitas-day {
        min-height: 0;
    }
    .visitas-item {
        grid-template-columns: 60px 1fr;
    }
    .visitas-item-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    .visitas-filter-bar .form-select {
        flex: 1 1 140px;

/* Notificações do topo */
.notificacoes-menu {
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: 430px;
    overflow-y: auto;
    padding: 0;
}
.notificacoes-menu .dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: .82rem;
    color: #334155;
}
.notificacao-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    white-space: normal;
    border-bottom: 1px solid #f1f5f9;
}
.notificacao-item.is-unread {
    background: #f0f9ff;
}
.notificacao-item:hover {
    background: #f8fafc;
}
.notificacao-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}
.notificacao-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.notificacao-copy strong {
    font-size: .82rem;
    font-weight: 600;
    color: #0f172a;
}
.notificacao-copy small {
    font-size: .76rem;
    color: #64748b;
    line-height: 1.3;
}
.notificacao-copy em {
    font-style: normal;
    font-size: .7rem;
    color: #94a3b8;
}
@media (max-width: 575.98px) {
    .notificacoes-menu { width: 300px; }
}
