/* Intentional global 10% reduction, relative to the browser default. */
html { font-size: 90%; }
/* Bootstrap owns typography, palette, components and responsive spacing.
   Only sidebar geometry and native-dialog/browser behavior remain local. */
.ks-sidebar { --bs-offcanvas-width: 15rem; }
.ks-sidebar-content { width: var(--bs-offcanvas-width); height: 100%; }
.ks-sidebar-scroll { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; }
.ks-content { min-width: 0; }
.ks-sidebar-toggle { position: fixed; top: 1rem; left: 1rem; z-index: 1031; }
.ks-brand-logo { max-width: 100%; max-height: 2rem; object-fit: contain; }
.ks-main-nav .ks-nav-section[aria-expanded=false]::after { content: ' +'; }
.ks-main-nav .ks-nav-section[aria-expanded=true]::after { content: ' −'; }
@media (min-width: 992px) {
 .ks-sidebar.offcanvas-lg { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
 .ks-desktop-collapse { height: 100%; }
 .ks-app-shell:has(#ks-desktop-sidebar.show) .ks-content { margin-left: var(--bs-offcanvas-width, 15rem); }
 .ks-app-shell:has(#ks-desktop-sidebar.show) .ks-desktop-toggle { left: 16rem; }
}
@media (max-width: 991.98px) {
 .ks-sidebar.offcanvas-lg, .ks-desktop-collapse { height: 100dvh; }
}
/* Native dialogs keep showModal(), focus trapping, Escape and existing handlers. */
dialog.modal { position: fixed; inset: 0; margin: auto; width: calc(100% - var(--bs-modal-margin) * 2); max-width: var(--bs-modal-width); height: fit-content; max-height: calc(100dvh - var(--bs-modal-margin) * 2); padding: 0; overflow-y: auto; border: var(--bs-modal-border-width) solid var(--bs-modal-border-color); border-radius: var(--bs-modal-border-radius); color: var(--bs-body-color); background: var(--bs-body-bg); }
dialog.modal[open] { display: block; }
dialog:not([open]), [hidden] { display: none !important; }
dialog::backdrop { background: var(--bs-black); opacity: .5; }
.field-validation-valid, .validation-summary-valid { display: none; }
.field-validation-error, .validation-summary-errors { color: var(--bs-danger); }
.input-validation-error { border-color: var(--bs-danger); }
.alert:empty { display: none; }
/* Retained image previews and generated notification lifecycle. */
.ks-id-preview-img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.ks-toast.is-dismissing { opacity: 0; }
/* Existing local text icons: no font dependency or branded colour override. */
.bi { display: inline-block; font-style: normal; }
.bi::before { content: '•'; }
.bi-question-circle::before { content: '?'; }
.bi-check-circle-fill::before { content: '✓'; }
.bi-x-circle-fill::before { content: '×'; }
.bi-chevron-expand::before { content: '↕'; }
.bi-chevron-up::before { content: '↑'; }
.bi-chevron-down::before { content: '↓'; }
.bi-download::before, .bi-file-earmark-pdf::before { content: '↓'; }
.bi-calendar3::before { content: '▦'; }
.bi-people::before { content: '♙'; }
.bi-briefcase::before { content: '▣'; }
.bi-journal-text::before, .bi-card-list::before { content: '☷'; }
.bi-inbox::before, .bi-journal-x::before { content: '□'; }
.bi-upc::before { content: '▥'; }
