/* Runtime professional page shell: reusable for PM, ISO, Hospital, and future apps. */

.runtime-page {
    --runtime-accent: #2563eb;
    --runtime-accent-2: #22d3ee;
    --runtime-accent-soft: rgba(37, 99, 235, .10);
    --runtime-panel: #ffffff;
    --runtime-border: #e2e8f0;
    --runtime-muted: #64748b;
    --runtime-dark: #0f172a;
}

.runtime-app-pm,
.theme-pm {
    --runtime-accent: #0f766e;
    --runtime-accent-2: #14b8a6;
    --runtime-accent-soft: rgba(15, 118, 110, .11);
}

.runtime-page {
    color: var(--runtime-dark);
}

.runtime-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--runtime-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, var(--runtime-accent-soft), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    margin-bottom: 18px;
}

.runtime-layout-marketing .runtime-page-header {
    padding: 52px 34px;
    min-height: 280px;
    align-items: center;
}

.runtime-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--runtime-accent);
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.runtime-page-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--runtime-dark);
    font-size: clamp(1.45rem, 2.8vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.runtime-layout-marketing .runtime-page-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    max-width: 950px;
}

.runtime-page-header p {
    max-width: 980px;
    margin: 10px 0 0;
    color: var(--runtime-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.runtime-page-header-actions {
    white-space: nowrap;
}

.runtime-filter-card,
.runtime-action-bar,
.runtime-grid-card,
.runtime-upload-card,
.runtime-info-panel,
.runtime-shortcut-card {
    border: 1px solid var(--runtime-border);
    border-radius: 18px;
    background: var(--runtime-panel);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.runtime-filter-card {
    padding: 16px;
    margin-bottom: 18px;
}

.runtime-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.runtime-filter-field label {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 5px;
}

.runtime-filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.runtime-shortcut-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.runtime-shortcut-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--runtime-dark);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.runtime-shortcut-card:hover {
    color: var(--runtime-dark);
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .35);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .10);
}

.runtime-shortcut-card span {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--runtime-accent-soft);
    color: var(--runtime-accent);
    font-size: 1.3rem;
}

.runtime-shortcut-card strong {
    font-size: .98rem;
    font-weight: 850;
}

.runtime-shortcut-card small {
    color: var(--runtime-muted);
    line-height: 1.5;
}

.runtime-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.runtime-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--runtime-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    position: relative;
    overflow: hidden;
}

.runtime-kpi-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--runtime-accent);
}

.runtime-kpi-danger:before { background: #dc2626; }
.runtime-kpi-warning:before { background: #f59e0b; }
.runtime-kpi-success:before { background: #16a34a; }
.runtime-kpi-secondary:before { background: #64748b; }

.runtime-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--runtime-accent);
    background: var(--runtime-accent-soft);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.runtime-kpi-card span {
    display: block;
    color: var(--runtime-muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.runtime-kpi-card strong {
    display: block;
    margin-top: 2px;
    color: var(--runtime-dark);
    font-size: 1.55rem;
    line-height: 1.05;
}

.runtime-kpi-card small {
    display: block;
    margin-top: 3px;
    color: var(--runtime-muted);
}

.runtime-panel-row,
.runtime-upload-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.runtime-info-panel,
.runtime-upload-card {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.runtime-info-panel-icon,
.runtime-upload-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--runtime-accent);
    background: var(--runtime-accent-soft);
    font-size: 1.35rem;
}

.runtime-info-panel h2,
.runtime-upload-card h2 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 850;
}

.runtime-info-panel p,
.runtime-upload-card p {
    color: var(--runtime-muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.runtime-info-panel ul {
    margin: 8px 0 0;
    padding-left: 1.15rem;
    color: #334155;
    font-size: .88rem;
}

.runtime-upload-body { flex: 1 1 auto; min-width: 0; }
.runtime-upload-actions { align-self: end; }

.runtime-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
}

.runtime-grid-layout {
    display: grid;
    gap: 18px;
}

.runtime-grid-layout-1 {
    grid-template-columns: minmax(0, 1fr);
}

.runtime-grid-layout-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.runtime-grid-card {
    overflow: hidden;
    min-width: 0;
}

.runtime-grid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--runtime-border);
}

.runtime-grid-card-header h2 {
    margin: 0;
    color: var(--runtime-dark);
    font-size: 1.02rem;
    font-weight: 850;
}

.runtime-grid-card-header p {
    margin: 4px 0 0;
    color: var(--runtime-muted);
    font-size: .85rem;
}

.runtime-grid-dependency {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .72rem;
    font-weight: 800;
    color: var(--runtime-accent);
    background: var(--runtime-accent-soft);
    white-space: nowrap;
}

.runtime-grid-card .jqgrid-host {
    padding: 12px;
}

.theme-pm .runtime-page-header {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .20), transparent 32%),
        radial-gradient(circle at top left, rgba(14, 165, 233, .13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.theme-pm .runtime-grid-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
}

@media (max-width: 1100px) {
    .runtime-grid-layout-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .runtime-page-header {
        flex-direction: column;
        padding: 18px;
        border-radius: 16px;
    }

    .runtime-layout-marketing .runtime-page-header {
        min-height: auto;
        padding: 30px 18px;
    }

    .runtime-action-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .runtime-action-bar .btn,
    .runtime-upload-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .runtime-filter-grid,
    .runtime-panel-row,
    .runtime-upload-row,
    .runtime-shortcut-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .runtime-upload-card {
        flex-direction: column;
    }
}

/* PM legacy-style workflow panels. These are intentionally small and reusable over the dynamic jqGrid renderer. */
.runtime-app-pm .runtime-page-header {
    border-radius: 10px;
    padding: 18px 22px;
    background: #fff;
    box-shadow: none;
}

.runtime-app-pm .runtime-page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.pm-status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 14px 0 20px;
}

.pm-status-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.pm-status-card span {
    display: block;
    color: #667085;
    font-size: .8rem;
    margin-bottom: 4px;
}

.pm-status-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    color: #111827;
}

