@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/*----------------*/
/*---- GLOBAL ----*/
/*----------------*/

:root {
    --text-color: #444444;
    --primary-color: #0b9444;
    --secondary-color: #676767;
    --gray-color:#6C757D;
    --white-color: #ffffff;

    --yellow-color: #e0c421;
    --yellow-text: #e0d59d;
}

.content-wrapper {
    background-color: #e3e3e3;
}

body a {
    color: var(--primary-color);
    cursor: pointer;
}

body a:hover {
    color: var(--gray-color);
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #0b9444;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection{
    border-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 .2rem rgb(72 158 19 / 25%);
    box-shadow: 0 0 0 .2rem rgb(72 158 19 / 25%);
}
.select2-results__option--highlighted{
    background-color: var(--primary-color) !important;
}

.fa-trash-alt{
    color: var(--primary-color);
}
.fa-trash-alt:hover{
    color: red;
}

.w-200 {
    min-width: 165px;
}
.delete-row {
    border: 1px solid red;
    padding: 8px;
    border-radius: 5px;
}

.delete-row:hover {
    background-color: red;
    color:#fff !important;
}

.fa-chevron-left {
    font-size: 26px;
}
.table td {
    align-content: center;
}

.table thead{
    background-color: #e3f4ea;
}

#table > thead > tr > th{
    padding: 0.5rem !important;
}

/*--------------------*/
/*----- DATATABLE ----*/
/*--------------------*/

table.data-table {
    width: 100% !important;
    overflow: auto !important;
}
.dataTables_filter input
{
    width:250px;
}

.data-table thead{
    background-color: var(--primary-color);
    color: var(--white-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 5px;
}

.paginate_button:hover {
    cursor: pointer;
    background: #ffffff00 !important;
    border: 1px solid transparent !important;
}

.dataTables_paginate .paginate_button
{
    padding: 5px 10px !important;
}

.icon-table{
    font-size: 20px;
    margin: 0px 8px;
}
.data-table td:last-child {
    text-align: center;
}

table.dataTable thead .sorting {
    background-image: url(/img/tab/sort_both.png);
}
table.dataTable thead .sorting_asc {
    background-image: url(/img/tab/sort_asc.png) !important;
}
table.dataTable thead .sorting_desc {
    background-image: url(/img/tab/sort_desc.png) !important;
}

/*----------------*/
/*----- LOGIN ----*/
/*----------------*/

.login-logo, .register-logo {
    display: none;
}

.box-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.card.extend {
    box-shadow: 0 0 0 0;
    border: 1px solid var(--primary-color);
    padding: 15px 25px;
}
.card-primary.card-outline {
    border-top: 3px solid var(--primary-color) !important;
}

/*----------------*/
/*----- TITLE ----*/
/*----------------*/

.title-page{
    font-family: 'Nunito Sans';
    font-size: 27px;
    font-weight: 900;
    color: var(--primary-color);
}

.subtitle-page{
    font-family: 'Nunito Sans';
    font-size: 23px;
    font-weight: 900;
    color: var(--text-color);
}


/*----------------*/
/*----- TEXT -----*/
/*----------------*/

.text-description {
    font-family: 'Open Sans';
}

/*----------------*/
/*----- INPUT ----*/
/*----------------*/

.form-control:focus, .login-card-body .input-group .form-control:focus~.input-group-append .input-group-text, .login-card-body .input-group .form-control:focus~.input-group-prepend .input-group-text, .register-card-body .input-group .form-control:focus~.input-group-append .input-group-text, .register-card-body .input-group .form-control:focus~.input-group-prepend .input-group-text {
    border-color: var(--primary-color) !important;
}

.check-box-input:checked {
    accent-color: var(--primary-color);
}

input.form-control, select.form-control, .select2-container--bootstrap4 .select2-selection {
    border: 1px solid var(--gray-color);
}

/*----------------*/
/*---- BUTTON ----*/
/*----------------*/

button.btn-primary, a.btn-primary, .button-save {
    background-color: var(--primary-color);
    border-radius: 5px;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    padding: 6px !important;
}

button.btn-primary:hover,.button-save:hover , a.btn-primary:hover, button.btn-primary:active,.button-save:active, a.btn-primary:active, button.btn-primary:focus,.button-save:focus, a.btn-primary:focus, .btn-primary:disabled {
    background-color: var(--white-color) !important;
    border-radius: 5px;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-secondary {
    border: 2px solid var(--gray-color);
    color: var(--white-color);
    border-radius: 5px;
    background-color: var(--gray-color);
    padding: 6px !important;
}

.btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus, .btn-secondary:disabled {
    border: 2px solid var(--gray-color) !important;
    color: var(--gray-color) !important;
    border-radius: 5px;
    background-color: var(--white-color) !important;
}

a.link-forgot-pw, a.link-register {
    color: var(--primary-color);
}

a.link-forgot-pw:hover, a.link-register:hover {
    color: var(--text-color);
}

/*----------------*/
/*---- SIDEBAR ----*/
/*----------------*/

.brand-link{
    margin-top: 70px;
}
.brand-link img{
    width: 200px;
    left: 18px;
    top: 12px;
    display: flex;
    justify-self: center;
    padding-top: 20px;
}

.nav-sidebar .nav-item > .nav-link {
    position: relative;
    color: var(--grey-color);
    border-radius: 0 !important;
    border-bottom: 2px solid var(--white-color);
    overflow: hidden;
}


.nav-sidebar .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0%;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.nav-sidebar .nav-item > .nav-link:hover::after,
.nav-sidebar .nav-item > .nav-link.active::after {
    transform: scaleX(1);
}

.nav-sidebar .nav-item > .nav-link:hover, .nav-item:hover>.nav-link {
    background-color: var(--white-color) !important;
}

.nav-sidebar .nav-item > .nav-link.active, .nav-sidebar .nav-item > .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--white-color) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}


