:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #dde4ef;
    --app-primary: #0f4c81;
    --app-primary-soft: #dceaf7;
    --app-text: #1f2937;
}

body {
    background: linear-gradient(180deg, #f7f9fc 0%, #edf2f9 100%);
    color: var(--app-text);
    min-height: 100vh;
}

.app-navbar {
    background: linear-gradient(95deg, #0f4c81 0%, #146c94 100%);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.2);
}

.app-main {
    max-width: 1600px;
}

.card {
    border-radius: 0.9rem;
    border: 1px solid var(--app-border);
}

.card-kpi {
    background: var(--app-surface);
}

.card-kpi .kpi-label {
    font-size: 0.9rem;
    color: #5b6575;
}

.card-kpi .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #4a5567;
}

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

.form-control:focus,
.form-select:focus {
    border-color: #9bc5eb;
    box-shadow: 0 0 0 0.2rem rgba(20, 108, 148, 0.12);
}

.badge-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.6rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    max-height: 240px;
    overflow: auto;
}

.search-result-item {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 0;
    text-align: left;
    background: #fff;
}

.search-result-item:hover {
    background: var(--app-primary-soft);
}

.totals-box {
    background: #f8fbff;
    border: 1px dashed #aac8e6;
    border-radius: 0.75rem;
}

@media (max-width: 767px) {
    .table-responsive {
        border: 1px solid var(--app-border);
        border-radius: 0.8rem;
    }
}
