/* 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(135px, 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;
}

tr.pm-myorders-row-history-today > td {
    background: #fff3cd !important;
    border-top: 1px solid #ffd666 !important;
    border-bottom: 1px solid #ffd666 !important;
}

tr.pm-myorders-row-history-today > td:first-child {
    border-left: 6px solid #f59f00 !important;
}

.runtime-page-pm-orders-completed-review tr.pm-completed-review-order-recent > td[aria-describedby$="_OrderNumber"] {
    background: #fff200 !important;
    background-color: #fff200 !important;
    color: #111 !important;
    font-weight: 800 !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%);
}

/* PM Live Dashboard - live cards and lightweight CSS charts */
.pm-dashboard-shell {
    margin-top: 1rem;
}

.pm-dashboard-loading {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: #53657f;
    font-size: .88rem;
}

.pm-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.pm-dashboard-kpi {
    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: 118px;
}

.pm-dashboard-kpi span,
.pm-dashboard-kpi small {
    display: block;
    color: #53657f;
    line-height: 1.3;
}

.pm-dashboard-kpi span {
    font-size: .9rem;
}

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

.pm-dashboard-kpi strong small {
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.pm-dashboard-kpi small {
    margin-top: .55rem;
    font-size: .76rem;
}

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

.pm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.pm-dashboard-card {
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .045);
    min-height: 260px;
    overflow: hidden;
}

.pm-dashboard-card-wide {
    grid-column: span 2;
}

.pm-dashboard-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;
    border-bottom: 1px solid #eef2f7;
}

.pm-dashboard-card h2 {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: #344054;
    font-size: .98rem;
    font-weight: 800;
}

.pm-dashboard-card header span {
    color: #64748b;
    font-size: .8rem;
    text-align: right;
}

.pm-dashboard-donut-wrap {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem;
}

.pm-dashboard-donut {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#22c55e 0 120deg, #f59e0b 120deg 210deg, #e11d48 210deg 360deg);
    box-shadow: inset 0 0 0 18px #fff, 0 10px 24px rgba(15, 23, 42, .08);
}

.pm-dashboard-donut::after {
    content: attr(data-label);
    width: 106px;
    height: 106px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .07);
}

.pm-dashboard-list,
.pm-dashboard-legend,
.pm-dashboard-bars,
.pm-dashboard-progress-list,
.pm-dashboard-timeline {
    padding: 1rem;
}

.pm-dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .48rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.pm-dashboard-list-row:last-child {
    border-bottom: 0;
}

.pm-dashboard-list-row span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.pm-dashboard-list-row strong {
    color: #111827;
    font-size: .95rem;
}

.pm-dashboard-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #22c55e;
}

.pm-dashboard-dot-2 { background: #f59e0b; }
.pm-dashboard-dot-3 { background: #e11d48; }
.pm-dashboard-dot-4 { background: #64748b; }
.pm-dashboard-dot-5 { background: #2563eb; }

.pm-dashboard-bar-row,
.pm-dashboard-progress-row {
    margin-bottom: .78rem;
}

.pm-dashboard-bar-label,
.pm-dashboard-progress-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    color: #334155;
    font-size: .86rem;
    margin-bottom: .28rem;
}

.pm-dashboard-bar-label strong,
.pm-dashboard-progress-title strong {
    color: #111827;
}

.pm-dashboard-bar-track,
.pm-dashboard-progress-track {
    height: .48rem;
    background: #e8eef5;
    border-radius: 999px;
    overflow: hidden;
}

.pm-dashboard-bar-track i,
.pm-dashboard-progress-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    border-radius: inherit;
}

.pm-dashboard-progress-track i {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.pm-dashboard-progress-meta {
    margin-top: .25rem;
    color: #64748b;
    font-size: .76rem;
}

.pm-dashboard-timeline-row {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: .65rem;
    padding: .25rem 0 .85rem;
    color: #334155;
}

.pm-dashboard-timeline-row > span {
    width: .55rem;
    height: .55rem;
    margin-top: .33rem;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.pm-dashboard-timeline-row strong,
.pm-dashboard-timeline-row small {
    display: block;
}

.pm-dashboard-timeline-row small {
    margin-top: .15rem;
    color: #64748b;
}

.pm-dashboard-empty {
    color: #64748b;
    font-size: .86rem;
    padding: .5rem 0;
}

.pm-dashboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

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

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

@media (max-width: 767.98px) {
    .pm-dashboard-kpi-grid,
    .pm-dashboard-grid,
    .pm-dashboard-donut-wrap {
        grid-template-columns: 1fr;
    }

    .pm-dashboard-card-wide {
        grid-column: span 1;
    }

    .pm-dashboard-donut {
        margin: 0 auto;
    }
}
.pm-dashboard-kpi strong span {
    display: inline;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* PM Management Dashboard */
.pm-management-dashboard-shell {
    margin-top: 1rem;
}

.pm-management-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-management-grid {
    align-items: stretch;
}

.pm-management-stacked {
    display: grid;
    gap: .85rem;
}

.pm-management-stack-row {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .75rem;
}

.pm-management-stack-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pm-management-stack-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
    color: #0f172a;
}

.pm-management-stack-head strong {
    font-weight: 800;
}

.pm-management-stack-head span,
.pm-management-stack-meta {
    color: #475569;
    font-size: .82rem;
}

.pm-management-stack-track {
    display: flex;
    width: 100%;
    min-width: 7%;
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.pm-management-stack-track i {
    display: block;
    min-width: 2px;
    height: 100%;
}

.pm-management-seg-ok { background: #22c55e; }
.pm-management-seg-warn { background: #f59e0b; }
.pm-management-seg-bad { background: #e11d48; }

.pm-management-stack-meta {
    margin-top: .3rem;
}

.pm-management-line {
    min-height: 200px;
}

.pm-management-svg {
    width: 100%;
    height: auto;
    min-height: 180px;
}

.pm-management-svg line {
    stroke: #cbd5e1;
    stroke-width: 1.5;
}

.pm-management-svg polyline {
    fill: none;
    stroke: #2563eb;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-management-svg circle {
    fill: #2563eb;
    stroke: #fff;
    stroke-width: 2;
}

.pm-management-svg text {
    fill: #334155;
    font-size: 11px;
    font-weight: 700;
}

.pm-management-table-wrap {
    overflow: auto;
    max-height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.pm-management-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .82rem;
    min-width: 860px;
    background: #fff;
}

.pm-management-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: .65rem .7rem;
    white-space: nowrap;
}

.pm-management-table td {
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    padding: .55rem .7rem;
    vertical-align: top;
    white-space: nowrap;
}

.pm-management-table tbody tr:hover td {
    background: #f8fbff;
}

.pm-management-table .pm-management-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .pm-management-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pm-management-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pm-management-stack-head {
        display: block;
    }
}


.pm-dashboard-scope-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
    padding: 10px 14px;
    border: 1px solid rgba(245, 158, 11, .35);
    border-left: 5px solid #f59e0b;
    border-radius: 14px;
    background: #fffbeb;
    color: #78350f;
    font-size: .9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.pm-dashboard-scope-note i {
    color: #b45309;
    font-size: 1rem;
}

/* Generic runtime quick-view card used by PM dashboards and future runtime pages. */
.runtime-quick-view-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr);
    gap: 14px;
    align-items: center;
    margin: 0 0 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.runtime-quick-view-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.runtime-quick-view-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.runtime-quick-view-title strong {
    display: block;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.runtime-quick-view-title small,
.runtime-quick-view-help {
    display: block;
    color: #475569;
    font-size: .85rem;
    line-height: 1.35;
}

.runtime-quick-view-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.runtime-quick-view-help {
    grid-column: 2 / -1;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 980px) {
    .runtime-quick-view-card {
        grid-template-columns: 1fr;
    }

    .runtime-quick-view-controls {
        grid-template-columns: 1fr;
    }

    .runtime-quick-view-help {
        grid-column: auto;
    }
}

/* Smooth dashboard refresh: filters update data without page reload or scroll jump. */
.runtime-filter-card.runtime-filter-card-loading {
    position: relative;
}

.runtime-filter-card.runtime-filter-card-loading::after {
    content: "Updating...";
    position: absolute;
    right: 14px;
    top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .12);
}

.pm-dashboard-loading-soft .pm-dashboard-kpi,
.pm-dashboard-loading-soft .pm-dashboard-card,
.pm-dashboard-loading-soft .pm-management-card,
.pm-dashboard-loading-soft .pm-management-kpi {
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
    opacity: .74;
}

.runtime-smooth-loading .pm-dashboard-kpi,
.runtime-smooth-loading .pm-management-kpi {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08), 0 10px 28px rgba(15, 23, 42, .06);
}

.ingq-runtime-toast-host {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 28px));
}

.ingq-runtime-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 280px;
    padding: 12px 12px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
    color: #0f172a;
    opacity: 0;
    transform: translate3d(18px, -8px, 0) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto;
    overflow: hidden;
}

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

.ingq-runtime-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #2563eb;
}

