@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    line-height: 1.5;
    background-color: #f1f3fb;
    padding: 0;
    margin: 0;
}

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

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

input {
    appearance: none;
    border-radius: 0;
}

.header-wrapper {
    position: fixed;
    margin-top: 0;
    z-index: 3;
    width: 100%;
}

header {
    justify-content: space-between;
    width: 100%;
    background: #571666;
}

header .menu {
    clear: both;
    max-height: 0;
    transition: max-height .2s ease-out;
    overflow: hidden;
    width: 100%;
}

header .menu-icon {
    padding: 28px 20px;
    position: relative;
    float: right;
    cursor: pointer;
}

header .menu-icon .nav-icon {
    background: #ffb300;
    display: block;
    height: 2px;
    width: 26px;
    position: relative;
    transition: background .2s ease-out;
}

header .menu-icon .nav-icon::before {
    background: #ffb300;
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: all .2s ease-out;
    top: 8px;
}

header .menu-icon .nav-icon::after {
    background: #ffb300;
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: all .2s ease-out;
    top: -8px;
}

header .menu-btn {
    display: none;
}

header .menu-btn:checked~.menu {
    max-height: none;
    overflow-y: auto;
    height: 100vh;
}

header .menu-btn:checked~.menu-icon .nav-icon {
    background: transparent;
}

header .menu-btn:checked~.menu-icon .nav-icon:before {
    transform: rotate(-45deg);
    top: 0;
}

header .menu-btn:checked~.menu-icon .nav-icon:after {
    transform: rotate(45deg);
    top: 0;
}

.header-wrapper {
    position: fixed;
    margin: 0 auto;
    margin-top: 0;
    z-index: 999;

}


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

    header {
        height: 100vh;
        width: 15%;
    }

    header .logo-wrapper {
        margin: 0 auto;
        /* text-align: center; */
        padding: 20px 25px;
        width: 100%;
    }

    header .menu {
        position: relative;
        display: block;
        top: 40px;
        left: 0px;
        min-height: 100vh;
        background: #571666;
    }
}

.login-wrapper .card{
    padding:2rem 4rem;
}

.card {
    margin: 2rem auto;
    display: block;
    max-width: 425px;
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 10px 20px 0 rgba(#999, .25);
    padding: .75rem;
}


.card-form {
    padding: 2rem 1rem 2rem;
}

.card-form a {
    font-weight: 500;
    color: #ffb300;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: block;
    padding: 1rem 0rem;
    min-width: 35%;
}
.input{
    margin:1rem 0rem;
}

.input-label {
    color: #8597a3;
    display: block;
    font-size: 0.85rem
}

.input-field {
    border: 0;
    background-color: transparent;
    border-bottom: 2px solid #eee;
    font: inherit;
    font-size: 1rem;
    padding: .25rem 0.65rem;
    width: 100%;
    display: block;
}
.input-field input[type=password]{
    background:white;
    border:none;
    outline:none;
}

.input-field:focus {
    outline: 0;
    border-color: #660066;
}


.action {
    margin-top: 2rem;
}

.login-wrapper .action-button {
    background: #660066;
}

.submit-button {
    font: inherit;
    font-size: 1rem;
    padding: 0.8em;
    width: 100%;
    font-weight: 500;
    background-color: #FACC00;
    border-radius: 6px;
    color: #FFF;
    border: 0;
    cursor: pointer;
}

.action-button:focus {
    outline: 0;
}

.logo-wrapper {
    display: inline-block;
    padding: 20px 10px 10px 10px;
}

.logo-icon {
    margin: 4px 0px;
    padding: 10px 8px;
    border-radius: 50%;
    background-color: #006699;
    color: white;
    width: 36px;
    height: 36px;

}

.logo-text {
    margin: 0px 4px 0px 4px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #FACC00;
}

.main-menu {
    margin: 10px 0px;
    border: none;
}



.main-menu ul li {
    margin: 10px 0px;
    color: #fff;
}

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


.main-menu ul li a {
    display: inline-block;
    padding: 8px 15px;
    font-size: 1rem;
    width: 100%;
}

.main-menu ul li a i {
    color: inherit;
    width: 40px;
    text-align: center;
}

.content-wrapper {
    padding: 80px 10px 10px 10px;
    position: relative;
    top: 10px;
    max-width: 100vw;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin: 20px 0px 10px 0px;
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    background:white;
    padding:1rem 0rem;
    border-radius:2px;
}

.login-wrapper {
    padding: 10vh 5vw;
}

.login-wrapper .logo {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.login-wrapper .form-title {
    text-align: center;
    padding: 20px 0px;
}

.login-wrapper a {
    padding: 20px 0px 0px 0px;
    display: inline-block;
}

.table-wrapper {
    overflow-y: auto;
    height: 200px;
}

.button-new {
    display: inline-block;
    background: #FACC00;
    border-radius: 4px;
    padding: 4px 16px;
    margin: 8px 0px;
    font-size: 0.85rem;
    border: none;
}

.new-section {
    text-align: center;
}

@media (min-width:48em) {
    .content-wrapper {
        padding: 10px 20px;
        max-width: 84vw;
        max-height: 80vh;
        position: relative;
        left: 15%;
        top: 0;
        z-index: 999;
    }
}


.table-row {
    margin: 2px 0px 0px 0px;
    padding: 16px 16px;
    background: white;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;   
}

@media (min-width:48em) {
    .table-row {
        margin: 2px 0px 0px 0px;
        padding: 8px 16px;
        display: flex;
        flex-direction: row;
    }
}

.table-row:hover {
    box-shadow: 1px 2px 4px 2px rgba(128, 128, 128, .8);
    margin: 4px 0px;
    background: whitesmoke;
}


.table-data-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0.5rem 0rem;
}

@media (min-width:48em) {
    .table-data-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 0.5rem;
        min-width: 10%;
        margin: 0.5rem 0rem;
    }
}

