﻿/* ============================================ */
/* Source: fluent2-complete.css */
/* ============================================ */

/* 
 * Microsoft Fluent Design 2 for Real Estate CRM
 * Complete design system implementation
 */

/* ============== DESIGN TOKENS ============== */
:root {
    /* Typography */
    --font-family-base: 'Mont', sans-serif;
    --font-family-monospace: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    
    /* Font Sizes */
    --font-size-100: 10px;
    --font-size-200: 12px;
    --font-size-300: 14px;
    --font-size-400: 16px;
    --font-size-500: 18px;
    --font-size-600: 20px;
    --font-size-700: 28px;
    --font-size-800: 32px;
    --font-size-900: 40px;
    
    /* Line Heights */
    --line-height-100: 14px;
    --line-height-200: 16px;
    --line-height-300: 20px;
    --line-height-400: 22px;
    --line-height-500: 24px;
    --line-height-600: 28px;
    --line-height-700: 36px;
    --line-height-800: 40px;
    --line-height-900: 52px;
    
    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Brand Colors */
    --colorBrandForeground1: #0F6CBD;
    --colorBrandForeground2: #115EA3;
    --colorBrandBackground: #0F6CBD;
    --colorBrandBackgroundHover: #115EA3;
    --colorBrandBackgroundPressed: #0F548C;
    --colorBrandBackgroundSelected: #CCE7F0;
    
    /* Neutral Colors - Light Theme */
    --colorNeutralForeground1: #242424;
    --colorNeutralForeground2: #424242;
    --colorNeutralForeground3: #616161;
    --colorNeutralForeground4: #707070;
    --colorNeutralForegroundDisabled: #BDBDBD;
    
    --colorNeutralBackground1: #FFFFFF;
    --colorNeutralBackground2: #FAFAFA;
    --colorNeutralBackground3: #F5F5F5;
    --colorNeutralBackground4: #F0F0F0;
    --colorNeutralBackground5: #EBEBEB;
    --colorNeutralBackground6: #E0E0E0;
    
    --colorNeutralStroke1: #D1D1D1;
    --colorNeutralStroke2: #C7C7C7;
    --colorNeutralStroke3: #B3B3B3;
    --colorNeutralStrokeDisabled: #E0E0E0;
    
    /* Semantic Colors */
    --colorStatusSuccessForeground1: #0B6A0B;
    --colorStatusSuccessBackground1: #DFF6DD;
    --colorStatusErrorForeground1: #C50F1F;
    --colorStatusErrorBackground1: #FDE7E9;
    --colorStatusWarningForeground1: #F7630C;
    --colorStatusWarningBackground1: #FFF4CE;
    
    /* Shadows */
    --shadow-2: 0px 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-4: 0px 2px 4px rgba(0, 0, 0, 0.14);
    --shadow-8: 0px 4px 8px rgba(0, 0, 0, 0.14);
    --shadow-16: 0px 8px 16px rgba(0, 0, 0, 0.14);
    --shadow-28: 0px 14px 28px rgba(0, 0, 0, 0.22), 0px 10px 20px rgba(0, 0, 0, 0.18);
    --shadow-64: 0px 32px 64px rgba(0, 0, 0, 0.24), 0px 16px 32px rgba(0, 0, 0, 0.18);
    
    /* Border Radius */
    --borderRadiusNone: 0;
    --borderRadiusSmall: 2px;
    --borderRadiusMedium: 4px;
    --borderRadiusLarge: 6px;
    --borderRadiusXLarge: 8px;
    --borderRadiusCircular: 50%;
    
    /* Spacing */
    --spacingHorizontalNone: 0;
    --spacingHorizontalXXS: 2px;
    --spacingHorizontalXS: 4px;
    --spacingHorizontalSNudge: 6px;
    --spacingHorizontalS: 8px;
    --spacingHorizontalMNudge: 10px;
    --spacingHorizontalM: 12px;
    --spacingHorizontalL: 16px;
    --spacingHorizontalXL: 20px;
    --spacingHorizontalXXL: 24px;
    --spacingHorizontalXXXL: 32px;
    
    --spacingVerticalNone: 0;
    --spacingVerticalXXS: 2px;
    --spacingVerticalXS: 4px;
    --spacingVerticalSNudge: 6px;
    --spacingVerticalS: 8px;
    --spacingVerticalMNudge: 10px;
    --spacingVerticalM: 12px;
    --spacingVerticalL: 16px;
    --spacingVerticalXL: 20px;
    --spacingVerticalXXL: 24px;
    --spacingVerticalXXXL: 32px;
    
    /* Duration */
    --durationUltraFast: 50ms;
    --durationFaster: 100ms;
    --durationFast: 150ms;
    --durationNormal: 200ms;
    --durationGentle: 250ms;
    --durationSlow: 300ms;
    --durationSlower: 500ms;
    --durationUltraSlow: 1000ms;
    
    /* Curves */
    --curveAccelerateMax: cubic-bezier(0.9, 0.1, 1, 0.2);
    --curveAccelerateMid: cubic-bezier(0.7, 0, 1, 0.5);
    --curveAccelerateMin: cubic-bezier(0.8, 0, 0.78, 1);
    --curveDecelerateMax: cubic-bezier(0, 0, 0, 1);
    --curveDecelerateMid: cubic-bezier(0.1, 0.9, 0.2, 1);
    --curveDecelerateMin: cubic-bezier(0.33, 0, 0.1, 1);
    --curveEasyEaseMax: cubic-bezier(0.8, 0, 0.2, 1);
    --curveEasyEase: cubic-bezier(0.33, 0, 0.67, 1);
    --curveLinear: cubic-bezier(0, 0, 1, 1);
}

/* ============== RESET & BASE ============== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    color: var(--colorNeutralForeground1);
    background-color: var(--colorNeutralBackground2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============== TYPOGRAPHY ============== */
.fluent-display {
    font-size: var(--font-size-900);
    line-height: var(--line-height-900);
    font-weight: var(--font-weight-semibold);
}

.fluent-title1 {
    font-size: var(--font-size-800);
    line-height: var(--line-height-800);
    font-weight: var(--font-weight-semibold);
}

.fluent-title2 {
    font-size: var(--font-size-700);
    line-height: var(--line-height-700);
    font-weight: var(--font-weight-semibold);
}

.fluent-title3 {
    font-size: var(--font-size-600);
    line-height: var(--line-height-600);
    font-weight: var(--font-weight-semibold);
}

.fluent-subtitle1 {
    font-size: var(--font-size-500);
    line-height: var(--line-height-500);
    font-weight: var(--font-weight-semibold);
}

.fluent-subtitle2 {
    font-size: var(--font-size-400);
    line-height: var(--line-height-400);
    font-weight: var(--font-weight-semibold);
}

.fluent-body1 {
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    font-weight: var(--font-weight-regular);
}

.fluent-body1-strong {
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    font-weight: var(--font-weight-semibold);
}

.fluent-body2 {
    font-size: var(--font-size-200);
    line-height: var(--line-height-200);
    font-weight: var(--font-weight-regular);
}

.fluent-caption1 {
    font-size: var(--font-size-200);
    line-height: var(--line-height-200);
    font-weight: var(--font-weight-regular);
}

.fluent-caption2 {
    font-size: var(--font-size-100);
    line-height: var(--line-height-100);
    font-weight: var(--font-weight-regular);
}

/* ============== BUTTONS ============== */
.fluent-button,
.btn,
.btn-primary,
.btn-secondary,
.btn-text,
.refresh-data-btn,
.logout-btn {
    font-family: var(--font-family-base);
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-300);
    border-radius: var(--borderRadiusMedium);
    border: 1px solid transparent;
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacingHorizontalS);
    min-height: 32px;
    user-select: none;
    outline: none;
}

.fluent-button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--colorBrandForeground1);
    outline-offset: 2px;
}

.fluent-button:disabled,
.btn:disabled {
    cursor: not-allowed;
    color: var(--colorNeutralForegroundDisabled);
    background-color: var(--colorNeutralBackground5);
    border-color: var(--colorNeutralStrokeDisabled);
}

/* Button Variants */
.fluent-button--primary,
.btn-primary,
.auth-btn {
    background-color: var(--colorBrandBackground);
    color: white;
    border-color: var(--colorBrandBackground);
}

.fluent-button--primary:hover,
.btn-primary:hover,
.auth-btn:hover {
    background-color: var(--colorBrandBackgroundHover);
    border-color: var(--colorBrandBackgroundHover);
}

.fluent-button--primary:active,
.btn-primary:active,
.auth-btn:active {
    background-color: var(--colorBrandBackgroundPressed);
    border-color: var(--colorBrandBackgroundPressed);
}

.fluent-button--secondary,
.btn-secondary,
.btn-text,
.refresh-data-btn,
.logout-btn {
    background-color: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    border-color: var(--colorNeutralStroke1);
}

.fluent-button--secondary:hover,
.btn-secondary:hover,
.btn-text:hover,
.refresh-data-btn:hover,
.logout-btn:hover {
    background-color: var(--colorNeutralBackground3);
    border-color: var(--colorNeutralStroke2);
}

.fluent-button--secondary:active,
.btn-secondary:active,
.btn-text:active,
.refresh-data-btn:active,
.logout-btn:active {
    background-color: var(--colorNeutralBackground4);
    border-color: var(--colorNeutralStroke3);
}

.fluent-button--subtle {
    background-color: transparent;
    color: var(--colorNeutralForeground1);
    border-color: transparent;
}

.fluent-button--subtle:hover {
    background-color: var(--colorNeutralBackground3);
}

.fluent-button--subtle:active {
    background-color: var(--colorNeutralBackground4);
}

/* ============== CARDS ============== */
.fluent-card,
.property-card,
.stat-card,
.property-post {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    box-shadow: var(--shadow-2);
    transition: all var(--durationFast) var(--curveEasyEase);
    overflow: hidden;
}

.fluent-card:hover,
.property-card:hover,
.stat-card:hover,
.property-post:hover {
    box-shadow: var(--shadow-8);
    border-color: var(--colorNeutralStroke1);
    transform: translateY(-1px);
}

.fluent-card--interactive {
    cursor: pointer;
}

.fluent-card--interactive:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-16);
}

.fluent-card--interactive:active {
    transform: translateY(0);
    box-shadow: var(--shadow-4);
}

/* ============== INPUTS ============== */
.fluent-input,
.venture-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    font-family: var(--font-family-base);
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    color: var(--colorNeutralForeground1);
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    min-height: 32px;
    transition: all var(--durationFast) var(--curveEasyEase);
    outline: none;
}

.fluent-input:hover,
.venture-input:hover,
input:hover,
textarea:hover,
select:hover {
    border-color: var(--colorNeutralStroke2);
}

.fluent-input:focus,
.venture-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--colorBrandForeground1);
    box-shadow: 0 0 0 1px var(--colorBrandForeground1);
}

