/* backend-min base, adapted for the Symfony app.
   The design's base.css resets every margin and styles every bare input; that would break the
   Bootstrap grid and the checkboxes/radios the pages already use, so only typography, links and
   the text-like form controls are taken over here. */

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-ui); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.8125rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

input, select, textarea, button { font-family: inherit; }

label { font-weight: 500; font-size: 0.8125rem; color: var(--ink); }
.form-check-label { font-weight: 400; }
label.required::after { content: ' *'; color: var(--danger); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--line-light); }
::-webkit-scrollbar-thumb { background: #b6c2d1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* One UI font everywhere: Inter (fonts.css), falling back to the system UI font. Monospace blocks keep theirs. */
html, body, input, select, textarea, button, optgroup, table, th, td, label,
.dropdown-menu, .dropdown-item, .modal, .modal-content, .card, .btn, .badge, .alert, .nav-link, .page-link,
.select2-container, .select2-dropdown, .select2-results__option, .select2-selection__rendered, .select2-search__field,
#toast-container, #toast-container > div, .bootbox, .jsgrid, .jsgrid-cell, .jsgrid-header-cell, .tooltip, .popover,
.navbar-menu, .navbar-menu .navbar-nav .nav-link, .main-page-title, .logo-text {
    font-family: var(--font-ui) !important;
}
code, pre, kbd, samp, .color-matrix-wrap, .color-matrix-pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
