/* FFH brand logo sizing (2x Velzon default display) */
.navbar-brand-box .logo img {
    height: 44px !important;
    width: auto !important;
    max-width: 100%;
}

.navbar-brand-box {
    min-height: 70px;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.auth-logo img {
    height: 56px !important;
    width: auto !important;
}

/* Keep action toggle forms inline beside edit/view buttons */
.table .hstack > form,
.hstack > form {
    display: inline !important;
    margin: 0 !important;
}

/* Cairo as the global UI font (local) */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"],
[data-theme="default"],
[data-theme="minimal"],
[data-theme="saas"],
[data-theme="corporate"],
[data-theme="galaxy"],
[data-theme="material"],
[data-theme="creative"],
[data-theme="modern"],
[data-theme="interactive"],
[data-theme="classic"],
[data-theme="vintage"] {
    --vz-font-family-primary: "Cairo", sans-serif;
    --vz-font-family-secondary: "Cairo", sans-serif;
    --bs-body-font-family: "Cairo", sans-serif;
    --bs-font-sans-serif: "Cairo", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.nav-link,
.navbar,
.card,
.table,
.modal,
.alert,
.badge,
.breadcrumb,
.page-link,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-family: "Cairo", sans-serif !important;
}

/*
 * Velzon preloader uses #status { width/height: 40px; position: absolute }.
 * Form fields must NOT reuse id="status" — and this override protects legacy markup.
 */
#status.form-select,
#status.form-control,
select#status,
input#status {
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    position: static !important;
    inset: auto !important;
    margin: 0 0 0 0 !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
}

/*
 * Match native <select> size to text inputs across the app.
 * Cairo + appearance:none often renders .form-select visually shorter/cramped.
 */
.form-control,
.form-select {
    min-height: 42px;
    font-size: 0.9375rem !important;
    line-height: 1.5;
}

.form-select:not([multiple]):not([size]) {
    display: block;
    width: 100%;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-inline-start: 0.9rem;
    padding-inline-end: 2.7rem;
    background-position: left 0.9rem center;
    background-size: 16px 12px;
}

[dir="ltr"] .form-select:not([multiple]):not([size]) {
    background-position: right 0.9rem center;
}

.form-select.form-select-sm,
.form-control.form-control-sm {
    min-height: 31px;
    font-size: 0.8125rem !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.form-select.form-select-lg,
.form-control.form-control-lg {
    min-height: 48px;
    font-size: 1.015625rem !important;
}