.fluent-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--colorNeutralBackground5);
    border-color: var(--colorNeutralStrokeDisabled);
    color: var(--colorNeutralForegroundDisabled);
    cursor: not-allowed;
}

.fluent-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--colorNeutralForeground3);
}

/* ============== NAVIGATION ============== */
.sidebar {
    width: 240px;
    height: 100vh;
    background-color: var(--colorNeutralBackground1);
    border-right: 1px solid var(--colorNeutralStroke2);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: var(--spacingVerticalL) var(--spacingHorizontalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    background-color: var(--colorNeutralBackground1);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.logo-svg {
    height: 24px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    list-style: none;
    padding: var(--spacingVerticalS) 0;
    margin: 0;
    overflow-y: auto;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacingVerticalS) var(--spacingHorizontalL);
    color: var(--colorNeutralForeground2);
    text-decoration: none;
    border-radius: var(--borderRadiusMedium);
    margin: var(--spacingVerticalXXS) var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    gap: var(--spacingHorizontalM);
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    position: relative;
}

.nav-link:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.nav-link.active {
    background-color: var(--colorBrandBackgroundSelected);
    color: var(--colorNeutralForegroundOnBrand);
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: var(--colorNeutralForegroundOnBrand);
    border-radius: var(--borderRadiusSmall);
}

.nav-link i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* Sidebar Status */
.sidebar-status {
    padding: var(--spacingVerticalL) var(--spacingHorizontalL);
    border-top: 1px solid var(--colorNeutralStroke2);
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingHorizontalS);
}

.status-item i {
    color: var(--colorNeutralForeground3);
    font-size: 14px;
    margin-top: 2px;
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    font-weight: var(--font-weight-medium);
}

.status-time {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    margin-top: 2px;
}

/* ============== MAIN CONTENT ============== */
.main-content {
    margin-left: 240px;
    min-height: 100vh;
    background-color: var(--colorNeutralBackground2);
}

/* Top Header */
.top-header {
    background-color: var(--colorNeutralBackground1);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    padding: var(--spacingVerticalM) var(--spacingHorizontalXXL);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacingHorizontalXL);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.user-avatar-btn,
.btn-icon {
    background: transparent;
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusCircular);
    padding: 2px;
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.user-avatar-btn:hover,
.btn-icon:hover {
    border-color: var(--colorNeutralStroke2);
    box-shadow: var(--shadow-2);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--borderRadiusCircular);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============== PAGES ============== */
.page {
    display: none;
    padding: var(--spacingVerticalXXL);
    max-width: 1200px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: var(--spacingVerticalXXL);
}

.page-header h1 {
    font-size: var(--font-size-700);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacingHorizontalL);
    margin-bottom: var(--spacingVerticalXXL);
}

.stat-card {
    padding: var(--spacingVerticalXXL) var(--spacingHorizontalXL);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalL);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--borderRadiusLarge);
    background-color: var(--colorBrandBackgroundSelected);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colorBrandForeground1);
    font-size: 24px;
}

.stat-info h3 {
    font-size: var(--font-size-700);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalXS) 0;
}

.stat-info p {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0;
}

/* Property Posts */
.property-post {
    margin-bottom: var(--spacingVerticalXL);
}

.post-header {
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalM);
}

.agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--borderRadiusCircular);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-avatar i {
    color: var(--colorNeutralForeground3);
    font-size: 16px;
}

.agent-name {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
}

.property-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badges {
    position: absolute;
    top: var(--spacingVerticalM);
    left: var(--spacingHorizontalM);
    display: flex;
    flex-direction: column;
    gap: var(--spacingHorizontalS);
    align-items: flex-start;
}

.price-badge {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(8px);
}

.type-badge {
    position: absolute;
    top: var(--spacingVerticalM);
    right: var(--spacingHorizontalM);
    background-color: var(--colorBrandBackground);
    color: white;
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-medium);
}

.property-content {
    padding: var(--spacingVerticalL) var(--spacingHorizontalL);
}

.property-title {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
    line-height: var(--line-height-400);
}

.property-address {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0 0 var(--spacingVerticalM) 0;
}

.property-details {
    display: flex;
    gap: var(--spacingHorizontalL);
    flex-wrap: wrap;
}

.property-details span {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    background-color: var(--colorNeutralBackground3);
    border-radius: var(--borderRadiusMedium);
}

/* ============== LOADING & MODALS ============== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--colorNeutralStroke2);
    border-top: 3px solid var(--colorBrandBackground);
    border-radius: var(--borderRadiusCircular);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacingVerticalL) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.loading-content p {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal.hidden {
    display: none !important;
}

.auth-modal-content {
    background-color: var(--colorNeutralBackground1);
    border-radius: var(--borderRadiusXLarge);
    box-shadow: var(--shadow-64);
    padding: var(--spacingVerticalXXXL);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacingVerticalXXL);
}

.auth-header h2 {
    font-size: var(--font-size-600);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.auth-header p {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

.form-group label {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground1);
}

/* ============== TABS ============== */
.property-tabs,
.tab-navigation {
    display: flex;
    gap: var(--spacingHorizontalS);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    margin-bottom: var(--spacingVerticalL);
}

.tab-btn,
.property-tab-btn {
    background: transparent;
    border: none;
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    color: var(--colorNeutralForeground2);
    cursor: pointer;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    border-bottom: 2px solid transparent;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.tab-btn:hover,
.property-tab-btn:hover {
    color: var(--colorNeutralForeground1);
    background-color: var(--colorNeutralBackground3);
}

.tab-btn.active,
.property-tab-btn.active {
    color: var(--colorBrandForeground1);
    border-bottom-color: var(--colorBrandForeground1);
    background-color: var(--colorBrandBackgroundSelected);
}

/* ============== SEARCH DROPDOWN ============== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow-16);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.search-dropdown.hidden {
    display: none;
}

/* ============== UTILITIES ============== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-s {
    gap: var(--spacingHorizontalS);
}

.gap-m {
    gap: var(--spacingHorizontalM);
}

.gap-l {
    gap: var(--spacingHorizontalL);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--durationNormal) var(--curveEasyEase);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    }
    
    .page {
        padding: var(--spacingVerticalL);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --colorNeutralStroke1: #000000;
        --colorNeutralStroke2: #000000;
        --shadow-2: none;
        --shadow-4: none;
        --shadow-8: none;
    }
}


/* ============================================ */
/* Source: fluent2-additional.css */
/* ============================================ */

/* 
 * Additional Fluent Design 2 Components for Real Estate CRM
 * Specific components and layouts
 */

/* ============== GLOBAL CHECKBOX STYLES ============== */
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;
}

/* Label with checkbox - text spacing */
label input[type="checkbox"] {
    margin-right: 10px;
}

#addProperty {
    max-width: none;
    overflow-y: auto;
    max-height: none;
    padding: 0;
}

/* ============== PAGE HEADER ============== */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacingHorizontalL);
}

.view-toggle-container {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalL);
}

.view-toggle-buttons {
    display: flex;
    gap: var(--spacingHorizontalXXS);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
    padding: var(--spacingVerticalXXS);
}

.sort-controls {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-300);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    min-width: 220px;
}

.sort-select:hover {
    background-color: var(--colorNeutralBackground2);
    border-color: var(--colorNeutralStroke1);
}

.sort-select:focus {
    outline: 2px solid var(--colorBrandBackground);
    outline-offset: 2px;
}

.view-toggle-btn {
    background-color: transparent;
    border: none;
    color: var(--colorNeutralForeground2);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusSmall);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
    min-width: 40px;
    height: 36px;
}

.view-toggle-btn i {
    font-size: 18px;
    line-height: 1;
}

.view-toggle-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.view-toggle-btn.active {
    background-color: var(--colorBrandBackground);
    color: white;
}

.view-toggle-btn.active i {
    color: white;
}

.view-toggle-btn.active:hover {
    background-color: var(--colorBrandBackgroundHover);
}

/* ============== PROPERTIES GRID ============== */
.properties-grid,
#recentlyAddedContainer,
.recently-added-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: var(--spacingHorizontalL) !important;
    padding: var(--spacingVerticalL) 0 !important;
    flex-direction: initial !important;
}

/* Date Group Styles for Recently Added */
.date-group {
    margin-bottom: var(--spacingVerticalXXL);
    grid-column: 1 / -1;
}

.date-group-header {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    background: linear-gradient(135deg, var(--colorNeutralBackground2) 0%, var(--colorNeutralBackground3) 100%);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin-bottom: var(--spacingVerticalL);
    box-shadow: var(--shadow2);
}

.date-group-header i {
    font-size: var(--font-size-500);
    color: var(--colorBrandForeground1);
}

.date-group-header.today {
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    border-color: var(--colorBrandStroke1);
    color: var(--colorNeutralForegroundOnBrand);
}

.date-group-header.today i {
    color: var(--colorNeutralForegroundOnBrand);
}

.date-group-header.yesterday {
    background: linear-gradient(135deg, var(--colorPaletteYellowBackground1) 0%, var(--colorPaletteYellowBackground2) 100%);
    border-color: var(--colorPaletteYellowBorder1);
    color: var(--colorNeutralForeground1);
}

.date-group-header.yesterday i {
    color: var(--colorPaletteYellowForeground1);
}

.group-count {
    margin-left: auto;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-regular);
    opacity: 0.8;
}

.date-group-content {
    width: 100%;
}

.date-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacingHorizontalL);
}

.property-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.property-card-image {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--colorNeutralBackground3);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.property-card-image:hover {
    opacity: 0.95;
}

/* Table View Styles */
.properties-table {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
}

.properties-table table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table thead {
    background-color: var(--colorNeutralBackground2);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.properties-table th {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    text-align: left;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    border-right: 1px solid var(--colorNeutralStroke2);
}

.properties-table th:nth-child(3) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.properties-table th:last-child {
    border-right: none;
    width: 60px;
    max-width: 60px;
    min-width: 60px;
}

.properties-table tbody tr {
    border-bottom: 1px solid var(--colorNeutralStroke2);
    transition: background-color var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.properties-table tbody tr:hover {
    background-color: var(--colorNeutralBackground2);
}

.properties-table tbody tr:last-child {
    border-bottom: none;
}

.properties-table td {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    vertical-align: middle;
    border-right: 1px solid var(--colorNeutralStroke2);
}

.properties-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.properties-table td:last-child {
    border-right: none;
    width: 60px;
    max-width: 60px;
    min-width: 60px;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXXS);
}

.property-table-image {
    width: 40px;
    height: 40px;
    border-radius: var(--borderRadiusMedium);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-table-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-table-image i {
    color: var(--colorNeutralForeground4);
    font-size: 16px;
}

.property-table-title {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground1);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--line-height-300);
}

.property-table-price {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: var(--colorBrandForeground1);
}