.ingq-runtime-toast-success::before { background: #16a34a; }
.ingq-runtime-toast-warning::before { background: #f59e0b; }
.ingq-runtime-toast-danger::before,
.ingq-runtime-toast-error::before { background: #dc2626; }
.ingq-runtime-toast-info::before { background: #2563eb; }

.ingq-runtime-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1rem;
}

.ingq-runtime-toast-success .ingq-runtime-toast-icon {
    background: #ecfdf5;
    color: #16a34a;
}

.ingq-runtime-toast-warning .ingq-runtime-toast-icon {
    background: #fffbeb;
    color: #b45309;
}

.ingq-runtime-toast-danger .ingq-runtime-toast-icon,
.ingq-runtime-toast-error .ingq-runtime-toast-icon {
    background: #fef2f2;
    color: #dc2626;
}

.ingq-runtime-toast-body {
    min-width: 0;
}

.ingq-runtime-toast-body strong,
.ingq-runtime-toast-body span {
    display: block;
}

.ingq-runtime-toast-body strong {
    margin-bottom: 2px;
    font-size: .9rem;
    font-weight: 900;
    color: #0f172a;
}

.ingq-runtime-toast-body span {
    font-size: .83rem;
    line-height: 1.32;
    color: #475569;
}

.ingq-runtime-toast button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 8px;
}

.ingq-runtime-toast button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ingq-runtime-toast-loading .ingq-runtime-toast-icon {
    background: #eff6ff;
    color: #2563eb;
}

@media (max-width: 700px) {
    .ingq-runtime-toast-host {
        top: 66px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ingq-runtime-toast {
        min-width: 0;
        width: 100%;
    }
}


/* Global initial page loader: layout-level loader for all runtime pages without touching every page. */
.ingq-global-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 82px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, 0));
    opacity: 1;
    transition: opacity .24s ease, visibility .24s ease;
}

.ingq-global-page-loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.ingq-global-page-loader-panel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: min(410px, calc(100vw - 28px));
    max-width: min(480px, calc(100vw - 28px));
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(148, 163, 184, .32);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .20);
    color: #0f172a;
    overflow: hidden;
    position: relative;
}

.ingq-global-page-loader-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #22c55e, #2563eb);
    background-size: 220% 100%;
    animation: ingqGlobalLoaderBar 1.35s linear infinite;
}

.ingq-global-page-loader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
}

.ingq-global-page-loader-text strong,
.ingq-global-page-loader-text span {
    display: block;
}

.ingq-global-page-loader-text strong {
    font-size: .98rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2px;
}

.ingq-global-page-loader-text span {
    font-size: .86rem;
    color: #475569;
    line-height: 1.3;
}

body.ingq-initial-page-loading .perfex-content {
    transition: opacity .2s ease;
}

@keyframes ingqGlobalLoaderBar {
    0% { background-position: 0 0; }
    100% { background-position: 220% 0; }
}

@media (max-width: 700px) {
    .ingq-global-page-loader {
        padding-top: 66px;
        align-items: flex-start;
    }

    .ingq-global-page-loader-panel {
        min-width: 0;
        width: calc(100vw - 20px);
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 12px 13px;
        border-radius: 16px;
    }

    .ingq-global-page-loader-spinner {
        width: 38px;
        height: 38px;
    }
}

/* SHE Live + Management dashboards reuse the PM dashboard shell with SHE colors. */
.she-dashboard-shell .pm-dashboard-donut {
    background: conic-gradient(#22c55e 0 120deg, #f59e0b 120deg 210deg, #e11d48 210deg 360deg);
}

.she-dashboard-shell .pm-dashboard-progress-track i,
.she-dashboard-shell .pm-dashboard-bar-track i {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.she-dashboard-shell .she-dashboard-progress-row .pm-dashboard-progress-track i {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.she-dashboard-shell .pm-dashboard-card h2 i,
.she-dashboard-shell .pm-dashboard-loading {
    color: #2563eb;
}

.she-dashboard-shell .pm-management-svg polyline,
.she-dashboard-shell .pm-management-svg circle {
    stroke: #2563eb;
}

.she-dashboard-shell .pm-management-svg circle {
    fill: #2563eb;
}

.she-dashboard-shell .pm-dashboard-timeline-row > span {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.she-dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .she-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .she-dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating non-blocking page information panel.
   This is not a Bootstrap modal: no backdrop, no body scroll lock, and it stays open while jqGrid add/edit/search popups are used. */
.runtime-page-info-button {
    color: #0f172a !important;
    font-weight: 700;
}

.runtime-page-info-modal[hidden] {
    display: none !important;
}

.runtime-page-info-modal {
    position: fixed;
    top: 150px;
    right: 24px;
    width: min(470px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 110px));
    min-width: 310px;
    min-height: 230px;
    z-index: 1095;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .30);
    color: #0f172a;
}

.runtime-page-info-modal.runtime-page-info-minimized {
    height: auto !important;
    min-height: 0;
    resize: none;
}

.runtime-page-info-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #0f172a 0%, var(--runtime-accent) 100%);
    color: #ffffff;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.runtime-page-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: .93rem;
    font-weight: 800;
}

.runtime-page-info-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-page-info-window-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.runtime-page-info-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    line-height: 1;
}

.runtime-page-info-icon-button:hover,
.runtime-page-info-icon-button:focus {
    background: rgba(255, 255, 255, .25);
    outline: none;
}

.runtime-page-info-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 13px 14px 14px;
    font-size: .89rem;
    line-height: 1.55;
}

.runtime-page-info-minimized .runtime-page-info-body,
.runtime-page-info-minimized .runtime-page-info-footer {
    display: none;
}

.runtime-page-info-summary {
    padding: 11px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 12px;
    background: var(--runtime-accent-soft);
    color: #334155;
    font-weight: 650;
}

.runtime-page-info-section {
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.runtime-page-info-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.runtime-page-info-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    font-size: .94rem;
    font-weight: 850;
    color: #0f172a;
}

.runtime-page-info-section h3 i {
    color: var(--runtime-accent);
}

.runtime-page-info-section p {
    margin: 0 0 8px;
    color: #475569;
}

.runtime-page-info-section ol {
    margin: 0;
    padding-left: 1.25rem;
    color: #334155;
}

.runtime-page-info-section li {
    margin-bottom: 7px;
}

.runtime-page-info-footer {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: .78rem;
}

.runtime-page-info-modal .ui-resizable-handle {
    z-index: 3;
}

body.runtime-page-info-dragging {
    cursor: move !important;
    user-select: none;
}

@media (max-width: 640px) {
    .runtime-page-info-modal {
        top: 86px;
        left: 8px;
        right: 8px;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 100px);
        min-width: 0;
    }
}

/* Legal Appointment dashboard additions */
.legal-appointment-dashboard-shell .pm-dashboard-card header h2 i,
.legal-appointment-dashboard-shell .runtime-page-eyebrow i {
    color: #0f766e;
}

.legal-appointment-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-management-seg-orange { background: #fb923c; }
.legal-management-seg-brown { background: #92400e; }

.legal-appointment-progress-row .pm-dashboard-progress-track i {
    background: linear-gradient(90deg, #22c55e, #f59e0b);
}

@media (max-width: 1100px) {
    .legal-appointment-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .legal-appointment-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* PM My Assigned Orders - paper-style demo order popup */
.pm-myorder-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 3rem));
}

.pm-myorder-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.pm-myorder-modal .modal-body {
    background: #f1f5f9;
}

.pm-myorder-sap-note {
    display: grid;
    gap: .25rem;
    margin-bottom: .85rem;
    border: 1px solid #bae6fd;
    border-left: 6px solid #0284c7;
    border-radius: 10px;
    background: #f0f9ff;
    color: #0f172a;
    padding: .8rem 1rem;
    font-size: .9rem;
}

.pm-myorder-paper {
    background: #ffffff;
    color: #111827;
    border: 1px solid #111827;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .88rem;
}

.pm-myorder-paper-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    border-bottom: 2px solid #111827;
    padding: .7rem .9rem .8rem;
}

