.dropdown-menu .dropdown-item .fal,
.dropdown-menu .dropdown-item .fa {
    width: 16px;
    text-align: center;
}

/* Status buttons */
.dropdown-toggle::after {
    margin-left: 0.4em;
}

.progress .progress-bar {
    border-radius: 3px;
}

.text-underline {
    color: var(--bs-body-color);
    text-decoration: underline dashed #4680ff !important;
    font-weight: 500;
    text-underline-offset: 4px;
}

.text-pre-wrap {
    white-space: pre-wrap;
}

/**
 * Datatable related CSS updates
 */
table.dataTable colgroup {
    display: none;
}

.datatable-table thead th,
.table thead th {
    /* We don't want capitalized titles, because it changes the meaning of things like units, e.g. μF becomes ΜF. */
    text-transform: none !important;
    font-size: 12px;
}

.table.wrap td,
.table.wrap th {
    white-space: normal !important;
}

.table td.text-nowrap,
.table th.text-nowrap {
    white-space: nowrap !important;
}

.c-py-3 {
    padding-top: 1.17rem !important;
    padding-bottom: 1.17rem !important;
}

/* Centering option for table columns (to center the <td>s, but not when responsive overflows them to the child row) */
td.center-when-in-td {
    text-align: center;
}

/* Override DataTable default to allow wrapping of long lines in responsive table child rows. We have Additional
 * Information values which can be quite long and if they're all on one line it ends up making the table too wide
 * when the child row is expanded. */
.table tr.child td {
    white-space: initial;
}


/* For highlighting search results. <mark> is a standard HTML element. */
mark {
    background: #FCF25E;
    padding: 0;
}

/**
 * Steps for site flows count
 */
.steps-form {
    display: table;
    width: 100%;
    position: relative;
}

.steps-form .steps-row {
    display: flex;
    justify-content: space-between;
}

.steps-form .steps-row.multi-line-steps {
    flex-flow: row wrap;
    align-content: space-between;
    justify-content: start;
}

.steps-form .steps-row:before {
    top: 25px;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

.steps-form .steps-row .steps-step {
    text-align: center;
    position: relative;
}

.steps-form .steps-row .steps-step p {
    margin-top: 0.5rem;
    color: #000000;
}

.steps-form .steps-row .steps-step button[disabled] {
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
}

.steps-form .steps-row .steps-step .btn-circle {
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 11px 0;
    font-size: 17px;
    line-height: 1.428571429;
    border-radius: 40px;
    margin-top: 0;
    color: white;
}

.steps-form .steps-row .steps-step .btn-circle.status-flow-circle,
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    width: 50px;
    height: 50px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
}

.steps-form .steps-row .steps-step .status-flow-count {
    display: block;
    line-height: 1;
    white-space: nowrap;
    font-weight: 600;
    font-size: 17px;
    padding: 0 2px;
}

/* Tier 0: 1–4 digits — default circle */
.steps-form .steps-row .steps-step .btn-circle.status-flow-circle[data-digit-tier="0"],
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="0"] {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
}

.steps-form .steps-row .steps-step .btn-circle[data-digit-tier="0"] .status-flow-count,
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="0"] {
    font-size: 17px;
}

/* Tier 1: 5–7 digits — larger circle (center aligned to connector at 44px) */
.steps-form .steps-row .steps-step .btn-circle.status-flow-circle[data-digit-tier="1"],
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="1"] {
    width: 66px;
    height: 66px;
    min-width: 66px;
    padding: 0;
    border-radius: 50%;
    margin-top: -8px;
}

.steps-form .steps-row .steps-step .btn-circle[data-digit-tier="1"] .status-flow-count,
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="1"] {
    font-size: 14px;
}

/* Tier 2: 8–10 digits — larger circle */
.steps-form .steps-row .steps-step .btn-circle.status-flow-circle[data-digit-tier="2"],
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="2"] {
    width: 82px;
    height: 82px;
    min-width: 82px;
    padding: 0;
    border-radius: 50%;
    margin-top: -16px;
}

.steps-form .steps-row .steps-step .btn-circle[data-digit-tier="2"] .status-flow-count,
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="2"] {
    font-size: 12px;
}

/* Tier 3: 11+ digits — largest circle */
.steps-form .steps-row .steps-step .btn-circle.status-flow-circle[data-digit-tier="3"],
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="3"] {
    width: 96px;
    height: 96px;
    min-width: 96px;
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    margin-top: -23px;
}

.steps-form .steps-row .steps-step .btn-circle[data-digit-tier="3"] .status-flow-count,
.steps-form .steps-row .steps-step .btn-circle.avg_day[data-digit-tier="3"] {
    font-size: 11px;
}

.bg-red-lighten-1 {
    background-color: #ef9a9a !important;
}

.bg-red-lighten-2 {
    background-color: #e57373 !important;
}

.bg-red-darken-1 {
    background-color: #d32f2f !important;
}

.bg-red-darken-2 {
    background-color: #b71c1c !important;
}

.bg-light1 {
    background-color: #E9DFEC !important;
}

/* Required related css */
label.error {
    color: #F00;
    font-size: 14px;
}

.required:after {
    content: "*" !important;
    color: red !important;
}

.mw-200 {
    max-width: 200px;
}

/**
 * Select2 for multiple selection
 */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
    display: inline-block;
    width: auto;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    font-size: 0.765625rem;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    font-size: 0.765625rem;
    line-height: 1.2;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    font-size: 0.765625rem;
    line-height: 2;
}

li.select2-selection__choice {
    display: inline-block !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

ul.select2-selection__rendered {
    padding-right: 12px !important;
}
.select2-selection__choice__remove{
    color:#fff;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
    resize:none !important;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    border:none !important;
    top: 17px !important;
}

/* compactSelect2 multi-selects — sized to 38px to line up with form-select-sm filter inputs (carried from IL-21296). */
.compact-select2-badge {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.1rem 0.5rem;
    border-radius: 0.75rem;
    white-space: nowrap;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.125rem 1.5rem 0.125rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    font-size: 0.75rem;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection__clear,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection__clear {
    top: 50%;
    right: 0.5rem;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

/* Frequency Review Analysis — bordered control box; the field label sits above/outside this border.
   Flex-fills the filter column so every second-row box shares the same height, control vertically centred. */
.fra-control-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    border: 1px solid #e6eaf2;
    border-radius: 10px;
    padding: 12px;
}
.fra-control-box .form-range {
    width: 100%;
}
/**
 *  table column content wrap
 */
.dtr-details .mw-200 {
    max-width: 100%;
    white-space: normal !important;
}

.form-label {
    font-weight: 500;
}

th.action {
    width: 80px !important;
}

.row-sorting-icon {
    color: #4680FF;
    font-size: 16px;
}

.table-row-sorting {
    width: 70px !important;
}

/** Full Calendar */
.fc-toolbar-chunk .fc-today-button{
    border-radius: var(--bs-btn-border-radius) !important;
}

.fc-event{
    background-color: #eff0f2 !important;
    color: #5b6b79 !important;
    border: 1px solid #999 !important;
}

.fc-h-event .fc-event-main{
    color: #5b6b79 !important;
}


/** Inline Block Separators */
.list-inline.separator li:not(:last-child):after {
    content: '|';
    margin: 0 10px;
}

/* Added this because popover is not showing on modal/popup */
div.popover {
    z-index: 999999 !important;
}

/* Calendar Event Tooltips - Persistent and Interactive */
body > .popover,
#calendar .popover,
#calendar-container .popover,
.calendar-container .popover {
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10050 !important;
}

/**
 * Sidebar navigation polish (spacing + chevron alignment)
 * - No functional changes: purely layout overrides on existing classes.
 */
.pc-sidebar .pc-navbar > .pc-item.pc-hasmenu > .pc-link,
.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item.pc-hasmenu > .pc-link {
    display: flex;
    align-items: center;
    /* Keep the chevron pinned to the far right */
    justify-content: flex-start;
    column-gap: 10px;
}

/* Ensure the chevron is vertically centered and consistently spaced */
.pc-sidebar .pc-navbar > .pc-item.pc-hasmenu > .pc-link > .pc-arrow,
.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item.pc-hasmenu > .pc-link > .pc-arrow {
    float: none; /* override template float-based alignment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* pushes chevron to right corner */
    line-height: 1;
}

/* Keep icon/text from shrinking oddly in flex rows */
.pc-sidebar .pc-navbar > .pc-item.pc-hasmenu > .pc-link > .pc-micon,
.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item.pc-hasmenu > .pc-link > .pc-micon {
    flex: 0 0 auto;
}
.pc-sidebar .pc-navbar > .pc-item.pc-hasmenu > .pc-link > .pc-mtext,
.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item.pc-hasmenu > .pc-link > .pc-mtext {
    flex: 1 1 auto;
    min-width: 0;
}

/* Feather replaces <i> with <svg>; this keeps size consistent either way */
.pc-sidebar .pc-arrow > svg,
.pc-sidebar .pc-arrow > i,
.pc-sidebar .pc-arrow svg {
    width: 14px;
    height: 14px;
}

/* Add breathing room between an expanded parent and its first submenu item */
.pc-sidebar .pc-navbar > .pc-item.pc-hasmenu.pc-trigger > .pc-submenu {
    padding-top: 6px;
    padding-bottom: 2px;
}

/* Submenu typography: slightly smaller than parent items */
.pc-sidebar .pc-navbar > .pc-item > .pc-submenu .pc-item > .pc-link {
    font-size: 13px;
}

/* Slightly more vertical rhythm inside submenu lists without changing hit-area too much */
.pc-sidebar .pc-navbar > .pc-item > .pc-submenu > .pc-item > .pc-link {
    padding-top: 13px;
    padding-bottom: 13px;
}

body > .popover .popover-header,
#calendar .popover-header,
#calendar-container .popover-header,
.calendar-container .popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

body > .popover .popover-body,
#calendar .popover-body,
#calendar-container .popover-body,
.calendar-container .popover-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Swal.fire modal shows up underneath comments dialog without this. */
body>.swal2-container {
    z-index: 2000 !important;
}

.c-line-marker-notes {
    display: inline-block;
    width: 30px;
    height: 3px;
    margin-right: 5px;
    position: relative;
    top: -4px;
}

body.swal2-toast-shown .swal2-container {
    background: none!important;
}

/* Collapsible filters panel */
.collapsible-filter {
    cursor: pointer;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 0.375rem 0.375rem 0 0;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-content {
    background: #ffffff;
    padding: 1px 5px 15px 10px;
}

.filter-icon {
    transition: transform 0.2s;
}

.filter-icon.rotated {
    transform: rotate(180deg);
}

/* Dashboard chart/table loading spinner placeholder */
.chart-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.chart-loading-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: #3866cc !important;
}


/* jQuery BlockUI — message bubble styling */
.blockMsg {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10) !important;
    font-size: 0.875rem !important;
    color: #495057 !important;
    white-space: nowrap !important;
}

/* ════════════════════════════════════════════════════════════════
   Performance Dashboard
   ════════════════════════════════════════════════════════════════ */

/* Filter Bar — white background with subtle border to keep card shape
   visible without the heavy grey fill the dashboards used to have. */
.dash-filter-bar {
    background: #fff;
    border: 1px solid var(--bs-border-color, #e2e8f0);
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: .75rem;
}
.dash-filter-badge {
    font-size: .75rem;
    font-weight: 400;
    color: #4680FF;
    background: rgba(70, 128, 255, .08);
    border: 1px solid rgba(70, 128, 255, .2);
    border-radius: 1.25rem;
    padding: .1875rem .75rem;
    margin-left: .75rem;
}
.dash-filter-chevron {
    font-size: .75rem;
    margin-left: .5rem;
}
.dash-filter-label {
    font-size: .75rem;
    margin-bottom: .25rem;
}

/* KPI Card */
.kpi-card {
    background: #fff;
    border-radius: .5rem;
    padding: .75rem .875rem;
    min-height: 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--kpi-accent, var(--bs-secondary));
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.kpi-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    padding-bottom: .375rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.kpi-card__name {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #64748b;
}
.kpi-card__icon {
    margin-right: .375rem;
    color: var(--kpi-accent, var(--bs-secondary));
}
.kpi-card__total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kpi-accent, #0f172a);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.kpi-card__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    overflow: hidden;
}
.kpi-card__more-btn {
    border: none;
    background: none;
    color: var(--kpi-accent, #2563eb);
    font-size: .6875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 0;
    text-align: left;
    flex-shrink: 0;
    margin-top: auto;
}
.kpi-card__more-btn:hover {
    text-decoration: underline;
}

/* KPI Bar Row */
.kpi-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: .75rem;
    line-height: 1;
}
.kpi-bar__track {
    height: 24px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.kpi-bar__fill {
    height: 100%;
    border-radius: 4px;
    min-width: 0;
    opacity: .18;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--kpi-bar-pct, 0%);
    background: var(--kpi-bar-color, currentColor);
}
.kpi-bar__label {
    position: relative;
    z-index: 1;
    padding: 0 8px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Drill-down modal */
.modal-dialog.modal-drill { max-width: 1425px; }
.modal-drill td { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kpi-bar--clickable { cursor: pointer; }
.kpi-bar--clickable:hover .kpi-bar__track { background: #e2e8f0; }
.kpi-bar__count {
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 40px;
}

/* Segmented KPI Bar (Status × Region, Age × Region, Reasons × Region) */
.kpi-bar--segmented {
    grid-template-columns: minmax(5.25rem, 8rem) minmax(0, 1fr) auto;
    column-gap: 10px;
}
.kpi-bar__seg-track {
    height: 24px;
    min-width: 0;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
    transition: background .15s ease;
}
.kpi-bar--clickable:hover .kpi-bar__seg-track { background: #e2e8f0; }
.kpi-bar__seg-label {
    display: flex;
    align-items: center;
    min-width: 0;
    font-weight: 500;
    color: #1e293b;
    font-size: .75rem;
    line-height: 1.2;
}
.kpi-bar__seg-label-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kpi-bar__segment {
    height: 100%;
    width: var(--kpi-seg-pct, 0%);
    background: transparent;
    transition: opacity .15s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.kpi-bar__segment::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--kpi-seg-color, #94a3b8);
    opacity: .42;
    transition: opacity .15s ease;
}
.kpi-bar__segment:hover::before { opacity: .65; }
.kpi-bar__segment--zero { display: none; }
.kpi-bar__segment-count {
    position: relative;
    z-index: 3;
    font-size: .625rem;
    font-weight: 700;
    color: #0b1220;
    line-height: 1;
    text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 1px 2px rgba(255,255,255,.9);
    pointer-events: none;
    white-space: nowrap;
    padding: 0 2px;
}
.kpi-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.kpi-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .625rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}
.kpi-chart-legend__swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}
.kpi-chart-legend__label {
    white-space: nowrap;
}
.kpi-card__info {
    font-size: .75rem;
    cursor: help;
    vertical-align: middle;
}
.kpi-bar__row-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}

/* Mini metric tiles inside Box 1 (sub-stats below the status bars) */
.kpi-mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
    flex-shrink: 0;
}
.kpi-mini-metric {
    background: var(--mm-bg, #f8fafc);
    border: 1px solid var(--mm-border, #e2e8f0);
    border-radius: 6px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: help;
}
.kpi-mini-metric__icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mm-icon-bg, #fff);
    color: var(--mm-icon-color, #64748b);
    font-size: .75rem;
    flex-shrink: 0;
}
.kpi-mini-metric__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kpi-mini-metric__label {
    font-size: .625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kpi-mini-metric__value {
    font-size: .875rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.kpi-mini-metric__value small {
    font-size: .625rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 2px;
}
.kpi-mini-metric__hint {
    font-size: .55rem;
    opacity: .55;
}
.kpi-bar__label--inline-dot {
    font-size: .5rem;
    margin-right: 6px;
}
.kpi-mini-metric--success {
    --mm-bg: rgba(16,185,129,.06);
    --mm-border: rgba(16,185,129,.18);
}
.kpi-mini-metric--success .kpi-mini-metric__icon {
    --mm-icon-bg: rgba(16,185,129,.14);
    --mm-icon-color: #047857;
}
.kpi-mini-metric--danger {
    --mm-bg: rgba(244,63,94,.06);
    --mm-border: rgba(244,63,94,.18);
}
.kpi-mini-metric--danger .kpi-mini-metric__icon {
    --mm-icon-bg: rgba(244,63,94,.14);
    --mm-icon-color: #be123c;
}
.kpi-mini-metric--warning {
    --mm-bg: rgba(245,158,11,.06);
    --mm-border: rgba(245,158,11,.18);
}
.kpi-mini-metric--warning .kpi-mini-metric__icon {
    --mm-icon-bg: rgba(245,158,11,.14);
    --mm-icon-color: #b45309;
}

/* Frequency Listing modal helpers */
.freq-listing-modal--scroll {
    overflow-y: auto;
}
.freq-listing-search-wrap {
    position: relative;
    width: 280px;
}
.freq-listing-search-wrap__icon-left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.freq-listing-search-wrap__icon-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* KPI placeholder */
.kpi-card--placeholder {
    min-height: 320px;
}
.kpi-placeholder-pill--narrow {
    width: 60px;
}
.kpi-placeholder-bar {
    height: 24px;
    border-radius: 4px;
}

/* Status Badge */
.status-badge {
    font-size: .6875rem;
    font-weight: 600;
    padding: .125rem .4375rem;
    border-radius: .5rem;
    white-space: nowrap;
    background: rgba(var(--sb-r), var(--sb-g), var(--sb-b), .12);
    color: rgb(var(--sb-r), var(--sb-g), var(--sb-b));
    border: 1px solid rgba(var(--sb-r), var(--sb-g), var(--sb-b), .3);
}
.status-badge--light {
    filter: brightness(.65);
}

/* Dashboard Section Divider */
.dash-section-label {
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bs-gray-400);
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 1.75rem 0 .75rem;
}
.dash-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bs-gray-200);
}

/* Dashboard Chart Card */
.dash-chart-card {
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    height: 100%;
}
.dash-chart-card .card-body { padding: 1rem; }
.dash-chart-title {
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 0;
}
.dash-chart-area {
    position: relative;
    min-height: 250px;
}
.dash-chart-area--sm { min-height: 200px; }
.dash-chart-area--lg { min-height: 300px; }
.dash-chart-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.dash-chart-filter-select {
    width: auto;
    font-size: .6875rem;
}

/* Dashboard Loading Overlay */
.dash-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .6);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-loading-overlay__content {
    background: #fff;
    border-radius: .5rem;
    padding: .75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--bs-gray-600);
}

