﻿html {
    font-size: 14px;
}

/* defaults for desktop */
#menu-toggle,
.menu-button-container {
    display:none;
}

/* tablet/mobile */
@media (max-width: 1200px) {
    #menu-toggle {
        display: none;
    }

    .menu-button-container {
        cursor:pointer;
        position: absolute;
        right: 50px;
        top: 0;
        display: block;
        width: 35px;
        bottom: 0;
        padding-top: 23px;
    }

    .menu-button,
    .menu-button::before,
    .menu-button::after {
        display: block;
        background-color: #fff;
        position: absolute;
        height: 4px;
        width: 30px;
        transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 2px;
    }

        .menu-button::before {
            content: '';
            margin-top: -8px;
        }

        .menu-button::after {
            content: '';
            margin-top: 8px;
        }

    #menu-toggle:checked + .menu-button-container .menu-button::before {
        margin-top: 0px;
        transform: rotate(405deg);
    }

    #menu-toggle:checked + .menu-button-container .menu-button {
        background: rgba(255, 255, 255, 0);
    }

        #menu-toggle:checked + .menu-button-container .menu-button::after {
            margin-top: 0px;
            transform: rotate(-405deg);
        }


    #menu-toggle ~ .nav-pills a {
        margin: 0;
        padding: 0;
        border: 0;
        width: 45%;
        float:left;
        display: block;
        text-align: center;
        position: relative;
    }


        #menu-toggle ~ .nav-pills a i {
            display:block;
        }

        #menu-toggle ~ .nav-pills a span {
            position: absolute;
            display: block;
            margin-top: -40px;
            margin: auto;
            width: 200px;
            top: 0;
            left: 50%;
        }


        body .grid-pg {
            display: block;
        }

        body .grid-pg > menu .nav-pills {
            display:block;
            transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
            pointer-events: none;
            opacity: 0;
            background-color: #333;
            margin: 0;
            padding: 0;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            top: 50px;
            min-height: 100%;
            height: 100%;
            width: 100%;
        }

    #menu-toggle:checked ~ .nav-pills {
        opacity: 1;
        pointer-events: all;
    }

    body .nav-pills a.nav-link > i {
        width: 50%;
        text-align: right;
    }

    body .grid-pg menu {
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        height: initial;
    }

    .grid-pg menu hr {
        display: none;
    }



    body .grid-pg > menu h1 {
        padding: 0;
        height: 50px;
        line-height: 50px;
        margin-bottom: 0;
    }

    body main.main-content {
        /*padding-top: 50px;*/
    }
}


.m-content {
    padding: 25px 25px 0px 210px !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 850px) {
    body .grid-pg > menu h1 {
        font-size: 16px;
    }

    .form-floating > .form-control.txt-login,
    .form-floating > .form-control.txt-pw {
        /*width: 75% !important;*/
        width:98% !important;
        border-radius: 25px;
        margin-bottom: 23px!important
    }
}

@media (max-height: 850px) {
    .form-floating > .form-control.txt-login,
    .form-floating > .form-control.txt-pw {
        width: 98% !important;
        border-radius: 25px;
        margin-bottom: 23px!important;
    }
}

html {
    position: relative;
    min-height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
}

