/* home.css: layout of the /app/ page. Colors, type and components come from tally.css. */

/* The page scrolls as a whole (not an inner box), with the scrollbar hidden as in the mobile app. */
html {
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
}

#navbarMain, #mobileTopBar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.tab {
    padding: 1em;
}

.tab.hidden {
    display: none !important;
}

/* Force hide anything */
.force-hidden {
    display: none !important;
}

#content {
    padding-bottom: 70px; /* enough space so content doesn't hide under bottom nav */
}

#bottomNav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.navbar {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #content {
        max-width: 100%;
        padding: 10px 10px 96px; /* the bottom nav is ~76px tall */
    }

    #loginForm, #signupForm {
        max-width: 100%;
        margin: 0 auto;
    }

    .navbar .nav-tabs {
        flex-direction: column;
        text-align: center;
    }

    .modal-dialog:not(.modal-fullscreen-sm-down) {
        margin: 10px;
    }
}

@media (min-width: 769px) {
    #content {
        max-width: 720px;
        margin: 0 auto;
    }

    #loginForm, #signupForm {
        max-width: 400px;
        margin: 20px auto;
    }
}

#globalSpinner {
    background: rgba(7, 16, 18, .35);
}

/* Photo inventory */
.scan-action { min-height: 92px; }
.scan-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border-width: 2px !important; }
.scan-confirm-bar {
    position: sticky;
    bottom: 70px;
    padding: 8px 0;
    background: var(--pt-background);
    z-index: 10;
}
@media (min-width: 768px) {
    .scan-confirm-bar { bottom: 0; }
}
