﻿/* Venture UI Kit Styles */

/* ============== MONT FONT-FACE ============== */
@font-face {
    font-family: 'Mont';
    src: local("Mont Light"), local("Mont-Light"),
         url(fonts/Mont-Light.woff2) format("woff2"),
         url(fonts/Mont-Light.woff) format("woff"),
         url(fonts/Mont-Light.ttf) format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mont';
    src: local("Mont Regular"), local("Mont-Regular"),
         url(fonts/Mont-Regular.woff2) format("woff2"),
         url(fonts/Mont-Regular.woff) format("woff"),
         url(fonts/Mont-Regular.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mont';
    src: local("Mont SemiBold"), local("Mont-SemiBold"),
         url(fonts/Mont-SemiBold.woff2) format("woff2"),
         url(fonts/Mont-SemiBold.woff) format("woff"),
         url(fonts/Mont-SemiBold.ttf) format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mont';
    src: local("Mont Bold"), local("Mont-Bold"),
         url(fonts/Mont-Bold.woff2) format("woff2"),
         url(fonts/Mont-Bold.woff) format("woff"),
         url(fonts/Mont-Bold.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============== GLOBAL FONT ============== */
:root {
    --font-family-base: 'Mont', sans-serif;
}
html, body, input, select, textarea, button {
    font-family: 'Mont', sans-serif;
}

/* ============== GLOBAL CHECKBOX STANDARDIZATION ============== */
/* All checkboxes must be exactly 16x16 pixels throughout the application */
input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    cursor: pointer !important;
}

/* Design System Colors */
:root {
    /* Primary Colors */
    --venture-primary: #000000;
    --venture-primary-light: #333333;
    --venture-primary-dark: #000000;
    
    /* Secondary Colors */
    --venture-secondary: #6B7280;
    --venture-secondary-light: #9CA3AF;
    --venture-secondary-dark: #374151;
    
    /* Background Colors */
    --venture-bg-primary: #FFFFFF;
    --venture-bg-secondary: #F9FAFB;
    --venture-bg-tertiary: #F3F4F6;
    
    /* Border Colors */
    --venture-border-light: #E5E7EB;
    --venture-border-medium: #D1D5DB;
    --venture-border-strong: #9CA3AF;
    
    /* Text Colors */
    --venture-text-primary: #000000;
    --venture-text-secondary: #6B7280;
    --venture-text-tertiary: #9CA3AF;
    
    /* Interactive Colors */
    --venture-blue: #3B82F6;
    --venture-blue-light: #EFF6FF;
    --venture-green: #10B981;
    --venture-red: #EF4444;
    --venture-yellow: #F59E0B;
    
    /* Shadows */
    --venture-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --venture-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --venture-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --venture-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --venture-font-size-xs: 12px;
    --venture-font-size-sm: 14px;
    --venture-font-size-base: 16px;
    --venture-font-size-lg: 18px;
    --venture-font-size-xl: 20px;
    --venture-font-size-2xl: 24px;
    --venture-font-size-3xl: 30px;
    --venture-font-size-4xl: 36px;
    
    --venture-line-height-tight: 1.25;
    --venture-line-height-snug: 1.375;
    --venture-line-height-normal: 1.5;
    --venture-line-height-relaxed: 1.625;
    
    /* Spacing */
    --venture-space-1: 0.25rem;
    --venture-space-2: 0.5rem;
    --venture-space-3: 0.75rem;
    --venture-space-4: 1rem;
    --venture-space-5: 1.25rem;
    --venture-space-6: 1.5rem;
    --venture-space-8: 2rem;
    --venture-space-10: 2.5rem;
    --venture-space-12: 3rem;
    --venture-space-16: 4rem;
    --venture-space-20: 5rem;
    
    /* Border Radius */
    --venture-radius-sm: 0.25rem;
    --venture-radius-md: 0.375rem;
    --venture-radius-lg: 0.5rem;
    --venture-radius-xl: 0.75rem;
    --venture-radius-2xl: 1rem;
}

/* Typography System */
.venture-heading-1 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-4xl);
    font-weight: 700;
    line-height: var(--venture-line-height-tight);
    color: var(--venture-text-primary);
}

.venture-heading-2 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-3xl);
    font-weight: 600;
    line-height: var(--venture-line-height-tight);
    color: var(--venture-text-primary);
}

.venture-heading-3 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-2xl);
    font-weight: 600;
    line-height: var(--venture-line-height-snug);
    color: var(--venture-text-primary);
}

.venture-heading-4 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xl);
    font-weight: 600;
    line-height: var(--venture-line-height-snug);
    color: var(--venture-text-primary);
}

.venture-heading-5 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-lg);
    font-weight: 600;
    line-height: var(--venture-line-height-snug);
    color: var(--venture-text-primary);
}

.venture-body-large {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-lg);
    font-weight: 400;
    line-height: var(--venture-line-height-relaxed);
    color: var(--venture-text-primary);
}

.venture-body-medium {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-base);
    font-weight: 400;
    line-height: var(--venture-line-height-normal);
    color: var(--venture-text-primary);
}

.venture-body-small {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 400;
    line-height: var(--venture-line-height-normal);
    color: var(--venture-text-secondary);
}

.venture-body-xs {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xs);
    font-weight: 400;
    line-height: var(--venture-line-height-normal);
    color: var(--venture-text-tertiary);
}

/* Button System */
.venture-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--venture-space-2);
    padding: var(--venture-space-3) var(--venture-space-4);
    border: 1px solid transparent;
    border-radius: var(--venture-radius-md);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
    line-height: var(--venture-line-height-tight);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.venture-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.venture-btn-primary {
    background-color: var(--venture-primary);
    color: white;
    border-color: var(--venture-primary);
}

