/* Глобальные переменные и цветовая палитра (в красно-серых тонах) */
:root {
    --bg-primary: #121214; /* Угольный темно-серый */
    --bg-secondary: #1E1E22; /* Темно-серый для карточек и блоков */
    --bg-tertiary: #2D2D34; /* Для полей ввода и кнопок */
    --accent-color: #DC2626; /* Фирменный красный акцент */
    --accent-hover: #B91C1C;
    --gpa-color: #38BDF8; /* Небесно-голубой цвет для номеров ГЗП */
    --text-primary: #F8FAFC; /* Белый/светло-серый */
    --text-secondary: #94A3B8; /* Приглушенный серый */
    --border-color: #2D2D34;
    --error-color: #EF4444; /* Мягкий красный */
    --success-color: #10B981; /* Мягкий зеленый */
    --warning-color: #F59E0B; /* Мягкий оранжевый */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Стилизация скроллбаров */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

/* Стили авторизации */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

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

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 5px;
}

/* Формы */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    font-family: var(--font-family);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

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

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

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

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--error-color);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-large {
    padding: 16px 20px;
    font-size: 16px;
}

/* Ошибки */
.error-message {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* Мобильный интерфейс инженера */
.mobile-body {
    background-color: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 30px;
}

.mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 15px;
}

.header-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-mobile-nav {
    width: auto;
    height: 32px;
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-mobile-nav-logout {
    width: auto;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    height: 32px;
    padding: 0 12px 0 0;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.user-info {
    display: flex;
    flex-direction: column;
}

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

.user-id {
    font-size: 11px;
    color: var(--text-secondary);
}

.btn-logout {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}


.mobile-content {
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.scanner-section, .manual-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

/* QR Сканер контейнер */
.qr-reader-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 16px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background-color: #000000;
}

#reader__scan_region video {
    border-radius: 10px;
    object-fit: contain !important;
}

.divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0;
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* Автоподбор инвентарных номеров */
.search-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    min-height: 48px; /* Touch target */
}

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

.autocomplete-item:hover {
    background-color: var(--bg-tertiary);
}

.autocomplete-no-results {
    padding: 16px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
}

.item-info {
    display: flex;
    flex-direction: column;
}

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

