﻿/* Accordion */
.accordion-header-counter {
    display: flex;
    font-size: 20px;
    justify-content: flex-end;
    margin-bottom: -8px;
}

.accordion-header-title {
    display: flex;
    font-size: 20px;
    justify-content: flex-start;
    margin-bottom: -8px;
}

.accordion-toggle {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

    .accordion-toggle:focus {
        padding-left: 15px;
        padding-right: 20px;
        width: 100%;
    }

    .accordion-toggle:hover {
        background-color: rgba(237, 240, 243, 0);
    }

/* Button */
.btn-small {
    width: 90px;
}

.btn-medium {
    width: 130px;
}

.btn-large {
    width: 170px;
}

.btn-extralarge {
    width: 210px;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
    opacity: 0.5;
}

.btn-flan:hover {
    background-color: var(--secondary);
    color: white;
    opacity: 0.8;
}

.btn-flan {
    font-weight: 500;
}

.command-button {
    color: grey;
    margin: 0px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    opacity: 0.8;
}

    .command-button:focus {
        margin: 0px;
        padding-bottom: 0px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0px;
    }

    .command-button:hover {
        background-color: white;
        opacity: 0.8;
    }

    .command-button:disabled {
        opacity: 0.2;
    }

.command-button-large {
    color: var(--secondary);
    margin: 2px 0px 0px 0px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 6px;
}

    .command-button-large:focus {
        color: var(--secondary);
        margin: 2px 0px 0px 0px;
        padding-bottom: 2px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 6px;
    }

    .command-button-large:hover {
        opacity: 0.4;
    }

    .command-button-large:disabled {
        opacity: 0.2;
    }

.inner-command-button {
    margin-left: 0px;
    margin-right: 5px;
    padding: 0px;
    width: 6rem;
}

    .inner-command-button:focus {
        padding: 0px;
        width: 6rem;
    }

    .inner-command-button:hover {
        padding: 0px;
        width: 6rem;
        background-color: black;
    }

/* Card */
.card-header {
    padding: 0;
}

    .card-header:hover {
        background-color: rgba(246, 246, 246, 1);
        padding: 0;
    }

/* Checkbox */
.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #F7B14F !important;
    background-color: #F7B14F !important;
}

.custom-control-input:disabled:checked ~ .custom-control-label::after {
    color: #869CAE;
    border-color: #869CAE !important;
    background-color: #869CAE !important;
    border-radius: 4px;
}

.datagrid-cell {
    padding: 0px;
    margin: 0px;
}

/* Confirmation model */
.confirm-message {
    text-align: start;
    font-weight: bold;
    font-style: italic;
    font-size: 15px;
}

.confirm-title {
    text-align: start;
}

/* Datagrid */
.data-grid {
    color: black;
}

.id-link {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--link);
}

    .id-link:hover {
        color: var(--link);
    }

.row.justify-content-between {
    padding-top: 30px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.table-fixed-header {
    border-top: 1px solid #dee2e6;
}

.table-primary, .table-primary > td, .table-primary > th {
    background-color: rgba(var(--secondary-rgb), 0.1);
    border-color: white;
    color: black;
}

.table > :not(caption) > * > * {
    box-shadow: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--secondary-rgb), 0.6);
}

/* Field label */
.field-label {
    background-color: var(--secondary);
    color: black;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}

/* Modal */
.close {
    color: black;
    border-radius: 5px;
    height: 25px;
    width: 25px;
    opacity: 0.8;
}

    .close:hover {
        color: black;
        background-color: white;
    }

.modal-header {
    align-items: center;
    background-color: var(--secondary);
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
    color: black;
    height: 40px;
}

    .modal-header .close {
        /* top right bottom left */
        padding: 0px 0px 0px 0px;
        margin: 0px -10px 0px 0px;
    }

.modal-title {
    display: flex;
    text-align: center;
}

/* Pagination */
.page-link {
    color: dimgray;
    border-width: 1px;
}

span:link {
    color: dimgray;
    background-color: dimgray;
}

.page-item.active .page-link {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Root */
:root {
    --confirm: #006600;
    --confirm-rgb: 0, 102, 0;
    --dark: #070101;
    --dark-rgb: 7, 1, 1; /* #070101 */
    --error: #FF0000;
    --error-rgb: 255, 0, 0;
    --font: #000000;
    --font-rgb: 0, 0, 0;
    --info: #6c757d;
    --info-rgb: 108, 117, 125; /* #6c757d */
    --light: #EDF0F3;
    --light-rgb: 237, 240, 243; /* #EDF0F3 */
    --link: #8989f8;
    --link-rgb: 137, 137, 248; /* #8989f8 */
    --primary: #869CAE;
    --primary-rgb: 134, 156, 174; /* #869CAE */
    --secondary: #F7B14F;
    --secondary-rgb: 247, 177, 79; /* #F7B14F */
}

/* Search field */
.search-field {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    width: 600px;
}

/* Tab */
.nav-item {
    padding-bottom: 5px;
    padding-right: 0px;
    text-align: center;
    width: 150px;
}

.nav-pills {
    background-color: rgba(var(--primary-rgb), 0.3);
    color: white;
    height: 40px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
}

    .nav-pills .nav-link.active {
        background-color: var(--primary);
        color: white;
    }

.nav {
    --bs-nav-link-color: var(--primary);
    --bs-nav-link-hover-color: var(--secondary);
}

.nav-link {
    color: var(--primary);
}

/* Yellow border */
.form-control {
    margin-bottom: 0;
}

    .form-control:focus {
        border-color: rgba(var(--secondary-rgb), 0.2);
        box-shadow: 0 0 0 0.25rem rgba(var(--secondary-rgb), 0.25);
    }

.custom-file-input:focus ~ .custom-file-label {
    border-color: rgba(var(--secondary-rgb), 0.6);
    box-shadow: 0 0 0 0.25rem rgba(var(--secondary-rgb), 0.25);
}

.custom-select:focus {
    border-color: rgba(var(--secondary-rgb), 0.6);
    box-shadow: 0 0 0 0.25rem rgba(var(--secondary-rgb), 0.25);
}

/* Remove arrows from numeric inputs */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}