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

.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;
}

/* ---- SamDPI homepage: modern navy theme (scoped to .samdpi-home) ---- */
.samdpi-home .gradient-1 {
    background-image: linear-gradient(120deg, #163a63 10%, #2f6fb0 100%);
}

.samdpi-home .btn-primary {
    color: #fff;
    background-color: #163a63;
    border-color: #163a63;
}

.samdpi-home .btn-primary:hover,
.samdpi-home .btn-primary:focus {
    background-color: #0f2846;
    border-color: #0f2846;
}

.samdpi-home .btn-outline-primary {
    color: #163a63;
    border-color: #163a63;
}

.samdpi-home .btn-outline-primary:hover,
.samdpi-home .btn-outline-primary:focus {
    color: #fff;
    background-color: #163a63;
    border-color: #163a63;
}

.samdpi-home .icon-svg.text-grape-fuchsia,
.samdpi-home .text-grape-fuchsia {
    color: #163a63 !important;
}

.samdpi-home .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(22, 58, 99, .08);
    color: #163a63;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .02em;
}

.samdpi-home .stat-card {
    height: 100%;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 40, 70, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.samdpi-home .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 40, 70, .14);
}

.samdpi-home .accordion-button:not(.collapsed) {
    background: #eef4fb;
    color: #163a63;
}

.samdpi-home .accordion-button:not(.collapsed) i {
    color: #163a63;
}
