/**
 * Lom — Global design tokens, layout helpers, and theme variables
 * Loaded once from layouts/app.blade.php
 */

/* ── Clock-in modal tokens ── */
:root {
    --ci-radius: 14px;
    --ci-accent: #fb6340;
    --ci-border: #e8ecf1;
    --ci-muted: #64748b;
    --ci-text: #1e293b;
    --ci-bg-soft: #f8fafc;
    --ci-bar-idle: #475569;
}

/* ── Page background ── */
.main-container.bg-additional-grey {
    background-color: #ffffff !important;
}

/* ── FontAwesome alias compatibility ── */
.fa-thumb-tack:before {
    content: "\f08d";
}

/* ── Dashboard design tokens ── */
.emp-dashboard--modern {
    --dw-border: #e8ecf1;
    --dw-radius: 18px;
    --dw-text: #1e293b;
    --dw-muted: #64748b;
    --dw-accent: #fb6340;
    --dw-bg-soft: #f8fafc;
    --dw-surface: #ffffff;
    --dw-surface-hover: #fafbfc;
    --dw-tab-track: #f1f5f9;
    --dw-row-border: #f1f5f9;
    --dw-icon-size: 19px;
    --dw-icon-stroke: 1.75;
    --dw-icon-stroke-16: 1.167;
    --dw-page-inset-x: 16px;
    --dw-page-inset-top: 12px;
    background: #ffffff;
    padding-left: var(--dw-page-inset-x);
    padding-right: var(--dw-page-inset-x);
    padding-top: var(--dw-page-inset-top);
    padding-bottom: 1.5rem;
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Files manager design tokens ── */
.lom-files-manager {
    --lfm-border: #e8ecf1;
    --lfm-bg: #ffffff;
    --lfm-bg-soft: #f8fafc;
    --lfm-text: #1e293b;
    --lfm-muted: #64748b;
    --lfm-accent: #fb6340;
    --lfm-accent-hover: #e5532f;
    --lfm-folder: #f0ad4e;
    --lfm-radius: 16px;
    --lfm-radius-sm: 12px;
    --lfm-control-radius: 10px;
}

/* ── Case details design tokens ── */
.case-details-page {
    --cd-border: #e8ecf1;
    --cd-radius: 16px;
    --cd-text: #1e293b;
    --cd-muted: #64748b;
    --cd-bg: #f8fafc;
    --cd-surface: #ffffff;
    padding-top: 20px;
}

/* ── Dark theme — layout & token overrides ── */
body.dark-theme .main-container.bg-additional-grey {
    background-color: #0f172a !important;
}

body.dark-theme .emp-dashboard--modern {
    --dw-border: rgba(148, 163, 184, 0.22);
    --dw-text: #e2e8f0;
    --dw-muted: #94a3b8;
    --dw-bg-soft: #243044;
    --dw-surface: #1e293b;
    --dw-surface-hover: #243044;
    --dw-tab-track: #0f172a;
    --dw-row-border: rgba(148, 163, 184, 0.12);
    background: #0f172a;
}

/* ── Auth pages (login, register, forgot password) ── */
.lom-auth-body {
    --lom-auth-accent: var(--header_color, var(--ci-accent, #fb6340));
    --lom-auth-accent-soft: color-mix(in srgb, var(--lom-auth-accent) 10%, #eef6ff);
    --lom-auth-visual-bg: color-mix(in srgb, var(--lom-auth-accent) 8%, #ecfdf5);
    --lom-auth-bg: #ffffff;
    --lom-auth-surface: #ffffff;
    --lom-auth-text: var(--ci-text, #1e293b);
    --lom-auth-muted: var(--ci-muted, #94a3b8);
    --lom-auth-input-bg: #ffffff;
    --lom-auth-input-border: var(--ci-border, #e2e8f0);
    --lom-auth-input-radius: 12px;
    --lom-auth-visual-radius: 32px;
    --lom-auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
    margin: 0;
    min-height: 100vh;
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    background: var(--lom-auth-bg);
    color: var(--lom-auth-text);
    overflow-x: hidden;
}

.lom-auth-body .login_header { display: none !important; }

.lom-auth-body .login_section {
    min-height: auto;
    padding: 0 !important;
    background: transparent !important;
}

.lom-auth-body .login_section > .container,
.lom-auth-body .login_section > .container > .row,
.lom-auth-body .login_section > .container > .row > .col-md-12 {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.lom-auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    direction: ltr;
    width: 100%;
    max-width: 100%;
}

/* Slider gone (JS hid every broken slide) — collapse to one centered column */
.lom-auth-page:has(.lom-auth-visual-wrap[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
}

.lom-auth-page:has(.lom-auth-visual-wrap[hidden]) .lom-auth-main {
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.lom-auth-page:has(.lom-auth-visual-wrap[hidden]) .lom-auth-header {
    justify-content: center;
}

.lom-auth-visual-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 40px);
    background: var(--lom-auth-bg);
    animation: lomAuthFadeIn 0.7s var(--lom-auth-ease) both;
}

.lom-auth-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    max-height: calc(100vh - 80px);
    border-radius: var(--lom-auth-visual-radius);
    background: var(--lom-auth-visual-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: lomAuthScaleIn 0.8s var(--lom-auth-ease) 0.1s both;
}

.lom-auth-visual--image {
    background-size: cover;
    background-position: center;
}

.lom-auth-visual--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--lom-auth-visual-bg) 75%, transparent);
    border-radius: inherit;
}

.lom-auth-visual__slides {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lom-auth-visual__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s var(--lom-auth-ease), transform 0.6s var(--lom-auth-ease);
    pointer-events: none;
}

.lom-auth-visual__slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.lom-auth-visual__icon {
    width: min(220px, 55%);
    height: auto;
    filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--lom-auth-accent) 25%, transparent));
    animation: lomAuthFloat 5s ease-in-out infinite;
}

.lom-auth-visual__logo {
    max-width: min(240px, 60%);
    max-height: 120px;
    object-fit: contain;
}

.lom-auth-visual__quote {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
    color: color-mix(in srgb, var(--lom-auth-accent) 70%, #0f172a);
    max-width: 320px;
}

.lom-auth-visual__dots {
    display: flex;
    gap: 8px;
    padding-bottom: 28px;
    z-index: 1;
}

.lom-auth-visual__dots button {
    width: 28px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lom-auth-accent) 20%, #cbd5e1);
    cursor: pointer;
    transition: width 0.35s var(--lom-auth-ease), background 0.35s ease;
}

.lom-auth-visual__dots button.is-active {
    width: 40px;
    background: var(--lom-auth-accent);
}

.lom-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: var(--lom-auth-bg);
    direction: rtl;
    min-width: 0;
    box-sizing: border-box;
}

[dir="ltr"] .lom-auth-main {
    direction: ltr;
}

.lom-auth-main__inner {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    box-sizing: border-box;
    animation: lomAuthSlideUp 0.75s var(--lom-auth-ease) 0.15s both;
}

.lom-auth-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: clamp(28px, 5vh, 48px);
}