.property-table-address {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-table-features {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
}

.property-table-broker {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.property-table-broker-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--borderRadiusCircular);
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.property-table-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-table-broker-avatar i {
    color: var(--colorNeutralForeground3);
    font-size: 12px;
}

.property-table-broker-name {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    font-weight: var(--font-weight-medium);
}

.property-table-actions {
    display: flex;
    justify-content: center;
}

.property-table-actions .dropdown-container {
    width: 100%;
}

.property-table-actions .action-btn {
    width: 100%;
    min-width: auto;
    max-width: 55px;
    padding: 4px 4px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown menu for table view - show above */
.property-table-actions .action-dropdown-menu {
    position: absolute;
    bottom: auto;
    top: 100%;
    left: auto;
    right: 0;
    min-width: 200px;
    margin-top: var(--spacingVerticalXS);
    margin-bottom: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* If dropdown would go off screen, show it to the left */
@media (max-width: 768px) {
    .property-table-actions .action-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Property Post Styles - Feed Format */
.property-post {
    max-width: 500px;
    margin: 0 auto var(--spacingVerticalL) auto;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.property-post:hover {
    box-shadow: var(--shadow-16);
    transform: translateY(-2px);
    border-color: var(--colorBrandForeground1);
}

.property-post:last-child {
    margin-bottom: 0;
}

/* Ensure feed container respects the centering */
#propertiesFeed,
.feed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacingVerticalL) var(--spacingHorizontalM);
}

.property-card:hover {
    box-shadow: var(--shadow-16);
    transform: translateY(-2px);
    border-color: var(--colorBrandForeground1);
}

.property-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card-image i {
    font-size: 48px;
    color: var(--colorNeutralForeground4);
}

.property-badge {
    position: absolute;
    top: var(--spacingVerticalS);
    right: var(--spacingHorizontalS);
    background-color: var(--colorBrandBackground);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
}

.mls-badge {
    background-color: var(--colorStatusWarningForeground1);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    min-width: fit-content;
}

.property-card-image .mls-badge {
    position: absolute;
    top: calc(var(--spacingVerticalS) + 28px);
    right: var(--spacingHorizontalS);
}

.image-badges .mls-badge {
    position: static;
    top: auto;
    right: auto;
}

.price-difference-badge {
    position: absolute;
    bottom: var(--spacingVerticalS);
    right: var(--spacingHorizontalS);
    color: white;
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-100);
    font-weight: var(--font-weight-semibold);
}

.property-broker-info {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.broker-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--borderRadiusCircular);
    overflow: hidden;
    background-color: var(--colorNeutralBackground3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-avatar i {
    color: var(--colorNeutralForeground3);
    font-size: 12px;
}

.broker-name {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    font-weight: var(--font-weight-medium);
}

.property-card-content {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
}

.property-card-content h3 {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalXS) 0;
    line-height: var(--line-height-300);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-price {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: var(--colorBrandForeground1);
    margin: 0 0 var(--spacingVerticalXS) 0;
}

.property-card-address {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0 0 var(--spacingVerticalS) 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-features {
    display: flex;
    gap: var(--spacingHorizontalS);
    flex-wrap: wrap;
    margin-bottom: var(--spacingVerticalS);
}

.property-card-features span {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    background-color: var(--colorNeutralBackground3);
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusMedium);
}

.property-actions {
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-top: 1px solid var(--colorNeutralStroke2);
}

.dropdown-container {
    position: relative;
}

.action-btn {
    width: 100%;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground1);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
}

.action-btn:hover {
    background-color: var(--colorNeutralBackground3);
    border-color: var(--colorNeutralStroke2);
}

.action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow-16);
    padding: var(--spacingVerticalXS);
    margin-bottom: var(--spacingVerticalXS);
    z-index: 10;
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--colorNeutralForeground1);
    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border-radius: var(--borderRadiusSmall);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--colorNeutralStroke2);
    margin: var(--spacingVerticalXS) 0;
}

/* ============== FILTERS ============== */
.property-filters,
.clients-filters {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

.filter-row {
    display: flex;
    gap: var(--spacingHorizontalM);
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalXS);
    flex: 1 1 0;
    min-width: 0;
}

.filter-group label {
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground2);
}

.clear-filters-btn {
    color: var(--colorBrandForeground1);
    cursor: pointer;
    font-size: var(--font-size-300);
    text-decoration: underline;
    transition: color var(--durationFast) var(--curveEasyEase);
}

.clear-filters-btn:hover {
    color: var(--colorBrandForeground2);
}

.clients-filter-toggle {
    margin-bottom: var(--spacingVerticalL);
}

/* ============== PLACES & CHECKBOXES ============== */
.places-filter,
.postanova-filter,
.conditions-filter,
.subtypes-filter,
.heating-filter,
.documents-filter,
.developers-filter {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    margin-bottom: var(--spacingVerticalL);
    overflow: hidden;
}

/* Override for new fdrop filter buttons */
.fdrop-row .fdrop {
    background: none;
    border: none;
    margin-bottom: 0;
    overflow: visible;
}
.fdrop-row .fdrop .fdrop-btn {
    width: auto !important;
}

.places-filter-header,
.postanova-filter-header,
.conditions-filter-header,
.subtypes-filter-header,
.heating-filter-header,
.documents-filter-header,
.developers-filter-header {
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

/* Filter header buttons - 100% width (legacy, for analytics page) */
.places-filter-header button,
.postanova-filter-header button,
.conditions-filter-header button,
.subtypes-filter-header button,
.heating-filter-header button,
.documents-filter-header button,
.developers-filter-header button {
    width: 100% !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacingHorizontalS);
}
/* fdrop buttons should NOT be 100% */
.fdrop-row button.fdrop-btn {
    width: auto !important;
}

/* Specific toggle button IDs - width for filter dropdowns */
#togglePlacesBtn,
#togglePostanovaBtn,
#toggleConditionsBtn,
#toggleSubtypesBtn,
#toggleHeatingBtn,
#toggleDocumentsBtn,
#toggleDevelopersBtn {
    width: auto !important;
    max-width: none !important;
}
#an_togglePlacesBtn,
#an_toggleConditionsBtn {
    width: 100% !important;
    max-width: none !important;
}

.places-checkboxes,
.postanova-checkboxes,
.conditions-checkboxes,
.subtypes-checkboxes,
.heating-checkboxes,
.documents-checkboxes {
    padding: var(--spacingVerticalL);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacingVerticalS);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacingVerticalS);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    padding: var(--spacingVerticalS);
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    transition: background-color var(--durationFast) var(--curveEasyEase);
}

.checkbox-item:hover {
    background-color: var(--colorNeutralBackground3);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    accent-color: var(--colorBrandBackground);
}

.checkbox-item label {
    cursor: pointer;
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
}

.developers-selects {
    padding: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.developer-select-group,
.complex-select-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

/* ============== KANBAN/CRM ============== */
.clients-kanban-board {
    margin-top: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.kanban-scroll-nav {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    margin-bottom: var(--spacingVerticalL);
    padding: var(--spacingVerticalS) 0;
    flex-shrink: 0;
}

.kanban-nav-btn {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground2);
    width: 32px;
    height: 32px;
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.kanban-nav-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.kanban-scroll-indicator {
    flex: 1;
    height: 2px;
    background-color: var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusSmall);
    position: relative;
}

.kanban-scroll-bar {
    height: 100%;
    background-color: var(--colorBrandBackground);
    border-radius: var(--borderRadiusSmall);
    width: 30%;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.kanban-columns-container {
    overflow-x: auto;
    overflow-y: auto;
    padding-bottom: var(--spacingVerticalS);
    flex: 1;
    min-height: 0;
}

.kanban-columns {
    display: flex;
    gap: var(--spacingHorizontalL);
    min-width: min-content;
    min-height: 100%;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    border-radius: var(--borderRadiusMedium);
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow4);
    min-height: 64px;
    height: 64px;
}

/* Different colors for each column */
.kanban-column:nth-child(1) .kanban-column-header {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.kanban-column:nth-child(2) .kanban-column-header {
    background: linear-gradient(135deg, #8764b8 0%, #744da9 100%);
}

.kanban-column:nth-child(3) .kanban-column-header {
    background: linear-gradient(135deg, #00b7c3 0%, #038387 100%);
}

.kanban-column:nth-child(4) .kanban-column-header {
    background: linear-gradient(135deg, #498205 0%, #3e7204 100%);
}

.kanban-column:nth-child(5) .kanban-column-header {
    background: linear-gradient(135deg, #ca5010 0%, #a74109 100%);
}

.kanban-column:nth-child(6) .kanban-column-header {
    background: linear-gradient(135deg, #e3008c 0%, #bf0077 100%);
}

.kanban-column:nth-child(7) .kanban-column-header {
    background: linear-gradient(135deg, #004e8c 0%, #00426d 100%);
}

.kanban-column:nth-child(8) .kanban-column-header {
    background: linear-gradient(135deg, #5c2e91 0%, #4a2472 100%);
}

.kanban-column-title {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.kanban-column-count {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: white;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: var(--borderRadiusCircular);
    backdrop-filter: blur(10px);
}

.kanban-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

/* Kanban Client Cards */
.kanban-client-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    padding: var(--spacingVerticalM);
    margin-bottom: var(--spacingVerticalS);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    box-shadow: var(--shadow2);
}

.kanban-client-card:first-child {
    margin-top: 0;
}

.kanban-client-card:hover {
    box-shadow: var(--shadow8);
    transform: translateY(-2px);
    border-color: var(--colorBrandStroke1);
    cursor: pointer;
}

.kanban-client-card:last-child {
    margin-bottom: 0;
}

.kanban-client-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(3deg);
}

.kanban-client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacingVerticalS);
    gap: var(--spacingHorizontalS);
}

.kanban-client-name {
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0;
    flex: 1;
    line-height: var(--line-height-300);
}

.kanban-client-type {
    font-size: var(--font-size-200);
    padding: 2px 8px;
    border-radius: var(--borderRadiusSmall);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground2);
    white-space: nowrap;
    flex-shrink: 0;
}

.kanban-client-type.apartment {
    background-color: var(--colorPaletteBlueBorder1);
    color: var(--colorPaletteBlueForeground1);
}

.kanban-client-type.house {
    background-color: var(--colorPaletteGreenBorder1);
    color: var(--colorPaletteGreenForeground1);
}

.kanban-client-type.commercial {
    background-color: var(--colorPalettePurpleBorder1);
    color: var(--colorPalettePurpleForeground1);
}

.kanban-client-type.land {
    background-color: var(--colorPaletteYellowBorder1);
    color: var(--colorPaletteYellowForeground1);
}

.kanban-client-operation {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-operation i {
    font-size: var(--font-size-300);
    color: var(--colorBrandForeground1);
}

.kanban-client-budget {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-300);
    color: var(--colorPaletteGreenForeground1);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-budget i {
    font-size: var(--font-size-300);
    color: var(--colorPaletteGreenForeground1);
}

.kanban-client-requirements {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground2);
    margin-bottom: var(--spacingVerticalXS);
}

.kanban-client-requirements i {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
}

.kanban-client-dates {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalXS);
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin-top: var(--spacingVerticalS);
    padding-top: var(--spacingVerticalS);
    border-top: 1px solid var(--colorNeutralStroke2);
}

.kanban-client-dates i {
    font-size: var(--font-size-200);
}

.kanban-empty-state {
    text-align: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-300);
    font-style: italic;
    padding: var(--spacingVerticalXXL) var(--spacingHorizontalL);
}

.kanban-column-cards {
    min-height: 100px;
    transition: background-color var(--durationFast) var(--curveEasyEase);
}

.kanban-column-cards.drag-over {
    background-color: rgba(0, 120, 212, 0.08);
    border: 2px dashed var(--colorBrandStroke1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.kanban-column.drag-over {
    transform: scale(1.02);
    transition: transform var(--durationNormal) var(--curveEasyEase);
}

.kanban-column.drag-over .kanban-column-header {
    box-shadow: var(--shadow16);
    transform: translateY(-2px);
}

.client-card {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalM);
    margin-bottom: var(--spacingVerticalS);
    cursor: pointer;
    transition: all var(--durationFast) var(--curveEasyEase);
    box-shadow: var(--shadow-2);
}

/* ============== PAGINATION ============== */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacingVerticalL) 0;
    border-top: 1px solid var(--colorNeutralStroke2);
    margin-top: var(--spacingVerticalL);
}

.pagination-info {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground2);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
}

.page-numbers {
    display: flex;
    gap: var(--spacingHorizontalXXS);
}

.page-number {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    color: var(--colorNeutralForeground1);
    width: 32px;
    height: 32px;
    border-radius: var(--borderRadiusMedium);
    cursor: pointer;
    font-size: var(--font-size-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--durationFast) var(--curveEasyEase);
}

.page-number:hover {
    background-color: var(--colorNeutralBackground3);
}

.page-number.active {
    background-color: var(--colorBrandBackground);
    border-color: var(--colorBrandBackground);
    color: white;
}

/* ============== EMPTY STATES ============== */
.empty-state,
.error-state {
    text-align: center;
    padding: var(--spacingVerticalXXXL);
    color: var(--colorNeutralForeground3);
}

.empty-state i,
.error-state i {
    font-size: 64px;
    margin-bottom: var(--spacingVerticalL);
    opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.empty-state p,
.error-state p {
    font-size: var(--font-size-300);
    margin: 0 0 var(--spacingVerticalL) 0;
}

/* ============== CONTENT GRID ============== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacingHorizontalXXL);
    align-items: start;
}

.properties-feed {
    background: transparent;
    /* background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2); */
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    max-height: 800px;
   
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.dashboard-sidebar {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalL);
}

.dashboard-sidebar h5 {
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalL) 0;
}

