.timeline-event-indispo {
    border: 1.5px solid #000;
}

/* Admin Dashboard - BDR Cards */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bdr-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
    transition: var(--transition);
}

.bdr-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.bdr-card-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.bdr-card-info {
    flex: 1;
}

.bdr-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.bdr-card-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bdr-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bdr-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bdr-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(0, 110, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdr-stat-icon i,
.bdr-stat-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.bdr-stat-details {
    display: flex;
    flex-direction: column;
}

.bdr-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.bdr-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.bdr-card-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.bdr-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid #7b90ad;
}

/* Analytics section headers */
.analytics-section {
    margin-bottom: 2rem;
}

.analytics-section-header {
    margin-bottom: 1.5rem;
}

.analytics-section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.analytics-section-header h3 i,
.analytics-section-header h3 svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.analytics-section-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.comparison-chart-wrapper {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-cards-grid {
        grid-template-columns: 1fr;
    }

    .bdr-card-content {
        flex-direction: column;
    }

    .bdr-card-avatar {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .bdr-card-stats {
        grid-template-columns: 1fr;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 110, 255, 0.3) var(--bg-light);

}

:root {
    --primary-color: #006EFF;
    --primary-hover: #0056CC;
    --secondary-color: #5fa1ff;
    --sidebar-bg: #F8F9FA;
    --sidebar-hover: #E5E7EB;
    --text-primary: #19273A;
    --text-secondary: #1D2B3D;
    --text-light: #FFFFFF;
    --border-color: #7b90ad;
    --border-light: #E5E7EB;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --danger-color: #ef4444;
    --radius-card: 15px;
    --sidebar-width: 286px;
    --sidebar-collapsed-width: 80px;
    --transition: all 0.3s ease;
    --shadow-light: 0 2px 4px 0 rgba(0, 0, 0, 0);
    --shadow-standard: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
}

/* Scrollbar styles - Simplified and branded */
/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(0, 110, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 110, 255, 0.5);
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    overflow-x: hidden;

}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('texture.svg');
    background-repeat: repeat;
    background-position: 0 0;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-primary);
    transition: var(--transition);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-standard);
    border-right: 1px solid #7b90ad;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 0rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #7b90ad;
    position: relative;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: auto;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 2rem);
    flex-shrink: 1;
    flex-grow: 0;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}


.sidebar.collapsed .logo-img {
    display: none;
}

.logo-text {
    transition: var(--transition);
    opacity: 1;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn i,
.toggle-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    stroke-width: 2;
}

.toggle-btn i svg {
    width: 100%;
    height: 100%;
}

.toggle-btn:hover {
    background-color: var(--sidebar-hover);
    transform: translateY(-2px);
}

.sidebar.collapsed .toggle-btn {
    justify-content: center;
    width: 100%;
}

.sidebar.collapsed .toggle-btn i,
.sidebar.collapsed .toggle-btn svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    gap: 1rem;
    position: relative;
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
}

.nav-link i,
.nav-link svg {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    text-align: center;
    flex-shrink: 0;
    stroke-width: 2;
}

.nav-link i svg {
    width: 100%;
    height: 100%;
}

.nav-link.active i,
.nav-link.active svg {
    stroke: var(--text-primary);
    color: var(--text-primary);
}

.nav-text {
    transition: var(--transition);
    opacity: 1;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sidebar Footer - User Section */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0.125rem;
}

.user-first-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-last-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Legacy support for old user-name class */
.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logout-btn i,
.logout-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    stroke-width: 2;
}

.logout-btn i svg {
    width: 100%;
    height: 100%;
}

.logout-btn:hover {
    background-color: var(--sidebar-hover);
    transform: translateY(-2px);
}

/* Sidebar collapsed - User section */
.sidebar.collapsed .user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

.sidebar.collapsed .user-avatar {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.top-header {
    background-color: var(--bg-white);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-standard);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #7b90ad;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 15px;
    transition: var(--transition);
}

.menu-toggle i,
.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    stroke-width: 2;
}

.menu-toggle i svg {
    width: 100%;
    height: 100%;
}

.menu-toggle:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-light);
}

/* Skeleton loader styles */
.skeleton-container {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-white);
    border-radius: 25px;
    border: 1px solid #7b90ad;
    padding: 1.5rem;
    min-height: 200px;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-content {
    position: relative;
    z-index: 1;
    opacity: 0.25;
}

.skeleton-line {
    height: 16px;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-table {
    width: 100%;
}

.skeleton-table-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-table-cell {
    flex: 1;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

#prospects .section-header {
    justify-content: flex-end;
    align-items: stretch;
}

#prospects .section-header .prospects-search-container {
    margin-right: auto;
}

.section-content {
    position: relative;
}

/* Prospects search */
.prospects-search-container {
    flex: 1;
    max-width: none;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    height: 40px;
}

.prospects-filter-container {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    height: 100%;
}

.prospect-filter-tag {
    padding: 0.625rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 0.875rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.prospect-filter-tag:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.05);
}

.prospect-filter-tag.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.prospect-filter-tag:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    height: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 0.875rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    height: 100%;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mission reminder */
.mission-reminder {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    margin-bottom: 2rem;
}

.mission-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 110, 255, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
}

.mission-icon i,
.mission-icon svg {
    width: 24px;
    height: 24px;
}

.mission-content {
    flex: 1;
}

.mission-greeting {
    margin: 0 0 0.3125rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.mission-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.125rem;
    border: 1px solid #1D2B3D;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Sora', sans-serif;
    height: 42px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid #1D2B3D;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--text-light);
    border: 1px solid #1D2B3D;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn i,
.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
}

.btn i svg {
    width: 100%;
    height: 100%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon i,
.stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.stat-icon i svg {
    width: 100%;
    height: 100%;
}

.stat-info h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Chart Container */
.chart-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.chart-container + .chart-container {
    margin-top: 1.2rem;
}

.chart-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stats-period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-period-selector label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-period-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.stats-period-select:hover {
    border-color: var(--primary-color);
}

.stats-period-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.stats-toggles {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.stats-toggle-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 2rem;
}

.chart-container canvas {
    max-height: 400px !important;
    height: 400px !important;
    width: 100% !important;
}

.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.chart-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 110, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.chart-empty-icon i,
.chart-empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.chart-empty-state h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.chart-empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
}

.empty-state i,
.empty-state svg {
    width: 4rem;
    height: 4rem;
    color: var(--text-secondary);
    stroke: var(--text-secondary);
    stroke-width: 1.5;
    margin-bottom: 1rem;
}

