/* ── Layout ──────────────────────────────────────────────────────────────── */
body { background-color: #f4f6f9 !important; margin: 0; padding: 0; }
.container-fluid { padding-left: 20px !important; padding-right: 20px !important; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.app-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    border-bottom: 3px solid #c9b87a;
    padding: 12px 24px;
    margin-bottom: 20px;
    margin-left: -20px;
    margin-right: -20px;
}
.app-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.app-footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    border-top: 3px solid #c9b87a;
    padding: 14px 24px;
    margin-top: 24px;
    margin-left: -20px;
    margin-right: -20px;
}
.app-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { border-radius: 8px; border: 1px solid #dee2e6; background: #ffffff; }
.card-header {
    font-weight: 600;
    font-size: 1.0rem;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #c9b87a;
    color: #0d1b2a;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    border-left: 4px solid #c9b87a;
    padding: 14px 20px 10px;
    box-shadow: 0 2px 6px rgba(13,27,42,0.07);
}
.filter-bar-label {
    margin-bottom: 10px;
}
.filter-controls-row {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex-wrap: wrap;
}
.filter-item {
    flex: 1;
    min-width: 150px;
}
.filter-item-wide {
    flex: 2;
    min-width: 200px;
}
.filter-divider {
    width: 1px;
    height: 48px;
    background: #dee2e6;
    margin: 0 18px 10px;
    align-self: flex-end;
}
.filter-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 4px;
}

/* Remove default Shiny label since we replaced it */
.filter-item .shiny-input-container > label,
.filter-item-wide .shiny-input-container > label { display: none !important; }
.filter-item .shiny-input-container,
.filter-item-wide .shiny-input-container { margin-bottom: 10px; }

/* Styled select */
.filter-item select, .filter-item-wide select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 6px 10px;
    color: #0d1b2a;
    background-color: #fafbfc;
    transition: border-color 0.15s;
}
.filter-item select:focus, .filter-item-wide select:focus {
    border-color: #c9b87a;
    box-shadow: 0 0 0 3px rgba(201,184,122,0.2);
    outline: none;
}

/* ── Slider accent ───────────────────────────────────────────────────────── */
.irs--shiny .irs-bar, .irs--shiny .irs-bar-edge { background: #c9b87a !important; border-color: #c9b87a !important; }
.irs--shiny .irs-handle { background: #0d1b2a !important; border: 2px solid #c9b87a !important; }
.irs--shiny .irs-from, .irs--shiny .irs-to, .irs--shiny .irs-single { background: #0d1b2a !important; }
