@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Base & Variables (Dark Theme Only)
   ========================================================================== */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-size-base: 16px;  
    --line-height-base: 1.6; 
    --bg-main: #111317;
    --bg-sidebar: #181A20;
    --surface-1: #1F2228;
    --surface-2: #2A2E36;
    --border-color: #31353F;
    --text-primary: #E5E7EB;
    --text-secondary: #A0A7B5;
    --text-hyperlink: #8BBEFF;
    --accent-primary: #3B82F6;
    --accent-primary-hover: #2563EB;
    --status-green: #4ADE80;
    --status-yellow: #FCD34D;
    --status-red: #F87171;
    --status-blue: #8BBEFF;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: hidden; }
body { font-family: var(--font-primary); background-color: var(--bg-main); color: var(--text-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: var(--font-size-base);
    line-height: var(--line-height-base);}
a { color: var(--text-hyperlink); text-decoration: none; transition: var(--transition-fast); }
a:hover { text-decoration: underline; }
ul { list-style: none; }
input, button, select, textarea { font-family: inherit; color: inherit; border: none; }
.btn-full { width: 100%; }

/* ==========================================================================
   Core Layout (КЛЮЧЕВОЕ ПРАВИЛО ЗДЕСЬ)
   ========================================================================== */
#crm-container { 
    display: flex; 
    height: 100vh; 
}

#sidebar { 
    width: var(--sidebar-width, 260px); 
    min-width: 200px;
    max-width: 450px;
    height: 100vh; 
    background-color: var(--bg-sidebar); 
    border-right: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    display: flex; 
    flex-direction: column; 
    z-index: 1000; 
    flex-shrink: 0; 
    resize: horizontal;
    overflow: hidden;
    transition: transform 0.3s ease-out;
}

#content-wrapper { 
    flex-grow: 1; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
}
#content-wrapper main { padding: 24px; flex-grow: 1; overflow-y: auto; animation: fadeInUp 0.5s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.main-header { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background-color: color-mix(in srgb, var(--bg-main) 80%, transparent); backdrop-filter: blur(8px); z-index: 999; flex-shrink: 0; }
.header-spacer { flex-grow: 1; }
#sidebar .sidebar-header { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.25rem; font-weight: 600; flex-shrink: 0; }
#sidebar .sidebar-header .logo-text { flex-grow: 1; white-space: nowrap; }
#sidebar nav { flex-grow: 1; padding: 16px; overflow-y: auto; overflow-x: hidden; }
#sidebar .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--border-radius-md); color: var(--text-secondary); font-weight: 500; margin-bottom: 4px; white-space: nowrap; }
#sidebar .nav-link .nav-icon { font-size: 1.5rem; width: 24px; text-align: center; flex-shrink: 0; }
#sidebar .nav-link:hover { background-color: var(--surface-1); color: var(--text-primary); text-decoration: none; }
#sidebar .nav-link.active { background-color: var(--accent-primary); color: #fff; }
#sidebar .sidebar-footer { padding: 24px; border-top: 1px solid var(--border-color); white-space: nowrap; flex-shrink: 0; }

#sidebar-expand-btn { display: none; }

/* ==========================================================================
   Generic Components
   ========================================================================== */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 1.75rem; font-weight: 600; }
