﻿:root {
    --app-bg: #f8f9fa;
}

body {
    background-color: var(--app-bg);
}

.placeholder-card {
    border-left: 4px solid #0d6efd;
}

.hero-card {
    width: fit-content;
    max-width: min(96vw, 860px);
}

.card {
    border-radius: 0.85rem;
}

.card .h4 {
    letter-spacing: -0.01em;
}

.metric-card {
    border-radius: 0.85rem;
}

.metric-yellow-1 {
    background: #fff8db;
    border: 1px solid #f0de9a;
}

.metric-yellow-2 {
    background: #ffe9a8;
    border: 1px solid #efd27e;
}

.metric-blue-1 {
    background: #e3f2ff;
    border: 1px solid #bfdcf7;
}

.metric-blue-2 {
    background: #cfe9ff;
    border: 1px solid #a9d2f2;
}

.metric-green {
    background: #d8f6df;
    border: 1px solid #a9e2b5;
}

.metric-card .text-muted {
    color: #3b4a5c !important;
}

.metric-card .h4 {
    color: #0f2740;
}

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

.table td:last-child,
.table th:last-child {
    white-space: normal;
}

.table-sticky-head thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

@media (max-width: 991.98px) {
    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tr {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .table-mobile-cards tr:last-child {
        margin-bottom: 0;
    }

    .table-mobile-cards td {
        border: 0;
        border-bottom: 1px dashed #e9ecef;
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        padding: 0.45rem 0;
        white-space: normal;
    }

    .table-mobile-cards td:last-child {
        border-bottom: 0;
        padding-bottom: 0.2rem;
    }

    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        text-align: left;
        flex: 1;
    }

    .table-mobile-cards td > * {
        margin-left: auto;
    }
}
