/* ================================
   BOOTSTRAP UTILITY REPLACEMENTS
   (minimal set — app uses Radzen for layout)
   ================================ */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.text-start { text-align: start !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.overflow-auto { overflow: auto !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
}
img { max-width: 100%; height: auto; display: block; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    font-size: var(--rz-root-font-size);
    --sp-brand-primary: #78283B;
    --sp-brand-dark: #6B1D2A;
    --sp-brand-darker: #5a1824;
    --sp-success: #2EAD6B;
    --sp-error: #dc3545;
    --sp-text-muted: #767676;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
    overflow-y: auto !important;
    overflow-x: auto !important;
    min-height: 0 !important;
}

.rz-sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
.my-transparent-list .ui-card {
    background-color: transparent !important;
}


/* ===== Module Layout (shared border container) ===== */

.module-layout {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
}

.module-layout > .rz-row {
    margin: 0 !important;
    align-items: stretch;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.module-layout > .rz-row > * {
    padding: 0 !important;
    max-width: none;
}

.module-layout > .rz-row > *:first-child {
    flex: 0 0 33.333%;
    width: 33.333%;
}

.module-layout > .rz-row > *:last-child {
    flex: 1 1 0%;
}

.module-layout .module-content-area {
    border-radius: 0;
}

.module-layout .video-container {
    border-radius: 0;
}

/* ===== Stepper Timeline (left column) ===== */

.stepper-timeline {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E0E0E0;
    height: 100%;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    padding: 16px 20px;
    transition: background 0.15s;
    border-bottom: 1px solid #E0E0E0;
}

.stepper-item:last-child {
    border-bottom: none;
}

.stepper-item:hover:not(.locked) {
    background: rgba(0,0,0,0.02);
}

.stepper-item.locked {
    cursor: default;
    opacity: 0.6;
}

.stepper-item.active {
    background: #f8f7fa;
}

.stepper-indicator-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    flex-shrink: 0;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #BBBBBB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBBBBB;
    font-size: 20px;
    flex-shrink: 0;
    background: white;
}

.stepper-item.completed .stepper-circle {
    border-color: var(--sp-success);
    background: white;
    color: var(--sp-success);
}

.stepper-item.active .stepper-circle {
    border-color: var(--sp-success);
    border-width: 3px;
    color: var(--sp-success);
}

.stepper-item:not(.completed):not(.active) .stepper-circle {
    border-color: #BBBBBB;
    color: #BBBBBB;
}

.stepper-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0 0 0 12px;
    flex: 1;
}

.stepper-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    color: #000000;
}

.stepper-item.active .stepper-title {
    color: #000000;
    font-weight: 800;
    line-height: 24px;
}

.stepper-item:not(.completed):not(.active) .stepper-title {
    color: #D9D2D4;
}

.stepper-item.completed .stepper-title {
    color: #000000;
}

.stepper-label {
    font-family: 'Manrope', sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 19px;
}

.stepper-item:not(.completed):not(.active) .stepper-label {
    color: rgba(0, 0, 0, 0.25);
}

.stepper-subtitle {
    font-size: 12px;
    color: var(--sp-text-muted);
}

.stepper-item:not(.completed):not(.active) .stepper-subtitle {
    color: #D9D2D4;
}
@font-face {
    font-family: 'Default';
    src: url(data:application/x-font-ttf;charset=utf-8;base64,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) format('truetype');
    font-weight: normal;
    font-style: normal;
}

[class^="sf-icon-"], [class*=" sf-icon-"] {
    font-family: 'Default' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*  font-face command typography styles as of Feb 2026   */
.filled-icon {
    font-variation-settings: 'FILL' 1;
}

/* Disable RadzenLayout responsive sidebar behavior */
.rz-sidebar-responsive {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Expanded */
.rz-sidebar:not(.sidebar-collapsed) {
    width: 190px !important;
    min-width: 190px !important;
    display: inline-block !important;
}

/* Collapsed */
.rz-sidebar.sidebar-collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    opacity: 1 !important;
}

/* Override Radzen's mobile auto-hide */
@media (max-width: 768px) {
    .rz-sidebar .rz-navigation-item-text {
        display: inline-block !important;
    }
}

/* Hide text only when collapsed */
.sidebar-collapsed .rz-navigation-item-text {
    display: none !important;
}
/* Override Radzen's forced 0px collapsed width */
.rz-sidebar.rz-sidebar-collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    opacity: 1 !important;
}
/* Show text unless YOU collapse it */
.rz-sidebar:not(.sidebar-collapsed) .rz-navigation-item-text {
    display: inline-block !important;
}
/* Disable Radzen auto-collapse behavior */
@media (max-width: 768px) {
    .rz-sidebar-collapsed {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        opacity: 1 !important;
    }
}
/* Remove padding that creates the halo */
.sidebar-collapsed .rz-navigation-item-link {
    padding: 8px 0 !important;
    justify-content: center !important;
}
/* Remove hover/focus halo */
.sidebar-collapsed .rz-navigation-item-link:hover,
.sidebar-collapsed .rz-navigation-item-link:focus {
    background: transparent !important;
    box-shadow: none !important;
}
/* Remove rounded highlight behind icons */
.sidebar-collapsed .rz-navigation-item-link {
    border-radius: 0 !important;
}