/* Sidebar Statistics */
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalM);
    padding-bottom: var(--spacingVerticalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    margin-bottom: var(--spacingVerticalL);
}

.sidebar-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalM);
    padding: var(--spacingVerticalM);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
    border-left: 3px solid var(--colorBrandBackground);
    transition: all var(--durationFast) var(--curveEasyEase);
}

.sidebar-stat-item:hover {
    background-color: var(--colorNeutralBackground3);
    transform: translateY(-1px);
}

.sidebar-stat-icon {
    width: 32px;
    height: 32px;
    background-color: var(--colorBrandBackground);
    color: white;
    border-radius: var(--borderRadiusMedium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-stat-info {
    flex: 1;
    min-width: 0;
}

.sidebar-stat-info h4 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-bold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalXXS) 0;
    line-height: var(--line-height-300);
}

.sidebar-stat-info p {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    margin: 0;
    line-height: var(--line-height-200);
}

/* Hide original stats-grid to save space */
.stats-grid {
    display: none !important;
}

/* ============== RADIO GROUPS ============== */
.radio-group {
    display: flex;
    gap: var(--spacingHorizontalL);
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    cursor: pointer;
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--colorBrandBackground);
}

/* ============== SALES ITEMS (RECENT SALES CARDS) ============== */
.sales-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingHorizontalM);
    padding: var(--spacingVerticalM);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground2);
    border-left: 3px solid var(--colorStatusSuccessForeground1);
    margin-bottom: var(--spacingVerticalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    cursor: pointer;
}

.sales-item:hover {
    background-color: var(--colorNeutralBackground3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-4);
}

.sales-item:last-child {
    margin-bottom: 0;
}

.sales-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--borderRadiusCircular);
    background-color: var(--colorNeutralBackground4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-medium);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--colorNeutralStroke2);
}

.sales-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalXXS);
}

.sales-broker-name {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-200);
    color: var(--colorStatusSuccessForeground1);
    margin: 0;
    line-height: var(--line-height-200);
}

.sales-property-address {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
    margin: 0;
    line-height: var(--line-height-300);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sales-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacingHorizontalS);
    margin: var(--spacingVerticalXXS) 0 0 0;
}

.sales-price {
    font-weight: var(--font-weight-semibold);
    color: var(--colorStatusSuccessForeground1);
    font-size: var(--font-size-300);
    margin: 0;
}

/* Sales meta info positioned next to avatar */
.sales-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacingVerticalXXS);
    flex-shrink: 0;
    min-width: 80px;
}

.sales-type {
    font-size: var(--font-size-100);
    color: var(--colorNeutralForeground3);
    background-color: var(--colorNeutralBackground4);
    padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
    border-radius: var(--borderRadiusSmall);
    white-space: nowrap;
    text-align: center;
}

.sales-date {
    font-size: var(--font-size-100);
    color: var(--colorNeutralForeground3);
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.recent-sales-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacingVerticalS);
}

.no-recent-sales {
    text-align: center;
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-300);
    padding: var(--spacingVerticalXXL);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
}

.no-recent-sales i {
    font-size: 32px;
    margin-bottom: var(--spacingVerticalS);
    color: var(--colorNeutralForeground4);
    opacity: 0.5;
}

/* ============== NEARBY SEARCH STYLES ============== */
.nearby-search-form {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--spacingVerticalXXL);
    padding: var(--spacingVerticalXL);
    background: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusLarge);
    border: 1px solid var(--colorNeutralStroke2);
}

.form-section h3 {
    margin: 0 0 var(--spacingVerticalL) 0;
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid var(--colorNeutralStroke2);
    padding-bottom: var(--spacingVerticalM);
}

.add-property-form .form-section {
    background: var(--colorNeutralBackground1);
}

/* Property Tabs */
.property-tabs {
    display: flex;
    gap: var(--spacingHorizontalXS);
    margin-bottom: var(--spacingVerticalL);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.property-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: var(--spacingVerticalM) var(--spacingHorizontalL);
    cursor: pointer;
    font-size: var(--font-size-300);
    font-weight: var(--font-weight-medium);
    color: var(--colorNeutralForeground2);
    display: flex;
    align-items: center;
    gap: var(--spacingHorizontalS);
    transition: all var(--durationFast) var(--curveEasyEase);
    border-radius: var(--borderRadiusMedium) var(--borderRadiusMedium) 0 0;
}

.property-tab-btn:hover {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground1);
}

.property-tab-btn.active {
    color: var(--colorBrandForeground1);
    border-bottom-color: var(--colorBrandForeground1);
    background-color: var(--colorNeutralBackground2);
}

.property-tab-btn i {
    font-size: 18px;
}

.property-tab-content {
  
    border-radius: 0 0 var(--borderRadiusLarge) var(--borderRadiusLarge);
    min-height: 500px;
    overflow: visible;
}

.property-tab-pane {
    display: none;
    /* padding: var(--spacingVerticalXXL); */
}

.property-tab-pane.active {
    display: block;
}

/* Form Layout - Grid System */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group,
.row-3 .form-group {
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacingVerticalXS);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    font-size: var(--font-size-300);
}

.form-group input,
.form-group select,
.form-group textarea {

    padding: var(--spacingVerticalS) var(--spacingHorizontalM);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    background-color: var(--colorNeutralBackground1);
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground1);
    transition: all var(--durationNormal) var(--curveEasyEase);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--colorBrandForeground1);
    box-shadow: 0 0 0 1px var(--colorBrandForeground1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.nearby-statistics {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
    margin-bottom: var(--spacingVerticalL);
}

.statistics-header {
    margin-bottom: var(--spacingVerticalL);
}

.statistics-header h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0 0 var(--spacingVerticalS) 0;
}

.statistics-description {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    margin: 0;
}

.statistics-table {
    overflow-x: auto;
}

.nearby-results {
    background-color: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacingVerticalL);
}

.results-header h3 {
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    margin: 0;
}

.results-count {
    font-size: var(--font-size-300);
    color: var(--colorNeutralForeground3);
    background-color: var(--colorNeutralBackground3);
    padding: var(--spacingVerticalXS) var(--spacingHorizontalS);
    border-radius: var(--borderRadiusLarge);
}

/* ============== RESPONSIVE IMPROVEMENTS ============== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacingHorizontalL);
    }
    
    .properties-grid,
    #recentlyAddedContainer,
    .recently-added-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
    
    .date-group-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .properties-grid,
    #recentlyAddedContainer,
    .recently-added-container {
        grid-template-columns: 1fr !important;
    }
    
    .date-group-grid {
        grid-template-columns: 1fr;
    }
    
    .date-group-header {
        padding: var(--spacingVerticalS) var(--spacingHorizontalM);
        font-size: var(--font-size-300);
    }
    
    .date-group-header i {
        font-size: var(--font-size-400);
    }
    
    .group-count {
        font-size: var(--font-size-200);
    }
    
    .row-3 {
        grid-template-columns: 1fr;
    }
    
    .property-post {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    #propertiesFeed,
    .feed-container {
        padding: var(--spacingVerticalM) var(--spacingHorizontalS);
    }
    
    .sidebar-stats {
        gap: var(--spacingVerticalS);
    }
    
    .sidebar-stat-item {
        padding: var(--spacingVerticalS);
    }
    
    .sidebar-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .sidebar-stat-info h4 {
        font-size: var(--font-size-400);
    }
    
    .sales-meta {
        min-width: 70px;
    }
    
    .sales-type {
        font-size: var(--font-size-100);
        padding: 2px var(--spacingHorizontalXXS);
    }
    
    .sales-date {
        font-size: 10px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: var(--spacingVerticalM);
        text-align: center;
    }
    
    .kanban-columns {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: auto;
        max-width: none;
    }
    
    /* Mobile responsive for table view */
    .properties-table {
        overflow-x: auto;
        border-radius: var(--borderRadiusMedium);
    }
    
    .properties-table table {
        min-width: 800px;
    }
    
    .properties-table th,
    .properties-table td {
        padding: var(--spacingVerticalS) var(--spacingHorizontalS);
        font-size: var(--font-size-200);
    }
    
    .property-table-image {
        width: 32px;
        height: 32px;
    }
    
    .property-table-title {
        font-size: var(--font-size-200);
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .property-table-address {
        font-size: var(--font-size-100);
        max-width: 150px;
    }
    
    .property-table-features {
        font-size: var(--font-size-100);
    }
    
    .property-table-broker-avatar {
        width: 20px;
        height: 20px;
    }
    
    .property-table-broker-name {
        font-size: var(--font-size-100);
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .property-table-actions .action-btn {
        min-width: 80px;
        padding: var(--spacingVerticalXXS) var(--spacingHorizontalXS);
        font-size: var(--font-size-100);
    }
    
    /* Hide header content on very small screens and stack */
    .page-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacingVerticalM);
    }
    
    .page-header-content h1 {
        font-size: var(--font-size-500);
        text-align: center;
    }
    
    .view-toggle-container {
        flex-direction: column;
        gap: var(--spacingVerticalM);
    }
    
    .view-toggle-buttons {
        justify-content: center;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacingVerticalXS);
    }
    
    .sort-controls label {
        text-align: center;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* ============== FOCUS MANAGEMENT ============== */
.focus-visible:focus-visible {
    outline: 2px solid var(--colorBrandForeground1);
    outline-offset: 2px;
}

/* Remove default focus styles for mouse users */
*:focus:not(.focus-visible) {
    outline: none;
}

/* ============== COLLECTIONS STYLES ============== */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacingVerticalL);
    max-width: 1200px;
    margin: 0 auto;
}

