/* Надстройка над шаблоном kertas. Подключается ПОСЛЕ skins.css, но ДО темы,
   чтобы themes/dark.css мог её перебивать.
   Откат: удалить <link> из views/header.php. */

/* Bootstrap 5 заливает полосы таблиц через box-shadow: inset, а не background.
   Снимаем тень и рисуем чередование фоном — иначе фон под тенью не виден.
   В ряде вьюх ячейки тела свёрстаны через <th>, отсюда td и th. */
#global-content .table > tbody > tr > td,
#global-content .table > tbody > tr > th,
#global-content .table > thead > tr > th {
    box-shadow: none !important;
}
#global-content .table > tbody > tr > td,
#global-content .table > tbody > tr > th {
    font-weight: 400 !important;
    background-color: transparent !important;
    border-color: rgba(0,0,0,.08) !important;
}
#global-content .table > tbody > tr:nth-child(odd) > td,
#global-content .table > tbody > tr:nth-child(odd) > th {
    background-color: rgba(0,0,0,.035) !important;
}
#global-content .table > tbody > tr:hover > td,
#global-content .table > tbody > tr:hover > th {
    background-color: rgba(255,193,7,.16) !important;
}
#global-content .table > thead > tr > th {
    font-weight: 600 !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,.14) !important;
}

/* Единый регистр и вес заголовков страниц */
#global-content h1, #global-content h2 {
    text-transform: none; font-weight: 600; letter-spacing: 0; margin-bottom: 1.25rem;
}

/* Кнопки одного регистра */
#global-content .btn { text-transform: none; }

/* Воздух и мягкие углы */
#global-content section.content { padding-top: 1rem; }
#global-content .card, #global-content .modal-content { border-radius: .5rem; }

/* Тёмная тема: убрать белую подложку под плавающими подписями полей */
.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after{
    background-color: transparent;
}
.form-floating > label{
    color: rgba(255, 255, 255, 0.5);
}
