/* ELIX HSE Suite - base theme (Bootstrap 5), brand: ELIX Navy + Safety Green (see README, Brand) */
:root {
    --elix-navy: #0B2545;
    --elix-navy-2: #13315C;
    --elix-green: #22A35A;
    --elix-green-light: #4CD486;
    --elix-green-deep: #137A41;
    --elix-mist: #F4F6F9;
    --elix-primary: var(--elix-navy);
    --elix-primary-dark: var(--elix-navy-2);
    --elix-aside-bg: #0B2545;
    --elix-aside-text: #A9B8CC;
    --elix-aside-active: #13315C;
    --elix-body-bg: #F4F6F9;
    --bs-primary: #0B2545;
    --bs-primary-rgb: 11, 37, 69;
    --bs-primary-bg-subtle: #E8EEF6;
    --bs-primary-border-subtle: #C5D2E3;
    --bs-primary-text-emphasis: #0B2545;
    --bs-success: #22A35A;
    --bs-success-rgb: 34, 163, 90;
    --bs-success-bg-subtle: #E6F6EC;
    --bs-success-border-subtle: #B8E4C9;
    --bs-success-text-emphasis: #137A41;
    --bs-link-color: #137A41;
    --bs-link-color-rgb: 19, 122, 65;
    --bs-link-hover-color: #0E5C31;
    --bs-link-hover-color-rgb: 14, 92, 49;
    --bs-body-color: #0F172A;
    --bs-body-font-family: Poppins, Helvetica, Arial, sans-serif;
    --bs-body-font-size: .9rem;
    --bs-focus-ring-color: rgba(34, 163, 90, .28);
    --bs-secondary-color: #526075;
    --bs-border-color: #E2E8F0;
    --bs-border-radius: .625rem;
}
.text-muted, .text-body-secondary { color: #526075 !important; }
.form-control, .form-select { border-color: #CBD5E1; border-radius: .625rem; }
.form-control-sm, .form-select-sm { border-radius: .5rem; }
body { background: var(--elix-body-bg); color: #0F172A; }
.btn-primary { --bs-btn-bg: var(--elix-navy); --bs-btn-border-color: var(--elix-navy); --bs-btn-hover-bg: var(--elix-navy-2); --bs-btn-hover-border-color: var(--elix-navy-2);
    --bs-btn-active-bg: var(--elix-navy-2); --bs-btn-active-border-color: var(--elix-navy-2); --bs-btn-disabled-bg: var(--elix-navy); --bs-btn-disabled-border-color: var(--elix-navy); }
.btn-success { --bs-btn-bg: var(--elix-green); --bs-btn-border-color: var(--elix-green); --bs-btn-hover-bg: var(--elix-green-deep); --bs-btn-hover-border-color: var(--elix-green-deep);
    --bs-btn-active-bg: var(--elix-green-deep); --bs-btn-active-border-color: var(--elix-green-deep); }
.btn-outline-primary { --bs-btn-color: var(--elix-navy); --bs-btn-border-color: var(--elix-navy); --bs-btn-hover-bg: var(--elix-navy); --bs-btn-hover-border-color: var(--elix-navy); }
.btn-light-primary { background: #E8EEF6; color: var(--elix-navy); border: 0; }
.btn-light-primary:hover, .btn-light-primary:focus-visible { background: var(--elix-navy); color: #fff; }
.btn { border-radius: .55rem; }
.btn:focus-visible, a:focus-visible, .form-check-input:focus-visible { outline: 3px solid var(--elix-green); outline-offset: 2px; box-shadow: none; }
.form-control:focus, .form-select:focus { border-color: var(--elix-navy); box-shadow: 0 0 0 3px rgba(34, 163, 90, .28); }
.form-check-input:checked { background-color: var(--elix-navy); border-color: var(--elix-navy); }
.form-switch .form-check-input:checked { background-color: var(--elix-green); border-color: var(--elix-green); }
.text-primary { color: var(--elix-navy) !important; }
.bg-primary { background-color: var(--elix-navy) !important; }
a { color: var(--elix-green-deep); text-decoration: none; }
a:hover { color: #0E5C31; text-decoration: underline; }
a.btn:hover, .elix-menu-item:hover, .card:hover, a.card:hover, .dropdown-item:hover, .elix-brand a:hover { text-decoration: none; }
.nav-tabs .nav-link { color: #526075; }
.nav-tabs .nav-link.active { color: var(--elix-navy); font-weight: 600; border-bottom: 3px solid var(--elix-green); }
.list-group-item.active { background: var(--elix-navy); border-color: var(--elix-navy); }
.page-item.active .page-link, .dataTables_wrapper .pagination .active .page-link { background: var(--elix-navy); border-color: var(--elix-navy); color: #fff; }
.page-link { color: var(--elix-navy); }
.progress-bar { background-color: var(--elix-green); }
/* layout */
.elix-wrapper { display: flex; min-height: 100vh; }
.elix-aside { width: 260px; background: var(--elix-aside-bg); color: var(--elix-aside-text); flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; overflow-x: hidden; z-index: 1030; transition: transform .2s; }
.elix-aside { display: flex; flex-direction: column; }
.elix-brand { flex: none; }
.elix-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-width: 0; }
.elix-brand { height: 65px; display: flex; align-items: center; padding: 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.elix-brand { height: 72px; padding: 0 1.25rem; }
.elix-brand a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.elix-brand img { flex: none; }
.elix-lockup { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.elix-wordmark { font-size: 18px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.elix-wordmark .hse { color: #4CD486; }
.elix-wordmark .suite { font-size: 14px; font-weight: 300; color: #E6ECF3; }
.elix-strap { font-size: 7.5px; font-weight: 500; letter-spacing: .9px; line-height: 1.35; color: #A9B8CC; margin-top: 5px; text-transform: uppercase; }
.elix-menu { padding: .5rem 0 .75rem; flex: 1 0 auto; }
.elix-menu-section { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: #7D8FA9; padding: 1rem 1.5rem .4rem; }
.elix-menu-item { display: flex; align-items: center; gap: .75rem; padding: .45rem 1.5rem; color: var(--elix-aside-text); text-decoration: none; font-size: .92rem; }
.elix-menu.flat .elix-menu-item { padding-top: .55rem; padding-bottom: .55rem; }
/* side menu groups (v0.39) */
.elix-menu-search { flex: none; margin: .85rem 1rem .25rem; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border-radius: .5rem; padding: .4rem .7rem; color: #7D8FA9; }
.elix-menu-search:focus-within { background: rgba(255,255,255,.12); box-shadow: 0 0 0 2px var(--elix-green); }
.elix-menu-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font-size: .85rem; outline: none; }
.elix-menu-search input::placeholder { color: #7D8FA9; }
.elix-menu-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.elix-grp-h { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .5rem 1.5rem; border: 0; background: none; color: #DCE4EE; font-size: .92rem; font-weight: 500; text-align: left; }
.elix-grp-h i { font-size: 1.05rem; }
.elix-grp-h:hover { color: #fff; background: var(--elix-aside-active); }
.elix-grp-h:focus-visible { outline: 3px solid var(--elix-green); outline-offset: -3px; }
.elix-grp-chev { margin-left: auto; font-size: .75rem !important; color: #7D8FA9; transition: transform .15s; }
.elix-grp-badge + .elix-grp-chev { margin-left: .5rem; }
.elix-grp-h[aria-expanded="true"] .elix-grp-chev { transform: rotate(90deg); }
.elix-grp-h[aria-expanded="true"] .elix-grp-badge { display: none; }
.elix-grp-h[aria-expanded="true"] .elix-grp-badge + .elix-grp-chev { margin-left: auto; }
.elix-menu-item.elix-menu-sub { padding-left: 3.3rem; font-size: .88rem; padding-top: .38rem; padding-bottom: .38rem; }
.elix-menu-item.elix-menu-sub.active { padding-left: calc(3.3rem - 3px); }
.elix-menu-item.elix-menu-sub i { font-size: .95rem; }
.elix-menu-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 1rem; }
.elix-menu-empty { padding: .5rem 1.5rem; font-size: .85rem; color: #7D8FA9; }
.elix-menu-foot { position: sticky; bottom: 0; flex: none; display: flex; gap: .25rem; padding: .5rem .75rem; background: var(--elix-aside-bg); border-top: 1px solid rgba(255,255,255,.08); }
.elix-menu-foot .elix-menu-item { flex: 1 1 0; min-width: 0; justify-content: center; gap: .4rem; padding: .45rem .5rem; font-size: .8rem; border-radius: .5rem; }
.elix-menu-foot .elix-menu-item .elix-menu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elix-menu-foot .elix-menu-item.active { border-left: 0; padding-left: .5rem; }
@media (prefers-reduced-motion: reduce) { .elix-grp-chev { transition: none; } }
.elix-menu-item i { font-size: 1.05rem; }
.elix-menu-item .badge { white-space: nowrap; }
.elix-menu-item:hover { color: #fff; background: var(--elix-aside-active); }
.elix-menu-item.active { color: #fff; background: var(--elix-aside-active); border-left: 3px solid var(--elix-green); padding-left: calc(1.5rem - 3px); }
.elix-menu-item.active i { color: var(--elix-green-light); }
.elix-menu-item.disabled { opacity: .5; cursor: default; }
.elix-menu-item.disabled:hover { background: none; color: var(--elix-aside-text); }
.elix-header { height: 65px; background: #fff; display: flex; align-items: center; padding: 0 1.75rem; box-shadow: 0 1px 0 #E2E8F0; position: sticky; top: 0; z-index: 1020; }
.elix-page-title { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--elix-navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elix-content { padding: 1.75rem; flex: 1; }
.elix-footer { padding: 1rem 1.75rem; color: #64748B; font-size: .8rem; }
.elix-avatar { width: 34px; height: 34px; border-radius: .5rem; background: #E8EEF6; color: var(--elix-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
@media (max-width: 991.98px) {
    .elix-aside { transform: translateX(-100%); }
    .elix-aside.show { transform: none; }
    .elix-main { margin-left: 0; }
    .elix-header, .elix-content { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 575.98px) {
    .elix-header { gap: .25rem; }
    .elix-header > .ms-auto { gap: .5rem !important; }
    .elix-page-title { font-size: 1rem; }
    .stat-card .card-body { padding: .85rem; gap: .65rem !important; }
    .stat-card .stat-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .stat-card .fs-3 { font-size: 1.35rem !important; }
}

/* cards & tables (HILS style: primary header row) */
.card { border: 1px solid #E2E8F0; border-radius: 16px; }
.card.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04) !important; }
.card-header { background: #fff; border-bottom: 1px solid #EEF2F6; border-radius: 16px 16px 0 0 !important; min-height: 60px; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.table thead tr.bg-primary th { background: var(--elix-navy); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .02em; border-color: var(--elix-navy); white-space: nowrap; }
.table td { vertical-align: middle; }
.table-actions .btn { padding: .2rem .45rem; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: .65rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.form-label.required::after { content: " *"; color: #C2410C; }
.temp-password { font-family: Consolas, monospace; font-size: 1.3rem; letter-spacing: .08em; background: #E8EEF6; color: var(--elix-navy); padding: .5rem 1rem; border-radius: .5rem; display: inline-block; user-select: all; }

/* auth pages (login, setup, change password) - design "ELIX HSE Login" + "Site pass" card (Claude Design) */
.auth-body { margin: 0; background: #F4F6F9; font-family: Poppins, system-ui, sans-serif; color: #0F172A; }
.auth-page { min-height: 100vh; display: flex; flex-wrap: wrap; background: #F4F6F9; }
.auth-brand { flex: 1 1 480px; min-width: 0; background: #0B2545; color: #FFFFFF; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px 56px; box-sizing: border-box; }
.auth-watermark { position: absolute; right: -120px; bottom: -140px; width: 560px; height: 560px; opacity: .06; pointer-events: none; }
.auth-brand-top { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; position: relative; }
.auth-site { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22); color: #E6ECF3; font-size: 13px; font-weight: 500; text-decoration: none; }
.auth-site svg { width: 16px; height: 16px; flex: none; }
.auth-site .short { display: none; }
.auth-site:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #FFFFFF; }
.auth-site:focus-visible { outline: 3px solid #22A35A; outline-offset: 2px; }
.auth-logo { display: flex; align-items: center; gap: 20px; position: relative; }
.auth-logo svg { flex: none; }
.auth-wordmark { font-size: 38px; font-weight: 700; letter-spacing: .5px; line-height: 1; }
.auth-wordmark .hse { color: #4CD486; }
.auth-wordmark .suite { font-size: 28px; font-weight: 300; color: #E6ECF3; }
.auth-strap { font-size: 12px; font-weight: 500; letter-spacing: 3.6px; color: #A9B8CC; margin-top: 10px; text-transform: uppercase; line-height: 1; }
.auth-hero { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.auth-hero h1 { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; }
.auth-hero p { margin: 0; font-size: 16px; line-height: 1.7; color: #C9D4E3; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.auth-chips span { font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #E6ECF3; }
.auth-copy { position: relative; font-size: 12px; color: #A9B8CC; }
.auth-main { flex: 1 1 520px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; box-sizing: border-box; }
.auth-card-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }

/* the "site pass" (Option A artboard): lanyard, navy header with slot, form, tear-off line, footer */
.auth-lanyard { width: 64px; height: 120px; display: flex; justify-content: center; margin-bottom: -18px; position: relative; z-index: 0; }
.auth-lanyard span { width: 22px; height: 100%; background: #22A35A; border-radius: 0 0 4px 4px; }
.auth-card { width: 100%; background: #FFFFFF; border-radius: 22px; box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 24px 48px rgba(11,37,69,.14);
    overflow: hidden; position: relative; z-index: 1; }
.auth-pass-head { background: #0B2545; color: #FFFFFF; padding: 26px 32px 22px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.auth-slot { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 56px; height: 10px; border-radius: 999px; background: #F4F6F9; }
.auth-pass-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.auth-pass-row > div { display: flex; flex-direction: column; gap: 4px; }
.auth-pass-row svg { flex: none; width: 44px; height: 44px; }
.auth-pass-label { font-size: 11px; font-weight: 600; letter-spacing: 2.4px; color: #4CD486; text-transform: uppercase; }
.auth-pass-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.3px; color: #FFFFFF; line-height: normal; }
.auth-pass-head p { margin: 0; font-size: 13px; line-height: 1.6; color: #C9D4E3; }
.auth-pass-body { padding: 28px 32px 8px; display: flex; flex-direction: column; gap: 18px; }
.auth-pass-body .alert { border-radius: 12px; margin: 0; font-size: 13px; }
.auth-lang-row { display: flex; justify-content: flex-end; }
.auth-lang { display: inline-flex; padding: 3px; background: #EEF2F7; border-radius: 999px; }
.auth-lang a { min-height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: #526075; text-decoration: none; }
.auth-lang a.active { background: #FFFFFF; color: #0B2545; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.auth-tear { margin: 20px 0 0; border-top: 2px dashed #E2E8F0; position: relative; }
.auth-tear span { position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: #F4F6F9; }
.auth-tear .l { left: -12px; }
.auth-tear .r { right: -12px; }
.auth-pass-foot { padding: 18px 32px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 12px; line-height: 1.6; color: #475569; }
.auth-pass-foot p { margin: 0; font-size: 12px; line-height: 1.6; color: #475569; }
.auth-pass-foot a { font-weight: 500; }
.auth-pass-end { height: 24px; }
.auth-card a { color: #137A41; }
.auth-card a:hover { color: #0E5C31; }
.auth-card .auth-lang a { color: #526075; }
.auth-card .auth-lang a.active { color: #0B2545; }

/* fields: the bordered box holds the icon, the input and (password) the eye button */
.auth-form-fields, .auth-pass-body form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label, .auth-card .form-label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #526075; margin: 0; }
.auth-card .mb-3, .auth-card .mb-4 { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0 !important; }
.auth-input { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; box-sizing: border-box;
    border: 1px solid #CBD5E1; border-radius: 12px; background: #F8FAFC; }
.auth-input:has(.auth-pw-toggle) { padding-right: 4px; }
.auth-input > svg { width: 18px; height: 18px; flex: none; color: #64748B; }
.auth-input input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font-family: inherit; font-size: 15px; color: #0F172A; box-shadow: none; }
.auth-input input:focus { outline: none; }
.auth-input:focus-within { border-color: #0B2545; box-shadow: 0 0 0 3px rgba(34,163,90,.28); }
.auth-card .form-control { height: 52px; box-sizing: border-box; padding: 0 14px; font-family: inherit; font-size: 15px; color: #0F172A;
    background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 12px; }
.auth-card .form-control:focus { outline: none; background: #F8FAFC; border-color: #0B2545; box-shadow: 0 0 0 3px rgba(34,163,90,.28); }
.auth-input input::placeholder, .auth-card .form-control::placeholder { color: #94A3B8; }
.auth-pw-toggle { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: #475569; }
.auth-pw-toggle svg { width: 18px; height: 18px; }
.auth-card .form-text { font-size: 12px; color: #64748B; margin-top: 0; }
.auth-remember { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #334155; cursor: pointer; min-height: 44px; margin: 0; }
.auth-remember input { width: 18px; height: 18px; margin: 0; accent-color: #0B2545; }
.auth-submit, .auth-card .btn-primary { height: 52px; width: 100%; font-family: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF; background: #137A41;
    border: 0; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit:hover, .auth-card .btn-primary:hover { background: #0E5C31; color: #FFFFFF; }
.auth-submit:disabled { opacity: .75; cursor: progress; }
.auth-submit:focus-visible, .auth-card .btn-primary:focus-visible, .auth-pw-toggle:focus-visible, .auth-lang a:focus-visible { outline: 3px solid #22A35A; outline-offset: 2px; }
.auth-card .temp-password { background: #F1F5F9; color: #0B2545; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
/* tablets & phones: compact brand bar above the card */
@media (max-width: 991.98px) {
    .auth-page { align-content: flex-start; }
    .auth-brand { flex-basis: 100%; padding: 16px 20px; gap: 0; }
    .auth-hero, .auth-copy, .auth-watermark { display: none; }
    .auth-brand-top { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; }
    .auth-site { padding: 0 12px 0 8px; font-size: 12px; }
    .auth-logo { gap: 12px; }
    .auth-logo svg { width: 40px; height: 40px; }
    .auth-wordmark { font-size: 22px; }
    .auth-wordmark .suite { font-size: 16px; }
    .auth-strap { font-size: 9px; letter-spacing: 2.4px; margin-top: 6px; }
    .auth-main { padding: 0 16px 40px; align-items: flex-start; }
    .auth-main { padding-top: 0; }
    .auth-lanyard { height: 82px; }
    .auth-pass-head { padding: 24px 22px 20px; }
    .auth-pass-body { padding: 24px 22px 8px; }
    .auth-pass-foot { padding: 16px 22px 22px; }
    .auth-pass-head h2 { font-size: 23px; }
}
@media (max-width: 479.98px) {
    .auth-site .full { display: none; }
    .auth-site .short { display: inline; }
    .auth-logo { min-width: 0; }
}
@media (max-width: 419.98px) {
    .auth-site { width: 40px; padding: 0; justify-content: center; flex: none; }
    .auth-site .short { display: none; }
}/* attachments */
.elix-drop { border: 2px dashed #C5D2E3; border-radius: .65rem; padding: 1rem; text-align: center; background: #FAFBFD; }
.elix-drop.drag { border-color: var(--elix-green); background: #E6F6EC; }
.elix-thumb { position: relative; width: 96px; height: 96px; }
.elix-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; border: 1px solid #eee; }
.elix-thumb .att-del { position: absolute; top: 2px; right: 2px; padding: 0 .3rem; line-height: 1.2; }

/* notification bell */
.notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-item.unread { background: #E8EEF6; border-left: 3px solid var(--elix-green); }
.notif-bell { position: relative; }
.notif-bell .notif-count { position: absolute; top: -4px; right: -6px; font-size: .65rem; }

/* print: brand header on paper, no app chrome */
.elix-print-header { display: none; }
@media print {
    .elix-aside, .elix-header, .elix-footer, .btn, .dataTables_length, .dataTables_filter, .dataTables_paginate, #notifBell { display: none !important; }
    .elix-main { margin-left: 0 !important; }
    .elix-content { padding: 0 !important; }
    .elix-print-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0B2545; padding-bottom: 8px; margin-bottom: 16px; }
    .elix-print-lockup { display: flex; align-items: center; gap: 10px; line-height: 1; }
    .elix-print-lockup .w { font-size: 20px; font-weight: 700; letter-spacing: .5px; color: #0B2545; white-space: nowrap; }
    .elix-print-lockup .hse { color: #22A35A; }
    .elix-print-lockup .suite { font-size: 15px; font-weight: 300; }
    .elix-print-lockup .s { font-size: 8px; font-weight: 500; letter-spacing: 1.6px; color: #526075; margin-top: 5px; text-transform: uppercase; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: #fff; }
}

/* incident report (mobile first) */
.inc-step { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--elix-navy); margin: 4px 0 14px; }
.inc-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--elix-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.inc-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.inc-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 88px; padding: 10px; text-align: center;
    border: 1px solid #CBD5E1; border-radius: 12px; cursor: pointer; font-size: 13px; line-height: 1.25; background: #fff; color: #1E293B; }
.inc-type i { font-size: 1.5rem; color: #526075; }
.btn-check:checked + .inc-type { border-color: var(--elix-navy); background: #E8EEF6; box-shadow: 0 0 0 2px var(--elix-navy) inset; }
.btn-check:checked + .inc-type i { color: var(--elix-navy); }
.btn-check:focus-visible + .inc-type { outline: 3px solid var(--elix-green); outline-offset: 2px; }
.inc-sev .btn { padding: .6rem .25rem; }
.btn-check:checked + .sev-low { background: #E6F6EC; color: #137A41; border-color: #137A41; }
.btn-check:checked + .sev-medium { background: #E0F2FE; color: #075985; border-color: #075985; }
.btn-check:checked + .sev-high { background: #FEF3C7; color: #92400E; border-color: #92400E; }
.btn-check:checked + .sev-critical { background: #FEE2E2; color: #991B1B; border-color: #991B1B; }
@media (max-width: 575.98px) { .inc-type-grid { grid-template-columns: repeat(2, 1fr); } .inc-report .card-body { padding: 1rem; } }
.reg-alert { border-left: 4px solid #B91C1C; }
.reg-alert.ok { border-left-color: var(--elix-green); }
.inc-section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #526075; font-weight: 600; margin-bottom: .5rem; }

/* ---------- HIRARC: risk chips, heat map, editor ---------- */
.risk-chip { display: inline-flex; align-items: baseline; gap: .25rem; padding: .15rem .5rem; border-radius: .4rem; font-weight: 600; font-size: .85rem; white-space: nowrap; border: 1px solid transparent; }
.risk-chip small { font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .02em; }
.risk-low    { background: #E3F5EA; color: #137A41; border-color: #B7E3C7; }
.risk-medium { background: #FFF4D6; color: #8A5A00; border-color: #F5DC9A; }
.risk-high   { background: #FDE2E2; color: #B91C1C; border-color: #F7B9B9; }
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; max-width: 420px; }
.heatmap td, .heatmap th { text-align: center; font-size: .8rem; }
.heatmap td.cell { height: 44px; border-radius: .4rem; font-weight: 600; font-size: 1rem; cursor: default; }
.heatmap td.cell.empty { opacity: .45; font-weight: 400; }
.heatmap td.cell.risk-low { background: #CDEFD9; } .heatmap td.cell.risk-medium { background: #FCE7A8; } .heatmap td.cell.risk-high { background: #F8B4B4; }
.heatmap .axis { color: #5B6B82; font-weight: 600; }
.hz-table th { white-space: nowrap; font-size: .78rem; }
.hz-table td { font-size: .85rem; vertical-align: top; }
.hz-table .hz-num { width: 2rem; color: #5B6B82; }
.ctl-badge { font-size: .7rem; }
.lxs-pick .btn { min-width: 2.4rem; }

/* ---------- Permit to Work ---------- */
.ptw-chip { display: inline-block; padding: .15rem .55rem; border-radius: .4rem; font-size: .75rem; font-weight: 600; white-space: nowrap;
            color: var(--ptw); background: color-mix(in srgb, var(--ptw) 12%, #fff); border: 1px solid color-mix(in srgb, var(--ptw) 35%, #fff); }
.ptw-head { border-top: 6px solid var(--ptw, #13315C); }
.ptw-board-area { border-radius: 16px; }
.ptw-card { border: 1px solid #E2E8F0; border-left: 5px solid var(--ptw, #13315C); border-radius: .75rem; padding: .65rem .8rem; background: #fff; }
.ptw-card + .ptw-card { margin-top: .6rem; }
.ptw-card.clash { box-shadow: 0 0 0 2px #FCA5A5; }
.ptw-card.suspended { background: #FEF2F2; }
.ptw-ready li { list-style: none; padding: .2rem 0; }
.ptw-ready { padding-left: 0; margin: 0; }
.ptw-check .btn-check + .btn { min-width: 3.2rem; }
.gas-fail { color: #B91C1C; font-weight: 600; }
@media (max-width: 575.98px) { .ptw-check td:first-child { min-width: 12rem; } }

/* ---------- Inspections ---------- */
.insp-section { font-weight: 600; color: #0B2545; background: #F4F6F9; padding: .5rem 1rem; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; }
.insp-q { padding: .75rem 1rem; border-bottom: 1px solid #EEF1F5; }
.insp-q.finding { background: #FEF2F2; }
.insp-q .q-text { font-weight: 500; }
.insp-q .btn-group .btn { min-width: 3rem; }
.insp-q .q-critical { font-size: .7rem; }
.insp-act { border-left: 3px solid #DC2626; padding-left: .75rem; }
.score-big { font-size: 2.4rem; font-weight: 700; line-height: 1; }

/* ---------- Clients (System Admin) - Site Pass visual language ---------- */
.cl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cl-title { font-size: 26px; font-weight: 600; color: #0B2545; letter-spacing: -.3px; margin: 0; }
.cl-sub { margin: 4px 0 0; font-size: 14px; color: #526075; max-width: 640px; }
.cl-btn-add { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: #137A41; color: #FFFFFF; font-weight: 600; font-size: 14px; }
.cl-btn-add:hover, .cl-btn-add:focus-visible { background: #0E5C31; color: #FFFFFF; }
.cl-btn-add:disabled { background: #137A41; color: #FFFFFF; opacity: .75; }
.cl-btn-ghost { height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #334155; font-weight: 500; }
.cl-btn-ghost:hover { background: #F1F5F9; color: #0B2545; }
.cl-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(11,37,69,.06); height: 100%; }
.cl-tile-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.cl-tile-num { font-size: 26px; font-weight: 600; color: #0B2545; line-height: 1.1; }
.cl-tile-sep { color: #94A3B8; font-weight: 400; }
.cl-tile-label { font-size: 12px; color: #526075; margin-top: 2px; }
.cl-tone-navy .cl-tile-icon { background: #E6ECF3; color: #0B2545; }
.cl-tone-green .cl-tile-icon { background: #E3F5EA; color: #137A41; }
.cl-tone-blue .cl-tile-icon { background: #E0F2FE; color: #0369A1; }
.cl-tone-grey .cl-tile-icon { background: #F1F5F9; color: #64748B; }
.cl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-bottom: 20px; background: #FFFFFF; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(11,37,69,.06); }
.cl-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin: 0; border: 1px solid #CBD5E1; border-radius: 12px; background: #F8FAFC; color: #64748B; }
.cl-search:focus-within { border-color: #0B2545; box-shadow: 0 0 0 3px rgba(34,163,90,.28); background: #FFFFFF; }
.cl-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: #0F172A; }
.cl-seg { display: inline-flex; padding: 3px; background: #EEF2F7; border-radius: 999px; }
.cl-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #526075; font-size: 13px; font-weight: 600; }
.cl-seg button.active { background: #FFFFFF; color: #0B2545; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.cl-seg button:focus-visible { outline: 3px solid #22A35A; outline-offset: 1px; }
.cl-view button { min-width: 44px; font-size: 16px; }
.cl-select { width: auto; height: 44px; border-radius: 12px; border-color: #CBD5E1; background-color: #F8FAFC; font-size: 14px; }
.cl-card { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #FFFFFF; border-radius: 18px; border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(11,37,69,.07); transition: box-shadow .15s, border-color .15s; }
.cl-card:hover { border-color: #D7E0EC; box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 16px 32px rgba(11,37,69,.10); }
.cl-card.inactive { background: #FBFCFD; }
.cl-card.inactive .cl-avatar { filter: grayscale(.8); opacity: .7; }
.cl-card-top { display: flex; align-items: flex-start; gap: 14px; }
.cl-card-id { flex: 1; min-width: 0; }
.cl-card-name { font-size: 16px; font-weight: 600; color: #0B2545; line-height: 1.3; }
.cl-card-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.cl-avatar { width: 48px; height: 48px; flex: none; border-radius: 14px; color: #FFFFFF; font-weight: 600; font-size: 16px; letter-spacing: .5px;
    display: inline-flex; align-items: center; justify-content: center; }
.cl-avatar.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.cl-code { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #EEF2F7; color: #13315C; font-size: 11px; font-weight: 600; letter-spacing: .8px; font-family: ui-monospace, Consolas, monospace; }
.cl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cl-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cl-pill.on { background: #E3F5EA; color: #137A41; }
.cl-pill.off { background: #F1F5F9; color: #64748B; }
.cl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cl-badge.cloud { background: #E0F2FE; color: #0369A1; }
.cl-badge.onprem { background: #F3E8FF; color: #6B21A8; }
.cl-badge.platform { background: #0B2545; color: #FFFFFF; font-size: 11px; }
.cl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 12px 14px; background: #F8FAFC; border-radius: 12px; }
.cl-meta dt { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #64748B; margin-bottom: 2px; }
.cl-meta dd { margin: 0; font-size: 13px; color: #0F172A; overflow-wrap: anywhere; }
.cl-card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cl-stat { font-size: 14px; font-weight: 600; color: #0B2545; display: inline-flex; align-items: center; gap: 5px; }
.cl-stat i { color: #64748B; font-size: 14px; } .cl-stat small { font-weight: 400; color: #64748B; font-size: 12px; }
.cl-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed #E2E8F0; }
.cl-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; min-width: 36px; padding: 0 12px; border-radius: 10px;
    border: 1px solid #E2E8F0; background: #FFFFFF; color: #13315C; font-size: 13px; font-weight: 500; text-decoration: none; }
.cl-act:hover { background: #F1F5F9; border-color: #CBD5E1; color: #0B2545; }
.cl-act.danger { color: #B91C1C; margin-left: auto; } .cl-act.danger:hover { background: #FEF2F2; border-color: #FECACA; }
.cl-act.success { color: #137A41; margin-left: auto; } .cl-act.success:hover { background: #E3F5EA; border-color: #B7E3C7; }
.cl-act:focus-visible { outline: 3px solid #22A35A; outline-offset: 1px; }
.cl-row-actions { display: inline-flex; gap: 6px; } .cl-row-actions .cl-act { padding: 0; margin-left: 0; }
.cl-table-wrap { background: #FFFFFF; border-radius: 18px; padding: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(11,37,69,.07); }
.cl-table thead th { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #64748B; background: transparent; border-bottom: 1px solid #E2E8F0; padding: 12px; }
.cl-table td { padding: 12px; border-color: #EEF1F5; font-size: 14px; }
.cl-table tr.inactive td { background: #FBFCFD; color: #64748B; }
.cl-empty { text-align: center; padding: 56px 16px; background: #FFFFFF; border-radius: 18px; color: #334155; }
.cl-empty > i { font-size: 40px; color: #94A3B8; display: block; margin-bottom: 8px; }

/* client modal */
.cl-modal { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px rgba(11,37,69,.24); }
.cl-modal-head { display: flex; align-items: flex-start; gap: 16px; background: #0B2545; color: #FFFFFF; padding: 22px 26px; position: relative; }
.cl-modal-head .btn-close { margin-top: 4px; }
.cl-modal-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(255,255,255,.1); color: #4CD486; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.cl-modal-label { font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: #4CD486; }
.cl-modal-title { margin: 2px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.2px; color: #FFFFFF; }
.cl-modal-sub { margin: 4px 0 0; font-size: 13px; color: #C9D4E3; }
.cl-modal-body { padding: 24px 26px; background: #FFFFFF; }
.cl-sec { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px dashed #E2E8F0; }
.cl-sec.mb-0 { border-bottom: 0; padding-bottom: 0; }
.cl-sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cl-sec-head h6 { margin: 0; font-size: 15px; font-weight: 600; color: #0B2545; }
.cl-sec-head p { margin: 2px 0 0; font-size: 12px; color: #64748B; }
.cl-sec-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #E3F5EA; color: #137A41; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cl-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #526075; margin-bottom: 6px; }
.cl-label .req { color: #DC2626; }
.cl-input { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; box-sizing: border-box; border: 1px solid #CBD5E1; border-radius: 12px; background: #F8FAFC; }
.cl-input > i { color: #64748B; font-size: 17px; flex: none; }
.cl-input input, .cl-input select { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font-family: inherit; font-size: 15px; color: #0F172A; outline: none; }
.cl-input select { cursor: pointer; }
.cl-input input::placeholder { color: #94A3B8; }
.cl-input:focus-within { border-color: #0B2545; box-shadow: 0 0 0 3px rgba(34,163,90,.28); background: #FFFFFF; }
.cl-input.invalid { border-color: #DC2626; background: #FEF2F2; }
.cl-input.invalid:focus-within { box-shadow: 0 0 0 3px rgba(220,38,38,.2); }
.cl-help { font-size: 12px; color: #64748B; margin-top: 6px; }
.cl-err { font-size: 12px; color: #B91C1C; margin-top: 4px; min-height: 0; }
.cl-err:empty { display: none; }
.cl-choice { display: block; margin: 0; cursor: pointer; height: 100%; }
.cl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cl-choice-box { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px; border: 1.5px solid #CBD5E1; border-radius: 16px; background: #FFFFFF; position: relative; transition: border-color .15s, box-shadow .15s; }
.cl-choice-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #EEF2F7; color: #13315C; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.cl-choice-title { display: block; font-size: 14px; font-weight: 600; color: #0B2545; }
.cl-choice-desc { display: block; font-size: 12px; color: #64748B; margin-top: 2px; line-height: 1.5; }
.cl-choice-tick { position: absolute; top: 12px; right: 12px; color: #137A41; font-size: 18px; opacity: 0; }
.cl-choice input:checked + .cl-choice-box { border-color: #137A41; box-shadow: 0 0 0 3px rgba(34,163,90,.18); background: #F6FBF8; }
.cl-choice input:checked + .cl-choice-box .cl-choice-icon { background: #E3F5EA; color: #137A41; }
.cl-choice input:checked + .cl-choice-box .cl-choice-tick { opacity: 1; }
.cl-choice input:focus-visible + .cl-choice-box { outline: 3px solid #22A35A; outline-offset: 2px; }
.cl-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.cl-status .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.cl-status .form-check-input:checked { background-color: #137A41; border-color: #137A41; }
.cl-status .form-check-label { font-size: 13px; font-weight: 600; color: #0B2545; margin-left: 4px; }
.cl-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; background: #FFFFFF; border-top: 1px solid #E2E8F0; position: sticky; bottom: 0; }
@media (max-width: 575.98px) {
    .cl-head { align-items: stretch; } .cl-btn-add { justify-content: center; }
    .cl-head .cl-btn-add { width: 100%; }
    .cl-toolbar .cl-seg:not(.cl-view) { flex: 1; } .cl-toolbar .cl-seg:not(.cl-view) button { flex: 1; }
    .cl-select { flex: 1; }
    .cl-modal { border-radius: 0; }
    .cl-modal-head { padding: 18px 18px; } .cl-modal-body { padding: 20px 18px; } .cl-modal-foot { padding: 12px 18px; }
    .cl-modal-foot .btn { flex: 1; justify-content: center; }
    .cl-meta { grid-template-columns: 1fr; }
}
.cl-input.invalid ~ .cl-help { display: none; }
/* card actions: one line in EN and BM - equal columns for the labelled actions, icon button for activate / deactivate */
.cl-card-actions { display: grid; grid-template-columns: repeat(var(--cl-cols, 3), minmax(0, 1fr)) auto; gap: 6px; }
.cl-card-actions .cl-act { padding: 0 6px; gap: 5px; font-size: 12.5px; min-width: 0; }
.cl-card-actions .cl-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card-actions .cl-act.danger, .cl-card-actions .cl-act.success { margin-left: 0; width: 36px; padding: 0; grid-column: -2; }
.cl-card-actions { grid-template-columns: 36px repeat(var(--cl-cols, 2), minmax(0, 1fr)) 36px; }
.cl-card-actions .act-edit { padding: 0; width: 36px; }
.cl-card-actions .act-edit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Client logo: uploader, co-branding, avatars ---------- */
.logo-box { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1.5px dashed #CBD5E1; border-radius: 16px; background: #F8FAFC; transition: border-color .15s, background .15s; }
.logo-box.drag { border-color: #137A41; background: #F6FBF8; }
.logo-box.busy { opacity: .6; pointer-events: none; }
.logo-box:focus-visible { outline: 3px solid #22A35A; outline-offset: 2px; }
.logo-prev { width: 96px; height: 96px; flex: none; border-radius: 16px; background: #FFFFFF; border: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-prev span { width: 100%; height: 100%; border-radius: 12px; background: #0B2545; color: #FFFFFF; font-weight: 600; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.logo-text { min-width: 0; }
.logo-title { font-size: 14px; font-weight: 600; color: #0B2545; }
.logo-hint { font-size: 12px; color: #64748B; margin-top: 2px; line-height: 1.5; }
.logo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.logo-btns button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #13315C; font-size: 13px; font-weight: 500; }
.logo-btns button:hover { background: #F1F5F9; }
.logo-btns .logo-pick { background: #0B2545; border-color: #0B2545; color: #FFFFFF; }
.logo-btns .logo-pick:hover { background: #13315C; }
.logo-btns .logo-del { color: #B91C1C; }
.logo-err { font-size: 12px; color: #B91C1C; margin-top: 6px; }
.logo-err:empty { display: none; }
.cl-avatar.logo { background: #FFFFFF; border: 1px solid #E2E8F0; padding: 5px; }
.cl-avatar.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.elix-cobrand { margin: 14px 4px 0; padding: 8px 12px; background: #FFFFFF; border-radius: 10px; display: flex; align-items: center; justify-content: center; height: 48px; box-sizing: border-box; }
.elix-cobrand img { max-width: 100%; max-height: 32px; object-fit: contain; }
.elix-tenant-chip img { height: 18px; max-width: 60px; object-fit: contain; vertical-align: middle; margin: -2px 4px 0 0; }
.co-preview { margin-top: 4px; }
.co-preview-label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #526075; margin-bottom: 8px; }
.co-preview-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0B2545; border-radius: 14px; color: #FFFFFF; }
.co-preview-elix { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.co-preview-elix b { color: #4CD486; }
.co-preview-sep { width: 1px; height: 26px; background: rgba(255,255,255,.25); }
.co-preview-client { display: inline-flex; align-items: center; height: 36px; padding: 4px 10px; background: #FFFFFF; border-radius: 8px; color: #0B2545; font-size: 13px; font-weight: 600; }
.co-preview-client img { max-height: 28px; max-width: 140px; object-fit: contain; }
.co-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.co-details dt { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #64748B; margin-bottom: 3px; }
.co-details dd { margin: 0; font-size: 14px; color: #0F172A; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .logo-box { flex-direction: column; align-items: flex-start; } .co-details { grid-template-columns: 1fr; } }
/* sidebar co-brand: client logo on its own row under the ELIX lockup */
.elix-brand:has(.elix-cobrand) { height: auto; min-height: 72px; flex-wrap: wrap; align-content: center; padding-top: 14px; padding-bottom: 14px; }
.elix-brand:has(.elix-cobrand) > a { flex-basis: 100%; }
.elix-cobrand { flex-basis: 100%; margin: 12px 0 0; height: 56px; padding: 8px 14px; }
.elix-cobrand img { max-height: 40px; }

/* ---------- UAUC ---------- */
.ua-wrap { max-width: 820px; margin: 0 auto; }
.ua-card { background: #FFFFFF; border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(11,37,69,.07); }
.ua-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ua-type { margin: 0; cursor: pointer; }
.ua-type input { position: absolute; opacity: 0; pointer-events: none; }
.ua-type > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 16px 10px; border: 1.5px solid #CBD5E1; border-radius: 16px; background: #FFFFFF; transition: all .15s; }
.ua-type i { font-size: 28px; } .ua-type b { font-size: 14px; color: #0B2545; } .ua-type small { font-size: 11px; color: #64748B; line-height: 1.4; }
.ua-type-ua i { color: #DC2626; } .ua-type-uc i { color: #D97706; } .ua-type-safe i { color: #137A41; }
.ua-type-ua input:checked + span { border-color: #DC2626; background: #FEF2F2; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.ua-type-uc input:checked + span { border-color: #D97706; background: #FFFBEB; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.ua-type-safe input:checked + span { border-color: #137A41; background: #F0FAF4; box-shadow: 0 0 0 3px rgba(19,122,65,.15); }
.ua-type input:focus-visible + span, .ua-cat input:focus-visible + span, .ua-imm input:focus-visible + span { outline: 3px solid #22A35A; outline-offset: 2px; }
.ua-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ua-cat { margin: 0; cursor: pointer; } .ua-cat input { position: absolute; opacity: 0; pointer-events: none; }
.ua-cat span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 999px; background: #F8FAFC; font-size: 13px; color: #334155; }
.ua-cat input:checked + span { background: #0B2545; border-color: #0B2545; color: #FFFFFF; }
.ua-imm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ua-imm label { margin: 0; cursor: pointer; } .ua-imm input { position: absolute; opacity: 0; pointer-events: none; }
.ua-imm span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 10px; border: 1.5px solid #CBD5E1; border-radius: 14px; font-size: 13px; font-weight: 500; color: #334155; text-align: center; }
.ua-imm input:checked + span { border-color: #137A41; background: #F0FAF4; color: #0B2545; }
.ua-textarea { border-radius: 12px; border-color: #CBD5E1; background: #F8FAFC; font-size: 15px; }
.ua-seg { flex-wrap: wrap; border-radius: 16px; } .ua-seg button { min-height: 40px; }
.ua-send { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(to top, #F4F6F9 70%, rgba(244,246,249,0)); }
.ua-send .cl-btn-add { height: 54px; font-size: 16px; }
.ua-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ua-chip.ua-ua { background: #FEE2E2; color: #B91C1C; } .ua-chip.ua-uc { background: #FEF3C7; color: #92400E; } .ua-chip.ua-safe { background: #E3F5EA; color: #137A41; }
.ua-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ua-pyr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; }
.ua-pyr-row { width: 100%; display: flex; flex-direction: column; align-items: center; }
.ua-pyr-bar { width: var(--w); min-height: 34px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 700; font-size: 15px; border-radius: 8px; }
.ua-pyr-bar.lvl0 { background: #7F1D1D; } .ua-pyr-bar.lvl1 { background: #B91C1C; } .ua-pyr-bar.lvl2 { background: #EA580C; }
.ua-pyr-bar.lvl3 { background: #D97706; } .ua-pyr-bar.lvl4 { background: #13315C; } .ua-pyr-bar.lvl5 { background: #137A41; }
.ua-pyr-label { font-size: 11px; color: #526075; margin-top: 2px; }
@media (max-width: 575.98px) {
    .ua-types, .ua-imm { grid-template-columns: 1fr; }
    .ua-type > span { flex-direction: row; text-align: left; gap: 12px; padding: 12px 14px; }
    .ua-type small { display: none; }
    .ua-imm span { justify-content: flex-start; }
    .ua-meta { grid-template-columns: 1fr 1fr; }
    .ua-card { padding: 16px; }
}

/* UAUC view: stacked cards keep their own height; link buttons align like buttons */
.ua-view .cl-card { height: auto; }
a.cl-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ===== Home dashboard (db-*) ===== */
.db-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 32px; margin-bottom: 24px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(34,163,90,.35), transparent 45%), linear-gradient(120deg, #0B2545 0%, #12345E 60%, #0F3B57 100%); box-shadow: 0 12px 32px rgba(11,37,69,.18); }
.db-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.04); pointer-events: none; }
.db-hero-main { flex: 1 1 420px; min-width: 0; position: relative; z-index: 1; }
.db-hero-date { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9FB3CC; display: flex; align-items: center; gap: 8px; }
.db-hero-title { font-size: 28px; font-weight: 600; margin: 8px 0 4px; color: #fff; }
.db-hero-sub { color: #C9D6E5; font-size: 14px; } .db-hero-sub span { margin: 0 6px; color: #6F87A6; }
.db-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.db-qa { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .15s, transform .15s; }
.db-qa:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }
.db-qa-green { background: #22A35A; border-color: #22A35A; font-weight: 600; } .db-qa-green:hover { background: #1C8F4E; }
.db-qa-red { background: #DC2626; border-color: #DC2626; font-weight: 600; } .db-qa-red:hover { background: #C21F1F; }
.db-lti { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 12px; min-width: 200px; }
.db-lti-ring { width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #0E2C50 79%, transparent 80% 100%), conic-gradient(#22A35A 0 100%); box-shadow: 0 0 0 6px rgba(34,163,90,.15); }
.db-lti-num { font-size: 38px; font-weight: 700; line-height: 1; color: #fff; }
.db-lti-unit { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9FE3B9; margin-top: 4px; }
.db-lti-label { margin-top: 12px; font-weight: 600; font-size: 14px; }
.db-lti-hint { font-size: 11px; color: #9FB3CC; max-width: 200px; }

.db-kpi { display: flex; flex-direction: column; height: 100%; padding: 18px; background: #fff; border-radius: 18px; border: 1px solid #EDF1F6; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .15s, transform .15s, border-color .15s; }
a.db-kpi[href]:hover { transform: translateY(-2px); border-color: #D7E0EC; box-shadow: 0 12px 28px rgba(11,37,69,.10); }
.db-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.db-kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.db-kpi-flag { width: 10px; height: 10px; border-radius: 50%; background: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
.db-kpi-num { font-size: 30px; font-weight: 600; line-height: 1; color: #0B2545; } .db-kpi-num small { font-size: 16px; font-weight: 500; margin-left: 2px; color: #526075; }
.db-kpi-label { font-size: 13px; color: #334155; margin-top: 6px; font-weight: 500; }
.db-kpi-sub { font-size: 12px; color: #64748B; margin-top: auto; padding-top: 10px; }
.db-tone-red .db-kpi-icon { background: #FEE2E2; color: #B91C1C; }
.db-tone-amber .db-kpi-icon { background: #FEF3C7; color: #B45309; }
.db-tone-navy .db-kpi-icon { background: #E6ECF3; color: #0B2545; }
.db-tone-blue .db-kpi-icon { background: #E0F2FE; color: #0369A1; }
.db-tone-green .db-kpi-icon { background: #E3F5EA; color: #137A41; }
.db-tone-grey .db-kpi-icon { background: #F1F5F9; color: #475569; }

.db-card { background: #fff; border-radius: 20px; padding: 22px; border: 1px solid #EDF1F6; box-shadow: 0 1px 2px rgba(15,23,42,.04); display: flex; flex-direction: column; }
.db-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.db-card-head h6 { margin: 0; font-size: 16px; font-weight: 600; color: #0B2545; } .db-card-head p { margin: 2px 0 0; font-size: 12px; color: #64748B; }
.db-link { font-size: 13px; font-weight: 500; color: #137A41; text-decoration: none; white-space: nowrap; } .db-link:hover { text-decoration: underline; }
.db-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #FEE2E2; color: #B91C1C; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.db-chart { position: relative; flex: 1; min-height: 300px; }

.db-att { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
.db-att::-webkit-scrollbar { width: 6px; } .db-att::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; }
.db-att a { flex: none; }
.db-att a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #0F172A; background: #F8FAFC; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.db-att a:hover { background: #fff; border-color: #D7E0EC; }
.db-att-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.db-att-label { flex: 1; font-size: 13px; font-weight: 500; }
.db-att-n { font-weight: 700; font-size: 15px; }
.db-att-go { color: #94A3B8; font-size: 12px; }
.db-att-red .db-att-icon { background: #FEE2E2; color: #B91C1C; } .db-att-red .db-att-n { color: #B91C1C; }
.db-att-amber .db-att-icon { background: #FEF3C7; color: #B45309; } .db-att-amber .db-att-n { color: #B45309; }
.db-att-blue .db-att-icon { background: #E0F2FE; color: #0369A1; } .db-att-blue .db-att-n { color: #0369A1; }
.db-clear { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: left; color: #137A41; }
.db-clear i { font-size: 40px; } .db-clear b { display: block; color: #0B2545; } .db-clear span { font-size: 12px; color: #64748B; }

.db-donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.db-donut { position: relative; width: 150px; height: 150px; flex: none; }
.db-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.db-donut-c b { font-size: 28px; color: #0B2545; line-height: 1; } .db-donut-c span { font-size: 11px; color: #64748B; margin-top: 4px; }
.db-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; font-size: 13px; }
.db-legend li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #EDF1F6; } .db-legend li:last-child { border: 0; }
.db-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .db-legend b { margin-left: auto; color: #0B2545; }
.db-legend-red, .db-legend-red b { color: #B91C1C !important; }
.db-foot-stats { display: flex; margin-top: auto; padding-top: 16px; border-top: 1px solid #EDF1F6; }
.db-card > .db-donut-wrap { margin-bottom: 16px; }
.db-foot-stats div { flex: 1; text-align: center; } .db-foot-stats div + div { border-left: 1px solid #EDF1F6; }
.db-foot-stats b { display: block; font-size: 18px; color: #0B2545; } .db-foot-stats span { font-size: 11px; color: #64748B; }

.db-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.db-bars-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; } .db-bars-row b { color: #0B2545; }
.db-bars-track { height: 8px; border-radius: 4px; background: #F1F5F9; overflow: hidden; }
.db-bars-fill { height: 100%; border-radius: 4px; background: #64748B; }
.db-bar-near_miss { background: #94A3B8; } .db-bar-fac, .db-bar-mtc { background: #F59E0B; } .db-bar-lti, .db-bar-fatality { background: #B91C1C; }
.db-bar-property_damage { background: #0369A1; } .db-bar-environmental, .db-bar-env { background: #22A35A; }

.db-progress { height: 8px; border-radius: 4px; background: #EDF1F6; overflow: hidden; margin-bottom: 14px; } .db-progress div { height: 100%; background: linear-gradient(90deg, #137A41, #22A35A); border-radius: 4px; }
.db-setup { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.db-setup li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #EDF1F6; } .db-setup li:last-child { border: 0; }
.db-setup i { color: #CBD5E1; font-size: 16px; } .db-setup li.done i { color: #22A35A; } .db-setup li.done a { color: #64748B; text-decoration: line-through; }
.db-opt { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: #F1F5F9; color: #64748B; margin-left: auto; }
.db-mine { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.db-mine a { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: #F8FAFC; text-decoration: none; color: #0F172A; border: 1px solid transparent; }
.db-mine a:hover { border-color: #D7E0EC; background: #fff; }
.db-mine i { color: #137A41; font-size: 18px; } .db-mine b { font-size: 24px; color: #0B2545; margin-top: 6px; line-height: 1.1; } .db-mine b small { font-size: 14px; color: #64748B; font-weight: 500; }
.db-mine span { font-size: 12px; color: #64748B; }

.db-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.db-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; min-width: 0; }
.db-feed-av { width: 34px; height: 34px; border-radius: 50%; background: #E6ECF3; color: #0B2545; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.db-feed-body { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .db-feed-body a { color: #0B2545; font-weight: 500; }
.db-feed-act { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: #F1F5F9; color: #475569; margin: 0 4px; }
.db-act-created, .db-act-approved, .db-act-closed { background: #E3F5EA; color: #137A41; } .db-act-rejected, .db-act-deleted, .db-act-file_removed { background: #FEE2E2; color: #B91C1C; }
.db-act-submitted { background: #FEF3C7; color: #B45309; } .db-act-login { background: #E0F2FE; color: #0369A1; }
.db-feed-t { font-size: 12px; color: #94A3B8; white-space: nowrap; }
@media (max-width: 991.98px) { .db-feed { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .db-hero { padding: 22px 18px; } .db-hero-title { font-size: 22px; } .db-lti { width: 100%; flex-direction: row; gap: 14px; text-align: left; padding: 0; }
  .db-lti-ring { width: 92px; height: 92px; } .db-lti-num { font-size: 26px; } .db-lti-label { margin-top: 0; }
  .db-qa { flex: 1 1 auto; justify-content: center; } .db-kpi-num { font-size: 24px; } .db-card { padding: 18px; }
}
.db-mine { align-content: start; }
.db-lti-warn .db-lti-ring { background: radial-gradient(closest-side, #0E2C50 79%, transparent 80% 100%), conic-gradient(#F59E0B 0 100%); box-shadow: 0 0 0 6px rgba(245,158,11,.18); }
.db-lti-warn .db-lti-unit { color: #FCD34D; }

/* ===== Theme layer v0.8: Bootstrap components inside the app take the Site Pass / dashboard look ===== */
.elix-content { --th-navy: #0B2545; --th-green: #137A41; --th-green2: #22A35A; --th-line: #EDF1F6; --th-muted: #64748B; }
/* cards */
.elix-content .card { border: 1px solid var(--th-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04) !important; background: #fff; }
.elix-content .card.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.04) !important; }
.elix-content .card-header { background: transparent; border-bottom: 1px solid var(--th-line); border-radius: 20px 20px 0 0 !important; padding: 18px 22px; min-height: 64px; gap: 10px; }
.elix-content .card-header .card-title, .elix-content .card-header h6 { font-size: 16px; font-weight: 600 !important; color: var(--th-navy); }
.elix-content .card-header h6 > .bi, .elix-content .card-header .card-title > .bi { width: 30px; height: 30px; border-radius: 50%; background: #E3F5EA; color: var(--th-green) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin-right: 6px; vertical-align: middle; }
.elix-content .card-body { padding: 22px; }
.elix-content .card-body.p-0 { padding: 0 !important; }
.elix-content .card-footer { background: #FAFBFD; border-top: 1px solid var(--th-line); border-radius: 0 0 20px 20px !important; padding: 14px 22px; }
.elix-content .card:hover { border-color: var(--th-line); }
.elix-content a.card:hover { border-color: #D7E0EC; box-shadow: 0 12px 28px rgba(11,37,69,.10) !important; transform: translateY(-2px); }
.elix-content a.card { transition: transform .15s, box-shadow .15s; }
/* stat tiles (old markup) look like dashboard KPIs */
.elix-content .stat-card { border-radius: 18px; }
.elix-content .stat-card .card-body { padding: 18px 20px !important; gap: 14px !important; }
.elix-content .stat-card .stat-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
.elix-content .stat-card .fs-3 { font-size: 26px !important; font-weight: 600 !important; color: var(--th-navy); }
.elix-content .stat-card .text-muted.small { font-size: 12px; color: #526075 !important; }
.elix-content .bg-primary-subtle { background: #E6ECF3 !important; } .elix-content .text-primary { color: var(--th-navy) !important; }
.elix-content .bg-success-subtle { background: #E3F5EA !important; } .elix-content .text-success { color: var(--th-green) !important; }
.elix-content .bg-danger-subtle { background: #FEE2E2 !important; } .elix-content .bg-warning-subtle { background: #FEF3C7 !important; }
.elix-content .bg-info-subtle { background: #E0F2FE !important; } .elix-content .text-info { color: #0369A1 !important; } .elix-content .text-warning { color: #B45309 !important; }
/* buttons */
.elix-content .btn { border-radius: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.elix-content .btn:not(.btn-sm):not(.btn-lg):not(.btn-close):not(.btn-link):not(.dropdown-toggle-split) { min-height: 44px; padding-left: 18px; padding-right: 18px; }
.elix-content .btn-sm { border-radius: 10px; min-height: 34px; padding: 4px 12px; font-size: 13px; }
.elix-content .btn-primary { background: var(--th-green); border-color: var(--th-green); font-weight: 600; }
.elix-content .btn-primary:hover, .elix-content .btn-primary:focus-visible, .elix-content .btn-primary:active { background: #0F6536 !important; border-color: #0F6536 !important; }
.elix-content .btn-light-primary, .elix-content .btn-outline-secondary, .elix-content .btn-light, .elix-content .btn-outline-primary { background: #fff; color: #334155; border: 1px solid #CBD5E1; }
.elix-content .btn-light-primary:hover, .elix-content .btn-outline-secondary:hover, .elix-content .btn-light:hover, .elix-content .btn-outline-primary:hover { background: #F1F5F9; color: var(--th-navy); border-color: #B8C4D4; }
.elix-content .btn-success { background: var(--th-green2); border-color: var(--th-green2); font-weight: 600; }
.elix-content .btn-danger { background: #DC2626; border-color: #DC2626; font-weight: 600; }
.elix-content .btn-outline-danger { border-color: #FCA5A5; color: #B91C1C; background: #fff; } .elix-content .btn-outline-danger:hover { background: #FEF2F2; color: #991B1B; }
.elix-content .btn-warning { background: #F59E0B; border-color: #F59E0B; color: #fff; font-weight: 600; }
.elix-content .btn-group > .btn { border-radius: 0; } .elix-content .btn-group > .btn:first-child { border-radius: 10px 0 0 10px; } .elix-content .btn-group > .btn:last-child { border-radius: 0 10px 10px 0; }
/* forms */
.elix-content .form-control, .elix-content .form-select { border-radius: 12px; border-color: #CBD5E1; font-size: 14px; }
.elix-content .form-control:not(textarea):not(.form-control-sm), .elix-content .form-select:not(.form-select-sm):not([multiple]) { min-height: 44px; }
.elix-content .form-control-sm, .elix-content .form-select-sm { border-radius: 10px; min-height: 36px; font-size: 13px; }
.elix-content .form-control:focus, .elix-content .form-select:focus { border-color: var(--th-green2); box-shadow: 0 0 0 4px rgba(34,163,90,.15); }
.elix-content .form-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #475569; margin-bottom: 6px; }
.elix-content .form-check-input:checked { background-color: var(--th-green); border-color: var(--th-green); }
.elix-content .form-check-input:focus { box-shadow: 0 0 0 4px rgba(34,163,90,.15); border-color: var(--th-green2); }
.elix-content .input-group-text { border-radius: 12px; border-color: #CBD5E1; background: #F8FAFC; }
/* tables */
.elix-content .table { --bs-table-hover-bg: #F8FAFC; margin-bottom: 0; }
.elix-content .table > thead th { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--th-muted); background: transparent; border-bottom: 1px solid #E2E8F0; padding: 12px; white-space: nowrap; }
.elix-content .table > tbody td { border-color: #EEF1F5; padding: 12px; font-size: 14px; }
.elix-content .table-sm > tbody td { padding: 9px 12px; }
.elix-content .card-body.p-0 .table > :not(caption) > * > *:first-child { padding-left: 22px; }
.elix-content .card-body.p-0 .table > :not(caption) > * > *:last-child { padding-right: 22px; }
.elix-content .table-light, .elix-content .table > thead.table-light th { background: #F8FAFC !important; }
/* DataTables controls */
.elix-content .dataTables_wrapper { padding: 6px 4px; }
.elix-content .card-body.p-0 .dataTables_wrapper .row:first-child, .elix-content .card-body.p-0 .dataTables_wrapper .row:last-child { padding: 12px 22px; }
.elix-content .dataTables_filter input, .elix-content .dataTables_length select { border-radius: 10px !important; border: 1px solid #CBD5E1 !important; min-height: 38px; padding: 4px 12px; }
.elix-content .dataTables_filter input:focus { outline: 0; border-color: var(--th-green2) !important; box-shadow: 0 0 0 4px rgba(34,163,90,.15); }
.elix-content .dataTables_info { font-size: 13px; color: var(--th-muted); }
.elix-content .pagination { gap: 4px; } .elix-content .page-link { border-radius: 10px !important; border: 1px solid #E2E8F0; color: #334155; min-width: 36px; text-align: center; }
.elix-content .page-item.active .page-link { background: var(--th-navy); border-color: var(--th-navy); }
/* tabs as a segmented control */
.elix-content .nav-tabs { border-bottom: 0; gap: 4px; padding: 4px; background: #EEF2F7; border-radius: 999px; display: inline-flex; flex-wrap: wrap; }
.elix-content .nav-tabs .nav-link { border: 0 !important; border-radius: 999px; color: #526075; font-weight: 600; font-size: 13px; padding: 8px 16px; background: transparent; }
.elix-content .nav-tabs .nav-link.active { background: #fff; color: var(--th-navy); box-shadow: 0 1px 2px rgba(15,23,42,.08); border-bottom: 0 !important; }
.elix-content .card-header-tabs { margin: 0; }
.elix-content .nav-pills .nav-link.active { background: var(--th-navy); }
/* badges, alerts, list groups */
.elix-content .badge { font-weight: 600; border-radius: 999px; padding: .38em .75em; }
.elix-content .badge.text-bg-light { background: #F1F5F9 !important; color: #334155 !important; border-color: #E2E8F0 !important; }
.elix-content .alert { border-radius: 14px; border: 0; font-size: 14px; }
.elix-content .alert-info { background: #E0F2FE; color: #075985; } .elix-content .alert-warning { background: #FEF3C7; color: #92400E; }
.elix-content .alert-danger { background: #FEE2E2; color: #991B1B; } .elix-content .alert-success { background: #E3F5EA; color: #0F5F33; }
.elix-content .list-group-item { border-color: var(--th-line); }
.elix-content .list-group { border-radius: 14px; }
/* back links and page intro text */
.elix-content a.text-decoration-none > .bi-arrow-left { margin-right: 2px; }
/* modals (app-wide, also outside .elix-content) */
.modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px rgba(11,37,69,.24); }
.modal-header:not(.cl-modal-head) { background: #0B2545; color: #fff; padding: 20px 24px; border-bottom: 0; }
.modal-header:not(.cl-modal-head) .modal-title { font-size: 18px; font-weight: 600; color: #fff; }
.modal-header:not(.cl-modal-head) .modal-title .bi { color: #4CD486; }
.modal-header:not(.cl-modal-head) .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid #E2E8F0; gap: 8px; }
.modal-footer .btn { border-radius: 12px; min-height: 44px; padding: 0 18px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.modal-footer .btn-primary, .modal .btn-primary { background: #137A41; border-color: #137A41; font-weight: 600; }
.modal .form-control, .modal .form-select { border-radius: 12px; border-color: #CBD5E1; }
.modal .form-control:not(textarea):not(.form-control-sm), .modal .form-select:not(.form-select-sm):not([multiple]) { min-height: 44px; }
.modal .form-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #475569; }
.modal .form-control:focus, .modal .form-select:focus { border-color: #22A35A; box-shadow: 0 0 0 4px rgba(34,163,90,.15); }
/* standard page header used on every list page */
.elix-content .cl-head .cl-sub:empty { display: none; }
.elix-content .cl-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.elix-content .cl-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #137A41; text-decoration: none; margin-bottom: 6px; }
.elix-content .cl-back:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .elix-content .card-header { padding: 14px 16px; } .elix-content .card-body { padding: 16px; }
  .elix-content .cl-head-actions { width: 100%; } .elix-content .cl-head-actions > .btn, .elix-content .cl-head-actions > a.btn { flex: 1 1 auto; }
  .elix-content .nav-tabs { border-radius: 16px; }
}
@media print { .elix-content .card { border: 1px solid #ddd !important; } .elix-content .nav-tabs { background: none; } }
.cl-btn-red { background: #DC2626; } .cl-btn-red:hover { background: #C21F1F; color: #fff; }
.elix-content .cl-head .cl-select { min-width: 160px; }

/* theme layer fixes */
.elix-content .table thead tr.bg-primary { background: transparent !important; }
.elix-content .table thead tr.bg-primary th { background: transparent !important; color: var(--th-muted) !important; font-size: 11px; letter-spacing: 1.2px; border-color: #E2E8F0; white-space: normal; }
.elix-content .table > thead th { white-space: normal; }
.elix-content .table { --bs-table-striped-bg: #FAFBFD; --bs-table-accent-bg: transparent; }
.elix-content .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #FAFBFD; }
.elix-content .dataTables_length select { padding-right: 30px !important; background-position: right 10px center; }
.cl-btn-ghost, .cl-btn-add { font-size: 14px; }
.elix-content .cl-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.elix-content table.dataTable.table-striped > tbody > tr.odd > *, .elix-content .table-striped > tbody > tr:nth-of-type(odd) > * { box-shadow: inset 0 0 0 9999px rgba(15,23,42,.018) !important; }
.elix-content table.dataTable > tbody > tr.selected > *, .elix-content .table-hover > tbody > tr:hover > * { box-shadow: inset 0 0 0 9999px rgba(11,37,69,.035) !important; }
.elix-content .table > tbody td { padding: 10px; }
.elix-content .table > thead th { padding: 10px; }
.elix-content .btn { font-size: 14px; }
.elix-content .btn-sm { font-size: 13px; }
.elix-content .btn-check:checked + .btn, .elix-content .btn-outline-primary.active, .elix-content .btn-outline-secondary.active { background: var(--th-navy) !important; border-color: var(--th-navy) !important; color: #fff !important; }
.elix-content .btn-check:checked + .btn-outline-success, .elix-content .btn-check:checked + .btn-success { background: var(--th-green) !important; border-color: var(--th-green) !important; }
.elix-content .btn-check:checked + .btn-outline-danger { background: #DC2626 !important; border-color: #DC2626 !important; }
/* Users page (us-*) */
.cl-tone-amber .cl-tile-icon { background: #FEF3C7; color: #B45309; }
a.cl-tile { transition: transform .15s, box-shadow .15s; border: 2px solid transparent; }
a.cl-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,37,69,.10); }
a.cl-tile.selected { border-color: #22A35A; }
.us-avatar { border-radius: 50%; }
.us-work { font-size: 13px; color: #526075; margin-top: 2px; }
.us-you { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #E3F5EA; color: #137A41; vertical-align: middle; }
.us-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.us-role { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.us-role.platform { background: #0B2545; color: #fff; } .us-role.admin { background: #EDE9FE; color: #5B21B6; }
.us-role.hse { background: #E3F5EA; color: #137A41; } .us-role.user { background: #EEF2F7; color: #334155; }
.us-flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.us-flag.red { background: #FEE2E2; color: #B91C1C; } .us-flag.amber { background: #FEF3C7; color: #B45309; }
.us-chipbar { margin: -8px 0 16px; }
.us-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: #0B2545; color: #fff; font-size: 13px; font-weight: 500; }
.us-chip button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.us-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-size: 13px; }
.us-modal-ini { font-size: 17px; font-weight: 700; color: #4CD486; }
.cl-meta dd a { color: #0B2545; }
/* ===== Page header as a navy banner (same look as the dashboard hero) ===== */
.elix-content .cl-head { position: relative; overflow: hidden; align-items: center; padding: 26px 30px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 88% 15%, rgba(34,163,90,.32), transparent 42%), linear-gradient(120deg, #0B2545 0%, #12345E 60%, #0F3B57 100%);
  box-shadow: 0 12px 32px rgba(11,37,69,.16); }
.elix-content .cl-head::after { content: ""; position: absolute; right: -50px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(255,255,255,.04); pointer-events: none; }
.elix-content .cl-head > * { position: relative; z-index: 1; }
.elix-content .cl-head .cl-title { color: #fff; }
.elix-content .cl-head .cl-sub { color: #C9D6E5; }
.elix-content .cl-head .cl-sub b, .elix-content .cl-head .cl-sub strong { color: #fff; }
.elix-content .cl-head .cl-back { color: #9FE3B9; }
.elix-content .cl-head .cl-back:hover { color: #fff; }
.elix-content .cl-head .cl-btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.elix-content .cl-head .cl-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.elix-content .cl-head .cl-btn-add { background: #22A35A; } .elix-content .cl-head .cl-btn-add:hover { background: #1C8F4E; }
.elix-content .cl-head .cl-btn-red { background: #DC2626; } .elix-content .cl-head .cl-btn-red:hover { background: #C21F1F; }
.elix-content .cl-head .cl-select, .elix-content .cl-head .form-select { background-color: rgba(255,255,255,.95); border-color: transparent; color: #0B2545; }
.elix-content .cl-head .badge.text-bg-light { background: rgba(255,255,255,.12) !important; color: #fff !important; border-color: rgba(255,255,255,.2) !important; }
.elix-content .cl-head .text-muted { color: #9FB3CC !important; }
.elix-content .cl-head a:not(.btn):not(.cl-back) { color: #9FE3B9; }
@media (max-width: 575.98px) { .elix-content .cl-head { padding: 20px 18px; border-radius: 18px; } }
@media print { .elix-content .cl-head { background: none; color: #000; box-shadow: none; padding: 0; } .elix-content .cl-head .cl-title { color: #0B2545; } .elix-content .cl-head .cl-sub { color: #334155; } }
/* Profile photo + profile page (pf-*) */
.elix-avatar.has-photo, .cl-avatar.has-photo { padding: 0; overflow: hidden; background: #E8EEF6; }
.elix-avatar.has-photo img, .cl-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elix-avatar.has-photo { border-radius: 50%; }
.pf-hero { align-items: center; }
.pf-id { display: flex; align-items: center; gap: 24px; flex: 1 1 480px; min-width: 0; }
.pf-photo { position: relative; flex: none; width: 120px; height: 120px; }
.pf-photo-img { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #22A35A, #137A41); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(255,255,255,.14), 0 10px 24px rgba(0,0,0,.25); }
.pf-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-img span { font-size: 46px; font-weight: 700; color: #fff; }
.pf-photo-btn { position: absolute; right: 2px; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0B2545; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); margin: 0; transition: transform .15s; }
.pf-photo-btn:hover { transform: scale(1.08); }
.pf-photo.busy .pf-photo-img { opacity: .55; }
.pf-photo.busy::after { content: ""; position: absolute; inset: 42px; border: 4px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: pfspin .8s linear infinite; }
@keyframes pfspin { to { transform: rotate(360deg); } }
.pf-who { min-width: 0; }
.pf-who .cl-title { font-size: 28px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: #E2EAF4; font-size: 12px; font-weight: 500; }
.pf-tag.pf-role { background: rgba(34,163,90,.22); border-color: rgba(76,212,134,.35); color: #B7F0CD; }
.pf-photo-err { margin: -12px 0 20px; padding: 10px 14px; border-radius: 12px; background: #FEE2E2; color: #991B1B; font-size: 14px; }
.cl-input.locked { background: #F1F5F9; } .cl-input.locked input { color: #526075; cursor: default; }
.pf-lock { color: #94A3B8 !important; font-size: 13px !important; }
.pf-facts { list-style: none; margin: 0; padding: 0; }
.pf-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #EDF1F6; } .pf-facts li:last-child { border: 0; }
.pf-facts i { width: 36px; height: 36px; border-radius: 10px; background: #F1F5F9; color: #0B2545; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pf-facts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #64748B; font-weight: 600; } .pf-facts b { font-size: 14px; color: #0F172A; font-weight: 500; }
.pf-mine { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-mine a { display: flex; flex-direction: column; padding: 16px; border-radius: 14px; background: #F8FAFC; text-decoration: none; color: #0F172A; border: 1px solid transparent; }
.pf-mine a:hover { border-color: #D7E0EC; background: #fff; }
.pf-mine i { color: #137A41; font-size: 20px; } .pf-mine b { font-size: 26px; color: #0B2545; margin-top: 6px; line-height: 1.1; } .pf-mine span { font-size: 12px; color: #64748B; }
@media (max-width: 575.98px) {
  .pf-id { flex-direction: column; text-align: center; gap: 14px; } .pf-tags { justify-content: center; }
  .pf-who .cl-title { font-size: 22px; }
}
/* ===== Qualifications & certificates (cp-*) ===== */
.pf-tabs { display: inline-flex; flex-wrap: wrap; }
.pf-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; }
.pf-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #0B2545; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.pf-tag.pf-warn { background: rgba(245,158,11,.22); border-color: rgba(252,211,77,.45); color: #FDE68A; text-decoration: none; }
.pf-photo-sm, .pf-photo-sm .pf-photo-img { width: 92px; height: 92px; } .pf-photo-sm .pf-photo-img span { font-size: 36px; }
.cp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.cp-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.cp-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: #fff; border: 1px solid #E2E8F0; }
.cp-count b { font-size: 15px; }
.cp-count.cp-valid b { color: #137A41; } .cp-count.cp-expiring b { color: #B45309; } .cp-count.cp-expired b { color: #B91C1C; } .cp-count.cp-pending b { color: #0369A1; } .cp-count.cp-rejected b { color: #64748B; }
.cp-card { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border-radius: 18px; border: 1px solid #EDF1F6; border-left: 5px solid #22A35A;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .15s; }
.cp-card:hover { box-shadow: 0 12px 28px rgba(11,37,69,.08); }
.cp-card.cp-expiring { border-left-color: #F59E0B; } .cp-card.cp-expired { border-left-color: #DC2626; background: #FFFBFB; }
.cp-card.cp-pending { border-left-color: #0EA5E9; } .cp-card.cp-rejected { border-left-color: #94A3B8; background: #FBFCFD; }
.cp-card-top { display: flex; align-items: flex-start; gap: 12px; }
.cp-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: #E6ECF3; color: #0B2545; }
.cp-ico.grp-DOSH { background: #E3F5EA; color: #137A41; } .cp-ico.grp-NIOSH { background: #FEF3C7; color: #B45309; } .cp-ico.grp-CIDB { background: #FFEDD5; color: #C2410C; }
.cp-ico.grp-ELEC { background: #FEF9C3; color: #A16207; } .cp-ico.grp-OFFSHORE { background: #E0F2FE; color: #0369A1; } .cp-ico.grp-DRIVING { background: #EDE9FE; color: #5B21B6; } .cp-ico.grp-EDU { background: #F1F5F9; color: #334155; }
.cp-id { flex: 1; min-width: 0; }
.cp-name { font-size: 15px; font-weight: 600; color: #0B2545; line-height: 1.3; }
.cp-sub { font-size: 12px; color: #64748B; margin-top: 2px; }
.cp-stat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: #0B2545; color: #fff; vertical-align: middle; }
.cp-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cp-pill.cp-valid { background: #E3F5EA; color: #137A41; } .cp-pill.cp-expiring { background: #FEF3C7; color: #B45309; } .cp-pill.cp-expired { background: #FEE2E2; color: #B91C1C; }
.cp-pill.cp-pending { background: #E0F2FE; color: #0369A1; } .cp-pill.cp-rejected { background: #F1F5F9; color: #475569; }
.cp-days { display: block; font-size: 11px; font-weight: 600; } .cp-days.cp-expiring { color: #B45309; } .cp-days.cp-expired { color: #B91C1C; } .cp-days.cp-valid { color: #64748B; font-weight: 400; }
.cp-cep { padding: 10px 12px; border-radius: 12px; background: #F8FAFC; }
.cp-cep-bar { height: 6px; border-radius: 3px; background: #E2E8F0; overflow: hidden; margin-top: 6px; } .cp-cep-bar div { height: 100%; background: #F59E0B; border-radius: 3px; } .cp-cep-bar div.ok { background: #22A35A; }
.cp-reason { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: #FEF2F2; color: #991B1B; }
.cp-rem { font-size: 13px; color: #475569; }
.cp-foot { font-size: 12px; color: #526075; margin-top: auto; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px dashed #E2E8F0; }
.cp-actions .cl-act.danger, .cp-actions .cl-act.success { margin-left: 0; }
.cp-actions .cl-act.cp-del { margin-left: auto; }
.cp-typeinfo { font-size: 12px; color: #526075; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cp-drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed #CBD5E1; border-radius: 16px; background: #F8FAFC; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.cp-drop:hover, .cp-drop.drag { border-color: #22A35A; background: #F0FBF4; }
.cp-drop.has-file { border-style: solid; border-color: #22A35A; background: #F0FBF4; }
.cp-drop > i { font-size: 28px; color: #137A41; } .cp-drop b { display: block; color: #0B2545; } .cp-drop small { display: block; color: #64748B; font-size: 12px; }
.cp-current { margin-top: 10px; font-size: 13px; }
.cp-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cp-flag { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 12px; cursor: pointer; margin: 0; }
.cp-flag .form-check-input { margin-top: 3px; flex: none; } .cp-flag b { display: block; font-size: 13px; color: #0B2545; } .cp-flag small { display: block; font-size: 12px; color: #64748B; }
.cp-req { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 8px; background: #EEF2F7; font-size: 12px; margin: 2px 0; } .cp-req b { color: #0B2545; }
.cp-ptw { list-style: none; margin: 0; padding: 0; }
.cp-ptw li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 22px; border-bottom: 1px solid #F1F5F9; font-size: 13px; } .cp-ptw li:last-child { border: 0; }
.cp-ptw li > i { font-size: 16px; margin-top: 1px; }
.cp-st-valid { color: #137A41; font-weight: 600; } .cp-st-manual { color: #0369A1; font-weight: 600; } .cp-st-missing, .cp-st-rejected { color: #B91C1C; font-weight: 600; }
.cp-st-expired { color: #B91C1C; font-weight: 600; } .cp-st-pending { color: #B45309; font-weight: 600; }
.cp-mini { display: inline-block; margin: 4px 4px 0 0; padding: 1px 7px; border-radius: 6px; font-size: 11px; background: #F1F5F9; }
.cl-tone-red .cl-tile-icon { background: #FEE2E2; color: #B91C1C; }
@media (max-width: 575.98px) { .cp-bar .cl-btn-add { width: 100%; justify-content: center; } .pf-tabs { width: 100%; } .pf-tabs button { flex: 1; justify-content: center; } }
.cl-card-actions .us-iconbtn { width: 36px; padding: 0; } .cl-card-actions .us-iconbtn span { display: none; }

/* Users page: change a staff member's photo */
.us-ava-wrap { position: relative; flex: none; display: inline-flex; }
.us-cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #0B2545; color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity .15s, transform .15s; cursor: pointer; }
.cl-card:hover .us-cam, .us-cam:focus-visible { opacity: 1; }
.us-cam:hover { transform: scale(1.1); background: #137A41; }
@media (hover: none) { .us-cam { opacity: 1; } }
.us-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: 14px; background: #F8FAFC; border: 1px solid #EDF1F6; }
.us-photo-prev { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; }
.us-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.us-photo-prev span { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; }
.us-photo-txt { flex: 1 1 200px; min-width: 0; } .us-photo-txt b { display: block; color: #0B2545; font-size: 14px; } .us-photo-txt small { color: #64748B; font-size: 12px; }
.us-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.us-modal-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
#mdlUserIcon { overflow: hidden; }
/* Modules per client */
.cl-badge.mods-all { background: #E3F5EA; color: #137A41; } .cl-badge.mods-part { background: #FEF3C7; color: #B45309; }
#secModules .cl-sec-head { align-items: center; }
.cl-mod .cl-choice-box { padding: 14px; }
.cl-mod input:not(:checked) + .cl-choice-box { background: #F8FAFC; } .cl-mod input:not(:checked) + .cl-choice-box .cl-choice-icon { filter: grayscale(1); opacity: .6; }
.co-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co-mod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #EDF1F6; background: #fff; }
.co-mod > i { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; background: #E3F5EA; color: #137A41; }
.co-mod b { display: block; font-size: 14px; color: #0B2545; } .co-mod span { font-size: 12px; color: #137A41; font-weight: 500; }
.co-mod.off { background: #F8FAFC; } .co-mod.off > i { background: #F1F5F9; color: #94A3B8; } .co-mod.off b { color: #64748B; } .co-mod.off span { color: #94A3B8; }
/* UAUC: Safe condition (SC) */
.ua-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .ua-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ua-type-sc i { color: #0F766E; }
.ua-type-sc input:checked + span { border-color: #0F766E; background: #EFFAF8; box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.ua-chip.ua-sc { background: #CCFBF1; color: #0F766E; }
/* Dashboard KPI cards: compact (icon left, number + label + one-line sub) */
.db-kpi.db-kpi-compact { flex-direction: row; align-items: center; gap: 12px; padding: 14px 14px; min-height: 0; }
.db-kpi-compact .db-kpi-icon { width: 40px; height: 40px; flex: none; font-size: 17px; }
.db-kpi-compact .db-kpi-body { min-width: 0; flex: 1; }
.db-kpi-compact .db-kpi-num { font-size: 22px; display: flex; align-items: center; gap: 6px; }
.db-kpi-compact .db-kpi-num small { font-size: 13px; }
.db-kpi-compact .db-kpi-label { font-size: 12px; margin-top: 3px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi-compact .db-kpi-sub { font-size: 11px; padding-top: 2px; margin-top: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi-compact .db-kpi-flag { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
@media (max-width: 575.98px) { .db-kpi.db-kpi-compact { padding: 12px; gap: 10px; } .db-kpi-compact .db-kpi-icon { width: 34px; height: 34px; font-size: 15px; } .db-kpi-compact .db-kpi-num { font-size: 19px; } }
/* KPI compact v2: icon beside the number, label and sub-line full width (no truncation) */
.db-kpi.db-kpi-compact { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 0; align-items: center; padding: 14px 16px; }
.db-kpi-compact .db-kpi-body { display: contents; }
.db-kpi-compact .db-kpi-icon { grid-row: 1; grid-column: 1; width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.db-kpi-compact .db-kpi-num { grid-row: 1; grid-column: 2; font-size: 22px; }
.db-kpi-compact .db-kpi-label { grid-row: 2; grid-column: 1 / -1; margin-top: 8px; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.db-kpi-compact .db-kpi-sub { grid-row: 3; grid-column: 1 / -1; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.db-kpi.db-kpi-compact { align-content: start; }
.db-kpi-compact .db-kpi-sub { margin-top: 2px; }

/* Banner decoration: faint ELIX logo instead of the ring */
.db-hero::after, .elix-content .cl-head::after {
  border: 0; border-radius: 0; background: url('../img/brand/mark-reversed.svg') no-repeat center / contain; opacity: .07;
  width: 230px; height: 230px; right: -24px; bottom: -46px; transform: rotate(-12deg);
}
.elix-content .cl-head::after { width: 200px; height: 200px; right: -18px; bottom: -40px; }
@media (max-width: 575.98px) { .db-hero::after, .elix-content .cl-head::after { width: 150px; height: 150px; right: -20px; bottom: -30px; } }
@media print { .db-hero::after, .elix-content .cl-head::after { display: none; } }
/* Banner logo v2: whole logo visible, vertically centred */
.db-hero::after, .elix-content .cl-head::after {
  top: 50%; bottom: auto; transform: translateY(-50%) rotate(-8deg); opacity: .10;
  height: 82%; width: auto; aspect-ratio: 1 / 1; max-height: 210px;
}
.elix-content .cl-head::after { right: 28px; }
.db-hero::after { right: 250px; max-height: 230px; }
.elix-content .cl-head:has(.cl-head-actions .btn)::after { right: 230px; }
@media (max-width: 991.98px) { .db-hero::after { right: 24px; } .elix-content .cl-head:has(.cl-head-actions .btn)::after { right: 24px; } }
@media (max-width: 575.98px) { .db-hero::after, .elix-content .cl-head::after { height: 120px; max-height: 120px; top: 70px; } }
/* Banner logo v3: bigger shield */
.db-hero::after, .elix-content .cl-head::after { height: 140%; max-height: 360px; }
.db-hero::after { max-height: 360px; right: 230px; }
@media (max-width: 575.98px) { .db-hero::after, .elix-content .cl-head::after { height: 190px; max-height: 190px; top: 80px; right: -30px; } }
/* Client page (cv-*) */
.cv-hero { align-items: center; }
.cv-id { flex: 1 1 520px; min-width: 0; }
.cv-who { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.cv-logo { width: 84px; height: 84px; flex: none; border-radius: 20px; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.cv-logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.cv-logo b { font-size: 28px; color: #0B2545; }
.cv-logo b i { font-size: 34px; color: #137A41; }
.cv-hero .pf-tags { margin-top: 10px; }
.cv-tabs { display: flex; flex-wrap: wrap; width: 100%; gap: 2px; }
.cv-tabs button { flex: 0 0 auto; }
.cv-soon { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 36px; font-size: 13px; font-weight: 600; color: #94A3B8; cursor: default; }
.cv-soon small { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: #E2E8F0; color: #64748B; }
.cv-tabs .cv-soon:first-of-type { margin-left: auto; }
.cv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.cv-facts dt { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #64748B; }
.cv-facts dd { margin: 2px 0 0; font-size: 14px; color: #0F172A; overflow-wrap: anywhere; }
.cv-facts .wide { grid-column: 1 / -1; }
.cv-feed { grid-template-columns: 1fr; }
.cv-placeholder { flex-direction: row; align-items: center; gap: 16px; border-style: dashed; border-color: #CBD5E1; background: #FAFBFD; }
.cv-placeholder > i { font-size: 28px; color: #94A3B8; } .cv-placeholder b { display: block; color: #334155; } .cv-placeholder span { font-size: 13px; color: #64748B; }
.cv-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; background: rgba(255,255,255,.96);
  border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 10px 28px rgba(11,37,69,.12); backdrop-filter: blur(6px); }
@media (max-width: 575.98px) { .cv-who { gap: 12px; } .cv-logo { width: 60px; height: 60px; border-radius: 14px; } .cv-facts { grid-template-columns: 1fr; } .cv-tabs .cv-soon { display: none; } .cv-savebar .btn { flex: 1; } }
.elix-content .cl-head .cv-deact i { color: #FCD34D; }
.cv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cv-tabs::-webkit-scrollbar { display: none; }
.cv-tabs button, .cv-soon { white-space: nowrap; }

@media (max-width: 575.98px) { .cv-hero .pf-tags { justify-content: flex-start; } .cv-who { align-items: flex-start; } .cv-hero .cl-title { font-size: 22px; } }

/* Client contacts */
.cv-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-role { margin: 0; cursor: pointer; } .cv-role input { position: absolute; opacity: 0; }
.cv-role span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #CBD5E1; font-size: 13px; font-weight: 500; color: #334155; background: #fff; }
.cv-role input:checked + span { border-color: #137A41; background: #E3F5EA; color: #0F5F33; font-weight: 600; }
.cv-role input:focus-visible + span { outline: 3px solid #22A35A; outline-offset: 1px; }
.cv-crole { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: #EEF2F7; color: #13315C; font-size: 12px; font-weight: 600; }
.cv-primary { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 600; }
.cv-lines { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: #F8FAFC; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cv-lines i { color: #64748B; margin-right: 8px; } .cv-lines a { color: #0B2545; overflow-wrap: anywhere; }
.cv-prim { display: flex; gap: 12px; align-items: flex-start; } .cv-prim a { color: #0B2545; }
.cl-meta .cv-pc { grid-column: 1 / -1; }
/* Packages and billing */
.pk-card { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #fff; border-radius: 20px; border: 1px solid #EDF1F6; border-top: 6px solid #0B2545; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.pk-card.pk-green { border-top-color: #22A35A; } .pk-card.pk-gold { border-top-color: #D97706; } .pk-card.inactive { opacity: .6; }
.pk-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pk-name { font-size: 20px; font-weight: 700; color: #0B2545; } .pk-tag { font-size: 13px; color: #64748B; margin-top: 2px; }
.pk-clients { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EEF2F7; color: #13315C; }
.pk-price b { font-size: 30px; color: #0B2545; } .pk-price span { font-size: 14px; color: #64748B; margin-left: 4px; }
.pk-year { font-size: 13px; color: #137A41; font-weight: 500; margin-top: -10px; }
.pk-limits { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: #F8FAFC; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pk-limits i { color: #137A41; margin-right: 8px; }
.pk-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-mod { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: #E3F5EA; color: #0F5F33; font-weight: 500; } .pk-mod.off { background: #F1F5F9; color: #94A3B8; text-decoration: line-through; }
.pk-foot { margin-top: auto; }
.cv-rm { font-size: 13px; font-weight: 600; color: #64748B; }
.cl-badge.pk-chip { background: #0B2545; color: #fff; } .cl-badge.pk-none { background: #F1F5F9; color: #64748B; }
.pf-tag.pk-tagpill { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.cv-usage { margin-bottom: 14px; } .cv-usage:last-child { margin-bottom: 0; }
.cp-cep-bar div.cv-full { background: #DC2626; }
.co-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.co-plan > div { padding: 12px 14px; border-radius: 12px; background: #F8FAFC; }
.co-plan span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #64748B; }
.co-plan b { display: block; font-size: 18px; color: #0B2545; margin-top: 2px; } .co-plan small { color: #64748B; }
/* user details page */
.us-name { color: inherit; text-decoration: none; } .us-name:hover { color: #137A41; text-decoration: underline; }
.uv-hero .pf-who .cl-back { margin-bottom: 6px; }
.uv-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0; border-bottom: 1px solid #EEF2F7; }
.uv-list li:last-child { border-bottom: 0; }
.uv-list a { color: #0B2545; text-decoration: none; font-size: 14px; } .uv-list a:hover { color: #137A41; }
.uv-meta { font-size: 12px; color: #64748B; }
.cv-facts.uv-one { grid-template-columns: 1fr; }@media (max-width: 767.98px) { .uv-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .uv-tabs::-webkit-scrollbar { display: none; } .uv-tabs button { flex: 0 0 auto; white-space: nowrap; } }

/* incident workflow pack chips (v0.13.1) */
.pk-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #EEF2F7; padding: 2px 10px; font-size: .8rem; margin: 2px; }
.pk-chip button { border: 0; background: none; padding: 0; line-height: 1; color: #64748B; }


/* ===== Support tickets (v0.19): Help panel, priority / time-left chips, conversation ===== */
.sp-help-btn { width: 32px; height: 31px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; }
.sp-help { width: 380px !important; max-width: 100%; }
.sp-help-head { background: #0B2545; color: #fff; align-items: flex-start; }
.sp-help-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #9FE3B9; }
.sp-help-h { font-size: 13px; font-weight: 600; color: #0B2545; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.sp-faq-soon { font-size: 12px; color: #64748B; padding: 10px 12px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 10px; margin-top: 8px; }
.sp-contact { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 8px; color: #0F172A; text-decoration: none; }
a.sp-contact:hover { background: #F1F5F9; color: #0B2545; }
.sp-contact > i { font-size: 20px; color: #137A41; width: 24px; text-align: center; }
.sp-contact b { display: block; font-size: 12px; color: #64748B; font-weight: 500; }
.sp-contact span { font-size: 14px; font-weight: 600; }
.sp-pri { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.sp-p1 { background: #DC2626; color: #fff; } .sp-p2 { background: #F59E0B; color: #fff; } .sp-p3 { background: #DBEAFE; color: #1E40AF; } .sp-p4 { background: #E2E8F0; color: #475569; }
.sp-sla { min-width: 150px; } .sp-sla.compact { min-width: 120px; }
.sp-sla-txt { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; } .sp-sla-txt span { color: #64748B; }
.sp-sla-bar { height: 5px; border-radius: 3px; background: #E2E8F0; margin-top: 4px; overflow: hidden; } .sp-sla-bar i { display: block; height: 100%; border-radius: 3px; }
.sp-sla-green .sp-sla-bar i { background: #22A35A; } .sp-sla-amber .sp-sla-bar i { background: #F59E0B; } .sp-sla-red .sp-sla-bar i { background: #DC2626; }
.sp-sla-amber b { color: #B45309; } .sp-sla-red b { color: #DC2626; }
.sp-stop { color: #DC2626; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp-thread { display: flex; flex-direction: column; gap: 12px; }
.sp-msg { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 16px; max-width: 92%; }
.sp-msg-client { align-self: flex-start; }
.sp-msg-staff { align-self: flex-end; background: #F0F7FF; border-color: #CFE2FA; }
.sp-msg-note { align-self: flex-end; background: #FFF8DB; border-color: #F5E08A; }
.sp-msg-first { max-width: 100%; align-self: stretch; }
.sp-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.sp-msg-time { margin-left: auto; color: #64748B; font-size: 12px; }
.sp-msg-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #EEF2F7; color: #475569; }
.sp-tag-note { background: #FDE68A; color: #78350F; } .sp-tag-elix { background: #DCFCE7; color: #137A41; }
.sp-msg-subj { font-weight: 600; color: #0B2545; margin-bottom: 4px; }
.sp-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: #0F172A; }
.sp-ava { width: 26px; height: 26px; border-radius: 50%; background: #0B2545; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.sp-msg-staff .sp-ava { background: #137A41; } .sp-msg-note .sp-ava { background: #B45309; }
.sp-sys { text-align: center; font-size: 12px; color: #64748B; } .sp-sys span { background: #F1F5F9; border-radius: 999px; padding: 3px 12px; }
.sp-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sp-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; font-size: 13px; color: #0B2545; text-decoration: none; }
.sp-file small { color: #64748B; } .sp-img { padding: 0; overflow: hidden; } .sp-img img { width: 84px; height: 84px; object-fit: cover; display: block; }
.sp-pick { display: inline-flex; align-items: center; gap: 6px; background: #EEF2F7; border-radius: 999px; padding: 3px 6px 3px 12px; font-size: 12px; margin: 4px 4px 0 0; }
.sp-pick a { color: #64748B; } .sp-pick small { color: #64748B; }
.sp-compose { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 14px; }
.sp-compose.sp-note-mode { background: #FFFBEA; border-color: #F5E08A; }
.sp-stars { display: inline-flex; gap: 4px; } .sp-stars button { border: 0; background: none; font-size: 28px; color: #CBD5E1; padding: 0 2px; line-height: 1; }
.sp-stars button.on { color: #F59E0B; }
.sp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sp-topic { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 12px; cursor: pointer; background: #fff; font-size: 14px; font-weight: 500; margin: 0; }
.sp-topic i { font-size: 18px; color: #137A41; } .sp-topic input { display: none; }
.sp-topic:has(input:checked) { border-color: #137A41; box-shadow: 0 0 0 3px rgba(34,163,90,.2); background: #F0FBF4; }
.sp-ack { white-space: pre-wrap; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px; font-size: 14px; }
.sp-row-open { cursor: pointer; }
.sp-bars { display: grid; gap: 12px; } .sp-bar-txt { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; } .sp-bar-txt b { color: #0B2545; }

/* ---------- Sales module (v0.22): pipeline, commission ledger, Sales portal ---------- */
.sm-stage { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sm-stage.sm-new { background: #E0F2FE; color: #0369A1; } .sm-stage.sm-contacted { background: #E6ECF3; color: #0B2545; }
.sm-stage.sm-demo { background: #FEF3C7; color: #B45309; } .sm-stage.sm-trial { background: #EDE9FE; color: #6D28D9; }
.sm-stage.sm-won { background: #E3F5EA; color: #137A41; } .sm-stage.sm-lost { background: #F1F5F9; color: #64748B; }
.sm-stages .sm-n { font-weight: 400; color: #94A3B8; }
.cl-pill.sm-approved { background: #E0F2FE; color: #0369A1; }
.sm-act-box { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; }
.sm-acts { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; }
.sm-acts li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF2F7; }
.sm-acts li > i { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #E6ECF3; color: #0B2545; display: inline-flex; align-items: center; justify-content: center; }
.sm-act-body { white-space: pre-wrap; font-size: 13px; color: #334155; }
.sm-msg { white-space: pre-wrap; background: #F8FAFC; border-left: 3px solid #22A35A; padding: 8px 12px; border-radius: 6px; color: #334155; }
.sm-tot { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; } .sm-tot b { font-size: 15px; color: #0B2545; }
.sm-hero-code { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 6px 12px; font-weight: 600; letter-spacing: .04em; }
.sm-link { display: flex; gap: 8px; align-items: center; } .sm-link input { font-size: 13px; }
.sm-codes .sm-code { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; background: #fff; height: 100%; }
@media (max-width: 575.98px) { .sm-stages { overflow-x: auto; flex-wrap: nowrap !important; max-width: 100%; } .sm-stages button { white-space: nowrap; } }
.sm-kpi .cl-tile { padding: 16px; } .sm-kpi .cl-tile-num { font-size: 22px; white-space: nowrap; }
@media (max-width: 575.98px) { .sm-kpi .cl-tile { gap: 10px; padding: 14px; } .sm-kpi .cl-tile-num { font-size: 17px; } .sm-kpi .cl-tile-icon { width: 36px; height: 36px; font-size: 16px; } #smTabs, #spTabs { flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%; } #smTabs button, #spTabs button { white-space: nowrap; } }

/* HIRARC v0.23: step > hazard > event table, likelihood helper, controls editor */
.hz-tree .hz-step td { background: #E8EEF6; border-top: 2px solid #13315C; padding-top: .45rem; padding-bottom: .45rem; }
.hz-tree .hz-step-no { background: #13315C; color: #fff; border-radius: .35rem; padding: .1rem .5rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.hz-tree .hz-step-name { font-weight: 600; color: #0B2545; }
.hz-tree .hz-hazard td { background: #F6F8FB; }
.hz-tree .hz-hazard .hz-num, .hz-tree .hz-event .hz-num { white-space: nowrap; font-size: .75rem; }
.hz-tree .hz-cat { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; font-weight: 500; font-size: .7rem; }
.hz-tree .hz-cons { color: #526075; margin-top: .15rem; }
.hz-tree .hz-why { font-size: .78rem; color: #334155; min-width: 11rem; max-width: 16rem; }
.hz-tree .hz-why-reason { margin-top: .25rem; color: #8A5A00; }
.hz-tree .hz-ev-h { min-width: 12rem; } .hz-tree .hz-ctl-h { min-width: 15rem; }
.hz-tree .hz-arrow { color: #94A3B8; text-align: center; vertical-align: middle; width: 1.5rem; }
.hz-tree td.rmn { text-align: center; vertical-align: middle; min-width: 4.2rem; line-height: 1.1; }
.hz-tree td.rmn .rmn-n { font-weight: 700; font-size: 1rem; } .hz-tree td.rmn .rmn-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.hz-tree td.rmn-low { background: #CDEFD9; color: #0F5C31; } .hz-tree td.rmn-medium { background: #FCE7A8; color: #6B4600; } .hz-tree td.rmn-high { background: #F8B4B4; color: #8F1414; }
.hz-tree .hz-res-reason { font-size: .68rem; font-weight: 400; margin-top: .25rem; text-align: left; }
.hz-ctl-list { margin: 0; padding-left: 1.1rem; } .hz-ctl-list li + li { margin-top: .4rem; }
.hz-ctl-line { color: #526075; font-size: .8rem; }
.lh-box { border: 1px solid #DCE3EC; border-radius: .6rem; padding: .75rem; background: #FAFBFD; }
.lh-q { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-bottom: .4rem; }
.lh-q-label { width: 11rem; font-size: .8rem; font-weight: 500; color: #334155; }
.lh-q .btn { font-size: .75rem; }
.lh-result { border-top: 1px dashed #CBD5E1; padding-top: .5rem; }
.lh-just { font-size: .8rem; color: #334155; }
.sev-guide td { font-size: .78rem; } .sev-guide tr[role=button] { cursor: pointer; }
.ctl-row { display: flex; gap: .5rem; align-items: flex-start; border: 1px solid #E2E8F0; border-radius: .5rem; padding: .5rem; margin-bottom: .5rem; background: #fff; }
.ctl-row .ctl-no { font-weight: 600; color: #13315C; padding-top: .3rem; min-width: 1.4rem; }
.lhmap td, .lhmap th { font-size: .8rem; vertical-align: middle; } .lhmap input { width: 4.5rem; }

/* ---- Sticky table headers (shared; switched on per table by initStickyHeads in elix.js) ---- */
:root { --elix-sticky-top: 65px; }
.elix-content table.th-sticky > thead { position: sticky; top: var(--elix-sticky-top); z-index: 3; }
.elix-content table.th-sticky.th-sticky-local > thead { top: 0; }
.elix-content table.th-sticky > thead > tr > th { background-color: #fff; }
.elix-content table.th-sticky > thead > tr:last-child > th { box-shadow: inset 0 -1px 0 #E2E8F0; }
.elix-content .table.th-sticky > thead > tr.bg-primary > th { background-color: #fff !important; }
.elix-content .table.th-sticky > thead.table-light > tr > th { background-color: #F8FAFC !important; }
.elix-content .table-responsive.ts-fit { overflow: visible; }
.elix-content .table-responsive.ts-scroll { overflow: auto; max-height: calc(100vh - var(--elix-sticky-top) - 24px); overscroll-behavior: auto; }
/* A table that scrolls inside its own box (both ways) with the header kept at the top of the box.
   The box is never shorter than 320px and otherwise leaves room for the page title and form above it. */
.elix-content .elix-table-scroll { overflow: auto; max-height: max(320px, calc(100vh - var(--elix-sticky-top) - 220px)); border: 1px solid #E2E8F0; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
.elix-content .elix-table-scroll > .table { margin-bottom: 0; }
.elix-content .cl-table-wrap > .elix-table-scroll { border: 0; border-radius: 12px; }
.elix-content .elix-table-scroll.elix-auto { border: 0; border-radius: 0; }   /* made by elix.js from a .table-responsive / DataTables table */
/* A side list (list-group) that scrolls on its own, same height rule as .elix-table-scroll. */
.elix-content .elix-list-scroll { position: relative; overflow-y: auto; flex-wrap: nowrap; max-height: max(320px, calc(100vh - var(--elix-sticky-top) - 220px)); scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
@media print {
    .elix-content table.th-sticky > thead { position: static; }
    .elix-content .table-responsive.ts-scroll { max-height: none; overflow: visible; }
    .elix-content .elix-table-scroll { max-height: none !important; overflow: visible; border: 0; }
    .elix-content .elix-list-scroll { max-height: none !important; overflow: visible; }
}

/* ---------- Page loader (v0.45.0): ELIX shield "Seal" - includes/page_loader.cfm + assets/js/elix-loader.js ----------
   Hidden unless elix-loader.js adds .is-on (a page change that takes longer than 300 ms). The outline traces,
   the shield fills navy, then the green tick is drawn; 2.4 s loop. */
.elix-loader { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center;
    background: rgba(244, 246, 249, .93); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.elix-loader.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
.elix-loader.is-on.el-instant { transition: none; }   /* sign-in hold carried over to the next page: no second fade-in */
.elix-loader-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.elix-loader-mark { overflow: visible; }
.elix-loader-tag { font-family: Poppins, Arial, sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: #526075; white-space: nowrap; }
.elix-loader .el-outline { fill: none; stroke: #0B2545; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.elix-loader .el-half { opacity: 0; }
.elix-loader .el-check { fill: none; stroke: #22A35A; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.elix-loader.is-on .el-outline, .elix-loader.is-leaving .el-outline { animation: el-trace 2.4s ease-in-out var(--el-delay, 0s) infinite; }
.elix-loader.is-on .el-half, .elix-loader.is-leaving .el-half { animation: el-fill 2.4s ease-in-out var(--el-delay, 0s) infinite; }
.elix-loader.is-on .el-check, .elix-loader.is-leaving .el-check { animation: el-check 2.4s ease-in-out var(--el-delay, 0s) infinite; }
@keyframes el-trace { 0% { stroke-dashoffset: 100; opacity: 1; } 30% { stroke-dashoffset: 0; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes el-fill  { 0%, 25% { opacity: 0; } 40%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes el-check { 0%, 39% { stroke-dashoffset: 100; opacity: 0; } 40% { stroke-dashoffset: 100; opacity: 1; } 58%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .elix-loader .el-outline, .elix-loader .el-half, .elix-loader .el-check { animation: none !important; }
    .elix-loader.is-on .el-half { opacity: 1; }
    .elix-loader.is-on .el-check { stroke-dashoffset: 0; }
}
@media print { .elix-loader { display: none !important; } }