.collection-card {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    padding: var(--spacingVerticalL) var(--spacingHorizontalL);
    transition: all var(--durationNormal) var(--curveEasyEase);
    box-shadow: var(--shadow2);
    width: 100%;
    box-sizing: border-box;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow8);
    border-color: var(--colorBrandStroke1);
}

.collection-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingHorizontalM);
    margin-bottom: var(--spacingVerticalL);
}

.collection-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--colorBrandBackground) 0%, var(--colorBrandBackground2) 100%);
    border-radius: var(--borderRadiusMedium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 24px;
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-name {
    margin: 0 0 var(--spacingVerticalS) 0;
    font-size: var(--font-size-500);
    font-weight: var(--font-weight-semibold);
    color: var(--colorNeutralForeground1);
    word-wrap: break-word;
}

.collection-description {
    margin: 0 0 var(--spacingVerticalS) 0;
    color: var(--colorNeutralForeground2);
    font-size: var(--font-size-300);
    line-height: 1.4;
    word-wrap: break-word;
}

.collection-id {
    font-size: var(--font-size-200);
    color: var(--colorNeutralForeground3);
    font-family: monospace;
}

.collection-actions {
    display: flex;
    gap: var(--spacingHorizontalS);
    flex-wrap: wrap;
}

.collection-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.no-collections {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacingVerticalXXXL) var(--spacingHorizontalL);
    color: var(--colorNeutralForeground2);
}

.no-collections i {
    font-size: 4rem;
    margin-bottom: var(--spacingVerticalL);
    color: var(--colorNeutralForeground3);
}

.no-collections h3 {
    margin: 0 0 var(--spacingVerticalM) 0;
    font-size: var(--font-size-600);
    color: var(--colorNeutralForeground1);
}

.no-collections p {
    margin: 0;
    font-size: var(--font-size-400);
}

/* Responsive design for collections */
@media (max-width: 768px) {
    .collections-grid {
        gap: var(--spacingVerticalM);
    }
    
    .collection-card {
        padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    }
    
    .collection-header {
        gap: var(--spacingHorizontalS);
    }
    
    .collection-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .collection-actions {
        flex-direction: column;
    }
    
    .collection-actions .btn {
        width: 100%;
    }
}

/* ============== CLIENT AUTOSEARCH STYLES ============== */
.autosearch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacingVerticalL);
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    background-color: var(--colorNeutralBackground2);
    border-radius: var(--borderRadiusMedium);
}

.autosearch-header h3 {
    margin: 0;
    font-size: var(--font-size-500);
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground1);
}

.autosearch-table-container {
    overflow-x: auto;
    background-color: var(--colorNeutralBackground1);
    border-radius: var(--borderRadiusMedium);
    box-shadow: var(--shadow4);
}

.autosearch-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-300);
}

.autosearch-results-table thead {
    background-color: var(--colorNeutralBackground2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.autosearch-results-table th {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    text-align: left;
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground2);
    border-bottom: 2px solid var(--colorNeutralStroke1);
}

.autosearch-results-table tbody tr {
    border-bottom: 1px solid var(--colorNeutralStroke2);
    transition: background-color 0.2s ease;
}

.autosearch-results-table tbody tr:hover {
    background-color: var(--colorNeutralBackground2Hover);
}

.autosearch-results-table td {
    padding: var(--spacingVerticalM) var(--spacingHorizontalM);
    vertical-align: middle;
}

.property-photo-cell {
    width: 80px;
}

.property-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--borderRadiusSmall);
}

.no-photo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colorNeutralBackground3);
    border-radius: var(--borderRadiusSmall);
    color: var(--colorNeutralForeground3);
    font-size: 24px;
}

/* Autosearch tiles layout */
.autosearch-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.autosearch-tiles-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--colorNeutralForeground2);
    border-bottom: 2px solid var(--colorNeutralStroke1);
    background: var(--colorNeutralBackground2);
    border-radius: 8px 8px 0 0;
}

.autosearch-tile {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.autosearch-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--colorBrandStroke1, #0078d4);
}

.autosearch-tile.rejected-property {
    opacity: 0.6;
    background: var(--colorNeutralBackground3, #f5f5f5);
}

.astile-col {
    display: flex;
    align-items: center;
}

.astile-col-photo {
    width: 80px;
    flex-shrink: 0;
}

.astile-col-address {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}

.astile-col-rooms {
    width: 48px;
    flex-shrink: 0;
    justify-content: center;
}

.astile-col-area {
    width: 80px;
    flex-shrink: 0;
    justify-content: center;
}

.astile-col-price {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
}

.astile-col-actions {
    width: 190px;
    flex-shrink: 0;
    align-items: flex-end;
    gap: 6px;
    display: flex;
    flex-direction: column;
}

.astile-col-actions .btn {
    white-space: nowrap;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.property-title-cell {
    min-width: 200px;
    max-width: 300px;
}

.property-link {
    color: var(--colorBrandForeground1);
    text-decoration: none;
    font-weight: var(--fontWeightSemibold);
}

.property-link:hover {
    text-decoration: underline;
}

.property-address-cell {
    min-width: 150px;
    max-width: 250px;
    color: var(--colorNeutralForeground2);
}

.property-type-cell,
.property-rooms-cell,
.property-area-cell {
    white-space: nowrap;
}

.property-price-cell {
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground1);
    white-space: nowrap;
}

.property-status-cell .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--borderRadiusMedium);
    font-size: var(--font-size-200);
    font-weight: var(--fontWeightSemibold);
}

.status-badge.status-active {
    background-color: var(--colorPaletteGreenBackground2);
    color: var(--colorPaletteGreenForeground2);
}

.status-badge.status-sold {
    background-color: var(--colorPaletteRedBackground2);
    color: var(--colorPaletteRedForeground2);
}

.status-badge.status-archived {
    background-color: var(--colorNeutralBackground3);
    color: var(--colorNeutralForeground3);
}

.status-badge.status-draft {
    background-color: var(--colorPaletteYellowBackground2);
    color: var(--colorPaletteYellowForeground2);
}

.property-actions-cell {
    min-width: 280px;
}

.property-actions-buttons {
    display: flex;
    gap: var(--spacingHorizontalS);
}

.property-actions-buttons .btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-200);
    white-space: nowrap;
}

/* Loading and empty states */
.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacingVerticalXXXL);
    text-align: center;
    color: var(--colorNeutralForeground2);
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 48px;
    margin-bottom: var(--spacingVerticalL);
    color: var(--colorNeutralForeground3);
}

.loading-state i.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.empty-state p,
.error-state p {
    margin: 0 0 var(--spacingVerticalL) 0;
    font-size: var(--font-size-400);
}

/* Rejected property styling */
.rejected-property {
    background-color: var(--colorNeutralBackground4) !important;
    opacity: 0.7;
}

.rejected-property td {
    color: var(--colorNeutralForeground3) !important;
}

.rejected-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: var(--borderRadiusSmall);
    background-color: var(--colorNeutralBackground5);
    color: var(--colorNeutralForeground3);
    font-size: var(--font-size-200);
    font-weight: var(--fontWeightSemibold);
    text-transform: uppercase;
}

.error-state i {
    color: var(--colorPaletteRedForeground1);
}

/* Responsive table */
@media (max-width: 1200px) {
    .autosearch-results-table {
        font-size: var(--font-size-200);
    }
    
    .property-actions-buttons {
        flex-direction: column;
    }
    
    .property-actions-buttons .btn-sm {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .autosearch-header {
        flex-direction: column;
        gap: var(--spacingVerticalM);
        align-items: stretch;
    }
    
    .autosearch-table-container {
        overflow-x: scroll;
    }
    
    .autosearch-results-table {
        min-width: 900px;
    }
}

/* ============== PRINT STYLES ============== */
@media print {
    .sidebar,
    .top-header,
    .pagination-controls,
    .property-actions,
    .action-dropdown-menu {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .property-card,
    .property-post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============== AGENT FILTER STYLES ============== */
.agent-filter-agency {
    margin-bottom: 20px;
    border: 2px solid #0078d4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.1);
    background: white;
}

.agent-filter-agency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    border-bottom: 2px solid #005a9e;
}

.agent-filter-agency-header input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agent-filter-agency-name {
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 16px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agent-filter-agents {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.agent-filter-agent {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-left: 24px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #0078d4;
    transition: all 0.2s ease;
}

.agent-filter-agent:hover {
    background: #f0f8ff;
    border-left-color: #005a9e;
    box-shadow: 0 1px 4px rgba(0, 120, 212, 0.15);
}

.agent-filter-agent input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agent-filter-agent-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Enhanced Agent Filter Styles for user agency */
.agent-filter-agency.user-agency {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.agent-filter-agency.user-properties {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.agent-filter-agency.user-agency .agent-filter-agency-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-bottom-color: #1e7e34;
}

.agent-filter-agency.user-properties .agent-filter-agency-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-bottom-color: #1e7e34;
}

.user-agency-name {
    font-weight: 700;
    color: white;
}

.agent-filter-agency.user-agency .agent-filter-agent {
    border-left-color: #28a745;
}

.agent-filter-agency.user-agency .agent-filter-agent:hover {
    background: #f0fff0;
    border-left-color: #1e7e34;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.15);
}

/* MLS Options Styles */
.agent-filter-mls-options {
    padding: 12px 20px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.agent-filter-mls-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-left: 24px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    transition: all 0.2s ease;
}

.agent-filter-mls-option:hover {
    background: #fffbf0;
    border-left-color: #ff9800;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.15);
}

.agent-filter-mls-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agent-filter-mls-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ============== AGENTS PAGE STYLES ============== */
.agents-agency {
    margin-bottom: 30px;
}

.agents-agency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.agents-agency-name {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agents-agency-count {
    color: white;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px 20px 20px;
}

.agent-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 120, 212, 0.15);
    border-color: #0078d4;
}

.agent-photo-container {
    margin-bottom: 16px;
}

.agent-photo-container a {
    display: block;
    text-decoration: none;
}

.agent-photo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #0078d4 !important;
    display: block !important;
}

.agent-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #999;
    border: 3px solid #e9ecef;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-decoration: none;
    display: block;
}

.agent-name:hover {
    color: #0078d4;
    text-decoration: none;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.agent-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.agent-phone i {
    font-size: 14px;
    color: #0078d4;
}

.agents-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.agents-no-results i {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: 16px;
    display: block;
}

.agents-no-results h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px 0;
}

.agents-no-results p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Responsive design for agents page */
@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 16px 16px;
    }
    
    .agents-agency-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    #agentSearch {
        width: 100% !important;
    }
}

