@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;800&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    /* background: #E5E7EB; */
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-hide {
    display: none;
}

@media (min-width:48em) {
    .mobile-hide {
        display: block;
    }
}

header {
    width: 100%;
    height: 60px;
    padding: 0rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width:48em) {
    header {
        display: flex;
        flex-direction: row;
        gap: 0rem;
    }
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    transition: all 1s ease-out;
}

@media (min-width:48em) {
    .container {
        display: flex;
        flex-direction: row;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 100vh;
    }
}

.menu .logo-wrapper {
    padding: 0.5rem 0.5rem;
    height: 60px;
    text-align: center;
}

.menu .logo-wrapper img {
    height: 40px;
}


.mobile-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    z-index: 999;
    background: #660660;
    border-bottom: 1px solid grey;
}

@media (min-width:48em) {
    .mobile-header {
        display: flex;
        flex-direction: column;
        height: 60px;
        position: unset;
        border-bottom: none;
    }
}

.menu-button {
    display: none;
}

.mobile-header label {
    display: block;
    padding: 8px 0px;
}

.menu-icon {
    height: 60px;
    display: inline;
    padding: 8px 8px;
}

@media (min-width:48em) {
    .menu-icon {
        display: none;
    }
}

.menu-icon i {
    color: #ffb300;
    font-size: 1rem;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid grey;
    border-radius: 8px;
}



.main-menu {
    display: none;
}

@media (min-width:48em) {

    .main-menu {
        display: block;
        position: relative;
    }
}

.menu-button:checked~.main-menu {
    display: block;
    position: fixed;
    z-index: 99;
    background: #660660;
    top: 60px;
    width: 100%;
    min-height: 100vh;
}

.expander {
    display: none;
    height: 40px;
}

@media (min-width:48em) {
    .expander {
        display: block;
        height: 30px;
        text-align: center;
        border: 1px solid purple;
        border-radius: 8px;
        margin: 0rem 0rem;
        cursor: pointer;
        padding: 0.5rem 0rem;
        width: 100%;
    }
}

.expander i {
    font-weight: 800;
    color: silver;
    text-align: center;

}

.expanded {
    max-height: 0px;
    max-width: 0px;
    visibility: hidden;
}

.expanded:checked~ul {
    position: absolute;
    top: 60px;
}


@media (min-width:48em) {
    .expanded:checked~ul {
        max-width: 40px;
    }
}

@media (min-width:48em) {
    .expanded:checked~ul li a .menu-text {
        display: none;
    }
}

@media (min-width:48em) {
    .expanded:checked~ul li a {
        display: flex;
        flex-direction: column;
        text-align: center;
        min-width: 100%;
    }
}

.expanded:checked~ul li a i {
    font-size: 1.2rem;
}

.menu {
    
    background: #fff;
    display: flex;
    flex-direction: column;
    background: #660660;
    position: relative;
}

@media (min-width:48em) {
    .menu {
        max-height: unset;
    }
}

.content-wrapper {
    width: 100%;
    background: #fff;
    min-height: 100vh;
    height: 100vh;
    padding-top: 60px;
}

@media (min-width:48em) {
    .content-wrapper {
        padding-top: 0.5rem;
        width: 100%;
        overflow-y: auto;
    }
}

.page-content {
    min-height: 80vh;
    max-height: 80vh;
    height: 80vh;
    overflow-y: auto;
    overflow-x: auto;
    padding:0rem 0.5rem;
}
@media (min-width:48em) {
    .page-content {
        min-height: 80vh;
        max-height: 80vh;
        height: 80vh;
        padding:0rem 1rem;
    }
}

@media (min-width:84em) {
    .page-content {
        min-height: 85vh;
        max-height: 85vh;
        height: 85vh;
    }
}

.main-menu ul {
    padding: 0rem 1rem 0rem 0.5rem;
}

.main-menu ul li {
    margin: 4px 0px;
    text-align: center;
}

.main-menu ul .active a {
    color: #ffb300;
}