/* Perfect icon centering */
.sidebar-collapsed .rz-navigation-item-icon {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Uniform sidebar nav item height */
.rz-sidebar .rz-panel-menu .rz-navigation-item-link {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Remove left indicator bar on active sidebar items (Radzen ::before pseudo-element) */
.rz-sidebar .rz-panel-menu .rz-navigation-item-active::before,
.rz-sidebar .rz-panel-menu .rz-navigation-item-wrapper-active::before {
    display: none !important;
}

/* Active sidebar item — darker shade of sidebar background */
.rz-sidebar .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-link,
.rz-sidebar .rz-panel-menu .rz-navigation-item-wrapper-active > .rz-navigation-item-link,
.rz-sidebar .rz-panel-menu .rz-navigation-item-link.active,
.rz-sidebar .rz-panel-menu .rz-navigation-item-link[aria-current="page"] {
    background-color: #dde3ea !important;
    color: var(--sp-brand-primary) !important;
    border-radius: 6px;
}
.rz-sidebar .rz-panel-menu {
    --rz-panel-menu-item-active-background-color: #dde3ea;
    --rz-panel-menu-item-active-color: var(--sp-brand-primary);
}

/* Force RadzenDataList items to line up horizontally */
.rz-datalist .rz-datalist-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
}


/* Force each UL wrapper to behave like a flex item */
.rz-datalist .rz-datalist-content > ul {
    display: inline-flex !important;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Change Icons for Pannel Open/close */
/* COLLAPSED state (shows + by default) */
/* COLLAPSED state (plus) */
.rz-panel-titlebar-toggler .rzi-plus::before {
    content: "expand_more";
    font-family: "Material Icons" !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
}

/* EXPANDED state (minus) */
.rz-panel-titlebar-toggler .rzi-minus::before {
    content: "expand_less";
    font-family: "Material Icons" !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
}

.avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ae7d89;        /* or your brand color */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
}
.avatar-initials2 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ae7d89;        /* or your brand color */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
}

