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 {
    white-space: nowrap;
}

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

.form-group {
    margin-bottom: 1rem;
}

.dashboard-home {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-block {
    border-radius: 18px;
    background: linear-gradient(125deg, #0b3c5d 0%, #186a8a 45%, #1f9d8b 100%);
    color: #fff;
    padding: 30px 26px;
    box-shadow: 0 12px 28px rgba(11, 60, 93, 0.3);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0 0 10px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 10px;
    font-weight: 800;
}

.hero-lead {
    max-width: 720px;
    font-size: 1.05rem;
    opacity: 0.95;
}

.hero-actions .btn {
    border-radius: 10px;
}

.hero-status {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(2px);
}

.status-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

.status-chip {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-chip.ok {
    background: #0f766e;
    color: #fff;
}

.status-chip.warn {
    background: #b45309;
    color: #fff;
}

.status-meta {
    font-size: 0.82rem;
    opacity: 0.9;
}

.status-message {
    font-size: 0.85rem;
    line-height: 1.35;
}

.micro-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    align-items: end;
    height: 56px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.micro-bar {
    display: block;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #e8faf9 0%, #90f1e6 100%);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.kpi-card {
    border: 1px solid #d6e2ea;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    opacity: 0.22;
}

.kpi-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.kpi-icon-a { background: #0b6a90; }
.kpi-icon-b { background: #1d915e; }
.kpi-icon-c { background: #d18418; }
.kpi-icon-d { background: #8f48b7; }

.kpi-card:nth-child(1)::after { background: #8bd6f2; }
.kpi-card:nth-child(2)::after { background: #8ee2b6; }
.kpi-card:nth-child(3)::after { background: #f5cf88; }
.kpi-card:nth-child(4)::after { background: #d7b0ef; }

.kpi-card > * {
    position: relative;
    z-index: 1;
}

.kpi-label {
    font-size: 0.82rem;
    color: #1d4b5e;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
    color: #10384a;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.workflow-card {
    display: block;
    text-decoration: none;
    color: #102a38;
    border: 1px solid #d8e2e8;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 42, 56, 0.12);
    color: #0a2f45;
}

.workflow-card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.workflow-card p {
    margin: 0;
    font-size: 0.9rem;
}

.brand-strip {
    border: 1px solid #d8e2e8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    padding: 18px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.brand-fallback {
    min-width: 110px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(125deg, #0b3c5d 0%, #1f9d8b 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #10384a;
}

.brand-slogan {
    font-size: 1rem;
    color: #1d4b5e;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .brand-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
