:root {
    /* Corporate navy + cyan (SIGNALS-inspired) */
    --px-navy: #122b44;
    --px-navy-deep: #0a1f33;
    --px-navy-mid: #1a3a56;
    --px-primary: #0d8ecf;
    --px-primary-dark: #0670a8;
    --px-primary-soft: #e3f4fc;
    --px-accent: #22b8e8;
    --px-accent-glow: rgba(34, 184, 232, 0.35);
    --px-sidebar: var(--px-navy);
    --px-sidebar-text: #a8bdd4;
    --px-sidebar-active: var(--px-accent);
    --px-bg: #f0f4f8;
    --px-surface: #ffffff;
    --px-border: #ced4da;
    --px-border-light: #e9ecef;
    --px-text: #122b44;
    --px-muted: #5a6b7d;
    --px-shadow: 0 1px 2px rgba(18, 43, 68, 0.06), 0 12px 32px rgba(18, 43, 68, 0.08);
    --px-shadow-lg: 0 20px 50px rgba(18, 43, 68, 0.12);
    --px-radius: 0.5rem;
    --px-radius-lg: 0.75rem;
    --px-success: #0d9f6e;
    --px-warning: #d97706;
    --px-danger: #dc3545;
    --px-font: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --px-sidebar-width: 272px;
    --px-gradient-hero: linear-gradient(135deg, var(--px-navy-deep) 0%, var(--px-navy) 45%, #0d5a82 100%);
    --px-gradient-accent: linear-gradient(135deg, var(--px-primary) 0%, var(--px-accent) 100%);
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--px-font);
    background: var(--px-bg);
    color: var(--px-text);
    overflow: hidden;
}

body.prexc-sidebar-open {
    overflow: hidden;
}

.prexc-shell {
    min-height: 100%;
    height: 100%;
}