/******************************************
** New Typography Styles                ***
******************************************/
.rz-text-display-h1 { /* This is used for "Header" style */
    font-family: 'Literata', serif !important;
    font-size: 56pt !important;        /* or 74.67px if you prefer px */
    font-weight: 500 !important;       /* Medium */
    line-height: 62pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text-h1 {
    font-family: 'Literata', serif !important;
    font-size: 36pt !important;        /* or 74.67px if you prefer px */
    font-weight: 600 !important;       /* semibold */
    line-height: 42pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text-h2 {
    font-family: 'Literata', sans-serif !important;
    font-size: 28pt !important;        /* or 74.67px if you prefer px */
    font-weight: 700 !important;       /* BOLD */
    line-height: 36pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text-h3 {
    font-family: 'Literata', sans-serif !important;
    font-size: 22pt !important;        /* or 74.67px if you prefer px */
    font-weight: 600 !important;       /* semibold */
    line-height: 26pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text-h4 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 18pt !important; /* or 74.67px if you prefer px */
    font-weight: 600 !important; /* semibold */
    line-height: 24pt !important; /* or 82.67px */
    margin: 0;
}
.rz-text-body1 {
    font-family: 'Manrope', sans-serif !important;
    font-size:  14pt !important;        /* or 74.67px if you prefer px */
    font-weight: 400 !important;       /* regular */
    line-height: 19pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text {
    font-family: 'Manrope', sans-serif !important;
    font-size:  14pt !important;        /* or 74.67px if you prefer px */
    font-weight: 400 !important;       /* regular */
    line-height: 16pt !important;      /* or 82.67px */
    margin: 0;
}
.rz-text-caption {
    font-family: 'Manrope', sans-serif !important;
    font-size:  8pt !important;        /* or 74.67px if you prefer px */
    font-weight: 400 !important;       /* regular */
    line-height: 10.5pt !important;      /* or 82.67px */
    margin: 0 !important;
}

/****************** Now for the Button colors & Fonts! *******************/
/* Background + text color */
.rz-button.rz-primary {
    background-color: var(--sp-brand-primary) !important; /* your new primary color */
    border-color: #0057b8 !important;
    color: white !important;
    font-weight: 400 !important; 
}

    /* Hover state */
    .rz-button.rz-primary:hover {
        background-color: #8A5562 !important;
        border-color: #00479a !important;
    }

    /* Focus/active state */
    .rz-button.rz-primary:active,
    .rz-button.rz-primary:focus {
        background-color: #62313B !important;
        border-color: #000000 !important;
    }
/* Disabled PRIMARY button background */
.rz-button.rz-primary.rz-state-disabled {
    background-color: #D9D2D4 !important;   /* your desired color */
    border-color: #707070 !important;
    color: #666 !important;               /* optional: disabled text color */
}

/* SECONDARY (outlined) button */
.rz-button.rz-secondary {
    background-color: transparent !important;
    border: 2px solid var(--sp-brand-primary) !important;   /* outline color */
    color: var(--sp-brand-primary) !important;              /* text matches outline */
}

/* Hover state */
.rz-button.rz-secondary:hover {
    background-color: #F4E8EB !important;   /* very light tint */
    border-color: #8A5562 !important;       /* slightly stronger outline */
    color: #8A5562 !important;
}

/* Focus/active state */
.rz-button.rz-secondary:active,
.rz-button.rz-secondary:focus {
    background-color: #E3D0D4 !important;
    border-color: #62313B !important;
    color: #62313B !important;
}

/* Disabled SECONDARY button */
.rz-button.rz-secondary.rz-state-disabled {
    background-color: transparent !important;
    border-color: #C5BFC1 !important;
    color: #C5BFC1 !important;
    opacity: 0.6;
}

.rz-button.rz-medium {
    font-family: 'Manrope', sans-serif;
    font-size: 14pt;
    font-weight: 500;
}
.rz-button.rz-large {
    font-family: 'Manrope', sans-serif;
    font-size: 16pt;
    font-weight: 500;
}
.rz-button.rz-xxl {
    font-family: 'Manrope', sans-serif;
    font-size: 28pt;
    font-weight: 600;
}

/********************************************************
** Data List - Policy Acknowledgment 
********************************************************/
/* Transparent background for the whole list */
.policy-list {
    background-color: transparent !important;
}

/* Each item (the <li> inside each <ul>) */
.policy-list .rz-datalist-data > li {
    background-color: transparent !important;
    border-bottom: 1px dotted #999;
    padding: 0.75rem 0;
    list-style: none; /* removes bullet if any theme adds it */
}

/* Remove border from the last item of the last list */
.policy-list .rz-datalist-data:last-of-type > li:last-child {
    border-bottom: none;
}

/* Applies only to dialogs you tagged with CssClass="white-dialog" */
.white-dialog .rz-dialog-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.white-dialog .rz-dialog-content {
    background-color: white !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
}
/* Optional: also force the header/footer if needed */
.white-dialog .rz-dialog-titlebar,
.white-dialog .rz-dialog-footer {
    background-color: white !important;
}

/* Make the X bigger and red for this dialog */
.white-dialog .rzi-times {
    font-size: 28px !important;  /* increase size */
    color: red !important;       /* make it red */
}

/* Optional: enlarge the clickable area of the close button */
.white-dialog .rz-dialog-close {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Optional: hover effect */
.white-dialog .rz-dialog-close:hover .rzi-times {
    color: #ff4d4d !important;
    transform: scale(1.2);
    transition: 0.15s ease-in-out;
}

/********************************************************
** Check Box changes 
********************************************************/

/* Base checkbox box */
.rz-chkbox .rz-chkbox-box {
    border: 2px solid #666;
    transition: all 0.2s ease;
}

/* Hover → red border */
.rz-chkbox:hover .rz-chkbox-box {
    border-color: var(--sp-brand-primary) !important;
}

/* Checked → red fill + red border */
.rz-chkbox-box.rz-state-active {
    background-color: var(--sp-brand-primary) !important;
    border-color: var(--sp-brand-primary) !important;
}

/* Checked + hover → stay red */
.rz-chkbox:hover .rz-chkbox-box.rz-state-active {
    background-color: var(--sp-brand-primary) !important;
    border-color: var(--sp-brand-primary) !important;
}

/* White checkmark */
.rz-chkbox-box.rz-state-active .rz-chkbox-icon {
    color: white !important;
}
/* ================================
   FILE UPLOAD / DROP ZONE
   ================================ */

#dropzone-external {
    width: 350px;
    height: 350px;
    background-color: rgba(183, 183, 183, 0.1);
    border-width: 2px;
    border-style: dashed;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#dropzone-external > * {
    pointer-events: none;
}

#dropzone-external.dropzone-hover {
    border-style: solid;
}

.upload-container > span {
    display: flex;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
}

#dropzone-image {
    max-width: 100%;
    max-height: 100%;
}

#dropzone-text > span {
    opacity: 0.5;
}

.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ================================
   GLOBAL RADZEN DATAGRID HEADER THEME
   ================================ */

/* The actual TH element (this is the key one) */
.rz-data-grid thead th {
    background-color: var(--sp-brand-primary) !important;
    color: white !important;
    border-color: #E2E2E3 !important;
}

/* Header row wrapper */
.rz-data-grid .rz-header-row {
    background-color: var(--sp-brand-primary) !important;
}

/* Header cell container */
.rz-data-grid .rz-header {
    background-color: var(--sp-brand-primary) !important;
    color: white !important;
    border-color: #E2E2E3 !important;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Header text */
.rz-data-grid .rz-column-title {
    color: white !important;
}
/* ================================
   SORT ICONS — MAKE THEM WHITE
   ================================ */

/* Default sort icon color */
.rz-data-grid thead th .rz-sort-icon,
.rz-data-grid thead th .rz-icon {
    color: white !important;
    fill: white !important;
}

/* When sorted ascending or descending */
.rz-data-grid thead th.rz-sort-asc .rz-sort-icon,
.rz-data-grid thead th.rz-sort-desc .rz-sort-icon {
    color: white !important;
    fill: white !important;
}
/* Sort indicator triangles (CSS border-based icons) */
.rz-data-grid thead th.rz-sort-asc::after,
.rz-data-grid thead th.rz-sort-desc::after {
    border-color: white transparent transparent transparent !important;
}
/* Radzen icon-font sort arrows */
.rz-data-grid thead th .rz-sortable-column-icon {
    color: white !important;
}

/* ================================
   DATA GRID: ensure split-button dropdown menus are not clipped (#338)
   ================================ */
/* Allow the grid data area to scroll horizontally for wide tables */
.rz-data-grid .rz-datatable-scrollable-body {
    overflow-x: auto !important;
}
/* Ensure split button text wraps or truncates gracefully in narrow cells */
.rz-data-grid .rz-splitbutton {
    max-width: 100%;
}
.rz-data-grid .rz-splitbutton .rz-button:not(.rz-splitbutton-menubutton) {
    min-width: 0;
}

/* Selected tab text */
.rz-tabview .rz-tabview-nav li.rz-tabview-selected > button,
.rz-tabview .rz-tabview-nav li.rz-tabview-selected.rz-state-focused > button,
.rz-tabview .rz-tabview-nav li.rz-tabview-selected > button:hover,
.rz-tabview .rz-tabview-nav li.rz-tabview-selected > button:focus {
    color: var(--sp-brand-primary) !important;
}
/* Material3 forces hover/focus color — override it */
.rz-tabview .rz-tabview-nav li.rz-state-focused > button,
.rz-tabview .rz-tabview-nav li.rz-state-hover > button {
    color: var(--sp-brand-primary) !important;
}
/* Override Material3 ink bar color */
.rz-tabview {
    --rz-primary: var(--sp-brand-primary) !important;
}
    .rz-tabview .rz-tabview-nav .rz-tabview-ink-bar {
        background-color: var(--sp-brand-primary) !important;
        border-color: var(--sp-brand-primary) !important;
    }

/* Selected item background + text */
.rz-selectbar .rz-button.rz-state-active {
    background-color: var(--sp-brand-primary) !important;
    color: white !important;
    border-color: var(--sp-brand-primary) !important;
}

    /* Selected item text span */
    .rz-selectbar .rz-button.rz-state-active .rz-button-text {
        color: white !important;
    }

    /* Keep selected item white on hover/focus */
    .rz-selectbar .rz-button.rz-state-active:hover,
    .rz-selectbar .rz-button.rz-state-active:focus {
        background-color: var(--sp-brand-primary) !important;
        color: white !important;
        border-color: var(--sp-brand-primary) !important;
    }

/* Optional: unselected hover color (if you want consistency) */

.rz-selectbar .rz-button:hover {
    background-color: #e6a7a5 !important; 
    color: #ffffff !important;
}


/* Remove Radzen card shadow globally */
.rz-card {
    box-shadow: none !important;
    border: 1px solid #ccc;   /* optional: gives you the clean solid line */
}
/* Allow wrapping inside Radzen cards even if a parent has nowrap */
/*
.rz-card {
    white-space: normal !important;
}
*/

/* ================================
   CHURCH DASHBOARD — STATUS BADGES
   ================================ */

.avatar-initials-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ae7d89;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
    flex-shrink: 0;
}

/* SVG badge icons */
.badge-svg {
    width: 22px;
    height: 22px;
    transition: transform 0.15s ease;
    cursor: default;
}
.badge-svg:hover {
    transform: scale(1.15);
}
.badge-svg.badge-clickable {
    cursor: pointer;
}
.badge-svg.badge-clickable:hover {
    transform: scale(1.2);
}
.badge-svg.badge-minor {
    opacity: 0.35;
}
.badge-svg.badge-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.badge-svg.badge-disabled:hover {
    transform: none;
}

.dashboard-alert {
    background-color: #fff5f5;
    border-left: 4px solid var(--sp-brand-primary);
    border-radius: 4px;
    padding: 12px 16px;
}

/* ================================
   ASSIGN TRAINING DIALOG
   ================================ */

.pathway-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}

