#root {
    height: 100vh;
}

#grid-bttn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    padding: 5px;
    font-size: smaller;
    border: none;
    border-radius: 5px;
    background: #31b0f073;
    color: black;
}

#grid-bttn:hover {
    background: #0f89c6;
    color: white;
}

.ps-menu-button {
    /* border-radius: 10px; */
    height: 40px !important;
}

.MuiDataGrid-columnHeaders {
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 35px !important;
}

.MuiTypography-root {
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    /* Ensure the app takes the full height of the viewport */
}

/* Uniform page headers (match Inspection Wizard) */
.card-header h1,
.card-header h2,
.insp-page-header h1 {
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 1.625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: #1C2430;
    margin: 0;
    line-height: 1.25;
}

.card-header h1,
.card-header h2 {
    padding-top: 10px;
}

.card-header p,
.insp-page-header .insp-sub {
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 6px 0 0;
    color: #5C6570;
    font-size: 0.875rem;
    line-height: 1.4;
}


/* .main-content {
    height: 100%;
    display: flex;
    overflow: hidden;
    background-color: #e2e2e2;
} */

.content {
    overflow-y: scroll;
    overflow-x: hidden;
    flex-grow: 1;
    width: 100%;
    border-radius: 10px;
    background-color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/*
.main-content {
    flex-grow: 1;
    display: flex;

}

.content {
    flex-grow: 1;
    height: 100%;    
    display: flex;
    flex-direction: column;
}
*/
.content-login {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    width: 100%;
    min-height: 100%;
    background-color: white;
}

body {
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.small-logo {
    max-width: 735px;
}

.auth-page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 48px;
    box-sizing: border-box;
}

.auth-page-inner {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0 auto 24px;
    width: fit-content;
}

.auth-brand-mark {
    width: 112px;
    height: 112px;
    object-fit: contain;
    display: block;
}

.auth-brand-name {
    margin: 0;
    font-family: 'Roboto Slab', 'Rockwell', 'Courier New', serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #154A5C;
    text-transform: lowercase;
}

.auth-btn {
    appearance: none;
    outline: 0;
    background-color: #313131;
    border: 0;
    padding: 10px 5px;
    color: whitesmoke;
    border-radius: 3px;
    width: 175px;
    height: auto;
    font-size: medium;
}

.container {
    position: relative;
    top: 35px;
    left: 35%
}

.pg-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Ensures that the container takes up the full height of the viewport */
    margin: 0;
}

.pg-hdr {
    padding: 10px 0 10px 10px;
    /* border: solid gray; */
    border-width: .5px;
    border-radius: 5px;
    margin: 0;
    align-items: center;
    position: sticky;
    width: 98%;
    /* box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; */
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
}

.sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* min-height: 100vh; */
    /* background-color: #ebf2ebc3; */
    padding: 20px;
    font-size: smaller;
}

.sidebar-collapsed {
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
    padding: 20px;
    font-size: smaller;
}

.sidebar-collapsed a:hover {
    background-color: lightgray;
    margin-right: 10px;
    width: 40px;
    border-radius: 10px;
    color: black;
}

.sidebar-collapsed a {
    width: 40px;
    display: block;
    font-size: larger;
    text-decoration: none;
    border-radius: 50%;
    color: #333;
    border: #333;
    border-width: 2px;
    border-radius: 5%;
}

.sidebar-name {
    margin-top: 5px;
    padding-bottom: 5px;
}

.sidebar-collapsed a.active {
    background-color: #1a6df233;
    margin-right: 10px;
    border-radius: 10px;
    color: black;
}

.mbl {
    position: fixed;
    z-index: 10000;
    background: #ebf2eb;
    opacity: 1;
}

.sidebar a:hover {
    background-color: lightgray;
    margin-right: 10px;
    width: 220px;
    border-radius: 10px;
    color: black;
}

.sidebar a {
    width: 220px;
    display: block;
    font-size: larger;
    text-decoration: none;
    border-radius: 50%;
    color: #333;
    border: #333;
    border-width: 2px;
    border-radius: 5%;
}

.sidebar-name {
    margin-top: 5px;
    padding-bottom: 5px;
}

.sidebar a.active {
    background-color: #1a6df233;
    margin-right: 10px;
    border-radius: 10px;
    color: black;
}

.header,
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 16px 0 12px;
    background-color: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
    color: #1C2430;
    box-sizing: border-box;
    flex-shrink: 0;
}

.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.app-header-right {
    flex-shrink: 0;
    margin-left: auto;
}

.app-header-menu {
    color: #5C6570 !important;
    border-radius: 10px !important;
}

.app-header-menu:hover {
    background-color: rgba(13, 148, 136, 0.1) !important;
    color: #0F766E !important;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 4px 8px 4px 4px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-family: 'Nunito', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1C2430;
}

