/* ==================== HR ВОРОНКА — СТИЛИ ==================== */

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.date-display i {
    width: 18px;
    height: 18px;
}

/* ==================== ВОРОНКА ==================== */
.funnel-section {
    margin-bottom: 32px;
}

.funnel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.funnel-title i {
    width: 20px;
    height: 20px;
}

.funnel-title.positive {
    color: var(--success);
}

.funnel-title.negative {
    color: var(--danger);
}

/* ==================== КАРТОЧКИ ЭТАПОВ ==================== */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.stage-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.stage-card.positive {
    border-left: 4px solid var(--success);
}

.stage-card.negative {
    border-left: 4px solid var(--danger);
}

.stage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stage-card.positive .stage-icon {
    background: rgba(93, 196, 82, 0.15);
    color: var(--success);
}

.stage-card.negative .stage-icon {
    background: rgba(229, 91, 91, 0.15);
    color: var(--danger);
}

.stage-icon i {
    width: 24px;
    height: 24px;
}

.stage-count {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stage-card.positive .stage-count {
    color: var(--success);
}

.stage-card.negative .stage-count {
    color: var(--danger);
}

.stage-name {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-today {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.stage-today span {
    color: var(--accent);
    font-weight: 600;
}

/* ==================== ОБЩАЯ СТАТИСТИКА ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.stat-box-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-box-icon i {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.stat-box-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-box.success .stat-box-value { color: var(--success); }
.stat-box.danger .stat-box-value { color: var(--danger); }
.stat-box.warning .stat-box-value { color: var(--warning); }

/* ==================== КОНВЕРСИЯ ==================== */
.conversion-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.conversion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.conversion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.conversion-title i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.conversion-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.conversion-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.conversion-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.conversion-fill.success { background: var(--success); }
.conversion-fill.warning { background: var(--warning); }
.conversion-fill.danger { background: var(--danger); }

/* ==================== ТУЛБАР ==================== */
.candidates-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switcher {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.view-btn.active {
    background: var(--accent);
    color: white;
}

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

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 250px;
}

.search-box i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

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

/* ==================== КАНБАН ДОСКА ==================== */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    min-height: calc(100vh - 250px);
}

.kanban-column {
    flex: 0 0 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.kanban-column.highlight {
    box-shadow: 0 0 0 2px var(--accent);
}

.column-header {
    padding: 16px;
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 4px;
}

.column-title i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.column-count {
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.column-sum {
    font-size: 13px;
    color: var(--text-muted);
}

.column-body {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    transition: background 0.2s;
}

.column-body.drop-zone {
    background: rgba(94, 181, 247, 0.05);
}

.column-body.drag-over {
    background: var(--accent-muted);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-md);
}

/* ==================== КАРТОЧКА КАНБАНА ==================== */
.kanban-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.kanban-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    color: var(--text-primary);
}

.card-menu {
    position: relative;
}

.card-menu > i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.card-menu:hover > i {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.card-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 100;
    display: none;
}

.card-dropdown.show {
    display: block;
}

.card-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.card-dropdown button:hover {
    background: var(--bg-hover);
}

.card-dropdown button.danger {
    color: var(--danger);
}

.card-dropdown button i {
    width: 16px;
    height: 16px;
}

.card-position {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-salary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 8px;
}

.card-salary i {
    width: 16px;
    height: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}

.card-contact:hover {
    background: var(--accent);
    color: white;
}

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

.card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.card-date i {
    width: 12px;
    height: 12px;
}

.card-date.overdue {
    color: var(--danger);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tag {
    padding: 2px 8px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag.editable {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag.editable button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    color: var(--accent);
}

.tag.editable button:hover {
    color: var(--danger);
}

.tag.editable button i {
    width: 12px;
    height: 12px;
}

.card-notes {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-notes i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.card-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.card-source i {
    width: 12px;
    height: 12px;
}

/* ==================== КНОПКА ДОБАВЛЕНИЯ ==================== */
.add-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.add-card-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

.add-card-btn i {
    width: 16px;
    height: 16px;
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--danger);
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* ==================== ДЕТАЛИ КАНДИДАТА ==================== */
.candidate-modal {
    max-width: 600px;
}

.candidate-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    margin-bottom: 8px;
}

.detail-section > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.detail-section > label i {
    width: 16px;
    height: 16px;
}

.detail-status {
    margin-bottom: 16px;
}

.detail-status > label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.status-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.status-btn:hover {
    border-color: var(--status-color, var(--accent));
    color: var(--status-color, var(--accent));
}

.status-btn.active {
    background: var(--status-color, var(--accent));
    border-color: var(--status-color, var(--accent));
    color: white;
}

.status-btn i {
    width: 14px;
    height: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-field > label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.detail-field > label i {
    width: 14px;
    height: 14px;
}

.detail-field input,
.detail-field select,
.detail-section textarea {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.detail-field input:focus,
.detail-field select:focus,
.detail-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.detail-section textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

.tags-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
}

.tags-input input {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.tags-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.tags-input input::placeholder {
    color: var(--text-muted);
}

.detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ==================== БЫСТРОЕ ДОБАВЛЕНИЕ ==================== */
.quick-add-modal {
    max-width: 450px;
}

.quick-add-modal .form-group {
    margin-bottom: 16px;
}

.quick-add-modal .form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.quick-add-modal .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.quick-add-modal .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.quick-add-modal .form-group input::placeholder {
    color: var(--text-muted);
}

.quick-add-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-add-modal .modal-footer {
    margin-top: 8px;
}

/* ==================== КНОПКИ ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(229, 91, 91, 0.15);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* ==================== ТАБЛИЦА ==================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.candidates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.candidates-table th {
    background: var(--bg-secondary);
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.candidates-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.candidates-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.candidates-table tbody tr:hover {
    background: var(--bg-hover);
}

.candidate-name {
    font-weight: 600;
}

.candidate-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.mini-tag {
    padding: 1px 6px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 3px;
    font-size: 10px;
}

.contacts-cell {
    display: flex;
    gap: 8px;
}

.contacts-cell a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.contacts-cell a:hover {
    background: var(--accent);
    color: white;
}

.contacts-cell a i {
    width: 16px;
    height: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge i {
    width: 14px;
    height: 14px;
}

.status-badge.positive {
    background: rgba(93, 196, 82, 0.15);
    color: var(--success);
}

.status-badge.negative {
    background: rgba(229, 91, 91, 0.15);
    color: var(--danger);
}

.action-btn {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--danger);
}

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

/* ==================== ГРАФИК ==================== */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.chart-title i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 150px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.bar-fill.positive {
    background: var(--success);
}

.bar-fill.negative {
    background: var(--danger);
}

.bar-label {
    font-size: 11px;
    color: var(--text-muted);
}

.bar-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==================== ПЕРИОД ==================== */
.period-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.period-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.period-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.period-tab:hover {
    color: var(--text-primary);
}

.period-tab.active {
    background: var(--accent);
    color: white;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: var(--shadow-md);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== ФОРМЫ ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder,
.form-group input::placeholder {
    color: var(--text-muted);
}

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

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1200px) {
    .kanban-column {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .candidates-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .toolbar-right {
        justify-content: stretch;
    }
    
    .toolbar-right .btn {
        flex: 1;
    }
    
    .kanban-board {
        padding-bottom: 80px;
    }
    
    .kanban-column {
        flex: 0 0 85vw;
        min-width: 85vw;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .status-selector {
        flex-direction: column;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .view-switcher {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
    
    .stages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
}

/* ==================== СКРОЛЛБАР ДЛЯ КАНБАНА ==================== */
.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