.pathway-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 150px;
    min-height: 100px;
    padding: 16px 12px;
    border-radius: 10px;
    border: 2px solid var(--sp-brand-primary);
    background: #fff;
    color: var(--sp-brand-primary);
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.pathway-card:hover {
    background-color: #F4E8EB;
    box-shadow: 0 3px 8px rgba(120, 40, 59, 0.15);
    transform: translateY(-2px);
}

.pathway-card.selected {
    background-color: var(--sp-brand-primary);
    color: white;
    border-color: var(--sp-brand-primary);
    box-shadow: 0 3px 10px rgba(120, 40, 59, 0.3);
}

.pathway-card.selected:hover {
    background-color: #8A5562;
}

.pathway-card.mandatory {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: #777;
    cursor: default;
    box-shadow: none;
}

.pathway-card.mandatory:hover {
    background-color: #f0f0f0;
    box-shadow: none;
    transform: none;
}

/* Church-specific pathways — distinguished from core pathways by colour
   alone. Lighter accent (sky blue) reads cleanly next to the burgundy
   brand colour without the extra weight of a darker shade. */
.pathway-card.church-content {
    border-color: #38BDF8;
    color: #0284C7;
}

.pathway-card.church-content:hover {
    background-color: #E0F2FE;
}

.pathway-card.church-content.selected {
    background-color: #38BDF8;
    color: white;
    border-color: #38BDF8;
}

.pathway-card.church-content.selected:hover {
    background-color: #0EA5E9;
}

.pathway-card-icon {
    font-size: 28px;
    line-height: 1;
}

.pathway-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.pathway-card-status {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
}

