/* PEM registry list + detail — shared Maintenance-style patterns */

.maintix-registry-card.pc-module .registry-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex-wrap: wrap;
}

.maintix-registry-card.pc-module .registry-actions.registry-actions-nowrap {
    flex-wrap: nowrap;
}

.maintix-registry-card.pc-module .registry-action-cell,
.maintix-registry-card.pc-module td.registry-action-cell {
    white-space: nowrap;
}

.maintix-registry-card.pc-module .registry-icon-action.text-success {
    color: #16a34a;
}

.maintix-registry-card.pc-module .registry-icon-action.text-danger {
    color: #dc2626;
}

.maintix-registry-card.pc-module .registry-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.maintix-registry-card.pc-module .registry-loading-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f766e;
    letter-spacing: 0.01em;
}

.maintix-registry-card.pc-module .registry-grid-host.registry-grid-refreshing .registry-data-grid {
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.maintix-registry-card.pc-module .filter-bar {
    border-color: #e2e8f0;
}

.maintix-registry-card.pc-module .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.maintix-registry-card.pc-module .filter-group-location {
    min-width: 260px;
}

.maintix-registry-card.pc-module .filter-group-search {
    min-width: min(310px, 100%);
    flex: 1 1 220px;
}

.maintix-registry-card.pc-module .filter-group .form-label {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--ex-navy, #0f172a);
}

.maintix-registry-card.pc-module .filter-group .portal-input,
.maintix-registry-card.pc-module .filter-group select {
    min-height: 2.45rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

/* Shared Clear All class (theme colors live in pem-expenses.css under is-pem-module) */
.maintix-registry-card.pc-module .pc-pem-list-clear {
    min-height: 2.45rem;
    border-radius: 10px;
}

.maintix-registry-card.pc-module .pc-returned-list {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
}

/* PEM detail views */
.pem-detail.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: none;
}

.pem-detail .workflow-stepper-card {
    margin: 0;
}

.pem-detail .pc-detail-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pem-detail .pc-detail-detail-actions .btn-approval-action,
.pem-detail .pc-detail-detail-actions .btn-outline {
    min-height: 40px;
}

@media (max-width: 860px) {
    .maintix-registry-card.pc-module .filter-group,
    .maintix-registry-card.pc-module .filter-group-location,
    .maintix-registry-card.pc-module .filter-group-search {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .pem-detail .pc-detail-detail-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .pem-detail .pc-detail-detail-actions .btn-approval-action,
    .pem-detail .pc-detail-detail-actions .btn-outline {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .maintix-registry-card.pc-module {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .maintix-registry-card.pc-module .filter-bar > .d-flex,
    .maintix-registry-card.pc-module .pc-inline-filters > .d-flex,
    .maintix-registry-card.pc-module .filter-bar .d-flex.flex-wrap,
    .maintix-registry-card.pc-module .pc-inline-filters .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
    }

    .maintix-registry-card.pc-module .filter-group,
    .maintix-registry-card.pc-module .filter-group-location,
    .maintix-registry-card.pc-module .filter-group-search {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }

    .maintix-registry-card.pc-module .filter-group .portal-input,
    .maintix-registry-card.pc-module .filter-group select,
    .maintix-registry-card.pc-module .pc-pem-list-clear {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .maintix-registry-card.pc-module .portal-card-header,
    .maintix-registry-card.pc-module .master-header,
    .maintix-registry-card.pc-module .registry-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .maintix-registry-card.pc-module .search-container,
    .maintix-registry-card.pc-module .pc-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .maintix-registry-card.pc-module .search-container > .btn-submit,
    .maintix-registry-card.pc-module .search-container > .btn-outline,
    .maintix-registry-card.pc-module .pc-header-actions > .btn-submit,
    .maintix-registry-card.pc-module .pc-header-actions > .btn-outline {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
    }

    .maintix-registry-card.pc-module .registry-grid-host,
    .maintix-registry-card.pc-module .table-wrap,
    .maintix-registry-card.pc-module .table-responsive {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .maintix-registry-card.pc-module .rz-data-grid:not(.dashboard-pending-items-grid) > .rz-data-grid-data {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .maintix-registry-card.pc-module .registry-icon-action {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .maintix-registry-card.pc-module .pc-centered-loader,
    .maintix-registry-card.pc-module .pc-grid-busy-overlay {
        visibility: visible !important;
        opacity: 1;
    }

    .pc-general-ledger-registry .pc-gl-ledger-shell {
        max-height: min(70dvh, calc(100dvh - 12rem));
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .pc-general-ledger-registry .pc-gl-total-remaining {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-general-ledger-registry .pc-gl-total-remaining-value {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .maintix-registry-card.pc-module {
        --maintix-list-max-height: min(52rem, calc(100dvh - 9.5rem));
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .maintix-registry-card.pc-module .search-container > .btn-submit,
    .maintix-registry-card.pc-module .search-container > .btn-outline,
    .maintix-registry-card.pc-module .pc-header-actions > .btn-submit,
    .maintix-registry-card.pc-module .pc-header-actions > .btn-outline {
        flex: 1 1 100%;
        width: 100%;
    }

    .maintix-registry-card.pc-module .registry-title-row h2,
    .maintix-registry-card.pc-module .master-header h2,
    .maintix-registry-card.pc-module .master-header h3 {
        font-size: 1.05rem;
    }
}

/* Work Order list — parent/child hierarchy */
.pc-work-order-registry .pc-wo-hierarchy-grid {
    font-size: 0.8rem;
}

/* Shared registry Detail column — compact text + ellipsis; full value via title on hover */
.maintix-registry-card.pc-module td.pc-list-detail-col,
.maintix-registry-card.pc-module .pc-list-detail-col {
    max-width: 300px;
}

.maintix-registry-card.pc-module td.pc-list-detail-col .rz-cell-data,
.maintix-registry-card.pc-module .pc-list-detail-col .rz-cell-data {
    overflow: hidden;
    max-width: 100%;
}

.maintix-registry-card.pc-module .pc-list-detail-cell,
.maintix-registry-card.pc-module td.pc-list-detail-col .pc-list-detail-cell {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    line-height: 1.35;
    color: inherit;
    cursor: default;
}

/*
 * WO (+ SR) hierarchy lists: content-sized body, pinned pager.
 * Do NOT floor .rz-data-grid-data with a large min-height — that prevents the
 * body from shrinking inside overflow:hidden hosts and clips .rz-pager below
 * the visible card (empty white space under ~10 rows, no pagination).
 * Cap height so ~10 rows + pager fit; body is the only scrollport.
 */
.maintix-bento-shell .pc-work-order-registry.pc-module,
.maintix-bento-shell .pc-services-request-registry.pc-module {
    --maintix-list-max-height: min(58rem, calc(100dvh - 10rem));
}

.maintix-bento-shell .pc-work-order-registry.pc-module .registry-grid-host,
.maintix-bento-shell .pc-services-request-registry.pc-module .registry-grid-host {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: var(--maintix-list-max-height) !important;
    overflow: hidden !important;
}

.maintix-bento-shell .pc-work-order-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid,
.maintix-bento-shell .pc-work-order-registry.pc-module .registry-grid-host > .rz-data-grid,
.maintix-bento-shell .pc-services-request-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid,
.maintix-bento-shell .pc-services-request-registry.pc-module .registry-grid-host > .rz-data-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.maintix-bento-shell .pc-work-order-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid:not(.dashboard-pending-items-grid) > .rz-data-grid-data,
.maintix-bento-shell .pc-services-request-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid:not(.dashboard-pending-items-grid) > .rz-data-grid-data {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(var(--maintix-list-max-height) - 3.5rem) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.maintix-bento-shell .pc-work-order-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid > .rz-pager,
.maintix-bento-shell .pc-services-request-registry.pc-module .pc-wo-hierarchy-grid.rz-data-grid > .rz-pager {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 3;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.pc-work-order-registry .pc-wo-hierarchy-grid .rz-grid-table td,
.pc-work-order-registry .pc-wo-hierarchy-grid .rz-grid-table th,
.pc-work-order-registry .pc-wo-hierarchy-grid .rz-data-grid-data,
.pc-work-order-registry .pc-wo-hierarchy-grid .rz-column-title {
    font-size: 0.8rem;
}

.pc-work-order-registry .pc-wo-list-selection-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pc-opening-registry .pc-opening-list-selection-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pc-advance-registry .pc-wo-list-selection-bar,
.pc-advance-expense-registry .pc-wo-list-selection-bar,
.pc-staff-advance-registry .pc-wo-list-selection-bar,
.pc-staff-advance-expense-registry .pc-wo-list-selection-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pc-advance-registry .pc-wo-list-selection-meta,
.pc-advance-expense-registry .pc-wo-list-selection-meta,
.pc-staff-advance-registry .pc-wo-list-selection-meta,
.pc-staff-advance-expense-registry .pc-wo-list-selection-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #334155;
    font-size: 0.88rem;
}

.pc-advance-registry .pc-wo-list-selection-actions,
.pc-advance-expense-registry .pc-wo-list-selection-actions,
.pc-staff-advance-registry .pc-wo-list-selection-actions,
.pc-staff-advance-expense-registry .pc-wo-list-selection-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.pc-advance-registry .pc-req-select-col,
.pc-advance-registry td.pc-req-select-col,
.pc-advance-registry th.pc-req-select-col,
.pc-advance-expense-registry .pc-req-select-col,
.pc-advance-expense-registry td.pc-req-select-col,
.pc-advance-expense-registry th.pc-req-select-col,
.pc-staff-advance-registry .pc-req-select-col,
.pc-staff-advance-registry td.pc-req-select-col,
.pc-staff-advance-registry th.pc-req-select-col,
.pc-staff-advance-expense-registry .pc-req-select-col,
.pc-staff-advance-expense-registry td.pc-req-select-col,
.pc-staff-advance-expense-registry th.pc-req-select-col {
    width: 5.5rem;
    text-align: center;
    vertical-align: middle;
}

.pc-advance-registry .pc-check-all-header,
.pc-advance-expense-registry .pc-check-all-header,
.pc-staff-advance-registry .pc-check-all-header,
.pc-staff-advance-expense-registry .pc-check-all-header {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    color: #475569;
    white-space: nowrap;
}

.pc-work-order-registry .pc-wo-list-selection-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #334155;
    font-size: 0.88rem;
}

.pc-opening-registry .pc-opening-list-selection-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #334155;
    font-size: 0.88rem;
}

.pc-work-order-registry .pc-wo-list-selection-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.pc-opening-registry .pc-opening-list-selection-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.pc-opening-registry .pc-req-select-col,
.pc-opening-registry td.pc-req-select-col,
.pc-opening-registry th.pc-req-select-col {
    width: 5.5rem;
    text-align: center;
    vertical-align: middle;
}

.pc-opening-registry .pc-check-all-header {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    color: #475569;
    white-space: nowrap;
}

.pc-opening-registry .registry-icon-action.text-warning,
.pc-opening-registry .pc-icon-btn.text-warning {
    color: #ca8a04;
}

.pc-work-order-registry .pc-wo-hierarchy-grid .rz-data-row > td:first-child,
.pc-work-order-registry .pc-wo-hierarchy-grid .rz-data-row > .pc-wo-expand-col {
    vertical-align: middle;
}

.pc-work-order-registry .pc-wo-child-panel {
    margin: 0.35rem 0.75rem 0.75rem 1.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0f766e;
    border-radius: 10px;
    background: #f8fafc;
}

.pc-work-order-registry .pc-wo-child-loading {
    padding: 0.75rem 0;
}

.pc-work-order-registry .pc-wo-child-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.pc-work-order-registry .pc-wo-child-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
}

.pc-work-order-registry .pc-wo-child-bulk-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pc-work-order-registry .pc-wo-child-table {
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.78rem;
}

.pc-work-order-registry .pc-wo-child-table thead th {
    font-size: 0.7rem;
    background: #f1f5f9;
}

.pc-work-order-registry .pc-wo-child-table tbody td {
    font-size: 0.78rem;
}

.pc-work-order-registry .pc-wo-child-table tbody tr.pc-wo-child-row-actionable {
    background: #ffffff;
}

.pc-work-order-registry .pc-wo-child-table tbody tr:not(.pc-wo-child-row-actionable) {
    background: #f8fafc;
    color: #64748b;
}

.pc-work-order-registry .pc-line-select-col,
.pc-work-order-registry td.pc-line-select-col,
.pc-work-order-registry th.pc-line-select-col {
    width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.pc-work-order-registry .registry-icon-action.text-warning,
.pc-work-order-registry .pc-icon-btn.text-warning {
    color: #ca8a04;
}

/* Services Request list — PEM WO-style selection bar + child panel + denser columns */
.pc-services-request-registry .pc-wo-list-selection-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pc-services-request-registry .pc-wo-list-selection-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #334155;
    font-size: 0.88rem;
}

.pc-services-request-registry .pc-wo-list-selection-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.pc-services-request-registry .pc-wo-child-panel {
    margin: 0.35rem 0.75rem 0.75rem 1.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0f766e;
    border-radius: 10px;
    background: #f8fafc;
}

.pc-services-request-registry .pc-wo-child-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.pc-services-request-registry .pc-wo-child-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    margin-right: 0.35rem;
}

.pc-services-request-registry .pc-wo-child-bulk-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Ghost pills: label then icon (icon on the right), match WO child toolbar */
.pc-work-order-registry .pc-wo-child-bulk-actions .btn-outline,
.pc-services-request-registry .pc-wo-child-bulk-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 0.4rem;
}

.pc-services-request-registry .pc-line-select-col,
.pc-services-request-registry td.pc-line-select-col,
.pc-services-request-registry th.pc-line-select-col {
    width: 2.5rem;
    min-width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

/*
 * Custom checkboxes (WO + SR): thin light-gray border, subtle 3px radius.
 * appearance:none beats OS/native + Maintenance global checkbox styles.
 */
.pc-work-order-registry .pc-pem-list-grid input[type="checkbox"],
.pc-work-order-registry .pc-wo-child-table input[type="checkbox"],
.pc-work-order-registry .pc-line-select-col input[type="checkbox"],
.pc-services-request-registry .pc-pem-list-grid input[type="checkbox"],
.pc-services-request-registry .pc-wo-child-table input[type="checkbox"],
.pc-services-request-registry .pc-sr-child-table input[type="checkbox"],
.pc-services-request-registry .pc-line-select-col input[type="checkbox"],
.pc-services-request-registry .pc-sr-child-select input[type="checkbox"],
.maintix-bento-shell .pc-services-request-registry input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    min-height: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    cursor: pointer;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 3px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    accent-color: #2563eb;
}

.pc-work-order-registry .pc-pem-list-grid input[type="checkbox"]:checked,
.pc-work-order-registry .pc-wo-child-table input[type="checkbox"]:checked,
.pc-work-order-registry .pc-line-select-col input[type="checkbox"]:checked,
.pc-services-request-registry .pc-pem-list-grid input[type="checkbox"]:checked,
.pc-services-request-registry .pc-wo-child-table input[type="checkbox"]:checked,
.pc-services-request-registry .pc-sr-child-table input[type="checkbox"]:checked,
.pc-services-request-registry .pc-line-select-col input[type="checkbox"]:checked,
.pc-services-request-registry .pc-sr-child-select input[type="checkbox"]:checked,
.maintix-bento-shell .pc-services-request-registry input[type="checkbox"]:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") !important;
    background-size: 0.7rem 0.7rem !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Expand toggle: small circular control (WO style) — SR is not under is-pem-module */
.pc-services-request-registry.pc-module .pc-pem-list-grid .rz-col-icon,
.pc-services-request-registry.pc-module .pc-pem-list-grid th.rz-col-icon,
.pc-services-request-registry.pc-module .pc-pem-list-grid td.rz-col-icon {
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    max-width: 2.75rem !important;
    text-align: center;
    vertical-align: middle;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
}

.pc-services-request-registry.pc-module .pc-pem-list-grid .rz-col-icon .rz-button {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
}

.pc-services-request-registry.pc-module .pc-pem-list-grid .rz-col-icon .rz-button:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

.pc-services-request-registry .pc-sr-child-table,
.pc-services-request-registry .pc-wo-child-table {
    margin: 0;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.78rem;
}

.pc-services-request-registry .pc-sr-child-table thead th,
.pc-services-request-registry .pc-wo-child-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9 !important;
}

.pc-services-request-registry .pc-sr-child-table tbody td,
.pc-services-request-registry .pc-wo-child-table tbody td {
    font-size: 0.78rem;
    color: #0f172a;
    background: #fff;
}

.pc-services-request-registry .pc-sr-child-table tbody tr.pc-wo-child-row-actionable {
    background: #ffffff;
}

.pc-services-request-registry .pc-sr-child-table tbody tr:not(.pc-wo-child-row-actionable) {
    background: #f8fafc;
    color: #64748b;
}

.pc-services-request-registry .pc-sr-child-select {
    width: 2.5rem;
    min-width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.pc-services-request-registry .pc-sr-child-location {
    width: 18%;
}

.pc-services-request-registry .pc-sr-child-step,
.pc-services-request-registry .pc-sr-child-status {
    width: 8.5rem;
}

.pc-services-request-registry .pc-sr-child-amount {
    width: 6.5rem;
}

.pc-services-request-registry .pc-sr-child-actions {
    width: 7rem;
    white-space: nowrap;
}

.pc-services-request-registry .pc-sr-child-table .pc-list-detail-cell {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-services-request-registry .pc-icon-btn.text-warning {
    color: #ca8a04;
}

@media (max-width: 860px) {
    .pc-work-order-registry .pc-wo-list-selection-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-work-order-registry .pc-wo-list-selection-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .pc-work-order-registry .pc-wo-list-selection-actions .btn-outline {
        flex: 0 1 auto;
        justify-content: center;
    }

    .pc-services-request-registry .pc-wo-list-selection-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-services-request-registry .pc-wo-list-selection-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .pc-services-request-registry .pc-wo-list-selection-actions .btn-outline {
        flex: 0 1 auto;
        justify-content: center;
    }

    .pc-opening-registry .pc-opening-list-selection-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-opening-registry .pc-opening-list-selection-actions {
        width: 100%;
    }

    .pc-opening-registry .pc-opening-list-selection-actions .btn-outline {
        flex: 1 1 auto;
        justify-content: center;
    }

    .pc-work-order-registry .pc-wo-child-panel {
        margin-left: 0.5rem;
        margin-right: 0.35rem;
        padding: 0.7rem;
    }
}

/* General Ledger — scrollable groups + pinned Total Remaining footer
   (must not use registry-grid-host: overflow:hidden clips the footer) */
.pc-general-ledger-registry .pc-gl-ledger-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    max-height: var(--maintix-list-max-height, calc(100vh - 14rem));
    margin: 0 0 0.75rem;
    padding: 0 0.7rem;
    box-sizing: border-box;
    overflow: hidden;
}

.pc-general-ledger-registry .pc-gl-ledger-shell.registry-grid-refreshing .registry-data-grid {
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.pc-general-ledger-registry .pc-gl-ledger-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}

/* Let the shell scroll; don't nest a second max-height scrollport that eats the footer */
.pc-general-ledger-registry .pc-gl-ledger-scroll .table-wrap,
.pc-general-ledger-registry .pc-gl-ledger-scroll .rz-data-grid,
.maintix-bento-shell .pc-general-ledger-registry .pc-gl-ledger-scroll .table-wrap,
.maintix-bento-shell .pc-general-ledger-registry .pc-gl-ledger-scroll .rz-data-grid {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.maintix-bento-shell .pc-general-ledger-registry .pc-gl-ledger-scroll .rz-data-grid > .rz-data-grid-data {
    max-height: none !important;
    overflow: visible !important;
}

.pc-general-ledger-registry .pc-gl-total-remaining {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.06);
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.pc-general-ledger-registry .pc-gl-total-remaining-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pc-general-ledger-registry .pc-gl-total-remaining-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-left: auto;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 860px) {
    .pc-general-ledger-registry .pc-gl-ledger-shell {
        max-height: var(--maintix-list-max-height, calc(100vh - 11.5rem));
        padding: 0 0.65rem;
        margin-bottom: 0.75rem;
    }

    .pc-general-ledger-registry .pc-gl-total-remaining {
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
    }

    .pc-general-ledger-registry .pc-gl-total-remaining-value {
        font-size: 1rem;
        width: 100%;
    }
}

/* Branding expand child: show all Excel rows via pager; don't inherit list max-height clip */
.pc-branding-registry .pc-branding-child-panel {
    margin: 0.4rem 0.7rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.pc-branding-registry .pc-branding-child-title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.pc-branding-registry .pc-branding-child-grid-host,
.pc-branding-detail .pc-branding-excel-grid-host,
.maintix-bento-shell .pc-branding-registry .pc-branding-child-grid-host,
.maintix-bento-shell .pc-branding-detail .pc-branding-excel-grid-host {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

.pc-branding-registry .pc-branding-child-grid,
.pc-branding-detail .pc-branding-excel-grid-host > .rz-data-grid,
.maintix-bento-shell .pc-branding-registry .pc-branding-child-grid,
.maintix-bento-shell .pc-branding-detail .pc-branding-excel-grid-host > .rz-data-grid {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Dense + full-bleed registry hosts under PEM shell */
.maintix-bento-shell.is-pem-module .maintix-registry-card.pc-module,
.maintix-bento-shell.is-pem-module .pem-detail.detail-stack {
    width: 100%;
    max-width: none;
}

/* --------------------------------------------------------------------------
   PEM list/registry pages only: flush main-pane L/R (match topbar bleed).
   Uses :has(...) so Expense Dashboard (.pc-expenses-dash) keeps its gutters.
   -------------------------------------------------------------------------- */
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.maintix-registry-card),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pc-pending-list-page),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-workflow-panel.portal-card),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-expense-panel.portal-card),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-meter-list-panel),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.master-panel.pc-module),
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.portal-card.master-panel) {
    --pem-main-gutter: 0;
}

.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.maintix-registry-card) .maintix-registry-card.portal-card,
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pc-pending-list-page) .pc-pending-list-page.portal-card,
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-workflow-panel.portal-card) .pem-workflow-panel.portal-card,
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-expense-panel.portal-card) .pem-expense-panel.portal-card,
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.pem-meter-list-panel) .pem-meter-list-panel,
.maintix-bento-shell.is-pem-module.is-maintix-expenses-nav:has(.portal-card.master-panel) .portal-card.master-panel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}

.maintix-bento-shell.is-pem-module .maintix-registry-card.pc-module .registry-title-row {
    gap: 0.5rem;
}

.maintix-bento-shell.is-pem-module .maintix-registry-card.pc-module .pc-returned-list {
    margin: 0.35rem 0 0;
    padding-left: 0.85rem;
}
