﻿body {
}
.table-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
    background: #1f1f1f;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    position: relative;
    max-height: none;
}

.budget-table {
    width: 100%;
    margin: 0;
    color: #e8e8e8;
    background: #1f1f1f;
    border-collapse: separate;
    border-spacing: 0;
}

.budget-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #232323;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid #343434;
    text-align: left;
    white-space: nowrap;
}

.budget-table tbody td {
    background: #1f1f1f;
    color: #e3e3e3;
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
    white-space: nowrap;
    vertical-align: middle;
}

.budget-table tbody tr:hover td {
    background: #262626;
}

.budget-table tbody tr:last-child td {
    border-bottom: none;
}

.budget-table .text-end {
    text-align: right;
}

.budget-table .value-cell {
    font-weight: 600;
    color: #f1d7b5;
    font-family: Consolas, Monaco, monospace;
}

.budget-table .updated-cell {
    color: #9f9f9f;
}

.budget-table .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0;
    background-color: #f3f3f3;
    border: 1px solid #cfcfcf;
    box-shadow: none;
}

.budget-table .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.icon-btn {
    border: none;
    background: transparent;
    color: #1e90ff;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    cursor: pointer;
}

.icon-btn:hover {
    color: #63a9ff;
}

.budget-table th:first-child,
.budget-table td:first-child {
    width: 40px;
    padding-left: 16px;
}

.budget-table th:last-child,
.budget-table td:last-child {
    width: 44px;
    padding-right: 16px;
}

.roles-table-wrap {
    overflow-x: auto;
    overflow-y: visible !important;
    position: relative;
}

.roles-table-wrap .table {
    overflow: visible;
}

.roles-table-wrap tbody,
.roles-table-wrap tr,
.roles-table-wrap td {
    overflow: visible !important;
}

.role-access-dropdown {
    position: relative;
}

.role-access-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 3000;
    min-width: 300px;
    max-width: 350px;
    max-height: 320px;
    overflow-y: auto;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.admin-dark-card,
.admin-dark-card-block {
    overflow: visible !important;
}