/* Official palette, KPV GOLD.pdf / Color Palette. */
:root { --kpv-ci-burgundy: #660015; --kpv-ci-gold: #FFC781; --kpv-ci-white: #FFFFFF; }
/* Use the original CI silhouette with one consistent gold ink. */
.kpv-brand-logo {
    display: block;
    flex: none;
    width: 144px;
    height: auto;
    aspect-ratio: 4 / 1;
    background-color: var(--kpv-ci-gold);
    -webkit-mask: var(--kpv-logo-source) center / contain no-repeat;
    mask: var(--kpv-logo-source) center / contain no-repeat;
}

/* Shared light treatment for navigation, Login and authentication loading. */
.kpv-brand-shine { position: relative; display: inline-flex; flex: none; }
.kpv-brand-logo { position: relative; overflow: hidden; }
.kpv-brand-logo::after {
    content: ''; position: absolute; inset: -20% -75%; pointer-events: none;
    background: linear-gradient(108deg,transparent 38%,#FFFFFF33 43%,#FFFFFF 50%,#FFFFFF66 55%,transparent 62%);
    opacity: 0; transform: translateX(-65%);
    animation: kpv-brand-light-pass 4s -.6s cubic-bezier(.3,0,.2,1) infinite;
}
.kpv-brand-shine::after {
    content: ''; position: absolute; pointer-events: none;
    width: 13px; height: 13px; left: calc(58.2% - 6.5px); top: -5px;
    background: #FFFFFF; opacity: 0;
    clip-path: polygon(50% 0,59% 40%,100% 50%,59% 59%,50% 100%,40% 59%,0 50%,40% 40%);
    filter: drop-shadow(0 0 5px #FFC781);
    animation: kpv-brand-corner-spark 4s -.6s ease-in-out infinite;
}
@keyframes kpv-brand-light-pass {
    0% { opacity: 0; transform: translateX(-65%); }
    5% { opacity: 1; }
    50% { opacity: 1; transform: translateX(65%); }
    51%,100% { opacity: 0; transform: translateX(65%); }
}
@keyframes kpv-brand-corner-spark {
    0%,24%,48%,100% { opacity: 0; transform: scale(.2) rotate(0deg); }
    34% { opacity: 1; transform: scale(1.1) rotate(30deg); }
    40% { opacity: .65; transform: scale(.65) rotate(60deg); }
}
@media (prefers-reduced-motion: reduce) {
    .kpv-brand-logo::after, .kpv-brand-shine::after { animation: none; display: none; }
}

/* Quiet build signature aligned with the content edge. */
.fi-app-version {
    display: flex;
    flex: none;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 16px 10px;
    text-align: left;
    font-size: 11px;
    line-height: 18px;
    color: #927d84;
}
.fi-app-version > span {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border: 1px solid #6600150d;
    border-radius: 6px;
    background: #ffffff99;
    font-variant-numeric: tabular-nums;
}
.dark .fi-app-version { color: #b9a5ad; }
.dark .fi-app-version > span {
    border-color: #ffc7811a;
    background: #ffc78108;
}
@media (min-width: 768px) {
    .fi-app-version { padding-inline: 24px; }
}
@media (min-width: 1024px) {
    .fi-app-version { padding-inline: 32px; }
}

/* Bounded, consistent record counts across Filament and custom list tables. */
.kpv-table-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;min-width:0;padding-block:14px}
.kpv-table-pagination>nav{flex:1;min-width:0}
.kpv-page-size{display:inline-flex!important;align-items:center;gap:9px;margin:0!important;color:#88747b;font-size:12px;white-space:nowrap}
.kpv-page-size select{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;min-width:76px;height:36px;padding:0 10px;border:1px solid #ebdfe1;border-radius:8px;background:#fff;color:#660015;font-family:inherit;font-size:12px;appearance:base-select}
.kpv-page-size select:focus-visible{outline:2px solid #b98053;outline-offset:2px}
.dark .kpv-page-size{color:#bba7af}.dark .kpv-page-size select{border-color:#4d3440;background:#261e25;color:#ffc781}
@media(max-width:640px){.kpv-table-pagination{gap:12px}.kpv-table-pagination>nav{flex-basis:100%}.kpv-page-size{font-size:11px}}

/* Status icon stays on the text baseline inside both native and custom badges. */
.kpv-status-icon{display:inline-block;width:14px;height:14px;flex:none;vertical-align:-2px;margin-inline-end:3px;stroke-width:1.7}
