/* IFP interface layer. Loaded after the vendor theme; no vendor files modified. */
:root {
    --ifp-primary: #2563eb;
    --ifp-primary-hover: #1d4ed8;
    --ifp-background: #f6f8fb;
    --ifp-surface: #fff;
    --ifp-border: #e5e7eb;
    --ifp-text: #111827;
    --ifp-muted: #596579;
    --ifp-radius: 12px;
}
html[data-layout-mode="dark"] {
    --ifp-background: #151b26;
    --ifp-surface: #202938;
    --ifp-border: #394456;
    --ifp-text: #f3f4f6;
    --ifp-muted: #b5c0d1;
}
body { background: var(--ifp-background); color: var(--ifp-text); }
.main-content { min-width: 0; }
.page-content { line-height: 1.55; }
.text-muted { color: var(--ifp-muted) !important; }
.card, .modal-content, .dropdown-menu {
    background-color: var(--ifp-surface);
    border: 1px solid var(--ifp-border);
    border-radius: var(--ifp-radius);
    box-shadow: 0 2px 6px rgb(17 24 39 / 3%);
}
.card-header, .card-footer { border-color: var(--ifp-border); }
.card-header { background-color: transparent; }
.card-animate { transition: border-color 180ms ease, box-shadow 180ms ease; }
.card-animate:hover { transform: none; border-color: #a4bced; box-shadow: 0 4px 12px rgb(17 24 39 / 6%); }
.btn { border-radius: 8px; transition: background-color 180ms ease, border-color 180ms ease; }
.btn-primary {
    --vz-btn-bg: var(--ifp-primary);
    --vz-btn-border-color: var(--ifp-primary);
    --vz-btn-hover-bg: var(--ifp-primary-hover);
    --vz-btn-hover-border-color: var(--ifp-primary-hover);
    --vz-btn-active-bg: var(--ifp-primary-hover);
    --vz-btn-active-border-color: var(--ifp-primary-hover);
}
.form-control, .form-select { border-color: var(--ifp-border); border-radius: 8px; min-height: 40px; }
.form-label { font-weight: 600; }
.form-control:focus, .form-select:focus { border-color: var(--ifp-primary); box-shadow: 0 0 0 3px rgb(37 99 235 / 15%); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--ifp-primary); outline-offset: 3px; }
.table { --vz-table-color: var(--ifp-text); --vz-table-border-color: var(--ifp-border); }
.table > thead > tr > th { background: var(--ifp-background); color: var(--ifp-muted); font-size: .8rem; font-weight: 600; padding: .9rem 1rem; }
.table > tbody > tr > td { padding: .85rem 1rem; vertical-align: middle; }
.table > tbody > tr:hover { background-color: var(--ifp-background); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid var(--ifp-border); border-radius: 8px; padding: .4rem .65rem; }
.dataTables_wrapper .dataTables_empty { padding: 2.5rem 1rem !important; color: var(--ifp-muted); }
#page-topbar { border-bottom: 1px solid var(--ifp-border); box-shadow: none; }
.navbar-menu { border-right: 1px solid var(--ifp-border); box-shadow: none; }
.navbar-menu .navbar-nav .nav-link { border-radius: 8px; transition: background-color 180ms ease; }
.navbar-menu .navbar-nav .nav-link.active { background-color: #eaf1ff; color: #1d4ed8; }
.menu-title { letter-spacing: .08em; }
.ifp-page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.ifp-page-header h1 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 650; letter-spacing: -.025em; margin-bottom: .35rem; }
.ifp-page-header p { margin-bottom: 0; color: var(--ifp-muted); max-width: 65ch; }
.ifp-stat-label { color: var(--ifp-muted); font-size: .85rem; font-weight: 500; }
.ifp-stat-value { font-size: 1.85rem; font-weight: 650; letter-spacing: -.03em; margin-top: .5rem; }
.ifp-stat-icon { background: #eff4ff; color: #1d4ed8; border-radius: 10px; padding: .6rem; font-size: 1.25rem; }
.ifp-status { display: inline-flex; align-items: center; padding: .35rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 600; background: #eef0f3; color: #475569; }
.ifp-status-success { background: #e7f5ec; color: #166534; }
.ifp-status-warning { background: #fff3d6; color: #854d0e; }
.ifp-status-danger { background: #fdecec; color: #991b1b; }
.ifp-status-info { background: #e8f0fe; color: #1e40af; }
.ifp-empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ifp-muted); }
.ifp-empty-state > i { display: block; font-size: 2rem; margin-bottom: .75rem; }
.ifp-skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1090; background: var(--ifp-surface); padding: .75rem 1rem; border-radius: 8px; }
.ifp-skip-link:focus { top: 1rem; }
.ifp-toast-container { z-index: 1085; max-width: 100%; }
@media (max-width: 767.98px) {
    .ifp-page-header { align-items: flex-start; flex-direction: column; }
    .ifp-page-header > :last-child { max-width: 100%; }
    .card-body { padding: 1rem; }
    .dataTables_wrapper .dataTables_filter input { max-width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