.pm-status-card.pm-green { border-color: #198754; }
.pm-status-card.pm-green strong { color: #198754; }
.pm-status-card.pm-yellow { border-color: #ffc107; }
.pm-status-card.pm-yellow strong { color: #b7791f; }
.pm-status-card.pm-red { border-color: #dc3545; }
.pm-status-card.pm-red strong { color: #dc3545; }

.pm-action-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 16px 0 22px;
}

.pm-action-section.pm-action-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-action-card {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.pm-action-title {
    font-weight: 800;
    font-size: 1rem;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.pm-legacy-hero {
    background: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, .28), transparent 28%), linear-gradient(135deg, #07151d, #0f2848 65%, #0c1724);
    color: #f8fafc;
    border-radius: 0;
    padding: 48px 46px;
    margin: -10px 0 22px;
    box-shadow: 0 20px 60px rgba(2,6,23,.35);
}

.pm-legacy-hero .pm-pill {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: #ccfbf1;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.pm-legacy-hero h2 {
    max-width: 900px;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
    margin: 0 0 16px;
}

.pm-legacy-hero p {
    max-width: 900px;
    color: #bfd0e0;
    font-size: 1rem;
}

.pm-legacy-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 16px;
    margin: 24px 0 16px;
    max-width: 900px;
}

.pm-legacy-kpis div {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(2,6,23,.42);
    border-radius: 16px;
    padding: 16px;
}

.pm-legacy-kpis strong {
    display: block;
    color: #2dd4bf;
    font-size: 2rem;
    line-height: 1;
}

.pm-legacy-kpis span {
    color: #cbd5e1;
    font-size: .85rem;
}

.pm-legacy-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.runtime-page-reconciliation-hub .runtime-grid-layout,
.runtime-page-compliance-reports .runtime-grid-layout,
.runtime-page-assignment-dashboard .runtime-grid-layout,
.runtime-page-pm-recovery-queue .runtime-grid-layout,
.runtime-page-pm-responsibility-matrix .runtime-grid-layout,
.runtime-page-my-orders-assigned .runtime-grid-layout {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .pm-action-section.pm-action-two,
    .pm-legacy-kpis {
        grid-template-columns: 1fr;
    }
    .pm-legacy-hero {
        padding: 30px 20px;
    }
}

/* PM shell: keep the DynamicSolution host but make the PM runtime menu look like the old MaintBridge screenshots. */
.runtime-app-pm .landing-navbar {
    background: #1f2428 !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.runtime-app-pm .navbar-brand {
    font-weight: 600;
    color: #ffffff !important;
    white-space: nowrap;
}
.runtime-app-pm .navbar-nav .nav-link {
    color: rgba(255,255,255,.72) !important;
    font-size: .86rem;
    padding-left: .55rem;
    padding-right: .55rem;
}
.runtime-app-pm .navbar-nav .nav-link:hover,
.runtime-app-pm .navbar-nav .nav-link:focus {
    color: #ffffff !important;
}
@media (min-width: 992px) {
    .runtime-app-pm .navbar-nav.menu-wrap {
        flex-wrap: wrap;
        row-gap: .2rem;
    }
}

/* PM/runtime upload validation and grid-scoped buttons */
.runtime-upload-card-has-error {
    border-color: rgba(220, 38, 38, .45) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .10) !important;
}

.runtime-upload-error {
    white-space: pre-line;
    font-weight: 700;
}

.runtime-upload-filter-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .20) !important;
}

.runtime-grid-header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: max-content;
}

.runtime-grid-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 700px) {
    .runtime-grid-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .runtime-grid-header-side,
    .runtime-grid-header-actions {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .runtime-grid-header-actions .btn {
        width: 100%;
    }
}

/* PM reconciliation / reconciliation-hub runtime pages */
.pm-reconciliation-export-panel {
    margin: 1rem 0 1.25rem;
}

.pm-reconciliation-section-title h2 {
    font-size: 1.15rem;
    margin: 0 0 .15rem;
    font-weight: 800;
}

.pm-reconciliation-section-title p,
.pm-recon-export-card p {
    color: #5f6f86;
    font-size: .875rem;
    margin-bottom: .75rem;
}

.pm-reconciliation-export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1rem;
}

