/* Bootstrap, https://getbootstrap.com/docs/5.3/customize/css-variables/ */

:root {
    --bs-border-radius: 0.3rem;
}

:root,
[data-bs-theme=light] {
    --bs-primary: #7753b3; /* NPi */ /* #396b46 */
    --bs-secondary: #6c757d;
    --bs-primary-rgb: 119, 83, 179; /* NPi */ /* 57, 107, 70 */
    --bs-secondary-rgb: 108, 117, 125;
}

.btn-primary {
    background-color: var(--bs-primary);
}

/* END Bootstrap */

/* Forms */

form input.invalid {
    border: 1px solid red;
}

form .validation-message {
    color: red;
}

form label.form-label {
    font-weight: 600;
}

form .form-control {
    padding-block: 2px;
    padding-inline: 8px;
    background-color: rgba(var(--bs-info-rgb), 0.05);
}

/* END Forms */

/* Telerik */

form .k-input {
    background-color: rgba(var(--bs-info-rgb), 0.05);
}

from .k-input-md .k-input-inner, form .k-picker-md .k-input-inner {    
    padding-block: 0;
    font-size: 1rem;
}

.k-list-item.k-selected, .k-selected.k-list-optionlabel {
    background-color: rgba(var(--bs-primary-rgb), 0.8) !important;
}

.k-grid-table .table-active {
    background-color: rgba(var(--bs-primary-rgb), 0.3) !important;
}

.k-scheduler-toolbar .k-button-solid-base.k-selected {
    border-color: rgba(var(--bs-primary-rgb), 0.8);
    background-color: rgba(var(--bs-primary-rgb), 0.8);
}

.k-scheduler .k-event {
    background-color: rgba(var(--bs-primary-rgb), 0.8);
}

/* END Telerik */

/* Oqtane Styles */

body {
    padding-top: 7rem;
}

.app-admin-modal .modal-content {
    width: 90%; /* Could be more or less, depending on screen size */
}

.table > :not(caption) > * > * {
    box-shadow: none;
}

.table .form-control {
    background-color: #ffffff !important;
    border-width: 0.5px !important;
    border-bottom-color: #ccc !important;
    color: #000 !important;
}

.table .form-select {
    background-color: #ffffff !important;
    border-width: 0.5px !important;
    border-bottom-color: #ccc !important;
    color: #000 !important;
}

.table .btn-primary {
    background-color: var(--bs-primary);
}

.table .btn-secondary {
    background-color: var(--bs-secondary);
}

.alert-dismissible .btn-close {
    z-index: 1;
}

.controls {
    z-index: 2000;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-right: 10px;
}

.app-logo {
    margin-left: 10px;
    margin-right: 20px;
}

.app-menu .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.app-menu .nav-item a {
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    padding-left: 1rem;
}

.app-menu .nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.app-menu .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.app-menu .nav-link .oi {
    width: 1.5rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    margin: .5rem;
}

/* cultures */
.dropdown-menu[data-bs-popper] {
    left: auto;
    right: 10px;
    margin-top: 8px;
}

#btnCultures {
    display: none;
}
/* END cultures */

div.app-moduleactions a.dropdown-toggle, div.app-moduleactions div.dropdown-menu {
    /*color: #ffffff;*/
}

.footer {
    padding-top: 15px;
    min-height: 40px;
    text-align: center;
    color: #ffffff;
    z-index: 1000;
}

@media (max-width: 767px) {

    .app-menu {
        width: 100%
    }

    .navbar {
        position: fixed;
        top: 60px;
        width: 100%;
    }

    .controls {
        height: 60px;
        top: 15px;
        position: fixed;
        top: 0px;
        width: 100%;
        background-color: rgb(0, 0, 0);
    }

    .controls-group {
        float: right;
        margin-right: 25px;
    }

    .content {
        position: relative;
        top: 60px;
    }

    /* END Oqtane styles */
}