.prexc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: var(--px-sidebar-width);
    max-width: min(var(--px-sidebar-width), 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--px-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Corporate dark sidebar */
.prexc-sidebar.prexc-sidebar-corporate {
    background: var(--px-gradient-hero);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 24px rgba(10, 31, 51, 0.15);
}

.prexc-sidebar-corporate .brand-block {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.prexc-sidebar-corporate .brand-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.prexc-sidebar-corporate .brand-subtitle {
    color: var(--px-sidebar-text);
    font-size: 0.78rem;
}

.prexc-sidebar-corporate .brand-mark-doc {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--px-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.prexc-sidebar-corporate .brand-mark-doc svg {
    width: 22px;
    height: 22px;
}

.prexc-sidebar-corporate .nav-link {
    color: var(--px-sidebar-text);
    font-weight: 500;
    border-radius: 0.45rem;
    transition: background 0.2s, color 0.2s;
}

.prexc-sidebar-corporate .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.prexc-sidebar-corporate .nav-link.active {
    color: #fff;
    background: rgba(34, 184, 232, 0.18);
    box-shadow: inset 3px 0 0 var(--px-accent);
    font-weight: 600;
}

.px-settings-card {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.px-settings-card:hover {
    border-color: var(--px-accent);
    box-shadow: 0 4px 14px rgba(15, 43, 68, 0.1);
}

.px-settings-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(13, 142, 207, 0.12);
    color: var(--px-accent);
    flex-shrink: 0;
}

.px-settings-card-icon .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.prexc-sidebar-corporate .sidebar-user-block {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.prexc-sidebar-corporate .sidebar-user-card .avatar {
    background: var(--px-gradient-accent);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.prexc-sidebar-corporate .sidebar-user-card .fw-semibold {
    color: #fff;
}

.prexc-sidebar-corporate .sidebar-user-card .small {
    color: var(--px-sidebar-text) !important;
}

.prexc-sidebar-corporate .sidebar-settings-link {
    color: var(--px-sidebar-text) !important;
}

.prexc-sidebar-corporate .sidebar-settings-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-block {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.35rem 0.75rem;
    border-radius: var(--px-radius);
    transition: background 0.15s ease;
}

a.sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

a.sidebar-user-card.active {
    background: rgba(255, 255, 255, 0.12);
}

.px-profile-avatar-lg {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--px-gradient-accent);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-card .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--px-gradient-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-settings-link {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.88rem;
}

.prexc-topbar-dashboard {
    background: var(--px-bg);
    border-bottom: none;
    min-height: auto;
    padding-top: 1.25rem !important;
}

.px-search-form {
    position: relative;
    max-width: 100%;
}

.px-search-form .form-control {
    border-radius: 0.65rem;
    border: 1px solid var(--px-border);
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.px-search-form-sm {
    max-width: 280px;
}

.px-search-form-sm .form-control {
    padding-left: 1rem;
}

.px-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--px-muted);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.px-search-icon svg {
    width: 18px;
    height: 18px;
}

.px-notify-dropdown {
    position: relative;
    flex-shrink: 0;
}

.px-notify-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    border: 1px solid var(--px-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.px-notify-panel {
    position: fixed;
    width: min(22rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 43, 68, 0.14);
    z-index: 1060;
    overflow: hidden;
    display: block;
}

.px-notify-panel[hidden] {
    display: none !important;
}

.px-notify-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--px-border-light, #e9ecef);
    background: #f8fafc;
    font-size: 0.88rem;
}

.px-notify-panel-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--px-primary, #0d8ecf);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    min-width: 1.25rem;
    text-align: center;
}

.px-notify-panel-body {
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.px-notify-empty {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--px-muted, #64748b);
}

.px-notify-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.px-notify-item + .px-notify-item {
    border-top: 1px solid var(--px-border-light, #e9ecef);
}

.px-notify-item-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.px-notify-item-link:hover {
    background: #f1f5f9;
}

.px-notify-type {
    grid-row: span 2;
    align-self: start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.4rem;
    border-radius: 0.35rem;
    line-height: 1.2;
}

.px-notify-type-review { background: #dbeafe; color: #1d4ed8; }
.px-notify-type-overdue { background: #fee2e2; color: #b91c1c; }
.px-notify-type-due { background: #fef3c7; color: #b45309; }
.px-notify-type-missing { background: #dcfce7; color: #15803d; }
.px-notify-type-signup { background: #e0e7ff; color: #3730a3; }
.px-notify-type-pending { background: #fef3c7; color: #92400e; }
.px-notify-type-account-approved { background: #dcfce7; color: #166534; }
.px-notify-type-account-rejected { background: #fee2e2; color: #991b1b; }
.px-notify-type-default { background: #f1f5f9; color: #475569; }

.px-notify-message {
    font-size: 0.82rem;
    color: var(--px-text, #0f172a);
    line-height: 1.35;
}

.px-notify-action {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--px-primary-dark, #0a6fa0);
}

.px-notify-more {
    padding: 0.35rem 0.85rem 0.5rem;
}

.px-notify-panel-footer {
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--px-border-light, #e9ecef);
    background: #f8fafc;
    text-align: center;
}

.px-notify-see-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--px-primary-dark, #0a6fa0);
    text-decoration: none;
}

.px-notify-see-all:hover {
    text-decoration: underline;
}

.px-notify-dropdown.is-open .px-notify-btn {
    border-color: var(--px-accent, #22b8e8);
    color: var(--px-primary-dark, #0a6fa0);
    background: rgba(13, 142, 207, 0.08);
}

.px-notify-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.px-dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.px-dashboard-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.px-dashboard-welcome p {
    color: var(--px-muted);
    margin: 0;
    font-size: 0.95rem;
}

.px-role-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.px-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .px-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .px-metric-grid {
        grid-template-columns: 1fr;
    }
}

/* Analytics: four KPI cards on one row */
.px-metric-grid.px-metric-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.px-metric-grid.px-metric-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .px-metric-grid.px-metric-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .px-metric-grid.px-metric-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .px-metric-grid.px-metric-grid-4 {
        grid-template-columns: repeat(4, minmax(9.5rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .px-metric-grid.px-metric-grid-5 {
        grid-template-columns: repeat(5, minmax(9.5rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }
}

.px-metric-grid-4 .px-metric-card .metric-label,
.px-metric-grid-4 .px-metric-card .metric-compare,
.px-metric-grid-4 .px-metric-trend,
.px-metric-grid-5 .px-metric-card .metric-label,
.px-metric-grid-5 .px-metric-card .metric-compare,
.px-metric-grid-5 .px-metric-trend {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-metric-grid-4 .px-metric-card .metric-value,
.px-metric-grid-5 .px-metric-card .metric-value {
    font-size: 1.55rem;
}

.px-metric-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--px-shadow);
    position: relative;
}

.px-metric-card .metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.px-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.px-metric-icon svg {
    width: 22px;
    height: 22px;
}

.px-metric-icon.blue {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.px-metric-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.px-metric-icon.yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.px-metric-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.px-metric-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.px-metric-card .metric-compare {
    color: var(--px-muted);
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

/* Submission Trends Over Time — analytics hero chart */
.px-submission-trends-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    box-shadow: var(--px-shadow);
    padding: 1.15rem 1.35rem 1rem;
    display: flex;
    flex-direction: column;
}

.px-submission-trends-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--px-navy);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.px-submission-trends-chart {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 280px;
}

.px-submission-trends-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.px-analytics-table-wrap {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    overflow: hidden;
}

.px-analytics-table-wrap h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--px-border);
}

.px-analytics-table {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
}

.px-analytics-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--px-border);
}

.px-analytics-table tbody td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--px-border-light);
    vertical-align: middle;
}

.px-analytics-table tbody tr:last-child td {
    border-bottom: 0;
}

.px-analytics-table .val-completed {
    color: #16a34a;
    font-weight: 600;
}

.px-analytics-table .val-pending {
    color: #ca8a04;
    font-weight: 600;
}

.px-analytics-table .val-overdue {
    color: #dc2626;
    font-weight: 600;
}

.px-completion-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.px-completion-bar-track {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.px-completion-bar-fill {
    height: 100%;
    background: var(--px-gradient-accent);
    border-radius: 999px;
}

.px-completion-bar span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    min-width: 2.5rem;
}

/* User Management */
.px-users-subtitle .account-count {
    color: #16a34a;
    font-weight: 600;
}

.px-role-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.px-role-stat-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.px-role-stat-card .label {
    color: var(--px-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.px-role-stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.25rem;
}

.px-role-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.px-role-stat-icon svg {
    width: 22px;
    height: 22px;
}

.px-role-stat-icon.admin {
    background: #ede9fe;
    color: #7c3aed;
}

.px-role-stat-icon.manager {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.px-role-stat-icon.staff {
    background: #f1f5f9;
    color: #64748b;
}

.px-users-table-wrap {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.px-users-table {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
}

.px-users-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--px-border);
}

.px-users-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--px-border-light);
    vertical-align: middle;
}

.px-users-table tbody tr:last-child td {
    border-bottom: 0;
}

.px-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.px-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5e8f7, #e3f4fc);
    color: var(--px-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.px-user-cell .name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.px-user-cell .user-id {
    font-size: 0.78rem;
    color: var(--px-muted);
}

.px-badge-new {
    background: #dcfce7;
    color: #166534;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.px-user-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
}

.px-user-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--px-border);
    border-radius: 0.45rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.px-user-action-btn:hover {
    background: #f8fafc;
}

.px-user-action-btn.edit {
    color: var(--px-primary-dark);
    border-color: var(--px-border);
}

.px-user-action-btn.delete {
    color: #dc2626;
    border-color: var(--px-border);
}

.px-users-footer {
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    color: var(--px-muted);
    border-top: 1px solid var(--px-border);
}

.px-role-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.px-role-perm-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1.15rem 1.25rem;
}

.px-role-perm-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.px-role-perm-card .section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--px-muted);
    margin: 0 0 0.4rem;
}

.px-role-perm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.84rem;
}

.px-role-perm-list li {
    padding: 0.2rem 0;
    color: #475569;
}

.px-role-perm-list li.yes::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: 700;
}

.px-role-perm-list li.no::before {
    content: "✗ ";
    color: #dc2626;
    font-weight: 700;
}

.px-role-perm-list li.no {
    color: #94a3b8;
}

@media (max-width: 991px) {

    .px-role-stat-grid,
    .px-role-permissions-grid {
        grid-template-columns: 1fr;
    }
}

.px-metric-trend {
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.px-metric-trend.good {
    color: #16a34a;
}

.px-metric-trend.bad {
    color: #dc2626;
}

.px-metric-card .metric-label {
    color: var(--px-muted);
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.px-metric-card .metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.1;
}

.px-chart-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1.2rem 1.25rem;
    height: 100%;
}

.px-chart-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.px-chart-box-lg {
    position: relative;
    height: 280px;
}

.px-chart-box-lg canvas {
    max-height: 280px;
}

.px-chart-card-compact h3 {
    margin-bottom: 0.65rem;
}

.px-dept-performance-card {
    height: auto;
    padding: 1rem 1.25rem 0.75rem;
}

.px-dept-performance-card h3 {
    margin-bottom: 0.35rem;
}

.px-dept-performance-subtitle {
    margin: 0 0 0.65rem;
}

.px-dept-performance-empty {
    margin-top: 0.25rem;
}

.px-chart-box-dept {
    position: relative;
    height: 200px;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.px-chart-box-dept canvas {
    display: block;
}

.px-dept-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.px-dept-report-card {
    display: block;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--px-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.px-dept-report-card:hover {
    border-color: var(--px-primary);
    color: inherit;
    box-shadow: var(--px-shadow-lg);
}

.px-dept-report-card.active {
    border-color: var(--px-primary);
    border-left-width: 4px;
    background: #f0f7fc;
}

.px-filter-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.px-filter-card:hover {
    color: inherit;
}

.px-metric-card.px-filter-card {
    display: block;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.px-metric-card.px-filter-card:hover {
    border-color: var(--px-primary);
    box-shadow: var(--px-shadow-lg);
}

.px-metric-card.px-filter-card.active {
    border-color: var(--px-primary);
    border-left: 4px solid var(--px-primary);
    background: #f0f7fc;
}

.px-dept-report-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--px-navy);
}

.px-report-create-card {
    border-left: 4px solid var(--px-primary);
}

.px-report-create-details summary {
    cursor: pointer;
    user-select: none;
}

.px-report-create-details summary:hover {
    color: var(--px-primary-dark);
}

.px-breadcrumb {
    font-size: 0.82rem;
    color: var(--px-muted);
}

.px-breadcrumb a {
    color: var(--px-primary-dark);
    text-decoration: none;
}

.px-breadcrumb a:hover {
    text-decoration: underline;
}

.px-report-list-item {
    border-bottom: 1px solid var(--px-border-light);
}

.px-report-list-item:last-child .px-report-row {
    border-bottom: 0;
}

.px-report-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 1rem 1.25rem;
    margin-top: -0.35rem;
}

.px-report-create-layout .px-report-create-section {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.px-report-create-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--px-navy);
    margin: 0 0 1rem;
}

.px-report-total-preview {
    background: var(--px-primary-soft);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    padding: 0.55rem 0.85rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--px-primary-dark);
}

.px-report-target-panel {
    background: var(--px-surface-muted, #f8f9fa);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    padding: 0.85rem 1rem;
}

.px-report-create-upload {
    min-height: 140px;
}

.px-report-create-actions {
    position: sticky;
    top: 1rem;
}

.px-quarterly-toolbar .px-card-title {
    margin-bottom: 0.75rem;
}

.px-view-toggle .btn.active {
    background: var(--px-primary);
    border-color: var(--px-primary);
    color: #fff;
}

.px-quarterly-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.px-legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.px-quarterly-matrix-wrap {
    overflow: hidden;
    max-width: 100%;
}

.px-quarterly-matrix-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--px-gradient-hero);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.px-quarterly-matrix-campus {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.px-quarterly-matrix-sub {
    font-size: 0.82rem;
    opacity: 0.9;
}

.px-quarterly-matrix-scroll {
    --px-qmatrix-head-row1: 2.15rem;
    max-height: min(70vh, 720px);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.px-qmatrix {
    font-size: 0.68rem;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

.px-qmatrix-col-indicator {
    width: 20%;
}

.px-qmatrix-col-num {
    width: 2.35%;
}

.px-qmatrix-col-doc {
    width: 2.5%;
}

.px-qmatrix-col-perf {
    width: 4.5%;
}

.px-qmatrix-col-remarks {
    width: 5.5%;
}

.px-qmatrix thead th {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #f1f5f9;
    color: var(--px-navy);
    font-weight: 700;
    border-color: var(--px-border);
    position: sticky;
    padding: 0.3rem 0.15rem;
    line-height: 1.15;
    font-size: 0.65rem;
}

.px-qmatrix thead tr.px-qmatrix-head-group th {
    top: 0;
    z-index: 4;
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
    background: var(--px-navy) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.px-qmatrix thead tr.px-qmatrix-head-cols th {
    top: var(--px-qmatrix-head-row1, 2.5rem);
    z-index: 3;
    padding: 0.35rem 0.25rem;
}

.px-qmatrix-thead tr.px-qmatrix-head-cols th {
    box-shadow: 0 2px 0 var(--px-border);
}

.px-qmatrix-head-group .px-qmatrix-corner {
    left: 0;
    top: 0;
    z-index: 6;
    background: var(--px-navy) !important;
    color: #fff !important;
    text-align: left;
    min-width: 0;
    max-width: none;
    white-space: normal;
    box-shadow: 2px 0 4px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.1);
}

.px-qmatrix thead tr.px-qmatrix-head-group th.px-qmatrix-group-end {
    background: var(--px-navy) !important;
    color: #fff !important;
}

.px-qmatrix-head-cols th {
    background: #e8f4fa !important;
    color: var(--px-navy);
}

.px-qmatrix-target {
    background: #f0f9ff !important;
}

.px-qmatrix-alt {
    background: #f8fafc !important;
}

.px-qmatrix-subtotal {
    background: #eef2ff !important;
    font-weight: 600;
}

.px-qmatrix tbody td,
.px-qmatrix tbody th {
    vertical-align: middle;
    text-align: center;
    padding: 0.25rem 0.12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-qmatrix tbody .px-qmatrix-indicator {
    text-align: left;
}

.px-qmatrix tbody .px-qmatrix-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 4px rgba(15, 23, 42, 0.06);
}

.px-qmatrix-program td {
    background: #e2e8f0;
    color: var(--px-navy);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
    border-left: 4px solid var(--px-primary);
    text-align: left !important;
}

.px-qmatrix-indicator {
    min-width: 0;
    max-width: none;
    vertical-align: top;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.px-qmatrix-code {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--px-primary-dark);
    background: var(--px-primary-soft);
    padding: 0.05rem 0.3rem;
    border-radius: 0.2rem;
    margin-bottom: 0.15rem;
}

.px-qmatrix-title {
    display: block;
    line-height: 1.25;
    color: var(--px-text);
    font-size: 0.62rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.px-qmatrix-perf {
    text-align: center;
    white-space: nowrap;
}

.px-perf-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.15rem 0.2rem;
    border-radius: 0.35rem;
    min-width: 0;
    max-width: 100%;
    font-weight: 700;
    line-height: 1.05;
}

.px-perf-pill-value {
    font-size: 0.68rem;
}

.px-perf-pill-label {
    display: none;
}

.px-qmatrix-doc-col {
    vertical-align: middle;
    padding: 0.1rem 0.05rem !important;
    text-align: center;
}

.px-qmatrix-doc-btn {
    min-width: 0;
    padding: 0.1rem 0.25rem;
    font-size: 0.6rem;
    line-height: 1.1;
}

.px-qmatrix-doc-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0 !important;
    line-height: 1;
    vertical-align: middle;
}

.px-qmatrix-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.px-qmatrix-doc-icon svg {
    width: 0.8rem;
    height: 0.8rem;
}

.px-qmatrix-doc-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.25rem;
    min-width: 0.85rem;
    height: 0.85rem;
    padding: 0 0.15rem;
    border-radius: 999px;
    background: var(--px-primary, #1e3a5f);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 0.85rem;
    text-align: center;
}

.px-qmatrix-doc-btn-add {
    border-style: dashed;
    color: var(--bs-danger, #dc3545);
    border-color: var(--bs-danger, #dc3545);
}

.px-qmatrix-doc-btn-add:hover,
.px-qmatrix-doc-btn-add:focus {
    border-style: solid;
    color: #fff;
    background-color: var(--bs-danger, #dc3545);
    border-color: var(--bs-danger, #dc3545);
}

.px-qmatrix-head-cols .px-qmatrix-doc-icon svg {
    width: 0.7rem;
    height: 0.7rem;
}

.px-qmatrix-remarks {
    font-size: 0.6rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

.px-qmatrix-head-cols .px-qmatrix-doc-col {
    font-size: 0.7rem;
    font-weight: 700;
}

.px-quarterly-chart-box {
    position: relative;
    height: 380px;
}

.px-quarterly-chart-box canvas {
    max-height: 380px;
}

.px-quarterly-chart-box.pie-small {
    max-width: 760px;
    margin: 0 auto;
}

.px-quarterly-chart-box.radar-small {
    max-width: 560px;
    margin: 0 auto;
}

@media print {
    .px-quarterly-page .no-print {
        display: none !important;
    }

    .px-quarterly-matrix-scroll {
        max-height: none;
        overflow: visible;
    }

    .px-qmatrix thead th,
    .px-qmatrix tbody .px-qmatrix-sticky {
        position: static;
        box-shadow: none;
    }
}

.px-quarterly-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--px-gradient-hero);
    color: #fff;
    border-radius: var(--px-radius-lg);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    box-shadow: var(--px-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.px-quarterly-hero:hover {
    color: #fff;
    opacity: 0.95;
}

.px-quarterly-hero .hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.px-quarterly-hero h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.px-quarterly-hero p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.9;
}

.px-activity-feed {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1rem 1.25rem;
}

.px-activity-feed h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.px-activity-row {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--px-border-light);
}

.px-activity-row:last-child {
    border-bottom: 0;
}

.px-activity-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.px-activity-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.activity-icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.activity-icon-info {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.activity-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.activity-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.activity-icon-muted {
    background: #f1f5f9;
    color: #64748b;
}

.px-activity-row .who {
    font-weight: 600;
    font-size: 0.92rem;
}

.px-activity-row .what {
    color: #475569;
    font-size: 0.88rem;
}

.px-activity-row .when {
    color: var(--px-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.prexc-sidebar .brand-block {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.prexc-sidebar .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--px-gradient-accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prexc-sidebar .brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0;
}

.prexc-sidebar .brand-subtitle {
    color: var(--px-sidebar-text);
    font-size: 0.7rem;
    margin: 0.2rem 0 0;
    line-height: 1.35;
}

.prexc-sidebar .brand-campus {
    color: #93c5fd;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
}

.prexc-sidebar .nav-section-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem 0.35rem;
}

.prexc-sidebar .nav-link {
    color: var(--px-sidebar-text);
    border-radius: 0.55rem;
    margin-bottom: 0.15rem;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.prexc-sidebar .nav-link .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.prexc-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.prexc-sidebar .nav-link.active {
    color: #fff;
    background: rgba(34, 184, 232, 0.18);
    box-shadow: inset 3px 0 0 var(--px-sidebar-active);
}

.prexc-sidebar .sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prexc-main {
    margin-left: var(--px-sidebar-width);
    width: calc(100% - var(--px-sidebar-width));
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.prexc-topbar {
    flex-shrink: 0;
    background: var(--px-surface);
    border-bottom: 1px solid var(--px-border);
    min-height: 64px;
    z-index: 1020;
    overflow: visible;
    position: relative;
}

.prexc-topbar .page-kicker {
    color: var(--px-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prexc-topbar .page-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.prexc-user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    border: 1px solid var(--px-border);
    border-radius: 999px;
    background: #f8fafc;
}

.prexc-user-chip .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--px-gradient-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prexc-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.5rem 2rem;
}

.px-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--px-border);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--px-text);
    flex-shrink: 0;
}

.px-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.prexc-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

body.prexc-sidebar-open .prexc-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.px-page-header {
    margin-bottom: 1.25rem;
}

.px-page-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.px-page-header p {
    color: var(--px-muted);
    margin: 0;
    font-size: 0.92rem;
}

.px-card {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
}

.px-card .card-body {
    padding: 1.15rem 1.25rem;
}

.px-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.px-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.px-stat-card {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--px-shadow);
}

.px-stat-card .label {
    color: var(--px-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.px-stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.px-stat-card.primary .value {
    color: var(--px-primary);
}

.px-stat-card.success .value {
    color: var(--px-success);
}

.px-stat-card.warning .value {
    color: var(--px-warning);
}

.px-stat-card.danger .value {
    color: var(--px-danger);
}

.px-quick-card {
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: 1rem;
    background: linear-gradient(135deg, var(--px-primary-soft) 0%, #fff 100%);
    height: 100%;
}

.px-quick-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--px-navy);
}

.px-quick-card p {
    color: var(--px-muted);
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}

.btn-primary {
    --bs-btn-bg: var(--px-primary);
    --bs-btn-border-color: var(--px-primary);
    --bs-btn-hover-bg: var(--px-primary-dark);
    --bs-btn-hover-border-color: var(--px-primary-dark);
    --bs-btn-active-bg: var(--px-primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0.45rem;
    padding: 0.5rem 1.1rem;
}

.btn-outline-primary {
    --bs-btn-color: var(--px-primary-dark);
    --bs-btn-border-color: var(--px-primary);
    --bs-btn-hover-bg: var(--px-primary);
    --bs-btn-hover-border-color: var(--px-primary);
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    border-radius: 0.45rem;
}

.btn-outline-secondary {
    --bs-btn-color: var(--px-navy);
    --bs-btn-border-color: var(--px-border);
    --bs-btn-hover-bg: var(--px-navy);
    --bs-btn-hover-border-color: var(--px-navy);
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    border-radius: 0.45rem;
}

.table.px-table> :not(caption)>*>* {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
}

.table.px-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.px-badge {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.px-badge-draft {
    background: #e2e8f0;
    color: #334155;
}

.px-badge-submitted {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.px-badge-approved {
    background: #dcfce7;
    color: #166534;
}

.px-badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.px-badge-admin {
    background: #ede9fe;
    color: #5b21b6;
}

.px-badge-manager {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.px-badge-staff {
    background: #e2e8f0;
    color: #334155;
}

.px-badge-approved {
    background: #dcfce7;
    color: #166534;
}

.px-badge-pending-approval {
    background: #fef3c7;
    color: #92400e;
}

.px-badge-registration-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.px-badge-quarter {
    background: var(--px-primary-soft);
    color: var(--px-primary-dark);
}

.status-meets {
    background: #dcfce7 !important;
    color: #166534;
    font-weight: 600;
}

.status-above {
    background: #fef9c3 !important;
    color: #854d0e;
    font-weight: 600;
}

.status-below {
    background: #ffedd5 !important;
    color: #9a3412;
    font-weight: 600;
}

.status-attention {
    background: #fee2e2 !important;
    color: #991b1b;
    font-weight: 600;
}

.px-activity-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--px-border);
    font-size: 0.88rem;
}

.px-activity-item:last-child {
    border-bottom: 0;
}

.px-alert-item {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    margin-bottom: 0.5rem;
    font-size: 0.86rem;
}

.px-chart-box {
    position: relative;
    height: 260px;
}

.px-chart-box canvas {
    max-height: 260px;
}

.px-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--px-bg);
}

.px-login-brand {
    background: var(--px-gradient-hero);
    color: #fff;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.px-login-brand::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -15%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, var(--px-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.px-login-brand .logo-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    color: var(--px-accent);
    position: relative;
    z-index: 1;
}

.px-login-brand h1 {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.px-login-brand p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 30rem;
    line-height: 1.6;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
}

.px-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--px-bg);
}

.px-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    box-shadow: var(--px-shadow-lg);
    padding: 2.25rem;
}

.px-login-card .btn-primary {
    padding: 0.65rem 1rem;
    width: 100%;
}

.px-login-card .form-control {
    border-color: var(--px-border);
    border-radius: 0.45rem;
    padding: 0.65rem 0.85rem;
}

.px-login-card .form-control:focus {
    border-color: #adb5bd;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.12);
}

.px-perm-box {
    max-height: 140px;
    overflow-y: auto;
    border: 1px solid var(--px-border);
    border-radius: 0.5rem;
    padding: 0.65rem;
    background: #f8fafc;
}

.px-perm-box label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0.75rem 0.45rem 0;
    font-size: 0.82rem;
}

.px-notify-dot {
    background: var(--px-danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.35rem;
}

/* Report Monitoring */
.px-page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.px-page-header-row .px-page-header {
    margin-bottom: 0;
}

.px-page-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.px-page-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 0.55rem;
}

.px-filter-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.px-filter-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.px-filter-card h3 svg {
    width: 18px;
    height: 18px;
    color: var(--px-muted);
}

.px-dept-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.px-dept-summary-card {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    padding: 1rem 1.1rem;
}

.px-dept-summary-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--px-text);
}

.px-dept-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    padding: 0.3rem 0;
}

.px-dept-stat-row .stat-label {
    color: var(--px-muted);
    font-weight: 500;
}

.px-dept-stat-row .stat-val {
    font-weight: 700;
    color: var(--px-text);
}

.px-dept-stat-row .stat-val.completed {
    color: #16a34a;
}

.px-dept-stat-row .stat-val.pending {
    color: #ca8a04;
}

.px-dept-stat-row .stat-val.overdue {
    color: #dc2626;
}

.px-report-status-panel {
    background: #fff;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
    overflow: hidden;
}

.px-report-status-panel>h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--px-border);
}

.px-report-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.px-report-row:hover {
    background: #f8fafc;
    color: inherit;
}

.px-report-row:last-child {
    border-bottom: 0;
}

.px-report-row-main {
    min-width: 0;
}

.px-report-row-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.px-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.px-status-dot.dot-approved {
    background: #22c55e;
}

.px-status-dot.dot-submitted {
    background: var(--px-primary);
}

.px-status-dot.dot-pending {
    background: #94a3b8;
}

.px-report-row-head h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.35;
}

.px-report-row-desc {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 0.65rem 1.55rem;
}

.px-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 1.55rem;
}