.venture-btn-primary:hover:not(:disabled) {
    background-color: var(--venture-primary-light);
    border-color: var(--venture-primary-light);
}

.venture-btn-secondary {
    background-color: var(--venture-bg-primary);
    color: var(--venture-text-primary);
    border-color: var(--venture-border-medium);
}

.venture-btn-secondary:hover:not(:disabled) {
    background-color: var(--venture-bg-secondary);
    border-color: var(--venture-border-strong);
}

.venture-btn-ghost {
    background-color: transparent;
    color: var(--venture-text-secondary);
    border-color: transparent;
}

.venture-btn-ghost:hover:not(:disabled) {
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-primary);
}

/* Input System */
.venture-input {
    display: flex;
    width: 100%;
    padding: var(--venture-space-3) var(--venture-space-4);
    border: 1px solid var(--venture-border-medium);
    border-radius: var(--venture-radius-md);
    background-color: var(--venture-bg-primary);
    color: var(--venture-text-primary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    line-height: var(--venture-line-height-tight);
    transition: all 0.15s ease-in-out;
}

.venture-input::placeholder {
    color: var(--venture-text-tertiary);
}

.venture-input:focus {
    outline: none;
    border-color: var(--venture-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.venture-input:disabled {
    background-color: var(--venture-bg-tertiary);
    color: var(--venture-text-tertiary);
    cursor: not-allowed;
}

.venture-select {
    display: flex;
    width: 100%;
    padding: var(--venture-space-3) var(--venture-space-4);
    padding-right: var(--venture-space-8);
    border: 1px solid var(--venture-border-medium);
    border-radius: var(--venture-radius-md);
    background-color: var(--venture-bg-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--venture-space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    color: var(--venture-text-primary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    line-height: var(--venture-line-height-tight);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    appearance: none;
}

.venture-select:focus {
    outline: none;
    border-color: var(--venture-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.venture-textarea {
    display: flex;
    width: 100%;
    min-height: 80px;
    padding: var(--venture-space-3) var(--venture-space-4);
    border: 1px solid var(--venture-border-medium);
    border-radius: var(--venture-radius-md);
    background-color: var(--venture-bg-primary);
    color: var(--venture-text-primary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    line-height: var(--venture-line-height-normal);
    resize: vertical;
    transition: all 0.15s ease-in-out;
}

.venture-textarea::placeholder {
    color: var(--venture-text-tertiary);
}

.venture-textarea:focus {
    outline: none;
    border-color: var(--venture-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Card System */
.venture-card {
    background-color: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    box-shadow: var(--venture-shadow-sm);
    overflow: hidden;
}

.venture-card-header {
    padding: var(--venture-space-6);
    border-bottom: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-primary);
}

.venture-card-body {
    padding: var(--venture-space-6);
}

.venture-card-footer {
    padding: var(--venture-space-6);
    border-top: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-secondary);
}

/* Client Info Section (inline, not modal) */
#clientInfoModal {
    position: static !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    background: transparent !important;
    display: none;
    z-index: auto !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    padding-left: 3% !important;
    padding-right: 3% !important;
}

/* ===== CRM CARD LAYOUT ===== */
.crm-card-layout {
    max-width: 1500px;
    display: flex;
    min-height: calc(100vh - 120px);
 
    overflow: hidden;
  
}

/* Left panel */
.crm-card-left {
    width: 290px;
    min-width: 290px;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
    gap: 12px;
}

.crm-card-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.crm-card-title {
    display: none;
}

.crm-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding-bottom: 6px;
}

.crm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .07em;
    padding: 8px 14px 4px;
    text-transform: uppercase;
}

.crm-section-menu {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}
.crm-section-menu:hover { color: #374151; }

.crm-field-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 34px;
    gap: 6px;
}
.crm-field-row:hover { background: transparent; }

.crm-field-label {
    font-size: 14px;
    color: #6b7280;
    min-width: 90px;
    flex-shrink: 0;
}

.crm-card-left .crm-field-input {
    flex: 1;
    border: none !important;
    border-bottom: 1.5px solid #d1d5db !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    padding: 4px 2px;
    outline: none;
    min-width: 0;
    font-family: inherit;
    transition: border-color .2s;
    box-shadow: none !important;
}
.crm-card-left .crm-field-input:hover {
    border-bottom-color: #9ca3af !important;
    background: transparent !important;
    background-color: transparent !important;
}
.crm-card-left .crm-field-input:focus {
    border-bottom-color: #2563eb !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
.crm-card-left .crm-field-input::placeholder { color: #c0c5cc; font-weight: 400; }

.crm-card-left .crm-field-select {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M12 16l-7-7 1.4-1.4L12 13.2l5.6-5.6L19 9l-7 7z' fill='%236b7280'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 14px 14px !important;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    padding: 4px 20px 4px 2px;
    outline: none;
    cursor: pointer;
    min-width: 0;
    font-family: inherit;
    border-bottom: 1.5px solid transparent !important;
    border-radius: 0 !important;
    transition: border-color .2s;
    box-shadow: none !important;
}
.crm-card-left .crm-field-select:hover {
    border-bottom-color: #d1d5db !important;
    background-color: transparent !important;
}
.crm-card-left .crm-field-select:focus {
    border-bottom-color: #2563eb !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
.crm-card-left .crm-field-select option {
    font-size: 13px;
    padding: 8px 12px;
    font-family: 'Mont', sans-serif;
}

.crm-field-value-text {
    flex: 1;
    font-size: 12px;
    color: #111827;
    padding: 2px 3px;
}

.crm-card-actions {
    display: flex;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Right panel */
.crm-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    padding: 12px;
    gap: 12px;
}

.crm-tab-strip {
    display: flex;
    background: #fff;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
}

.crm-tab-btn {
    flex: 1 1 25%;
    padding: 11px 18px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    font-family: inherit;
}
.crm-tab-btn:hover { color: #1d4ed8; background: #f5f8ff; }
.crm-tab-btn.active { color: #1d4ed8; border-bottom: 2px solid #1d4ed8; font-weight: 600; }
.crm-tab-btn i { font-size: 14px; }

.crm-tab-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    position: relative;
}

.crm-tab-content .client-tab {
    display: none;
    height: 100%;
}
.crm-tab-content .client-tab.active { display: block; }
.custom-dialog-actions
{
    padding-top:15px;
}
#customAlertOkBtn
{
    border: 1px solid !important;
    width: 100% !important;
}

.crm-search-block {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 20px 24px;
  
    overflow-y: auto;
}

/* Search request tab */


.crm-search-hint {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}

.crm-search-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.crm-search-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: flex-end;
}

.crm-search-field { margin-bottom: 14px; }

.crm-search-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.crm-range-pair {
    display: flex;
    align-items: center;
    gap: 5px;
}
.crm-range-pair .venture-input { width: 80px; }

.crm-search-row-4col {
    flex-wrap: nowrap;
}
.crm-search-field-quarter {
    flex: 1 1 0;
    min-width: 0;
}
.crm-search-field-quarter .crm-range-pair {
    width: 100%;
}
.crm-search-field-quarter .crm-range-pair .venture-input {
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    background-color: var(--venture-bg-secondary) !important;
}
.crm-range-sep { color: #9ca3af; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
    .crm-card-layout { flex-direction: column; }
    .crm-card-left { width: 100%; min-width: unset; border-right: none; }
}

#clientInfoModal .client-card-section {
    background: var(--venture-bg-primary, #fff);
    border-radius: var(--venture-radius-lg, 12px);
    padding: var(--venture-space-6, 24px);
}

#clientInfoModal .client-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

#clientInfoModal .client-info-tabs {
    display: flex;
    flex-direction: column;
}

#clientInfoModal .client-tab {
    overflow-y: auto;
}

#clientInfoModal .client-tab .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--venture-space-6, 24px);
}

#clientInfoModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--venture-border-light, #e5e7eb);
    margin-top: 24px;
}

/* Modal display states - must override all other display properties */
#authModal.show,
.modal.show {
    display: flex !important;
}

/* Hidden modal state - must override all display properties */
#authModal.hidden,
.modal.hidden {
    display: none !important;
}

/* Tab System */
.client-info-tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.client-info-tabs .tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--venture-border-light);
    margin: 0;
    gap: 0;
    background-color: var(--venture-bg-secondary);
    flex-shrink: 0;
}

.client-info-tabs .tab-btn {
    padding: var(--venture-space-4) var(--venture-space-6);
    border: none;
    background: transparent;
    color: var(--venture-text-secondary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease-in-out;
    flex: 1;
    text-align: center;
    position: relative;
}

.client-info-tabs .tab-btn:hover {
    color: var(--venture-text-primary);
    background-color: var(--venture-bg-primary);
}

.client-info-tabs .tab-btn.active {
    color: var(--venture-primary);
    background-color: var(--venture-bg-primary);
    border-bottom-color: var(--venture-primary);
}

.client-tab {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-top:0.5rem;

.client-tab.active {
    display: block;
}

/* Manual Map Pin */
.manual-map-pin-wrapper {
    margin: 8px 0 16px 0;
}

.manual-map-pin-wrapper .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--venture-radius-md, 8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#manualMapCanvas {
    border: 1px solid var(--venture-border-light, #e5e7eb);
    border-radius: var(--venture-radius-lg, 12px);
    overflow: visible;
}

.manual-map-coords {
    font-size: 12px;
    color: var(--venture-text-secondary, #666);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Form System */
.client-tab .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--venture-space-6);
    margin-bottom: var(--venture-space-6);
}

.client-tab .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--venture-space-2);
}

.client-tab .form-group.full-width {
    grid-column: 1 / -1;
}

.client-tab .form-group-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--venture-space-6);
}