/* Agent search input width */
#agentSearch {
    width: 300px;
    min-width: 300px;
}

/* Photo preview grid styling */
.photo-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.photo-preview-card {
    position: relative;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    transition: all 0.2s ease;
}

.photo-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-preview-card.dragging {
    opacity: 0.6;
    transform: rotate(5deg);
}

.photo-preview-image {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    display: block !important;
}

.photo-preview-info {
    padding: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
}

.photo-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.photo-type-badge.photo {
    background: #e3f2fd;
    color: #1976d2;
}

.photo-type-badge.plan {
    background: #f3e5f5;
    color: #7b1fa2;
}

.photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.photo-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* ============== MODAL OVERLAY & BASE STYLES ============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2,
.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* ============== COLLECTION MODAL SPECIFIC STYLES ============== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.collection-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.collection-modal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collection-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-modal .modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.collection-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.collection-modal .modal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.collection-section {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.collection-section:hover {
    border-color: #007bff;
}

.collection-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-section h3 i {
    color: #007bff;
    font-size: 18px;
}

.collection-section .form-group {
    margin-bottom: 16px;
}

.collection-section .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.collection-section .form-select,
.collection-section .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Mont', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.collection-section .form-select:focus,
.collection-section .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.collection-section .btn {
    width: 100%;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.collection-section .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.collection-section .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.collection-section .btn-success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}

.collection-section .btn-success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.collection-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.collection-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.collection-divider span {
    background: white;
    padding: 0 16px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Form elements if not defined */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}


/* ============================================ */
/* Source: venture-ui.css */
/* ============================================ */

/* 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: wrap;
}
.crm-search-field-quarter {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}
.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: 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(4, 1fr);
    gap: var(--venture-space-2);
    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;
}

/* Filter Dropdown Buttons */
.fdrop-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px;
    align-items: flex-start;
}

.fdrop {
    position: relative;
    display: inline-block;
    width: auto;
    flex: 0 0 auto;
}

#filterModalBody
{
    padding: 30px !important;
}
.fdrop.fdrop-hidden {
    display: none !important;
}

.fdrop-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacingHorizontalS, 6px);
    padding: var(--spacingVerticalS, 5px) var(--spacingHorizontalM, 12px);
    border: 1px solid var(--colorNeutralStroke1, #d1d5db);
    border-radius: var(--borderRadiusMedium, 4px);
    background-color: var(--colorNeutralBackground1, #fff);
    font-size: var(--font-size-300, 13px);
    font-weight: var(--font-weight-medium, 500);
    font-family: inherit;
    line-height: var(--line-height-300, 1.4);
    min-height: 32px;
    cursor: pointer;
    transition: all var(--durationFast, 0.1s) var(--curveEasyEase, ease);
    white-space: nowrap;
    color: var(--colorNeutralForeground1, #374151);
    user-select: none;
    outline: none;
}

.fdrop-btn:hover {
    background-color: var(--colorNeutralBackground3, #f5f5f5);
    border-color: var(--colorNeutralStroke2, #c4c4c4);
}

.fdrop-btn.active {
    background-color: var(--colorNeutralBackground3, #f5f5f5);
    border-color: var(--colorBrandStroke1, #0078d4);
    box-shadow: 0 0 0 1px var(--colorBrandStroke1, #0078d4);
}

.fdrop-btn:active {
    background-color: var(--colorNeutralBackground4, #ebebeb);
    border-color: var(--colorNeutralStroke3, #b3b3b3);
}

.fdrop-label {
    font-weight: 600;
}

.fdrop-selected {
    font-weight: 400;
    color: var(--venture-primary, #0078d4);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdrop-selected:empty {
    display: none;
}

.fdrop-arrow {
    font-size: 16px;
    color: var(--venture-text-secondary, #9ca3af);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.fdrop-btn.active .fdrop-arrow {
    transform: rotate(180deg);
    color: var(--venture-primary, #0078d4);
}

/* Filter Modal */
#filterModal > .filter-modal-content {
    width: 90% !important;
    min-width: 800px !important;
    max-width: 900px !important;
    max-height: 80vh !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.filter-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.filter-modal-footer {
    display: flex !important;
    gap: 4px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

.filter-modal-footer .btn {
    flex: 1 1 0% !important;
    width: 50% !important;
}

/* Grid inside filter modal - use #filterModal for max specificity */
#filterModal .fdrop-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px 12px !important;
    padding: 0 !important;
}

#filterModal .fdrop-grid label,
#filterModal .fdrop-grid .place-checkbox,
#filterModal .fdrop-grid .condition-checkbox,
#filterModal .fdrop-grid .subtype-checkbox,
#filterModal .fdrop-grid .heating-checkbox,
#filterModal .fdrop-grid .documents-checkbox,
#filterModal .fdrop-grid .checkbox-item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

#filterModal .places-checkboxes,
#filterModal .postanova-checkboxes,
#filterModal .conditions-checkboxes,
#filterModal .subtypes-checkboxes,
#filterModal .heating-checkboxes,
#filterModal .documents-checkboxes {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px 12px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    max-height: none !important;
    overflow: visible !important;
}

.fdrop-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 4px 12px !important;
    padding: 0 !important;
}

.fdrop-grid label,
.fdrop-grid .place-checkbox,
.fdrop-grid .condition-checkbox,
.fdrop-grid .subtype-checkbox,
.fdrop-grid .heating-checkbox,
.fdrop-grid .documents-checkbox,
.fdrop-grid .checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
    white-space: nowrap;
}

.fdrop-grid label:hover,
.fdrop-grid .place-checkbox:hover,
.fdrop-grid .condition-checkbox:hover,
.fdrop-grid .subtype-checkbox:hover,
.fdrop-grid .heating-checkbox:hover,
.fdrop-grid .documents-checkbox:hover,
.fdrop-grid .checkbox-item:hover {
    background: #f3f4f6;
}

.fdrop-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 280px;
}

.fdrop-selects select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--venture-border-light, #d1d5db);
    border-radius: 6px;
    font-size: 13px;
}

/* Collapsible Locations */
.crm-locations-section .crm-search-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.crm-locations-summary {
    font-weight: 400;
    color: var(--venture-text-secondary, #6b7280);
    font-size: 13px;
    font-style: italic;
}

.crm-locations-summary.has-selected {
    /* color: var(--venture-primary, #0078d4); */
    color:#0078d4;
    font-style: normal;
    font-weight: 700;
}

.crm-locations-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px dashed var(--venture-border-light, #d1d5db);
    border-radius: var(--venture-radius-md, 8px);
    background: var(--venture-bg-secondary, #f9fafb);
    color: var(--venture-primary, #0078d4);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.crm-locations-toggle:hover {
    background: var(--venture-primary-light, #e8f4fd);
    border-color: var(--venture-primary, #0078d4);
}

.crm-locations-toggle.expanded {
    background: var(--venture-primary, #0078d4);
    color: white;
    border-style: solid;
}

.crm-locations-arrow {
    transition: transform 0.2s ease;
    font-size: 16px;
}

.crm-locations-toggle.expanded .crm-locations-arrow {
    transform: rotate(180deg);
}

.crm-locations-panel {
    margin-top: 8px;
    animation: locationsSlideDown 0.2s ease;
}

@keyframes locationsSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.crm-locations-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--venture-border-light, #d1d5db);
    border-radius: var(--venture-radius-md, 8px);
    background: var(--venture-bg-primary, #fff);
    color: var(--venture-text-secondary, #6b7280);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crm-locations-collapse-btn:hover {
    background: var(--venture-bg-secondary, #f3f4f6);
    color: var(--venture-text-primary, #374151);
}

/* 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-tabs select {
    flex: 0 1 auto;
    max-width: 120px;
    font-size: 12px;
}

.property-tabs .tab-btn {
    white-space: nowrap;
}

.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);
}

/* ============================================ */
/* Source: venture-integration.css */
/* ============================================ */

/* Integration Overrides for Venture UI Kit */

/* Global Checkbox Standardization - All checkboxes should be 16x16 */
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;
}
.profile-edit-dialog
{
    background-color: white !important;
}

/* Override existing styles to use Venture UI - but preserve auth form */
.btn:not(#authModal .btn) {
    /* Reset existing button styles */
    all: unset;
    /* Apply Venture button base */
    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;
    box-sizing: border-box;
}

.btn:disabled:not(#authModal .btn:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:not(#authModal .btn-primary) {
    background-color: var(--venture-primary);
    color: white;
    border-color: var(--venture-primary);
}

.btn-primary:hover:not(:disabled):not(#authModal .btn-primary:hover) {
    background-color: var(--venture-primary-light);
    border-color: var(--venture-primary-light);
}

.btn-secondary:not(#authModal .btn-secondary) {
    background-color: var(--venture-bg-primary);
    color: var(--venture-text-primary);
    border-color: var(--venture-border-medium);
}

.btn-secondary:hover:not(:disabled):not(#authModal .btn-secondary:hover) {
    background-color: var(--venture-bg-secondary);
    border-color: var(--venture-border-strong);
}

.btn-ghost:not(#authModal .btn-ghost) {
    background-color: transparent;
    color: var(--venture-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled):not(#authModal .btn-ghost:hover) {
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-primary);
}

/* Form elements integration - but preserve auth modal styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
select,
textarea {
    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;
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    color: var(--venture-text-tertiary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--venture-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--venture-bg-tertiary);
    color: var(--venture-text-tertiary);
    cursor: not-allowed;
}

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);
    cursor: pointer;
    appearance: none;
}

textarea {
    min-height: 80px;
    resize: vertical;
    line-height: var(--venture-line-height-normal);
}

/* Card overrides */
.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;
    transition: all 0.15s ease-in-out;
}

.card:hover {
    box-shadow: var(--venture-shadow-md);
    transform: translateY(-1px);
}

.card-header {
    padding: var(--venture-space-6);
    border-bottom: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-primary);
}

.card-body {
    padding: var(--venture-space-6);
}

.card-footer {
    padding: var(--venture-space-6);
    border-top: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-secondary);
}

/* Typography integration */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Mont', sans-serif;
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-tight);
    margin: 0;
}

h1 {
    font-size: var(--venture-font-size-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--venture-font-size-3xl);
    font-weight: 600;
}

h3 {
    font-size: var(--venture-font-size-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--venture-font-size-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--venture-font-size-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--venture-font-size-base);
    font-weight: 600;
}

p, span, div {
    font-family: 'Mont', sans-serif;
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-normal);
}

/* Override body styles */
body {
    font-family: 'Mont', sans-serif;
    background-color: var(--venture-bg-secondary);
    color: var(--venture-text-primary);
    line-height: var(--venture-line-height-normal);
    margin: 0;
    padding: 0;
}

/* Override table styles */
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);
}

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);
}

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);
}

table tr:hover {
    background-color: var(--venture-bg-secondary);
}

table tr:last-child td {
    border-bottom: none;
}

/* Override alert/notification styles */
.alert {
    padding: var(--venture-space-4) var(--venture-space-6);
    border-radius: var(--venture-radius-md);
    border: 1px solid transparent;
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-sm);
    line-height: var(--venture-line-height-normal);
    margin-bottom: var(--venture-space-4);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--venture-green);
    color: var(--venture-green);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--venture-yellow);
    color: var(--venture-yellow);
}