.main-menu ul li a {
    display: flex;
    padding: 12px 0px;
    font-size: 0.85rem;
    width: 100%;
    color: #fff;
}


.main-menu ul li a i {
    color: inherit;
    width: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.main-menu ul li a .menu-text {
    padding: 3px 8px;
}

.login-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
}

@media (min-width:48em) {
    .login-wrapper {
        position: absolute;
        margin: 0 auto;
        width: 30vw;
    }
}

.login-wrapper .logo {
    text-align: center;
}

.login-wrapper .logo img {
    height: 60px;
}

.login-form {
    border-style: none;
    border-radius: 16px;
    background: #fff;
    padding: 10% 10%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease-in-out;
}

@media (min-width:48em) {
    .login-form {
        padding: 10% 20%;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s ease-in-out;
    }
}

.login-form a {
    color: #757575;
    display: block;
    margin: 10px 0px 20px 0px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
}

.error {
    color: red;
    padding: 0.5rem 0rem;
}

input[type=text],
input[type=password],
input[type=number],
input[type=file] {
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    padding: 0px 10px;
    color: #333;
    font-size: 12px;
    height: 30px;
    margin: 8px auto;
    width: 100%;
}

input :focus,
input:active {
    outline: none;
    background: white;
}

select {
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    padding: 0px 10px;
    color: #333;
    font-size: 12px;
    height: 30px;
    margin: 8px auto;
    width: 100%;
}

.button-submit {
    background: #660660;
    border: none;
    border-radius: 4px;
    padding: 0px 10px;
    color: #fff;
    font-size: 12px;
    height: 40px;
    margin: 4px auto;
    width: 100%;
}

.button-new {
    display:inline-block;
    background: #F9B301;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff;
    font-size: 12px;
    margin: 4px auto;
}

textarea {
    border: 1px solid silver;
    height: 100px;
    width: 100%;
    background-color: white !important;
    padding: 10px 10px;
    margin: 14px 0px 14px 0px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
}



.page-title {
    padding: 1rem 0rem 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.table-wrapper {
    width: 100%;
    padding: 0rem 1rem;
    border-radius: 0px;   
}

@media (min-width:48em) {
    .table-wrapper {
        padding: 0.5rem 0rem;
    }
}

.table-wrapper table{
    /* table-layout: fixed; */
    width:100%;
    border-collapse:collapse;
}

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

.table-header {
    font-weight: bold;
    background-color: #571666;
    color: white;
    border-bottom: none;
    text-transform: uppercase;
}

thead{
    width:100%;
}
thead th {
    position: sticky;
    top: 0;
    background-color: silver;
    font-size: 0.7rem;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 6px 10px;
    border-bottom: 1px solid #ffb300;
    font-size: 0.7rem;
    white-space: nowrap;
}

.theader {
    background: silver;
}


.current-user {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}


.current-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #660660;
    padding: 10px 4px;
    margin: 6px 0px;
    text-align: center;
}

.current-user .avatar i {
    color: #ffb300;
}

.current-user .user-info {
    display: inline-block;
    justify-content: space-evenly;
    padding: 0.65rem 0rem 0rem 0rem;
}

.current-user .user-info .full-name {
    font-size: 0.75rem;
}

.current-user .user-info .user-name {
    font-size: 0.7rem;
    font-weight: 600;
}

#loading {
    text-align: center;
    padding:8px 8px;
    color: white;
    background: #FACC00;
    font-weight: 800;
    width:100px;
    border-radius:8px;
    margin:1rem 0.5rem 2rem 0rem;
}

.load-more{
    padding:8px 8px;
    margin:1rem 0.5rem 2rem 0rem;
    text-align: center;
    font-weight:800;
    background:#660660;
    color:white;
    max-width:100px;
    border-radius:8px;
    cursor:pointer;
}


.page-filters {
    width: 100%;
    border-radius: 4px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

@media (min-width:48em) {
    .page-filters {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}

.page-filters .form-field {
    max-width: unset;
    min-width: unset;
}

.page-filters .form-field label{
    display:block;
}