.active-dot,
.inactive-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.active-dot {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.inactive-dot {
    border: 2px solid #aaa;
    background: transparent;
}

.assign-intro-banner {
    display: flex;
    align-items: center;
    background-color: #e8f4fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    padding: 10px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #1565C0;
    margin-bottom: 4px;
}

.assign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* ================================
   DASHBOARD STAGE FILTERS
   ================================ */
.stage-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 6px;
    row-gap: 10px;
}
.sf-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sf-label {
    font-size: 0.65rem;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-left: 2px;
    font-weight: 500;
}
.sf-select {
    height: 26px;
    font-size: 0.78rem;
    padding: 0 20px 0 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: var(--sp-text-muted);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px 5px;
    transition: border-color 0.15s, background-color 0.15s;
    min-width: 90px;
}
/* Search input — same base as sf-select but without dropdown arrow */
.sf-search-input {
    height: 26px;
    font-size: 0.78rem;
    padding: 0 8px 0 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: var(--sp-text-muted);
    transition: border-color 0.15s, background-color 0.15s;
    min-width: 90px;
}
.sf-search-input:hover {
    border-color: #aaa;
}
.sf-search-input:focus {
    outline: none;
    border-color: var(--sp-brand-primary);
}
.sf-select:hover {
    border-color: #aaa;
}
.sf-select:focus {
    outline: none;
    border-color: var(--sp-brand-primary);
}
/* Active: filled maroon chip look */
.sf-select.sf-active {
    background-color: var(--sp-brand-primary);
    border-color: var(--sp-brand-primary);
    color: #fff;
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23fff'/%3E%3C/svg%3E");
}
.sf-select.sf-active option {
    color: #333;
    background: #fff;
}
.sf-clear {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    color: var(--sp-brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 8px;
    height: 26px;
    transition: background 0.15s;
    white-space: nowrap;
}
.sf-clear:hover {
    background: rgba(120, 40, 59, 0.08);
    border-color: var(--sp-brand-primary);
}

/* ===== View Module — XD Design Styles ===== */

/* Pathway header */
.pathway-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.pathway-header-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.pathway-header-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Content area — wraps video/quiz/complete phases */
.module-content-area {
    background: #f8f7fa;
    border-radius: 8px;
    position: relative;
}

/* Fixed 16/9 ratio only during quiz/complete so the layout stays stable */
.module-content-area.fixed-ratio {
    aspect-ratio: 16/9;
    overflow-y: auto;
}

/* Video player container */
.video-container {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.video-container iframe,
.video-container #vimeo-player-host {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-unavailable-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #1a1a1a;
    color: #bbb;
    text-align: center;
    padding: 24px;
    z-index: 2;
}

.video-unavailable-overlay .material-icons {
    font-size: 56px;
    color: #888;
}

.video-unavailable-overlay p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 480px;
}

/* Thumbnail overlay */
.video-thumbnail-overlay {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.video-thumbnail-overlay:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.play-icon {
    font-size: 72px;
    color: white;
    opacity: 0.9;
}

/* Tab bar below video */
.lesson-tabs {
    display: flex;
    border-bottom: 1px solid #E0E0E0;
    margin-top: 24px;
    gap: 0;
}

.lesson-tab {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.lesson-tab:hover {
    color: #333;
}

.lesson-tab.active {
    color: #1a1a1a;
    border-bottom-color: var(--sp-brand-dark);
}

/* Tab badge */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--sp-brand-dark);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    margin-left: 6px;
}

/* Description area below tabs */
.lesson-content {
    padding: 24px 16px;
    text-align: left;
}

