/* Project Mimir - Стилі */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Утиліти */
.page { display: none; }
.page.active { display: block; }
.content-section { display: none; }
.content-section.active { display: block; }

/* Форми */
.form-control {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Фільтри польотів */
.flights-filters {
    box-shadow: var(--shadow);
}

/* Dropdown для пошуку літаків */
.select-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.searchable-select {
    position: relative;
}

/* Сторінка входу */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.login-card {
    background: var(--card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    display: inline-block;
    height: auto;
    user-select: none;
}

.logo-login {
    width: 100px;
    max-width: 100%;
}

.logo-nav {
    height: 28px;
    width: auto;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Форми */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

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

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

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

/* Кнопки */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

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

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

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Навігація */
.navbar {
    background: var(--card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-menu-footer {
    display: none; /* Приховуємо на десктопі */
}

/* Гамбургер-меню для мобільних */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

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

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

.user-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Основний контент */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

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

.section-header h2 {
    font-size: 1.875rem;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

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

.clickable-stat-card {
    cursor: pointer;
    user-select: none;
}

.clickable-stat-card:hover {
    background: var(--bg);
    border: 1px solid var(--primary);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Статистика нальоту */
/* Швидкі дії */
.quick-actions-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.quick-actions-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-action-btn {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quick-action-icon {
    font-size: 2.5rem;
}

.quick-action-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.statistics-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.statistics-section .section-header {
    margin-bottom: 2rem;
}

.statistics-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.statistics-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.statistics-filters select,
.statistics-filters input[type="month"],
.statistics-filters input[type="number"] {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
}

.statistics-content {
    margin-top: 2rem;
}

.statistics-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.statistics-title {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.statistics-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.statistics-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.statistics-crews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.crew-stat-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.crew-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.crew-stat-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.crew-stat-crew {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.crew-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.crew-stat-flights {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Вибір місяців */
.months-selector {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.months-selector label {
    font-size: 0.9rem;
    color: var(--text);
}

.months-selector input[type="number"] {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
}

.months-range-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.months-range-selector label {
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
}

.months-range-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.months-range-selector select:hover {
    border-color: var(--primary);
}

.months-range-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* БЧС (Бойова Чисельність Складів) */
.bcs-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.bcs-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bcs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bcs-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bcs-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bcs-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.bcs-crew-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.bcs-crew-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bcs-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bcs-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bcs-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bcs-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.bcs-stat-bg {
    color: #166534;
}

.bcs-stat-repair {
    color: #92400e;
}

/* Карточки обладнання */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.item-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-БГ {
    background: #dcfce7;
    color: #166534;
}

.status-maintenance {
    background: #fef3c7;
    color: #92400e;
}

.status-damaged {
    background: #fee2e2;
    color: #991b1b;
}

.item-details {
    margin-bottom: 1rem;
}

.item-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

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

.detail-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 500;
    text-align: right;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Список польотів */
.flights-list {
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.flight-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.flight-item:hover {
    background: var(--bg);
}

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

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

.flight-aircraft {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.flight-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.flight-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.flight-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.flight-info-item strong {
    color: var(--text);
}

/* Модальні вікна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Повідомлення */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Останні польоти */
.recent-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.recent-section h3 {
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Адаптивність */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: var(--card);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 4rem 1rem 1rem;
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        width: 100%;
        display: block;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--bg);
        border-left: 3px solid var(--primary);
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .nav-right {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .nav-right .user-name,
    .nav-right #logoutBtn {
        display: none; /* Ховаємо ім'я та кнопку виходу на мобільних */
    }
    
    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        display: flex; /* Показуємо тільки на мобільних */
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-name-mobile {
        color: var(--text);
        font-weight: 500;
        padding: 0.5rem 1rem;
    }
    
    .mobile-logout-btn {
        width: 100%;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* AG Grid custom styles */
.ag-theme-alpine {
    --ag-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --ag-font-size: 14px;
    --ag-header-height: 48px;
    --ag-row-height: 40px;
    --ag-border-radius: 8px;
}

.ag-theme-alpine .ag-root-wrapper {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ag-theme-alpine .ag-header {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    font-weight: 600;
}

.ag-theme-alpine .ag-row-hover {
    background-color: #f1f5f9;
}

.ag-theme-alpine .ag-cell {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-theme-alpine .ag-cell-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Адаптивне відображення таблиць */
.cards-view,
.aircraft-cards-view {
    display: none;
}

.table-view,
.aircraft-table-view {
    display: block;
}

.table-search,
.mobile-search {
    margin-bottom: 1.5rem;
}

.table-search input,
.mobile-search input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.mobile-search input {
    max-width: 100%;
}

.table-search input:focus,
.mobile-search input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Searchable Select Styles */
.searchable-select {
    position: relative;
}

.select-search {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--card);
    color: var(--text);
}

.select-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.select-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: var(--bg);
}

.select-option:active {
    background: var(--primary);
    color: white;
}

/* Field Error Styles */
.field-error {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-error-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.searchable-select .field-error-input {
    border-color: #ef4444 !important;
}

/* Warning Styles */
.warnings-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.warning-item {
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* AG Grid header icons */
.ag-header-cell-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ag-header-cell-label i {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Delete Button */
.btn-edit,
.btn-delete {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.btn-edit:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
}

.btn-edit:active {
    transform: scale(0.95);
}

.btn-delete {
    color: #dc2626;
}

.btn-delete:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.btn-delete:active {
    transform: scale(0.95);
}

/* Checkbox для показу/приховування полів */
#showOptionalFields {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary);
}

#showOptionalFields + span {
    color: var(--text);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cards-view,
    .aircraft-cards-view {
        display: block;
    }
    
    .table-view,
    .aircraft-table-view {
        display: none;
    }
}

/* Обрізання тексту в заголовках колонок AG Grid з трьома точками */
.ag-theme-alpine .ag-header-cell-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