.page-header-actions { display: flex; align-items: center; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--border-radius-md); font-weight: 500; cursor: pointer; transition: var(--transition-fast); text-decoration: none; border: none; white-space: nowrap; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background-color: var(--accent-primary); color: #fff; }
.btn-primary:hover { background-color: var(--accent-primary-hover); color: #fff; text-decoration: none; }
.btn-secondary { background-color: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--surface-2); text-decoration: none; }
.btn-danger { background-color: var(--status-red); color: #fff; }
.btn-danger:hover { background-color: color-mix(in srgb, var(--status-red) 90%, black); color: #fff; text-decoration: none; }
.btn .bx { font-size: 1.25rem; }
.btn-icon { background: none; border: none; color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer; transition: var(--transition-fast); }
.btn-icon:hover { background-color: var(--surface-2); color: var(--text-primary); }
.btn-icon-danger:hover { background-color: color-mix(in srgb, var(--status-red) 20%, transparent); color: var(--status-red); }
.card { background-color: var(--surface-1); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.input-field, .textarea-field, .select-field { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); font-size: 0.9rem; transition: all 0.2s ease; background-color: var(--surface-2); color: var(--text-primary); }
.input-field:focus, .textarea-field:focus, .select-field:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 20%, transparent); }
.textarea-field { min-height: 100px; resize: vertical; }
.error-text { color: var(--status-red); font-size: 0.8rem; margin-top: 4px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-new, .status-active { background-color: color-mix(in srgb, var(--status-blue) 15%, transparent); color: var(--status-blue); }
.status-new::before, .status-active::before { background-color: var(--status-blue); }
.status-in_progress { background-color: color-mix(in srgb, var(--status-yellow) 15%, transparent); color: var(--status-yellow); }
.status-in_progress::before { background-color: var(--status-yellow); }
.status-completed { background-color: color-mix(in srgb, var(--status-green) 15%, transparent); color: var(--status-green); }
.status-completed::before { background-color: var(--status-green); }
.status-cancelled, .status-is_used { background-color: color-mix(in srgb, var(--status-red) 15%, transparent); color: var(--status-red); }
.status-cancelled::before, .status-is_used::before { background-color: var(--status-red); }
.empty-list-placeholder { padding: 40px; text-align: center; color: var(--text-secondary); font-style: italic; }
.user-profile { position: relative; }
.user-profile-button { background: none; border: none; color: inherit; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px; border-radius: var(--border-radius-md); }
.user-profile-button:hover { background-color: var(--surface-2); }
.user-profile-button .bx-chevron-down { transition: transform 0.2s ease-in-out; }
.bx-rotate-180 { transform: rotate(180deg); }
#profile-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1050; width: 320px; background-color: var(--surface-1); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.profile-menu-list { padding: 8px; border-top: 1px solid var(--border-color); }
.profile-menu-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--border-radius-md); color: var(--text-primary); text-decoration: none; font-size: 0.9rem; }
.profile-menu-link:hover { background-color: var(--surface-2); }
.profile-menu-link.logout { color: var(--status-red); }
.profile-menu-link.logout i { color: var(--status-red); }
.menu-divider { margin: 8px 0; border-color: var(--border-color); border-style: solid; border-width: 1px 0 0 0; }
#notifications-list { padding-top: 8px; }
.notification-header { padding: 0 12px 8px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); margin-bottom: 8px; }
.notification-items-list { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 8px 8px; max-height: 300px; overflow-y: auto; }
.notification-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--border-radius-md); text-decoration: none; color: var(--text-primary); transition: background-color 0.2s; }
.notification-item:hover { background-color: var(--surface-2); }
.notification-icon { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background-color: var(--surface-2); border-radius: 50%; color: var(--accent-primary); }
.notification-message { font-size: 0.85rem; line-height: 1.4; }
.notification-time { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.empty-notification-placeholder { padding: 24px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }
.btn-link { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; border-radius: 50%; }
.btn-link:hover { color: var(--text-primary); background-color: var(--surface-2); }
.kanban-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));gap: 20px;align-items: start; }
.kanban-column { width: 100%; flex-shrink: 0; background-color: var(--bg-sidebar); border-radius: var(--border-radius-lg); display: flex; flex-direction: column; margin-bottom: 16px; }
@media (min-width: 768px) { .kanban-column { width: 340px; margin-bottom: 0; } }
.kanban-column-header { padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.kanban-column-header h3 { font-weight: 600; font-size: 1rem; }
.kanban-count { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); background-color: var(--surface-1); padding: 2px 8px; border-radius: 999px; }
.kanban-column-body { padding: 16px 8px; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.kanban-card { position: relative; background-color: var(--surface-1); border-radius: var(--border-radius-md); padding: 16px; box-shadow: var(--shadow-md); cursor: pointer; transition: var(--transition-fast); border-left: 3px solid var(--border-color); display: flex; flex-direction: column; gap: 4px; }
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background-color: var(--surface-2); }
.kanban-card.status-new { border-left-color: var(--status-blue); }
.kanban-card.status-in_progress { border-left-color: var(--status-yellow); }
.kanban-card.status-completed { border-left-color: var(--status-green); }
.kanban-card.status-cancelled { border-left-color: var(--status-red); }
.kanban-card-ghost { opacity: 0.4; background: var(--surface-2); }
.kanban-card-chosen { opacity: 0.8; transform: scale(1.02); }
.kanban-card-drag { opacity: 0.9; transform: rotate(3deg); z-index: 1000; }
.bulk-actions-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-1); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 20px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); z-index: 1040; transition: all 0.3s ease; }
.advanced-filters { background: var(--surface-1); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 16px; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 768px) { .advanced-filters { flex-direction: column; align-items: stretch; } .advanced-filters > * { width: 100%; } }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface-2); border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: var(--transition-fast); }
.filter-chip.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.filter-chip:hover { background: var(--surface-2); border-color: var(--accent-primary); }
.kanban-card .card-title { font-weight: 600; }
.kanban-card .card-subtitle { font-size: 0.875rem; color: var(--text-secondary); }
.kanban-card .card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-secondary); margin-top: 12px; }
.kanban-card .assignee { display: flex; align-items: center; gap: 6px; }
.kanban-card .pinned-note { background-color: color-mix(in srgb, var(--status-yellow) 10%, transparent); color: var(--status-yellow); padding: 8px 10px; border-radius: var(--border-radius-md); font-size: 0.8rem; display: flex; align-items: center; gap: 8px; margin-top: 10px; border: 1px solid color-mix(in srgb, var(--status-yellow) 20%, transparent); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1001; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--surface-1); border-radius: var(--border-radius-lg); width: 90%; max-width: 800px; max-height: 90vh; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.modal-header h2 { font-size: 1.25rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-secondary); transition: var(--transition-fast); }
.modal-close:hover { color: var(--status-red); transform: rotate(90deg); }
.modal-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.modal-loading-placeholder { padding: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-secondary); }
.modal-loading-placeholder .bx { font-size: 40px; margin-bottom: 15px; }
.slide-over-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1001; opacity: 0; visibility: hidden; transition: var(--transition-medium); }
.slide-over-overlay.show { opacity: 1; visibility: visible; }
.slide-over-panel { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 820px; background-color: var(--bg-sidebar); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--transition-medium); }
.slide-over-overlay.show .slide-over-panel { transform: translateX(0); }
.slide-over-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.slide-over-header h2 { font-size: 1.4rem; font-weight: 600; }
.slide-over-close { background: var(--surface-1); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: var(--transition-fast); }
.slide-over-close:hover { color: var(--text-primary); background-color: var(--surface-2); }
.slide-over-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.slide-over-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.task-list label {
    font-size: 0.95rem;
}
.slide-over-section-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; margin-top: 24px; color: var(--text-primary); padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.slide-over-section-title:first-child { margin-top: 0; }
.detail-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; align-items: start; word-break: break-word;
    overflow-wrap: break-word;}