.lom-auth-header__logo {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.lom-auth-header__logo[hidden] {
    display: none !important;
}

.lom-auth-header__name[hidden] {
    display: none !important;
}

.lom-auth-visual__slide[hidden] {
    display: none !important;
}

.lom-auth-visual__dots button[hidden],
.lom-auth-visual-wrap[hidden] {
    display: none !important;
}

.lom-auth-header__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lom-auth-text);
    letter-spacing: -0.02em;
}

.lom-auth-card,
.lom-auth-body .login_box {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: inherit !important;
}

.lom-auth-form__title,
.lom-auth-body .login_box h3 {
    margin: 0 0 10px !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--lom-auth-text) !important;
    letter-spacing: -0.02em;
    text-align: start;
}

.lom-auth-form,
.lom-auth-body .login_box form {
    text-align: start;
}

.lom-auth-form__subtitle {
    margin: 0 0 32px;
    color: var(--lom-auth-muted);
    font-size: 0.925rem;
    line-height: 1.75;
    font-weight: 400;
    text-align: start;
}

.lom-auth-body .login_box p::before,
.lom-auth-body .login_box p::after {
    display: none !important;
    content: none !important;
}

.lom-auth-field {
    margin-bottom: 16px;
}

.lom-auth-field label.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lom-auth-input {
    display: flex;
    align-items: stretch;
    direction: rtl;
    height: 46px;
    background: var(--lom-auth-input-bg);
    border: 1px solid var(--lom-auth-input-border);
    border-radius: var(--lom-auth-input-radius);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[dir="ltr"] .lom-auth-input {
    direction: ltr;
}

.lom-auth-input:focus-within {
    border-color: color-mix(in srgb, var(--lom-auth-accent) 45%, var(--lom-auth-input-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lom-auth-accent) 8%, transparent);
}

.lom-auth-input__addon {
    flex-shrink: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    background: var(--lom-auth-input-bg);
    border-inline-start: 1px solid var(--lom-auth-input-border);
}

.lom-auth-input__addon .fa-asterisk {
    font-size: 11px;
}

.lom-auth-input .form-control,
.lom-auth-input .form-control.height-50 {
    flex: 1;
    min-width: 0;
    width: auto !important;
    height: 100% !important;
    max-height: 100%;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    line-height: 46px !important;
    color: var(--lom-auth-text) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: start;
    transition: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.lom-auth-input .form-control::placeholder {
    color: #94a3b8 !important;
}

.lom-auth-input .form-control:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

.lom-auth-input .form-control:-webkit-autofill,
.lom-auth-input .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.lom-auth-input__toggle {
    flex-shrink: 0;
    width: 40px;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s ease;
}

.lom-auth-input__toggle:hover {
    color: var(--lom-auth-accent);
    background: transparent;
}

.lom-auth-body .login_box .form-group:not(.lom-auth-field) {
    margin-bottom: 16px;
}

.lom-auth-body .login_box .form-group label:not(.lom-auth-toggle):not(.sr-only) {
    display: none;
}

.lom-auth-body .login_box .form-group .form-control,
.lom-auth-body .login_box .input-group .form-control {
    height: 100% !important;
    line-height: 46px !important;
}

.lom-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 24px;
    flex-wrap: wrap;
    direction: ltr;
}

.lom-auth-options .forgot_pswd {
    margin: 0 !important;
    order: 1;
}

.lom-auth-options .forgot_pswd a {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--lom-auth-muted) !important;
    text-decoration: none !important;
    direction: rtl;
}