.alert-danger,
.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--venture-red);
    color: var(--venture-red);
}

.alert-info {
    background-color: var(--venture-blue-light);
    border-color: var(--venture-blue);
    color: var(--venture-blue);
}

/* Existing layout fixes */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: var(--venture-bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--venture-space-6);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--venture-space-3));
}

.col {
    flex: 1;
    padding: 0 var(--venture-space-3);
}

/* Loading screen integration */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--venture-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
    color: var(--venture-text-primary);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--venture-border-light);
    border-top: 3px solid var(--venture-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--venture-space-6) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-xl);
    font-weight: 600;
    color: var(--venture-text-primary);
    margin-bottom: var(--venture-space-2);
}

.loading-content p {
    font-family: 'Mont', sans-serif;
    font-size: var(--venture-font-size-base);
    color: var(--venture-text-secondary);
    margin: 0;
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--venture-space-1) !important; }
.mb-2 { margin-bottom: var(--venture-space-2) !important; }
.mb-3 { margin-bottom: var(--venture-space-3) !important; }
.mb-4 { margin-bottom: var(--venture-space-4) !important; }
.mb-5 { margin-bottom: var(--venture-space-5) !important; }
.mb-6 { margin-bottom: var(--venture-space-6) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--venture-space-1) !important; }
.mt-2 { margin-top: var(--venture-space-2) !important; }
.mt-3 { margin-top: var(--venture-space-3) !important; }
.mt-4 { margin-top: var(--venture-space-4) !important; }
.mt-5 { margin-top: var(--venture-space-5) !important; }
.mt-6 { margin-top: var(--venture-space-6) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--venture-space-1) !important; }
.p-2 { padding: var(--venture-space-2) !important; }
.p-3 { padding: var(--venture-space-3) !important; }
.p-4 { padding: var(--venture-space-4) !important; }
.p-5 { padding: var(--venture-space-5) !important; }
.p-6 { padding: var(--venture-space-6) !important; }

.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Specific overrides for existing components */
.dashboard-sidebar {
    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);
}

.stat-info {
    /* 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); */
    display: inline-flex;
}

.stat-info h3 {
    font-family: 'Mont', sans-serif;
    color: var(--venture-text-primary);
    margin-bottom: var(--venture-space-2);
    margin-right: 10px;
}

.modal {
    position: fixed;
    /* top: 0;
    left: 0; */
    /* width: 100vw;
    height: 100vh; */
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--venture-bg-primary);
    border-radius: var(--venture-radius-2xl);
    box-shadow: var(--venture-shadow-xl);
    border: 1px solid var(--venture-border-light);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Filter modal override - ensure 800px min-width and 2-column grid */
#filterModal > .modal-content.filter-modal-content {
    min-width: 800px !important;
    max-width: 900px !important;
    width: 90% !important;
    padding: 0 !important;
    border: none !important;
}

.modal-header {
    padding: var(--venture-space-6) var(--venture-space-8);
    border-bottom: 1px solid var(--venture-border-light);
    background-color: var(--venture-bg-primary);
    flex-shrink: 0;
}

.modal-body {
    padding: var(--venture-space-8);
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    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;
    display: flex;
    justify-content: flex-end;
    gap: var(--venture-space-3);
}

/* Auth Modal - preserve original behavior */
#authModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(2px);
}

/* Modal showing - these rules must be before hiding rules */
#authModal.show,
.modal.show,
.auth-modal.show {
    display: flex !important;
}

/* Modal hiding - these rules must be after the display rules to override them */
#authModal.hidden,
.modal.hidden,
.auth-modal.hidden {
    display: none !important;
}

#authModal .auth-modal-content {
    background: var(--venture-bg-primary) !important;
    border-radius: var(--venture-radius-lg) !important;
    box-shadow: var(--venture-shadow-xl) !important;
    border: 1px solid var(--venture-border-light) !important;
    padding: var(--venture-space-8) !important;
    max-width: 400px !important;
    width: 90% !important;
}

#authModal .auth-header h2 {
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-2xl) !important;
    font-weight: 600 !important;
    color: var(--venture-text-primary) !important;
    margin-bottom: var(--venture-space-2) !important;
    text-align: center !important;
}

#authModal .auth-header p {
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    color: var(--venture-text-secondary) !important;
    text-align: center !important;
    margin-bottom: var(--venture-space-6) !important;
}

#authModal .auth-form .form-group {
    margin-bottom: var(--venture-space-4) !important;
}

#authModal .auth-form label {
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    font-weight: 500 !important;
    color: var(--venture-text-primary) !important;
    margin-bottom: var(--venture-space-2) !important;
    display: block !important;
}

#authModal .auth-form input {
    width: 100% !important;
    padding: var(--venture-space-3) var(--venture-space-4) !important;
    border: 1px solid var(--venture-border-medium) !important;
    border-radius: var(--venture-radius-md) !important;
    background-color: var(--venture-bg-primary) !important;
    color: var(--venture-text-primary) !important;
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
}

#authModal .auth-form input:focus {
    outline: none !important;
    border-color: var(--venture-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

#authModal .auth-btn {
    width: 100% !important;
    padding: var(--venture-space-3) var(--venture-space-4) !important;
    background-color: var(--venture-primary) !important;
    color: white !important;
    border: 1px solid var(--venture-primary) !important;
    border-radius: var(--venture-radius-md) !important;
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    margin-top: var(--venture-space-4) !important;
}

#authModal .auth-btn:hover:not(:disabled) {
    background-color: var(--venture-primary-light) !important;
    border-color: var(--venture-primary-light) !important;
}

#authModal .auth-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#authModal .auth-error {
    color: var(--venture-red) !important;
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    text-align: center !important;
    margin-top: var(--venture-space-3) !important;
    padding: var(--venture-space-3) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid var(--venture-red) !important;
    border-radius: var(--venture-radius-md) !important;
}

#authModal .auth-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-left: var(--venture-space-2) !important;
}

/* Client Info Section (inline) Styles */
#clientInfoModal .client-info-tabs {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

#clientInfoModal .client-tab {
    flex: 1 !important;
    overflow-y: auto !important;
}

/* Form improvements */
.form-group label {
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    font-weight: 500 !important;
    color: var(--venture-text-primary) !important;
    margin-bottom: var(--venture-space-2) !important;
    display: inline-flex !important;
}

/* Checkbox styling improvements */
.checkbox-group {
    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);
}

.checkbox-group .checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--venture-space-2);
    padding: var(--venture-space-1) 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--venture-primary);
}

/* Specific styles for client places, subtypes, and conditions to match placesCheckboxes */
#clientPlaces input[type="checkbox"],
#clientSubtypes input[type="checkbox"],
#clientConditions input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

#clientPlaces label,
#clientSubtypes label,
#clientConditions label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px !important;
    font-size: 14px !important;
    font-family: 'Mont', sans-serif !important;
    cursor: pointer !important;
    color: var(--venture-text-primary) !important;
    user-select: none !important;
    margin: 0 !important;
}

.checkbox-group label {
    font-size: var(--venture-font-size-sm) !important;
    color: var(--venture-text-primary) !important;
    cursor: pointer;
    margin: 0 !important;
}

/* Tab buttons improvements */
.client-info-tabs .tab-buttons {
    background-color: var(--venture-bg-primary) !important;
    border-bottom: 1px solid var(--venture-border-light) !important;
}

.client-info-tabs .tab-btn {
    background: transparent !important;
    border: none !important;
    color: var(--venture-text-secondary) !important;
    font-family: 'Mont', sans-serif !important;
    font-size: var(--venture-font-size-sm) !important;
    font-weight: 500 !important;
    padding: var(--venture-space-4) var(--venture-space-6) !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.15s ease-in-out !important;
}

.client-info-tabs .tab-btn:hover {
    color: var(--venture-text-primary) !important;
    background-color: var(--venture-bg-secondary) !important;
}

.client-info-tabs .tab-btn.active {
    color: var(--venture-primary) !important;
    background-color: var(--venture-bg-secondary) !important;
    border-bottom-color: var(--venture-primary) !important;
}

/* Grid and layout improvements */
.client-tab .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--venture-space-6) !important;
    margin-bottom: var(--venture-space-6) !important;
}

.client-tab .form-group.full-width {
    grid-column: 1 / -1 !important;
}

.client-tab .form-group-pair {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--venture-space-6) !important;
}

/* Ensure proper spacing in client tab */
.client-tab {
    
}

/* Status colors for form elements */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--venture-red) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--venture-green) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Loading states for tabs */
.client-tab .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--venture-text-secondary);
}

.client-tab .loading .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);
}

/* Improvements for the places grid */
.places-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--venture-space-2) !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: var(--venture-space-3) !important;
    border: 1px solid var(--venture-border-light) !important;
    border-radius: var(--venture-radius-md) !important;
    background-color: var(--venture-bg-secondary) !important;
}

/* ==============================
   CLIENT JOURNAL STYLES
   ============================== */

.journal-section {
  
 
    border-radius: 10px;
   
    min-height: 400px;
    height: 100%;
    overflow-y: auto;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--venture-border-light);
}

.journal-header h3 {
    margin: 0;
    color: var(--venture-text-primary);
    font-size: 24px;
    font-weight: 600;
}