.client-tab .form-group label {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-tight);
}

.client-tab .form-group input,
.client-tab .form-group select,
.client-tab .form-group textarea {
    padding: var(--venture-space-3) var(--venture-space-4);
    border: 1px solid var(--venture-border-medium);
    border-radius: var(--venture-radius-md);
    background-color: var(--venture-bg-primary);
    color: var(--venture-text-primary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    line-height: var(--venture-line-height-tight);
    transition: all 0.15s ease-in-out;
}

.client-tab .form-group input::placeholder,
.client-tab .form-group textarea::placeholder {
    color: var(--venture-text-tertiary);
}

.client-tab .form-group input:focus,
.client-tab .form-group select:focus,
.client-tab .form-group textarea:focus {
    outline: none;
    border-color: var(--venture-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.client-tab .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--venture-space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--venture-space-8);
    appearance: none;
}

.client-tab .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Search Bar */
.venture-search {
    position: relative;
    display: flex;
    align-items: center;
}

.venture-search input {
    padding-left: var(--venture-space-10);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e");
    background-position: left var(--venture-space-3) center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
}

.venture-search .search-shortcut {
    position: absolute;
    right: var(--venture-space-3);
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--venture-bg-tertiary);
    color: var(--venture-text-tertiary);
    font-size: var(--venture-font-size-xs);
    padding: var(--venture-space-1) var(--venture-space-2);
    border-radius: var(--venture-radius-sm);
    border: 1px solid var(--venture-border-light);
}

