.pb-46 {
    padding-bottom: 46px;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
}

.accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    order: -1; /* переставить иконку перед текстом */
}

.accordion .accordion-button:focus,
.accordion .accordion-button:not(.collapsed) {
    background-color: #fff !important;
    box-shadow: none !important;
    color: #1e1e1e !important;
}

.accordion-button:not(.collapsed) {
    border-color: #dee2e6 !important;
}

.backward {
    font-size: 2em;
    padding: 10px;
}

input.form-control {
    min-width: 74px;
    min-height: 40px;
}

.pokazatel {
    margin: auto;
    max-width: 74px;
    text-align: center;
}

.backward a {
    color: #000000;
}

.head-title {
    color: #000000;
    font-size: 2em;
}

a.report-name {
    color: #000000;
    text-decoration: none;
}

a.report-name:hover {
    text-decoration: underline;
}

.record-title {
    font-size: 20px;
}

td {
    text-align: center;
    vertical-align: middle;
    padding: 16px 0;
}

td.is-invalid {
    position: relative;
}

td.is-invalid::after {
    content: attr(data-error);
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #dc3545;
    font-size: 0.875rem;
}

/* Стиль для невалидного поля */
td.is-invalid input {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");*/
    /*background-repeat: no-repeat;*/
    /*background-position: right calc(0.375em + 0.1875rem) center;*/
    /*background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);*/
}

/* Стили для ячеек с ошибками */
td.position-relative {
    padding-bottom: 1.5rem !important;
}

.invalid-feedback {
    font-size: 0.8rem;
    color: #dc3545;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
}

/* Усиленная подсветка невалидных полей */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Для Bootstrap 5 */
.invalid-feedback.d-block {
    display: block !important;
}

.cursive-date {
    font-style: italic;
    color: #B3B3B3;
    font-size: 14px;
}

.text-start small {
    color: #5A5A5A;
}
.table-loading {
    position: relative;
    min-height: 200px;
    opacity: 0.7;
}
.table-loading:after {
    content: "Загрузка...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #777;
    font-weight: bold;
}


.tooltip-arrow {
    box-shadow: -1px -1px 1px 0 rgba(0,0,0,0.1);
}

/* Для табличных ячеек */
td {
    position: static !important;
    overflow: visible !important;
}

/* Для корректного позиционирования tooltip */
.relative .inline-block {
    display: inline-block;
    position: relative;
    width: 100%;
}

/* Отключаем стандартное поведение таблиц */
table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Tooltips */
.htooltip span { /* Внешний вид нашего тултипа */
    background-color: #ffffff;
    border-radius: 15px 15px 15px 0;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    color: #5A5A5A;
    margin-left: 2px;
    margin-top: -45px;
    opacity: 0; /* Делаем его прозрачным */
    padding: 10px 10px 10px 10px;
    position: absolute;
    text-decoration: none;
    visibility: hidden; /* И прячем */
    width: auto;
    z-index: 10;
}

.htooltip:hover span { /* По hover отображаем тултип */
    opacity: 1;
    visibility: visible;
}

.htooltip span img { /* Изображение для примера */
    border: 0 none;
    float: left;
    margin: -71px 0 0 -234px;
    opacity: 0;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}

.htooltip:hover span img { /* Показываем изображение */
    opacity: 1;
    visibility: visible;
}

[x-cloak] { display: none !important; }

.drag-active {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Анимация спиннера */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

.upload-form-container {
    padding: 20px;
}

.cursor {
    cursor:pointer;
}

.position-relative {
    position: relative;
}

.cursor-default {
    cursor: default !important;
}

.card-header {
    background: white;
}

.delete-icon {
    font-size: 25px;
}

.border-top {
    border-top-width: 1px !important;
    border-top-color: #dee2e6 !important;
    border-top-style: solid !important;
}

.records-table {
    border-collapse: collapse;
}

.records-table thead th {
    position: sticky;
    background: white;
    z-index: 2;
}

.records-table thead tr:first-child th {
    top: 0;
}

.records-table thead tr:nth-child(2) th {
    top: 40px;
    z-index: 1;
}

.notification-icon {
    position: relative;
    display: block;
    padding: 8px;
    transition: all 0.2s;
}

.notification-icon:hover {
    transform: scale(1.1);
}

.notification-window {
    display: none;
}

.notification-window[x-show] {
    display: block;
}

.notification-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.text-size-b {
    font-size: 1.3rem !important;
}

.text-muted {
    font-size: 1rem;
}

@media (min-width: 1360px) and (max-width: 1680px) {
    .text-size-b {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1359px) {
    .text-size-b {
        font-size: 1.1rem !important;
    }
    .text-muted {
        font-size: 0.9rem;
    }
}

.fi-page header {
    flex-wrap: wrap !important;
}