.grid-pg {
    display: flex;
    height: 100vh;
}

    .grid-pg > * {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .grid-pg > menu {
        background-color: #333;
        color: white;
        text-align: center;
        white-space: nowrap;
    }

        .grid-pg > menu h1 {
            font-size: 20px;
            padding: 20px;
        }

        .grid-pg > menu hr {
            width: 80%;
            margin: 0 auto 20px;
        }

        .grid-pg > menu .nav-pills {
            margin: 20px auto;
            padding: 10px;
        }


.nav-pills a.nav-link {
    margin: 21px 0px;
    padding: 10px;
}

    .nav-pills a.nav-link:hover {
        background-color:  #71e415;
    }



.nav-pills a.nav-link {
    display: table-row;
}

/*.nav-pills {
    display: flex;
    background-color: aqua;
    margin: 0px 0px;
    padding-top: 1%;
    padding-bottom: 1%;
}*/
.nav-pills {
    display: flex;
    background-image: linear-gradient(to right, #158c25, #71e415);
    margin: 0px 0px;
    /*padding: 10px;*/
    position: fixed;
    top: 0px;
    z-index: 1000;
    gap: 2px;
    width:100%;
}
.logo_adm{
    width:100px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 4px;
    padding-left: 4px;
}


    .nav-pills a.nav-link > * {
        /*display: table-cell;*/
        text-align: left;
    }

    .nav-pills a.nav-link > span {
        padding: 10px 2px;
    }

    .nav-pills a.nav-link > i {
        /*padding: 10px 2px;*/
    }

a.nav-link.active {
    box-shadow: inset 0 0 5px rgb(0 0 0 / 70%);
}

.grid-pg > content {
    overflow-y: auto;
    flex-grow: 1;
}

footer.pg-bottom {
    background: #888;
    color: white;
    text-align: center;
    margin-top: 50px;
    padding: 50px;
}

/*main.main-content {
    min-height: calc(100% - 174px);
    padding: 40px;
}*/


table.tbl, table.tbl th, table.tbl td {
    border: 1px solid #AAA;
    padding: 5px 10px;
}

    table.tbl thead {
        background-color: #DDD;
    }


.no-records {
    text-align: center;
    margin: 50px auto;
    padding: 30px 0;
    background: #FFFFEE;
    border: 1px dashed #DDDDAA;
    border-radius: 8px;
    width: 50%;
}

    .no-records i.bi {
        font-size: 56px;
        color: orange;
        padding: 0 40px;
        vertical-align: middle;
    }

    .no-records span {
        font-size: 30px;
        font-weight: 100;
        text-transform: uppercase;
        color: #555522;
    }

.breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
}

    .breadcrumb > * {
        vertical-align: middle;
    }

    .breadcrumb a {
        text-decoration: none;
        color: #007bff;
        vertical-align: middle;
        transition: all 0.3s ease;
    }

        .breadcrumb a:hover {
            color: #0056b3;
            font-size: 16px;
        }

    .breadcrumb > *:not(:last-child)::after {
        content: '>';
        margin: 0 8px;
        color: #6c757d;
    }

.hide {
    display: none;
}

.col-6.invoice-top-right h2 .form-switch {
    font-size: 16px;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

.form-check.form-switch {
    padding-left: 2.5rem;
}

.col-6.invoice-top-right h2 {
    position: relative;
}

.highlight-focus {
    transition: all 1500ms ease;
}

.glow {
    background-color: yellow;
    color: red;
}

label.error {
    color: red;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Highlight the invalid input fields */
input.error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

/* Optionally, style valid input fields */
input.valid {
    border: 2px solid #0c8f0c70;
    background-color: #f0fff0;
}

span.field-validation-error {
    color: #ff0000c4;
    font-weight: 500;
    letter-spacing: -0.5px;
    background: #ffffe7;
    padding: 10px;
    display: flex;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #EEE;
    align-items: center;
    justify-content: center;
}

    span.field-validation-error:before {
        content: "🔔";
        font-size: 24px;
        vertical-align: middle;
        padding: 0 10px 0 5px;
        display: block;
        float: left;
    }

button.accordion-button.collapsed.disabled::after {
    display: none;
}

button.accordion-button.collapsed.disabled {
    color: #CCC;
    background: #EEE;
}

body .accordion {
    --bs-accordion-btn-padding-y: 5px;
}

body .accordion-body {
    padding: 0 5px;
}

    body .accordion-body .accordion-body > div {
        padding: 0 10px;
    }

.available-invoices-table {
    font-size: 14px;
}

    .available-invoices-table tfoot,
    .available-invoices-table tfoot * {
        border: 0;
        border-style: none !important;
    }

.business-logo {
    max-height: 200px;
    max-width: 240px;
}

.business-logo-container a {
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255,0,0,0.85);
    background-color: rgba(255,255,255,0.5);
    padding: 5px;
    border-radius: 0 0 4px 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.55);
    transition: all 200ms ease-in-out;
}

.business-logo-container {
    position: relative;
    overflow: hidden;
}

    .business-logo-container a:hover {
        background: rgba(255,255,255,0.75);
        color: rgba(255,0,0,1);
    }



.fake-disabled {
    pointer-events: none;
    background-color: #e9ecef;
    opacity: 0.65;
}

td a.ac-delete {
    position: absolute;
    left: 0;
    text-align: left;
    color: red;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    margin-left: 5px;
    opacity: 0;
}

td a.ac-all {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: all 200ms;
}

td input.ac-item {
    min-width: 175px;
}

td input.ac-item {
    width: 100%;
}

tr:hover a.ac-all, tr.active a.ac-all, tr:hover a.ac-delete, tr:active a.ac-delete {
    opacity: 1;
}

.ac-item {
    text-align: center;
}

.container-company-logo-2 .left-side {
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

.container-company-logo-2 .right-side {
    min-width: 120px;
}

.business-logo {
    max-height: 200px;
    max-width: 240px;
}

.container-company-logo-2 {
    display: grid;
    grid-template-columns: 0fr 1fr;
    border: 1px solid #AAA;
    border-radius: 4px;
    width: 400px;
    margin: 20px 0;
    overflow: hidden;
}

.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/*.dataTable .btn {
    padding: 0 5px;
    font-size: 14px;
    border-radius: 0;
    margin: 0 !important;
}*/

.dataTable tbody td {
    padding: 18px 2px !important;
    font-size: 14px;
}

.dataTable tbody tr:hover {
    background-color: rgba(100,255,200, 0.25);
}
@media (min-height: 1200px){
    .form-floating > .form-control.txt-login, .form-floating > .form-control.txt-pw {
        width:98% !important;
        border-radius: 25px;
        margin-bottom: 23px!important
    }
    main.main-content {
    min-height: calc(100% - 174px);
    /*padding: 40px;*/
    }
    .form {
        float: none !important;
        width: 100% !important;
    }

    .imagesection {
        /* float: right; */
        width: 100% !important;
    }
}
@media (min-height: 1266px){
    .form-floating > .form-control.txt-login, .form-floating > .form-control.txt-pw {
        width:98% !important;
        border-radius: 25px;
        margin-bottom: 23px!important
    }
    main.main-content {
        min-height: calc(100% - 174px);
        /*padding: 40px;*/
    }
    .form {
        float: left ;
        width: 50% ;
    }

    .imagesection {
        /* float: right; */
        width: 50% ;
    }
}

body.bypass nav.navbar {
    display: none;
}

body.bypass > content {
    margin: 10px 20px;
    padding: 0;
}

body.bypass > content div.footer{
    display: none;
}

.dataTable .dropdown-menu a {
    padding: 10px 20px;
}

td .dropdown .dropdown-menu a {
    display: block;
    white-space: nowrap;
}

.validation-summary {
    background: #ffffcc7d;
    margin: 0;
    box-sizing: border-box;
    color: #880000b5;
    border: 1px solid #aaaa0047;
    border-radius: 5px;
}

    .validation-summary ul, .validation-summary li {
        margin-bottom: 0;
    }

    .validation-summary li {
        padding: 20px 5px 20px 40px;
    }

    .validation-summary:before {
        content: "⚠️";
        position: absolute;
        font-size: 30px;
        display: block;
        padding: 10px;
        box-sizing: border-box;
        margin: -1px;
    }