:root { --aspl-field-height:40px; --aspl-field-border:#cbd5e1; --aspl-field-radius:6px; }
@media screen {
    body :is(.content-wrapper,.oxm-shell,main) .form-group { margin-bottom:14px; min-width:0; }
    body :is(.content-wrapper,.oxm-shell,main) .form-group > label,
    body .aspl-filter-form label { font-size:13px !important; font-weight:600; line-height:1.4; margin-bottom:6px; color:#334155; }
    html body :is(.content-wrapper,.oxm-shell,main) :is(input.form-control,select.form-control,.custom-select):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
        height:var(--aspl-field-height) !important; min-height:var(--aspl-field-height); border-radius:var(--aspl-field-radius); border-color:var(--aspl-field-border); font-size:14px !important; padding:8px 11px; box-sizing:border-box;
    }
    body :is(.content-wrapper,.oxm-shell,main) textarea.form-control { min-height:96px; line-height:1.5; border-radius:var(--aspl-field-radius); }
    body .aspl-filter-form .aspl-filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:12px 16px; margin-left:0; margin-right:0; align-items:end; }
    body .aspl-filter-form .aspl-filter-grid > .aspl-filter-field { width:auto; max-width:none; min-width:0; flex:none; padding:0; margin-left:0 !important; }
    body .aspl-filter-form .aspl-filter-grid .form-group { margin-bottom:0 !important; }
    body .aspl-filter-form .aspl-filter-grid > .aspl-filter-field > .btn { min-height:var(--aspl-field-height); margin-bottom:0 !important; }
    body .aspl-filter-form .card-body { padding-top:16px !important; padding-bottom:16px !important; }
    body .aspl-filter-form :is(input.form-control,select.form-control,.aspl-select) { width:100%; }
    html body .select2-container { max-width:100%; min-width:0; font-family:var(--aspl-font,'Segoe UI',Arial,sans-serif); }
    html body .form-group > .select2-container { width:100% !important; }
    html body .select2-container .select2-selection--single { height:var(--aspl-field-height) !important; border:1px solid var(--aspl-field-border); border-radius:var(--aspl-field-radius); padding:0 10px; background:#fff; }
    html body .select2-container .select2-selection--single .select2-selection__rendered { line-height:38px !important; padding-left:0; padding-right:24px; margin-top:0; font-size:14px; color:#263124; }
    html body .select2-container .select2-selection--single .select2-selection__arrow { height:38px !important; right:7px; }
    html body .select2-container .select2-selection--multiple { min-height:var(--aspl-field-height) !important; border:1px solid var(--aspl-field-border); border-radius:var(--aspl-field-radius); }
    html body .select2-dropdown { border-color:var(--aspl-field-border); border-radius:6px; box-shadow:0 8px 24px #0f172a24; font-size:14px; }
    html body .select2-dropdown .select2-search--dropdown { display:block !important; }
    html body .select2-search--dropdown .select2-search__field { min-height:36px; border:1px solid var(--aspl-field-border); border-radius:4px; padding:6px 9px; }
    html body .select2-results__option { padding:8px 11px; white-space:normal; overflow-wrap:anywhere; }
    .aspl-select { position:relative; width:100%; min-width:0; font-size:14px; }
    /* Keep the original named field for submission, validation and dependent change handlers. */
    html body .aspl-select > select.aspl-select-source { position:absolute !important; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; margin:0; opacity:0; clip-path:inset(50%); overflow:hidden; }
    body .aspl-select-trigger { display:block; width:100%; height:var(--aspl-field-height); padding:8px 32px 8px 11px; border:1px solid var(--aspl-field-border); border-radius:var(--aspl-field-radius); background:#fff; color:#263124; font:inherit; line-height:22px; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
    body .aspl-select-trigger::after { content:''; position:absolute; right:13px; top:17px; border:5px solid transparent; border-top-color:#64748b; pointer-events:none; }
    body .aspl-select-trigger:disabled { background:#e9ecef; color:#667085; cursor:not-allowed; }
    body .aspl-select-trigger[aria-expanded=true] { border-color:#48752c; box-shadow:0 0 0 3px #86bf4c26; }
    body .aspl-select-trigger:is(.is-invalid,[aria-invalid=true]) { border-color:#dc3545; }
    .aspl-select-panel { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:1060; padding:7px; background:#fff; border:1px solid var(--aspl-field-border); border-radius:6px; box-shadow:0 8px 24px #0f172a24; }
    .aspl-select-panel[hidden] { display:none !important; }
    body .aspl-select-search { width:100%; height:36px; padding:6px 9px; margin-bottom:6px; border:1px solid var(--aspl-field-border); border-radius:4px; font:inherit; }
    .aspl-select-options { max-height:240px; overflow:auto; overscroll-behavior:contain; }
    body .aspl-select-option { display:block; width:100%; padding:8px 10px; margin:0; border:0; border-radius:3px; background:#fff; color:#263124; font:inherit; line-height:1.45; text-align:left; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
    body .aspl-select-option[aria-selected=true] { background:#eef5e7; font-weight:600; }
    body .aspl-select-option[aria-selected=true]::before { content:'\2713  '; }
    body .aspl-select-option:is(:hover,:focus-visible) { background:#48752c; color:#fff; }
    body .aspl-select-option:disabled { color:#98a2b3; cursor:not-allowed; background:#f8fafc; }
    .aspl-select-empty { padding:10px; color:#667085; }
    .aspl-select-error { margin-top:5px; color:#b42318; font-size:13px; }
    .aspl-select-error[hidden] { display:none; }
}
@media screen and (max-width:575.98px) {
    body .aspl-filter-form .aspl-filter-grid { grid-template-columns:minmax(0,1fr); }
    body .aspl-filter-form :is(.btn,input,select,.aspl-select-trigger) { font-size:16px !important; }
}
@media print { .aspl-select-panel { display:none !important; } .aspl-select-source { display:none; } .aspl-select-trigger { border:0; background:transparent; } }