.lom-auth-options .forgot_pswd a:hover {
    color: var(--lom-auth-accent) !important;
}

.lom-auth-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    order: 2;
    direction: ltr;
    flex-direction: row;
    flex-shrink: 0;
    position: relative;
}

.lom-auth-toggle__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lom-auth-muted);
    user-select: none;
    direction: rtl;
    order: 1;
}

.lom-auth-toggle__track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 999px;
    transition: background 0.3s ease;
    flex-shrink: 0;
    order: 2;
    direction: ltr;
    overflow: hidden;
}

.lom-auth-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--lom-auth-ease);
}

.lom-auth-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.lom-auth-toggle input:checked ~ .lom-auth-toggle__track {
    background: var(--lom-auth-accent);
}

.lom-auth-toggle input:checked ~ .lom-auth-toggle__track::after {
    transform: translateX(20px);
}

.lom-auth-body .login_box .btn-primary,
.lom-auth-body .login_box button.btn-primary,
.lom-auth-body .login_box #submit-login,
.lom-auth-body .login_box #submit-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    margin-top: 8px;
    padding: 0 14px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--lom-auth-input-radius) !important;
    background: var(--lom-auth-accent) !important;
    box-shadow: none !important;
    transition: transform 0.25s var(--lom-auth-ease), filter 0.25s ease, box-shadow 0.25s ease;
}

.lom-auth-body .login_box .btn-primary:hover:not(:disabled),
.lom-auth-body .login_box #submit-login:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--lom-auth-accent) 30%, transparent);
}

.lom-auth-body .login_box .btn-primary .fa-arrow-right {
    display: none;
}

.lom-auth-body .login_box .btn-secondary,
.lom-auth-body .login_box a.btn-secondary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 52px !important;
    margin-top: 12px !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    color: var(--lom-auth-text) !important;
    background: var(--lom-auth-input-bg) !important;
    border: none !important;
    border-radius: var(--lom-auth-input-radius) !important;
    text-decoration: none !important;
}

.lom-auth-body #captcha_container {
    margin-bottom: 16px;
    transform-origin: top right;
}

[dir="ltr"] .lom-auth-body #captcha_container {
    transform-origin: top left;
}

.lom-auth-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lom-auth-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    width: 100% !important;
    height: 52px !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    color: var(--lom-auth-text) !important;
    background: var(--lom-auth-input-bg) !important;
    border: none !important;
    border-radius: var(--lom-auth-input-radius) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lom-auth-social:hover {
    background: color-mix(in srgb, var(--lom-auth-accent) 8%, var(--lom-auth-input-bg)) !important;
    transform: translateY(-1px);
}

.lom-auth-social span {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.lom-auth-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
    color: var(--lom-auth-muted);
    font-size: 0.85rem;
}

.lom-auth-divider::before,
.lom-auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: #e2e8f0;
}

.lom-auth-divider::before { inset-inline-start: 0; }
.lom-auth-divider::after { inset-inline-end: 0; }

.lom-auth-legal {
    margin: 32px 0 0;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--lom-auth-muted);
    text-align: center;
}

.lom-auth-legal a {
    color: var(--lom-auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.lom-auth-legal a:hover {
    text-decoration: underline;
}

.lom-auth-lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.lom-auth-lang a.change-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem !important;
    color: var(--lom-auth-muted) !important;
    background: var(--lom-auth-input-bg);
    border: none;
    text-decoration: none !important;
}

.lom-auth-lang a.change-lang:hover {
    color: var(--lom-auth-accent) !important;
}

.lom-auth-back-link {
    text-align: center;
}

.lom-auth-back-link a {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--lom-auth-muted) !important;
    text-decoration: none !important;
}

