/* Save buttons retain their label and use the current theme's text color. */
body .request-loading { cursor: wait; }
body .request-loading > .request-button-spinner { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: modal-request-spin .8s linear infinite; }
body .request-loading > :is(i, svg):not([data-request-spinner]) { display: none; }
body.company-portal :is(label.error, span.error, div.error, p.error, .server-error, .error-msg, .invalid-feedback, .validation-error, .swal2-validationerror, .alert-danger) { color: #dc3545 !important; }
@media (prefers-reduced-motion: reduce) { body .request-loading > .request-button-spinner { animation-duration: 2s; } }

/* Shared modal progress indicator, using the portal's indigo theme. */
.modal-request-loader { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; border-radius: inherit; background: rgba(255,255,255,.94); color: #334155; font-size: 14px; font-weight: 600; text-align: center; cursor: wait; }
.modal-request-loader[hidden] { display: none; }
.modal-request-spinner { display: inline-block; width: 38px; height: 38px; border: 3px solid #e0e7ff; border-top-color: var(--company-primary, #4f46e5); border-radius: 50%; animation: modal-request-spin .8s linear infinite; }
#ajax-loader.company-request-loader { position: fixed; inset: 0; z-index: 9999; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 1; background: rgba(255,255,255,.94); color: #334155; }
.modal #ajax-loader.company-request-loader { position: absolute; border-radius: inherit; }
.company-request-loader-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
@keyframes modal-request-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .modal-request-spinner { animation-duration: 2s; } }

/* Account password setup uses the shared form shell and controls. */
.password-setup { max-width: 1100px; margin: 0 auto; }
.password-setup .password-setup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); align-items: start; gap: 32px; margin-bottom: 8px; }
.password-setup .password-setup-guide { padding: 24px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.password-setup .password-setup-guide-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: #e0e7ff; color: #4f46e5; font-size: 22px; }
.password-setup .password-setup-guide h2 { margin: 0 0 10px; color: #1e293b; font-size: 15px; font-weight: 600; line-height: 1.5; }
.password-setup .password-setup-guide p, .password-setup .password-setup-guide li { color: #64748b; font-size: 12px; line-height: 1.8; }
.password-setup .password-setup-guide p { margin-bottom: 14px; }
.password-setup .password-setup-guide ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.password-setup .password-setup-guide li::marker { color: #4f46e5; }
.password-setup .password-setup-guide .password-setup-guide-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.password-setup .ue-actions { flex-wrap: wrap; }
.password-setup .ue-actions .listing-button { min-height: 40px; min-width: 100px; border-radius: 9px; }
@media (max-width: 767px) {
    .password-setup .password-setup-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .password-setup .password-setup-guide { padding: 20px; }
}

/* Shared form control design for authentication, admin, company and driver pages. */
:root {
    --input-border: #dce3ed;
    --input-ink: #263449;
    --input-muted: #8a96a8;
    --input-accent: #5940ce;
    --form-action-gradient: linear-gradient(to right, #2563eb, #4f46e5);
    --input-height: 38px;
    --checkbox-size: 14px;
}

/* Token ownership and generation notices use the shared form palette. */
.token-editor .token-notice { display: flex; align-items: flex-start; gap: 14px; margin: 20px 0; padding: 20px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #334155; font: 12px/1.7 Inter, sans-serif; }
.token-editor .token-notice-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #dbeafe; color: #2563eb; font-size: 22px; }
.token-editor .token-notice-title { display: block; margin: 0 0 4px; color: #0f172a; font-size: 14px; font-weight: 600; }
.token-editor .token-notice-content { flex: 1; min-width: 0; }
.token-editor .token-notice small { font-size: 12px; }
.token-editor .token-notice-success { border-color: #a7f3d0; background: #ecfdf5; }
.token-editor .token-notice-success .token-notice-icon { background: #d1fae5; color: #059669; }
.token-editor .token-notice .input-group { flex-wrap: nowrap; }
.token-editor .token-notice .common-password-field { flex: 1; min-width: 0; }
.token-editor .token-notice .token-copy-btn { height: var(--input-height); margin-left: 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; }

body input:is(:not([type]), [type="text"], [type="email"], [type="password"], [type="search"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="datetime-local"], [type="time"], [type="month"], [type="week"]):not(.select2-search__field):not(.form-control-plaintext) {
    box-sizing: border-box;
    min-width: 0;
    height: var(--input-height) !important;
    min-height: var(--input-height);
    padding: 7px 14px;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px;
    background-color: #fff;
    color: var(--input-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(28, 39, 60, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body input::placeholder { color: var(--input-muted); opacity: 1; }
body input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"])):not(:disabled):not([readonly]):hover { border-color: #b9b2d8 !important; }
body input:is(.form-control, [type="text"], [type="email"], [type="password"], [type="search"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="datetime-local"], [type="time"], [type="month"], [type="week"]):not(.select2-search__field):focus {
    border-color: var(--input-accent) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(89, 64, 206, .11);
}
body input:is(.is-invalid, .error, [aria-invalid="true"]):not(.select2-search__field):not(.form-control-plaintext) { border-color: #dc5367 !important; }
body input:is(.is-invalid, .error, [aria-invalid="true"]):not(.select2-search__field):not(.form-control-plaintext):focus { border-color: #dc5367 !important; box-shadow: 0 0 0 4px rgba(220, 83, 103, .1); }
body input:disabled:not(.select2-search__field):not(.form-control-plaintext) { background-color: #f1f4f8; color: #8893a3; cursor: not-allowed; box-shadow: none; }
body input[readonly]:not(:disabled):not(.select2-search__field):not(.form-control-plaintext) { background-color: #f8f9fc; }

/* The first grid row keeps the eye centered on the input if validation adds a row. */
.common-password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1 1 0%;
    align-self: start;
}
body .common-password-field > input {
    grid-area: 1 / 1;
    width: 100%;
    padding-right: 44px !important;
    border-radius: 10px !important;
    border-left-width: 1px !important;
    background-image: none;
}
body .common-password-field > .common-password-toggle {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: end;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0 6px 0 0 !important;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7b8498;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease;
}
body .common-password-toggle:hover,
body .common-password-toggle[aria-pressed="true"] { background: #f0edfc; color: var(--input-accent); }
body .common-password-toggle:focus-visible { outline: 2px solid var(--input-accent); outline-offset: 1px; }
body .common-password-toggle:disabled { opacity: .4; cursor: not-allowed; }
.common-password-toggle svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.common-password-toggle .common-eye-slash { display: none; }
.common-password-toggle[aria-pressed="true"] .common-eye-slash { display: block; }
.common-password-field:has(.is-invalid) ~ .invalid-feedback { display: block; }
.common-password-field > :is(label.error, span.error) { grid-column: 1; }
.common-password-field input::-ms-reveal,
.common-password-field input::-ms-clear { display: none; }

/* Authentication fields use a clean single outline, without separate icon boxes. */
.auth .input-group > .input-group-prepend { display: none; }
.auth .input-group > input,
.auth .input-group > .common-password-field > input { border-left: 1px solid var(--input-border) !important; border-radius: 10px !important; padding-left: 14px !important; }
.auth .input-group input:focus { border-color: var(--input-accent) !important; }
.auth .input-group input.is-invalid { border-color: #dc5367 !important; }

/* Textareas keep their existing height, rows and resize behavior. */
body textarea:not(.select2-search__field):not(.form-control-plaintext),
body select:not(.select2-hidden-accessible):not(.form-control-plaintext):not(:where(.daterangepicker select, .ui-datepicker select, .datepicker-dropdown select, .datepicker-container select)) {
    box-sizing: border-box;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px;
    background-color: #fff;
    color: var(--input-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(28, 39, 60, .025);
    transition: border-color .18s ease, box-shadow .18s ease;
}
body textarea::placeholder { color: var(--input-muted); opacity: 1; }
/* Native single-choice controls share the station filter style on every page. */
body select:where(:not([multiple]):is(:not([size]), [size="1"])):not(.select2-hidden-accessible):not(.form-control-plaintext):not(:where(.daterangepicker select, .ui-datepicker select, .datepicker-dropdown select, .datepicker-container select)) {
    height: 40px !important;
    min-height: 40px;
    padding: 8px 36px 8px 12px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #334155;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    box-shadow: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b8498' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
body select[multiple]:not(.select2-hidden-accessible) option { padding: 6px 10px; border-radius: 6px; }
body textarea:not(:disabled):not([readonly]):hover,
body select:not(:disabled):hover { border-color: #b9b2d8 !important; }
body textarea:not(.select2-search__field):not(.form-control-plaintext):focus,
body select:not(.select2-hidden-accessible):not(.form-control-plaintext):focus {
    border-color: var(--input-accent) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(89, 64, 206, .11);
}
body :is(textarea, select):not(.select2-hidden-accessible):not(.form-control-plaintext):is(.is-invalid, .error, [aria-invalid="true"]) { border-color: #dc5367 !important; }
body :is(textarea, select):not(.select2-hidden-accessible):not(.form-control-plaintext):is(.is-invalid, .error, [aria-invalid="true"]):focus { box-shadow: 0 0 0 4px rgba(220, 83, 103, .1); }
body :is(textarea, select):not(.select2-hidden-accessible):not(.form-control-plaintext):disabled { background-color: #f1f4f8; color: #8893a3; cursor: not-allowed; box-shadow: none; }
body textarea[readonly]:not(.select2-search__field):not(.form-control-plaintext) { background-color: #f8f9fc; }

/* Style the existing Select2 widget without replacing its selection or search logic. */
body .select2.select2-container { height: auto; min-height: var(--input-height); max-width: 100%; line-height: normal; }
body .form-group > .select2.select2-container { display: block; margin-top: 0; vertical-align: top; }
body .select2-container--default .select2-selection:is(.select2-selection--single, .select2-selection--multiple) {
    min-height: var(--input-height);
    height: auto !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px;
    background: #fff;
    color: var(--input-ink);
    box-shadow: 0 2px 4px rgba(28, 39, 60, .025);
    transition: border-color .18s ease, box-shadow .18s ease;
}
body .select2-container--default .select2-selection:hover { border-color: #b9b2d8 !important; }
body .select2-container--default:is(.select2-container--focus, .select2-container--open) .select2-selection {
    border-color: var(--input-accent) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(89, 64, 206, .11);
}
body .select2-container--default .select2-selection.select2-selection--single { height: var(--input-height) !important; }
body .select2-container--default .select2-selection.select2-selection--single .select2-selection__rendered {
    box-sizing: border-box;
    height: calc(var(--input-height) - 2px);
    margin: 0;
    padding: 0 42px 0 14px;
    color: var(--input-ink);
    font-size: 14px;
    line-height: calc(var(--input-height) - 2px);
}
/* Apply muted input text only to an empty dropdown's prompt. */
body select[data-placeholder].is-dropdown-placeholder:not(:disabled),
body select[data-placeholder].is-dropdown-placeholder + .select2-container .select2-selection__rendered,
body .select2-container--default .select2-selection__placeholder {
    color: var(--dropdown-placeholder-color, var(--input-muted)) !important;
    opacity: 1;
}
body select[data-placeholder].is-dropdown-placeholder option:not([value=""]) { color: var(--input-ink); }
body .select2-container--default .select2-selection.select2-selection--single .select2-selection__arrow { top: 1px; right: 12px; width: 20px; height: calc(var(--input-height) - 2px); }
body .select2-container--default .select2-selection.select2-selection--single .select2-selection__arrow b {
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border: solid #7b8498;
    border-width: 0 1.7px 1.7px 0;
    transform: rotate(45deg);
}
body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { margin-top: -2px; transform: rotate(225deg); }
body .select2-container--default .select2-selection--multiple { position: relative; padding: 0; }
body .select2-container--default .select2-selection.select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-height: calc(var(--input-height) - 2px);
    height: auto !important;
    margin: 0;
    padding: 4px 10px;
    line-height: 26px;
    white-space: normal;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    float: none;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #e2dcf6;
    border-radius: 7px;
    background: #f2effc;
    color: #51418b;
    font-size: 13px;
    line-height: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove { flex-shrink: 0; margin: 0; color: #8273ac; font-size: 17px; line-height: 1; }
body .select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover { color: var(--input-accent); }
body .select2-container--default .select2-search--inline {
    display: flex !important;
    align-items: center;
    float: none;
    min-width: 0;
    max-width: 100% !important;
    margin: 0;
    overflow: visible !important;
}
body .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    min-height: 0;
    height: 26px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--input-ink);
    font: inherit;
    font-size: 14px;
    line-height: 26px;
    box-shadow: none !important;
    outline: none;
}
body .select2-container--default .select2-selection__clear { position: absolute; top: 7px; right: 36px; margin: 0; color: #8273ac; font-size: 20px; line-height: 24px; }
body .select2-container--default .select2-selection--multiple .select2-selection__clear { right: 10px; }
body .select2-selection--multiple:has(.select2-selection__clear) .select2-selection__rendered { padding-right: 36px; }
body .select2-container--default .select2-dropdown { height: auto !important; min-height: 0; overflow: hidden; border: 1px solid var(--input-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(28, 39, 60, .12); }
body .select2-container--default .select2-results { display: block; border: 0; padding: 10px; }
body .select2-container--default .select2-results > .select2-results__options { max-height: 240px; overflow-y: auto; }
body .select2-container--default .select2-search--dropdown { padding: 10px; }
body .select2-container--default .select2-search--dropdown .select2-search__field { min-height: 36px; padding: 7px 10px; border: 1px solid var(--input-border) !important; border-radius: 7px; color: var(--input-ink); outline: none; }
body .select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--input-accent) !important; box-shadow: 0 0 0 3px rgba(89, 64, 206, .09); }
body .select2-container--default .select2-results__options { padding: 5px; }
body .select2-container--default .select2-results__option { margin: 2px 0; padding: 9px 12px; border-radius: 6px; color: var(--input-ink); font-size: 14px; line-height: 1.5; }
body .select2-container--default .select2-results__option[aria-selected="true"] { background: #f2effc; color: var(--input-accent); }
body .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #ede8fc; color: #4931b3; }
body .select2-container--default .select2-results__option[aria-disabled="true"] { color: var(--input-muted); }
body .select2-container--default.select2-container--disabled .select2-selection { background: #f1f4f8; color: #8893a3; cursor: not-allowed; box-shadow: none; }
body select:is(.is-invalid, .error, [aria-invalid="true"]) + .select2-container .select2-selection { border-color: #dc5367 !important; }

/* Shared submit actions include buttons that submit forms through JavaScript. */
body :is(button[type="submit"], input[type="submit"], .btn-common, .validate_action),
body button:is([onclick*="SumitForm"], [onclick*="SubmitForm"]),
body form .btn-primary,
body form button:not([type]) {
    background: var(--form-action-gradient) !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

/* Keep checkbox semantics and support both visible inputs and theme helpers. */
body input[type="checkbox"] { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: var(--checkbox-size) !important; height: var(--checkbox-size) !important; min-height: 0; padding: 0; border: 1.5px solid #c8cfe0; border-radius: 4px; background: #fff; vertical-align: middle; cursor: pointer; }
body input[type="checkbox"]:checked {
    border-color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.5 2.5L11 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat, var(--form-action-gradient) border-box !important;
}
body input[type="checkbox"]:indeterminate {
    border-color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7h8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat, var(--form-action-gradient) border-box !important;
}
body input[type="checkbox"]:focus-visible { outline: 2px solid var(--input-accent); outline-offset: 3px; }
body input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
body .form-check .form-check-label input[type="checkbox"] + .input-helper:before { width: var(--checkbox-size); height: var(--checkbox-size); border: 1.5px solid #c8cfe0; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(28, 39, 60, .04); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
body .form-check .form-check-label input[type="checkbox"]:checked + .input-helper:after { width: var(--checkbox-size); height: var(--checkbox-size); font-size: 12px; line-height: var(--checkbox-size); }
body .form-check .form-check-label input[type="checkbox"]:checked + .input-helper:before,
body .form-check .form-check-label input[type="checkbox"]:indeterminate + .input-helper:before { border-color: #2563eb; background: var(--form-action-gradient); }
body .form-check .form-check-label input[type="checkbox"]:focus-visible + .input-helper:before { box-shadow: 0 0 0 4px rgba(89, 64, 206, .15); }
body .form-check .form-check-label input[type="checkbox"]:indeterminate + .input-helper:after { content: ""; top: 6px; left: 3px; width: 8px; height: 2px; background: #fff; opacity: 1; transform: none; }
body .form-check .form-check-label input[type="checkbox"]:disabled + .input-helper { opacity: .5; }

/* Add / edit user: one grid and shared control sizing across every section. */
.user-editor { --ue-border: #e5e8f0; --ue-muted: #7b8599; --ue-ink: #29354b; font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0; }
.user-editor :is(h1, h2, h3, h4, h5, h6, p, label, small, span, input, select, textarea, button, option) { font-family: inherit; letter-spacing: inherit; }
.user-editor > .col-12 > .card { border: 1px solid var(--ue-border); border-radius: 12px; box-shadow: 0 6px 26px rgba(32, 48, 72, .045); }
.user-editor .card-body { padding: 24px; border-radius: 0 0 12px 12px; }
.user-editor .ue-parent-card,
.user-editor .ue-parent-card > .ue-parent-body { background: transparent; }
.user-editor .ue-form-card { min-width: 0; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(32, 48, 72, .035); }
.user-editor .ue-form-card > .ue-form-body { padding: 20px; border-radius: 12px; background: #fff; }
.user-editor .ue-section-heading p { margin: 0; color: var(--ue-muted); font-size: 12px; line-height: 1.6; }
.user-editor .form-control:not(.select2-search__field):not(.form-control-plaintext) { font-size: 12px; }
body .user-editor .select2-container--default .select2-selection .select2-selection__rendered { font-family: inherit; font-size: 12px; }
body .user-editor .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field { font-family: inherit; font-size: 12px; }
body:has(.user-editor) > .select2-container--default .select2-dropdown { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0; }
body:has(.user-editor) > .select2-container--default .select2-results__option,
body:has(.user-editor) > .select2-container--default .select2-search--dropdown .select2-search__field { font-family: inherit; font-size: 12px; letter-spacing: 0; }
.user-editor :is(.ue-section, .ue-email-row) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0 0 20px; padding: 20px; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; }
.user-editor :is(.ue-section, .ue-email-row) > [class*="col-"] { width: 100%; max-width: 100%; min-width: 0; padding: 0; }
.user-editor :is(.ue-section, .ue-email-row) > :is(.col-12, .col-md-12) { grid-column: 1 / -1; }
.user-editor .ue-section-heading { display: flex; align-items: center; grid-column: 1 / -1; gap: 10px; min-width: 0; margin: 0 0 18px; padding-bottom: 14px !important; border-bottom: 1px solid #eef0f5; }
.user-editor :is(.ue-section, .ue-email-row) > .ue-section-heading { margin-bottom: 0; }
.user-editor .ue-section-heading > .mdi { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #eff6ff; color: #2563eb; font-size: 19px; }
.user-editor .ue-section-heading h5 { margin: 0 0 3px; color: var(--ue-ink); font-size: 14px; font-weight: 600; }
.user-editor .form-group { min-width: 0; margin-bottom: 0; }
.user-editor .form-label,
.user-editor .form-group > label:not(.error):not(.server-error) { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 20px; margin: 0 0 6px !important; color: #4b566c; font-size: 12px; font-weight: 500; line-height: 20px; }
.user-editor .info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: #949cb0; font-size: 15px; line-height: 1; }
.user-editor .left-viewrounded-right { align-items: flex-start; flex-wrap: wrap; gap: 0 8px; }
.user-editor .left-viewrounded-right > .form-control { min-width: 0; flex: 1 1 0; }
.user-editor #btn-add-vehicle, .user-editor #btn-add-vehicle .cust-box-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--input-height); width: var(--input-height); height: var(--input-height); padding: 0 !important; border-radius: 9px; line-height: 1; cursor: pointer; }
.user-editor .select2-container { width: 100% !important; max-width: 100%; }
.user-editor .select2-container--default .select2-selection--multiple .select2-selection__choice { background: #f2effc; color: #51418b; font-size: 12px; }
.user-editor .ue-vehicle-settings { margin-bottom: 20px; padding: 20px; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; }
.user-editor .ue-authorization { align-self: end; padding-bottom: 5px !important; }
.user-editor .ue-section > .form-group > ul:empty { display: none; }
.user-editor .ue-section .form-group > ul:empty { display: none; }
.user-editor .permission-checklist-group { margin: 0 0 20px; padding: 20px; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; list-style: none; }
.user-editor .permission-checklist-group > .form-group { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.user-editor .permission-checklist-group > .form-group + .form-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eef0f5; }
.user-editor .role_title { margin: 0 0 14px; color: var(--ue-ink); font-size: 14px; line-height: 1.5; }
.user-editor .role_title b { font-weight: 600; }
.user-editor .permission-checklist-group .checkboxgroup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; padding: 0; border: 0; }
.user-editor .permission-checklist-group .checkboxgroup li { display: block; width: 100%; max-width: none; margin: 0; border: 1px solid #e9eaf1; border-radius: 8px; background: #fafbfe; }
.user-editor .permission-checklist-group .checkboxgroup li:hover { border-color: #d2c9f1; background: #f7f4ff; }
.user-editor .permission-checklist-group .checkboxgroup li:has(input:checked) { border-color: #ddd4f9; background: #eff6ff; }
.user-editor .form-check { margin: 0; }
.user-editor .form-check .form-check-label { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 26px; margin: 0; padding: 3px 0 3px 24px; color: #526079; font-size: 12px; line-height: 1.6; cursor: pointer; }
.user-editor .permission-checklist-group .checkboxgroup .form-check-label { min-height: 38px; height: 100%; padding: 8px 10px 8px 34px; overflow-wrap: anywhere; }
.user-editor .form-check .form-check-label input:is([type="checkbox"], [type="radio"]) { position: absolute; top: 50%; left: 0; right: auto; width: var(--checkbox-size); height: var(--checkbox-size); margin: 0; padding: 0; transform: translateY(-50%); opacity: 1; filter: none; accent-color: var(--input-accent); cursor: pointer; }
.user-editor .permission-checklist-group .checkboxgroup .form-check-input { left: 11px !important; margin: 0; }
.user-editor .form-check .form-check-label .input-helper { display: none; }
.user-editor input[type="checkbox"][readonly] { pointer-events: none; }
.user-editor .form-check .form-check-label input:disabled { opacity: .55; cursor: not-allowed; }
.user-editor .report_section > .check-list,
.user-editor .ue-note-card { height: 100%; margin: 0; padding: 20px; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; list-style: none; }
.user-editor .report_section .form-check { padding: 0; }
.user-editor .checkboxgroup_report { min-width: 0; }
.user-editor .checkboxgroup_report li { display: block; width: 100%; max-width: none !important; margin-bottom: 8px; color: #69758b; font-size: 12px; line-height: 1.7; }
.user-editor .checkboxgroup_report > br { display: none; }
.user-editor .select_match { margin-left: 4px; color: var(--ue-muted); font-size: 11px; font-weight: 400; }
.user-editor .ue-section > .ue-actions { grid-column: 1 / -1; }
.user-editor .ue-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--ue-border); }
.user-editor .ue-actions .btn-common { display: inline-flex; align-items: center; justify-content: center; min-width: 144px; height: 40px; margin: 0 !important; padding: 0 24px; float: none !important; border-radius: 9px; font-size: 12px !important; font-weight: 500; line-height: 1.2; }

/* Repeatable station and depot fields use the Add User section layout. */
.ewura-editor .ewura-tank-list { min-width: 0; }
.ewura-editor .ewura-tank { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; background: #fafbfe; }
.ewura-editor .ewura-tank:last-child { margin-bottom: 0; }
.ewura-editor .ewura-tank-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ue-border); }
.ewura-editor .ewura-tank-heading .ue-section-heading { margin: 0; padding: 0 !important; border: 0; }
.ewura-editor .ewura-remove-tank { gap: 5px; min-height: 32px; height: auto; padding: 5px 10px; border: 1px solid #fecdd3; border-radius: 8px; background: #fff; color: #be123c; font-size: 12px; }
.ewura-editor .ewura-remove-tank:hover { background: #fff1f2; color: #be123c; }
.ewura-editor .ewura-tank-actions { display: flex; justify-content: flex-end; }
.ewura-editor .ewura-tank-actions .btn-common,
.ewura-editor .ewura-back-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; gap: 6px; height: var(--input-height); min-height: var(--input-height); margin: 0; padding: 0 18px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; color: #1d4ed8; font-size: 12px; line-height: 1.2; text-decoration: none; }
@media (max-width: 767px) {
    .ewura-editor .ewura-tank { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .ewura-editor .ewura-tank-actions .btn-common { width: 100%; }
}

.depot-editor .tank-data { min-width: 0; }
.depot-editor .depot-tank-card { margin-bottom: 16px; background: #fafbfe; }
.depot-editor .depot-tank-card:last-child { margin-bottom: 0; }
.depot-editor .depot-tank-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ue-border); }
.depot-editor .depot-tank-heading h6 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ue-ink); font-size: 13px; font-weight: 600; }
.depot-editor .depot-tank-heading h6 > .mdi { color: #2563eb; font-size: 18px; }
.depot-editor .depot-tank-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; min-width: 0; }
.depot-editor .depot-color-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.depot-editor .depot-color-control .set_value { flex: 1 1 0; min-width: 0; }
.depot-editor .depot-color-control input[type="color"] { flex: 0 0 48px; width: 48px; height: var(--input-height); min-height: var(--input-height); padding: 4px; border: 1px solid var(--input-border); border-radius: 10px; background: #fff; cursor: pointer; }
.depot-editor .depot-color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.depot-editor .depot-color-control input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.depot-editor .depot-color-control input[type="color"]::-moz-color-swatch { border: 0; border-radius: 6px; }
.depot-editor .depot-remove-tank { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 10px; border: 1px solid #fecdd3; border-radius: 8px; background: #fff; color: #be123c; font-size: 12px; cursor: pointer; }
.depot-editor .depot-remove-tank:hover { background: #fff1f2; }
.depot-editor .ue-actions .depot-add-tank { display: inline-flex; gap: 6px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; }
@media (max-width: 767px) {
    .depot-editor .depot-tank-fields { grid-template-columns: minmax(0, 1fr); }
    .depot-editor .ue-actions { flex-wrap: wrap; }
}
.user-editor :is(.server-error, label.error, span.error) { position: static; display: block; width: 100%; margin: 5px 0 0; padding: 0; color: #dc5367; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.user-editor :is(.server-error, label.error, span.error):empty { display: none; }
.user-editor :is(.left-viewrounded-right, .input-group) > :is(.server-error, label.error, span.error) { flex: 0 0 100%; order: 3; }
.server-error,
label.error,
span.error { text-transform: lowercase; }
.server-error::first-letter,
label.error::first-letter,
span.error::first-letter { text-transform: uppercase; }
@media (max-width: 991px) {
    .user-editor .permission-checklist-group .checkboxgroup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .user-editor .card-body { padding: 18px 12px; }
    .user-editor .ue-form-card > .ue-form-body { padding: 16px 12px; }
    .user-editor :is(.ue-section, .ue-email-row) { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
    .user-editor .permission-checklist-group,
    .user-editor .ue-vehicle-settings,
    .user-editor .report_section > .check-list,
    .user-editor .ue-note-card { padding: 16px; }
    .user-editor .permission-checklist-group .checkboxgroup { grid-template-columns: minmax(0, 1fr); }
    .user-editor .ue-actions .btn-common { width: 100%; }
}

/* Station sections use the same cards, headers and field rhythm as Add User. */
.station-editor .input-group > .form-control { flex: 1 1 auto; min-width: 0; width: 1%; }
.station-editor .input-group .btn { display: inline-flex; align-items: center; justify-content: center; height: var(--input-height); min-width: var(--input-height); padding: 0 10px; border-radius: 0 10px 10px 0; }
.station-editor .station-date-field { position: relative; }
.station-editor .station-date-field > #reg_date { width: 100%; padding-right: 44px; border-radius: 10px !important; }
.station-editor .station-date-icon { position: absolute; top: calc(var(--input-height) / 2); right: 12px; z-index: 4; display: inline-flex; color: #2563eb; transform: translateY(-50%); pointer-events: none; }
.station-editor .station-date-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.station-editor .se-integrations > :is(.check-list, .se-connection) { grid-column: 1 / -1; }
.station-editor .check-list { margin: 0; padding: 0; list-style: none; }
.station-editor .check-list > .form-check { margin: 0 !important; padding: 0; }
.station-editor .se-field-label { margin: 0 0 6px; color: #4b566c; font-size: 12px; font-weight: 500; line-height: 20px; }
.station-editor .checkboxgroup_report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.station-editor .checkboxgroup_report li { min-width: 0; margin: 0; border: 1px solid #e9eaf1; border-radius: 8px; background: #fafbfe; }
.station-editor .checkboxgroup_report li:has(input:checked) { border-color: #ddd4f9; background: #f4f0ff; }
.station-editor .checkboxgroup_report .form-check-label { min-height: 38px; height: 100%; padding: 8px 10px 8px 34px; }
.station-editor .checkboxgroup_report .form-check-label input { left: 11px !important; }
.station-editor .se-connection { gap: 18px 24px; margin: 0; padding-top: 18px; border-top: 1px solid #eef0f5; }
.station-editor .se-connection > .col-12 { padding: 0; }
.station-editor .se-connection > .col-12 > .ue-section-heading { margin-bottom: 0; }
.station-editor .se-connection > .col-md-6 { display: flex; flex-direction: column; gap: 18px; flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); min-width: 0; padding: 0; }
.station-editor .dropify-wrapper { height: 145px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; }
.station-editor .dropify-wrapper .dropify-message p { font-family: inherit; font-size: 12px; }
@media (max-width: 575px) {
    .station-editor .checkboxgroup_report { grid-template-columns: minmax(0, 1fr); }
    .station-editor .se-connection > .col-md-6 { flex-basis: 100%; max-width: 100%; }
}

/* Shared form shell. */
.token-editor .token-copy-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--input-height); height: var(--input-height); margin-left: 8px; padding: 0; border: 1px solid var(--input-border); border-radius: 10px !important; background: #fff; color: #2563eb; }
.token-editor .token-copy-btn:hover { background: #eff6ff; }
.token-editor .token-copy-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.token-editor .form-sample { margin-top: 20px; }
.contact-editor .contact-info-area { padding: 0; margin-bottom: 20px; }
.contact-editor .contact-info-area > .row { row-gap: 16px; }
.contact-editor .single-contact-info-box { height: 100%; max-height: none; margin: 0; padding: 18px; border: 1px solid var(--ue-border); border-radius: 12px; background: #fff; box-shadow: none; text-align: left; }
.contact-editor .single-contact-info-box .icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px; background: #eff6ff; color: #2563eb; font-size: 19px; }
.contact-editor .single-contact-info-box .h4-new { display: block; color: var(--ue-ink); font-size: 14px; font-weight: 600; }
.contact-editor .single-contact-info-box p,
.contact-editor .single-contact-info-box p a { display: block; overflow: visible; color: var(--ue-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-editor .contact-area { padding: 0; }
.contact-editor .contact-form,
.contact-editor .contact-form form { margin: 0; }
.contact-editor .contact-form form label { margin-bottom: 6px; color: #4b566c; font-size: 12px; font-weight: 500; }
.contact-editor .contact-form form label.error { color: #dc5367; }
.contact-editor .contact-form textarea { min-height: 140px; resize: vertical; font-size: 12px; }
.fuel-price-editor .sf-toolbar { margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--ue-border); border-radius: 12px; }
.fuel-price-editor .sf-toolbar > .col-12 { padding: 0; }
.fuel-price-editor .sf-station-filter { max-width: 540px; margin: 0 !important; }
.fuel-price-editor .sf-station-control { display: flex; align-items: stretch; min-width: 0; width: 100%; }
.fuel-price-editor .sf-station-control > select,
.fuel-price-editor .sf-station-control > .select2-container { flex: 1 1 0; min-width: 0; width: 0 !important; min-height: var(--input-height); }
.fuel-price-editor .sf-station-control > select,
.fuel-price-editor .sf-station-control .select2-selection { border-right: 0 !important; border-radius: 10px 0 0 10px !important; }
.fuel-price-editor .sf-station-control .select2-selection--multiple { min-height: var(--input-height); }
.fuel-price-editor .sf-station-control .select2-selection--multiple .select2-selection__rendered { min-height: calc(var(--input-height) - 2px); padding: 2px 10px; }
.fuel-price-editor .sf-station-control .common_search_filter { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; align-self: stretch; height: auto; min-height: var(--input-height); padding: 0; margin: 0 !important; border-radius: 0 10px 10px 0; line-height: 1; }
.fuel-price-editor .sf-toolbar:not(:has(select)) { display: none; }
.fuel-price-editor .station-loyltyviewmobile { overflow-x: auto; padding: 20px; border: 1px solid var(--ue-border); border-radius: 12px; }
.fuel-price-editor .station-loyltyviewmobile #change_slp,
.fuel-price-editor .station-loyltyviewmobile form > .row:not(.form-group) { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 16px; align-items: center; min-width: 600px; margin: 0; }
.fuel-price-editor .station-loyltyviewmobile .row:not(.form-group) > [class*="col-sm-"] { width: 100%; max-width: none; min-width: 0; padding: 0; color: var(--ue-ink); font-size: 12px; overflow-wrap: anywhere; }
.fuel-price-editor #change_slp { padding: 12px; border-radius: 8px; background: #f8fafc; font-weight: 600; }
.fuel-price-editor hr { margin: 16px 0; border-color: #eef0f5; }
.fuel-price-editor .sf-price-actions { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.fuel-price-editor .sf-price-actions .form-check { display: flex; align-items: center; gap: 8px; padding: 0; }
.fuel-price-editor .sf-price-actions .form-check > input { position: static; margin: 0; opacity: 1; }
.fuel-price-editor .sf-price-actions .form-check > input + label { min-height: 0; padding: 0; }
.fuel-price-editor #wholesale-price-form { padding-top: 18px; border-top: 1px solid var(--ue-border); }
.fuel-price-editor #wholesale-price-form > .d-flex { gap: 16px; }
.fuel-price-editor .header-title { padding: 12px 16px; border-radius: 8px; background: #f8fafc; color: var(--ue-muted); font-size: 12px; }
@media (max-width: 575px) {
    .fuel-price-editor .station-loyltyviewmobile, .fuel-price-editor .sf-toolbar { padding: 12px; }
    .fuel-price-editor .sf-price-actions .btn-common { width: 100%; }
}
.driver-editor .ue-section > .form-group { margin-bottom: 0 !important; }
.driver-editor .ue-section > [class*="col-"] > ul { margin: 0; padding: 0; list-style: none; }
.driver-editor input[type="radio"] { margin: 0 4px 0 0; accent-color: #2563eb; vertical-align: middle; }
.driver-editor input[type="radio"] + label { display: inline; margin-right: 16px; font-size: 12px; font-weight: 400; }
.driver-editor textarea.form-control { min-height: 120px; resize: vertical; }
.driver-editor .dropify-wrapper { border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.driver-editor .dropify-wrapper .dropify-message p { font-size: 12px; }
.driver-editor .upload_img { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
.driver-editor .upload_img > input[type="file"] { position: static; display: block; float: none; width: 100%; height: auto; min-height: 42px; margin: 0; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; color: var(--ue-muted); font-size: 12px; opacity: 1; }
.driver-editor .upload_img > .custom-file-input { display: none; }
.driver-editor .upload_img .pip { position: relative; margin: 0; }
.driver-editor .upload_img .imageThumb { width: 120px; max-width: 100%; height: 100px; padding: 0; border: 1px solid var(--ue-border); border-radius: 8px; object-fit: cover; }
.driver-editor .upload_img .remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #263449; color: #fff; text-align: center; line-height: 22px; }
.tank-editor.common-form .form-fields { gap: 18px 24px; }
.tank-editor .form-fields > .form-group { min-width: 0; margin: 0; }
.standardized-form .listing-header { position: static; border-radius: 0; }
.standardized-form:not(.row) { width: 100%; min-width: 0; }
.standardized-form .listing-header-icon > .mdi { font-size: 22px; line-height: 1; }
.standardized-form .listing-header-actions :is(a, button) { float: none !important; margin: 0 !important; }
.standardized-form:not(.shared-field-layout) .ue-form-body .form-group { margin-bottom: 16px !important; }
.standardized-form .ue-form-body > .row.p-5 { padding: 0 !important; }
.standardized-form .ue-form-body .content-panel { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.standardized-form.common-form .form-fields { gap: 20px; }
.standardized-form.common-form .form-panel { padding: 20px; border-radius: 12px; background: #fff; }
.standardized-form.common-form .col-form-label { padding: 0; }
.standardized-form.common-form .form-actions { padding-top: 18px; }
.standardized-form.common-form .form-actions :is(.btn, .btn-common),
.standardized-form.common-form #wholesale-price-form .btn-common { height: 40px; min-height: 40px; min-width: 144px; border-radius: 9px; font-size: 12px !important; }
#expense-form .listing-title { font-size: 18px; font-weight: 700; line-height: 28px; letter-spacing: -.025em; }
#expense-form .ue-form-body .ef-main { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#expense-form .ue-form-body .ef-label { margin-bottom: 6px; font-size: 12px; font-weight: 500; line-height: 20px; letter-spacing: 0; text-transform: none; }
#expense-form .ue-form-body :is(.ef-control, .ef-select, .ef-combo-input) { height: var(--input-height) !important; border-radius: 10px; font-size: 12px; }
.stock-editor .listing-header { position: static; }
.stock-editor .card-body { border-radius: 12px; background: #fff; }
.stock-editor .ue-parent-body { border-radius: 0 0 12px 12px; }
.stock-editor .form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.stock-editor .ue-form-body .form-fields > .form-group { display: block; min-width: 0; margin: 0 !important; }
.stock-editor .form-fields :is(.col-form-label, .col-sm-9) { width: 100%; max-width: 100%; padding: 0; }
.stock-editor .stock-bill-field, .stock-editor .form-actions { grid-column: 1 / -1; }
.stock-editor .form-actions { margin-top: 6px; }
.stock-editor .dropify-wrapper { border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; font-family: inherit; }
.stock-editor .dropify-wrapper .dropify-message p { font-family: inherit; font-size: 12px; }
@media (max-width: 575px) {
    .stock-editor .form-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    body input, body textarea, body select, body .common-password-toggle,
    body .select2-selection, body .input-helper:before { transition: none !important; }
}
/* Shared dashboard controls, including native dates upgraded on focus. */
body:is(.dashboard-layout, .company-portal) input.common-single-date-input:not(.select2-search__field):not(.form-control-plaintext),
body:is(.dashboard-layout, .company-portal) input[type="date"]:not(.select2-search__field):not(.form-control-plaintext) {
    height: 40px !important; min-height: 40px; padding: 8px 12px 8px 40px !important;
    border: 1px solid #e2e8f0; border-radius: 10px; background-color: #f8fafc;
    color: #475569; font-size: 12px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
    background-size: 16px; background-position: 12px center; background-repeat: no-repeat;
}
body:is(.dashboard-layout, .company-portal) input.common-date-has-icon { background-image: none !important; }
.common-single-date-field { position: relative; }
body:is(.dashboard-layout, .company-portal) .common-single-date-field > :is(i, svg) { position: absolute; left: 12px; right: auto; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
body:is(.dashboard-layout, .company-portal) input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; }
body.company-portal .docs-date:has(.common-single-date-input) > :is(.input-group-append, .input-group-prepend) { display: none; }
.dashboard-clear-filters svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