/* Skeleton loading pulse */
.skeleton-pulse {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: sk-pulse 1.5s ease-in-out infinite;
}
@keyframes sk-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   Shared Livewire component styles
   Keep all component CSS here — do NOT add <style> blocks
   inside Blade views or inline style="..." attributes.
   ===================================================== */

/* Tiny utility classes */
.fs-badge-xs { font-size: .65rem; }
.spinner-xs  { width: 12px; height: 12px; }
.w-perpage   { width: 80px; }
.w-actions   { width: 120px; }
.w-hierarchy { width: 18%; }

/* Stat card (resources/views/components/livewire/stat-card.blade.php) */
.stat-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    padding: 16px 18px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.stat-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}
.stat-card--primary::before { background: linear-gradient(180deg, #1976d2, #64b5f6); }
.stat-card--success::before { background: linear-gradient(180deg, #2e7d32, #66bb6a); }
.stat-card--warning::before { background: linear-gradient(180deg, #ed6c02, #ffb74d); }
.stat-card--danger::before  { background: linear-gradient(180deg, #d32f2f, #ef9a9a); }
.stat-card--info::before    { background: linear-gradient(180deg, #0288d1, #4fc3f7); }

.stat-card__icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.stat-card--primary .stat-card__icon { background: rgba(25,118,210,.12);  color: #1976d2; }
.stat-card--success .stat-card__icon { background: rgba(46,125,50,.12);   color: #2e7d32; }
.stat-card--warning .stat-card__icon { background: rgba(237,108,2,.12);   color: #ed6c02; }
.stat-card--danger  .stat-card__icon { background: rgba(211,47,47,.12);   color: #d32f2f; }
.stat-card--info    .stat-card__icon { background: rgba(2,136,209,.12);   color: #0288d1; }

.stat-card__value {
    font-size: 1.75rem; font-weight: 700; line-height: 1.1;
    color: #212529; letter-spacing: -0.02em;
}
.stat-card__label {
    font-size: 0.75rem; color: #6c757d;
    text-transform: uppercase; letter-spacing: 0.04em;
    font-weight: 600; margin-bottom: 2px;
}
.stat-card__meta { font-size: 0.78rem; color: #6c757d; margin-top: 6px; }
.stat-card__progress {
    height: 4px; border-radius: 2px; background: #f1f3f5;
    overflow: hidden; margin-top: 10px;
}
.stat-card__progress > span { display: block; height: 100%; border-radius: 2px; }
.stat-card--primary .stat-card__progress > span { background: #1976d2; }
.stat-card--success .stat-card__progress > span { background: #2e7d32; }
.stat-card--warning .stat-card__progress > span { background: #ed6c02; }
.stat-card--danger  .stat-card__progress > span { background: #d32f2f; }
.stat-card--info    .stat-card__progress > span { background: #0288d1; }

/* Assets map — results table (resources/views/livewire/maps/assets-map-table.blade.php) */
tr.assets-map-table__row--active > td {
    background-color: #fff8e1 !important;
}
td.assets-map-table__address-cell { max-width: 220px; width: 220px; }
.assets-map-table__address {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
    max-height: 2.6em;
}
.assets-map-table__loading { z-index: 5; }
.assets-map-table__pagination .pagination { margin: 0; justify-content: flex-end; }

/* Shared listbox component (IL-21023) */
.listbox__trigger       { min-height: 31px; cursor: pointer; }
.listbox__clear         { font-size: 11px; cursor: pointer; }
.listbox__chevron       { font-size: 10px; transition: transform 0.2s; }
.listbox__chevron--open { transform: rotate(180deg); }
.listbox__panel         { z-index: 1050; max-height: 280px; overflow: hidden; display: flex; flex-direction: column; }
.listbox__panel--dropup { bottom: 100%; top: auto; z-index: 1090; }
.listbox__toggle-all    { cursor: pointer; }
.listbox__options       { max-height: 220px; }
.listbox__option        { cursor: pointer; }
.listbox__check         { font-size: 11px; }

/* Keep listbox panels visible inside scrollable Bootstrap modals */
#global-modal .modal-dialog-scrollable .modal-content:has(.listbox__panel),
#global-modal .modal-dialog-scrollable .modal-body:has(.listbox__panel) {
    overflow: visible;
}

/* Compact "N selected" badge for legacy compactSelect2 multi-selects */
.compact-select2-badge {
    display: inline-block;
    background-color: #4680FF;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 8px;
    margin: 2px;
    line-height: 1.4;
}

/* Align compactSelect2 widgets with Bootstrap -sm inputs (scoped via the source select's size class). */
.form-control-sm + .select2-container--bootstrap-5 .select2-selection,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.125rem 1.5rem 0.125rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: 1.5rem;
    gap: 0.2rem;
    padding: 0;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered:not(:empty),
.form-select-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered:not(:empty) {
    padding-bottom: 0;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.3;
}
.form-control-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-search,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection--multiple .select2-search,
.form-control-sm + .select2-container--bootstrap-5 .select2-search__field,
.form-select-sm + .select2-container--bootstrap-5 .select2-search__field {
    height: 1.5rem;
    margin-top: 0;
    line-height: 1.5;
}
/* Field-level clear (×) vertically centered within the widget. */
.form-control-sm + .select2-container--bootstrap-5 .select2-selection__clear,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection__clear {
    top: 50%;
    right: 0.5rem;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

/* Shared autocomplete (type-ahead) component (IL-21231) */
.autocomplete { position: relative; }
.autocomplete__panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dce3ea);
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}
.autocomplete__options { max-height: 280px; overflow-y: auto; }
.autocomplete__option {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #243044;
    cursor: pointer;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf2f7;
}
.autocomplete__option:last-child { border-bottom: 0; }
.autocomplete__option:hover,
.autocomplete__option--active {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
    color: var(--bs-primary, #0b5ed7);
}
.autocomplete__option-icon { margin-top: 2px; font-size: 12px; opacity: 0.75; flex-shrink: 0; }
.autocomplete__match { color: var(--bs-primary, #0b5ed7); font-weight: 800; }
.autocomplete__clear { z-index: 5; }
.autocomplete__group-label {
    padding: 6px 12px 2px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8a96a3;
    background: #f8fafc;
}
.autocomplete__option-text { display: flex; flex-direction: column; min-width: 0; }
.autocomplete__option-sub { font-size: 11.5px; color: #8a96a3; }
.il-search__field { min-width: 280px; }
.popover.il-search-popover { max-width: 360px; }

/* Performance Dashboard — Settings modal */
.perf-settings-modal          { background: rgba(0, 0, 0, .5); z-index: 1050; }
.perf-settings-dialog         { max-width: 900px; }
.perf-settings-section-head   { font-size: 11px; letter-spacing: 1px; }
.perf-settings-subtext        { font-size: 12px; }
.perf-settings-col-head       { font-size: 13px; }
.perf-settings-label          { font-size: 12px; }
.perf-settings-label--field   { font-size: 13px; }
.perf-settings-arrow          { font-size: 10px; }
.perf-settings-label--pointer { cursor: pointer; }

/* Performance Dashboard — Stats box */
.kpi-card__no-data            { font-size: .75rem; }

/* Performance Dashboard — Drill-down modal */
.perf-drill-modal             { background: rgba(0, 0, 0, .5); z-index: 1050; }

/* Assets map — canvas (resources/views/livewire/maps/map-canvas.blade.php) */
.map-canvas {
    width: 100%;
    height: 600px;
    border-radius: 8px;
}
.map-canvas__overlay {
    left: 12px;
    bottom: 12px;
    z-index: 500;
}

/* Assets map page — hide Google Maps branding links (resources/views/assets/maps/assets-map-v2.blade.php) */
.assets-map-page a[href^="http://maps.google.com/maps"],
.assets-map-page a[href^="https://maps.google.com/maps"],
.assets-map-page a[href^="https://www.google.com/maps"] { display: none !important; }
.assets-map-page .gm-bundled-control .gmnoprint { display: block; }
.assets-map-page .gmnoprint:not(.gm-bundled-control) { display: none; }

/* Skeleton placeholders (resources/views/livewire/placeholders/*.blade.php) */
.skeleton-line {
    display: block;
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-line--label     { width: 110px; height: 14px; margin-bottom: 8px; }
.skeleton-line--label-lg  { height: 16px; width: 55%; }
.skeleton-line--input     { height: 34px; border-radius: 6px; }
.skeleton-line--chart     { height: 280px; border-radius: 6px; }
.skeleton-line--button    { width: 80px; height: 30px; border-radius: 4px; }
.skeleton-line--btn       { width: 80px; height: 34px; border-radius: 4px; }
.skeleton-line--btn-wide  { width: 90px; height: 34px; border-radius: 4px; }
.skeleton-line--kpi-title { width: 100px; height: 18px; margin-bottom: 6px; }
.skeleton-line--kpi-meta  { width: 140px; height: 12px; }
.skeleton-line--map       { height: 600px; border-radius: 8px; }
.skeleton-line--row-cell  { height: 14px; }
.skeleton-line--cell      { height: 12px; }
.skeleton-line--cell-xs   { width: 48px; }
.skeleton-line--cell-sm   { width: 72px; }
.skeleton-line--cell-md   { width: 96px; }
.skeleton-line--cell-lg   { width: 120px; }

.skeleton-map-wrap      { height: 600px; }
.skeleton-map-wrap > .skeleton-line { width: 100%; height: 100%; border-radius: 8px; }

.skeleton-placeholder-glow--sm { width: 80px; }
.placeholder--28            { height: 28px; }
.placeholder-glow--fill     { flex: 1; }

.w-col-hierarchy  { width: 20%; }
.w-col-action-sm  { width: 80px; }

/* Site Complete report (IL-21023) */
.site-complete-perpage       { width: 80px; }
.site-complete-comment-cell  {
    max-width: 220px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.site-complete-comment-cell .sc-comment-trigger {
    cursor: default;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.site-complete-comment-popover {
    position: absolute; top: 100%; left: 0; z-index: 1055;
    min-width: 260px; max-width: 380px; margin-top: 4px;
    padding: 10px 12px;
    background: #fff; border: 1px solid #dee2e6; border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-size: 12px; color: #495057; white-space: pre-wrap; word-break: break-word;
}
.site-complete-survey-results-col { min-width: 320px; }
.site-complete-issue-badge   { cursor: pointer; }
.site-complete-sortable      { cursor: pointer; user-select: none; }
.site-complete-sort-icon     { font-size: 10px; color: #adb5bd; margin-left: 4px; }
.site-complete-sort-icon--active { color: #0d6efd; }
.site-complete-chart-wrap    { position: relative; min-height: 350px; }
.site-complete-chart         { min-height: 350px; }
.site-complete-chart-empty   {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #6c757d; background: #f8f9fa; border-radius: 6px;
}
.site-complete-chart-wrap[data-empty="1"] .site-complete-chart       { display: none; }
.site-complete-chart-wrap[data-empty="0"] .site-complete-chart-empty { display: none; }

/* ──────────────────────────────────────────────
   Asset Performance report (Livewire revamp)
   ────────────────────────────────────────────── */
.perf-filter-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}
.perf-filter-bar__chip {
    font-size: .75rem;
    font-weight: 400;
    color: #4680FF;
    background: rgba(70, 128, 255, .08);
    border: 1px solid rgba(70, 128, 255, .2);
    border-radius: 1.25rem;
    padding: .1875rem .75rem;
    margin-left: .75rem;
}
.perf-filter-bar__chevron {
    font-size: .75rem;
    margin-left: .5rem;
}

/* SFG20 Asset Health Dashboard — Livewire build */
.sfg20-filter-toggle { cursor: pointer; user-select: none; }
.sfg20-filter-toggle .badge { font-weight: 400; }
.sfg20-tab-skeleton { padding: .25rem 0; }
.sfg20-tab-skeleton__kpi   { width: 100%; height: 88px;  border-radius: .5rem; }
.sfg20-tab-skeleton__chart { width: 100%; height: 260px; border-radius: .5rem; }
.sfg20-tab-skeleton__chart-tall { width: 100%; height: 360px; border-radius: .5rem; }
.sfg20-tab-placeholder { padding: 2.25rem 1rem; }
.sfg20-tab-placeholder__icon { font-size: 2rem; color: var(--bs-gray-400); margin-bottom: .5rem; }
.sfg20-tab-placeholder__text { color: var(--bs-gray-600); }
.sfg20-saved-filters-menu { min-width: 14rem; max-width: 22rem; }
.sfg20-saved-filters-menu > li + li { border-top: 1px solid var(--bs-border-color); }
.sfg20-saved-filters-menu .btn-link { color: var(--bs-body-color); }
.sfg20-saved-filters-menu .btn-link:hover { color: var(--bs-primary); }
.sfg20-saved-filters-menu .btn-link.text-danger:hover { color: var(--bs-danger) !important; }
/* Global x-cloak rule — Alpine requires [x-cloak] { display: none } in
   CSS for `x-cloak` attributes to hide elements during the brief window
   between page render and Alpine init. Without this, any element with
   `x-show` defaults to its CSS `display` and flashes visible on load
   (e.g. the confirmation dialog appearing with empty content). */
[x-cloak] { display: none !important; }

/* =====================================================================
   Generic confirmation dialog — drop-in replacement for native confirm()
   and Swal.fire({showCancelButton:true}). Mounted via x-confirm-dialog
   component and triggered globally via window.confirmDialog(opts):
   Promise<boolean>. Designed to be visually consistent with the modern
   dashboards rather than the legacy Swal default look.
===================================================================== */
.confirm-dialog {
    /* z-index 2080: above Bootstrap modal (1055) AND its backdrop (1050) so
       the dialog stays on top when invoked from inside an open modal. */
    position: fixed; inset: 0; z-index: 2080;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.confirm-dialog__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.confirm-dialog__panel {
    position: relative;
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    animation: confirmDialogIn 160ms ease-out;
}
@keyframes confirmDialogIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.confirm-dialog__icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.confirm-dialog__icon { font-size: 28px; line-height: 1; }
.confirm-dialog__icon--danger  { color: #dc2626; }
.confirm-dialog__icon--warning { color: #d97706; }
.confirm-dialog__icon--info    { color: #2563eb; }
.confirm-dialog__icon--success { color: #16a34a; }
/* Icon-wrap tint follows the icon variant via :has(). Falls back to
   plain white if :has() isn't supported — still readable. */
.confirm-dialog__icon-wrap:has(.confirm-dialog__icon--danger)  { background: rgba(220, 38, 38, 0.10); }
.confirm-dialog__icon-wrap:has(.confirm-dialog__icon--warning) { background: rgba(217, 119,  6, 0.12); }
.confirm-dialog__icon-wrap:has(.confirm-dialog__icon--info)    { background: rgba(37, 99, 235, 0.10); }
.confirm-dialog__icon-wrap:has(.confirm-dialog__icon--success) { background: rgba(22, 163, 74, 0.10); }
.confirm-dialog__title {
    font-size: 1.125rem; font-weight: 600;
    color: #0f172a; margin: 0 0 .5rem;
}
.confirm-dialog__message {
    font-size: .95rem; color: #475569;
    margin: 0 0 1.25rem; line-height: 1.4;
}
.confirm-dialog__actions {
    display: flex; gap: .75rem; justify-content: center;
}
.confirm-dialog__cancel,
.confirm-dialog__confirm {
    min-width: 110px; padding: .55rem 1rem;
    font-weight: 500; border-radius: .5rem;
}
.confirm-dialog__cancel {
    background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0;
}
.confirm-dialog__cancel:hover { background: #e2e8f0; color: #0f172a; }
.confirm-dialog__confirm--primary {
    background: #2563eb; color: #fff; border: 1px solid #2563eb;
}
.confirm-dialog__confirm--primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.confirm-dialog__confirm--danger {
    background: #dc2626; color: #fff; border: 1px solid #dc2626;
}
.confirm-dialog__confirm--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* =====================================================================
   Alert & notification theming (SweetAlert2 v11). Same palette as
   .confirm-dialog above. Severity uses icon shape as well as colour.
===================================================================== */

/* Keyed off .ipsum-toast--<kind>, not Swal internals, so upgrades can't break it. */
.swal2-popup.ipsum-toast {
    align-items: center;
    border-radius: .65rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, .22);
    padding: .8rem .95rem;
    background: #fff;
}
.swal2-popup.ipsum-toast .swal2-title {
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    padding: 0;
    text-align: left;
}
.swal2-popup.ipsum-toast .swal2-html-container {
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: #475569;
    margin: .15rem 0 0;
    padding: 0;
    text-align: left;
    word-break: break-word;
}
/* A blank body still takes a grid row, leaving the icon adrift beside empty space. */
.swal2-popup.ipsum-toast .swal2-html-container:empty { display: none; margin: 0; }
.swal2-popup.ipsum-toast .swal2-timer-progress-bar { background: rgba(15, 23, 42, .18); }

/* The theme sets `.swal2-popup{background:var(--bs-body-bg)!important}`
   (template2/css/style.css:28531), so the tint only lands with !important. */
.swal2-popup.ipsum-toast--success { border-left-color: #16a34a; background: #f2fbf5 !important; }
.swal2-popup.ipsum-toast--error   { border-left-color: #dc2626; background: #fef4f4 !important; }
.swal2-popup.ipsum-toast--warning { border-left-color: #d97706; background: #fefaf2 !important; }
.swal2-popup.ipsum-toast--info    { border-left-color: #2563eb; background: #f3f7fe !important; }

/* Counters template2/css/style.css:28777, which stretches the toast because the
   icon spans every row. Scoped to toasts so modal icons keep the theme spacing. */
.swal2-popup.ipsum-toast .swal2-icon {
    margin: 0 .6rem 0 0 !important;
}

/* Swal draws its icons with border-color, so both properties are needed. */
.ipsum-toast--success .swal2-icon.swal2-success { border-color: #16a34a; color: #16a34a; }
.ipsum-toast--error   .swal2-icon.swal2-error   { border-color: #dc2626; color: #dc2626; }
.ipsum-toast--warning .swal2-icon.swal2-warning { border-color: #d97706; color: #d97706; }
.ipsum-toast--info    .swal2-icon.swal2-info    { border-color: #2563eb; color: #2563eb; }
.ipsum-toast--success .swal2-success-ring { border-color: rgba(22, 163, 74, .3); }
.ipsum-toast--success .swal2-success-line-tip,
.ipsum-toast--success .swal2-success-line-long { background-color: #16a34a; }
.ipsum-toast--error .swal2-x-mark-line-left,
.ipsum-toast--error .swal2-x-mark-line-right { background-color: #dc2626; }

/* Modal shell — matches .confirm-dialog__panel so both prompts look alike. */
.swal2-popup.swal2-modal {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    padding: 1.75rem 1.5rem 1.25rem;
}
.swal2-popup.swal2-modal .swal2-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0;
    margin: 0 0 .5rem;
}
.swal2-popup.swal2-modal .swal2-html-container {
    font-size: .95rem;
    line-height: 1.45;
    color: #475569;
    margin: 0 0 .25rem;
}
.swal2-popup.swal2-modal .swal2-actions { gap: .75rem; margin-top: 1.25rem; }
.swal2-popup.swal2-modal .swal2-actions .btn { min-width: 110px; }

.swal2-popup.swal2-modal .swal2-icon.swal2-error   { border-color: #dc2626; color: #dc2626; }
.swal2-popup.swal2-modal .swal2-icon.swal2-warning { border-color: #d97706; color: #d97706; }
.swal2-popup.swal2-modal .swal2-icon.swal2-info,
.swal2-popup.swal2-modal .swal2-icon.swal2-question { border-color: #2563eb; color: #2563eb; }
.swal2-popup.swal2-modal .swal2-icon.swal2-success { border-color: #16a34a; color: #16a34a; }
.swal2-popup.swal2-modal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(22, 163, 74, .3); }
.swal2-popup.swal2-modal .swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-popup.swal2-modal .swal2-icon.swal2-success .swal2-success-line-long { background-color: #16a34a; }
.swal2-popup.swal2-modal .swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-popup.swal2-modal .swal2-icon.swal2-error .swal2-x-mark-line-right { background-color: #dc2626; }

/* SFG20 chart canvas + KPI accent variants. The legacy perf-chart-card
   pulls its accent from --kpi-accent; we expose semantic variants here so
   each card declares intent via a class rather than inline style. */
.sfg20-chart-canvas { min-height: 260px; }
.sfg20-chart-canvas-tall { min-height: 320px; }
.sfg20-kpi-accent--blue   { --kpi-accent: #0d6efd; }
.sfg20-kpi-accent--green  { --kpi-accent: #198754; }
.sfg20-kpi-accent--teal   { --kpi-accent: #0d9488; }
.sfg20-kpi-accent--orange { --kpi-accent: #fd7e14; }
.sfg20-kpi-accent--red    { --kpi-accent: #dc3545; }
.sfg20-kpi-accent--purple { --kpi-accent: #7c3aed; }
/* Count-only KPI variant — drops the header divider and the
   tall body area that .kpi-card reserves for the __bars list. Used
   on the SFG20 dashboard where each card is just an icon + label +
   total, no per-status breakdown bars underneath. */
.sfg20-summary-kpis .kpi-card {
    min-height: 0;
    padding: .625rem .875rem;
}
.sfg20-summary-kpis .kpi-card__head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.sfg20-tab-priority-filter { min-width: 260px; }

/* Drill-down loading state — shown the moment a chart point is
   clicked, before the lazy DrilldownRecords child has mounted. */
.sfg20-drilldown-loading {
    display: none;
    background: var(--bs-light, #f8f9fa);
    border: 1px solid var(--bs-gray-200, #e9ecef);
    border-radius: .5rem;
}

/* Sub-chart label inside Summary's Issues/Inspections/Maintenance
   cards. Smaller than the parent .dash-chart-title so the visual
   hierarchy reads: section heading → mini sub-chart heading → chart. */
.sfg20-subchart-label {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-gray-600);
    margin: .25rem 0 .25rem .125rem;
}

/* Coloured divider between top sub-chart row and bottom full-width
   chart — matches the legacy as-card-divider with red/teal/purple
   accents per section. */
.sfg20-card-divider {
    height: 2px;
    border: 0;
    margin: .75rem 0;
    opacity: .55;
}
.sfg20-card-divider--red    { background: #DC2626; }
.sfg20-card-divider--teal   { background: #17a2b8; }
.sfg20-card-divider--purple { background: #F59E0B; }

/* Loading overlay shown while the SFG20 PDF flow is running:
   captures chart SVGs -> PNG -> uploads -> redirects to the
   server-side mPDF endpoint. Surfaced by window.sfg20DownloadPdf. */
.sfg20-pdf-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
}
.sfg20-pdf-overlay__panel {
    background: #fff; padding: 1.25rem 1.5rem;
    border-radius: .75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-width: 260px; text-align: center;
}
.sfg20-pdf-overlay__text { font-weight: 500; color: var(--bs-body-color); }

/* Defensive browser-print fallback. The primary export is the
   server-side PDF (window.sfg20DownloadPdf -> /sfg20-dashboard-pdf/...
   -> dashboard.pdf.{entity} template via mPDF). If a user still
   triggers Ctrl+P, the rules below at least keep the layout sane —
   they aren't the headline experience. */
@media print {
    /* Hide page chrome + filter / tab UI / modal scaffolding */
    .navbar, .pc-sidebar, .pc-header, .header, .breadcrumb,
    .dash-filter-bar, .perf-filter-bar, .nav-tabs, .modal, .confirm-dialog,
    .sfg20-print-btn, .sfg20-filter-toggle, .sfg20-saved-filters-menu,
    .dropdown-menu, .dropdown-toggle::after,
    [wire\:loading], .sfg20-drilldown-loading,
    .pcoded-navbar, .pcoded-header, footer {
        display: none !important;
    }

    /* Show only the active tab pane (Livewire toggles .d-block / .d-none) */
    .tab-content { border: none !important; padding: 0 !important; background: #fff !important; }
    .tab-content > .d-none { display: none !important; }
    .tab-content > .d-block { display: block !important; page-break-inside: auto; }

    /* Reset body so light/dark backgrounds don't bleed into print */
    body { background: #fff !important; color: #000 !important; }
    html, body { width: 100%; margin: 0 !important; padding: 0 !important; }

    /* A4 landscape gives us width for 3-up charts without crushing them */
    @page { size: A4 landscape; margin: 10mm; }

    /* === Re-enable Bootstrap grid in print ===
       Bootstrap's responsive utilities (col-md-*, col-lg-*) depend on
       min-width media queries that don't fire under print media. Force
       flex layout on .row + give every breakpoint-specific col a
       deterministic width so the print layout matches what the user
       sees on a desktop screen. */
    .row { display: flex !important; flex-wrap: wrap !important; margin: 0 -4px !important; }
    .row > [class*="col-"] { padding: 0 4px !important; margin-bottom: 8px !important; }

    /* Fractional widths — match Bootstrap's 12-column grid */
    .row > .col-12,
    .row > [class*="col-md-12"],
    .row > [class*="col-lg-12"]                    { flex: 0 0 100% !important;          max-width: 100% !important; }
    .row > [class*="col-md-6"],
    .row > [class*="col-lg-6"]                     { flex: 0 0 50% !important;           max-width: 50% !important; }
    .row > [class*="col-md-4"],
    .row > [class*="col-lg-4"]                     { flex: 0 0 33.3333% !important;      max-width: 33.3333% !important; }
    .row > [class*="col-md-3"]                     { flex: 0 0 25% !important;           max-width: 25% !important; }
    .row > [class*="col-md-2"]                     { flex: 0 0 16.6666% !important;      max-width: 16.6666% !important; }
    /* `.col-md` (no number) means auto-flex — give it equal share */
    .row > .col-md, .row > .col-md-auto            { flex: 1 1 0 !important;             max-width: 100% !important; }
    /* col-7 / col-5 used by the per-category sub-charts */
    .row > [class*="col-lg-7"]                     { flex: 0 0 58.3333% !important;      max-width: 58.3333% !important; }
    .row > [class*="col-lg-5"]                     { flex: 0 0 41.6666% !important;      max-width: 41.6666% !important; }

    /* === Card defaults ===
       Lose the shadow + paint a faint border so cards still feel
       grouped on paper. break-inside / page-break-inside: avoid is
       the modern + legacy spelling so Chrome, Firefox, and Edge all
       respect it. */
    .dash-chart-card, .perf-chart-card, .kpi-card, .card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 0 0 8px 0 !important;
        padding: 6px 8px !important;
        background: #fff !important;
        height: auto !important;
    }

    /* === Chart canvas heights ===
       Highcharts sets inline height in pixels matched to the on-screen
       container; in print we want a print-friendly cap so each chart
       fits 2-3 to a row without dwarfing the rest of the page. */
    .sfg20-chart-canvas, .perf-chart-card__canvas, .dash-chart-area {
        height: 200px !important; min-height: 200px !important; max-height: 220px !important;
    }
    .sfg20-chart-canvas-tall {
        height: 280px !important; min-height: 280px !important; max-height: 320px !important;
    }
    .highcharts-root, .highcharts-container, .highcharts-container svg {
        max-width: 100% !important;
    }

    /* === KPI cards ===
       Compact height so a strip of 4-6 KPIs fits on one printed row.
       Center-align so the number + label sit visually balanced. */
    .kpi-card {
        min-height: 64px !important;
        padding: 8px 10px !important;
        text-align: center !important;
    }
    .kpi-card__head { gap: 4px !important; align-items: center !important; justify-content: center !important; flex-direction: column !important; }
    .kpi-card__name { font-size: 11px !important; line-height: 1.2 !important; }
    .kpi-card__total { font-size: 18px !important; line-height: 1.2 !important; }

    /* Titles + section headers never orphan from their content */
    h1, h2, h3, h4, h5, h6,
    .perf-chart-card__title, .dash-chart-title {
        page-break-after: avoid !important;
        break-after: avoid !important;
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    /* Hide help/info popovers + their triggers (no value on paper) */
    [data-bs-toggle="popover"], .icon-popover, .popover { display: none !important; }

    /* Suppress empty-state placeholders cleanly */
    .perf-chart-card__empty { font-size: 11px !important; padding: .5rem !important; }

    /* Defensive: kill any leftover Highcharts export button */
    .highcharts-button, .highcharts-contextmenu, .highcharts-exporting-group {
        display: none !important;
    }
}

.perf-section {
    margin-bottom: 1.25rem;
}
.perf-section__title {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .5rem 0 .5rem 0;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--bs-gray-200);
}
.perf-section__title-text {
    font-weight: 600;
    font-size: .95rem;
    color: var(--bs-gray-800);
}
.perf-section__title-sub {
    font-size: .75rem;
    color: var(--bs-gray-600);
}
.perf-section__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #fff;
    border: 1px dashed var(--bs-gray-300);
    border-radius: .5rem;
    color: var(--bs-gray-600);
}
.perf-section__placeholder-icon {
    font-size: 1.75rem;
    color: var(--bs-gray-400);
    margin-bottom: .5rem;
}
.perf-section__placeholder-text {
    font-size: .875rem;
}

/* Asset Performance trend chart card */
.perf-chart-card {
    background: #fff;
    border-radius: .5rem;
    padding: .75rem .875rem;
    border-left: 3px solid var(--kpi-accent, var(--bs-secondary));
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.perf-chart-card--pending {
    opacity: .6;
    border-left-color: var(--bs-gray-300);
}
.perf-chart-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    padding-bottom: .375rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.perf-chart-card__title-group {
    display: flex;
    align-items: center;
    gap: .25rem;
    min-width: 0;
}
.perf-chart-card__title {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.perf-chart-card__total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kpi-accent, #0f172a);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.perf-chart-card__canvas {
    flex: 1;
    min-height: 0;
}
.perf-chart-card__empty {
    font-size: .8rem;
    color: var(--bs-gray-500);
    text-align: center;
    padding: 2rem .5rem;
    font-style: italic;
}

/* Drilldown accordion */
.perf-drill {
    background: #fff;
    border-radius: .5rem;
    border-left: 3px solid var(--kpi-accent, var(--bs-secondary));
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    margin-bottom: .75rem;
    overflow: hidden;
}
.perf-drill:last-child,
#drilldown-asset-health {
    margin-bottom: 3rem !important;
}
.perf-drill__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: .625rem .875rem;
    text-align: left;
    cursor: pointer;
}
.perf-drill__header:hover {
    background: rgba(15, 23, 42, .025);
}
.perf-drill__icon {
    color: var(--kpi-accent, var(--bs-secondary));
    font-size: .95rem;
    flex-shrink: 0;
}
.perf-drill__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--bs-gray-800);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.perf-drill__count {
    font-size: .72rem;
    font-weight: 600;
    background: rgba(0, 0, 0, .06);
    color: var(--bs-gray-700);
    padding: .125rem .5rem;
    border-radius: .75rem;
    font-variant-numeric: tabular-nums;
}
.perf-drill__info {
    color: var(--bs-gray-500);
    font-size: .8rem;
}
.perf-drill__spacer {
    flex: 1;
}
.perf-drill__view-full {
    font-size: .72rem;
    font-weight: 500;
    color: var(--kpi-accent, var(--bs-primary));
    text-decoration: none;
}
.perf-drill__view-full:hover {
    text-decoration: underline;
}
.perf-drill__chevron {
    font-size: .75rem;
    color: var(--bs-gray-500);
    margin-left: .25rem;
    flex-shrink: 0;
}
.perf-drill__tabs {
    display: flex;
    gap: .25rem;
    padding: 0 .875rem;
    border-bottom: 1px solid var(--bs-gray-200);
    background: rgba(15, 23, 42, .015);
}
.perf-drill__tab {
    background: transparent;
    border: 0;
    padding: .5rem .875rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--bs-gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}
.perf-drill__tab:hover {
    color: var(--bs-gray-800);
}
.perf-drill__tab--active {
    color: var(--kpi-accent, var(--bs-primary));
    border-bottom-color: var(--kpi-accent, var(--bs-primary));
}
.perf-drill__pane {
    padding: .875rem;
    min-height: 200px;
}
.perf-drill__placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--bs-gray-500);
    font-size: .85rem;
    font-style: italic;
}

/* Stat-card → drilldown click target */
.perf-stat-link {
    cursor: pointer;
}
.perf-stat-link .kpi-card {
    transition: box-shadow .15s ease, transform .15s ease;
}
.perf-stat-link:hover .kpi-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

/* === Drilldown records — refined editorial dashboard ===
   Matches the design approved in _playgrounds/asset-performance-records-design.html */
.perf-records.card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .625rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px -10px rgba(15, 23, 42, .08);
    overflow: hidden;
    background: #fff;
}
.perf-records--loading { opacity: .65; }
.perf-records__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f6f7fa 100%);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    flex-wrap: wrap;
}
.perf-records__title {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: .85rem;
    letter-spacing: .01em;
}
.perf-records__title-icon { color: #475569; }
.perf-records__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .5rem;
    justify-content: flex-end;
    min-width: 0;
}
.perf-records__search {
    flex: 1 1 220px;
    min-width: 160px;
    max-width: 260px;
    position: relative;
}
.perf-records__search-hint {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    line-height: 1.1;
}
/* Locked widths so the row never reflows when a filter pill changes
 * its trigger label between "All statuses" / "Open" / "3 selected".
 * The listbox button's inner span is already text-truncate, so the
 * label clips with an ellipsis instead of pushing siblings around. */
.perf-records__filter {
    flex: 0 0 130px;
    min-width: 0;
    width: 130px;
}
.perf-records__per-page-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 70px;
}

.perf-records__table-wrap {
    overflow-x: auto;
    /* Reserve space below the only-row case so the action dropdown menu
     * has somewhere to open into instead of being clipped by the card. */
    min-height: 200px;
}
.perf-records__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: .82rem;
    color: #0f172a;
}
.perf-records__table thead th {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #64748b;
    background: #fafbfc;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding: .625rem .75rem;
    white-space: nowrap;
    text-align: left;
}
.perf-records__table tbody tr {
    transition: background-color .12s ease;
}
.perf-records__table tbody tr:nth-child(even) { background: rgba(15, 23, 42, .015); }
.perf-records__table tbody tr:hover { background: rgba(15, 23, 42, .025); }
.perf-records__table tbody td {
    padding: .625rem .75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(15, 23, 42, .04);
    line-height: 1.4;
}
.perf-records__table tbody tr:last-child td { border-bottom: 0; }
.perf-records__col-actions { width: 1%; }

.perf-records__muted {
    color: #64748b;
    font-style: italic;
    font-size: .76rem;
}
.perf-records__num { font-variant-numeric: tabular-nums; }

/* Mono / asset-ref code chip */
.perf-records__mono,
.perf-records__asset-ref code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .72rem;
    background: rgba(15, 23, 42, .05);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #475569;
    padding: .125rem .4375rem;
    border-radius: .25rem;
}
.perf-records__asset-ref {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed transparent;
    transition: color .15s ease, border-color .15s ease;
}
.perf-records__asset-ref:hover {
    color: #2563eb;
    border-bottom-color: currentColor;
}
.perf-records__asset-ref:hover code {
    color: #2563eb;
    border-color: rgba(37, 99, 235, .3);
}

/* Hierarchy column */
.perf-records__hier-primary {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
}
.perf-records__hier-crumb {
    margin-top: 1px;
    font-size: .72rem;
    color: #64748b;
}

/* Summary + detail */
.perf-records__summary { min-width: 200px; max-width: 360px; }
.perf-records__summary-line {
    color: #0f172a;
    line-height: 1.35;
}
.perf-records__detail-line {
    margin-top: 2px;
    font-size: .72rem;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Generic badge baseline */
.perf-records__badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 600;
    padding: .125rem .5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .08);
    line-height: 1.3;
    white-space: nowrap;
}
.perf-records__badge[style*="--badge-color"] {
    background: color-mix(in srgb, var(--badge-color) 16%, white);
    color: color-mix(in srgb, var(--badge-color) 85%, #0f172a);
    border-color: color-mix(in srgb, var(--badge-color) 30%, transparent);
}

/* Priority palette (P1 worst → P5 best) */
.perf-records__badge--p1 { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.perf-records__badge--p2 { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.perf-records__badge--p3 { background: #fef3c7; color: #854d0e; border-color: #fde68a; }
.perf-records__badge--p4 { background: #fef9c3; color: #713f12; border-color: #fde047; }
.perf-records__badge--p5 { background: #dcfce7; color: #166534; border-color: #86efac; }
.perf-records__badge--neutral { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.perf-records__badge--category { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.perf-records__badge--type { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }

/* Action menu — single dropdown button (matches legacy `bg-action-button`) */
.perf-records__action-menu { display: inline-block; }
.perf-records__action-toggle {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    font-size: .82rem;
    color: #475569;
    background: rgba(15, 23, 42, .04);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .375rem;
    line-height: 1;
}
.perf-records__action-toggle:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, .08);
    border-color: rgba(37, 99, 235, .15);
}
.perf-records__action-toggle.dropdown-toggle::after {
    border-top-color: currentColor;
    opacity: .65;
}
.perf-records__action-menu .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .5rem;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .18);
    padding: .25rem;
    min-width: 220px;
    font-size: .82rem;
}
.perf-records__action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .625rem;
    border-radius: .375rem;
}
.perf-records__action-menu .dropdown-item .list-icon { color: #64748b; width: 18px; text-align: center; }
.perf-records__action-menu .dropdown-item:hover { background: rgba(15, 23, 42, .045); }
.perf-records__action-menu .dropdown-item:hover .list-icon { color: inherit; }

/* Job-number link in records (carries the same monospaced chip look but as a link) */
.perf-records__job-link {
    display: inline-flex;
    align-items: center;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .72rem;
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .15);
    color: #2563eb;
    padding: .125rem .4375rem;
    border-radius: .25rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.perf-records__job-link:hover {
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
    text-decoration: underline;
}

/* Empty state */
.perf-records__empty {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2.5rem .5rem;
}

/* Footer / pagination */
.perf-records__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .625rem 1rem;
    background: #fafbfc;
    border-top: 1px solid rgba(15, 23, 42, .08);
    color: #64748b;
    font-size: .76rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.perf-records__count strong { color: #0f172a; }
.perf-records__pager {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.perf-records__page-label {
    font-size: .76rem;
    color: #475569;
    min-width: 110px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.perf-records__overlay {
    position: absolute;
    top: .5rem;
    right: .5rem;
}

/* === Reusable status-control === */
.status-control { position: relative; display: inline-block; }
.status-control__pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 600;
    padding: .25rem .625rem;
    border-radius: 999px;
    line-height: 1.2;
    border: 1px solid rgba(0, 0, 0, .08);
    transition: filter .15s ease, transform .15s ease;
}
.status-control__pill.dropdown-toggle::after {
    margin-left: .375rem;
    border-top-color: currentColor;
    opacity: .7;
    vertical-align: middle;
}
.status-control__pill:hover { filter: brightness(1.05); transform: translateY(-1px); }
.status-control__pill--locked { cursor: default; }
.status-control__pill--locked:hover { filter: none; transform: none; }
.status-control__menu {
    min-width: 280px;
    padding: .25rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .5rem;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .18);
    font-size: .8rem;
}
.status-control__menu .dropdown-item {
    border-radius: .375rem;
    padding: .4375rem .625rem;
}
.status-control__menu .dropdown-item:hover { background: rgba(15, 23, 42, .045); }

/* === Customise layout — only the rules that genuinely differ from `.perf-settings-*` ===
   The modal shell, subtext, and arrow buttons reuse the existing `.perf-settings-modal`,
   `.perf-settings-subtext`, and `.perf-settings-arrow` classes from Performance Dashboard. */
.perf-customise-dialog { max-width: 1080px; }
.perf-customise-dialog .modal-content {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .625rem;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .25);
}
.perf-customise-col-head {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    padding-bottom: .25rem;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    margin-bottom: .5rem !important;
}
.perf-customise-item {
    transition: background-color .15s ease, opacity .15s ease;
    min-height: 36px;
}
.perf-customise-item.bg-light { opacity: .65; }
.perf-customise-label {
    font-size: .82rem;
    color: #0f172a;
    line-height: 1.3;
}

/* Drilldown map */
.perf-map {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.perf-map--loading {
    opacity: .6;
}
.perf-map__meta {
    font-size: .8rem;
    color: var(--bs-gray-700);
}
.perf-map__meta-hint {
    color: var(--bs-gray-500);
    margin-left: .25rem;
}
.perf-map__canvas {
    width: 100%;
    border-radius: .375rem;
    border: 1px solid var(--bs-gray-200);
    overflow: hidden;
}
.perf-map__empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    background: var(--bs-gray-100);
    border: 1px dashed var(--bs-gray-300);
    border-radius: .375rem;
    color: var(--bs-gray-500);
    font-size: .85rem;
}
.perf-map__empty-icon {
    font-size: 2rem;
    color: var(--bs-gray-400);
}

/* Map popup styling — drilldown maps only.
 * Scoped through `.perf-map__popup` so the existing /maps page popup is
 * untouched. The Leaflet container itself stays default; only our inner
 * markup is restyled. */
.leaflet-popup-content:has(.perf-map__popup) {
    margin: 14px 16px 12px !important;
    min-width: 250px;
}
.perf-map__popup {
    font-size: 12.5px;
    color: #334155;
}
.perf-map__popup-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.perf-map__popup-ref {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: .01em;
    line-height: 1.3;
    word-break: break-all;
}
/* Two-column grid: small uppercase labels on the left, values on the right.
 * `auto 1fr` keeps the label column tight while values get all remaining
 * width. Row-gap of 10px gives the breathing room the previous flat list
 * was missing. */
.perf-map__popup-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    margin-bottom: 14px;
    align-items: start;
}
.perf-map__popup-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .04em;
    padding-top: 2px;
    white-space: nowrap;
}
.perf-map__popup-value {
    color: #1e293b;
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
}
/* Status: text-only colour with a small leading dot — no filled pill so
 * the value stays as readable as the other fields. */
.perf-map__popup-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--status-color, #475569);
    font-weight: 600;
}
.perf-map__popup-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-color, #475569);
    flex: 0 0 auto;
}
.perf-map__popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff !important;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none !important;
    transition: background-color 120ms ease;
}
.perf-map__popup-cta:hover {
    background: #1d4ed8;
}
.perf-map__popup-cta i {
    font-size: 11px;
}

/* ──────────────────────────────────────────────
   Change Log Report (IL-21022)
   Mirrors .perf-filter-bar / .perf-section structure.
   ────────────────────────────────────────────── */
.change-log__filter-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}
.change-log__filter-bar__chip {
    font-size: .75rem;
    font-weight: 400;
    color: #4680FF;
    background: rgba(70, 128, 255, .08);
    border: 1px solid rgba(70, 128, 255, .2);
    border-radius: 1.25rem;
    padding: .1875rem .75rem;
    margin-left: .5rem;
    white-space: nowrap;
}
.change-log__filter-bar__chevron {
    font-size: .75rem;
    margin-left: .5rem;
}

.change-log__section {
    margin-bottom: 1.25rem;
}
.change-log__section-title {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .5rem 0;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--bs-gray-200);
}
.change-log__section-title-text {
    font-weight: 600;
    font-size: .95rem;
    color: var(--bs-gray-800);
}
.change-log__section-title-sub {
    font-size: .75rem;
    color: var(--bs-gray-600);
}

.change-log__card {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: .5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: hidden;
}
.change-log__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .625rem .875rem;
    border-bottom: 1px solid var(--bs-gray-100);
    background: #fafbfc;
}
.change-log__count strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-gray-800);
}
.change-log__sort-hint {
    color: var(--bs-gray-600);
}
.change-log__body {
    position: relative;
}

.change-log__table {
    font-size: .8125rem;
}
.change-log__table thead th {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-gray-600);
    background: #f8fafc;
    border-bottom: 1px solid var(--bs-gray-200);
    padding: .625rem .75rem;
}
.change-log__table tbody td {
    vertical-align: middle;
    padding: .55rem .75rem;
    word-break: break-word;
}
.change-log__cell-date {
    color: var(--bs-gray-700);
    font-variant-numeric: tabular-nums;
}
.change-log__link {
    color: #4680FF;
    text-decoration: none;
    font-weight: 500;
}
.change-log__link:hover {
    text-decoration: underline;
}
.change-log__user {
    color: var(--bs-gray-700);
    white-space: nowrap;
}
.change-log__field-pill {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--bs-gray-700);
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-200);
    border-radius: .375rem;
    padding: .125rem .5rem;
    white-space: nowrap;
}
.change-log__cell-text {
    min-width: 220px;
    max-width: 460px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}
.change-log__cell-text--old {
    color: var(--bs-gray-600);
}
.change-log__cell-text--new {
    color: var(--bs-gray-800);
    font-weight: 500;
}
.change-log__cell-asset {
    min-width: 180px;
    max-width: 260px;
}
.change-log__asset-ref {
    font-weight: 500;
    font-size: .8125rem;
    display: inline-block;
}
.change-log__asset-name {
    font-size: .75rem;
    color: var(--bs-gray-600);
    line-height: 1.3;
    margin-top: 2px;
    word-break: break-word;
}
.change-log__col-date {
    width: 1%;
    white-space: nowrap;
}
.change-log__col-asset {
    width: 18%;
}
.change-log__col-field {
    width: 12%;
}
.change-log__col-value {
    width: 26%;
}
.change-log__col-user {
    width: 12%;
    white-space: nowrap;
}
.change-log__perpage {
    width: auto;
    min-width: 80px;
}
.change-log__skel-perpage {
    width: 120px;
}
.change-log__table-wrap {
    transition: opacity 150ms ease;
}
.change-log__table-wrap--dimmed {
    opacity: 0.55;
    pointer-events: none;
}
.change-log__loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 4;
}
.change-log__pagination {
    padding: .5rem .875rem;
    border-top: 1px solid var(--bs-gray-100);
    background: #fafbfc;
}
.change-log__pagination .pagination {
    margin-bottom: 0;
}

.change-log__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: var(--bs-gray-600);
    text-align: center;
}
.change-log__empty-icon {
    font-size: 2rem;
    color: var(--bs-gray-400);
    margin-bottom: .5rem;
}
.change-log__empty-title {
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: .25rem;
}
.change-log__empty-hint {
    font-size: .8125rem;
}

.change-log__modal-backdrop,
.export-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 16px;
}
.change-log__modal,
.export-modal {
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.45);
}

/* ──────────────────────────────────────────────
   Change Log Report — event cards (IL-21022 redesign)
   ────────────────────────────────────────────── */
.change-log__count-page {
    margin-left: .375rem;
    font-weight: 400;
}

.change-log__feed {
    padding: .5rem .75rem;
    transition: opacity 150ms ease;
}
.change-log__feed--dimmed {
    opacity: .55;
    pointer-events: none;
}

.change-log__asset-card {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: .5rem;
    margin-bottom: .5rem;
    overflow: hidden;
}
.change-log__asset-card__header {
    appearance: none;
    background: #fafbfc;
    border: none;
    border-bottom: 1px solid var(--bs-gray-100);
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    cursor: pointer;
    text-align: left;
    transition: background-color .15s ease;
}
.change-log__asset-card__header:hover {
    background: #f0f2f5;
}
.change-log__asset-card__header--skel {
    pointer-events: none;
}
.change-log__asset-card__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: var(--bs-gray-600);
    font-size: .65rem;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.change-log__asset-card__chevron--open {
    transform: rotate(90deg);
}
.change-log__asset-card__ref {
    font-family: var(--bs-font-monospace, monospace);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    background: #6c757d;
    padding: .1875rem .5rem;
    border-radius: .25rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
a.change-log__asset-card__ref:hover {
    background: #495057;
    color: #fff;
    text-decoration: none;
}
.change-log__asset-card__name {
    font-size: .8125rem;
    color: var(--bs-gray-700);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 32rem;
}
.change-log__asset-card__meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.change-log__asset-card__time {
    color: var(--bs-gray-600);
    font-size: .75rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.change-log__asset-card__count {
    background: #fff;
    border: 1px solid var(--bs-gray-300);
    color: var(--bs-gray-700);
    font-size: .7rem;
    font-weight: 600;
    border-radius: 1rem;
    padding: .125rem .625rem;
    white-space: nowrap;
}
.change-log__asset-card__count-sep {
    color: var(--bs-gray-400);
    margin: 0 .125rem;
    font-weight: 400;
}
.change-log__asset-card__body {
    padding: .25rem .25rem .25rem 0;
    background: #fff;
}

.change-log__asset-card__event {
    display: flex;
    gap: .75rem;
    padding: .75rem .875rem;
    border-bottom: 1px solid var(--bs-gray-100);
}
.change-log__asset-card__event:last-child {
    border-bottom: none;
}
.change-log__asset-card__event__body {
    flex: 1 1 auto;
    min-width: 0;
}
.change-log__asset-card__event__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
    padding-bottom: .375rem;
    border-bottom: 1px dashed var(--bs-gray-200);
}
.change-log__asset-card__event__user {
    font-size: .8125rem;
    color: var(--bs-gray-800);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.change-log__asset-card__event__count {
    background: #fff;
    border: 1px solid var(--bs-gray-300);
    color: var(--bs-gray-700);
    font-size: .65rem;
    font-weight: 600;
    border-radius: 1rem;
    padding: .0625rem .5rem;
    white-space: nowrap;
}
.change-log__asset-card__event__time {
    margin-left: auto;
    color: var(--bs-gray-600);
    font-size: .7rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.change-log__timeline__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18px;
    padding-top: 6px;
    flex-shrink: 0;
}
.change-log__timeline__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.change-log__timeline__dot--created {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, .15);
}
.change-log__timeline__dot--updated {
    background: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .15);
}
.change-log__timeline__dot--deleted {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .15);
}
.change-log__timeline__line {
    width: 1px;
    background: var(--bs-gray-200);
    flex: 1;
    margin-top: 4px;
    min-height: 20px;
}
.change-log__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .03em;
    flex-shrink: 0;
}
.change-log__avatar--c1 { background: #4680FF; }
.change-log__avatar--c2 { background: #6f42c1; }
.change-log__avatar--c3 { background: #fd7e14; }
.change-log__avatar--c4 { background: #20c997; }
.change-log__avatar--c5 { background: #d63384; }
.change-log__avatar--c6 { background: #198754; }
.change-log__avatar--c7 { background: #0dcaf0; }
.change-log__avatar--c8 { background: #ffc107; color: #533f03; }

.change-log__event-badge {
    display: inline-block;
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .15rem .5rem;
    border-radius: .375rem;
    line-height: 1.2;
}
.change-log__event-badge--created {
    color: #198754;
    background: rgba(40, 167, 69, .15);
}
.change-log__event-badge--updated {
    color: #0d6efd;
    background: rgba(13, 110, 253, .15);
}
.change-log__event-badge--deleted {
    color: #dc3545;
    background: rgba(220, 53, 69, .15);
}

.change-log__diff {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.change-log__diff__row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .375rem;
    font-size: .75rem;
    line-height: 1.4;
}
.change-log__diff__field {
    color: var(--bs-gray-600);
    font-weight: 600;
    min-width: 160px;
    flex-shrink: 0;
}
.change-log__diff__old {
    display: inline-block;
    background: rgba(220, 53, 69, .1);
    color: #b02a37;
    border-radius: .25rem;
    padding: .0625rem .375rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: .7rem;
    text-decoration: line-through;
    word-break: break-word;
    max-width: 100%;
}
.change-log__diff__new {
    display: inline-block;
    background: rgba(40, 167, 69, .12);
    color: #146c43;
    border-radius: .25rem;
    padding: .0625rem .375rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: .7rem;
    font-weight: 600;
    word-break: break-word;
    max-width: 100%;
}
.change-log__diff__arrow {
    color: var(--bs-gray-500);
    font-size: .65rem;
}
.change-log__diff__created {
    display: inline-block;
    color: #146c43;
    font-family: var(--bs-font-monospace, monospace);
    font-size: .7rem;
    font-weight: 600;
    word-break: break-word;
    max-width: 100%;
}
.change-log__diff__deleted {
    display: inline-block;
    color: #b02a37;
    font-family: var(--bs-font-monospace, monospace);
    font-size: .7rem;
    word-break: break-word;
    max-width: 100%;
}

/* Select2 renders its own control, so the border has to beat its stylesheet. */
.change-log__filter-select {
    border: 1px solid #CCC !important;
}
.change-log__filter-spacer {
    visibility: hidden;
}
/* ──────────────────────────────────────────────
   Change Log — activity feed
   Asset detail tab + test sheet history.
   Reads as a sentence: who did what to which record,
   with the changed fields listed underneath.
   ────────────────────────────────────────────── */
.change-log__timeline.accordion {
    border: 1px solid var(--bs-gray-200);
    border-radius: .625rem;
    background: #fff;
    overflow: hidden;
}
.change-log__timeline .accordion-item {
    border: 0;
    background: transparent;
}
.change-log__timeline .accordion-item + .accordion-item {
    border-top: 1px solid var(--bs-gray-200);
}
.change-log__timeline .accordion-header {
    margin: 0;
}

/* ---- month header ---- */
.change-log__timeline .accordion-button {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .8125rem 1.125rem;
    font-size: .9375rem;
    font-weight: 700;
    color: #1F2937;
    background: #EFF4FF;
    border-radius: 0 !important;
    box-shadow: none;
}
/* Bootstrap's own chevron is replaced by an inline svg. */
.change-log__timeline .accordion-button::after {
    display: none;
}
.change-log__timeline .accordion-button:not(.collapsed) {
    color: #1F2937;
    background: #EFF4FF;
}
.change-log__timeline .accordion-button.collapsed {
    background: #fff;
}
.change-log__timeline .accordion-button:hover {
    background: #EFF4FF;
}
.change-log__timeline .accordion-button:focus {
    box-shadow: none;
}
.change-log__timeline .accordion-button:focus-visible {
    outline: 2px solid #4680FF;
    outline-offset: -2px;
}
.change-log__chevron {
    width: .875rem;
    height: .875rem;
    flex: 0 0 auto;
    color: #64748B;
    transform: rotate(90deg);
    transition: transform .2s ease;
}
.change-log__timeline .accordion-button.collapsed .change-log__chevron {
    transform: rotate(0deg);
}
.change-log__month-count {
    margin-left: auto;
    font-size: .875rem;
    font-weight: 500;
    color: #3B6FE0;
    white-space: nowrap;
}
.change-log__timeline .accordion-body {
    padding: 0;
}

/* ---- one activity row ---- */
.change-log__feed {
    list-style: none;
    margin: 0;
    padding: 0;
}
.change-log__entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .875rem;
    padding: .875rem 1.125rem;
    margin: 0;
}
.change-log__entry + .change-log__entry {
    border-top: 1px solid var(--bs-gray-200);
}
.change-log__entry:hover {
    background: #FAFBFC;
}

.change-log__avatar {
    width: 2.375rem;
    height: 2.375rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: .625rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .01em;
}
/* Stable per-person colour so a familiar name is findable by its tile. */
.change-log__avatar--1 { background: #FCE7F3; color: #9D174D; }
.change-log__avatar--2 { background: #DBEAFE; color: #1E40AF; }
.change-log__avatar--3 { background: #FEF3C7; color: #92400E; }
.change-log__avatar--4 { background: #D1FAE5; color: #065F46; }
.change-log__avatar--5 { background: #EDE9FE; color: #5B21B6; }
.change-log__avatar--6 { background: #CFFAFE; color: #155E75; }
.change-log__avatar--7 { background: #FFE4E6; color: #9F1239; }
.change-log__avatar--8 { background: #E2E8F0; color: #334155; }

.change-log__entry-main {
    min-width: 0;
}
.change-log__entry-head {
    display: flex;
    align-items: baseline;
    gap: .875rem;
}
.change-log__sentence {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.45;
    color: #4B5563;
    min-width: 0;
    overflow-wrap: anywhere;
}
.change-log__actor-name,
.change-log__subject {
    font-weight: 700;
    color: #111827;
}
/* Author no longer has an account; their past changes still stand. */
.change-log__archived {
    display: inline-block;
    margin-left: .25rem;
    padding: .0625rem .375rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: .25rem;
    background: #f8fafc;
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bs-gray-600);
    vertical-align: middle;
}
.change-log__time {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: .8125rem;
    color: #9CA3AF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- changed fields ---- */
.change-log__changes {
    margin-top: .1875rem;
}
.change-log__change {
    font-size: .875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.change-log__field-label {
    color: #6B7280;
}
.change-log__value {
    color: #15803D;
}
.change-log__value--old {
    color: #DC2626;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.change-log__value--empty {
    color: #9CA3AF;
}
.change-log__arrow {
    display: inline-block;
    margin: 0 .3125rem;
    color: #9CA3AF;
}

/* ---- strip above the feed ---- */
.change-log__strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 0 .125rem .5625rem;
}
.change-log__strip-count {
    font-size: .8125rem;
    color: var(--bs-gray-600);
    font-variant-numeric: tabular-nums;
}
.change-log__strip-btn {
    margin-left: auto;
    height: 1.875rem;
    padding: 0 .75rem;
    font-size: .78125rem;
    font-weight: 500;
    color: var(--bs-gray-600);
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: .4375rem;
    cursor: pointer;
}
.change-log__strip-btn:hover {
    color: var(--bs-gray-800);
    border-color: var(--bs-gray-300);
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .change-log__entry {
        gap: .625rem;
        padding: .75rem .875rem;
    }
    .change-log__avatar {
        width: 2rem;
        height: 2rem;
        font-size: .75rem;
    }
    .change-log__entry-head {
        flex-direction: column;
        gap: .125rem;
    }
    .change-log__time {
        margin-left: 0;
    }
    .change-log__sentence {
        font-size: .875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .change-log__chevron {
        transition: none;
    }
}
/* ──────────────────────────────────────────────
   Export Tray (IL-21022)
   Header dropdown — mirrors the notifications
   dropdown shape (.pc-h-item / .pc-h-dropdown).
   ────────────────────────────────────────────── */
.export-tray__placeholder {
    opacity: .6;
}
.export-tray__badge {
    font-size: .65rem;
    padding: .15rem .4rem;
}
.export-tray__menu {
    width: 380px;
    max-width: 92vw;
}
.export-tray__caption {
    font-size: .75rem;
    color: var(--bs-gray-600);
}
.export-tray__body {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding: .25rem 0;
}
.export-tray__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .625rem 1rem;
    border-bottom: 1px solid var(--bs-gray-100);
    transition: background-color .15s ease;
}
.export-tray__row:last-child {
    border-bottom: none;
}
.export-tray__row:hover {
    background-color: var(--bs-gray-100);
}
.export-tray__row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.export-tray__row-title {
    font-weight: 600;
    font-size: .85rem;
    color: var(--bs-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.export-tray__row-meta {
    font-size: .72rem;
    color: var(--bs-gray-600);
    margin-top: .15rem;
}
.export-tray__row-meta-dot {
    margin: 0 .25rem;
}
.export-tray__row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    flex: 0 0 auto;
}
.export-tray__status-pill {
    font-size: .65rem;
    font-weight: 500;
    padding: .25rem .5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.export-tray__spinner {
    width: .65rem;
    height: .65rem;
    border-width: 1.5px;
}
.export-tray__action {
    font-size: .72rem;
    padding: .15rem .55rem;
    line-height: 1.25;
}
.export-tray__error-ref {
    font-size: .68rem;
    color: var(--bs-danger);
    font-family: var(--bs-font-monospace, monospace);
}
.export-tray__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--bs-gray-600);
    text-align: center;
}
.export-tray__empty-icon {
    font-size: 1.75rem;
    color: var(--bs-gray-400);
    margin-bottom: .5rem;
}
.export-tray__empty-title {
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: .25rem;
}
.export-tray__empty-hint {
    font-size: .78rem;
    line-height: 1.4;
}
.export-tray__footer {
    padding: .5rem 1rem;
    font-size: .7rem;
    color: var(--bs-gray-600);
    text-align: center;
    border-top: 1px solid var(--bs-gray-200);
    background: var(--bs-gray-50, #f8f9fa);
}

/* Header notification bell (Livewire) */
.notification-bell__icon {
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
}
.notification-bell__badge {
    font-size: .65rem;
    padding: .15rem .4rem;
    min-width: 1.1rem;
}
.notification-bell__menu {
    width: 420px;
    max-width: 92vw;
    padding: 0;
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
    border-radius: .75rem;
    overflow: hidden;
    display: block;
}
.notification-bell__menu[x-cloak] {
    display: none !important;
}
.notification-bell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bs-gray-200);
    background: linear-gradient(180deg, #fff 0%, var(--bs-gray-50, #f8f9fa) 100%);
}
.notification-bell__header-main {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
.notification-bell__count-pill {
    font-size: .68rem;
    font-weight: 600;
}
.notification-bell__mark-all {
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.notification-bell__filter {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--bs-gray-200);
    background: #fff;
}
.notification-bell__filter-toggle {
    display: flex;
    gap: .35rem;
    padding: .2rem;
    border-radius: .5rem;
    background: var(--bs-gray-100, #f1f3f5);
}
.notification-bell__filter-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .4rem .65rem;
    border: none;
    border-radius: .4rem;
    background: transparent;
    color: var(--bs-gray-600, #6c757d);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.notification-bell__filter-btn:hover:not(:disabled) {
    color: var(--bs-gray-800, #343a40);
}
.notification-bell__filter-btn:disabled {
    cursor: default;
    opacity: 1;
}
.notification-bell__filter-btn--active {
    background: #fff;
    color: var(--bs-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}
.notification-bell__filter-btn--active:disabled {
    color: var(--bs-primary);
}
.notification-bell__filter-btn .ti {
    font-size: .9rem;
}
.notification-bell__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .12);
    color: var(--bs-primary);
    font-size: .65rem;
    font-weight: 700;
}
.notification-bell__filter-btn--active .notification-bell__filter-count {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .15);
}
.notification-bell__body {
    max-height: min(480px, calc(100vh - 240px));
    overflow-y: auto;
    padding: .5rem .75rem .75rem;
    background: var(--bs-gray-50, #f8f9fa);
    min-height: 12rem;
    position: relative;
}
.notification-bell__body--loading {
    min-height: 14rem;
}
.notification-bell__loading {
    display: block;
    width: 100%;
}
.notification-bell__content {
    width: 100%;
}
.notification-bell [x-cloak] {
    display: none !important;
}
.notification-bell__section-label {
    padding: .35rem .25rem .45rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-gray-500);
}
.notification-bell__thread {
    margin-bottom: .65rem;
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: .65rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.notification-bell__thread:not(.notification-bell__thread--grouped) .notification-bell__timeline-node {
    padding-top: .8rem;
}
.notification-bell__thread--grouped {
    border-left: 3px solid var(--bs-primary);
}
.notification-bell__thread--expanded .notification-bell__thread-items {
    background: linear-gradient(180deg, #fff 0%, var(--bs-gray-50, #f8f9fa) 100%);
}
.notification-bell__thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .65rem .45rem .75rem;
    background: var(--bs-gray-100);
    border-bottom: 1px solid var(--bs-gray-200);
}
.notification-bell__thread-header-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .35rem;
    min-width: 0;
    font-size: .7rem;
    font-weight: 600;
    color: var(--bs-gray-600);
}
.notification-bell__mark-group-read {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    border: 0;
    border-radius: .4rem;
    background: #fff;
    color: var(--bs-primary);
    font-size: .68rem;
    font-weight: 600;
    padding: .25rem .5rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.notification-bell__mark-group-read:hover {
    background: var(--bs-primary);
    color: #fff;
}
.notification-bell__mark-group-read .ti {
    font-size: .85rem;
}
.notification-bell__thread-header-icon {
    font-size: .8rem;
    color: var(--bs-primary);
}
.notification-bell__thread-header-dot {
    color: var(--bs-gray-400);
}
.notification-bell__thread-header-context {
    font-weight: 500;
    color: var(--bs-gray-700);
}
.notification-bell__thread-track {
    position: relative;
    padding: .25rem 0;
}
.notification-bell__thread-line {
    position: absolute;
    left: 1.7rem;
    top: 1.35rem;
    bottom: .85rem;
    width: 2px;
    background: var(--bs-gray-300);
    border-radius: 1px;
    z-index: 0;
}
.notification-bell__thread-items {
    position: relative;
    z-index: 1;
}
.notification-bell__timeline-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: 0 .65rem 0 .35rem;
}
.notification-bell__timeline-row--nested .notification-bell__item {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .03);
}
.notification-bell__timeline-row--toggle {
    align-items: center;
    padding-top: .15rem;
    padding-bottom: .55rem;
}
.notification-bell__item-wrap {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}
.notification-bell__item-wrap:hover .notification-bell__mark-read,
.notification-bell__item-wrap:focus-within .notification-bell__mark-read {
    opacity: 1;
    visibility: visible;
}
.notification-bell__mark-read {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: .7rem;
    border: 1px solid var(--bs-gray-200);
    border-radius: 50%;
    background: #fff;
    color: var(--bs-gray-500);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.notification-bell__mark-read:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.notification-bell__mark-read .ti {
    font-size: .9rem;
}
.notification-bell__mark-read .spinner-border {
    width: .75rem;
    height: .75rem;
    border-width: 1.5px;
}
@media (hover: none) {
    .notification-bell__mark-read {
        opacity: 1;
        visibility: visible;
    }
}
.notification-bell__timeline-node {
    width: 2.75rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: .75rem;
}
.notification-bell__timeline-row--nested .notification-bell__timeline-node {
    padding-top: .8rem;
}
.notification-bell__timeline-row--toggle .notification-bell__timeline-node {
    padding-top: 0;
}
.notification-bell__timeline-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--bs-gray-300);
    flex-shrink: 0;
}
.notification-bell__timeline-dot--nested {
    width: .42rem;
    height: .42rem;
    background: var(--bs-gray-500);
}
.notification-bell__timeline-dot--muted {
    background: var(--bs-gray-400);
    width: .4rem;
    height: .4rem;
}
.notification-bell__timeline-dot--unread {
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px var(--bs-primary), 0 0 0 3px rgba(var(--bs-primary-rgb, 13, 110, 253), .2);
}
.notification-bell__show-more {
    border: 0;
    background: transparent;
    padding: .25rem 0;
    font-size: .76rem;
    font-weight: 600;
    color: var(--bs-primary);
    text-align: left;
    cursor: pointer;
}
.notification-bell__show-more--rich {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .2rem 0;
    max-width: 100%;
}
.notification-bell__show-more--rich:hover {
    text-decoration: none;
}
.notification-bell__show-more--rich:hover .notification-bell__show-more-label {
    text-decoration: underline;
}
.notification-bell__show-more-label {
    line-height: 1.35;
    min-width: 0;
}
.notification-bell__avatar-stack {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.notification-bell__avatar-stack .notification-bell__actor-avatar--stack {
    position: relative;
}
.notification-bell__actor-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--bs-gray-200);
    background: transparent;
}
.notification-bell__actor-avatar--initials {
    background: var(--bs-gray-200, #e9ecef);
    color: var(--bs-gray-600, #6c757d);
}
.notification-bell__actor-avatar--md {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
}
.notification-bell__actor-avatar--sm {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
}
.notification-bell__actor-avatar--stack {
    width: 1.875rem;
    height: 1.875rem;
    min-width: 1.875rem;
    min-height: 1.875rem;
    margin-left: -.5rem;
}
.notification-bell__avatar-stack .notification-bell__actor-avatar--stack:first-child {
    margin-left: 0;
}
.notification-bell__actor-initials {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    user-select: none;
}
.notification-bell__actor-avatar--sm .notification-bell__actor-initials {
    font-size: .58rem;
}
.notification-bell__actor-avatar--stack .notification-bell__actor-initials {
    font-size: .62rem;
}
.notification-bell__actor-photo {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}
.notification-bell__actor-avatar--unread {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--bs-primary);
}
.notification-bell__show-more:hover {
    text-decoration: underline;
}
.notification-bell__show-more--less {
    color: var(--bs-gray-600);
}
.notification-bell__item-context {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .3rem;
    font-size: .72rem;
    font-weight: 500;
    color: var(--bs-gray-600);
}
.notification-bell__item-context .ti {
    font-size: .8rem;
    color: var(--bs-primary);
}
.notification-bell__item-meta {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .35rem;
    font-size: .7rem;
    color: var(--bs-gray-500);
}
.notification-bell__item-meta .ti {
    font-size: .75rem;
}
.notification-bell__item {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    border: 0;
    background: transparent;
    padding: .65rem .25rem .75rem 0;
    border-radius: .45rem;
    transition: background-color .15s ease;
}
.notification-bell__item:hover {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .06);
}
.notification-bell__item--primary {
    padding-top: .75rem;
}
.notification-bell__item--unread .notification-bell__item-title {
    color: var(--bs-gray-900);
}
.notification-bell__item-content {
    flex: 1 1 auto;
    min-width: 0;
}
.notification-bell__item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .2rem;
}
.notification-bell__item-title {
    font-size: .84rem;
    font-weight: 600;
    color: var(--bs-gray-900);
    line-height: 1.35;
}
.notification-bell__item-title p {
    margin: 0;
}
.notification-bell__item-time {
    flex-shrink: 0;
    font-size: .68rem;
    color: var(--bs-gray-500);
    white-space: nowrap;
}
.notification-bell__item-body {
    font-size: .78rem;
    color: var(--bs-gray-600);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-bell__item-body p {
    margin: 0;
}
.notification-bell__item-link {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    margin-top: .35rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--bs-primary);
}
.notification-bell__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
}
.notification-bell__empty-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--bs-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
.notification-bell__empty-icon {
    font-size: 1.35rem;
    color: var(--bs-gray-500);
}
.notification-bell__empty-title {
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: .25rem;
}
.notification-bell__empty-hint {
    font-size: .78rem;
    color: var(--bs-gray-600);
    line-height: 1.45;
    max-width: 18rem;
}
.notification-bell__footer {
    padding: .65rem 1rem;
    border-top: 1px solid var(--bs-gray-200);
    background: var(--bs-gray-50, #f8f9fa);
    text-align: center;
}
.notification-bell__view-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
}
.notification-bell__view-all:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}
.notification-bell__pulse-dot {
    position: absolute;
    top: .15rem;
    right: .1rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid #fff;
    animation: notification-bell-pulse 1.5s ease-in-out infinite;
}
@keyframes notification-bell-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .75; }
}
.notification-bell__filter--skeleton {
    pointer-events: none;
}
.notification-bell__skeleton-filter-btn {
    flex: 1;
    display: block;
    height: 2rem;
    border-radius: .4rem;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-filter-btn--active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    position: relative;
    overflow: hidden;
}
.notification-bell__skeleton-filter-btn--active::after {
    content: '';
    position: absolute;
    inset: .45rem 1.25rem;
    border-radius: .25rem;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton {
    width: 100%;
}
.notification-bell__skeleton-section + .notification-bell__skeleton-section {
    margin-top: .15rem;
}
.notification-bell__skeleton-section .notification-bell__section-label {
    padding-bottom: .35rem;
}
.notification-bell__skeleton-thread {
    pointer-events: none;
    border-left: 1px solid var(--bs-gray-200);
}
.notification-bell__skeleton-thread--grouped {
    border-left: 1px solid var(--bs-gray-200);
}
.notification-bell__skeleton-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.notification-bell__skeleton-thread-line {
    background: var(--bs-gray-200);
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-item {
    flex: 1 1 auto;
    min-width: 0;
    padding: .65rem .25rem .75rem 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.notification-bell__skeleton-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}
.notification-bell__skeleton-mark {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: .55rem;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bs-gray-300) 25%, var(--bs-gray-200) 50%, var(--bs-gray-300) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-dot--muted {
    width: .4rem;
    height: .4rem;
}
.notification-bell__skeleton-pill {
    flex-shrink: 0;
    width: 4.5rem;
    height: 1.35rem;
    border-radius: .4rem;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-line {
    display: block;
    height: .65rem;
    border-radius: .25rem;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-line--section { width: 3.5rem; height: .55rem; }
.notification-bell__skeleton-line--thread-header { width: 55%; height: .55rem; }
.notification-bell__skeleton-line--context { width: 45%; height: .5rem; }
.notification-bell__skeleton-line--title { flex: 1 1 auto; min-width: 0; }
.notification-bell__skeleton-line--time { width: 2.5rem; height: .5rem; flex-shrink: 0; }
.notification-bell__skeleton-line--body { width: 100%; }
.notification-bell__skeleton-line--meta { width: 38%; height: .5rem; }
.notification-bell__skeleton-line--show-more { width: 11rem; height: .55rem; max-width: 100%; }
.notification-bell__show-more--skeleton {
    pointer-events: none;
    padding: .15rem 0 .55rem;
}
.notification-bell__skeleton-avatar {
    display: inline-flex;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    width: 1.875rem;
    height: 1.875rem;
    min-width: 1.875rem;
    min-height: 1.875rem;
    border-radius: 50%;
    margin-left: -.5rem;
    border: 2px solid #fff;
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: notification-bell-shimmer 1.2s ease-in-out infinite;
}
.notification-bell__skeleton-avatar:first-child {
    margin-left: 0;
}
.notification-bell__skeleton-avatar--item {
    margin-left: 0;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
}
@keyframes notification-bell-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.notification-bell__empty--hint {
    padding: 1.5rem 1rem;
}
.notification-bell__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .65rem .75rem .25rem;
    margin-top: .25rem;
}
.notification-bell__page-btn {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: .4rem;
    background: #fff;
    color: var(--bs-gray-700);
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .55rem;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.notification-bell__page-btn:hover:not(:disabled) {
    background: var(--bs-gray-100);
    border-color: var(--bs-gray-400);
}
.notification-bell__page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.notification-bell__page-info {
    font-size: .7rem;
    color: var(--bs-gray-600);
    white-space: nowrap;
}

/* Site-visits calendar: keep "+N more" link visible and pinned to the bottom of
   the day cell so it never overflows into the next row. */
#calendar-container .fc .fc-daygrid-day-frame {
    position: relative;
    overflow: hidden;
}
#calendar-container .fc .fc-daygrid-day-events {
    position: static;
    padding-bottom: 20px;
}
#calendar-container .fc .fc-daygrid-day-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0 !important;
    padding: 2px 4px 3px;
    background: #fff;
    font-size: .85em;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#calendar-container .fc .fc-daygrid-more-link {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Percentage width utilities (5% steps) — replaces inline style="width:X%"
   on progress bars and any other element needing a non-Bootstrap percentage width. */
.w-pct-0   { width: 0%; }
.w-pct-5   { width: 5%; }
.w-pct-10  { width: 10%; }
.w-pct-15  { width: 15%; }
.w-pct-20  { width: 20%; }
.w-pct-25  { width: 25%; }
.w-pct-30  { width: 30%; }
.w-pct-35  { width: 35%; }
.w-pct-40  { width: 40%; }
.kpi-filter-badge { font-size: 10px; }

.w-pct-45  { width: 45%; }
.w-pct-50  { width: 50%; }
.w-pct-55  { width: 55%; }
.w-pct-60  { width: 60%; }
.w-pct-65  { width: 65%; }
.w-pct-70  { width: 70%; }
.w-pct-75  { width: 75%; }
.w-pct-80  { width: 80%; }
.w-pct-85  { width: 85%; }
.w-pct-90  { width: 90%; }
.w-pct-95  { width: 95%; }
.w-pct-100 { width: 100%; }

/* Real-time notification toast stack (Livewire) */
.notification-toast-stack {
    position: fixed;
    top: 4.75rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}
.notification-toast {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .75rem;
    align-items: start;
    padding: .95rem .85rem .7rem 0;
    border-radius: .9rem;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, .14),
        0 2px 8px rgba(15, 23, 42, .06),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    overflow: hidden;
    pointer-events: auto;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.notification-toast-host {
    display: contents;
}
.notification-realtime-bridge {
    display: none;
}
.notification-toast--clickable {
    cursor: pointer;
}
.notification-toast--clickable:hover {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), .25);
    transform: translateY(-1px);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, .16),
        0 4px 12px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, .85);
}
.notification-toast__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-left: .9rem;
    border-radius: .7rem;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .12);
    color: var(--bs-primary);
    flex-shrink: 0;
}
.notification-toast__icon {
    font-size: 1.15rem;
    line-height: 1;
}
.notification-toast__content {
    min-width: 0;
    padding-top: .05rem;
}
.notification-toast__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
}
.notification-toast__time {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-primary);
    flex-shrink: 0;
}
.notification-toast__context {
    font-size: .6875rem;
    font-weight: 500;
    color: #64748b;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notification-toast__actor {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .3rem;
    font-size: .75rem;
    font-weight: 500;
    color: #475569;
}
.notification-toast__actor .ti {
    font-size: .9rem;
    color: var(--bs-primary);
}
.notification-toast__title {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}
.notification-toast__body {
    margin-top: .35rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: #64748b;
    white-space: pre-line;
}
.notification-toast__action {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .6rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--bs-primary);
}
.notification-toast__action .ti {
    font-size: .85rem;
}
.notification-toast__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: -.1rem;
    margin-right: .2rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: #94a3b8;
    transition: background-color .15s ease, color .15s ease;
}
.notification-toast__close:hover {
    background: rgba(15, 23, 42, .06);
    color: #475569;
}
.notification-toast__close .ti {
    font-size: 1rem;
    line-height: 1;
}
.notification-toast__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .1);
}
.notification-toast__progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: var(--bs-primary);
    animation: notification-toast-progress var(--toast-duration, 7000ms) linear forwards;
}
.notification-toast__progress-bar--paused {
    animation-play-state: paused;
}
.notification-toast-enter {
    transition: opacity .28s ease, transform .28s ease;
}
.notification-toast-enter-start {
    opacity: 0;
    transform: translateX(1.25rem) scale(.98);
}
.notification-toast-enter-end {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.notification-toast-leave {
    transition: opacity .24s ease, transform .24s ease;
}
.notification-toast-leave-start {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.notification-toast-leave-end {
    opacity: 0;
    transform: translateX(1rem) scale(.98);
}
@keyframes notification-toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
@media (max-width: 575.98px) {
    .notification-toast-stack {
        top: auto;
        bottom: 1rem;
        right: .75rem;
        left: .75rem;
        width: auto;
    }
}

/* Reusable region / company-site filter box for legacy reports (IL-20960) */
.report-filter-box { display: contents; }

/* Bootstrap's .row > * gutters never reach cols inside the display:contents wrapper — re-apply via the inherited row vars */
.report-filter-box > * {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.filter-scroll-list {
    max-height: 250px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.filter-scroll-list .form-check { margin-bottom: 0.5rem; }
.filter-scroll-list .form-check:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
    .filter-scroll-list { max-height: 180px; }
}

@media (max-width: 767.98px) {
    .filter-scroll-list { max-height: 150px; }
}

/* ============================================================
   Inspection Health Check report
   ============================================================ */
.ihc-table { font-size: 0.8125rem; }
.ihc-table th { white-space: nowrap; font-weight: 600; }
.ihc-table--loading { opacity: 0.45; pointer-events: none; transition: opacity 0.15s ease; }

.ihc-table-overlay {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    z-index: 5;
}

.ihc-search-spinner {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    color: #6c757d;
}

.ihc-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}
.ihc-badge--complete { background: #e7f4ec; color: #1f7a4d; }
.ihc-badge--partial  { background: #fbf0d9; color: #9a6a10; }

.ihc-skeleton {
    background: linear-gradient(90deg, #eef1f5 25%, #e2e7ee 37%, #eef1f5 63%);
    background-size: 400% 100%;
    border-radius: 6px;
    animation: ihc-skeleton-shimmer 1.4s ease infinite;
}
.ihc-skeleton--label { height: 12px; width: 60%; margin-bottom: 8px; }
.ihc-skeleton--input { height: 32px; width: 100%; }
.ihc-skeleton--card  { height: 90px; width: 100%; }
.ihc-skeleton--row   { height: 28px; width: 100%; margin-bottom: 8px; }

@keyframes ihc-skeleton-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Asset attribute photo gallery — Bootstrap 5.1 has no object-fit utility, hence the custom tiles. */
.attr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.attr-gallery__tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f5;
}

.attr-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.attr-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: rgba(33, 37, 41, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.attr-gallery__tile:hover .attr-gallery__img,
.attr-gallery__tile:focus-visible .attr-gallery__img {
    transform: scale(1.06);
}

.attr-gallery__tile:hover .attr-gallery__zoom,
.attr-gallery__tile:focus-visible .attr-gallery__zoom {
    opacity: 1;
}

.attr-gallery__tile:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .attr-gallery__img,
    .attr-gallery__zoom {
        transition: none;
    }

    .attr-gallery__tile:hover .attr-gallery__img,
    .attr-gallery__tile:focus-visible .attr-gallery__img {
        transform: none;
    }
}

/* =====================================================
   Manage Preferences — option columns + save overlay
   ===================================================== */
.pref-options {
    position: relative;
}

.pref-options__scroll {
    max-height: 300px;
    overflow-y: auto;
}

.pref-options__overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .375rem;
    background: rgba(255, 255, 255, .72);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--bs-gray-700, #495057);
}

/* Livewire toggles the busy class for the whole save round-trip. */
.pref-options--busy .pref-options__overlay {
    display: flex;
}

.pref-options--busy .row {
    opacity: .55;
}

/* Quick search result lines - one size for the dropdown and the full results table. */
.search-result-text {
    font-size: 0.7rem;
}

.search-result-group {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}
