.control-table-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Фильтры */
.ct-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .ct-filters {
    background: #1b1b1b;
    border-color: #2d2d2d;
}

.ct-filter-island, .ct-calendar-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    height: 2.75rem;
    cursor: pointer;
}

.dark .ct-filter-island, .dark .ct-calendar-trigger {
    background: #262626;
    border-color: #333;
}

.ct-filter-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

/* Сетка временной шкалы */
.ct-time-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ct-row {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .ct-row {
    background: #1b1b1b;
    border-color: #2d2d2d;
}

.ct-row-header {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark .ct-row-header {
    background: #262626;
    border-bottom-color: #333;
}

.ct-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    background: var(--primary-600);
    color: white;
    border-radius: 0.75rem;
}

.ct-date-day { font-size: 1.125rem; font-weight: 900; line-height: 1; }
.ct-date-month { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; }

.ct-slots-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 120px;
    width: 100%;
}

.ct-slot {
    padding: 1rem;
    border-right: 1px solid #f3f4f6;
    background-image: radial-gradient(#e5e7eb 0.5px, transparent 0.5px);
    background-size: 15px 15px;
}

.dark .ct-slot {
    border-right-color: #2d2d2d;
    background-image: radial-gradient(#333 0.5px, transparent 0.5px);
}

.ct-slot:last-child { border-right: none; }

.ct-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ct-slot-time {
    font-size: 0.6rem;
    font-weight: 900;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
}

.dark .ct-slot-time {
    background: #333;
    color: #9ca3af;
}

.ct-slot-count {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary-500);
}

/* Карточка лида внутри слота */
.ct-lead-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: block;
}

.dark .ct-lead-card {
    background: #262626;
    border-color: #333;
}

.ct-lead-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-500);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.ct-lead-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111827;
    display: block;
    margin-bottom: 0.25rem;
}

.dark .ct-lead-name { color: white; }

.ct-lead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
}

.ct-lead-badges {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.ct-mini-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ct-notes-preview {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid #f3f4f6;
    font-style: italic;
}

.dark .ct-notes-preview {
    border-left-color: #333;
}

@media (max-width: 1280px) {
    .ct-slots-container { grid-template-columns: 1fr 1fr; }
    .ct-slot:nth-child(2) { border-right: none; }
    .ct-slot:nth-child(1), .ct-slot:nth-child(2) { border-bottom: 1px solid #f3f4f6; }
}

@media (max-width: 640px) {
    .ct-slots-container { grid-template-columns: 1fr; }
    .ct-slot { border-right: none; border-bottom: 1px solid #f3f4f6; }
}
.ct-filter-island select,
.ct-filter-island input {
    background: transparent;
    border: none;
    outline: none;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}

.dark .ct-filter-island select,
.dark .ct-filter-island input {
    color: #ffffff;
    color-scheme: dark;
}

.dark .ct-filter-island select option {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

/* Сетка временной шкалы */