main > .container {
    padding: 15px 15px 20px;
}

/* Prevent browser scroll-anchoring from shifting content behind the fixed navbar
   when collapsible sections expand or contract. Chrome uses html as the scroll
   container; Firefox/Safari use body — target both to be safe. */
html, body {
    overflow-anchor: none;
}

/* Ensure any element scrolled into view (e.g. validation errors, anchor links)
   clears the fixed navbar. 70px covers the navbar height with a small buffer. */
[id] {
    scroll-margin-top: 70px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

.menu-container {
    width: 100%;
}

/* Login page */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(160deg, #87CEEB 0%, #B0E0FF 50%, #E0F4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: .75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

input::placeholder {
  color: black;
  opacity: 0.5;
  font-style: italic;
}

/* ── Print styles (reports) ─────────────────────────────────────────────── */
@media print {
    /* Hide chrome and anything tagged no-print */
    header, footer, #navbar-spacer, nav.navbar, .breadcrumb,
    .no-print { display: none !important; }

    /* Remove container padding so table fills the page */
    main > .container { padding: 0 !important; }

    /* Compact table: tighter padding, smaller font */
    table { width: 100% !important; font-size: 10pt !important; }
    table th, table td { padding: 3px 6px !important; }

    /* Keep borders crisp on paper */
    .table-bordered th, .table-bordered td { border: 1px solid #999 !important; }

    /* No page break inside a row */
    tr { page-break-inside: avoid; }
}