.detail-item strong { color: var(--text-secondary); font-weight: 500;flex-shrink: 0; }
.detail-item-message { white-space: pre-wrap; color: var(--text-primary); background-color: var(--bg-main); padding: 8px; border-radius: var(--border-radius-md); margin-top: -4px; }
.table-wrapper { background-color: var(--surface-1); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); overflow: hidden; }
.styled-table { width: 100%; border-collapse: collapse; }
.styled-table thead { background-color: var(--bg-sidebar); }
.styled-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.styled-table td { padding: 16px; border-top: 1px solid var(--border-color); font-size: 0.875rem; vertical-align: middle; }
.styled-table tbody tr.clickable-row { cursor: pointer; }
.styled-table tbody tr:hover { background-color: var(--surface-2); }
.styled-table .link-to-change { font-weight: 500; color: var(--text-primary); }
.styled-table .link-to-change:hover { color: var(--text-hyperlink); }
.rank-badge { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; font-weight: 600; color: var(--bg-main); }
.rank-1 { background-color: #ffd700; }
.rank-2 { background-color: #c0c0c0; }
.rank-3 { background-color: #cd7f32; }
.form-container { max-width: 900px; margin: 0 auto; }
.form-actions { border-top: 1px solid var(--border-color); padding-top: 24px; margin-top: 24px; display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
fieldset { border: 1px solid var(--border-color); padding: 24px; border-radius: var(--border-radius-md); margin-bottom: 24px; }
legend { font-size: 1.25rem; font-weight: 500; padding: 0 10px; margin-left: 10px; color: var(--text-primary); }
.search-results-container { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-2); border: 1px solid var(--border-color); border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); z-index: 100; max-height: 250px; overflow-y: auto; }
.search-result-item { padding: 10px 12px; cursor: pointer; }
.search-result-item:hover { background: var(--accent-primary); }
.search-result-item .item-details { font-size: 0.8rem; color: var(--text-secondary); }
.search-result-item:hover .item-details { color: rgba(255,255,255,0.8); }
.search-no-results { padding: 12px; text-align: center; color: var(--text-secondary); display: flex; align-items: center; justify-content: space-between; }
.tabs .tab-header { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; }
.tabs .tab-link { background: none; border: none; padding: 10px 16px; cursor: pointer; color: var(--text-secondary); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab-link.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.tabs .tab-content { display: none; }
.tabs .tab-content.active { display: block; }
.timeline-item { position: relative; display: flex; gap: 16px; }
.timeline-item::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background-color: var(--border-color); }
.timeline-item:last-child::before { display: none; }
.timeline-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; z-index: 1; flex-shrink: 0; font-size: 1.5rem; color: var(--text-secondary); }
.timeline-content { flex-grow: 1; }
.timeline-item-actions { display: flex; gap: 8px; align-items: flex-start; }
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-header { text-align: center; margin-bottom: 24px; }
.login-header .brand { font-size: 1.5rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; color: var(--text-primary); }
.login-header p { color: var(--text-secondary); margin-top: 8px; }
.login-error-note { background-color: color-mix(in srgb, var(--status-red) 10%, transparent); color: var(--status-red); padding: 12px; border-radius: var(--border-radius-md); margin-bottom: 16px; font-size: 0.875rem; text-align: center; border: 1px solid var(--status-red); }
.filter-form { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--surface-2); transition: .4s; border-radius: 34px; border: 1px solid var(--border-color); }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-primary); border-color: var(--accent-primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    #sidebar { position: fixed; transform: translateX(-100%); z-index: 1050; resize: none; width: 260px !important; }
    body.sidebar-mobile-open #sidebar { transform: translateX(0); box-shadow: var(--shadow-xl); }
    #sidebar-expand-btn { display: inline-flex; }
    .main-header { padding: 16px; }
    #content-wrapper main { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 1.5rem; }
    .table-wrapper { border: none; background: none; }
    .styled-table { border: none; }
    .styled-table thead { display: none; }
    .styled-table tr { display: block; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); margin-bottom: 16px; background-color: var(--surface-1); }
    .styled-table td { display: flex; justify-content: space-between; align-items: center; text-align: right; padding: 12px 16px; border-top: none; }
    .styled-table td:not(:last-child) { border-bottom: 1px solid var(--border-color); }
    .styled-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-secondary); text-align: left; margin-right: 16px; }
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) { .profile-name { display: none; } }

/* HTMX Indicators */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }

body.navigating #content-wrapper main {
    opacity: 0.7;
    transition: opacity 0.1s ease-in;
}

.kanban-card.selected {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-lg);
    background-color: var(--surface-2);
}

.bulk-actions-bar {
    padding: 16px 24px; /* Увеличиваем отступы */
    gap: 16px; /* Увеличиваем расстояние между элементами */
    font-size: 1rem; /* Увеличиваем шрифт текста "Выбрано: X" */
    align-items: center;
    min-width: 720px; /* Задаем минимальную ширину, чтобы все поместилось */
    max-width: calc(100% - 40px); /* Ограничиваем, чтобы панель не касалась краев экрана */
    justify-content: center;
}

.bulk-actions-bar .select-field,
.bulk-actions-bar .btn {
    padding-top: 8px; /* Делаем селекты и кнопки чуть выше */
    padding-bottom: 8px;
    font-size: 0.9rem; /* Увеличиваем шрифт внутри них */
}

.bulk-actions-bar .btn-icon {
    width: 36px;
    height: 36px;
}