/* =============================================
   Base: the portal's frame over base.html and
   the site's styles.css (the page's height and
   background, the signed-out navbar, where
   modals open), and Bootstrap's classes as the
   facility page still uses them. The colors are
   theme.css's; the sidebar and footer are in
   shell.css.
   ============================================= */

/* ----- The frame: body is the scroll container ----- */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--in-page);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    background: var(--in-page);
}

.footer {
    flex-shrink: 0;
}

/* Modals open below the top of the window. The sidebar and the phone top
   bar stay above them; see .modal.attachment-viewer (pages/facility.css)
   for one that covers the whole window. */
.modal {
    top: 80px !important;
}

/* styles.css's .hidden, winning over components that set their own display
   (a field's hint), so a script can show and hide them */
.hidden {
    display: none !important;
}

/* ----- Signed out: the site's navbar, with just the logo ----- */
#top-navbar {
    position: relative;
    background-color: var(--fe-dark-green-1);
    color: white;
}

#top-navbar .navbar-brand {
    padding: 15px 0px;
    transform: scale(.85);
    transition: opacity 0.3s ease;
}

#top-navbar .navbar-brand:hover {
    background: transparent !important;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    #top-navbar .navbar-brand {
        padding: 6px 30px;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    #top-navbar .navbar-brand {
        padding: 6px 15px;
    }
}

/* The phone top bar's menu button (shell.css) */
.hamburger-menu {
    background: none !important;
}

/* ----- Bootstrap, as the facility page's modals and composer use it ----- */
.btn.disabled {
    pointer-events: none;
    opacity: 0.65;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 900px) {
    .table th,
    .table td {
        padding: 0.5rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 600px) {
    .badge {
        font-size: 80%;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