.table-row label {
    display: block;
    font-size: 0.6rem;
    color: rgba(128, 128, 128, .8);
    font-weight: 600;
    text-transform: uppercase;   
}

@media (min-width:48em) {
    .table-row label {
        font-size: 0.7rem;
    }
}

.table-row .data-field {
    font-size: 0.75rem;
    min-width: 50%;
}

@media (min-width:48em) {
    .table-row .data-field {
        font-size: 0.95rem;
        width: 100%;
        height: 50%;
    }
}

.table-row .row-actions {
    padding: 0.5rem 0rem;
    display: flex;
    min-width: 20%;
}

.action-icon {
    border: 1px solid silver;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0px 8px 0px 0px;
    display: inline;
    cursor: pointer;
    font-size: 0.75rem;
}

#loading {
    text-align: center;
    padding: 10px;
    color: white;
    background: #FACC00;
    font-weight: 800;
    border-radius: 4px;
    /* background-color: #f1f1f1; */
}


#table_content {
    max-height: 80vh;
    overflow-y: auto;
}

@media (min-width:48em) {
    #table_content {
        max-height: 78vh;
    }
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0.5rem;
}

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

.detail-card {
    width:100%;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.card-table{
    background:transparent;
    padding:0rem 0rem !important;
    background:#F1F3FB;
}
.card-table-content{
    background:#F1F3FB;
    border-radius:8px;
    padding:0rem 0rem;
}

.detail-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid silver;
    padding: 1rem 1rem;
}

.no-border{
    border-bottom:none;
}

.detail-label {
    font-weight: 800;
    font-size: 0.75rem;
    min-width: 25%;
}

@media (min-width:48em) {
    .detail-label {
        font-weight: 800;
        font-size: 1rem;
        min-width: 20%;
    }
}

.detail-data {
    font-weight: 400;
    font-size: 0.75rem;
    margin: 0rem 1rem;
}
@media (min-width:48em) {
    .detail-data {
        font-weight: 400;
        font-size: 1rem;
        margin: 0rem 2rem;
    }
}


.qr img {
    width: 200px;
    border: 1px solid whitesmoke;
    border-radius: 4px;
}



.business-logo img {
    border: 1px solid whitesmoke;
    border-radius: 4px;
    height: 100px;
    width: 200px;
    object-fit: contain;
}

.detail-icon-button {
    color: orange;
    border: 1px solid orange;
    border-radius: 4px;
    display: inline;
    padding: 4px 8px;
    background: white;
    cursor: pointer;
    font-size: 0.75rem;
}

.password{
    display:flex;
    flex-direction: row;
    gap:8px;    
}

.password i{
    padding:8px 0px;
}

#password-message{
    font-size:0.75rem;
}

input[type=checkbox]{
    border:1px solid grey;
    width:20px;
    height:20px;
    appearance:auto;
    color:#571666;
}

.change-field{
    display:flex;
    flex-direction: row;
    gap:10px;
    padding: 1rem 0rem;
}

.page-functions{
    text-align: right;
}

.delete-button{
    border-radius:4px;
    background: red;
    color:white;
    border:none;
    padding:4px 8px;
    cursor:pointer;
}

.fa-edit{
    color:orange;
}