body {
    background-color: #0f0f1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ������� ����������� ������ ���������� */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* ������� �� ��� ������ */
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    margin-bottom: 1rem;
}

.navbar {
    background: linear-gradient(90deg, #1a1a2e, #16213e) !important;
    border-bottom: 2px solid #00d4ff;
}

.navbar-brand {
    font-weight: bold;
    color: #00d4ff !important;
}

.card {
    background-color: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.card-header {
    background-color: #16213e;
    border-bottom: 1px solid #2a2a4a;
}

.btn-primary {
    background-color: #00d4ff;
    border: none;
    color: #0f0f1a;
    font-weight: bold;
}
.btn-primary:hover {
    background-color: #00b8d4;
    color: #0f0f1a;
}

.table-dark {
    background-color: #1a1a2e;
    color: #e0e0e0;
}
.table-dark th {
    border-bottom: 2px solid #00d4ff;
}
.table-dark td {
    border-top: 1px solid #2a2a4a;
}

.modal-content {
    background-color: #1a1a2e;
    border: 1px solid #2a2a4a;
}

.form-control {
    background-color: #0f0f1a;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
}
.form-control:focus {
    background-color: #0f0f1a;
    border-color: #00d4ff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

.alert-success {
    background-color: #1a3a2a;
    border-color: #00d4ff;
    color: #a0e0a0;
}
.alert-danger {
    background-color: #3a1a1a;
    border-color: #ff4444;
    color: #ff8888;
}

/* ������� ������ ������� � ���� ���������� */
.row.g-3 {
    margin-left: 0;
    margin-right: 0;
}
.nwe {
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    /*width: 100%;*/
    /*max-width: 250px;*/
    }
/* ��� �������� �������� */
.card.bg-dark .card-header {
    background-color: #0f0f1a;
    border-bottom: 1px solid #2a2a4a;
    padding: 0.5rem 0.75rem;
}
.card.bg-dark .card-body {
    padding: 0.5rem 0.75rem;
}
.form-check {
    margin-bottom: 0.2rem;
}
.form-check-input[type="checkbox"] {
    background-color: #0f0f1a;
    border: 1px solid #2a2a4a;
}
.form-check-input:checked {
    background-color: #00d4ff;
    border-color: #00d4ff;
}
    
    /* Chips (badge with close button) */
.chip {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: #00d4ff;
    color: #0f0f1a;
}
.chip.bg-info {
    background-color: #17a2b8;
    color: #fff;
}
.remove-chip {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 0.4rem;
}
.remove-chip:hover {
    color: #fff;
    opacity: 0.8;
}

/* Dropdown menus */
.dropdown-menu-dark .form-check-input {
    background-color: #0f0f1a;
    border: 1px solid #2a2a4a;
}
.dropdown-menu-dark .form-check-input:checked {
    background-color: #00d4ff;
    border-color: #00d4ff;
}
.dropdown-menu-dark .form-check-label {
    color: #e0e0e0;
}
.dropdown-menu-dark .dropdown-divider {
    border-color: #2a2a4a;
}
.btn-outline-light {
    border-color: #2a2a4a;
    color: #e0e0e0;
}
.btn-outline-light:hover {
    background-color: #2a2a4a;
    color: #fff;
}
.resize-handle { display:inline-block; width:10px; height:100%; cursor:col-resize; user-select:none; color:#888; }
.resize-handle:hover { color:#00d4ff; }
th { position:relative; }
.chip { font-size:0.9rem; padding:0.4rem 0.8rem; border-radius:20px; background-color:#00d4ff; color:#0f0f1a; }
.chip.bg-info { background-color:#17a2b8; color:#fff; }
.remove-chip { font-weight:bold; font-size:1.2rem; line-height:1; margin-left:0.4rem; }
.remove-chip:hover { color:#fff; opacity:0.8; }
.drag-handle {
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    color: #888;
}
.drag-handle:active {
    cursor: grabbing;
}
#saveOrderBtn {
    margin-left: 10px;
}
/* ... existing styles ... */

/* Для горизонтального скролла внизу контейнера */
.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
}
.table-responsive table {
    margin-bottom: 0;
}

/* Курсор pointer для кликабельных строк */
.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background-color: #2a2a4a;
}