/* Badge System */
.venture-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--venture-space-1);
    padding: var(--venture-space-1) var(--venture-space-2);
    background-color: var(--venture-bg-tertiary);
    color: var(--venture-text-secondary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xs);
    font-weight: 500;
    line-height: var(--venture-line-height-tight);
    border-radius: var(--venture-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.venture-badge-primary {
    background-color: var(--venture-blue-light);
    color: var(--venture-blue);
}

.venture-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--venture-green);
}

.venture-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--venture-yellow);
}

.venture-badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--venture-red);
}

/* Navigation Updates */
.sidebar {
    background-color: var(--venture-bg-primary);
    border-right: 1px solid var(--venture-border-light);
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar-header {
    padding: var(--venture-space-6);
    border-bottom: 1px solid var(--venture-border-light);
    flex-shrink: 0;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .logo-svg {
    height: 35px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: var(--venture-space-4) 0;
    overflow-y: auto;
    list-style: none;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--venture-space-3);
    padding: var(--venture-space-3) var(--venture-space-6);
    color: var(--venture-text-secondary);
    text-decoration: none;
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    border-radius: 0;
    margin: 0 var(--venture-space-3);
    border-radius: var(--venture-radius-md);
}

.sidebar-nav a:hover {
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-primary);
}

.sidebar-nav a.active {
    background-color: var(--venture-primary);
    color: #ffffff;
}

.sidebar-nav a.active span,
.sidebar-nav a.active i {
    color: #ffffff;
}

.sidebar-nav a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header .logo-svg {
    max-width: 32px;
    transition: max-width 0.3s ease;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: var(--venture-space-3);
    margin: 0 var(--venture-space-2);
}

.sidebar.collapsed .sidebar-nav a i {
    margin: 0;
    font-size: 20px;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed .sidebar-status {
    display: none;
}

.sidebar-status {
    padding: var(--venture-space-6);
    border-top: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-secondary);
    flex-shrink: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--venture-space-3);
}

.status-item i {
    color: var(--venture-text-tertiary);
    font-size: 16px;
}

.status-info {
    flex: 1;
}
search-containersearch-container
.status-label {
    font-weight: 500;
    margin-bottom: var(--venture-space-1);
}

.status-time {
    color: var(--venture-text-tertiary);
}

/* Header Updates */
.top-header {
    display: flex;
    align-items: center;
    justify-content: center !important;
    background-color: var(--venture-bg-primary);
    border-bottom: 1px solid var(--venture-border-light);
    padding: var(--venture-space-4) var(--venture-space-6);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 84px;
}

.top-header .header-actions {
    position: absolute;
    right: var(--venture-space-6);
}

.top-header .search-container {
    max-width: 400px;
    width: 100%;
    flex: none !important;
}

/* Update for old header class to maintain compatibility */
.header {
    background-color: var(--venture-bg-primary);
    border-bottom: 1px solid var(--venture-border-light);
    padding: var(--venture-space-4) var(--venture-space-6);
    margin-left: 260px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    max-width: 400px;
    width: 100%;
    position: relative;
    flex: none;
    margin: 0 auto;
}

/* Main Content Layout */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: var(--venture-bg-secondary);
    transition: margin-left 0.3s ease;
}

/* Adjust main content when sidebar is collapsed */
.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Table System */
.venture-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--venture-bg-primary);
    border-radius: var(--venture-radius-lg);
    overflow: hidden;
    box-shadow: var(--venture-shadow-sm);
    border: 1px solid var(--venture-border-light);
}

.venture-table th {
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-secondary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--venture-space-3) var(--venture-space-4);
    text-align: left;
    border-bottom: 1px solid var(--venture-border-light);
}

.venture-table td {
    padding: var(--venture-space-4);
    border-bottom: 1px solid var(--venture-border-light);
    color: var(--venture-text-primary);
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
}

.venture-table tr:hover {
    background-color: var(--venture-bg-secondary);
}

/* Utility Classes */
.venture-text-center { text-align: center; }
.venture-text-right { text-align: right; }
.venture-text-left { text-align: left; }

.venture-font-bold { font-weight: 700; }
.venture-font-semibold { font-weight: 600; }
.venture-font-medium { font-weight: 500; }
.venture-font-normal { font-weight: 400; }

.venture-text-primary { color: var(--venture-text-primary); }
.venture-text-secondary { color: var(--venture-text-secondary); }
.venture-text-tertiary { color: var(--venture-text-tertiary); }

.venture-bg-primary { background-color: var(--venture-bg-primary); }
.venture-bg-secondary { background-color: var(--venture-bg-secondary); }
.venture-bg-tertiary { background-color: var(--venture-bg-tertiary); }

.venture-border-light { border-color: var(--venture-border-light); }
.venture-border-medium { border-color: var(--venture-border-medium); }
.venture-border-strong { border-color: var(--venture-border-strong); }

.venture-shadow-sm { box-shadow: var(--venture-shadow-sm); }
.venture-shadow-md { box-shadow: var(--venture-shadow-md); }
.venture-shadow-lg { box-shadow: var(--venture-shadow-lg); }
.venture-shadow-xl { box-shadow: var(--venture-shadow-xl); }

.venture-rounded-sm { border-radius: var(--venture-radius-sm); }
.venture-rounded-md { border-radius: var(--venture-radius-md); }
.venture-rounded-lg { border-radius: var(--venture-radius-lg); }
.venture-rounded-xl { border-radius: var(--venture-radius-xl); }
.venture-rounded-2xl { border-radius: var(--venture-radius-2xl); }

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--venture-space-3);
    padding: var(--venture-space-6) var(--venture-space-8);
    border-top: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-secondary);
    flex-shrink: 0;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--venture-space-2);
}