.lesson-title {
    font-weight: 700;
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.lesson-description {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    text-align: left;
    margin-top: 12px;
}

.lesson-description p {
    margin-bottom: 14px;
}

/* Resources list */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.resource-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f7fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.resource-link-item:hover {
    background: #eeedf1;
}

.resource-icon {
    color: var(--sp-brand-dark);
    font-size: 20px;
}

.resource-title {
    font-size: 14px;
    font-weight: 500;
}

.no-resources-text {
    color: var(--sp-text-muted);
    font-size: 14px;
    padding: 8px 0;
}

/* Brand buttons */
.btn-brand-primary {
    background: var(--sp-brand-dark) !important;
    color: white !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-brand-primary:hover {
    background: var(--sp-brand-darker) !important;
}

.btn-brand-primary:disabled,
.btn-brand-primary[disabled] {
    background: #ccc !important;
    color: var(--sp-text-muted) !important;
    cursor: not-allowed;
}

.btn-brand-success {
    background: var(--sp-success) !important;
    color: white !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-brand-success:hover {
    background: #259b5d !important;
}

/* Secondary button (outlined) */
.btn-brand-secondary {
    background: transparent !important;
    color: var(--sp-brand-dark) !important;
    border: 2px solid var(--sp-brand-dark) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 28px !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-brand-secondary:hover {
    background: #faf5f6 !important;
}

/* Action button area — sits below the content area in normal flow */
.module-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

/* ===== Quiz Panel ===== */

.quiz-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.quiz-progress-header {
    margin-bottom: 12px;
}

.quiz-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quiz-progress-label {
    font-size: 15px;
    color: #666;
}

.quiz-skip-link {
    font-size: 14px;
    color: var(--sp-brand-dark);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.quiz-skip-link:hover {
    text-decoration: underline;
}

.quiz-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--sp-brand-dark);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quiz-question-card {
    padding: 0;
}

.quiz-question-text {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Card-style answer options */
.quiz-answer-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.quiz-answer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: white;
}

.quiz-answer-card:hover:not(.locked) {
    border-color: var(--sp-brand-dark);
    background: #faf5f6;
}

.quiz-answer-card.selected {
    border-color: var(--sp-brand-dark);
    background: #faf5f6;
}

.quiz-answer-card.locked {
    cursor: default;
}

.quiz-answer-card.answer-correct {
    border-color: var(--sp-success);
    background: rgba(46, 173, 107, 0.06);
}

.quiz-answer-card.answer-incorrect {
    border-color: var(--sp-error);
    background: rgba(220, 53, 69, 0.04);
}

.quiz-answer-radio {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    position: relative;
    box-sizing: border-box;
}

.radio-dot.checked {
    border-color: var(--sp-brand-dark);
}

.radio-dot.checked::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sp-brand-dark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    position: relative;
    box-sizing: border-box;
}

.checkbox-dot.checked {
    border-color: var(--sp-brand-dark);
    background: var(--sp-brand-dark);
}

.checkbox-dot.checked::after {
    content: '\e5ca';
    font-family: 'Material Icons';
    font-size: 16px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-answer-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Feedback banner */
.quiz-feedback-banner {
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
}

.quiz-feedback-correct {
    background: rgba(46, 173, 107, 0.1);
    border: 1px solid rgba(46, 173, 107, 0.3);
}

.quiz-feedback-incorrect {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.feedback-icon {
    font-size: 24px;
}

.quiz-feedback-correct .feedback-icon {
    color: var(--sp-success);
}

.quiz-feedback-incorrect .feedback-icon {
    color: var(--sp-error);
}

.feedback-title {
    font-size: 16px;
}

.quiz-feedback-correct .feedback-title {
    color: var(--sp-success);
}

.quiz-feedback-incorrect .feedback-title {
    color: var(--sp-error);
}

.feedback-text {
    font-size: 14px;
    color: #555;
    margin: 4px 0 0 32px;
    line-height: 1.5;
}

/* Quiz action buttons */
.quiz-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Quiz complete screen */
.quiz-complete-screen {
    text-align: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.quiz-complete-icon .material-icons {
    font-size: 80px;
    color: var(--sp-success);
}

.quiz-complete-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 16px 0 8px;
}

.quiz-complete-score {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

.quiz-complete-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.quiz-fail-msg {
    color: var(--sp-error);
    font-size: 15px;
    margin-bottom: 16px;
}

.quiz-answer-card:focus-visible {
    outline: 2px solid var(--sp-brand-dark);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PATHWAY BUILDER
   ═══════════════════════════════════════════════════════════════════ */

.pb-container {
    min-height: 100vh;
}

/* ── Breadcrumb topbar ── */
.pb-topbar {
    background: var(--rz-base-background-color);
    border-bottom: 1px solid var(--rz-border-color);
    padding: 0 32px;
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}
.pb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.87rem;
}
.pb-crumb {
    color: var(--rz-text-disabled-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.pb-crumb:hover { color: var(--rz-primary); }
.pb-crumb.current {
    color: var(--rz-text-color);
    font-weight: 600;
    cursor: default;
}
.pb-crumb-sep {
    color: var(--rz-text-disabled-color);
    font-size: 0.8rem;
    opacity: 0.5;
    user-select: none;
}

/* ── Page content ── */
.pb-page-content {
    padding: 24px 32px 48px;
    max-width: 1280px;
}
.pb-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.pb-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.pb-page-subtitle {
    font-size: 0.87rem;
    color: var(--rz-text-secondary-color);
    margin: 2px 0 0;
}

/* ── Pathway card grid ── */
.pb-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.pb-pathway-card {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.pb-pathway-card:hover {
    border-color: var(--rz-input-border-color-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.pb-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 0;
}
.pb-card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--rz-primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--rz-primary);
}
.pb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pb-card-info { flex: 1; min-width: 0; }
.pb-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.pb-badge-teal {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary-dark);
}
.pb-card-stats {
    display: flex;
    gap: 16px;
    padding: 14px 18px;
}
.pb-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--rz-text-secondary-color);
}
.pb-stat strong {
    font-weight: 600;
    color: var(--rz-text-color);
}
.pb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--rz-border-color);
    background: var(--rz-base-200);
}
.pb-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.pb-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.pb-status-dot.active { background: var(--rz-success); }
.pb-status-dot.inactive { background: var(--rz-text-disabled-color); }
.pb-card-actions { display: flex; gap: 2px; }

/* ── Form card ── */
.pb-form-card {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.pb-form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rz-border-color);
    background: var(--rz-base-200);
}
.pb-form-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pb-form-card-body { padding: 20px; }

/* ── Divider ── */
.pb-divider {
    border: none;
    border-top: 1px solid var(--rz-border-color);
    margin: 24px 0;
}

/* ── Section header ── */
.pb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pb-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* ── Module list ── */
.pb-module-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pb-module-card {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.pb-module-card:hover {
    border-color: var(--rz-input-border-color-hover);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pb-module-order {
    width: 28px;
    height: 28px;
    background: var(--rz-base-200);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--rz-text-secondary-color);
    flex-shrink: 0;
}
.pb-module-type {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pb-module-type.video { background: #ede9fe; color: #7c3aed; }
.pb-module-type.pdf { background: #fee2e2; color: #dc2626; }
.pb-module-type.image { background: #dbeafe; color: #2563eb; }
.pb-module-info { flex: 1; min-width: 0; }
.pb-module-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.pb-module-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--rz-text-disabled-color);
    flex-wrap: wrap;
}
.pb-module-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pb-module-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.pb-module-card:hover .pb-module-actions { opacity: 1; }

/* ── Question grid ── */
.pb-question-grid {
    border-radius: 12px;
    overflow: hidden;
}
.pb-question-order {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
}
.pb-timestamp-set {
    color: var(--rz-primary-dark);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ── Answer list ── */
.pb-answer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pb-answer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    transition: all 0.2s;
}
.pb-answer-row:hover { border-color: var(--rz-input-border-color-hover); }
.pb-answer-row.correct {
    border-color: var(--rz-success);
    background: var(--rz-success-lighter);
}
.pb-answer-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
    cursor: pointer;
    transition: all 0.2s;
}
.pb-answer-letter:hover {
    background: var(--rz-success-lighter);
    color: var(--rz-success);
}
.pb-answer-letter.correct {
    background: var(--rz-success);
    color: white;
}
.pb-answer-text { flex: 1; }
.pb-answer-text input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    transition: all 0.15s;
    font-family: inherit;
    color: var(--rz-text-color);
}
.pb-answer-text input:focus {
    border-color: var(--rz-primary);
    background: var(--rz-base-background-color);
    box-shadow: 0 0 0 3px rgba(var(--rz-primary-rgb), 0.1);
}
.pb-answer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pb-answer-key-display {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--rz-primary-lighter);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--rz-primary-dark);
}

/* ── Media preview ── */
.pb-media-preview { width: 100%; }
.pb-media-preview iframe { display: block; }
.pb-media-preview-empty {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--rz-base-200);
    color: var(--rz-text-disabled-color);
}