.app-brand:hover {
    background-color: transparent;
}

.app-brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.app-brand-logo {
    height: 36px;
    width: auto;
    max-width: min(220px, 46vw);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.app-brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.app-header-avatar-btn {
    padding: 2px !important;
}

.app-header-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    background: #0D9488 !important;
    color: #fff !important;
}

.app-header-drawer {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
}

.logo {
    width: auto;
    position: static;
    right: auto;
    margin-top: 0;
}



.acct-sidebar {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 60vh;
    text-decoration: none;
    padding-right: 0;
    font-size: medium;
    border-right: solid;
    position: relative;
    left: 15%;
    /* top: 15%; */
}

.acct-content {
    height: 100vh;
    display: flex;
}

.acct-sidebar a {
    text-decoration: none;
    padding-top: 5px;
    font-size: medium;
    color: black;
}

.acct-sidebar a:hover {
    background-color: lightgray;
    border-radius: 10px;
    color: black
}

.acct-sidebar a.active {
    background-color: #B6EDFF;
    border-radius: 10px;
    color: black;
}

.acct-sidebar :last-child {
    margin-top: auto;
}

.acct-sidebar-name {
    padding-bottom: 5px;
}

.act-sbr-lnks {
    width: 96%;
}

.wlcm {
    border: solid #1fb6ff;
    border-width: 0.75px;
    border-radius: 10px;
    background-color: white;

}

.rst-pss {
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    padding: 28px 28px 32px;
    border: 1px solid #D0D7DE;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-container .login-heading {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1C2430;
}

.login-container .login-divider {
    margin: 0 0 24px;
    border: 0;
    border-top: 1px solid #E2E8F0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form-field {
    width: 100%;
}

.login-form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.login-forgot {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-txt {
    font-size: 17px;
    width: 90%;
    margin: 0 0 0 15px;
    color: #1fb6ff;
}


.submit {
    background: #1fb6ff;
    border: none;
    color: white;
    height: 42px;
    border-radius: 5px;
    width: 100%;
    margin: 0;
}

.submit:hover {
    background: #14a9f3;
}

.submit:disabled {
    background-color: white;
    border: solid lightgray;
    color: lightgray;
    box-shadow: none;
}

.dis {
    background: white;
    border: solid lightgray;
    border-width: .5px;
    color: lightgray;
    height: 42px;
    border-radius: 5px;
    margin: 0 0 0 10px;
}

.blank-bttn {
    border: none;
    background: none;
}

#apply-bttn {
    background: lightblue;
    border-radius: 10px;
    border: none;
    padding: 5px;
    width: 150px;
}

#apply-bttn:hover {
    background: rgb(99, 200, 234);
}

.print-bttn {
    border: 1px solid #1fb6ff;
    padding: 5px 10px;
    color: #1fb6ff;
    font-weight: 400;
    font-family: Nunito, sans-serif;
    font-size: small;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.print-bttn:disabled {
    border: 1px solid lightgray;
    padding: 5px 10px;
    color: lightgray;
    font-weight: 400;
    font-family: Nunito, sans-serif;
    font-size: small;
    background: white;
    border-radius: 5px;
}

.print-bttn:hover {
    background-color: rgba(25, 118, 210, 0.04);
}


.center-container {
    /* KEY 1: Must consume all remaining vertical space after the sticky header */
    flex-grow: 1;

    /* KEY 2: Flexbox for centering */
    display: flex;
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    width: 100%;
}

.search-box-wrapper {
    /* Responsive sizing */
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.card-body {
    padding: 10px !important;
}

.tab-head {
    padding-top: 0px !important;
}

.search-box-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3c4043;
}

@media (max-width: 1240px) {
    .login-container {
        max-width: 420px;
    }

    #colpse-sdbr {
        width: 12.333%;
    }

    .sidebar {
        width: 220px;
        height: 100%;
        /* min-height: 100vh; */
        background-color: #F7F7F7;
        padding: 20px;
        font-size: smaller;
    }

    .sidebar a:hover {
        background-color: lightgray;
        margin-right: 10px;
        border-radius: 10px;
        color: black;
        width: 180px;
    }

    .sidebar a {
        width: 180px;
        display: block;
        font-size: larger;
        text-decoration: none;
        color: #333;
        border: #333;
        border-width: 2px;
        border-radius: 10px;
    }

    .sidebar-name {
        margin-top: 5px;
        padding-bottom: 5px;
        text-wrap: nowrap;
    }

    .in-st {
        height: 12vh;
    }

}

@media print {
    body * {
        visibility: hidden;
        /* hide everything */
    }

    #print-area,
    #print-area * {
        visibility: visible;
        /* show labels */
    }

    #print-area {
        position: absolute;
        top: 0;
        left: 0;
    }
}