.checkbox-group .checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--venture-space-2);
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--venture-border-medium);
    border-radius: var(--venture-radius-sm);
    background-color: var(--venture-bg-primary);
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.15s ease-in-out;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--venture-primary);
    border-color: var(--venture-primary);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: 'âœ“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.checkbox-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.checkbox-group label {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    color: var(--venture-text-primary);
    cursor: pointer;
    line-height: var(--venture-line-height-normal);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--venture-space-3);
    cursor: pointer;
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-relaxed);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Places Grid for Location Checkboxes */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--venture-space-2);
    max-height: 200px;
    overflow-y: auto;
    padding: var(--venture-space-3);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-md);
    background-color: var(--venture-bg-secondary);
}

.places-grid .checkbox-item {
    padding: var(--venture-space-1) 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--venture-space-6);
    padding-bottom: var(--venture-space-4);
    border-bottom: 1px solid var(--venture-border-light);
}

.section-header h3 {
    margin: 0;
}

/* Autosearch Section */
.autosearch-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.autosearch-results {
    flex: 1;
    overflow-y: auto;
    margin-top: var(--venture-space-4);
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--venture-space-16);
    color: var(--venture-text-secondary);
}

.loading-state .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--venture-border-light);
    border-top: 2px solid var(--venture-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--venture-space-3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--venture-space-16);
    color: var(--venture-text-secondary);
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--venture-text-tertiary);
    margin-bottom: var(--venture-space-4);
}

.empty-state h3 {
    margin: 0 0 var(--venture-space-2) 0;
    font-size: var(--venture-font-size-lg);
    color: var(--venture-text-secondary);
}

.empty-state p {
    margin: 0;
    font-size: var(--venture-font-size-sm);
    color: var(--venture-text-tertiary);
}

/* Dashboard Cards & Components */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--venture-space-6);
    margin-bottom: var(--venture-space-8);
}

.stat-card {
    background-color: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: var(--venture-space-6);
    box-shadow: var(--venture-shadow-sm);
    transition: all 0.15s ease-in-out;
}

.stat-card:hover {
    box-shadow: var(--venture-shadow-md);
    transform: translateY(-1px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--venture-space-4);
}

.stat-card-title {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
    color: var(--venture-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--venture-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-secondary);
    font-size: 20px;
}

.stat-card-value {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-3xl);
    font-weight: 700;
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-tight);
    margin-bottom: var(--venture-space-2);
}

.stat-card-change {
    display: flex;
    align-items: center;
    gap: var(--venture-space-1);
    font-size: var(--venture-font-size-sm);
    font-weight: 500;
}

.stat-card-change.positive {
    color: var(--venture-green);
}

.stat-card-change.negative {
    color: var(--venture-red);
}

.stat-card-change.neutral {
    color: var(--venture-text-secondary);
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--venture-space-6);
}

.property-card {
    background-color: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    overflow: hidden;
    box-shadow: var(--venture-shadow-sm);
    transition: all 0.15s ease-in-out;
}

.property-card:hover {
    box-shadow: var(--venture-shadow-lg);
    transform: translateY(-2px);
}

.property-card-image {
    display: block;
    width: 100%;
    height: 200px;
    background-color: var(--venture-bg-tertiary);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.property-card-badge {
    position: absolute;
    top: var(--venture-space-3);
    right: var(--venture-space-3);
    background-color: var(--venture-primary);
    color: white;
    padding: var(--venture-space-1) var(--venture-space-3);
    border-radius: var(--venture-radius-sm);
    font-size: var(--venture-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.property-card-content {
    padding: var(--venture-space-6);
}

.property-card-title {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-lg);
    font-weight: 600;
    color: var(--venture-text-primary);
    margin-bottom: var(--venture-space-2);
    line-height: var(--venture-line-height-tight);
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: var(--venture-space-1);
    color: var(--venture-text-secondary);
    font-size: var(--venture-font-size-sm);
    margin-bottom: var(--venture-space-4);
}

.property-card-price {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-2xl);
    font-weight: 700;
    color: var(--venture-primary);
    margin-bottom: var(--venture-space-4);
}

.property-card-details {
    display: flex;
    gap: var(--venture-space-4);
    margin-bottom: var(--venture-space-4);
}

.property-card-detail {
    display: flex;
    align-items: center;
    gap: var(--venture-space-1);
    color: var(--venture-text-secondary);
    font-size: var(--venture-font-size-sm);
}

.property-card-actions {
    display: flex;
    gap: var(--venture-space-2);
    padding-top: var(--venture-space-4);
    border-top: 1px solid var(--venture-border-light);
}

/* Client Cards */
.client-card {
    background-color: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: var(--venture-space-6);
    box-shadow: var(--venture-shadow-sm);
    transition: all 0.15s ease-in-out;
}

.client-card:hover {
    box-shadow: var(--venture-shadow-md);
    transform: translateY(-1px);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: var(--venture-space-4);
    margin-bottom: var(--venture-space-4);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--venture-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-lg);
    font-weight: 600;
    color: var(--venture-text-secondary);
}

.client-info h3 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-lg);
    font-weight: 600;
    color: var(--venture-text-primary);
    margin: 0 0 var(--venture-space-1) 0;
}

.client-contact {
    color: var(--venture-text-secondary);
    font-size: var(--venture-font-size-sm);
}

.client-card-content {
    margin-bottom: var(--venture-space-4);
}

.client-search-query {
    background-color: var(--venture-bg-secondary);
    padding: var(--venture-space-3);
    border-radius: var(--venture-radius-md);
    font-size: var(--venture-font-size-sm);
    color: var(--venture-text-secondary);
    line-height: var(--venture-line-height-relaxed);
    margin-bottom: var(--venture-space-3);
}