.pm-recon-export-card {
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .06);
}

.pm-recon-export-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 .15rem;
}

.pm-recon-export-card label {
    display: block;
    font-size: .78rem;
    color: #1e293b;
    font-weight: 650;
    margin: .6rem 0 .25rem;
}

.pm-recon-border-success { border-color: #9bd6b2; }
.pm-recon-border-dark { border-color: #aab4c3; }
.pm-recon-border-primary { border-color: #9ec5fe; }

.pm-recon-date-row,
.pm-recon-two-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: .65rem;
    margin-bottom: .75rem;
}

.pm-recon-two-col {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.pm-reconciliation-export-note,
.pm-recon-hub-toolbar {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-top: 1rem;
    font-size: .86rem;
    color: #52637a;
}

.pm-recon-hub-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.pm-recon-detail-below {
    white-space: nowrap;
}

tr.pm-recon-row-green > td { background: #d9f0e5 !important; }
tr.pm-recon-row-red > td { background: #f8d7da !important; }
tr.pm-recon-row-yellow > td { background: #fff3cd !important; }
tr.pm-recon-row-blue > td { background: #dbeafe !important; }

@media (max-width: 900px) {
    .pm-reconciliation-export-grid,
    .pm-recon-date-row,
    .pm-recon-two-col {
        grid-template-columns: 1fr;
    }
}

/* PM Assignment Center - jqGrid dashboard port from the old DevExtreme screen */
.runtime-page-pm-assignment-center .runtime-filter-card {
    margin-bottom: 1rem;
}

.pm-assignment-status-row {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.pm-assignment-action-before-grid {
    margin: .75rem 0 1rem;
}

.runtime-page-pm-assignment-center .pm-action-card {
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.runtime-page-pm-assignment-center .pm-action-title {
    font-weight: 700;
    color: #102033;
    margin-bottom: .35rem;
}

.runtime-page-pm-assignment-center .pm-assignment-row-pending td,
.runtime-page-pm-assignment-center .pm-assignment-row-current td {
    background: #eef7ff !important;
}

.runtime-page-pm-assignment-center .pm-assignment-row-unassigned td {
    background: #fff7ed !important;
}

.runtime-page-pm-assignment-center .pm-assignment-row-live td {
    background: #f8d7da !important;
}

@media (max-width: 992px) {
    .pm-assignment-status-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

/* PM My Assigned Orders - jqGrid runtime page */
.runtime-page-my-orders-assigned .runtime-page-header-actions {
    align-self: flex-start;
}

.runtime-page-my-orders-assigned .runtime-filter-card {
    display: none;
}

.pm-myorders-action-section {
    margin-bottom: 1rem;
}

.pm-myorders-help {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
    padding: .75rem 1rem;
    margin-bottom: .85rem;
}

.pm-myorders-action-section textarea.runtime-action-input {
    min-height: 76px;
    resize: vertical;
}

.pm-myorder-inspect {
    min-width: 78px;
}

.pm-myorder-sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.pm-myorder-sheet-item {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: .65rem .75rem;
    min-width: 0;
}

.pm-myorder-sheet-item span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
}

.pm-myorder-sheet-item strong {
    display: block;
    margin-top: .25rem;
    color: #0f172a;
    font-weight: 600;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pm-myorder-sheet-item-wide {
    grid-column: 1 / -1;
}

tr.pm-myorders-row-pending > td {
    background: #fffbe6 !important;
}

tr.pm-myorders-row-foreman > td {
    background: #eefdf7 !important;
}

tr.pm-myorders-row-current > td {
    background: #ffffff !important;
}

tr.pm-myorders-row-started > td {
    background: #d9f0e5 !important;
}

tr.pm-myorders-row-history > td {
    background: #f8fafc !important;
}

@media (max-width: 768px) {
    .pm-myorders-action-section .row.g-2.align-items-end > [class*="col-"] {
        width: 100%;
    }

    .runtime-page-my-orders-assigned .runtime-page-header-actions .btn {
        width: 100%;
    }
}

/* Non-blocking user messages used instead of browser alert() boxes. */
#ingq-toast-stack {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 10950;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(440px, calc(100vw - 28px));
    pointer-events: none;
}

.ingq-toast {
    display: grid;
    grid-template-columns: 32px 1fr 28px;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: auto;
    overflow: hidden;
}

.ingq-toast.ingq-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ingq-toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ingq-toast-success .ingq-toast-icon { background: #dcfce7; color: #15803d; }
.ingq-toast-warning .ingq-toast-icon { background: #fef3c7; color: #b45309; }
.ingq-toast-danger .ingq-toast-icon { background: #fee2e2; color: #b91c1c; }
.ingq-toast-info .ingq-toast-icon { background: #dbeafe; color: #1d4ed8; }

.ingq-toast-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 3px;
}

.ingq-toast-message {
    color: #334155;
    font-size: .92rem;
    line-height: 1.35;
    white-space: pre-line;
    max-height: 220px;
    overflow: auto;
}

.ingq-toast-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.ingq-toast-success { border-left: 5px solid #22c55e; }
.ingq-toast-warning { border-left: 5px solid #f59e0b; }
.ingq-toast-danger { border-left: 5px solid #ef4444; }
.ingq-toast-info { border-left: 5px solid #3b82f6; }

@media (max-width: 575.98px) {
    #ingq-toast-stack {
        top: 62px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* PM Reconciliation totals under the filter card */
.pm-reconciliation-totals-panel {
    margin: 1rem 0 1.25rem;
}

.pm-reconciliation-totals-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 1rem;
}

.pm-reconciliation-total-card {
    background: #fff;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    min-height: 96px;
}

.pm-reconciliation-total-card span {
    display: block;
    color: #53657f;
    font-size: .9rem;
    line-height: 1.2;
}

.pm-reconciliation-total-card strong {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-top: .35rem;
    color: #111827;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
}

.pm-reconciliation-total-card small {
    font-size: 1.05rem;
    font-weight: 800;
}

.pm-reconciliation-total-success { border-color: #16a34a; }
.pm-reconciliation-total-success strong { color: #15803d; }
.pm-reconciliation-total-warning { border-color: #f59e0b; }
.pm-reconciliation-total-warning strong { color: #b45309; }
.pm-reconciliation-total-danger { border-color: #ef4444; }
.pm-reconciliation-total-danger strong { color: #e11d48; }
.pm-reconciliation-total-primary { border-color: #93c5fd; }
.pm-reconciliation-total-primary strong { color: #1d4ed8; }
.pm-reconciliation-total-secondary { border-color: #94a3b8; }
.pm-reconciliation-total-secondary strong { color: #475569; }

.pm-reconciliation-total-help {
    color: #53657f;
    font-size: .86rem;
    margin-top: .6rem;
}

@media (max-width: 1199.98px) {
    .pm-reconciliation-totals-grid {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pm-reconciliation-totals-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

.runtime-app-she,
.theme-she {
    --runtime-accent: #2563eb;
    --runtime-accent-2: #06b6d4;
    --runtime-accent-soft: rgba(37, 99, 235, .11);
}

.theme-she .runtime-page-header {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .20), transparent 32%),
        radial-gradient(circle at top left, rgba(6, 182, 212, .13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.theme-she .runtime-grid-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