.pm-myorder-paper-title {
    margin-top: .45rem;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.pm-myorder-paper-small {
    color: #1f2937;
    font-size: .75rem;
}

.pm-myorder-paper-brand {
    min-width: 150px;
    text-align: center;
    color: #334155;
    font-size: .78rem;
}

.pm-myorder-paper-logo {
    border: 2px solid #111827;
    padding: .35rem .7rem;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.pm-myorder-paper-table,
.pm-myorder-labour-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pm-myorder-paper-table th,
.pm-myorder-paper-table td,
.pm-myorder-labour-table th,
.pm-myorder-labour-table td {
    border: 1px solid #111827;
    padding: .28rem .4rem;
    vertical-align: top;
    word-break: break-word;
}

.pm-myorder-paper-table th {
    width: 18%;
    background: #f8fafc;
    font-weight: 700;
}

.pm-myorder-paper-table td {
    width: 32%;
    min-height: 28px;
}

.pm-myorder-paper-table strong {
    font-weight: 500;
}

.pm-myorder-section-title {
    border-left: 1px solid #111827;
    border-right: 1px solid #111827;
    background: #f8fafc;
    padding: .32rem .45rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .78rem;
}

.pm-myorder-labour-table th {
    background: #f8fafc;
    text-align: center;
    font-weight: 700;
}

.pm-myorder-labour-table td {
    height: 28px;
}

.pm-myorder-bottom-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-left: 1px solid #111827;
    border-right: 1px solid #111827;
    border-bottom: 1px solid #111827;
}

.pm-myorder-delay-box {
    border-right: 1px solid #111827;
    padding: .45rem .55rem;
}

.pm-myorder-delay-box label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    margin: .15rem 0;
}

.pm-myorder-comment-box {
    padding: .45rem .55rem;
}

.pm-myorder-comment-box label {
    display: block;
    font-weight: 700;
    margin-bottom: .25rem;
}

.pm-myorder-comment-box textarea {
    border-color: #111827;
    border-radius: 0;
    resize: vertical;
}

.pm-myorder-signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid #111827;
    border-right: 1px solid #111827;
    border-bottom: 1px solid #111827;
}

.pm-myorder-signature-grid > div {
    min-height: 46px;
    display: flex;
    align-items: end;
    justify-content: center;
    border-right: 1px solid #111827;
    padding: .3rem;
    font-weight: 700;
}

.pm-myorder-signature-grid > div:last-child {
    border-right: 0;
}

.pm-myorder-sap-placeholder {
    color: #0369a1;
    font-weight: 700;
    font-style: italic;
}

@media (max-width: 768px) {
    .pm-myorder-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
    }

    .pm-myorder-paper-header,
    .pm-myorder-bottom-grid,
    .pm-myorder-signature-grid {
        grid-template-columns: 1fr;
    }

    .pm-myorder-delay-box,
    .pm-myorder-signature-grid > div {
        border-right: 0;
        border-bottom: 1px solid #111827;
    }

    .pm-myorder-paper-table th,
    .pm-myorder-paper-table td {
        display: block;
        width: 100%;
    }
}

/* PM My Orders inspection photo / AI demo result */
.pm-inspection-photo-actions .btn {
    white-space: nowrap;
}