.client-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--venture-space-4);
    border-top: 1px solid var(--venture-border-light);
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--venture-space-8);
    padding: var(--venture-space-6) var(--venture-space-8);
    background-color: var(--venture-bg-primary);
    border-bottom: 1px solid var(--venture-border-light);
}

/* Clients page specific header styles */
#clients .page-header {
    flex-wrap: wrap;
    gap: var(--venture-space-4);
    padding: 0 var(--venture-space-8);
    justify-content: flex-start;
}

#clients .clients-filters {
    width: 100%;
    background-color: var(--venture-bg-secondary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: var(--venture-space-6);
    margin-bottom: var(--venture-space-6);
}

.page-title {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-3xl);
    font-weight: 700;
    color: var(--venture-text-primary);
    margin: 0;
}

.page-subtitle {
    color: var(--venture-text-secondary);
    font-size: var(--venture-font-size-base);
    margin: var(--venture-space-1) 0 0 0;
}

.page-actions {
    display: flex;
    gap: var(--venture-space-3);
    align-items: center;
}

/* Search Results Status Groups */
.status-group {
    margin-bottom: var(--venture-space-8);
}

.status-group-title {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xl);
    font-weight: 600;
    color: var(--venture-text-primary);
    margin: 0 0 var(--venture-space-4) 0;
    padding-bottom: var(--venture-space-3);
    border-bottom: 2px solid var(--venture-border-light);
}

.status-group .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--venture-space-5);
}

/* Content Areas */
.content-area {
    padding: var(--venture-space-8);
}

.content-section {
    background-color: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: var(--venture-space-6);
    margin-bottom: var(--venture-space-6);
    box-shadow: var(--venture-shadow-sm);
}

.section-title {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xl);
    font-weight: 600;
    color: var(--venture-text-primary);
    margin: 0 0 var(--venture-space-4) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #clientInfoModal .client-tab .form-grid {
        grid-template-columns: 1fr;
        gap: var(--venture-space-4);
    }
    
    .client-tab .form-grid {
        grid-template-columns: 1fr;
        gap: var(--venture-space-4);
    }
    
    .client-tab .form-group-pair {
        grid-template-columns: 1fr;
        gap: var(--venture-space-4);
    }
    
    .client-info-tabs .tab-btn {
        padding: var(--venture-space-3) var(--venture-space-4);
        font-size: var(--venture-font-size-xs);
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content,
    .top-header,
    .header {
        margin-left: 0;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Global Search Styling */
#globalSearch {
    padding-left: 50px !important;
}

#globalSearch::placeholder {
    padding-left: 0;
    text-indent: 0;
}

/* ============== CUSTOM ALERT DIALOG ============== */
/* Custom Alert Dialog Styles - must have highest z-index */
.custom-dialog-overlay {
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
}

.custom-dialog-overlay.hidden {
    display: none;
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: customDialogSlideIn 0.3s ease-out;
}

@keyframes customDialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dialog-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.custom-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background-color: #EFF6FF;
    color: #3B82F6;
}

.custom-dialog-icon i {
    font-size: 28px;
}

.custom-dialog-icon.success {
    background-color: #D1FAE5;
    color: #10B981;
}

.custom-dialog-icon.warning {
    background-color: #FEF3C7;
    color: #F59E0B;
}

.custom-dialog-icon.error {
    background-color: #FEE2E2;
    color: #EF4444;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.custom-dialog-content {
    padding: 24px;
}

.custom-dialog-content p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    text-align: center;
}

.custom-dialog-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-dialog-actions .btn {
    min-width: 100px;
}

/* ============== PERFORMANCE CONSOLE ============== */
.performance-console {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 500px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.performance-console.hidden {
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
}

.performance-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.performance-console-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.performance-console-header .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.performance-console-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.performance-console-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.performance-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.performance-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #9CA3AF;
}

.timeline-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.timeline-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
}

.timeline-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.timeline-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.timeline-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.timeline-item-time {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
}

.timeline-item-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.timeline-item-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.timeline-item-details {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #6B7280;
}

.timeline-item-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-item-detail i {
    font-size: 14px;
}

/* Status label hover effect */
.status-label {
    transition: color 0.2s;
}

.status-label:hover {
    color: #667eea;
}

/* ============== LISTINGS SECTION ============== */
.listings-section {
    padding: 24px;
    background: var(--venture-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--venture-border-light);
}

.listings-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--venture-border-light);
}

.listings-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--venture-text-primary);
    margin-bottom: 8px;
}

.listings-header p {
    font-size: 14px;
    color: var(--venture-text-secondary);
    margin: 0;
}

.listing-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.platform-card {
    background: var(--venture-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--venture-border-medium);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.platform-header i {
    font-size: 20px;
    color: var(--venture-blue);
}

.platform-header span {
    flex: 1;
    font-weight: 600;
    color: var(--venture-text-primary);
}

.platform-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.platform-card p {
    margin: 0;
    color: var(--venture-text-secondary);
    font-size: 14px;
}

.listing-settings {
    background: var(--venture-bg-secondary);
    padding: 20px;
    border-radius: 8px;
}

.listing-settings h4 {
    margin: 0 0 15px 0;
    color: var(--venture-text-primary);
}

.listing-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--venture-text-primary);
}

.listing-settings input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Listing Client Cards */
.listing-client-card {
    background: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.listing-client-card:hover {
    box-shadow: var(--venture-shadow-lg);
    border-color: var(--venture-blue);
}

.listing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--venture-border-light);
}

.listing-broker-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--venture-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.listing-broker-avatar:hover {
    transform: scale(1.05);
}

.listing-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-broker-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-broker-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--venture-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.listing-broker-name:hover {
    color: var(--venture-blue);
}