.brand-link .logo-mini{
    width: 45px;
    left: 14px;
    top: 12px;
    display: flex;
    justify-self: center;
    padding-top: 20px;
}

.nav-link .fas, .nav-link .far {
    font-weight: 900;
    width: 20px;
    margin-right: 10px;
    text-align: left;
}

/*-------------------*/
/*---- CARD HOME ----*/
/*-------------------*/



.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0px;
}

.card.boxhome {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.card.boxhome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: radial-gradient(circle, #8adca3 0%, transparent 70%);
    transform: scale(0);
    opacity: 0.8;
    transition: transform 0.5s ease;
    z-index: 0;
}

.card.boxhome:hover::before {
    transform: scale(2);
}

.card.boxhome * {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

.card.boxhome:hover * {
    color: var(--text-color);
    filter: grayscale(1);
}

.card.boxhome:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card.boxhome h2 {
    font-family: 'Nunito Sans';
    margin-top: 1.2rem;
    font-size: 20px;
    font-weight: 900;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.card.boxinfo {
    max-height: 430px !important;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    justify-self: center;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin: 0px;
}

.boxinfo-content {
    max-height: 410px !important;
    height: 410px !important;
    position: sticky;
    overflow-y: scroll;
    padding: 1rem 1rem;
    scrollbar-width: auto;
}

.card.boxinfo h2 {
    font-family: 'Nunito Sans';
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.card.rents {
    position: relative;
    height: 400px;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    justify-self: center;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon {
    width: 100px;
}
.fa-chevron-left{
    scale: 1;
    transition: scale 0.2s linear;
}
.fa-chevron-left:hover{
    scale: 1.2;
    transition: scale 0.2s linear;
}
/*----------------------*/
/*---- ALERT CUSTOM ----*/
/*----------------------*/

.alert-success {
    color: #fff;
    background-color: #64c37ade !important;
    border: none !important;
    position: fixed;
    inset: 0;
    height: 80px;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0px;
}

.alert-success button {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 45px;
    font-weight: 400;
}

.alert-danger {
    color: #fff;
    background-color: #dc3545c2 !important;
    border: none !important;
    position: fixed;
    inset: 0;
    height: 80px;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0px;
}

.alert-danger button {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 45px;
    font-weight: 400;
}

.leftColumn {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.centerColumn {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.rightColumn {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media (max-width: 1367px) {
    .home-content {
        height: 500px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .card.boxhome {
        padding: 1rem;
    }

    .card.boxhome h2 {
        font-size: 18px;
    }

    .icon {
        width: 55px;
    }
    
    .card.boxinfo h2 {
        font-size: 14px;
    }
    .card.extend {
    padding: 10px;
    }
    .table td{
        padding: 5px 2px;
    }

    .centerColumn {
    flex: 0 0 16.666%;
    max-width: 16.666%;
    }
    .rightColumn {
    flex: 0 0 50%;
    max-width: 50%;
    }
}