.empty-state i svg {
    width: 100%;
    height: 100%;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Table */
.table-container {
    background-color: var(--bg-white);
    /* border-radius: 15px; */
    border-top: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    overflow: hidden;
}

/* Prospects cards layout */
#prospectsTableContainer {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    display: block;
}

.prospects-card {
    background: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 20px;
    /* padding: 0.75rem 0.75rem 1rem; */
    margin-bottom: 1rem;
    box-shadow: var(--shadow-standard);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}


.prospects-card-header {
    padding: 1rem 1rem 0.25rem;
}

.prospects-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.prospects-card-title i,
.prospects-card-title svg { width: 16px; height: 16px; }

.prospects-card-title.booked { color: #16a34a; }
.prospects-card-title.archived { color: #64748b; }

/* Compact table inside cards */
.prospects-card .data-table th, .prospects-card .data-table td { padding: 0.55rem 0.75rem; }
.prospects-card .data-table { margin: 0; }

/* Assurer l'alignement des colonnes dans les cartes */
.prospects-card .data-table th:nth-child(1), .prospects-card .data-table td:nth-child(1) { width: 20%; min-width: 140px; }
.prospects-card .data-table th:nth-child(2), .prospects-card .data-table td:nth-child(2) { width: 15%; min-width: 100px; }
.prospects-card .data-table th:nth-child(3), .prospects-card .data-table td:nth-child(3) { width: 12%; min-width: 90px; }
.prospects-card .data-table th:nth-child(4), .prospects-card .data-table td:nth-child(4) { width: 20%; min-width: 140px; }
.prospects-card .data-table th:nth-child(5), .prospects-card .data-table td:nth-child(5) { width: 18%; min-width: 50px; text-align: center; }
.prospects-card .data-table th:nth-child(6), .prospects-card .data-table td:nth-child(6) { width: 12%; min-width: 80px; }
.prospects-card .data-table th:nth-child(7), .prospects-card .data-table td:nth-child(7) { width: 15%; min-width: 100px; text-align: center; }

@media (min-width: 900px) {
  #prospectsTableContainer {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 2rem;
      align-items: stretch;
  }
}


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

.data-table thead {
    background-color: var(--bg-light);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Colonnes alignment pour les tableaux prospects */
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 25%; min-width: 200px; } /* NOM */
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 20%; min-width: 150px; } /* ENTREPRISE */
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 15%; min-width: 120px; } /* TÉLÉPHONE */
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 25%; min-width: 200px; } /* EMAIL */
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 15%; min-width: 150px; text-align: center; } /* ACTIONS */

.data-table tbody tr[data-prospect-id] {
    cursor: pointer;
}

.data-table tbody tr[data-prospect-id]:hover {
    background-color: var(--bg-light);
}


.empty-table {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-table i,
.empty-table svg {
    width: 3rem;
    height: 3rem;
    color: var(--text-secondary);
    stroke: var(--text-secondary);
    stroke-width: 1.5;
    margin-bottom: 1rem;
}

.empty-table i svg {
    width: 100%;
    height: 100%;
}

.empty-table p {
    color: var(--text-secondary);
}

/* Action buttons in table */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-confirm {
    color: var(--primary-color);
}

.btn-icon.btn-confirm:hover {
    background-color: rgba(0, 110, 255, 0.1);
    color: var(--primary-color);
}

.btn-icon.btn-record {
    color: var(--danger-color);
}

.btn-icon.btn-record:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-icon.btn-depot,
.btn-icon.btn-confirm {
    color: var(--primary-color);
}

.btn-icon.btn-depot:hover,
.btn-icon.btn-confirm:hover {
    background-color: rgba(0, 110, 255, 0.1);
    color: var(--primary-color);
}

.btn-icon.btn-invite {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-invite:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-archive {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-archive:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-unarchive {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-unarchive:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-delete {
    color: var(--danger-color);
}

.btn-icon.btn-delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Spinning animation for loading icons */
.spinning {
    animation: spin 1s linear infinite;
}

/* Detail modal button variants */
.btn-icon.btn-record-detail {
    color: var(--danger-color);
}

.btn-icon.btn-record-detail:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-icon.btn-depot-detail {
    color: var(--primary-color);
}

.btn-icon.btn-depot-detail:hover {
    background-color: rgba(0, 110, 255, 0.1);
    color: var(--primary-color);
}

.btn-icon.btn-invite-detail {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-invite-detail:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-archive-detail {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-archive-detail:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-unarchive-detail {
    color: var(--text-secondary); /* gris/noir */
}

.btn-icon.btn-unarchive-detail:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-icon.btn-delete-detail {
    color: var(--danger-color);
}

.btn-icon.btn-delete-detail:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.btn-icon i,
.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* LinkedIn link in prospects table */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: 4px;
}

.linkedin-link:hover {
    background-color: rgba(0, 110, 255, 0.1);
    color: var(--primary-hover);
}

.linkedin-link i,
.linkedin-link svg {
    width: 18px;
    height: 18px;
}

/* Status badge */
/* Called status indicators */
.called-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.called-icon.called-yes {
    color: #22c55e;
}

.called-icon.called-no {
    color: var(--text-secondary);
    opacity: 0.5;
}

.called-icon.prospect-done-check {
    color: #10B981;
    animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.booked-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.booked-icon.booked-yes {
    color: #22c55e;
    position: relative;
}

.booked-icon.booked-yes::after {
    content: '✓';
    position: absolute;
    top: -2px;
    right: -4px;
    font-size: 10px;
    font-weight: bold;
    color: #22c55e;
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.archived-section-header {
    background-color: #f8f9fa !important;
    border-left: none !important;
    cursor: default !important;
}

.archived-section-header td {
    padding: 1rem !important;
}

.archived-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archived-section-title i {
    width: 18px;
    height: 18px;
}

/* Booked section styles */
.booked-section-header {
    background-color: #f0fdf4 !important;
    border-left: none !important;
    cursor: default !important;
}

.booked-section-header td {
    padding: 1rem !important;
}

.booked-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booked-section-title i {
    width: 18px;
    height: 18px;
}

.prospect-archived {
    opacity: 0.6;
}

.prospect-archived:hover {
    opacity: 0.8;
}

.called-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.called-status.called-yes {
    color: #22c55e;
}

.called-status.called-yes i,
.called-status.called-yes svg {
    color: #22c55e;
    width: 16px;
    height: 16px;
}

.called-status.called-no {
    color: var(--text-secondary);
}

.called-status.called-no i,
.called-status.called-no svg {
    color: var(--text-secondary);
    opacity: 0.5;
    width: 16px;
}

.booked-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.booked-status.booked-yes {
    color: #16a34a;
}

.booked-status.booked-yes i,
.booked-status.booked-yes svg {
    color: #16a34a;
    width: 16px;
    height: 16px;
}

.booked-status.booked-no {
    color: var(--text-secondary);
}

.booked-status.booked-no i,
.booked-status.booked-no svg {
    color: var(--text-secondary);
    opacity: 0.5;
    width: 16px;
    height: 16px;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Calendar Styles */
.calendar-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
    position: relative;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.calendar-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 200px;
    text-align: left;
    margin-left: 1rem;
}

.view-selector {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-light);
    padding: 0.25rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 15px;
    transition: var(--transition);
    font-family: 'Sora', sans-serif;
}

.view-btn:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
}

.view-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-nav {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-nav i,
.btn-nav svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2;
}

.btn-nav:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--sidebar-hover);
    transform: translateY(-2px);
}

/* Loading screens */
.calendar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    border-radius: 15px;
    z-index: 100;
}

.prospects-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    z-index: 10;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
    background-color: var(--bg-light);
    border-radius: 15px;
    z-index: 10;
}

.dashboard-content {
    width: 100%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.calendar-view {
    width: 100%;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.calendar-day-view {
    display: flex;
    flex-direction: column;
}

.calendar-day-single {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    min-height: 400px;
}

/* Timeline verticale */
.timeline-container {
    position: relative;
    margin-top: 1.5rem;
    height: 840px;
    display: flex;
    /* border: 1px solid var(--border-color); */
    /* border-radius: 15px; */
    /* background-color: var(--bg-white); */
    /* overflow: hidden; */
}

.time-scale {
    position: relative;
    width: 60px;
    flex-shrink: 0;
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-color);
    padding: 0.5rem;
}

.timeline-hour-label {
    position: absolute;
    right: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--bg-light);
    padding: 0 0.25rem;
}

.timeline-grid {
    position: relative;
    flex: 1;
    background-color: var(--bg-white);
}

.timeline-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
}