.listing-client-id {
    font-size: 12px;
    color: var(--venture-text-tertiary);
}

.listing-operation-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.listing-operation-badge.rent {
    background: rgba(59, 130, 246, 0.1);
    color: var(--venture-blue);
}

.listing-operation-badge.sale {
    background: rgba(16, 185, 129, 0.1);
    color: var(--venture-green);
}

.listing-operation-badge i {
    font-size: 14px;
}

.listing-card-body {
    margin-bottom: 16px;
}

.listing-property-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--venture-text-secondary);
    margin-bottom: 12px;
}

.listing-property-type i {
    font-size: 16px;
    color: var(--venture-blue);
}

.listing-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.listing-criteria-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.criteria-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--venture-text-tertiary);
    letter-spacing: 0.5px;
}

.criteria-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--venture-text-primary);
}

.criteria-value i {
    font-size: 16px;
    color: var(--venture-blue);
}

.listing-client-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--venture-bg-tertiary);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--venture-text-secondary);
    margin-top: 12px;
}

.listing-client-description i {
    font-size: 16px;
    color: var(--venture-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--venture-border-light);
}

.listing-date-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--venture-text-tertiary);
}

.listing-date-info i {
    font-size: 14px;
}

.listing-viewed-badge,
.listing-not-viewed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.listing-viewed-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--venture-green);
}

.listing-not-viewed-badge {
    background: var(--venture-bg-secondary);
    color: var(--venture-text-tertiary);
}

.listing-viewed-badge i,
.listing-not-viewed-badge i {
    font-size: 12px;
}

/* Empty state for listings */
.listing-platforms:empty::after {
    content: "ÐÐµÐ¼Ð°Ñ” Ð¾Ð¿ÑƒÐ±Ð»Ñ–ÐºÐ¾Ð²Ð°Ð½Ð¸Ñ… Ð»Ñ–ÑÑ‚Ð¸Ð½Ð³Ñ–Ð²";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--venture-text-tertiary);
    font-style: italic;
}

/* ======= Agency Website Wizard ======= */
.aw-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 16px;
    margin-bottom: 8px;
}

.aw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.aw-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--venture-bg-tertiary);
    color: var(--venture-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--venture-border-light);
    transition: all 0.3s;
}

.aw-step.active .aw-step-number {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.aw-step.completed .aw-step-number {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.aw-step-label {
    font-size: 12px;
    color: var(--venture-text-tertiary);
    white-space: nowrap;
}

.aw-step.active .aw-step-label {
    color: #2563eb;
    font-weight: 600;
}

.aw-step.completed .aw-step-label {
    color: #16a34a;
}

.aw-step-line {
    flex: 1;
    height: 2px;
    background: var(--venture-border-light);
    margin: 0 8px;
    margin-bottom: 20px;
    min-width: 40px;
    max-width: 120px;
}

.aw-step-content {
    display: none;
    padding: 0 16px;
    max-width: 700px;
    margin: 0 auto;
}

.aw-step-content.active {
    display: block;
}

.aw-form-card {
    background: var(--venture-bg-primary);
    border: 1px solid var(--venture-border-light);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.aw-form-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aw-form-subtitle {
    color: var(--venture-text-tertiary);
    font-size: 14px;
    margin-bottom: 24px;
}

.aw-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--venture-border-light);
}

/* Logo upload */
.aw-logo-upload-area {
    text-align: center;
    padding: 16px 0;
}

.aw-logo-preview {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border: 2px dashed var(--venture-border-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    background: var(--venture-bg-secondary);
}

.aw-logo-preview:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.04);
}

.aw-logo-preview i {
    font-size: 40px;
    color: var(--venture-text-tertiary);
}

.aw-logo-preview span {
    font-size: 12px;
    color: var(--venture-text-tertiary);
}

.aw-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Theme grid */
.aw-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.aw-theme-card {
    border: 2px solid var(--venture-border-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.aw-theme-card:hover {
    border-color: #93b4f8;
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}

.aw-theme-card.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.aw-theme-preview {
    height: 130px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aw-tp-header {
    height: 24px;
    border-radius: 4px;
}

.aw-tp-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.aw-tp-card {
    border-radius: 3px;
}

.aw-theme-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--venture-bg-primary);
    border-top: 1px solid var(--venture-border-light);
}

.aw-theme-name {
    font-weight: 500;
    font-size: 14px;
}

.aw-theme-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--venture-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
}