.px-report-meta span strong {
    color: #64748b;
    font-weight: 600;
}

.px-report-row-side {
    text-align: right;
    min-width: 200px;
    flex-shrink: 0;
}

.px-report-due-label {
    font-size: 0.72rem;
    color: var(--px-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.px-report-due-date {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--px-text);
    margin-bottom: 0.35rem;
}

.px-report-overdue {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.px-report-overdue svg {
    width: 14px;
    height: 14px;
}

.px-report-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.px-report-progress {
    width: 120px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.px-report-progress-fill {
    height: 100%;
    background: var(--px-gradient-accent);
    border-radius: 999px;
}

.px-report-progress-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    min-width: 2.5rem;
}

.px-badge-pending {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 1199px) {
    .px-dept-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .px-dept-summary-grid {
        grid-template-columns: 1fr;
    }

    .px-report-row {
        grid-template-columns: 1fr;
    }

    .px-report-row-side {
        text-align: left;
    }

    .px-report-progress-wrap {
        justify-content: flex-start;
    }

    .px-report-row-desc,
    .px-report-meta {
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .prexc-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    body.prexc-sidebar-open .prexc-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
    }

    .prexc-main {
        margin-left: 0;
        width: 100%;
    }

    .px-sidebar-toggle {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .prexc-sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .px-login-shell {
        grid-template-columns: 1fr;
    }
}

/* ── Corporate polish (global) ── */
.prexc-topbar {
    background: var(--px-surface);
    border-bottom: 1px solid var(--px-border);
    box-shadow: 0 1px 0 rgba(18, 43, 68, 0.04);
}

.prexc-topbar .page-title {
    color: var(--px-navy);
    letter-spacing: -0.02em;
}

.prexc-topbar .page-kicker {
    color: var(--px-primary);
}

.px-card,
.px-metric-card,
.px-chart-card,
.px-activity-feed {
    border-radius: var(--px-radius-lg);
    border-color: var(--px-border);
}

.px-card .card-body h3,
.px-card-title,
.arms-card-title {
    color: var(--px-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.table.px-table thead th,
.px-analytics-table thead th,
.px-users-table thead th {
    background: #eef4f9;
    color: var(--px-navy);
}

.table.px-qmatrix thead tr.px-qmatrix-head-group th,
.px-qmatrix thead tr.px-qmatrix-head-group th {
    background: var(--px-navy) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #adb5bd;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.12);
}

.px-notify-btn:hover {
    border-color: #adb5bd;
    color: var(--px-primary-dark);
}

.px-notify-btn.active,
.px-notify-dropdown.is-open .px-notify-btn.active {
    border-color: var(--px-accent);
    color: var(--px-primary-dark);
    background: rgba(13, 142, 207, 0.08);
}

.px-notify-count {
    background: var(--px-primary);
}

/* Program blocks (manage indicators) */
.px-program-card {
    border-left: 4px solid var(--px-border);
}

.px-program-card .px-program-header {
    background: linear-gradient(90deg, var(--px-navy) 0%, var(--px-navy-mid) 100%);
    color: #fff;
    margin: -1.15rem -1.25rem 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--px-radius-lg) var(--px-radius-lg) 0 0;
}

.px-program-card .px-program-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.px-program-add-strip {
    background: #f8f9fa;
    border: 1px dashed var(--px-border);
    border-radius: var(--px-radius);
}

a {
    color: var(--px-primary-dark);
}

a:hover {
    color: var(--px-primary);
}

/* Gray borders — textboxes, cards, and related surfaces */
.form-control,
.form-select,
textarea.form-control,
.input-group-text,
.px-card,
.card,
.px-metric-card,
.px-chart-card,
.px-activity-feed,
.px-filter-card,
.px-login-card,
.px-notify-btn,
.px-search-form .form-control,
.px-sidebar-toggle,
.px-user-action-btn,
.px-dept-summary-card,
.px-report-status-panel,
.px-analytics-table-wrap,
.px-users-table-wrap,
.px-role-stat-card,
.px-role-perm-card,
.px-quick-card,
.px-stat-card,
.px-program-card,
.px-program-add-strip,
.prexc-user-chip,
.table-bordered,
.table-bordered > :not(caption) > * > * {
    border-color: var(--px-border) !important;
}

.px-card .card-body,
.card .card-body {
    border-color: var(--px-border);
}

.table.px-table > :not(caption) > * > *,
.px-analytics-table tbody td,
.px-users-table tbody td,
.table tbody td {
    border-color: var(--px-border-light) !important;
}

.table.px-table thead th,
.px-analytics-table thead th,
.px-users-table thead th {
    border-bottom-color: var(--px-border) !important;
}

/* Hide number input spinners (up/down arrows) app-wide */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}