/* ── Image preview ── */
.pb-image-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
}
.pb-image-preview img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--rz-border-color);
}
.pb-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
}

/* ── Image picker ── */
.pb-image-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pb-image-option {
    position: relative;
    border: 2px solid var(--rz-border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    aspect-ratio: 16/10;
}
.pb-image-option:hover {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 1px var(--rz-primary);
}
.pb-image-option.selected {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px var(--rz-primary);
}
.pb-image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pb-image-check {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--rz-primary);
    background: white;
    border-radius: 50%;
    line-height: 0;
}

/* ── Upload zone ── */
.pb-upload-zone {
    border: 2px dashed var(--rz-border-color) !important;
    border-radius: 8px !important;
    min-height: 80px;
}

/* ── Empty state ── */
.pb-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--rz-text-disabled-color);
}
.pb-empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    margin: 8px 0 4px;
}
.pb-empty-state p {
    font-size: 0.87rem;
    margin-bottom: 16px;
}

/* ===== Responsive: Stepper ===== */
@media (max-width: 768px) {
    .module-layout {
        border-radius: 8px;
    }
    .stepper-timeline {
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }
    .stepper-item {
        padding: 12px 16px;
    }
}

/* ===== Responsive: Quiz Panel ===== */
@media (max-width: 576px) {
    .quiz-panel {
        padding: 8px;
    }
    .quiz-question-text {
        font-size: 16px;
    }
    .quiz-answer-card {
        padding: 10px 12px;
    }
    .quiz-actions {
        flex-direction: column;
    }
    .quiz-actions button {
        width: 100%;
    }
}

/* ===== Responsive: Pathway Builder ===== */
@media (max-width: 576px) {
    .pb-page-content {
        padding: 16px;
    }
    .pb-pathway-grid {
        grid-template-columns: 1fr;
    }
    .pathway-header-title {
        font-size: 24px;
    }
}

/* ── Tag dots (Dashboard volunteer column) ── */
.tag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