.aw-theme-card.selected .aw-theme-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Theme color schemes */
.aw-theme-modern { background: #f0f0ff; }
.aw-theme-modern .aw-tp-header { background: linear-gradient(135deg, #667eea, #764ba2); }
.aw-theme-modern .aw-tp-card { background: #c7c7e8; }

.aw-theme-classic { background: #eef2f7; }
.aw-theme-classic .aw-tp-header { background: #1e3a8a; }
.aw-theme-classic .aw-tp-card { background: #9fb3ce; }

.aw-theme-minimal { background: #fafafa; }
.aw-theme-minimal .aw-tp-header { background: #e0e0e0; }
.aw-theme-minimal .aw-tp-card { background: #efefef; }

.aw-theme-dark { background: #1a1a2e; }
.aw-theme-dark .aw-tp-header { background: #000; }
.aw-theme-dark .aw-tp-card { background: #2d2d44; }

.aw-theme-elegant { background: #fdf8ee; }
.aw-theme-elegant .aw-tp-header { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.aw-theme-elegant .aw-tp-card { background: #e8dcc8; }
}

/* ==== Profile Edit Modal ==== */
.profile-edit-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 94%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: customDialogSlideIn 0.3s ease-out;
    margin: auto;
}

.profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-edit-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-edit-header h2 i {
    font-size: 22px;
    color: #0078d4;
}

.profile-edit-header .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    transition: background 0.15s;
}

.profile-edit-header .btn-icon:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.profile-edit-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Avatar section */
.profile-edit-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.profile-edit-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e5e7eb;
    transition: border-color 0.2s;
}

.profile-edit-avatar:hover {
    border-color: #0078d4;
}

.profile-edit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
}

.profile-edit-avatar:hover .profile-edit-avatar-overlay {
    opacity: 1;
}

.profile-edit-avatar-overlay i {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-edit-avatar-overlay span {
    font-size: 11px;
    font-weight: 500;
}

/* Form fields */
.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-edit-row {
    display: flex;
    gap: 12px;
}

.profile-edit-row-2col .profile-edit-field {
    flex: 1;
}

.profile-edit-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-edit-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-edit-field input,
.profile-edit-field textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    resize: vertical;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
    background: #fff;
}

.profile-edit-field input::placeholder,
.profile-edit-field textarea::placeholder {
    color: #9ca3af;
}

/* Footer */
.profile-edit-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.profile-edit-saved-msg {
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    animation: profileSavedFadeIn 0.3s ease-out;
}

@keyframes profileSavedFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-edit-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, transform 0.1s;
}

.profile-edit-footer .btn:active {
    transform: scale(0.97);
}

.profile-edit-footer .btn-primary {
    background: #0078d4;
    color: #fff;
}

.profile-edit-footer .btn-primary:hover {
    background: #106ebe;
}

.profile-edit-footer .btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.profile-edit-footer .btn-secondary:hover {
    background: #d1d5db;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-edit-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .profile-edit-row-2col {
        flex-direction: column;
    }
    .profile-edit-body {
        padding: 16px;
    }
}

/* ===== Property Editor 2-column layout ===== */
.pe-editor-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 100%;
}

.pe-left {
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
    gap: 12px;
}

.pe-right {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.pe-info-block {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding-bottom: 6px;
    margin-bottom: 0;
}

.pe-info-block-header {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .07em;
    padding: 8px 14px 4px;
    text-transform: uppercase;
    border-bottom: none;
    margin-bottom: 0;
}

.pe-dl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pe-dl-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 34px;
    gap: 6px;
}

.pe-dt {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    min-width: 90px;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: normal;
}

.pe-dd {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.pe-dd select {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M12 16l-7-7 1.4-1.4L12 13.2l5.6-5.6L19 9l-7 7z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    padding: 4px 20px 4px 2px;
    outline: none;
    cursor: pointer;
    min-width: 0;
    font-family: inherit;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    transition: border-color .2s;
    box-sizing: border-box;
}
.pe-dd select:hover { border-bottom-color: #d1d5db; }
.pe-dd select:focus { border-bottom-color: #2563eb; outline: none; box-shadow: none; }

.pe-dd input[type="text"],
.pe-dd input[type="tel"],
.pe-dd input[type="number"] {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #d1d5db;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    padding: 4px 2px;
    outline: none;
    min-width: 0;
    font-family: inherit;
    transition: border-color .2s;
    box-sizing: border-box;
    box-shadow: none;
}
.pe-dd input[type="text"]:hover,
.pe-dd input[type="tel"]:hover,
.pe-dd input[type="number"]:hover { border-bottom-color: #9ca3af; }

.pe-dd input[type="text"]:focus,
.pe-dd input[type="tel"]:focus,
.pe-dd input[type="number"]:focus {
    border-bottom-color: #2563eb;
    outline: none;
    box-shadow: none;
}

.pe-dd input::placeholder { color: #c0c5cc; font-weight: 400; }
.pe-dd select option { font-size: 13px; padding: 8px 12px; font-family: 'Mont', sans-serif; }

@media (max-width: 768px) {
    .pe-editor-layout {
        flex-direction: column;
    }
    .pe-left {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
}
/* ===== END Property Editor 2-column layout ===== */

/* ======= addProperty mycontainer layout ======= */
.mycontainer {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0 30px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.mycontainer > .pe-right {
    flex: 1;
    min-width: 0;
}

.mycontainer .property-tabs {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.property-tabs {
    display: flex;
    background: #fff;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
    gap: 0;
    border-bottom: none;
}

.property-tab-btn {
    flex: 1 1 0;
    padding: 11px 18px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    font-family: inherit;
}
.property-tab-btn:hover { color: #1d4ed8; background: #f5f8ff; }
.property-tab-btn.active { color: #1d4ed8; border-bottom: 2px solid #1d4ed8; font-weight: 600; background: none; }
.property-tab-btn i { font-size: 14px; }

.mycontainer .property-tab-content {
    padding-top: 16px;
}

@media (max-width: 900px) {
    .mycontainer {
        flex-direction: column;
        padding: 0 12px;
    }
    .mycontainer > .pe-left {
        width: 100% !important;
        position: static;
    }
}
/* ===== END mycontainer layout ===== */
/* ============== GLOBAL MONT FONT OVERRIDE ============== */
/* Ensures ALL elements use Mont, except icon fonts */
*:not([class*="ri-"]):not(.remixicon):not([class*="icon"]) {
    font-family: 'Mont', sans-serif !important;
}
/* Preserve icon fonts */
[class^="ri-"], [class*=" ri-"],
.ri-fw, i[class*="ri-"] {
    font-family: 'remixicon' !important;
}

/* === Journal layout: entries + add-entry always visible === */
#client-tab-journal.active {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    inset: 0;
}

#clientJournal.journal-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

#clientJournal .journal-entries-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 16px;
}

#clientJournal .journal-add-entry {
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 30%;
    padding: 16px;
    border-top: 1px solid var(--colorNeutralStroke1);
    background: var(--colorNeutralBackground1);
}