.lom-auth-back-link a:hover {
    color: var(--lom-auth-accent) !important;
}

#notice-login,
#customer-rules {
    text-align: start;
    direction: rtl;
}

#notice-login h2 {
    font-size: 1.15rem;
    line-height: 1.8;
}

#customer-rules p::before,
#customer-rules p::after {
    display: none !important;
}

body.dark-theme.lom-auth-body {
    --lom-auth-bg: #0f172a;
    --lom-auth-text: #f1f5f9;
    --lom-auth-muted: #94a3b8;
    --lom-auth-input-bg: #1e293b;
    --lom-auth-input-border: #334155;
    --lom-auth-visual-bg: color-mix(in srgb, var(--lom-auth-accent) 12%, #1e293b);
}

body.dark-theme.lom-auth-body .lom-auth-input .form-control:focus {
    background: #334155 !important;
}

@keyframes lomAuthFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lomAuthScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lomAuthSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lomAuthFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 991.98px), (max-height: 700px) {
    .lom-auth-page {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }

    .lom-auth-visual-wrap {
        display: none !important;
    }

    .lom-auth-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 100vh;
        padding: 32px 20px;
        box-sizing: border-box !important;
        justify-content: center;
        align-items: center;
    }

    .lom-auth-main__inner {
        width: 100% !important;
        max-width: 420px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-inline: auto;
    }

    .lom-auth-header {
        margin-bottom: 28px;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .lom-auth-main {
        padding: 24px 16px;
    }

    .lom-auth-form__title,
    .lom-auth-body .login_box h3 {
        font-size: 1.45rem !important;
    }

    .lom-auth-options {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .lom-auth-options .forgot_pswd {
        flex: 1;
        min-width: 0;
        text-align: start;
    }

    .lom-auth-options .forgot_pswd a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: inline-block !important;
    }

    .lom-auth-toggle {
        flex-shrink: 0;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lom-auth-visual-wrap,
    .lom-auth-visual,
    .lom-auth-main__inner,
    .lom-auth-visual__icon {
        animation: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   DataTable status-badge fix — global
   The PHP DataTables build badges as:
       <div class="mb-3 mt-3 f-12" style="line-height:0;">
           <span style="padding:5px 10px; border-radius:6px; ...">TEXT</span>
       </div>
   The `line-height:0` on the wrapper collapses the container when Arabic
   multi-word text like "أوشك على الانتهاء" wraps to a second line, causing
   visible overflow.  Fix: restore a sensible line-height and allow the badge
   to shrink-wrap its content.
───────────────────────────────────────────────────────────────────────────── */
.f-12[style*="line-height:0"],
.f-14[style*="line-height:0"],
.case-status-badge-wrap {
    line-height: normal !important;
    height: auto !important;
    display: block !important;
}

.f-12[style*="line-height:0"] > span,
.f-14[style*="line-height:0"] > span {
    display: inline-block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
    text-align: center !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-weight: 400 !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.case-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 4px 10px !important;
    min-height: 24px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Bootstrap-select status dropdowns must not clip badge text */
.bootstrap-select.minimal_dropdown .filter-option-inner-inner {
    overflow: visible !important;
    white-space: normal !important;
}

/* Bootstrap-select status dropdowns: compact, snugly fit without dead whitespace */
.bootstrap-select.minimal_dropdown .dropdown-menu,
.bootstrap-select.minimal_dropdown .dropdown-menu.inner,
.bootstrap-select.minimal_dropdown .inner {
    min-height: 0 !important;
    height: auto !important;
}

.bootstrap-select.minimal_dropdown .dropdown-menu li {
    margin: 0 !important;
}

.bootstrap-select.minimal_dropdown .dropdown-menu li a {
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
}

.bootstrap-select.minimal_dropdown .dropdown-menu .case-status-badge {
    white-space: nowrap !important;
}

/* Bootstrap-select dropdown items and toggle: keep status badges neatly centered */
.bootstrap-select .case-status-badge,
.bs-container .case-status-badge,
.bootstrap-select .dropdown-menu .case-status-badge,
.bs-container .dropdown-menu .case-status-badge,
.dropdown-menu li a .case-status-badge,
.bootstrap-select .filter-option-inner-inner .case-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 4px 10px !important;
    min-height: 26px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.bootstrap-select .dropdown-menu li a:has(.case-status-badge),
.bs-container .dropdown-menu li a:has(.case-status-badge) {
    display: flex !important;
    align-items: center !important;
}

.bootstrap-select .dropdown-menu li a:has(.case-status-badge) span.text,
.bs-container .dropdown-menu li a:has(.case-status-badge) span.text {
    display: inline-flex !important;
    align-items: center !important;
    line-height: normal !important;
}