.timeline-hour-line-main {
    border-top: 1px solid var(--border-color);
}

.timeline-hour-line-half {
    border-top: 1px dashed rgba(123, 144, 173, 0.3);
}

.timeline-events-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.timeline-event-bar {
    position: absolute;
    left: 0px;
    right: 0.5rem;
    background-color: rgba(239, 68, 68, 0.7); /* Softer red with opacity */
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    min-height: 30px;
}

/* First day has time scale, so events start at 70px */
.first-day .timeline-event-bar {
    left: 70px;
}

.timeline-event-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.timeline-event-time {
    font-size: 0.65rem;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
}

.calendar-month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-month-header-day {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    text-transform: uppercase;
}

.calendar-month-day {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0.5rem;
    min-height: 80px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calendar-month-day.today {
    background-color: rgba(0, 110, 255, 0.05);
    border: 2px solid var(--primary-color);
}

.calendar-month-day.today .day-number {
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-month-day .day-number {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.calendar-month-day .calendar-events {
    flex: 1;
    overflow: hidden;
}

.calendar-month-day .calendar-event {
    font-size: 0.625rem;
    padding: 0.25rem;
    margin-bottom: 0.25rem;
}

.calendar-day-single .calendar-events {
    margin-top: 1rem;
}

.calendar-day-single .calendar-event {
    margin-bottom: 0.75rem;
}

.calendar-day {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0.75rem;
    min-height: 150px;
}

.calendar-day-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-day.today {
    background-color: rgba(0, 110, 255, 0.05);
    border-color: var(--primary-color);
}

.calendar-day.today .day-number {
    color: var(--primary-color);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-event {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid #000000;
}

.calendar-event-indisponible {
    background-color: rgba(239, 68, 68, 0.7); /* Softer red with opacity - same as timeline */
}

.event-time {
    font-size: 0.65rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 1rem;
    }
    
    .calendar-week {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 100px;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .week-title {
        order: -1;
        margin-bottom: 1rem;
    }
}

/* Script Styles */
.script-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
    width: 100%;
}

.script-content {
    max-width: 900px;
    margin: 0 auto;
}

.script-intro {
    margin-bottom: 1.5rem;
}

.script-intro-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.script-section {
    margin-bottom: 1.5rem;
}

.script-section:last-child {
    margin-bottom: 0;
}

.script-section.script-final {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 110, 255, 0.2);
}

.script-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.script-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.script-text.script-emphasis {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.script-question {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.script-question.script-primary {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.script-question.script-secondary {
    color: var(--text-secondary);
    font-weight: 500;
}

.script-question em {
    font-style: italic;
    color: var(--text-secondary);
}

.script-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.script-highlight-blue {
    color: var(--primary-color);
    font-weight: 700;
}

.script-name {
    color: var(--text-primary);
    font-weight: 600;
}

.script-company {
    color: var(--primary-color);
    font-weight: 600;
}

.script-alternative {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1rem;
}

.script-note {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
}

.script-note.script-action {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

.script-example {
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.script-example strong {
    color: var(--primary-color);
    font-weight: 600;
}

.script-thanks {
    color: var(--text-secondary);
    font-style: italic;
}

/* Presentation */
.presentation-container {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 600px;
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    overflow: hidden;
    position: relative;
}

.presentation-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Infos Utiles */
.infos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.infos-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    overflow: hidden;
    transition: var(--transition);
}

.infos-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.infos-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    color: var(--text-primary);
    border-bottom: 1px solid #e0e6ed;
}

.infos-card-header i,
.infos-card-header svg {
    width: 32px;
    height: 32px;
}

.infos-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.infos-card-body {
    padding: 1.5rem;
}

.infos-card-body p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.infos-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.infos-links .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.infos-links .btn i,
.infos-links .btn svg {
    width: 20px;
    height: 20px;
}

.infos-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 110, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.infos-note i,
.infos-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.invoice-form {
    margin: 1.5rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.invoice-form .form-group {
    margin-bottom: 1rem;
}

.invoice-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.invoice-form .form-input,
.invoice-form .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d6dde7;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.invoice-form .form-input:focus,
.invoice-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.invoice-form .form-textarea {
    min-height: 80px;
    resize: vertical;
}

@media (max-width: 1024px) {
    .infos-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 15px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.toast.toast-fadeout {
    opacity: 0;
}

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom Action Dropdown */
.custom-action-dropdown {
    position: fixed;
    background: var(--bg-white);
    border: 1px solid #34466a;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 9999;
    min-width: 260px;
    animation: dropdownSlideIn 0.2s ease-out;
    font-family: 'Sora', sans-serif;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-action-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    position: relative;
}

.custom-action-item i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.custom-action-item span {
    flex: 1;
}

.custom-action-item:hover {
    background: var(--bg-light);
}

.custom-action-item:active {
    background: #e8edf5;
}

/* Prospect task dropdown (reuses custom-action-dropdown styles) */
.prospect-task-dropdown {
    position: fixed;
    background: var(--bg-white);
    border: 1px solid #34466a;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 10000;
    min-width: 260px;
    animation: dropdownSlideIn 0.2s ease-out;
    font-family: 'Sora', sans-serif;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 25px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-strong);
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: var(--transition);
}

#depotModal .modal-content {
    max-width: 1200px;
    transition: height 0.3s ease, max-height 0.3s ease;
}

#depotModal .modal-body {
    transition: height 0.3s ease;
}

.modal-content-small {
    max-width: 450px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #7b90ad;
    gap: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.modal-header-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.modal-header-actions .btn i,
.modal-header-actions .btn svg {
    width: 16px;
    height: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.modal-close i,
.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #7b90ad;
}

/* Depot modal styles */
/* Depot Modal Layout */
.depot-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.depot-options-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.depot-fields-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.depot-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.depot-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.depot-option[data-value="recorded"] {
    flex-direction: column;
    align-items: stretch;
}

.depot-option[data-value="not_recorded"] {
    flex-direction: column;
    align-items: stretch;
}

.depot-option[data-value="in_app_recording"] {
    flex-direction: column;
    align-items: stretch;
    border-color: var(--danger-color);
    border-width: 2px;
    background-color: rgba(239, 68, 68, 0.05);
}

.depot-option[data-value="in_app_recording"]:hover {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}

.depot-option[data-value="in_app_recording"] .depot-option-label {
    color: var(--danger-color);
    font-weight: 500;
}

.depot-option[data-value="in_app_recording"] input[type="radio"] {
    accent-color: var(--danger-color);
}

.depot-option-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.depot-option[data-value="recorded"].has-upload-visible .depot-option-header {
    margin-bottom: 1rem;
}

.depot-details-container {
    width: 100%;
    padding-top: 0.5rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.depot-details-container[style*="display: block"],
.depot-details-container:not([style*="display: none"]) {
    max-height: 1000px;
    opacity: 1;
}

.depot-details-container .form-group {
    margin-bottom: 0;
}

.depot-details-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d6dde7;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.depot-instructions-warning {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    margin-top: 1rem;
    color: #92400e;
}

.depot-instructions-warning i,
.depot-instructions-warning svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #f59e0b;
    margin-top: 2px;
}

.depot-instructions-warning strong {
    color: #78350f;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.depot-instructions-warning ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.depot-instructions-warning li {
    margin-bottom: 0.25rem;
}

.depot-option:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.depot-option input[type="radio"]:checked + .depot-option-label {
    color: var(--primary-color);
    font-weight: 500;
}

.depot-option.selected {
    background-color: rgba(0, 110, 255, 0.1);
    border-color: var(--primary-color);
    border-width: 2px;
}

.depot-option.selected .depot-option-label {
    color: var(--primary-color);
    font-weight: 500;
}

.depot-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.depot-option-label {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Invite type options */
.invite-type-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.invite-type-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.invite-type-option:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.invite-type-option input[type="radio"]:checked + .invite-type-label {
    color: var(--primary-color);
    font-weight: 500;
}

.invite-type-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.invite-type-label {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invite-type-label i,
.invite-type-label svg {
    width: 18px;
    height: 18px;
}

/* Depot upload zone */
.depot-upload-container {
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.depot-upload-container[style*="display: block"] {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.depot-upload-container[style*="display: none"] {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Depot recording info */
.depot-recording-info {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.depot-recording-info[style*="display: block"] {
    max-height: 200px;
    opacity: 1;
}

.depot-upload-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    background-color: rgba(0, 110, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.depot-upload-zone:hover {
    background-color: rgba(0, 110, 255, 0.1);
    border-color: var(--primary-hover);
}

.depot-upload-zone.dragover {
    background-color: rgba(0, 110, 255, 0.15);
    border-color: var(--primary-hover);
}

.depot-upload-zone.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22C55E;
    animation: depositSuccess 0.6s ease;
}

.depot-upload-zone.success .depot-upload-icon {
    color: #22C55E;
    animation: iconPulse 0.6s ease;
}

.depot-upload-zone.success .depot-upload-text {
    color: #22C55E;
    font-weight: 600;
}

@keyframes depositSuccess {
    0% {
        background-color: rgba(0, 110, 255, 0.05);
        transform: scale(1);
    }
    50% {
        background-color: rgba(34, 197, 94, 0.2);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(34, 197, 94, 0.1);
        transform: scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.depot-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.depot-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    stroke-width: 2;
}

.depot-upload-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.depot-upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.depot-datetime {
    margin-top: 0;
}

.depot-datetime-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.depot-datetime-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    box-sizing: border-box;
}

.depot-datetime-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.depot-note {
    margin-top: 0;
}

.depot-note-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.depot-note-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    resize: vertical;
    box-sizing: border-box;
    min-height: 150px;
}

.depot-note-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.depot-note-input::placeholder {
    color: var(--text-secondary);
}

/* Prospect details modal styles */
.modal-content-large {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.prospect-details-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #7b90ad;
}

.prospect-details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prospect-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Prospect info grid */
.prospect-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.prospect-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prospect-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.prospect-info-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.prospect-info-value.firm-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.firm-name-display {
    flex: 1;
}

.firm-edit-btn-detail {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.firm-edit-btn-detail:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.firm-edit-btn-detail:hover i,
.firm-edit-btn-detail:hover svg {
    color: white;
    stroke: white;
}

.firm-edit-btn-detail i,
.firm-edit-btn-detail svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    stroke: var(--text-secondary);
    transition: all 0.2s ease;
}

.prospect-info-value.editable-field {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.prospect-info-value.editable-field:hover {
    background-color: rgba(0, 110, 255, 0.05);
}

.prospect-info-value.editable-field.editing {
    background-color: rgba(0, 110, 255, 0.1);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.editable-text {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-height: 1.5rem;
}

.editable-text:hover {
    background-color: rgba(0, 110, 255, 0.05);
}

.editable-text.editing {
    background-color: rgba(0, 110, 255, 0.1);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prospect note personnelle */
.prospect-note {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    border: 1px solid #7b90ad;
}

.prospect-note-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Prospect summary */
.prospect-summary {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    border: 1px solid #7b90ad;
}

.prospect-summary p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.prospect-summary-placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

/* Prospect activities */
.prospect-activities {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    border: 1px solid #7b90ad;
}

.prospect-activities-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Prospect timeline */
.prospect-timeline {
    position: relative;
    padding-left: 3rem;
}

.prospect-timeline::before {
    content: '';
    position: absolute;
    left: calc(0.75rem + 3px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #7b90ad);
}

.prospect-timeline-empty {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    margin: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item-marker {
    position: absolute;
    left: -3rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
    background-color: var(--bg-white);
    border-radius: 50%;
}

.timeline-item-marker i,
.timeline-item-marker svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Timeline status colors - icons */
.timeline-item-status-grey .timeline-item-marker i,
.timeline-item-status-grey .timeline-item-marker svg {
    color: #6b7280;
}

.timeline-item-status-blue .timeline-item-marker i,
.timeline-item-status-blue .timeline-item-marker svg {
    color: #006EFF;
}

.timeline-item-status-green .timeline-item-marker i,
.timeline-item-status-green .timeline-item-marker svg {
    color: #22c55e;
}

/* Timeline item content border based on status */
.timeline-item-status-grey .timeline-item-content {
    border: 1px solid #6b7280;
}

.timeline-item-status-blue .timeline-item-content {
    border: 1px solid #006EFF;
}

.timeline-item-status-green .timeline-item-content {
    border: 1px solid #22c55e;
}

.timeline-item-content {
    flex: 1;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    border: 1px solid #7b90ad;
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-item-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-item-duration {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* Timeline duration color based on status */
.timeline-item-status-grey .timeline-item-duration {
    color: #6b7280;
    background-color: rgba(107, 114, 128, 0.1);
}

.timeline-item-status-blue .timeline-item-duration {
    color: #006EFF;
    background-color: rgba(0, 110, 255, 0.1);
}

.timeline-item-status-green .timeline-item-duration {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.timeline-item-badge {
    font-size: 0.875rem;
    color: #7b90ad;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background-color: rgba(123, 144, 173, 0.1);
    border-radius: 12px;
}

.timeline-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.timeline-item-summary {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.timeline-item-note {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.timeline-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.timeline-item-badge.badge-temperature {
    color: #c2410c;
    background-color: rgba(194, 65, 12, 0.1);
}

.timeline-item-badge.badge-recorded {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.timeline-item-badge.badge-not-recorded {
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.1);
}

.timeline-item-badge.badge-no-contact {
    color: #6b7280;
    background-color: rgba(107, 114, 128, 0.1);
}

.timeline-loading {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 1rem 0;
}

/* Record Modal Styles - Horizontal Bar */
.record-modal-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.record-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.record-modal-content {
    background-color: var(--bg-white);
    border-radius: 25px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-strong);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 500px;
    max-width: 90vw;
    width: auto;
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
}

.record-modal-overlay.active .record-modal-content {
    transform: translateY(0);
}

.record-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.record-modal-close:hover {
    background: var(--sidebar-hover);
}

.record-modal-close i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* Recording active indicator */
.record-modal-overlay.recording-active .record-modal-content {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), var(--shadow-strong);
}

.record-modal-overlay.recording-active .record-modal-content::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.record-btn-start {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    flex-shrink: 0;
}

.record-btn-start:hover {
    background-color: var(--bg-light);
}

.record-btn-start i,
.record-btn-start svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.record-btn-start {
    color: var(--success-color);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.record-btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-btn-stop {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    flex-shrink: 0;
}

.record-btn-stop:hover {
    background-color: var(--bg-light);
}

.record-btn-stop i,
.record-btn-stop svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.record-btn-stop {
    color: var(--danger-color);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.record-btn-stop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-prospect-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.5rem;
    flex-shrink: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.record-source-dropdown {
    position: relative;
    flex-shrink: 0;
}

.record-source-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.record-source-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.record-source-btn i,
.record-source-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.record-source-dropdown.active .record-source-btn i {
    transform: rotate(180deg);
}

.record-source-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 10;
}

.record-source-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.record-source-menu-item:hover {
    background-color: var(--bg-light);
}

.record-source-menu-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.record-source-menu-item i,
.record-source-menu-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.record-source-menu-item span {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.record-waveform-container {
    flex: 1;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    min-width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.record-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    width: 100%;
}

.record-waveform-bar {
    width: 4px;
    min-height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.record-timer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

.record-buttons-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== RAPPELS CALENDAR STYLES ===== */

/* Rappels uses standard calendar classes (.calendar-week, .calendar-day, .calendar-month, etc.) */
/* Only custom styles for rappels-specific elements */

.rappels-day-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rappels-add-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.rappels-add-btn:hover {
    background-color: rgba(0, 110, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rappels-add-btn i {
    width: 18px;
    height: 18px;
}

.rappels-event-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #555a64;
}

.rappels-event-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.rappels-event-type-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* AI Badge on rappels */
.rappels-ai-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #FF4444, #FF6B6B);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.2);
    animation: pulse-ai-badge 3s ease-in-out infinite;
}

@keyframes pulse-ai-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.rappels-event-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.4;
    text-align: left;
}

/* Event mention style (underlined) */
.event-mention {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Event mention style (bold) for selected mentions */
.event-mention-bold {
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.rappels-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.rappels-event-time-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rappels-event-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rappels-event-transfer {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rappels-event-transfer:hover {
    opacity: 1;
    background-color: rgba(0, 110, 255, 0.1);
}

.rappels-event-transfer i,
.rappels-event-transfer svg {
    width: 16px;
    height: 16px;
}

.rappels-event-validate {
    background: transparent;
    border: none;
    color: #22c55e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rappels-event-validate:hover {
    opacity: 1;
    background-color: rgba(34, 197, 94, 0.1);
}

.rappels-event-validate i {
    width: 16px;
    height: 16px;
}

.rappels-event-delete {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rappels-event-delete:hover {
    opacity: 1;
    background-color: rgba(239, 68, 68, 0.1);
}

.rappels-event-delete i {
    width: 16px;
    height: 16px;
}

/* Validated event styles */
.rappels-event-item.validated {
    opacity: 0.6;
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: #22c55e !important;
}

.rappels-event-item.validated .rappels-event-name {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.rappels-event-item.validated .rappels-event-type-label {
    color: var(--text-secondary);
}

.rappels-event-item.validated .rappels-event-time-badge {
    color: var(--text-secondary);
}

/* Inline input for adding events */
.rappels-inline-input {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideIn 0.2s ease;
}

/* Textarea container with mention dropdown */
.rappels-textarea-container {
    position: relative;
}

/* Mention dropdown */
.rappels-mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mention-section-title {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.mention-item {
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
    background-color: rgba(0, 110, 255, 0.06);
}

.mention-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mention-society {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Firm input with autocomplete styles */
.firm-input-container {
    position: relative;
}

.firm-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.firm-autocomplete-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.firm-autocomplete-item:hover,
.firm-autocomplete-item.active {
    background-color: var(--bg-light);
}

.firm-autocomplete-item:last-child {
    border-bottom: none;
}

.firm-item-content {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.firm-autocomplete-item .firm-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.firm-autocomplete-item .firm-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.firm-edit-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.firm-edit-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.firm-edit-btn:hover i,
.firm-edit-btn:hover svg {
    color: white;
    stroke: white;
}

.firm-edit-btn i,
.firm-edit-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    stroke: var(--text-secondary);
    transition: all 0.2s ease;
}

.firm-status {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.firm-status.existing {
    background-color: #fef2f2;
    border: 1px solid #dc2626;
    color: #dc2626;
}

.firm-status.new {
    background-color: #f0fdf4;
    border: 1px solid #16a34a;
    color: #16a34a;
}

.firm-status svg,
.firm-status i {
    width: 16px;
    height: 16px;
}

/* Animation de dépôt IA pour les lignes de prospects */
.prospect-row-depositing {
    position: relative;
    border-left: 3px dashed #3b82f6 !important;
    border-right: 3px dashed #3b82f6 !important;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(59, 130, 246, 0.08) 10px,
        rgba(59, 130, 246, 0.08) 20px
    );
    background-size: 28.28px 28.28px; /* sqrt(20^2 + 20^2) pour un pattern parfait à 45° */
    animation: prospect-depositing-dashes 2s linear infinite;
}

@keyframes prospect-depositing-dashes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 28.28px 0;
    }
}

/* S'assurer que le contenu reste visible par-dessus l'animation */
.prospect-row-depositing td {
    position: relative;
    z-index: 2;
}

/* Animation de traitement terminé */
.prospect-row-completed {
    position: relative;
    border: 2px solid #16a34a !important;
    background-color: rgba(22, 163, 74, 0.05) !important;
    animation: completed-pulse 0.5s ease-in-out;
}

@keyframes completed-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.prospect-row-completed::before {
    content: 'Traitement terminé ✓';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
    animation: badge-slide-in 0.3s ease-out;
}

@keyframes badge-slide-in {
    0% {
        opacity: 0;
        top: -20px;
    }
    100% {
        opacity: 1;
        top: -12px;
    }
}

.firm-field {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.firm-field:hover {
    background-color: rgba(0, 110, 255, 0.05);
}

.firm-field small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: normal;
}

/* Company autocomplete dropdown */
.company-autocomplete-container {
    position: relative;
}

.company-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.company-autocomplete-item {
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.company-autocomplete-item:last-child {
    border-bottom: none;
}

.company-autocomplete-item:hover,
.company-autocomplete-item.active {
    background-color: rgba(0, 110, 255, 0.06);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input header with time and type selector */
.rappels-input-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rappels-event-input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    width: 100%;
    resize: none;
    min-height: 40px;
    background-color: var(--bg-white);
}

.rappels-event-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rappels-event-time {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    flex: 0 0 100px;
    background-color: var(--bg-white);
}

.rappels-event-time:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rappels-event-type {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    flex: 1;
    background-color: var(--bg-white);
    cursor: pointer;
}

.rappels-event-type:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rappels-input-confirm {
    padding: 0.625rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: var(--primary-color);
    color: var(--text-light);
    min-width: 36px;
    height: 36px;
}

.rappels-input-confirm:hover {
    background-color: var(--primary-hover);
}

.rappels-input-confirm i {
    width: 16px;
    height: 16px;
}

/* Event type styles - Week view */
.rappels-event-rappel {
    background-color: rgba(0, 110, 255, 0.12);
    border: 1px solid #555a64;
}

.rappels-event-rdv {
    background-color: rgba(34, 197, 94, 0.12);
    border: 1px solid #555a64;
}

.rappels-event-tache {
    background-color: rgba(156, 163, 175, 0.12);
    border: 1px solid #555a64;
}

.rappels-event-autre {
    background-color: rgba(0, 110, 255, 0.08);
    border: 1px solid #555a64;
}

/* Time display badge */
.rappels-event-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.rappels-event-time-small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-right: 0.25rem;
}

/* Month view add button */
.rappels-add-btn-small {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.rappels-add-btn-small:hover {
    background-color: rgba(0, 110, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rappels-add-btn-small i {
    width: 18px;
    height: 18px;
}

.rappels-event-dot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.rappels-event-dot-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rappels-event-delete-small {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.rappels-event-dot:hover .rappels-event-delete-small {
    opacity: 1;
}

.rappels-event-delete-small:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.rappels-event-delete-small i {
    width: 12px;
    height: 12px;
}

/* Days indicator */
.rappels-days-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.rappels-days-indicator.past {
    color: var(--text-secondary);
    background-color: var(--bg-light);
}

.rappels-days-indicator-small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 110, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.25rem;
}

.rappels-days-indicator-small.past {
    color: var(--text-secondary);
    background-color: var(--bg-light);
}

/* ===== HISTORIQUE DES APPELS ===== */

.historique-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.historique-container {
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.historique-date-group {
    margin-bottom: 2rem;
}

.historique-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.historique-date-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.historique-date-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.historique-calls-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.historique-call-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 15px;
    transition: all 0.2s ease;
}

.historique-call-item:hover {
    border-color: #7b90ad;
}

/* Bordure verte pour RDV planifié */
.historique-call-item.status-booked {
    border-color: #22c55e;
}

.historique-call-item.status-booked:hover {
    border-color: #16a34a;
}

/* Bordure bleue pour contacté (décroché sans RDV) */
.historique-call-item.status-contacted {
    border-color: #006EFF;
}

.historique-call-item.status-contacted:hover {
    border-color: #0056cc;
}

.historique-call-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 80px;
}

.historique-call-time i {
    width: 16px;
    height: 16px;
}

.historique-call-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.historique-call-prospect {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.historique-call-prospect i {
    width: 16px;
    height: 16px;
    color: #7b90ad;
}

.historique-call-prospect strong {
    color: var(--text-primary);
    font-weight: 600;
}

.historique-call-society {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.historique-call-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.historique-call-contact i {
    width: 14px;
    height: 14px;
}

.historique-call-status {
    display: flex;
    align-items: center;
}

.historique-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.historique-status-badge.status-booked {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.historique-status-badge.status-contacted {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.historique-status-badge.status-no-response {
    background-color: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.historique-status-badge.status-voicemail {
    background-color: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.historique-status-badge.status-other {
    background-color: rgba(123, 144, 173, 0.1);
    color: #7b90ad;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Analytics Styles - Following existing chart design */
.analytics-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.analytics-content {
    padding: 0;
}

.analytics-filters {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    flex-wrap: wrap;
}

.analytics-filters-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
}

.user-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 250px;
}

.date-filter-shortcuts {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-shortcut-btn {
    padding: 0.65rem 1rem;
    border: 1px solid #d6dde7;
    border-radius: 10px;
    background-color: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    height: 42px;
}

.date-shortcut-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.date-shortcut-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.date-range-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.period-filter-container,
.date-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 0.875rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: var(--transition);
    min-width: 160px;
    height: 42px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #7b90ad;
    border-radius: 15px;
    font-size: 0.875rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.analytics-section {
    margin-bottom: 2rem;
}

.analytics-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.analytics-section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.analytics-section-header h3 i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.analytics-section-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* KPI Grid - Layout horizontal pour les KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.kpi-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kpi-icon i,
.kpi-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.kpi-content h4 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.kpi-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.analytics-chart-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 1.2rem;
}

.analytics-chart-container canvas {
    max-height: 300px;
}

/* Analytics Comparison Table */
.analytics-comparison-section {
    margin-bottom: 2rem;
}

.comparison-controls {
    display: flex;
    gap: 0.5rem;
}

.comparison-chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comparison-table-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: var(--shadow-standard);
    overflow: hidden;
}

.comparison-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.comparison-table th {
    background-color: var(--bg-light);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-checkbox-col {
    width: 60px;
    text-align: center;
}

.comparison-checkbox-col input[type="checkbox"],
.user-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.comparison-checkbox-col input[type="checkbox"]:hover,
.user-checkbox:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

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

.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background-color: rgba(0, 110, 255, 0.05);
}

.comparison-table tbody tr.selected {
    background-color: rgba(0, 110, 255, 0.1);
}

.comparison-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.comparison-user-details {
    display: flex;
    flex-direction: column;
}

.comparison-user-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.comparison-user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comparison-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.comparison-metric-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.comparison-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comparison-performance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.performance-excellent {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.performance-good {
    background-color: rgba(0, 110, 255, 0.1);
    color: var(--primary-color);
}

.performance-average {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.performance-poor {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.comparison-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.comparison-empty i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comparison-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive adjustments for analytics */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .analytics-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-select {
        min-width: auto;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-card {
        padding: 1rem;
    }
    
    .kpi-content h4 {
        font-size: 1.5rem;
    }
    
    .analytics-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comparison-controls {
        margin-top: 1rem;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 700px;
    }
    
    .comparison-user-info {
        min-width: 150px;
    }
    
    .comparison-metric {
        min-width: 80px;
    }
}

/* Agent Right Sidebar */
.agent-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: var(--bg-white);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.agent-sidebar.open {
    right: 0;
}

.app-container.agent-open {
    margin-right: 500px;
    transition: margin-right 0.3s ease;
}

.agent-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #7b90ad;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
}

.agent-sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.agent-sidebar-title i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.agent-sidebar-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-sidebar-close:hover {
    background: var(--sidebar-hover);
}

.agent-sidebar-close i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Agent Notification Badge */
.agent-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Navigation Notification Badge for sidebar links */
.nav-notification-badge {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.agent-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--bg-light);
}

.agent-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.agent-event-card {
    background: var(--bg-white);
    border: 1px solid #7b90ad;
    border-radius: 15px;
    padding: 1.25rem;
    transition: border-color 0.2s;
    animation: slideInFromLeft 0.4s ease-out;
}

.agent-event-card:hover {
    border-color: var(--primary-color);
}

.agent-event-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #7b90ad;
}

.agent-event-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-event-icon.set_email {
    background: #EBF4FF;
}

.agent-event-icon.set_remind {
    background: var(--sidebar-hover);
}

.agent-event-icon.send_email {
    background: #EBF4FF;
}

.agent-event-icon.send_visio {
    background: #F3F0FF;
}

.agent-event-icon i {
    width: 20px;
    height: 20px;
}

.agent-event-icon.set_email i {
    color: #0078D4;
}

.agent-event-icon.set_remind i {
    color: #64748b;
}

.agent-event-icon.send_email i {
    color: #0078D4;
}

.agent-event-icon.send_visio i {
    color: #6264A7;
}

.agent-event-info {
    flex: 1;
    min-width: 0;
}

.agent-event-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.agent-event-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.agent-event-prospect {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agent-event-prospect strong {
    color: var(--primary-color);
    font-weight: 600;
}

.agent-event-company {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.agent-email-preview {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.agent-email-preview-subject {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.agent-email-preview-content {
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
}

.agent-event-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0;
    margin-top: 1rem;
}

.agent-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-form-input,
.agent-form-textarea,
.agent-form-datetime {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.agent-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.agent-form-input:focus,
.agent-form-textarea:focus,
.agent-form-datetime:focus {
    outline: none;
    border-color: var(--primary-color);
}

.agent-form-html-editor {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s;
    overflow-y: auto;
    line-height: 1.6;
}

.agent-form-html-editor:focus {
    outline: none;
    border-color: var(--primary-color);
}

.agent-form-html-editor:empty:before {
    content: attr(placeholder);
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Style for HTML content inside the editor */
.agent-form-html-editor p {
    margin: 0.5rem 0;
}

.agent-form-html-editor br {
    display: block;
    content: "";
    margin: 0.5rem 0;
}

.agent-form-html-editor strong,
.agent-form-html-editor b {
    font-weight: 600;
}

.agent-form-html-editor em,
.agent-form-html-editor i {
    font-style: italic;
}

.agent-form-html-editor a {
    color: var(--primary-color);
    text-decoration: underline;
}

.agent-form-html-editor ul,
.agent-form-html-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.agent-form-html-editor li {
    margin: 0.25rem 0;
}


.agent-event-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0;
}

.agent-event-btn {
    flex: 1;
    padding: 0.625rem 1.125rem;
    border-radius: 15px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px;
    box-sizing: border-box;
}

.agent-event-btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
}

.agent-event-btn-transfer {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0;
}

.agent-event-btn-transfer:hover {
    background: rgba(0, 110, 255, 0.1);
    transform: translateY(-2px);
}

.agent-event-btn-transfer i,
.agent-event-btn-transfer svg {
    width: 18px;
    height: 18px;
}

.agent-event-btn-delete {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    flex: 0.5;
}

.agent-event-btn-delete:hover {
    background: var(--sidebar-hover);
    transform: translateY(-2px);
}

.agent-event-btn-confirm {
    color: var(--text-light);
    border: 1px solid #1D2B3D;
}

/* Email buttons - Bleu */
.agent-event-btn-confirm.set_email,
.agent-event-btn-confirm.send_email {
    background: var(--primary-color);
}

.agent-event-btn-confirm.set_email:hover,
.agent-event-btn-confirm.send_email:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Rappel button - Gris moyen */
.agent-event-btn-confirm.set_remind {
    background: #6b7280;
}

.agent-event-btn-confirm.set_remind:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Teams button - Couleur Teams */
.agent-event-btn-confirm.send_visio {
    background: #6264A7;
}

.agent-event-btn-confirm.send_visio:hover {
    background: #464EB8;
    transform: translateY(-2px);
}

.agent-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Agent Skeleton Loading */
.agent-skeleton-loading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.agent-skeleton-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agent-skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e0e6ed 25%, #f0f3f7 50%, #e0e6ed 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.agent-skeleton-title {
    flex: 1;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e6ed 25%, #f0f3f7 50%, #e0e6ed 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.agent-skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e6ed 25%, #f0f3f7 50%, #e0e6ed 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.agent-skeleton-line.short {
    width: 70%;
}

.agent-skeleton-button {
    height: 36px;
    border-radius: 8px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #e0e6ed 25%, #f0f3f7 50%, #e0e6ed 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* New task skeleton animation */
.agent-new-task-skeleton {
    animation: slideInFromTop 0.4s ease-out, skeleton-pulse 2s ease-in-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.agent-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.agent-empty .empty-state {
    text-align: center;
}

.agent-empty .empty-state i {
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.agent-empty .empty-state h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.agent-empty .empty-state p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 768px) {
    .agent-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .agent-sidebar.open {
        right: 0;
    }
    
    .app-container.agent-open {
        margin-right: 0;
    }
}

/* ===== RAPPEL DETAILS MODAL ===== */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.custom-alert-content {
    background-color: var(--bg-white);
    border-radius: 15px;
    border: 1px solid #7b90ad;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.custom-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-alert-close {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.custom-alert-close:hover {
    color: var(--text-primary);
}

.custom-alert-body {
    max-height: 70vh;
    overflow-y: auto;
}

.custom-alert-footer {
    background: var(--bg-light);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Prospect Real-time Status Styles */
.prospect-analysing {
    position: relative;
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(59, 130, 246, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmerRow 2s ease-in-out infinite;
}

@keyframes shimmerRow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.prospect-done {
    border: 2px solid #10B981 !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
    position: relative;
}

.prospect-done-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #10B981;
    animation: checkmarkAppear 0.3s ease-out;
}

.prospect-done-checkmark svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   ANALYTICS SECTION STYLES (from test.html)
   ========================================= */

/* Chart Container for Analytics */
.chart-container-analytics {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-standard);
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e6ed;
    flex-wrap: wrap;
    align-items: center;
}

.chart-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
}

.chart-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.chart-checkbox-label.chart-checkbox-primary span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Leaderboard Container */
.leaderboard-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Leader Card */
.leader-card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-standard);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.leader-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rank-1 {
    background: #eab308;
}

.rank-2 {
    background: #94a3b8;
}

.rank-3 {
    background: #d97706;
}

.leader-avatar {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.leader-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.leader-stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.leader-stat strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Team List */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* BDR Card */
.bdr-card {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    gap: 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-standard);
}

.bdr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

/* BDR Identity */
.bdr-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 300px;
    flex-shrink: 0;
}

.bdr-avatar {
    flex-shrink: 0;
}

.bdr-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.bdr-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.bdr-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* BDR Stats Row */
.bdr-stats-row {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.bdr-stat-box {
    text-align: left;
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-val {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Modal Overlay for Analytics */
.modal-overlay-analytics {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay-analytics.active {
    display: flex;
    opacity: 1;
}

.modal-container-analytics {
    background: var(--bg-white);
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-strong);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay-analytics.active .modal-container-analytics {
    transform: scale(1);
}

.modal-header-analytics {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-close-analytics {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.modal-close-analytics:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.modal-content-analytics {
    padding: 1.5rem;
}

/* KPI Title and Value (from test.html) */
.kpi-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* KPI Sub text */
.kpi-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-sub i {
    width: 14px;
    height: 14px;
}

/* Checkbox Wrapper (from test.html) */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* JSON/IA Scores Styling (from test.html) */
.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    background: #f8fafc;
}

.json-score-box {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
}

/* Criteria Grid (from test.html) */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.criterion-box {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.criterion-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 3px;
}

.criterion-val {
    font-size: 1rem;
    font-weight: 700;
    float: right;
    color: var(--text-primary);
}

/* Transcription Section (from test.html) */
.transcript-section {
    border-top: 1px solid #e0e6ed;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.transcript-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.transcript-toggle:hover {
    color: var(--primary-color);
}

.transcript-content {
    display: none;
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-primary);
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    font-family: 'Sora', sans-serif;
    white-space: pre-wrap;
}

/* Speaker Styling in Transcription (from test.html) */
.speaker-bdr {
    color: var(--primary-color);
    font-weight: 700;
}

.speaker-prospect {
    color: var(--text-primary);
    font-weight: 700;
}

/* Call Summary Text (from test.html) */
.call-summary-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
    font-style: italic;
}

/* Call Detail Card (from test.html) */
.call-detail-card {
    border: 1px solid #7b90ad;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Section Header for Analytics (from test.html) */
.analytics-section .section-header {
    margin: 2.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analytics-section .section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.analytics-section .section-header h3 i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    .bdr-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .bdr-identity {
        width: 100%;
    }

    .bdr-stats-row {
        width: 100%;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .leaderboard-container {
        flex-direction: column;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}






