.pm-inspection-result-text {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 14px 16px;
    min-height: 90px;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* MaintOps AI Dashboard - clean MaintOps operations cards */
.runtime-page-maintops-live-dashboard.theme-maintops .runtime-page-header,
.runtime-page-maintops-live-dashboard.runtime-app-maintops .runtime-page-header {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 34%),
        radial-gradient(circle at top left, rgba(20, 184, 166, .12), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.maintops-dashboard-shell {
    margin-top: 1rem;
}

.maintops-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f766e 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
}

.maintops-dashboard-hero h2 {
    margin: .35rem 0 .2rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.maintops-dashboard-hero p {
    margin: 0;
    max-width: 850px;
    color: rgba(255, 255, 255, .78);
}

.maintops-dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem .6rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.maintops-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.maintops-dashboard-hero-actions .btn-outline-secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.maintops-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.maintops-dashboard-card {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    min-height: 315px;
}

.maintops-dashboard-card header {
    padding: 1.05rem 1.15rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.maintops-dashboard-card header h2 i {
    color: #2563eb;
}

.maintops-donut-wrap {
    grid-template-columns: 220px 1fr;
}

.maintops-dashboard-donut {
    background: conic-gradient(#22c55e 0 120deg, #f97316 120deg 210deg, #ef4444 210deg 360deg);
}

.maintops-metric-list {
    padding: 1rem 1rem .35rem;
}

.maintops-metric-row {
    margin-bottom: .9rem;
}

.maintops-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
    color: #334155;
    font-size: .88rem;
}

.maintops-metric-head span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.maintops-metric-head strong {
    color: #0f172a;
    font-weight: 900;
}

.maintops-metric-track {
    height: .55rem;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.maintops-metric-track i {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.maintops-metric-row:nth-child(3n+2) .maintops-metric-track i {
    background: linear-gradient(90deg, #f97316, #facc15);
}

.maintops-metric-row:nth-child(3n+3) .maintops-metric-track i {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.maintops-money-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1rem .75rem;
    padding: .7rem .85rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    color: #475569;
    font-size: .88rem;
}

.maintops-money-row strong {
    color: #0f172a;
    font-weight: 900;
}

.maintops-inspection-score {
    display: grid;
    place-items: center;
    margin: 1rem;
    min-height: 150px;
    background: linear-gradient(135deg, #eef6ff, #f7fffb);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    text-align: center;
}

.maintops-inspection-score strong {
    color: #1d4ed8;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 950;
}

.maintops-inspection-score small {
    display: block;
    margin-top: .5rem;
    color: #64748b;
}

.maintops-dashboard-shell .pm-dashboard-progress-track i,
.maintops-dashboard-shell .pm-dashboard-bar-track i {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.maintops-dashboard-shell .pm-dashboard-timeline-row > span {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

@media (max-width: 1199.98px) {
    .maintops-kpi-grid,
    .maintops-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .maintops-dashboard-hero,
    .maintops-donut-wrap,
    .maintops-kpi-grid,
    .maintops-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .maintops-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .maintops-dashboard-hero-actions {
        justify-content: flex-start;
    }
}

/* Quarry Software 360 - simple non-IT friendly runtime theme */
.runtime-page.theme-quarry .runtime-page-header,
.runtime-page-quarry-live-dashboard.theme-quarry .runtime-page-header,
.runtime-app-quarry .runtime-page-header {
    background:
        radial-gradient(circle at top right, rgba(180, 83, 9, .18), transparent 34%),
        radial-gradient(circle at top left, rgba(22, 101, 52, .12), transparent 36%),
        linear-gradient(135deg, #fffaf0 0%, #f8fafc 100%);
    border-color: rgba(180, 83, 9, .16);
}

.runtime-page.theme-quarry .runtime-page-eyebrow,
.runtime-page.theme-quarry .runtime-grid-card-header h2 i {
    color: #92400e;
}

.runtime-page.theme-quarry .runtime-grid-card-header p {
    font-size: .92rem;
    line-height: 1.35;
}

/* Quarry Software 360 - visual process map start page */
.quarry-process-map-shell {
    margin: 1.25rem 0 2rem;
}

.quarry-process-map-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 197, 94, .16), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, .18), transparent 34%),
        linear-gradient(135deg, #f7fee7 0%, #f8fafc 55%, #fff7ed 100%);
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.quarry-process-map-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .6rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(22, 101, 52, .12);
    color: #166534;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.quarry-process-map-hero h2 {
    margin: 0 0 .4rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.quarry-process-map-hero p {
    max-width: 850px;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.quarry-process-map-legend {
    display: grid;
    align-content: center;
    gap: .6rem;
    padding: 1rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
}

.quarry-process-map-legend span {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #334155;
    font-size: .9rem;
    font-weight: 800;
}

.quarry-process-map-legend i {
    color: #b45309;
    font-size: 1.05rem;
}

.quarry-process-road-wrap {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(15, 23, 42, .94), rgba(30, 41, 59, .94)),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, .25) 28px 48px, transparent 48px 78px);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 45px rgba(15, 23, 42, .16);
}

.quarry-process-road-wrap::before {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 34px, transparent 34px 62px);
    border-radius: 999px;
    opacity: .65;
}

.quarry-process-road-title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .5rem .8rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-weight: 900;
}

.quarry-process-road {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .9rem;
}

.quarry-process-node {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.quarry-process-node-main::after {
    content: "→";
    position: absolute;
    right: -.72rem;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    transform: translateY(-50%);
    color: #fff;
    background: #f59e0b;
    border-radius: 999px;
    font-weight: 950;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .24);
}

.quarry-process-node:nth-child(5)::after,
.quarry-process-node-finish::after {
    content: none;
}

.quarry-process-step-no {
    position: absolute;
    right: .8rem;
    top: .8rem;
    display: grid;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .4rem;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #166534, #22c55e);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 950;
}

.quarry-process-node > i {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: .75rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    font-size: 1.45rem;
}

.quarry-process-node h3 {
    margin: 0 0 .45rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.quarry-process-node p {
    flex: 1;
    margin: 0 0 .85rem;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.4;
}

.quarry-process-node .btn {
    align-self: flex-start;
    border-radius: 999px;
    font-weight: 850;
}

.quarry-process-node-finish {
    background: linear-gradient(135deg, #ecfeff, #ffffff);
    border-color: rgba(6, 182, 212, .28);
}

.quarry-process-branches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.quarry-branch-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    min-height: 150px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 6px;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.quarry-branch-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.35rem;
}

.quarry-branch-card h3 {
    margin: 0 0 .3rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.quarry-branch-card p {
    margin: 0 0 .55rem;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.42;
}

.quarry-branch-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

.quarry-branch-card a::after {
    content: "→";
}

.quarry-branch-warning { border-left-color: #f59e0b; }
.quarry-branch-info { border-left-color: #0ea5e9; }
.quarry-branch-money { border-left-color: #22c55e; }
.quarry-branch-safe { border-left-color: #14b8a6; }
.quarry-branch-auto { border-left-color: #8b5cf6; }
.quarry-branch-settings { border-left-color: #64748b; }

.quarry-process-role-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.quarry-process-role-strip a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.quarry-process-role-strip i {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, #92400e, #f59e0b);
    border-radius: 14px;
}

.quarry-process-role-strip span {
    font-size: .86rem;
    font-weight: 850;
    line-height: 1.25;
}

@media (max-width: 1399.98px) {
    .quarry-process-road {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quarry-process-node:nth-child(3)::after,
    .quarry-process-node:nth-child(6)::after,
    .quarry-process-node:nth-child(9)::after {
        content: none;
    }
}

@media (max-width: 991.98px) {
    .quarry-process-map-hero,
    .quarry-process-branches,
    .quarry-process-role-strip {
        grid-template-columns: 1fr;
    }

    .quarry-process-road {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quarry-process-node::after {
        content: none !important;
    }
}

@media (max-width: 575.98px) {
    .quarry-process-road-wrap {
        padding: .75rem;
        border-radius: 20px;
    }

    .quarry-process-road {
        grid-template-columns: 1fr;
    }

    .quarry-process-map-hero {
        padding: 1rem;
        border-radius: 18px;
    }
}

/* Quarry Software 360 - image-style road map start page */
.quarry-roadmap-shell {
    margin: 1rem 0 2rem;
}

.quarry-roadmap-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid rgba(14, 165, 233, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(14, 165, 233, .16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f0f9ff 54%, #ecfeff);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    margin-bottom: 1rem;
}

.quarry-roadmap-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .75rem;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, .14);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.quarry-roadmap-hero h2 {
    margin: .7rem 0 .35rem;
    color: #0f172a;
    font-size: clamp(1.65rem, 3vw, 3rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.quarry-roadmap-hero p {
    max-width: 840px;
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.quarry-roadmap-help-card {
    display: grid;
    align-content: center;
    gap: .45rem;
    padding: 1rem;
    color: #0f172a;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 22px;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.quarry-roadmap-help-card strong {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: 1rem;
    font-weight: 950;
}

.quarry-roadmap-help-card strong i {
    color: #d97706;
}

.quarry-roadmap-help-card span {
    color: #64748b;
    line-height: 1.5;
    font-size: .9rem;
}

.quarry-roadmap-scene {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 32px;
    background:
        linear-gradient(115deg, rgba(241, 245, 249, .93), rgba(255, 255, 255, .82)),
        radial-gradient(circle at 12% 16%, rgba(148, 163, 184, .35), transparent 22%),
        radial-gradient(circle at 75% 34%, rgba(14, 165, 233, .18), transparent 26%),
        radial-gradient(circle at 86% 82%, rgba(16, 185, 129, .18), transparent 26%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 22px 60px rgba(15, 23, 42, .10);
}

.quarry-roadmap-scene:before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 26px;
    border: 1px dashed rgba(100, 116, 139, .2);
    pointer-events: none;
}

.quarry-roadmap-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quarry-road-main {
    fill: none;
    stroke: #1f2937;
    stroke-width: 76;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 18px 18px rgba(15, 23, 42, .2));
}

.quarry-road-lane {
    fill: none;
    stroke: rgba(255, 255, 255, .85);
    stroke-width: 6;
    stroke-dasharray: 34 34;
    stroke-linecap: round;
}

.quarry-red-arrow,
.quarry-branch-line {
    fill: none;
    stroke: #ef4444;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 12 10;
}

.quarry-branch-line {
    stroke: rgba(14, 165, 233, .76);
    stroke-width: 4;
    stroke-dasharray: 8 10;
}

.quarry-road-step,
.quarry-road-branch,
.quarry-scene-asset,
.quarry-truck {
    position: absolute;
    z-index: 3;
}

.quarry-road-step {
    width: 214px;
    min-height: 164px;
    padding: .9rem .9rem .85rem;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .13);
    backdrop-filter: blur(6px);
}

.quarry-road-step:hover,
.quarry-road-branch:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, .18);
}

.quarry-road-step > i,
.quarry-road-branch > i {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    margin-bottom: .45rem;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #22d3ee);
    box-shadow: 0 10px 20px rgba(2, 132, 199, .24);
}

.quarry-road-number {
    position: absolute;
    top: -.75rem;
    right: -.65rem;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(239, 68, 68, .28);
}

.quarry-road-step h3,
.quarry-road-branch h3 {
    margin: 0 0 .25rem;
    color: #0f172a;
    font-size: .98rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.quarry-road-step p,
.quarry-road-branch p {
    margin: 0 0 .55rem;
    color: #475569;
    font-size: .79rem;
    line-height: 1.42;
}

.quarry-road-step a,
.quarry-road-branch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    padding: .48rem .6rem;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(14, 165, 233, .24);
}

.quarry-road-step a:hover,
.quarry-road-branch a:hover {
    color: #fff;
    background: linear-gradient(135deg, #0369a1, #075985);
}

.qr-step-1 { left: 2.5%; bottom: 5%; }
.qr-step-2 { left: 11%; top: 34%; }
.qr-step-3 { left: 23%; bottom: 10%; }
.qr-step-4 { left: 39%; top: 7%; }
.qr-step-5 { left: 52%; top: 21%; }
.qr-step-6 { left: 67%; bottom: 11%; }
.qr-step-7 { right: 12%; top: 31%; }
.qr-step-8 { right: 2.5%; bottom: 9%; }
.qr-step-9 { right: 2.8%; top: 7%; }

.quarry-road-branch {
    width: 190px;
    min-height: 135px;
    padding: .78rem;
    border: 1px solid rgba(20, 184, 166, .32);
    border-radius: 18px;
    background: rgba(240, 253, 250, .94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
    backdrop-filter: blur(6px);
}

.quarry-road-branch > i {
    width: 2rem;
    height: 2rem;
    margin-bottom: .35rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 10px 20px rgba(20, 184, 166, .24);
}

.quarry-road-branch a {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 10px 18px rgba(20, 184, 166, .22);
}

.qr-branch-1 { left: 28%; top: 43%; }
.qr-branch-2 { left: 29%; top: 4%; }
.qr-branch-3 { right: 18%; top: 4%; }
.qr-branch-4 { right: 17%; top: 58%; }

.quarry-scene-asset {
    display: grid;
    place-items: center;
    text-align: center;
    color: #0f172a;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.quarry-scene-asset i {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    color: #0891b2;
    border: 3px solid rgba(8, 145, 178, .22);
    border-radius: 22px;
    background: rgba(236, 254, 255, .92);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
    font-size: 2rem;
}

.quarry-scene-asset span,
.quarry-scene-asset em {
    display: block;
    margin-top: .25rem;
    color: #334155;
    font-style: normal;
    text-shadow: 0 1px 0 #fff;
}

.quarry-asset-mine { left: 4.5%; top: 8%; }
.quarry-asset-conveyor { left: 39%; top: 31%; width: 175px; }
.quarry-asset-crusher { left: 46.5%; top: 42%; }
.quarry-asset-stockpile { left: 62%; top: 39%; }
.quarry-asset-weighbridge { right: 8.5%; top: 24%; }
.quarry-asset-client { right: 4%; bottom: 36%; }

.quarry-conveyor-belt {
    display: block;
    width: 160px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #475569;
    background: repeating-linear-gradient(135deg, #94a3b8 0 8px, #e2e8f0 8px 16px);
    transform: rotate(-13deg);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}

.quarry-stockpile-shape {
    display: block;
    width: 92px;
    height: 58px;
    margin: 0 auto;
    border-radius: 54% 46% 10% 10%;
    background: linear-gradient(135deg, #a16207, #f59e0b 60%, #fef3c7);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

.quarry-truck {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .58rem;
    color: #0f172a;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid rgba(14, 165, 233, .28);
    font-size: .72rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
    z-index: 4;
}

.quarry-truck i {
    color: #0284c7;
    font-size: 1.25rem;
}

.quarry-truck-empty { left: 46%; top: 58%; }
.quarry-truck-loaded { right: 17%; bottom: 23%; background: #dcfce7; border-color: rgba(22, 163, 74, .28); }
.quarry-truck-loaded i { color: #16a34a; }

.quarry-roadmap-bottom-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.quarry-roadmap-bottom-strip a {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .7rem;
    align-items: center;
    padding: .85rem .95rem;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.quarry-roadmap-bottom-strip a:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
}

.quarry-roadmap-bottom-strip i {
    grid-row: span 2;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #22d3ee);
}

.quarry-roadmap-bottom-strip span {
    font-weight: 950;
    line-height: 1.1;
}

.quarry-roadmap-bottom-strip small {
    color: #64748b;
    line-height: 1.25;
}

@media (max-width: 1399.98px) {
    .quarry-roadmap-scene {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .85rem;
        padding: 1rem;
    }

    .quarry-roadmap-svg,
    .quarry-scene-asset,
    .quarry-truck {
        display: none;
    }

    .quarry-road-step,
    .quarry-road-branch {
        position: relative;
        inset: auto !important;
        width: auto;
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .quarry-roadmap-hero,
    .quarry-roadmap-bottom-strip {
        grid-template-columns: 1fr;
    }

    .quarry-roadmap-scene {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .quarry-roadmap-scene {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .quarry-roadmap-hero {
        border-radius: 22px;
    }
}

/* Quarry Road Map v2 - clean non-overlapping layout for non-technical users */
.quarry-roadmap-shell-clean {
    --quarry-blue: #0284c7;
    --quarry-blue-dark: #075985;
    --quarry-green: #0f766e;
    --quarry-green-soft: #ecfdf5;
    --quarry-road: #1f2937;
    --quarry-road-line: rgba(255,255,255,.72);
}

.quarry-clean-hero {
    margin-bottom: 1rem;
}

.quarry-clean-map {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(14, 165, 233, .14), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(20, 184, 166, .16), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.quarry-clean-map-title,
.quarry-clean-support-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem .9rem;
    margin-bottom: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
}

.quarry-clean-map-title span,
.quarry-clean-support-title span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #0f172a;
    font-weight: 950;
}

.quarry-clean-map-title i,
.quarry-clean-support-title i {
    color: var(--quarry-blue);
}

.quarry-clean-map-title em,
.quarry-clean-support-title em {
    color: #64748b;
    font-size: .86rem;
    font-style: normal;
    line-height: 1.35;
}

.quarry-clean-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
    counter-reset: quarry-road-step;
}

.quarry-clean-step,
.quarry-clean-branch {
    position: relative;
    min-height: 195px;
    padding: 1rem;
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.quarry-clean-step:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--quarry-blue), #22d3ee);
}

.quarry-clean-step:after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -22px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .07);
}

.quarry-clean-step > i,
.quarry-clean-branch > i {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    margin-bottom: .55rem;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--quarry-blue), #22d3ee);
    box-shadow: 0 12px 24px rgba(14, 165, 233, .22);
    font-size: 1.2rem;
}

.quarry-clean-step-no {
    position: absolute;
    top: .85rem;
    right: .85rem;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: #ef4444;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(239, 68, 68, .28);
    z-index: 2;
}

.quarry-clean-step h3,
.quarry-clean-branch h3 {
    margin: 0 0 .35rem;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.quarry-clean-step p,
.quarry-clean-branch p {
    min-height: 3.5rem;
    margin: 0 0 .85rem;
    color: #475569;
    font-size: .86rem;
    line-height: 1.45;
}

.quarry-clean-step a,
.quarry-clean-branch a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.2rem;
    padding: .55rem .75rem;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--quarry-blue), var(--quarry-blue-dark));
    text-decoration: none;
    font-size: .82rem;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(2, 132, 199, .22);
}

.quarry-clean-step a:hover,
.quarry-clean-branch a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.quarry-clean-visual-road {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr);
    align-items: stretch;
    gap: .25rem;
    padding: 1rem;
    margin: .25rem 0 1.1rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(30, 41, 59, .95));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 34px rgba(15, 23, 42, .12);
}

.quarry-clean-asset {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 120px;
    padding: .85rem .65rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
}

.quarry-clean-asset i {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    place-items: center;
    margin-bottom: .45rem;
    color: #67e8f9;
    border: 2px solid rgba(103, 232, 249, .28);
    border-radius: 18px;
    background: rgba(8, 145, 178, .22);
    font-size: 1.55rem;
}

.quarry-clean-asset strong {
    display: block;
    color: #fff;
    font-size: .86rem;
    font-weight: 950;
    line-height: 1.1;
}

.quarry-clean-asset span {
    display: block;
    margin-top: .2rem;
    color: #cbd5e1;
    font-size: .75rem;
    line-height: 1.2;
}

.quarry-clean-road-arrow {
    display: grid;
    place-items: center;
    color: var(--quarry-road-line);
    font-size: 1.45rem;
}

.quarry-clean-support-title {
    margin-top: .25rem;
}

.quarry-clean-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.quarry-clean-branch {
    min-height: 175px;
    border-color: rgba(15, 118, 110, .2);
    background: linear-gradient(180deg, rgba(240, 253, 250, .98), rgba(255,255,255,.98));
}

.quarry-clean-branch:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--quarry-green), #14b8a6);
}

.quarry-clean-branch > i {
    background: linear-gradient(135deg, var(--quarry-green), #14b8a6);
    box-shadow: 0 12px 24px rgba(20, 184, 166, .22);
}

.quarry-clean-branch a {
    background: linear-gradient(135deg, var(--quarry-green), #14b8a6);
    box-shadow: 0 12px 24px rgba(20, 184, 166, .18);
}

.quarry-clean-bottom-strip {
    margin-top: 1rem;
}

@media (max-width: 1199.98px) {
    .quarry-clean-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quarry-clean-visual-road {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quarry-clean-road-arrow {
        display: none;
    }

    .quarry-clean-support-grid,
    .quarry-clean-bottom-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .quarry-clean-map-title,
    .quarry-clean-support-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .quarry-clean-flow,
    .quarry-clean-visual-road,
    .quarry-clean-support-grid,
    .quarry-clean-bottom-strip {
        grid-template-columns: 1fr;
    }

    .quarry-clean-step,
    .quarry-clean-branch {
        min-height: auto;
    }

    .quarry-clean-step p,
    .quarry-clean-branch p {
        min-height: 0;
    }
}

/* Quarry Road Map v3 - visual road layout with small non-overlapping process cards */
.quarry-journey-shell {
    --qj-blue: #0284c7;
    --qj-blue-dark: #075985;
    --qj-cyan: #22d3ee;
    --qj-green: #0f766e;
    --qj-green-dark: #115e59;
    --qj-red: #ef4444;
    --qj-road: #172033;
    --qj-ink: #0f172a;
    --qj-muted: #475569;
}

.quarry-journey-hero {
    margin-bottom: .85rem;
}

.quarry-journey-scroll-hint {
    display: none;
    margin: 0 0 .7rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(14,165,233,.22);
    border-radius: 999px;
    background: rgba(224,242,254,.72);
    color: #075985;
    font-size: .84rem;
    font-weight: 900;
}

.quarry-journey-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 92px 106px 112px 108px 108px 82px;
    column-gap: 12px;
    row-gap: 10px;
    min-width: 1160px;
    min-height: 650px;
    padding: 22px;
    border: 1px dashed rgba(15, 23, 42, .12);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(14,165,233,.13), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(20,184,166,.16), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .10);
}

.quarry-journey-stage:before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    background-image:
        linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .55;
    pointer-events: none;
}

.quarry-journey-road-svg {
    position: absolute;
    inset: 18px 26px 20px 26px;
    z-index: 1;
    pointer-events: none;
}

.quarry-journey-road-main {
    fill: none;
    stroke: url(#quarryRoadFill);
    stroke-width: 96;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quarry-journey-road-line {
    fill: none;
    stroke: rgba(255,255,255,.78);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 36 32;
}

.quarry-journey-service-road {
    fill: none;
    stroke: rgba(14,165,233,.62);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 14 16;
}

.quarry-journey-card,
.quarry-journey-object {
    position: relative;
    z-index: 4;
}

.quarry-journey-card {
    align-self: center;
    min-height: 120px;
    padding: .76rem .78rem .72rem;
    border: 1px solid rgba(14, 165, 233, .20);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .13);
    transition: transform .15s ease, box-shadow .15s ease;
}

.quarry-journey-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, .17);
}

.quarry-journey-card-main:before,
.quarry-journey-card-branch:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--qj-blue), var(--qj-cyan));
}

.quarry-journey-card-branch {
    border-color: rgba(15, 118, 110, .22);
    background: linear-gradient(180deg, rgba(240,253,250,.97), rgba(255,255,255,.97));
}

.quarry-journey-card-branch:before {
    background: linear-gradient(90deg, var(--qj-green), #14b8a6);
}

.quarry-journey-card > i {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    margin-bottom: .36rem;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--qj-blue), var(--qj-cyan));
    box-shadow: 0 10px 20px rgba(14, 165, 233, .23);
    font-size: 1rem;
}

.quarry-journey-card-branch > i {
    background: linear-gradient(135deg, var(--qj-green), #14b8a6);
    box-shadow: 0 10px 20px rgba(15, 118, 110, .2);
}

.quarry-journey-card h3 {
    margin: 0 2.1rem .22rem 0;
    color: var(--qj-ink);
    font-size: .93rem;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.quarry-journey-card p {
    min-height: 2.4rem;
    margin: 0 0 .55rem;
    color: var(--qj-muted);
    font-size: .76rem;
    line-height: 1.32;
}

.quarry-journey-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.95rem;
    padding: .42rem .62rem;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qj-blue), var(--qj-blue-dark));
    text-decoration: none;
    font-size: .72rem;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(2, 132, 199, .22);
}

.quarry-journey-card a:hover {
    color: #fff;
    filter: brightness(1.05);
}

.quarry-journey-card-branch a {
    background: linear-gradient(135deg, var(--qj-green), #14b8a6);
    box-shadow: 0 10px 20px rgba(15, 118, 110, .18);
}

.qj-no {
    position: absolute;
    top: -.78rem;
    right: -.7rem;
    display: grid;
    width: 2.05rem;
    height: 2.05rem;
    place-items: center;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--qj-red);
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(239, 68, 68, .28);
}

.qj-step-1 { grid-column: 1 / span 2; grid-row: 5; }
.qj-step-2 { grid-column: 2 / span 2; grid-row: 3; }
.qj-step-3 { grid-column: 4 / span 2; grid-row: 5; }
.qj-step-4 { grid-column: 5 / span 2; grid-row: 2; }
.qj-step-5 { grid-column: 7 / span 2; grid-row: 3; }
.qj-step-6 { grid-column: 9 / span 2; grid-row: 5; }
.qj-step-7 { grid-column: 10 / span 2; grid-row: 3; }
.qj-step-8 { grid-column: 11 / span 2; grid-row: 5; }
.qj-step-9 { grid-column: 10 / span 2; grid-row: 1; }

.qj-branch-spares { grid-column: 4 / span 2; grid-row: 1; }
.qj-branch-maintenance { grid-column: 4 / span 2; grid-row: 3; transform: translateY(12px); }
.qj-branch-purchasing { grid-column: 8 / span 2; grid-row: 1; }
.qj-branch-safety { grid-column: 10 / span 2; grid-row: 2; }

.quarry-journey-object {
    align-self: center;
    justify-self: center;
    display: grid;
    place-items: center;
    min-width: 94px;
    padding: .5rem .62rem;
    border: 1px solid rgba(8,145,178,.20);
    border-radius: 18px;
    background: rgba(240,249,255,.88);
    color: #075985;
    text-align: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.quarry-journey-object span {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    margin-bottom: .28rem;
    color: #0891b2;
    border: 2px solid rgba(34,211,238,.35);
    border-radius: 16px;
    background: rgba(236,254,255,.95);
    font-size: 1.2rem;
}

.quarry-journey-object strong {
    color: #0f172a;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.05;
}

.quarry-journey-object-face { grid-column: 1 / span 2; grid-row: 1; }
.quarry-journey-object-conveyor { grid-column: 6 / span 1; grid-row: 3; transform: translateY(-8px); }
.quarry-journey-object-crusher { grid-column: 6 / span 2; grid-row: 4; }
.quarry-journey-object-stockpile { grid-column: 8 / span 1; grid-row: 4; }
.quarry-journey-object-emptytruck { grid-column: 6 / span 2; grid-row: 5; transform: translateY(10px); }
.quarry-journey-object-loadedtruck { grid-column: 9 / span 2; grid-row: 4; transform: translateY(18px); }
.quarry-journey-object-client { grid-column: 12 / span 1; grid-row: 3; }

.quarry-journey-bottom-strip {
    margin-top: 1rem;
}

@media (max-width: 1250px) {
    .quarry-journey-shell {
        overflow-x: auto;
        padding-bottom: .4rem;
    }

    .quarry-journey-scroll-hint {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
    }

    .quarry-journey-stage {
        width: 1160px;
    }
}

@media (max-width: 767.98px) {
    .quarry-journey-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .quarry-journey-stage {
        min-height: 640px;
        padding: 18px;
    }

    .quarry-journey-card {
        min-height: 115px;
    }
}

/* Quarry Road Map: compact process cards adjusted 10% bigger than the previous 50%-smaller version.
   This only affects the visual road-map process cards, not normal runtime grid cards. */
.quarry-journey-card {
    justify-self: center;
    width: 62%;
    min-width: 116px;
    min-height: 68px;
    padding: .37rem .40rem .35rem;
    border-radius: 11px;
    box-shadow: 0 9px 18px rgba(15, 23, 42, .12);
}

.quarry-journey-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 20px rgba(15, 23, 42, .15);
}

.quarry-journey-card-main:before,
.quarry-journey-card-branch:before {
    height: 3px;
    border-radius: 11px 11px 0 0;
}

.quarry-journey-card > i {
    width: 1.16rem;
    height: 1.16rem;
    margin-bottom: .17rem;
    border-radius: 8px;
    font-size: .61rem;
    box-shadow: 0 6px 11px rgba(14, 165, 233, .18);
}

.quarry-journey-card-branch > i {
    box-shadow: 0 6px 11px rgba(15, 118, 110, .16);
}

.quarry-journey-card h3 {
    margin: 0 1.16rem .09rem 0;
    font-size: .61rem;
    line-height: 1.08;
    letter-spacing: -.01em;
}

.quarry-journey-card p {
    min-height: 1.16rem;
    margin: 0 0 .20rem;
    font-size: .53rem;
    line-height: 1.18;
}

.quarry-journey-card a {
    min-height: 1.16rem;
    padding: .18rem .27rem;
    border-radius: 999px;
    font-size: .51rem;
    line-height: 1.08;
    white-space: normal;
    box-shadow: 0 6px 11px rgba(2, 132, 199, .16);
}

.quarry-journey-card-branch a {
    box-shadow: 0 6px 11px rgba(15, 118, 110, .14);
}

.qj-no {
    top: -.42rem;
    right: -.37rem;
    width: 1.19rem;
    height: 1.19rem;
    border-width: 2px;
    font-size: .55rem;
    box-shadow: 0 7px 13px rgba(239, 68, 68, .22);
}

@media (max-width: 767.98px) {
    .quarry-journey-card {
        width: 62%;
        min-height: 68px;
    }
}

/* Quarry road-map quick process cards above the visual road.
   Very compact, clickable, and scoped to the road-map page only. */
.quarry-roadmap-kpi-wrap {
    margin: .35rem 0 .9rem;
    padding: .62rem;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}

.quarry-roadmap-kpi-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .65rem;
    margin: 0 0 .48rem;
    color: #0f172a;
}

.quarry-roadmap-kpi-title strong {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 950;
}

.quarry-roadmap-kpi-title span,
.quarry-roadmap-kpi-title small {
    display: block;
    color: #64748b;
    font-size: .64rem;
    line-height: 1.2;
}

.quarry-roadmap-kpi-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .45rem;
}

.quarry-roadmap-kpi {
    display: block;
    min-height: 68px;
    padding: .48rem .55rem .43rem;
    border: 1px solid #d8e1ec;
    border-left-width: 4px;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 5px 13px rgba(15, 23, 42, .045);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.quarry-roadmap-kpi:hover {
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .09);
}

.quarry-roadmap-kpi span,
.quarry-roadmap-kpi small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quarry-roadmap-kpi span {
    color: #475569;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1.05;
}

.quarry-roadmap-kpi strong {
    display: block;
    margin: .12rem 0 .08rem;
    color: #0f172a;
    font-size: 1.14rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.03em;
}

.quarry-roadmap-kpi small {
    color: #64748b;
    font-size: .55rem;
    line-height: 1.05;
}

.qrm-kpi-success { border-color: #16a34a; }
.qrm-kpi-success strong { color: #15803d; }
.qrm-kpi-warning { border-color: #f59e0b; }
.qrm-kpi-warning strong { color: #b45309; }
.qrm-kpi-danger { border-color: #ef4444; }
.qrm-kpi-danger strong { color: #e11d48; }
.qrm-kpi-primary { border-color: #38bdf8; }
.qrm-kpi-primary strong { color: #0369a1; }
.qrm-kpi-secondary { border-color: #94a3b8; }
.qrm-kpi-secondary strong { color: #475569; }

@media (max-width: 1399.98px) {
    .quarry-roadmap-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .quarry-roadmap-kpi-title { align-items: flex-start; flex-direction: column; }
    .quarry-roadmap-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .quarry-roadmap-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Quarry Software 360 CEO dashboard */
.quarry-ceo-dashboard-shell {
    position: relative;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(240, 249, 255, .95), rgba(255, 255, 255, .96));
    box-shadow: 0 20px 46px rgba(15, 23, 42, .08);
}

.quarry-ceo-loading {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .75rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(14, 165, 233, .20);
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: #0369a1;
    font-size: .78rem;
    font-weight: 800;
}

.quarry-ceo-loading-soft { opacity: .86; }

.quarry-ceo-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .18), transparent 36%), #fff;
    border: 1px solid rgba(148, 163, 184, .22);
}

.quarry-ceo-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .45rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: .75rem;
    font-weight: 900;
}

.quarry-ceo-hero h2 {
    margin: 0;
    max-width: 940px;
    color: #0f172a;
    font-size: clamp(1.3rem, 2.4vw, 2.2rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -.045em;
}

.quarry-ceo-hero p {
    max-width: 870px;
    margin: .55rem 0 0;
    color: #475569;
    font-size: .95rem;
    line-height: 1.55;
}

.quarry-ceo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
    min-width: 270px;
}

.quarry-ceo-period-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .75rem 0;
    padding: .65rem .85rem;
    border: 1px solid rgba(14, 165, 233, .16);
    border-radius: 14px;
    background: rgba(224, 242, 254, .65);
    color: #334155;
    font-size: .82rem;
}

.quarry-ceo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .85rem;
}

.quarry-ceo-kpi {
    display: block;
    min-height: 78px;
    padding: .55rem .62rem .5rem;
    border: 1px solid #d8e1ec;
    border-left-width: 4px;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
    transition: transform .12s ease, box-shadow .12s ease;
}

.quarry-ceo-kpi:hover {
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
}

.quarry-ceo-kpi span,
.quarry-ceo-kpi small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quarry-ceo-kpi span {
    color: #475569;
    font-size: .66rem;
    line-height: 1.05;
    font-weight: 900;
}

.quarry-ceo-kpi strong {
    display: block;
    margin: .15rem 0 .1rem;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -.04em;
}

.quarry-ceo-kpi small {
    color: #64748b;
    font-size: .56rem;
    line-height: 1.05;
}

.qceo-good { border-color: #16a34a; }
.qceo-good strong { color: #15803d; }
.qceo-primary { border-color: #0ea5e9; }
.qceo-primary strong { color: #0369a1; }
.qceo-warning { border-color: #f59e0b; }
.qceo-warning strong { color: #b45309; }
.qceo-danger { border-color: #ef4444; }
.qceo-danger strong { color: #e11d48; }

.quarry-ceo-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.quarry-ceo-card {
    min-height: 280px;
    padding: .85rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.quarry-ceo-card-wide { grid-column: span 2; }

.quarry-ceo-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .7rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.quarry-ceo-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: .98rem;
    font-weight: 950;
}

.quarry-ceo-card header span {
    max-width: 48%;
    color: #64748b;
    font-size: .7rem;
    line-height: 1.25;
    text-align: right;
}

.quarry-ceo-bars {
    display: grid;
    gap: .52rem;
}

.quarry-ceo-bar-row {
    display: grid;
    gap: .18rem;
}

.quarry-ceo-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: #334155;
    font-size: .74rem;
    font-weight: 850;
}

.quarry-ceo-bar-head strong {
    color: #0f172a;
    font-size: .78rem;
    font-weight: 950;
    white-space: nowrap;
}

.quarry-ceo-bar-track {
    height: .5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.quarry-ceo-bar-track i {
    display: block;
    height: 100%;
    min-width: 3%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0284c7, #22c55e);
}

.quarry-ceo-bar-row small {
    color: #64748b;
    font-size: .64rem;
}

.quarry-ceo-empty {
    padding: .8rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.quarry-ceo-attention-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.quarry-ceo-attention-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    padding: .6rem;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    text-decoration: none;
}

.quarry-ceo-attention-row:hover { color: #0f172a; text-decoration: none; background: #f8fafc; }
.quarry-ceo-attention-row span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0369a1;
}
.quarry-ceo-attention-row strong { display: block; font-size: .78rem; font-weight: 950; }
.quarry-ceo-attention-row small { display: block; color: #64748b; font-size: .66rem; line-height: 1.25; }
.quarry-ceo-attention-row em { color: #0f172a; font-style: normal; font-weight: 950; }
.qceo-attention-danger { border-left-color: #ef4444; }
.qceo-attention-warning { border-left-color: #f59e0b; }
.qceo-attention-good { border-left-color: #22c55e; }
.qceo-attention-info { border-left-color: #0ea5e9; }

@media (max-width: 1399.98px) {
    .quarry-ceo-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .quarry-ceo-hero { flex-direction: column; }
    .quarry-ceo-actions { justify-content: flex-start; min-width: 0; }
    .quarry-ceo-chart-grid { grid-template-columns: 1fr; }
    .quarry-ceo-card-wide { grid-column: auto; }
    .quarry-ceo-attention-list { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .quarry-ceo-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quarry-ceo-card header { flex-direction: column; }
    .quarry-ceo-card header span { max-width: none; text-align: left; }
}

/* Quarry CEO dashboard: show Quick Views and filter dropdowns at the top.
   The generic Runtime Page renders dashboard content before filters for custom pages.
   This page-specific flex order keeps the page header first, then Quick Views, filters,
   navigation cards, and finally the CEO dashboard figures/graphs. */
.runtime-page-quarry-ceo-dashboard {
    display: flex;
    flex-direction: column;
}

.runtime-page-quarry-ceo-dashboard > .runtime-page-header {
    order: 0;
}

.runtime-page-quarry-ceo-dashboard > .runtime-page-info-modal {
    order: 0;
}

.runtime-page-quarry-ceo-dashboard > .runtime-quick-view-card {
    order: 1;
    margin-top: 0;
    margin-bottom: 12px;
    border-color: rgba(14, 165, 233, .22);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.runtime-page-quarry-ceo-dashboard > .runtime-filter-card {
    order: 2;
    margin-top: 0;
    margin-bottom: 16px;
    border-color: rgba(14, 165, 233, .22);
    background: #ffffff;
}

.runtime-page-quarry-ceo-dashboard > .runtime-shortcut-row {
    order: 3;
}

.runtime-page-quarry-ceo-dashboard > .quarry-ceo-dashboard-shell {
    order: 4;
}

.runtime-page-quarry-ceo-dashboard > .runtime-action-bar,
.runtime-page-quarry-ceo-dashboard > .runtime-upload-card,
.runtime-page-quarry-ceo-dashboard > .runtime-info-panel,
.runtime-page-quarry-ceo-dashboard > .runtime-grid-layout-1,
.runtime-page-quarry-ceo-dashboard > .runtime-grid-layout-2,
.runtime-page-quarry-ceo-dashboard > .runtime-grid-card {
    order: 5;
}

/* Sebetsa Management Dashboard presentation page */
.sebetsa-dashboard-shell {
    margin: 1rem 0 1.25rem;
    display: grid;
    gap: 1rem;
}

.sebetsa-hero,
.sebetsa-site-overview,
.sebetsa-workflow-strip,
.sebetsa-feature-strip {
    background: #fff;
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 1.15rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.sebetsa-hero {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(240, 249, 255, .92));
}

.sebetsa-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, .12);
    color: #0f766e;
    font-weight: 800;
    letter-spacing: .16em;
    font-size: .75rem;
}

.sebetsa-hero h2 {
    margin: .5rem 0 .25rem;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    font-weight: 900;
    color: #0f172a;
}

.sebetsa-hero p,
.sebetsa-section-heading p {
    margin: 0;
    color: #475569;
}

.sebetsa-status-key {
    min-width: 230px;
    display: grid;
    gap: .4rem;
    padding: .85rem 1rem;
    border-radius: .95rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(148, 163, 184, .25);
}

.sebetsa-status-key span,
.sebetsa-feature-strip span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #334155;
}

.sebetsa-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    display: inline-block;
}

.sebetsa-dot.green { background: #16a34a; }
.sebetsa-dot.yellow { background: #f59e0b; }
.sebetsa-dot.red { background: #dc2626; }

.sebetsa-site-overview { padding: 1rem; }

.sebetsa-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sebetsa-section-heading span {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .75rem;
    color: #0f766e;
    font-weight: 800;
}

.sebetsa-section-heading h3 {
    margin: .2rem 0 .25rem;
    font-weight: 900;
    color: #0f172a;
}

.sebetsa-admin-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
}

/* Compact Sebetsa site cards: quarry-road style; only the View site button is clickable. */
.sebetsa-site-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: .55rem;
    align-items: stretch;
}

.sebetsa-scope-note {
    grid-column: 1 / -1;
    border: 1px solid rgba(14, 165, 233, .28);
    background: rgba(240, 249, 255, .9);
    color: #075985;
    border-radius: .65rem;
    padding: .45rem .65rem;
    font-size: .78rem;
    font-weight: 700;
}

.sebetsa-site-card,
.sebetsa-loading-card {
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid rgba(148, 163, 184, .32);
    border-top: 3px solid #0ea5e9;
    background: rgba(255, 255, 255, .96);
    padding: .55rem .65rem .6rem;
    min-height: 128px;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: .25rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .09);
    cursor: default;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sebetsa-site-card:hover {
    border-color: rgba(14, 165, 233, .55);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.sebetsa-site-card.selected {
    border-color: rgba(14, 165, 233, .70);
    border-top-color: #0ea5e9;
    background: rgba(255, 255, 255, .98);
    outline: 1px solid rgba(14, 165, 233, .22);
    box-shadow: 0 12px 26px rgba(14, 165, 233, .14);
}

.sebetsa-site-card-accent {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}

.sebetsa-site-card.selected .sebetsa-site-card-accent {
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}

.sebetsa-site-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    min-width: 0;
}

.sebetsa-site-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: .55rem;
    display: grid;
    place-items: center;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid rgba(2, 132, 199, .22);
    font-size: .85rem;
    flex: 0 0 auto;
}

.sebetsa-site-card.selected .sebetsa-site-icon {
    color: #0284c7;
    background: #e0f2fe;
    border-color: rgba(2, 132, 199, .22);
}

.sebetsa-site-index {
    color: #0f766e;
    font-size: .68rem;
    font-weight: 900;
    white-space: nowrap;
}

.sebetsa-site-card.selected .sebetsa-site-index {
    color: #0f766e;
}

.sebetsa-site-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: .72rem;
}

.sebetsa-site-card-top strong {
    color: #0f766e;
    font-size: .85rem;
}

.sebetsa-site-card.selected .sebetsa-site-card-top strong {
    color: #0f766e;
}

.sebetsa-site-card h4 {
    margin: .05rem 0 0;
    color: #0f172a;
    font-weight: 950;
    font-size: .92rem;
    line-height: 1.05;
    min-height: 1.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sebetsa-site-percent {
    display: grid;
    gap: .05rem;
}

.sebetsa-site-percent strong {
    color: #008236;
    font-size: .78rem;
    font-weight: 950;
}

.sebetsa-site-card.selected .sebetsa-site-percent strong {
    color: #008236;
}

.sebetsa-site-percent span,
.sebetsa-site-mini {
    color: #64748b;
    font-size: .66rem;
}

.sebetsa-site-mini {
    display: flex;
    flex-wrap: nowrap;
    gap: .2rem;
    white-space: nowrap;
    overflow: hidden;
}

.sebetsa-site-mini span {
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: .05rem .2rem;
    border: 1px solid rgba(148, 163, 184, .16);
}

.sebetsa-site-card.selected .sebetsa-site-mini span {
    background: #f8fafc;
    color: #475569;
}

.sebetsa-site-action {
    margin-top: .12rem;
    border: 0;
    border-radius: .38rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    font-size: .64rem;
    font-weight: 950;
    line-height: 1;
    padding: .32rem .45rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 14px rgba(14, 165, 233, .22);
}

.sebetsa-site-action:hover,
.sebetsa-site-action:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0369a1, #075985);
}

.sebetsa-site-card.selected .sebetsa-site-action {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 8px 14px rgba(14, 165, 233, .22);
}

.sebetsa-workflow-strip {
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.sebetsa-workflow-step {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: .85rem;
    padding: .55rem .7rem;
}

.sebetsa-workflow-step strong {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .8rem;
}

.sebetsa-feature-strip {
    padding: .85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
}

.sebetsa-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-weight: 800;
    font-size: .78rem;
}

.sebetsa-status-pill::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
}

.sebetsa-status-pill.valid { color: #166534; background: #dcfce7; }
.sebetsa-status-pill.soon { color: #92400e; background: #fef3c7; }
.sebetsa-status-pill.expired { color: #991b1b; background: #fee2e2; }

tr.sebetsa-row-green td { background: rgba(220, 252, 231, .34) !important; }
tr.sebetsa-row-yellow td { background: rgba(254, 243, 199, .45) !important; }
tr.sebetsa-row-red td { background: rgba(254, 226, 226, .42) !important; }

.sebetsa-escalation-action-section .pm-action-card {
    border-color: rgba(13, 148, 136, .35);
}

@media (max-width: 768px) {
    .sebetsa-hero,
    .sebetsa-section-heading {
        display: grid;
    }

    .sebetsa-status-key,
    .sebetsa-admin-badge {
        width: 100%;
    }
}


/* SHE live dashboard export card */
.she-live-export-panel .pm-reconciliation-export-grid,
.sebetsa-export-panel .pm-reconciliation-export-grid {
    grid-template-columns: minmax(280px, 1fr);
}

.sebetsa-export-panel {
    margin-bottom: 14px;
}

/* Quarry Purchasing & Supplies dashboard - one-page card workflow */
.runtime-page-quarry-purchasing-supplies-dashboard .runtime-shortcut-row,
.runtime-page-quarry-purchasing-supplies-dashboard > .runtime-action-bar {
    display: none !important;
}

.quarry-supplies-dashboard {
    margin: 1.15rem 0 1rem;
    padding: 1rem;
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240,253,250,.95), rgba(255,255,255,.98));
    box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.quarry-supplies-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.quarry-supplies-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, .10);
    color: #0f766e;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.quarry-supplies-intro h2 {
    margin: 0 0 .3rem;
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
}

.quarry-supplies-intro p {
    margin: 0;
    color: #475569;
    max-width: 760px;
}

.quarry-supplies-status-key {
    display: grid;
    gap: .35rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    color: #334155;
    font-size: .84rem;
}

.quarry-supplies-status-key strong {
    color: #0f172a;
    font-size: .92rem;
}

.quarry-supplies-status-key span {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.qps-dot {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
}

.qps-green { background: #059669; }
.qps-yellow { background: #f59e0b; }
.qps-red { background: #dc2626; }

.quarry-supplies-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: .85rem;
}

.quarry-supplies-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    min-height: 78px;
    padding: .8rem .85rem;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid rgba(15, 118, 110, .25);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.quarry-supplies-card:hover,
.quarry-supplies-card:focus,
.quarry-supplies-card.qps-card-active {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, .65);
    background: #f8fdff;
    box-shadow: 0 12px 24px rgba(14, 165, 233, .12);
    color: #0f172a;
}

.qps-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid rgba(15, 118, 110, .55);
    border-radius: 999px;
    color: #0f766e;
    background: #ecfeff;
    font-size: 1.1rem;
}

.qps-card-copy {
    min-width: 0;
    display: grid;
    line-height: 1.15;
}

.qps-card-copy strong {
    font-size: 1rem;
    font-weight: 950;
    color: #0f172a;
}

.qps-card-copy em {
    font-style: normal;
    font-weight: 850;
    color: #0f766e;
    font-size: .78rem;
}

.qps-card-copy small {
    margin-top: .18rem;
    color: #64748b;
    font-size: .72rem;
}

.qps-card-open {
    white-space: nowrap;
    padding: .18rem .45rem;
    border: 1px solid #0f766e;
    border-radius: 999px;
    color: #0f766e;
    font-size: .7rem;
    font-weight: 900;
}

.quarry-supplies-flow-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}

.quarry-supplies-flow-strip span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .6rem;
    border: 1px solid rgba(15, 118, 110, .32);
    border-radius: 8px;
    background: #f0fdfa;
    color: #134e4a;
    font-size: .78rem;
    font-weight: 850;
}

.quarry-supplies-flow-strip b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #0f766e;
    color: white;
    font-size: .72rem;
}

.quarry-supplies-action-panel {
    margin: .85rem 0;
    padding: .9rem;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.qps-action-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.qps-action-head h3 {
    margin: 0 0 .15rem;
    font-size: 1rem;
    font-weight: 950;
    color: #0f172a;
}

.qps-action-head p {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
}

.qps-action-head span {
    flex: 0 0 auto;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .72rem;
    font-weight: 900;
}

.qps-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
    gap: .8rem;
    align-items: end;
}

.qps-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .quarry-supplies-card-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    .qps-action-grid { grid-template-columns: 1fr; }
    .qps-action-buttons { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .quarry-supplies-intro { grid-template-columns: 1fr; }
    .quarry-supplies-card-grid { grid-template-columns: 1fr; }
    .quarry-supplies-card { grid-template-columns: 2.7rem minmax(0, 1fr); }
    .qps-card-open { grid-column: 2; justify-self: start; }
    .qps-action-head { flex-direction: column; }
}

/* Quarry Purchasing & Supplies: switch cards without a full page refresh. */
.quarry-supplies-card {
    cursor: pointer;
}

.quarry-supplies-card[aria-current="true"] .qps-card-open {
    background: #0f766e;
    color: #fff;
}

.runtime-grid-card[data-qps-active-grid="true"] {
    animation: qpsActiveGridFadeIn .22s ease-out;
}

.qps-grid-switching {
    opacity: .62;
    transform: translateY(1px);
    transition: opacity .18s ease, transform .18s ease;
}

@keyframes qpsActiveGridFadeIn {
    from { opacity: .55; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