/* ── Tag input (inline chips + text field) ── */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-input-background-color, #f9f9f9);
    min-height: 38px;
    cursor: text;
}
.tag-input-container:focus-within {
    border-color: var(--rz-primary, #78283B);
    background: #fff;
    box-shadow: 0 0 0 1px var(--rz-primary, #78283B);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    line-height: 1.6;
}
.tag-chip-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    margin: 0;
    font-weight: bold;
}
.tag-chip-remove:hover {
    color: #fff;
}
.tag-input-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    min-width: 120px;
    flex: 1;
    padding: 2px 0;
    font-family: inherit;
    color: var(--rz-input-color, #333);
}
.tag-input-field::placeholder {
    color: var(--rz-input-placeholder-color, #999);
}

/* ── Selected member chips (assign training) ── */
.selected-members-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.selected-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--rz-primary-lighter, #f0e4e7);
    color: var(--rz-primary, #78283B);
    border: 1px solid var(--rz-primary-light, #c5a0aa);
    white-space: nowrap;
    line-height: 1.4;
}
.selected-member-chip-remove {
    background: none;
    border: none;
    color: var(--rz-primary, #78283B);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    margin: 0;
    font-weight: bold;
    opacity: 0.6;
}
.selected-member-chip-remove:hover {
    opacity: 1;
}

/* ── Language switcher ── */
.lang-switcher {
    background: transparent;
    border: 1px solid var(--rz-sidebar-color, rgba(255,255,255,0.4));
    color: var(--rz-sidebar-color, #fff);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.6;
    width: 100%;
    text-align: left;
}
.lang-switcher:hover {
    background: rgba(0,0,0,0.05);
    border-color: var(--rz-sidebar-color, rgba(255,255,255,0.7));
}
/* Compact style when in header (admin layout) */
.rz-header .lang-switcher {
    width: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-color: #ccc;
    color: #333;
    background: transparent;
}
/* Issue #438 — canonical top-bar text size, matches .rz-button-sm (Size="Small") so
   user-name / brand / church-name line up with the adjacent Logout / Login button.
   Needs !important + .rz-header prefix to outrank .rz-text-body1 { font-size:14pt !important; } above. */
.rz-header .sp-topbar-text {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}
.rz-header .lang-switcher:hover {
    background: rgba(0,0,0,0.05);
    border-color: #999;
}

/* ── Alternating table row colors (site-wide) ── */
.rz-datatable-tbody > tr:nth-child(even) {
    background-color: #f5f5f5 !important;
}
.rz-datatable-tbody > tr:nth-child(odd) {
    background-color: #fff !important;
}

/* ── Volunteer grid row height (dashboard) ── */
.volunteer-grid-wrapper .rz-datatable-tbody > tr > td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* ── Applied tags row (assign training) ── */
.applied-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}

/* ── Tag chip × vertical centering fix ── */
.tag-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    height: 100%;
}

/* ── Pathway card opacity transition ── */
.pathway-card {
    transition: all 0.2s ease, opacity 0.2s ease;
}
.pathway-card:hover {
    opacity: 1 !important;
}

/* ── Recent Activity panel ── */
.recent-activity-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--rz-card-border-radius, 8px);
    padding: 16px;
    height: 100%;
    overflow: hidden;
}
.recent-activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.recent-activity-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    font-family: 'Manrope', sans-serif;
}
.recent-activity-subtitle {
    font-size: 0.7rem;
    color: #999;
    padding: 4px 0 12px;
}
.recent-activity-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.recent-activity-year {
    text-align: center;
    padding: 8px 0 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.recent-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.recent-activity-item:last-child {
    border-bottom: none;
}
.recent-activity-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    margin-top: 5px;
}
.recent-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.recent-activity-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.recent-activity-note {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}
.recent-activity-time {
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* ── Master-Detail Split View ── */
.master-detail {
    display: flex;
    gap: 0;
    height: calc(100vh - 160px);
    overflow: hidden;
}
.master-detail__master {
    flex-basis: 100%;
    transition: flex-basis 0.3s ease;
    overflow-y: auto;
    min-width: 0;
}
.master-detail--open .master-detail__master {
    flex-basis: 41.67%;
}
.master-detail__detail {
    flex-basis: 0;
    opacity: 0;
    overflow: hidden;
    transition: flex-basis 0.3s ease, opacity 0.2s ease 0.1s;
    border-left: 1px solid #e0e0e0;
    background: #fff;
}
.master-detail--open .master-detail__detail {
    flex-basis: 58.33%;
    opacity: 1;
    overflow-y: auto;
}

/* Detail panel layout */
.member-detail-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.member-detail-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: #fff;
}
.member-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.member-detail-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: #fff;
}

/* Responsive: below 992px hide detail panel */
@media (max-width: 991px) {
    .master-detail__detail {
        display: none !important;
    }
    .master-detail--open .master-detail__master {
        flex-basis: 100%;
    }
}

/* ── Present mode (Watch Party projection) ── */

/* ────────────────────────────────────────────────────────────────
   PageHeader (shared component: src/Components/Shared/PageHeader.razor)
   Intentionally global — not scoped — so the same rules reach
   every page's title/subtitle/actions regardless of whether those
   elements are authored directly in PageHeader's template or
   rendered by child components like RadzenText. The sp-page-*
   prefix guarantees no collisions with other component classes.
   ──────────────────────────────────────────────────────────────── */

.sp-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 1.5rem;
    row-gap: 2rem;
    margin: 0 0 2rem 0;
    padding: 0.5rem 0 0 0;
}

.sp-page-header--dense {
    padding-top: 0;
    margin-bottom: 0.75rem;
    column-gap: 1rem;
    row-gap: 0.75rem;
}

.sp-page-header__text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.sp-page-header--dense .sp-page-header__text {
    gap: 0.25rem;
}

.sp-page-title {
    margin: 0 !important;
    overflow-wrap: anywhere;
}

.sp-page-subtitle {
    margin: 0 !important;
    padding-left: 0.75rem;
    overflow-wrap: anywhere;
    color: var(--rz-text-secondary-color, #666);
}

.sp-page-header__subtitle-content {
    padding-left: 0.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 14pt;
    font-weight: 400;
    line-height: 19pt;
    color: var(--rz-text-secondary-color, #666);
    overflow-wrap: anywhere;
}

.sp-page-header__subtitle-content p {
    margin: 0 0 0.5rem 0;
}

.sp-page-header__subtitle-content p:last-child,
.sp-page-header__subtitle-content > :last-child {
    margin-bottom: 0;
}

.sp-page-header__subtitle-content > :first-child {
    margin-top: 0;
}

.sp-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 1 auto;
}
