/* GENERAL */
body {
    background-color: rgb(248, 249, 252);
}

h1 {
    margin-left: 1rem;
}

h2 {
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid lightgray;
}

#cont_main {
    padding-top: 4rem;
    padding-left: 250px;
    padding-bottom: 2rem;
    transition: padding-left .5s;
    /* If you want a transition effect */
}

.card {
    margin: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 0;
    font-weight: 600;
}


.card-value {
    font-size: x-large;
    font-weight: bold;
}

.dash-card i {
    font-size: xxx-large;
    color: rgb(221, 223, 235);
}



/* Navigation bar */
.navbar {
    top: 0;
    width: 100%;
    height: 3rem;
    color: black;
    background-color: white;
    justify-content: space-between;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1.25rem;
    z-index: 1;
    position: fixed;
}

.navbar-nav {
    flex-direction: row;
}

.nav-item {
    margin-left: 1rem;
    color: black;
}

/* .navbar a {
    color: black;
    text-decoration: none;
}

.navbar a:hover, .navbar i:hover {
    font-weight: bold;
}
 */
#btn-sidebar {
    cursor: pointer;
}

#logo {
    height: 2rem;
}


/* The sidebar menu */
.sidebar {
    height: calc(100vh - 3rem);
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 3rem;
    left: 0;
    background-color: black;
    overflow-x: hidden;
    padding-top: 1rem;
    transition: 0.5s;
}

/* The sidebar links */
.sidebar a {
    width: 90%;
    margin: auto;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    color: rgb(220, 220, 220);
    display: block;
    transition: 0.3s;
    margin-bottom: 0.5rem;
}

/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
    color: white;
    font-weight: bold;
    padding-left: 3rem;
}

.sidebar .sidebar-item {
    margin-left: 0.5rem;
}

.sidebar-selected {
    color: black !important;
    font-weight: bold;
    /* background-color: rgba(255, 255, 255, 1); */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

hr {
    width: 80%;
    margin: auto;
    border-color: rgb(220, 220, 220);
}

@media screen and (max-width: 450px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-item {
        font-size: small;
    }

    .sidebar {
        margin-left: -250px;
    }

    #cont_main {
        padding-left: 0;
    }

    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }

    .card {
        margin: 1rem 0.5rem;
        padding: 1rem 0.5rem;
    }
    
    .card-body {
        padding: 0;
    }
}



/* Form */
.form-group,
.input-group {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.form-group .btn {
    margin-right: 1rem;
}

.cont-btn .btn {
    margin-right: 1rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.alert-success {
    display: none;
    height: 3.5rem;
    margin-top: 1rem;
    overflow: hidden;
    animation-name: alertMsg;
    animation-duration: 2s;
    animation-play-state: paused;
    animation-fill-mode: forwards;
}

.form-tab {
    display: none;
}

.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
}

.step.active {
    background-color: #5f5f5f;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: black;
}

@keyframes alertMsg {
    0% {
        opacity: 1;
        height: 3.5rem;
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    50% {
        opacity: 0;
        height: 3.5rem;
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    100% {
        opacity: 0;
        height: 0;
        padding: 0;
        margin-top: 0rem;
        margin-bottom: 0rem;
    }
}


/* DASHBOARD */
.border-left {
    border-left: 4px black solid;
}

.border-top {
    border-top: 4px black solid !important;
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    justify-content: center;
    align-items: center;
}

#cont_print {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: right;
    padding-right: 1rem;
}

/* RECORDS TABLE */
.tbl-body {
    height: 70vh;
    overflow-y: scroll;
}

table {
    position: relative;
    border: gray 1px solid;
    border-collapse: collapse;
    table-layout: fixed;
}

thead {
    background: #f3f3f3;
    position: sticky;
    top: -1px;
    border: gray 1px solid;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn-edit {
    cursor: pointer;
    color: #2e2e2ebe;
}

.btn-edit:hover {
    color: #000000;
}

.btn-delete {
    cursor: pointer;
    margin-left: 1rem;
    color: rgba(255, 0, 0, 0.7);
}

.btn-delete:hover {
    color: red;
}

.btn-download {
    cursor: points;
    margin-left: 1rem;
    color: rgba(0, 0, 255, 0.7);
}

.btn-download:hover {
    color: blue;
}


/* MODAL */

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 50px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto;
    /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}