.journal-add-entry {
    margin-top:1rem;
    background: white;
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.journal-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-md);
    font-family: 'Mont', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 12px;
    background: var(--venture-bg-secondary);
    color: var(--venture-text-primary);
    transition: all 0.2s ease;
}

.journal-textarea:focus {
    outline: none;
    border-color: var(--venture-primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
    background: white;
}

.journal-textarea::placeholder {
    color: var(--venture-text-tertiary);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.journal-entry {
    background: white;
    border: 1px solid var(--venture-border-light);
    border-radius: 12px;
    padding: 40px 20px 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.journal-entry:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--venture-primary);
}

.journal-entry-task {
    border-left: 4px solid var(--colorPaletteBlueForeground2, #0078d4);
    background: linear-gradient(135deg, #f0f6ff 0%, white 100%);
}

.journal-entry-task:hover {
    border-color: var(--colorPaletteBlueForeground2, #0078d4);
}

.journal-entry-duedate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--colorPaletteBlueForeground2, #0078d4);
    white-space: nowrap;
}

.journal-entry-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    min-height: 0;
}

.journal-entry-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--venture-text-secondary);
}

.journal-entry-user i {
    font-size: 16px;
    color: var(--venture-text-tertiary);
}

.journal-entry-date {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #333;
    padding: 5px 12px;
    border-radius: 12px 0px 12px 0px;
    white-space: nowrap;
}

.journal-entry-date i {
    font-size: 12px;
}

.journal-entry-date span {
    color: white;
}

.journal-entry-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--venture-text-primary);
    /* white-space: pre-wrap; */
    word-wrap: break-word;
}

/* Journal loading and empty states */
.journal-section .loading-state,
.journal-section .error-state,
.journal-section .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.journal-section .loading-state i,
.journal-section .error-state i,
.journal-section .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.journal-section .loading-state i {
    color: var(--venture-primary);
    animation: rotate 1s linear infinite;
}

.journal-section .error-state i {
    color: var(--venture-red);
}

.journal-section .empty-state i {
    color: var(--venture-text-tertiary);
}

.journal-section .loading-state p,
.journal-section .error-state p,
.journal-section .empty-state p {
    margin: 8px 0;
    color: var(--venture-text-secondary);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==============================
   ANALYTICS CHARTS STYLES
   ============================== */

.charts-content {
    transition: all 0.3s ease;
    max-height: 700px;
    overflow-y: auto;
}

.charts-content.collapsed {
    display: none;
}

.analytics-chart-container {
    background: white;
    border-radius: var(--venture-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.analytics-chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--venture-text-primary);
    text-align: center;
}

.analytics-chart-container canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
}

.analytics-chart-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--venture-text-secondary);
}

/* ==============================
   PROPERTY JOURNAL STYLES
   ============================== */

.property-journal-entry {
    margin-bottom: 8px;
}

.journal-entry-card {
    background: white;
    border: 1px solid var(--venture-border-light);
    border-radius: var(--venture-radius-lg);
    padding: 8px 12px;
    min-height: 60px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.journal-entry-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--venture-primary);
}

.journal-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.journal-entry-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--venture-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 16px;
    color: var(--venture-text-tertiary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--venture-text-primary);
    white-space: nowrap;
}

.entry-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--venture-text-secondary);
    white-space: nowrap;
}

.entry-date i {
    font-size: 12px;
}

.journal-entry-message {
    font-size: 13px;
    line-height: 1.4;
    color: var(--venture-text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journal-entry-message b {
    color: var(--venture-primary);
    font-weight: 600;
}

/* Timeline line */
.journal-timeline {
    position: relative;
}

.journal-timeline .loading-state,
.journal-timeline .error-state,
.journal-timeline .empty-state {
    padding: 24px;
}

/* ==============================
   SEARCH DROPDOWN STYLES
   ============================== */

.search-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--venture-border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-dropdown-item:hover {
    background-color: var(--venture-bg-secondary);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item .property-info {
    flex: 1;
}

.search-dropdown-item .property-title {
    font-weight: 500;
    color: var(--venture-text-primary);
    margin-bottom: 4px;
    font-size: 14px;
    font-family: 'Mont', sans-serif;
}

.search-dropdown-item .property-address {
    color: var(--venture-text-secondary);
    font-size: 12px;
    margin-bottom: 2px;
    font-family: 'Mont', sans-serif;
}

.search-dropdown-item .property-price {
    color: var(--venture-primary);
    font-weight: 500;
    font-size: 13px;
    font-family: 'Mont', sans-serif;
}

.search-dropdown-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--venture-text-tertiary);
    font-style: italic;
    font-family: 'Mont', sans-serif;
    font-size: 14px;
}


/* ============================================ */
/* Source: aistyles.css */
/* ============================================ */

/* AI Price Trends Table Styles */
.ai-trends-table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

/* Trends Header and Controls */
.trends-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.trends-header h2 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

.trends-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.date-filters,
.location-filters,
.rooms-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.date-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.trends-controls label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trends-controls input,
.trends-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.trends-controls input:focus,
.trends-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.trends-controls input:hover,
.trends-controls select:hover {
    border-color: #9ca3af;
}

.trends-controls .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.trends-controls .btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.trends-controls .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-trends-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Mont', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ai-trends-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-trends-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.ai-trends-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.ai-trends-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.ai-trends-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
}

.ai-trends-table tbody tr:last-child {
    border-bottom: none;
}

.ai-trends-table td {
    padding: 14px 20px;
    vertical-align: middle;
    border: none;
    color: #374151;
    font-weight: 500;
}

/* Location column with grouping */
.ai-trends-location-cell {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-right: 3px solid #cbd5e1;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

.ai-trends-location-cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Year column */
.ai-trends-year-cell {
    font-weight: 600;
    color: #4338ca;
    background: #faf5ff;
}

/* Subtype column */
.ai-trends-subtype-cell {
    color: #059669;
    font-weight: 500;
}

/* Rooms column */
.ai-trends-rooms-cell {
    text-align: center;
    font-weight: 600;
    color: #7c3aed;
    background: #faf5ff;
}

/* Price change column */
.ai-trends-price-cell {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    position: relative;
}

.ai-trends-price-positive {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.ai-trends-price-negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.ai-trends-price-neutral {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    border-left: 4px solid #94a3b8;
}

/* Price change icons */
.ai-trends-price-positive::before {
    content: 'â†— ';
    font-size: 16px;
    color: #059669;
    margin-right: 4px;
}

.ai-trends-price-negative::before {
    content: 'â†˜ ';
    font-size: 16px;
    color: #dc2626;
    margin-right: 4px;
}

.ai-trends-price-neutral::before {
    content: 'â†’ ';
    font-size: 16px;
    color: #6b7280;
    margin-right: 4px;
}

/* Empty state */
.ai-trends-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.ai-trends-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.ai-trends-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.ai-trends-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .trends-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .date-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .location-filters,
    .rooms-filters {
        min-width: auto;
    }
    
    .trends-controls .btn {
        justify-content: center;
    }
    
    .ai-trends-table {
        font-size: 12px;
    }
    
    .ai-trends-table th,
    .ai-trends-table td {
        padding: 10px 12px;
    }
    
    .ai-trends-location-cell {
        font-size: 12px;
    }
    
    .ai-trends-price-cell {
        font-size: 13px;
    }
}

/* Animation for row updates */
@keyframes ai-trends-row-highlight {
    0% {
        background-color: #fef3c7;
    }
    100% {
        background-color: transparent;
    }
}

.ai-trends-table tbody tr.ai-trends-new-row {
    animation: ai-trends-row-highlight 2s ease-out;
}

/* Loading state */
.ai-trends-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.ai-trends-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: ai-trends-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes ai-trends-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== AI Analysis Modal ===== */
.ai-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.ai-modal-content {
    background: var(--colorNeutralBackground1, #fff);
    border-radius: 16px;
    width: 94%;
    max-width: 720px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
    overflow: hidden;
}

.ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--colorNeutralStroke1, #e5e7eb);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.ai-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-modal-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--colorNeutralForeground1, #1a1a2e);
}

.ai-subtitle {
    font-size: 13px;
    color: var(--colorNeutralForeground2, #6b7280);
}

.ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.ai-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--colorNeutralForeground2, #6b7280);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ai-modal-close:hover {
    background: rgba(0,0,0,0.08);
}

.ai-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Chat bubble blocks */
.ai-block {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
    animation: aiFadeIn 0.4s ease forwards;
}

.ai-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-block-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
.ai-block-icon.competitors { background: #3b82f6; }
.ai-block-icon.sold        { background: #10b981; }
.ai-block-icon.clients     { background: #f59e0b; }

.ai-block-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--colorNeutralForeground1, #1a1a2e);
}

.ai-block-body {
    background: var(--colorNeutralBackground2, #f8fafc);
    border: 1px solid var(--colorNeutralStroke1, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
}

.ai-summary-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--colorNeutralForeground1, #1e293b);
    margin-bottom: 12px;
}
.ai-summary-text strong {
    color: #6366f1;
}

/* Typing dots animation */
.ai-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 8px 0;
}
.ai-typing-dot {
    width: 8px; height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: aiTypingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes aiFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Thinking step */
.ai-thinking-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--colorNeutralForeground2, #6b7280);
}
.ai-thinking-step i {
    color: #6366f1;
    font-size: 18px;
}

/* Mini table inside AI blocks */
.ai-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}
.ai-mini-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: var(--colorNeutralForeground2, #6b7280);
    border-bottom: 2px solid var(--colorNeutralStroke1, #e5e7eb);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ai-mini-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--colorNeutralStroke1, #f1f3f5);
    color: var(--colorNeutralForeground1, #1e293b);
}
.ai-mini-table tr:last-child td { border-bottom: none; }
.ai-mini-table tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

/* Badge pills */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.ai-badge.higher { background: #fef2f2; color: #dc2626; }
.ai-badge.lower  { background: #f0fdf4; color: #16a34a; }
.ai-badge.equal  { background: #f0f4ff; color: #6366f1; }
.ai-badge.neutral { background: #f3f4f6; color: #6b7280; }

/* Stats row */
.ai-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.ai-stat-card {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border: 1px solid var(--colorNeutralStroke1, #e5e7eb);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.ai-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
}
.ai-stat-label {
    font-size: 11px;
    color: var(--colorNeutralForeground2, #6b7280);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Client list in AI */
.ai-client-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--colorNeutralStroke1, #f1f3f5);
}
.ai-client-item:last-child { border-bottom: none; }
.ai-client-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-client-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--colorNeutralForeground1, #1e293b);
}
.ai-client-criteria {
    font-size: 12px;
    color: var(--colorNeutralForeground2, #6b7280);
}
.ai-client-action .btn {
    font-size: 12px;
    padding: 4px 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .ai-modal-content { width: 100%; max-height: 100vh; border-radius: 0; }
    .ai-stats-row { flex-direction: column; }
    .ai-stat-card { min-width: unset; }
}