.item-inv {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Статусы-бейджи */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge-free {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-badge-busy {
    background-color: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.status-badge-damaged {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.status-badge-maintenance {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

/* Карточка СНО */
.equipment-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.eq-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eq-type-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eq-name-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.eq-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.eq-inv-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.eq-info-block {
    margin-bottom: 24px;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Баннеры текущих владельцев СНО */
.current-holder-banner {
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.info-holder-own {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--text-primary);
}

.info-holder-other {
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 4px solid var(--accent-color);
    color: var(--text-primary);
}

.info-holder-damaged {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--text-primary);
}

.holder-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.holder-detail {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.holder-detail strong {
    color: var(--text-primary);
}

/* Дашборд Склада */
.dashboard-body {
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ограничиваем высоту и скрываем скроллбары страницы только для дашборда на десктопах */
body:has(.dashboard-layout) {
    height: 100vh;
    overflow: hidden;
}

.dashboard-header {
    height: 60px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-area:hover {
    opacity: 0.85;
}

.logo-badge {
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-user {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-action {
    padding: 6px 12px;
    font-size: 13px;
    width: auto;
    font-weight: 500;
    height: 32px;
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
}

.btn-header-action:hover {
    background-color: #475569;
}

.btn-header-logout {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    height: 32px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-header-logout:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.dashboard-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow: hidden;
    flex: 1;
}

/* Специальные переопределения для элементов дашборда, чтобы они скроллились вертикально и вписывались в экран */
.dashboard-layout .db-table-section {
    height: 100%;
}

.dashboard-layout .table-wrapper {
    height: 0;
}

.dashboard-layout .db-log-aside {
    height: 100%;
}

.dashboard-layout .aside-queue-widget {
    height: 100%;
    min-height: 0;
}

.dashboard-layout .aside-tab-pane {
    height: 100%;
    min-height: 0;
}

/* Левая секция - Таблица СНО */
.db-table-section {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.db-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 16px;
}

.db-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.db-admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.db-admin-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
    width: auto;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.db-status-summary {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.summary-item strong {
    color: var(--text-primary);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-free { background-color: var(--success-color); }
.dot-busy { background-color: var(--accent-color); }

.table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 0;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.db-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.db-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.db-table tbody tr:last-child td {
    border-bottom: none;
}

.db-table tbody tr:hover {
    background-color: rgba(51, 65, 85, 0.3);
}

.table-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0 !important;
}

/* Правая секция - Оперативные задачи (Возвраты, Поломки, Заявки) */
.db-log-aside {
    width: 380px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
}

.aside-queue-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.aside-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.aside-tabs-header {
    display: flex;
    gap: 4px;
    background-color: var(--bg-primary);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    flex-shrink: 0;
}

.aside-tab-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    user-select: none;
}

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

.aside-tab-btn.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.aside-tab-pane {
    flex: 1;
    height: 100%;
    min-height: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.aside-tab-pane.active {
    display: flex !important;
}

.pending-returns-container,
.active-issues-container,
.active-orders-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.pending-returns-empty,
.active-issues-empty,
.active-orders-empty {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    padding: 20px 16px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    text-align: center;
    margin: 4px 0 0 0;
}

/* Карточки оперативных задач (Возвраты, Поломки, Заявки) */
.pending-return-card,
.active-issue-card,
.active-order-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    user-select: none;
    position: relative;
}

.pending-return-card:hover,
.active-issue-card:hover,
.active-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    background-color: #32323a;
    border-color: rgba(255, 255, 255, 0.16);
}

.pending-return-card:active,
.active-issue-card:active,
.active-order-card:active {
    transform: translateY(0);
}

.pending-return-card {
    border-left: 4px solid #f59e0b;
}

.active-issue-card {
    border-left: 4px solid var(--error-color);
}

.active-order-card.status-ordered {
    border-left: 4px solid #38bdf8;
}

.active-order-card.status-pending {
    border-left: 4px solid #f59e0b;
}

.pending-return-card .card-header,
.active-issue-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pending-return-card .action-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f59e0b;
}

.active-issue-card .action-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--error-color);
}

.pending-return-card .btn-confirm {
    margin-top: 4px;
    width: 100%;
    background-color: var(--success-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 38px;
}

.pending-return-card .btn-confirm:hover {
    background-color: #059669;
}

.pending-return-card .btn-confirm:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.active-issue-card .btn-resolve {
    margin-top: 4px;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    min-height: 38px;
}

.active-issue-card .btn-resolve:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: #ffffff;
}

.active-issue-card .btn-resolve:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

/* Стили модального окна подробностей задачи */
.queue-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.queue-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.queue-detail-item.full-width {
    grid-column: span 2;
}

.queue-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.queue-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.queue-detail-block {
    background-color: var(--bg-primary);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.queue-detail-block-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.queue-detail-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
    background-color: var(--bg-tertiary);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.queue-detail-link {
    font-size: 13px;
    color: var(--gpa-color);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    word-break: break-all;
}

.queue-detail-link:hover {
    color: #7dd3fc;
}

/* Анимации */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rowFlash {
    0% {
        background-color: rgba(14, 165, 233, 0.25);
    }
    100% {
        background-color: transparent;
    }
}

.row-highlight td {
    animation: rowFlash 2.5s ease-out;
}

/* Карточки СНО на мобильном дашборде */
.equipment-cards-container {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.equipment-card-mobile {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equipment-card-mobile.status-border-free {
    border-left: 4px solid var(--success-color);
}
.equipment-card-mobile.status-border-busy {
    border-left: 4px solid var(--accent-color);
}
.equipment-card-mobile.status-border-returning {
    border-left: 4px solid var(--warning-color);
}
.equipment-card-mobile.status-border-damaged {
    border-left: 4px solid var(--error-color);
}
.equipment-card-mobile.status-border-maintenance {
    border-left: 4px solid var(--warning-color);
}

.eq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.eq-card-inv {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.eq-card-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.eq-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 13px;
}

.eq-card-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eq-card-item.full-width {
    grid-column: span 2;
}

.eq-card-label {
    color: var(--text-secondary);
    font-size: 11px;
}

.eq-card-value {
    font-weight: 500;
    color: var(--text-primary);
}

.eq-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.eq-card-actions .btn {
    flex: 1;
    min-width: 100px;
    height: 44px;
    font-size: 13px;
    padding: 0 10px;
    margin: 0 !important;
}

/* Адаптивность для экранов мобильных устройств и планшетов */
@media (max-width: 768px) {
    body:has(.dashboard-layout),
    .dashboard-body {
        overflow: visible !important;
        height: auto !important;
    }

    /* Мобильная шапка */
    .mobile-header {
        position: sticky;
        top: 0;
        padding: 8px 16px;
        min-height: 56px;
    }

    .header-top-row {
        width: 100%;
        height: 44px;
        margin-right: 0;
    }

    .header-actions-row {
        width: 100%;
        margin-top: 8px;
        gap: 8px;
    }

    .btn-mobile-nav {
        flex: 1;
        height: 44px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
    }

    .btn-mobile-nav-logout {
        flex: 1;
        height: 44px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
    }

    .btn-back {
        height: 44px !important;
    }

    /* Шапка дашборда на мобильных */
    .dashboard-header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }

    .logo-area {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-user {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .dashboard-user-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .dashboard-user-actions .btn-header-action,
    .dashboard-user-actions .btn-header-logout {
        flex: 1;
        justify-content: center;
        height: 44px !important;
        font-size: 14px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
    }

    /* Расположение колонок и сброс высот */
    .dashboard-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 12px;
        gap: 16px;
    }

    .dashboard-layout .db-table-section {
        height: auto;
        overflow: visible;
    }

    .dashboard-layout .table-wrapper {
        height: auto;
        overflow: visible;
    }

    .dashboard-layout .db-log-aside {
        height: auto;
        overflow: visible;
    }

    .dashboard-layout .log-feed-container {
        height: auto;
        max-height: 350px;
        overflow-y: auto;
    }

    /* Секция таблицы СНО */
    .db-table-section {
        padding: 16px;
        height: auto;
        overflow: visible;
    }

    .db-table-section .table-wrapper {
        display: none !important; /* Полностью скрываем громоздкую таблицу СНО на мобильных */
    }

    .equipment-cards-container {
        display: flex; /* Показываем карточки вместо таблицы */
    }

    .db-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .db-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }

    .db-status-summary {
        justify-content: space-between;
    }

    .db-admin-actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .db-admin-actions .dropdown-wrapper {
        width: 100%;
    }

    .db-admin-actions .btn {
        width: 100% !important;
        justify-content: center;
        padding: 10px 12px !important;
        font-size: 12px !important;
        height: 44px; /* Крупная зона для нажатия пальцем */
    }

    /* Выпадающий список колонок на весь экран по ширине */
    .dropdown-menu-custom {
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }

    /* Правая колонка с лентой событий */
    .db-log-aside {
        width: 100%;
        height: auto;
        padding: 16px;
        overflow: visible;
    }

    .log-feed-container {
        max-height: 350px; /* Ограничиваем высоту ленты на мобильном, чтобы она не растягивала страницу */
        overflow-y: auto;
    }

    /* Предотвращение автозума на iOS */
    input[type="text"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Адаптивность модальных окон */
    .modal-content {
        max-width: 100% !important;
        width: calc(100% - 32px) !important;
        margin: 16px auto !important;
        padding: 16px !important;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-actions .btn {
        width: 100% !important;
        height: 44px;
    }

    .pending-return-card .btn-confirm,
    .active-issue-card .btn-resolve {
        min-height: 44px;
        font-size: 14px;
    }
}

/* Стили для логотипа компании */
.company-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-logo-wrapper:hover {
    opacity: 0.85;
}

.header-logo {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

.dashboard-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

/* Сно в работе у инженера */
.my-equipment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-eq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-eq-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 16px;
}

/* Стили для модальных окон (редактирование СНО) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
}

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

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

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-form input[type="text"],
.modal-form input[type="password"],
.modal-form input[type="url"],
.modal-form input[type="date"],
.modal-form input[type="number"],
.modal-form input[type="email"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    height: 44px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

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

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Адаптивный текст для кнопок на мобильных */
.mobile-text {
    display: none;
}

@media (max-width: 480px) {
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
    .user-info .user-name {
        display: none;
    }
}

/* Настройка видимости колонок таблицы */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    min-width: 260px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown-menu-custom.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-column-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    min-height: 44px; /* Touch target (Mobile First) */
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
}

.dropdown-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.dropdown-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Скрытие колонок таблицы */
.db-table.hide-col-inv_number .col-inv_number { display: none; }
.db-table.hide-col-name .col-name { display: none; }
.db-table.hide-col-type .col-type { display: none; }
.db-table.hide-col-factory_number .col-factory_number { display: none; }
.db-table.hide-col-serial_number .col-serial_number { display: none; }
.db-table.hide-col-batch_number .col-batch_number { display: none; }
.db-table.hide-col-status .col-status { display: none; }
.db-table.hide-col-location .col-location { display: none; }
.db-table.hide-col-current_user .col-current_user { display: none; }
.db-table.hide-col-current_aircraft .col-current_aircraft { display: none; }
.db-table.hide-col-last_inspection_date .col-last_inspection_date { display: none; }


/* Стили для карточек активных неисправностей СНО */
.active-issue-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--error-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInRight 0.3s ease-out;
}

.active-issue-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-issue-card .action-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--error-color);
}

.active-issue-card .btn-resolve {
    margin-top: 4px;
    width: 100%;
    background-color: var(--success-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-issue-card .btn-resolve:hover {
    background-color: #059669;
}

.active-issue-card .btn-resolve:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

/* Панель поиска и фильтрации */
.db-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.db-filter-bar .filter-search-wrapper {
    flex: 2;
    min-width: 250px;
}

.db-filter-bar .filter-select-wrapper {
    flex: 1;
    min-width: 160px;
}

.db-filter-bar input[type="text"],
.db-filter-bar select {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.db-filter-bar input[type="text"]:focus,
.db-filter-bar select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.db-filter-bar .btn-secondary {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    width: auto;
    white-space: nowrap;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Сортировка таблицы */
.db-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    padding-right: 24px;
    transition: background-color 0.2s, color 0.2s;
}

.db-table th[data-sort]:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.db-table th[data-sort]::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    opacity: 0.3;
    transition: opacity 0.2s, border-color 0.2s;
}

.db-table th[data-sort].sort-asc::after {
    border-bottom-color: var(--text-primary);
    transform: translateY(-75%);
    opacity: 1;
}

.db-table th[data-sort].sort-desc::after {
    border-top-color: var(--text-primary);
    transform: translateY(-25%);
    opacity: 1;
}

@media (max-width: 768px) {
    .db-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .db-filter-bar .filter-search-wrapper,
    .db-filter-bar .filter-select-wrapper,
    .db-filter-bar .btn-secondary {
        width: 100%;
        min-width: 0;
    }
}

/* Выравнивание кнопок-иконок в таблице СНО */
.db-table td.col-actions {
    padding: 8px 6px;
}

.actions-cell-wrapper {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.actions-cell-wrapper .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0 !important;
    justify-content: center;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

/* Стили для системы заказов оборудования */
.btn-order-trigger {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.btn-order-trigger:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.08);
}

.status-badge-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-badge-ordered {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.status-badge-completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-badge-cancelled {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.my-order-card {
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.my-order-card:hover {
    border-color: #475569;
}

.aside-tab-btn {
    transition: all 0.2s ease;
}

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

.aside-tab-btn.active {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.active-order-card {
    transition: transform 0.15s ease;
}

.active-order-card:hover {
    border-color: #475569;
}

/* ==========================================================================
   UI Feedback, Toast, Confirm Modal, Spinners, Eye Toggle, Empty State, Data Dropdown
   ========================================================================== */

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 440px;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

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

.toast-item.toast-hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    word-break: break-word;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 2px 6px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    background-color: #065f46;
    color: #ecfdf5;
    border: 1px solid #10b981;
}

.toast-error {
    background-color: #7f1d1d;
    color: #fef2f2;
    border: 1px solid #ef4444;
}

.toast-warning {
    background-color: #78350f;
    color: #fffbeb;
    border: 1px solid #f59e0b;
}

.toast-info {
    background-color: #1e1e24;
    color: #f8fafc;
    border: 1px solid #3b4252;
}

/* Button Loading Spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Password Eye Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 44px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-toggle-password:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Empty State Card */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
    gap: 12px;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 2px;
}

.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state-text {
    font-size: 13px;
    max-width: 340px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.empty-state-btn {
    margin-top: 6px;
    width: auto !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    height: 36px !important;
}

/* Data Dropdown in Dashboard Actions */
.dropdown-data-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-data-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    z-index: 1050;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 4px;
}

.dropdown-data-menu.active {
    display: flex !important;
}

.dropdown-data-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-primary) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s;
    box-sizing: border-box;
}

.dropdown-data-item:hover {
    background-color: var(--bg-tertiary) !important;
    color: #ffffff !important;
}

/* Undo Timer Button Badge */
.btn-undo-timer-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    margin-left: 6px;
    font-weight: 700;
    font-size: 12px;
}

/* --- ПАНЕЛЬ ПАКЕТНЫХ ДЕЙСТВИЙ (BATCH ACTION BAR) --- */
.batch-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15) 0%, rgba(35, 134, 54, 0.15) 100%);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 12px;
    gap: 12px;
    animation: fadeIn 0.2s ease-out;
}

.batch-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.batch-bar-badge {
    background-color: var(--accent-color);
    color: #000000;
    font-weight: 800;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.batch-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-select {
    width: 38px;
    text-align: center;
    padding: 8px 4px !important;
}

.eq-row-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    vertical-align: middle;
}

.db-table tbody tr.row-selected {
    background-color: rgba(88, 166, 255, 0.12) !important;
}


