/**
 * Staff Portal CSS
 *
 * Frontend styling for the staff portal shortcode.
 * Mobile-first, standalone (no WP admin dependencies).
 * Enhanced with glassmorphism and vibrant design.
 */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSansVar.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSansVarItalic.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ========================================
   Variables - StepVise Token Layer
   ======================================== */
:root {
    --sv-blue: #0044ee;
    --sv-blue-dark: #0033b8;
    --sv-white: #ffffff;
    --sv-bg: #f9fafb;
    --sv-growth: #2ecc71;
    --sv-gold: #f1c40f;
    --sv-text-dark: #1a1a1a;
    --sv-text-grey: #5f6775;
    --sv-purple: #8e6bff;
    --sv-warm-red: #ff6e83;
    --sv-warm-pink: #ffb6cc;
    --sv-aurora: linear-gradient(135deg, #0044ee 0%, #8e6bff 50%, #ff6e83 100%);

    --portal-primary: var(--sv-blue);
    --portal-primary-hover: var(--sv-blue-dark);
    --portal-primary-light: rgba(0, 68, 238, 0.12);
    --portal-primary-glow: rgba(0, 68, 238, 0.28);
    --portal-success: var(--sv-growth);
    --portal-success-light: rgba(46, 204, 113, 0.15);
    --portal-warning: var(--sv-gold);
    --portal-warning-light: rgba(241, 196, 15, 0.16);
    --portal-danger: #ef4444;
    --portal-danger-light: rgba(239, 68, 68, 0.15);
    --portal-bg: var(--sv-aurora);
    --portal-bg-static: var(--sv-bg);
    --portal-card-bg: rgba(255, 255, 255, 0.92);
    --portal-glass-bg: rgba(255, 255, 255, 0.78);
    --portal-glass-border: rgba(228, 232, 246, 0.8);
    --portal-text: var(--sv-text-dark);
    --portal-text-muted: var(--sv-text-grey);
    --portal-text-light: rgba(255, 255, 255, 0.92);
    --portal-border: rgba(211, 218, 236, 0.72);
    --portal-radius: 30px;
    --portal-radius-sm: 16px;
    --portal-radius-lg: 34px;
    --portal-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --portal-shadow-sm: 0 6px 18px rgba(15, 24, 46, 0.08);
    --portal-shadow-hover: 0 16px 44px rgba(0, 68, 238, 0.2);
    --portal-shadow-glass: 0 10px 30px rgba(15, 24, 46, 0.08);
    --portal-blur: blur(16px);
}

/* Hidden attribute support */
[hidden] {
    display: none !important;
}

/* ========================================
   Base Container with Gradient Background
   ======================================== */
.peoplehub-staff-portal {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--portal-text);
    max-width: 100%;
    margin: 0 auto !important;
    padding: 40px 32px 80px 32px !important;
    padding-top: max(60px, env(safe-area-inset-top)) !important;
    padding-bottom: max(80px, env(safe-area-inset-bottom)) !important;
    /* Small buffer at top */
    min-height: 100vh;
    position: relative;
}

/* Center all direct children of the portal (content sections) with a max-width */
.peoplehub-staff-portal>*:not(.portal-nav) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Override Divi and other theme margins/padding on parent containers */
.peoplehub-staff-portal,
.peoplehub-staff-portal * {
    box-sizing: border-box;
}

/* Force the portal container to be at the top - override theme styles */
body.logged-in .peoplehub-staff-portal {
    margin-top: 0 !important;
}

/* Override any theme content area padding */
#main-content .peoplehub-staff-portal,
.et_pb_section .peoplehub-staff-portal,
.entry-content .peoplehub-staff-portal,
article .peoplehub-staff-portal,
.page-content .peoplehub-staff-portal {
    margin-top: 0 !important;
    padding-top: 16px !important;
}

/* Remove extra space added by Divi builder */
.et_pb_row .peoplehub-staff-portal,
.et_pb_module .peoplehub-staff-portal {
    margin-top: 0 !important;
}

/* Override parent padding that might push content down */
.peoplehub-staff-portal:first-child {
    margin-top: 0 !important;
}

/* ===== Aggressively remove Divi section/row/module padding ===== */
/* Target Divi sections containing our portal */
.et_pb_section:has(.peoplehub-staff-portal) {
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.et_pb_row:has(.peoplehub-staff-portal) {
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.et_pb_column:has(.peoplehub-staff-portal) {
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.et_pb_text:has(.peoplehub-staff-portal) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.et_pb_module:has(.peoplehub-staff-portal) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Fallback for browsers that don't support :has() - use body class */
body.page-template-default #main-content,
body.page #main-content,
body #et-main-area {
    padding-top: 0 !important;
}

/* Remove Divi's default top padding on sections */
.et_pb_section.et_section_regular {
    padding-top: 0 !important;
}

/* ========================================
   Portal Navigation Bar
   ======================================== */
.portal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--portal-shadow-glass);
    position: relative;
    z-index: 1000;
}

.portal-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-nav-logo {
    font-size: 24px;
}

.portal-nav-logo-img {
    width: 36px;
    height: auto;
}

.portal-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--portal-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

a.portal-nav-title:hover {
    color: var(--portal-primary-hover);
}

.portal-nav-title .portal-nav-logo {
    font-size: 24px;
}

.portal-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-decoration: none;
    border-radius: var(--portal-radius-sm);
    transition: all 0.2s ease;
}

.portal-nav-link:hover {
    color: var(--portal-primary);
    background: var(--portal-primary-light);
}

.portal-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.portal-nav-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Nav Dropdown Groups */
.portal-nav-dropdown {
    position: relative;
}

.portal-nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.portal-nav-dropdown-toggle .dropdown-arrow {
    font-size: 12px;
    width: 12px;
    height: 12px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.portal-nav-dropdown:hover .dropdown-arrow,
.portal-nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.portal-nav-dropdown.active .portal-nav-dropdown-toggle {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-radius: var(--portal-radius-sm);
}

.portal-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--portal-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-nav-dropdown:hover .portal-nav-dropdown-menu,
.portal-nav-dropdown.open .portal-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.portal-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--portal-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.portal-nav-dropdown-item:hover {
    background: var(--portal-primary-light);
    color: var(--portal-primary);
}

.portal-nav-dropdown-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--portal-text-muted);
}

.portal-nav-dropdown-item:hover .dashicons {
    color: var(--portal-primary);
}

.portal-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-nav-user-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--portal-text-muted);
}

.portal-nav-user-name .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--portal-primary);
}

.portal-nav-logout {
    font-size: 13px;
    color: var(--portal-danger);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--portal-radius-sm);
    transition: all 0.2s ease;
}

.portal-nav-logout:hover {
    background: var(--portal-danger-light);
}

/* Hamburger Menu Toggle */
.portal-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--portal-radius-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--portal-primary);
    transition: all 0.2s ease;
}

.portal-mobile-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}

.portal-mobile-toggle .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Profile Button - hidden on desktop */
.portal-mobile-profile-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--portal-radius-sm);
    padding: 8px;
    color: var(--portal-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-mobile-profile-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.portal-mobile-profile-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Logout Button - hidden on desktop */
.portal-mobile-logout-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--portal-radius-sm);
    padding: 8px;
    color: var(--portal-danger);
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-mobile-logout-btn:hover {
    background: var(--portal-danger-light);
}

.portal-mobile-logout-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive nav */
@media (max-width: 768px) {
    .portal-nav {
        flex-wrap: nowrap;
        padding: 12px 16px;
        gap: 12px;
        justify-content: space-between;
        z-index: 9000;
    }

    .portal-mobile-toggle {
        display: block;
        order: 4;
    }

    .portal-mobile-profile-btn {
        display: block;
        order: 2;
    }

    .portal-mobile-logout-btn {
        display: block;
        order: 3;
    }

    .portal-nav-brand {
        flex: 1;
        min-width: 0;
        /* Allow text truncation */
    }

    .portal-nav-title {
        font-size: 16px;
    }

    .portal-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        margin-top: 1px;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9100;
    }

    /* Active state - Show menu */
    .portal-nav.menu-open .portal-nav-links {
        max-height: 80vh;
        visibility: visible;
        opacity: 1;
        padding: 16px;
        overflow-y: auto;
    }

    .portal-nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--portal-radius-sm);
        margin-bottom: 4px;
    }

    .portal-nav-link:active,
    .portal-nav-link:hover {
        background: var(--portal-primary-light);
    }

    /* Hide desktop user section, show mobile one inside menu */
    .portal-nav-user {
        display: none;
    }

    .portal-nav-mobile-user {
        display: flex !important;
        /* Force show */
        width: 100%;
        flex-direction: column;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--portal-border);
        gap: 8px;
    }

    .portal-nav-mobile-user .portal-nav-user-name {
        padding: 8px 16px;
        color: var(--portal-text);
        font-weight: 600;
    }

    /* Make logout button full width in menu */
    .portal-nav-logout {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        color: var(--portal-danger);
    }

    /* Mobile: Dropdowns expand inline */
    .portal-nav-dropdown {
        width: 100%;
    }

    .portal-nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: var(--portal-radius-sm);
    }

    .portal-nav-dropdown-toggle .dropdown-arrow {
        margin-left: auto;
    }

    .portal-nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: none;
        border: none;
        background: rgba(99, 102, 241, 0.04);
        border-radius: 0 0 var(--portal-radius-sm) var(--portal-radius-sm);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .portal-nav-dropdown.open .portal-nav-dropdown-menu {
        max-height: 300px;
        padding: 4px 0;
    }

    .portal-nav-dropdown-item {
        padding: 10px 16px 10px 40px;
    }
}

/* Make staff name clickable */
a.portal-nav-user-name {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.portal-nav-user-name:hover {
    color: var(--portal-primary);
}

/* ========================================
   People Hub Section Styles
   ======================================== */

/* Tab Navigation */
.portal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--portal-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portal-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-decoration: none;
    border-radius: var(--portal-radius-sm);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.portal-tab:hover {
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
}

.portal-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.portal-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Search Box */
.portal-search-form {
    margin-bottom: 20px;
}

.portal-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
}

.portal-search-box .dashicons {
    color: var(--portal-text-muted);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.portal-search-box input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--portal-text);
    outline: none;
}

.portal-search-box input[type="search"]::placeholder {
    color: var(--portal-text-muted);
}

.portal-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Person Cards */
.people-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Client Group (sub-program grouping) */
.client-group {
    margin-bottom: 20px;
}

.client-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--portal-primary);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--portal-radius-sm);
    border-left: 4px solid var(--portal-primary);
}

.client-group-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--portal-primary);
}

.client-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border-radius: 999px;
    margin-left: auto;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow);
}

.person-card-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.person-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.person-card-info {
    flex: 1;
    min-width: 0;
}

.person-card-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.person-card-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-card-type.type-client {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.person-card-type.type-employee {
    background: rgba(99, 102, 241, 0.1);
    color: var(--portal-primary);
}

.person-card-type.type-guardian {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.person-card-type.type-contact {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.person-card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--portal-text-muted);
}

.person-card-arrow {
    color: var(--portal-text-muted);
    transition: transform 0.2s ease;
}

.person-card:hover .person-card-arrow {
    transform: translateX(4px);
    color: var(--portal-primary);
}

/* Portal Pagination */
.portal-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.portal-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: var(--portal-text-muted);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--portal-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-pagination .page-numbers:hover {
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
}

.portal-pagination .page-numbers.current {
    color: #fff;
    background: var(--portal-primary);
}

/* Portal Back Link */
.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.portal-back-link:hover {
    color: #fff;
}

/* Person Profile */
.person-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.person-profile-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.person-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.person-profile-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

.person-profile-info {
    flex: 1;
}

.person-profile-name {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.person-profile-type {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-profile-type.type-client {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.person-profile-type.type-employee {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.person-profile-type.type-guardian {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.person-profile-type.type-contact {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.person-profile-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.person-start-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
}

.client-profile-accordion {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.client-profile-accordion-item {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(99, 108, 136, 0.14);
    overflow: hidden;
}

.client-profile-accordion-item.is-open {
    border-color: rgba(80, 91, 117, 0.16);
}

.client-profile-accordion-item[data-profile-section="contact"].is-open {
    background: rgba(255, 255, 255, 0.94);
}

.client-profile-accordion-heading {
    margin: 0;
}

.client-profile-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 17px 20px;
    border: 0;
    background: transparent;
    color: #1f2433;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.client-profile-accordion-trigger:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: -2px;
}

.client-profile-accordion-trigger-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.client-profile-accordion-trigger-main .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #1f2433;
}

.client-profile-accordion-chevron {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #667085;
    transition: transform 160ms ease;
}

.client-profile-accordion-item.is-open .client-profile-accordion-chevron {
    transform: rotate(90deg);
}

.client-profile-accordion-panel {
    padding: 0 10px 10px;
}

.client-profile-accordion-panel .profile-tab-content {
    gap: 10px;
}

/* Profile Tabs */
.person-profile-tabs {
    margin-bottom: 20px;
}

/* Profile Content */
.person-profile-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Profile Info Card */
.profile-info-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
}

.profile-info-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 15px;
    color: var(--portal-text);
    text-decoration: none;
}

a.profile-info-value:hover {
    color: var(--portal-primary);
}

.profile-no-data {
    margin: 0;
    font-size: 14px;
    color: var(--portal-text-muted);
    font-style: italic;
}

.profile-note {
    margin: 0;
    padding: 12px;
    font-size: 14px;
    color: var(--portal-text-muted);
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--portal-radius-sm);
}

.profile-person-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--portal-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-person-link:hover {
    background: rgba(99, 102, 241, 0.2);
}

.profile-person-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-person-list li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

/* ================================
   ORG CHART (ASSIGNMENTS TAB)
   ================================ */

.ph-orgchart {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 6px 14px;
}

.ph-orgchart-group {
    min-width: max-content;
}

.ph-orgchart-group-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-text-muted);
}

.ph-org-level {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.ph-org-node {
    list-style: none;
}

.ph-org-card {
    width: 320px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ph-org-card-header {
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #64748b;
}

.ph-org-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.ph-org-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    background: #e2e8f0;
}

.ph-org-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.ph-org-card-meta {
    min-width: 0;
}

.ph-org-card-name {
    display: block;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    word-break: break-word;
}

.ph-org-card-name:hover {
    color: var(--portal-primary);
}

.ph-org-card-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.ph-org-branch-label {
    display: inline-block;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.ph-org-card.ph-role-director {
    border-color: #9ec4ef;
}

.ph-org-card.ph-role-director .ph-org-card-header {
    background: #0d3f6d;
}

.ph-org-card.ph-role-director .ph-org-card-avatar {
    background: #dbeafe;
    color: #1d4ed8;
}

.ph-org-card.ph-role-supervisor {
    border-color: #9ec4ef;
}

.ph-org-card.ph-role-supervisor .ph-org-card-header {
    background: #1f6fb7;
}

.ph-org-card.ph-role-supervisor .ph-org-card-avatar {
    background: #dbeafe;
    color: #1d4ed8;
}

.ph-org-card.ph-role-staff {
    border-color: #96d6ad;
}

.ph-org-card.ph-role-staff .ph-org-card-header {
    background: #2f9b57;
}

.ph-org-card.ph-role-staff .ph-org-card-avatar {
    background: #dcfce7;
    color: #15803d;
}

.ph-org-card.ph-role-financial_manager {
    border-color: #8cd0d9;
}

.ph-org-card.ph-role-financial_manager .ph-org-card-header {
    background: #1f8ea1;
}

.ph-org-card.ph-role-financial_manager .ph-org-card-avatar {
    background: #cffafe;
    color: #0f766e;
}

.ph-org-card.ph-role-client {
    border-color: #bfb4ff;
}

.ph-org-card.ph-role-client .ph-org-card-header {
    background: #6a63d8;
}

.ph-org-card.ph-role-client .ph-org-card-avatar {
    background: #ede9fe;
    color: #6d28d9;
}

.ph-org-card.ph-role-guardian {
    border-color: #f3cf88;
}

.ph-org-card.ph-role-guardian .ph-org-card-header {
    background: #d5972b;
}

.ph-org-card.ph-role-guardian .ph-org-card-avatar {
    background: #fef3c7;
    color: #a16207;
}

.ph-org-card.ph-role-contact {
    border-color: #cbd5e1;
}

.ph-org-card.ph-role-contact .ph-org-card-header {
    background: #64748b;
}

.ph-org-card.ph-role-contact .ph-org-card-avatar {
    background: #e2e8f0;
    color: #334155;
}

.ph-org-card.ph-role-neutral {
    border-color: #cbd5e1;
}

.ph-org-card.ph-role-neutral .ph-org-card-header {
    background: #64748b;
}

.ph-org-card.ph-role-neutral .ph-org-card-avatar {
    background: #e2e8f0;
    color: #334155;
}

@media (min-width: 1024px) {
    .ph-org-level {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        padding-top: 28px;
    }

    .ph-orgchart-group>.ph-org-level {
        padding-top: 6px;
    }

    .ph-org-level .ph-org-node {
        position: relative;
        padding: 0 10px;
    }

    .ph-org-level .ph-org-node::before,
    .ph-org-level .ph-org-node::after {
        content: "";
        position: absolute;
        top: 0;
        width: 50%;
        height: 16px;
        border-top: 2px solid #d4deea;
    }

    .ph-org-level .ph-org-node::before {
        right: 50%;
        border-right: 2px solid #d4deea;
    }

    .ph-org-level .ph-org-node::after {
        left: 50%;
        border-left: 2px solid #d4deea;
    }

    .ph-org-level .ph-org-node:only-child::before,
    .ph-org-level .ph-org-node:only-child::after {
        display: none;
    }

    .ph-org-level .ph-org-node:first-child::before {
        border: 0;
    }

    .ph-org-level .ph-org-node:last-child::after {
        border: 0;
    }

    .ph-org-node>.ph-org-level {
        margin-top: 12px;
        padding-top: 24px;
        position: relative;
    }

    .ph-org-node>.ph-org-level::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 0;
        height: 24px;
        border-left: 2px solid #d4deea;
        transform: translateX(-50%);
    }
}

@media (max-width: 1023px) {
    .ph-orgchart {
        overflow-x: visible;
        padding: 8px 0 10px;
    }

    .ph-orgchart-group {
        min-width: 0;
    }

    .ph-org-level {
        display: block;
        padding-top: 0;
    }

    .ph-org-node {
        position: relative;
        margin: 0 0 12px;
        padding: 0;
    }

    .ph-org-level .ph-org-node::before,
    .ph-org-level .ph-org-node::after {
        display: none;
    }

    .ph-org-node>.ph-org-level {
        margin: 10px 0 0 12px;
        padding: 0 0 0 16px;
        position: relative;
    }

    .ph-org-node>.ph-org-level::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 14px;
        width: 2px;
        background: #3b82f6;
    }

    .ph-org-node>.ph-org-level>.ph-org-node {
        padding-left: 12px;
    }

    .ph-org-node>.ph-org-level>.ph-org-node::before {
        content: "";
        position: absolute;
        left: 0;
        top: 36px;
        width: 12px;
        height: 2px;
        background: #3b82f6;
        display: block;
    }

    .ph-org-card {
        width: 100%;
        max-width: none;
    }

    .ph-org-card-name {
        font-size: 16px;
    }
}

/* Profile Tags */
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
}

/* Portal Error */
.portal-error {
    padding: 20px;
    text-align: center;
    color: var(--portal-danger);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--portal-radius);
}

/* Mobile Responsive People Hub */
@media (max-width: 600px) {

    /* White title for People Hub on mobile */
    .people-hub-section .portal-title {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* Hide desktop tabs on mobile */
    .portal-tabs-desktop {
        display: none !important;
    }

    /* Show mobile dropdown */
    .portal-tabs-mobile {
        display: block;
        margin-bottom: 16px;
    }

    .portal-tabs-select {
        width: 100%;
        padding: 14px 40px 14px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #1f2937;
        background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236b7280" d="M6 8L1 3h10z"/></svg>') no-repeat right 14px center;
        background-size: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        cursor: pointer;
    }

    .portal-tabs-select:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    /* Desktop tabs visibility */
    .portal-tabs.portal-tabs-desktop {
        display: none;
    }

    .person-card {
        padding: 12px 16px;
    }

    .person-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .person-card-name {
        font-size: 15px;
    }

    .person-card-contact {
        display: none;
    }

    .person-profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 14px;
        padding: 18px 16px;
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.96);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 12px 28px rgba(99, 108, 136, 0.14);
    }

    .person-profile-name {
        font-size: 20px;
        color: #1f2433;
    }

    .profile-info-card {
        padding: 16px;
        border-radius: 22px;
    }

    .person-profile-type.type-client {
        background: rgba(16, 185, 129, 0.15);
        color: #0f766e;
    }

    .person-profile-section.person-profile-section-client .person-profile-tabs {
        display: none;
    }

    .person-profile-section.person-profile-section-client .client-profile-accordion {
        display: flex;
    }

    .person-profile-section.person-profile-section-client .client-profile-accordion.is-enhanced+.person-profile-content {
        display: none;
    }

    .person-profile-section.person-profile-section-client .client-profile-accordion {
        gap: 12px;
        margin-bottom: 0;
    }

    .person-profile-section.person-profile-section-client .client-profile-accordion-trigger {
        padding: 16px 18px;
        font-size: 14px;
    }

    .person-profile-section.person-profile-section-client .client-profile-accordion-panel {
        padding: 0 8px 8px;
    }

    .person-profile-section .portal-back-link {
        margin-bottom: 12px;
        color: #4b556d;
    }

    .person-profile-section .portal-back-link .dashicons {
        color: #4b556d;
    }

    .person-profile-actions {
        margin-bottom: 16px;
    }

    .person-start-report-btn {
        min-height: 44px;
        padding: 10px 18px;
    }
}

/* Hide mobile dropdown on desktop */
@media (min-width: 601px) {
    .portal-tabs-mobile {
        display: none;
    }
}

/* ========================================
   Goals Tab Styles
   ======================================== */

.goals-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
}

.goals-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--portal-text-muted);
    opacity: 0.5;
}

.goals-empty-state p {
    margin: 0;
    font-size: 15px;
    color: var(--portal-text-muted);
}

/* Goal Card */
.goal-card {
    border-left: 4px solid var(--portal-primary);
}

.goal-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-domain .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.goal-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--portal-text);
}

.goal-description {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--portal-text);
}

/* Benchmarks */
.goal-benchmarks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--portal-border);
}

.goal-benchmarks h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benchmark-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--portal-radius-sm);
}

.benchmark-item:last-child {
    margin-bottom: 0;
}

.benchmark-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.benchmark-level,
.benchmark-setting {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.benchmark-level {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.benchmark-setting {
    background: rgba(99, 102, 241, 0.15);
    color: var(--portal-primary);
}

.benchmark-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--portal-text);
}

.benchmark-criteria {
    margin: 8px 0 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--portal-text);
}

.benchmark-criteria li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Support Strategies */
.goal-strategies {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.goal-strategies h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--portal-radius-sm);
    border-left: 3px solid var(--portal-success);
}

.strategy-item:last-child {
    margin-bottom: 0;
}

.strategy-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.strategy-environment {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border-radius: var(--portal-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-role {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--portal-radius-sm);
}

.strategy-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--portal-text);
    list-style-type: disc;
}

.strategy-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Support Needs */
.support-needs-card {
    border-left: 4px solid #ec4899;
}

.support-needs-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--portal-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.support-needs-category .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.support-needs-level {
    margin-bottom: 12px;
}

.support-level-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--portal-radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--portal-primary);
}

.support-level-badge.level-extensive {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.support-level-badge.level-moderate {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.support-level-badge.level-minimal {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.support-level-badge.level-none {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.support-needs-notes {
    padding: 12px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: var(--portal-radius-sm);
}

.support-needs-notes p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--portal-text);
}

/* Support Needs List - Frontend Portal */
.support-needs-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-needs-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--portal-radius-sm);
    border-left: 3px solid #ec4899;
    font-size: 14px;
    line-height: 1.6;
    color: var(--portal-text);
}

.support-needs-item .dashicons {
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #ec4899;
    margin-top: 2px;
}

/* Shared portal gradient layer is provided by assets/css/portal-gradient.css. */

/* ========================================
   Glassmorphism Card Base
   ======================================== */
.portal-glass {
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-glass);
}

/* ========================================
   Messages (Login/Error)
   ======================================== */
.peoplehub-portal-message {
    text-align: center;
    padding: 60px 30px;
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-glass);
}


.portal-message-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.peoplehub-portal-message h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.peoplehub-portal-message p {
    margin: 0 0 24px;
    color: var(--portal-text-muted);
}

/* ========================================
   Login Page - Premium Full-Screen Design
   ======================================== */
.peoplehub-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport for mobile */
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.peoplehub-login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 35%, #f093fb 70%, #667eea 100%);
    background-size: 300% 300%;
    animation: loginGradientShift 12s ease infinite;
    z-index: -2;
}

/* Subtle animated floating orbs */
.peoplehub-login-page::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: loginOrbFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes loginGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes loginOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-30px, 30px) rotate(120deg);
    }

    66% {
        transform: translate(20px, -20px) rotate(240deg);
    }
}

.login-page-card {
    width: 100%;
    max-width: 380px;
    padding: 48px 36px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: loginCardAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes loginCardAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 50%;
    animation: loginIconPulse 3s ease-in-out infinite;
}

@keyframes loginIconPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

.login-card-icon svg {
    width: 48px;
    height: 48px;
}

.login-card-branding h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.login-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.login-corner-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: auto;
    opacity: 0.9;
}

.login-card-divider {
    width: 60px;
    height: 3px;
    margin: 24px auto;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
}

.login-description {
    margin: 0 0 28px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--portal-text-muted);
}

.portal-btn-login {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-btn-login:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.5);
}

.portal-btn-login svg {
    transition: transform 0.3s ease;
}

.portal-btn-login:hover svg {
    transform: translateX(4px);
}

/* Login Form Styles */
.login-form-wrapper {
    width: 100%;
    margin-top: 8px;
}

.login-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form-wrapper p {
    margin: 0;
}

.login-form-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-text);
    text-align: left;
}

.login-form-wrapper input[type="text"],
.login-form-wrapper input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--portal-text);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form-wrapper input[type="text"]:focus,
.login-form-wrapper input[type="password"]:focus {
    outline: none;
    border-color: var(--portal-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-form-wrapper input[type="text"]::placeholder,
.login-form-wrapper input[type="password"]::placeholder {
    color: var(--portal-text-muted);
}

/* Remember me checkbox */
.login-form-wrapper .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.login-form-wrapper .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--portal-primary);
    cursor: pointer;
}

.login-form-wrapper .forgetmenot label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-text-muted);
    cursor: pointer;
}

/* Submit button */
.login-form-wrapper input[type="submit"],
.login-form-wrapper .submit input {
    width: 100%;
    padding: 16px 28px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form-wrapper input[type="submit"]:hover,
.login-form-wrapper .submit input:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.5);
}

.login-form-wrapper input[type="submit"]:active,
.login-form-wrapper .submit input:active {
    transform: translateY(-1px);
}

/* Error message */
.login-error {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Forgot password link */
.login-help {
    margin: 16px 0 0 0;
    font-size: 14px;
}

.login-help a {
    color: var(--portal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-help a:hover {
    color: var(--portal-primary-hover);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 420px) {
    .login-page-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .login-logo {
        max-width: 100px;
    }

    .login-card-branding h1 {
        font-size: 24px;
    }

    .login-card-icon {
        width: 72px;
        height: 72px;
    }

    .login-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .login-form-wrapper input[type="text"],
    .login-form-wrapper input[type="password"] {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }
}

/* ========================================
   Buttons - Vibrant & Glassy
   ======================================== */
.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--portal-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.portal-btn:hover::before {
    left: 100%;
}

.portal-btn-primary {
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.portal-btn-primary:hover {
    background: linear-gradient(135deg, var(--portal-primary-hover) 0%, #7c3aed 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.portal-btn-primary:active {
    transform: translateY(0);
}

/* Success state button (green) - used after AI analysis completes */
.portal-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.portal-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.portal-btn-success:active {
    transform: translateY(0);
}

/* Analyze button text states */
#analyze-report-btn .btn-text-analyze,
#analyze-report-btn .btn-text-analyzing,
#analyze-report-btn .btn-text-preview {
    display: inline;
}

#analyze-report-btn [hidden] {
    display: none !important;
}

.portal-btn-secondary {
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    color: var(--portal-text);
    border: 1px solid var(--portal-glass-border);
    box-shadow: var(--portal-shadow);
}

.portal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--portal-primary);
    color: var(--portal-primary);
    transform: translateY(-2px);
}

.portal-btn-large {
    padding: 18px 36px;
    font-size: 18px;
    width: 100%;
    justify-content: center;
    border-radius: var(--portal-radius);
}

.portal-btn .btn-icon {
    font-weight: 700;
    font-size: 20px;
}

.portal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Header
   ======================================== */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.portal-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-back {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.portal-back:hover {
    color: #fff;
}

.portal-btn-logout {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    font-size: 14px;
}

.portal-btn-logout .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.portal-btn-logout:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   Filters
   ======================================== */
.portal-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--portal-text-muted);
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
}

/* ========================================
   Report Cards - Glassy Design
   ======================================== */
.portal-reports-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    display: block;
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--portal-primary), #8b5cf6, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--portal-shadow-hover);
    transform: translateY(-4px) scale(1.01);
}

.report-card:hover::before {
    opacity: 1;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.report-date {
    font-weight: 600;
    font-size: 15px;
}

.report-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.report-status.status-draft {
    background: #fef3cd;
    color: #856404;
}

.report-status.status-submitted {
    background: #cce5ff;
    color: #004085;
}

.report-status.status-reviewed {
    background: #d4edda;
    color: #155724;
}

.report-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-client {
    font-size: 16px;
    font-weight: 500;
}

.report-program,
.report-shift {
    font-size: 14px;
    color: var(--portal-text-muted);
}

.report-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--portal-border);
}

.action-hint {
    font-size: 13px;
    color: var(--portal-primary);
}

/* ========================================
   Empty State
   ======================================== */
.portal-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius);
    border: 2px dashed var(--portal-border);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.portal-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.portal-empty p {
    margin: 0 0 24px;
    color: var(--portal-text-muted);
}

/* ========================================
   Pagination
   ======================================== */
.portal-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.portal-pagination a,
.portal-pagination span {
    padding: 8px 14px;
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--portal-text);
    font-size: 14px;
}

.portal-pagination a:hover {
    border-color: var(--portal-primary);
    color: var(--portal-primary);
}

.portal-pagination .current {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
}

/* ========================================
   Forms - Glassy & Elevated
   ======================================== */
.portal-form {
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    padding: 60px;
    box-shadow: var(--portal-shadow-glass);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 500;
    font-size: 14px;
}

.form-field .required {
    color: var(--portal-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--portal-border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field select:disabled {
    background: var(--portal-bg);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-actions .portal-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   Context Bar - Glassy
   ======================================== */
.portal-context-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px;
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    margin-bottom: 24px;
    box-shadow: var(--portal-shadow);
}

.context-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.context-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--portal-text-muted);
    font-weight: 600;
}

.context-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--portal-text);
}

/* Status Badges - Vibrant Gradients */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-draft {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.status-submitted {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.status-badge.status-needs_revision {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.status-reviewed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ========================================
   View Content - Glassy
   ======================================== */
.portal-view-content {
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    padding: 28px;
    box-shadow: var(--portal-shadow-glass);
}

.view-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--portal-border);
}

.view-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.view-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--portal-text-muted);
}

.view-content {
    font-size: 16px;
    line-height: 1.6;
}

.view-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.view-pill {
    padding: 6px 14px;
    background: var(--portal-primary);
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
}

.view-section-alert {
    background: #fff3cd;
    padding: 16px;
    border-radius: 6px;
    border: none;
}

.safety-flag {
    font-weight: 500;
}

.view-section-legacy {
    opacity: 0.7;
}

.view-section-legacy h3::after {
    content: ' (Legacy)';
    font-weight: normal;
}

/* ========================================
   Error State
   ======================================== */
.portal-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: var(--portal-radius);
    text-align: center;
}

/* ========================================
   Documentation Review Form - Enhanced UI/UX
   ======================================== */

/* Form Container */
.peoplehub-staff-portal .documentation-review-form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Cards - Elevated Design */
.peoplehub-staff-portal .doc-review-section {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.peoplehub-staff-portal .doc-review-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.peoplehub-staff-portal .doc-review-section:focus-within {
    border-color: var(--portal-primary);
    box-shadow: 0 4px 20px rgba(34, 113, 177, 0.15);
}

/* Section Header - Progress Indicator Style */
.peoplehub-staff-portal .section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--portal-border);
}

.peoplehub-staff-portal .section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #1a5490 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
    flex-shrink: 0;
}

.peoplehub-staff-portal .section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--portal-text);
}

/* Section Content */
.peoplehub-staff-portal .section-content {
    padding: 20px;
}

.peoplehub-staff-portal .section-description {
    margin: 0 0 16px;
    color: var(--portal-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Helper Tips - Accordion Style */
.peoplehub-staff-portal .helper-tips {
    margin-bottom: 16px;
}

.peoplehub-staff-portal .toggle-tips {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fd 100%);
    border: 1px solid #c5ddf8;
    border-radius: 20px;
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .toggle-tips:hover {
    background: linear-gradient(135deg, #e8f2fd 0%, #d4e8fc 100%);
    transform: translateY(-1px);
}

.peoplehub-staff-portal .toggle-tips .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #dba617;
}

.peoplehub-staff-portal .tips-content {
    margin-top: 12px;
    padding: 14px 16px;
    background: #fefcf3;
    border: 1px solid #fce9a8;
    border-radius: 8px;
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.peoplehub-staff-portal .tips-content ul {
    margin: 0;
    padding-left: 20px;
}

.peoplehub-staff-portal .tips-content li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b5a00;
    font-style: italic;
}

.peoplehub-staff-portal .tips-content li:last-child {
    margin-bottom: 0;
}

/* Textarea - Enhanced Design */
.peoplehub-staff-portal .doc-review-textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px 18px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--portal-text);
    background: #fafbfc;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.peoplehub-staff-portal .doc-review-textarea:hover {
    border-color: #c8ced3;
    background: #fff;
}

.peoplehub-staff-portal .doc-review-textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
}

.peoplehub-staff-portal .doc-review-textarea::placeholder {
    color: #9ca3af;
}

/* Pill Selector - Modern Chips */
.peoplehub-staff-portal .pill-selector {
    margin-bottom: 20px;
}

.peoplehub-staff-portal .pill-selector-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--portal-text);
}

.peoplehub-staff-portal .pill-selector-label .required {
    color: var(--portal-danger);
    margin-left: 2px;
}

.peoplehub-staff-portal .pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.peoplehub-staff-portal .pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f4f6f8;
    border: 2px solid #e1e5e9;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.peoplehub-staff-portal .pill:hover {
    border-color: var(--portal-primary);
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(34, 113, 177, 0.15);
}

.peoplehub-staff-portal .pill:active {
    transform: scale(0.97);
}

.peoplehub-staff-portal .pill input[type="checkbox"] {
    /* Visually hidden but accessible */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.peoplehub-staff-portal .pill.selected,
.peoplehub-staff-portal .pill:has(input:checked) {
    background: linear-gradient(135deg, var(--portal-primary) 0%, #1a5490 100%);
    border-color: var(--portal-primary);
    color: #fff;
    box-shadow: 0 3px 12px rgba(34, 113, 177, 0.3);
}

.peoplehub-staff-portal .pill-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.peoplehub-staff-portal .no-goals-message {
    padding: 16px;
    background: #fef3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Safety Toggle - Warning Themed */
.peoplehub-staff-portal .safety-toggle {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
}

.peoplehub-staff-portal .toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .toggle-switch:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.peoplehub-staff-portal .toggle-switch:has(input:checked) {
    background: #fef08a;
    border-color: #f59e0b;
}

.peoplehub-staff-portal .toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: #d1d5db;
    border-radius: 13px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.peoplehub-staff-portal .toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.peoplehub-staff-portal .toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.peoplehub-staff-portal .toggle-switch input:checked+.toggle-slider {
    background: #f59e0b;
}

.peoplehub-staff-portal .toggle-switch input:checked+.toggle-slider::after {
    transform: translateX(22px);
}

.peoplehub-staff-portal .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #92400e;
}

.peoplehub-staff-portal .toggle-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

/* Safety Details Panel */
.peoplehub-staff-portal .safety-details-panel {
    margin-top: 16px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    animation: fadeSlideIn 0.3s ease;
}

.peoplehub-staff-portal .safety-details-panel[hidden] {
    display: none;
}

.peoplehub-staff-portal .safety-examples {
    margin-bottom: 16px;
}

.peoplehub-staff-portal .safety-examples .examples-intro {
    margin: 0 0 10px;
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
}

.peoplehub-staff-portal .safety-examples ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.peoplehub-staff-portal .safety-examples li {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 6px;
    line-height: 1.5;
}

.peoplehub-staff-portal .safety-response-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 8px;
}

.peoplehub-staff-portal .safety-response-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #fcd34d;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    background: #fff;
    transition: border-color 0.2s;
}

.peoplehub-staff-portal .safety-response-field textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Event-Based Shift Report */
.peoplehub-staff-portal .events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.peoplehub-staff-portal .event-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.2s;
}

.peoplehub-staff-portal .event-card:focus-within {
    border-color: var(--portal-primary);
}

.peoplehub-staff-portal .event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.peoplehub-staff-portal .event-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #1a5490 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.peoplehub-staff-portal .delete-event {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.peoplehub-staff-portal .delete-event:hover,
.peoplehub-staff-portal .delete-event:active {
    background: #fee2e2;
    color: #dc2626;
}

.peoplehub-staff-portal .event-what-happened {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s;
}

.peoplehub-staff-portal .event-what-happened:focus {
    border-color: var(--portal-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Add Event Button */
.peoplehub-staff-portal .add-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f0f7ff;
    border: 2px dashed var(--portal-primary);
    border-radius: 10px;
    color: var(--portal-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.peoplehub-staff-portal .add-event-btn:hover,
.peoplehub-staff-portal .add-event-btn:active {
    background: #e6f0fa;
    border-style: solid;
}

.peoplehub-staff-portal .add-event-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Support Events Container (Section 2) */
.peoplehub-staff-portal .support-events-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.peoplehub-staff-portal .support-event-card {
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 16px;
}

.peoplehub-staff-portal .support-event-reference {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e1e5e9;
}

.peoplehub-staff-portal .event-label {
    font-weight: 700;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.peoplehub-staff-portal .event-text {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #1f2937;
    line-height: 1.5;
}

.peoplehub-staff-portal .event-how-supported {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s;
}

.peoplehub-staff-portal .event-how-supported:focus {
    border-color: var(--portal-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* No Events Message */
.peoplehub-staff-portal .no-events-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 15px;
}

.peoplehub-staff-portal .no-events-message .dashicons {
    color: #9ca3af;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Validation Messages */
.peoplehub-staff-portal .field-validation-message {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    animation: shakeX 0.4s ease;
}

@keyframes shakeX {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

/* Hide AI review components in frontend */
.peoplehub-staff-portal .doc-review-actions {
    display: none;
}

.peoplehub-staff-portal .doc-review-feedback {
    display: none;
}

/* Benchmark Prompts Panel */
.peoplehub-staff-portal .benchmark-prompts-panel {
    margin-top: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeSlideIn 0.3s ease;
}

.peoplehub-staff-portal .benchmark-prompts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.peoplehub-staff-portal .benchmark-prompts-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.peoplehub-staff-portal .benchmark-prompts-content {
    padding: 16px 18px;
}

.peoplehub-staff-portal .goal-benchmark-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #86efac;
}

.peoplehub-staff-portal .goal-benchmark-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.peoplehub-staff-portal .goal-benchmark-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.peoplehub-staff-portal .goal-benchmark-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #22c55e;
    border-radius: 2px;
}

.peoplehub-staff-portal .benchmark-level {
    margin-bottom: 12px;
    padding-left: 12px;
}

.peoplehub-staff-portal .benchmark-level:last-child {
    margin-bottom: 0;
}

.peoplehub-staff-portal .benchmark-level-header {
    margin-bottom: 6px;
}

.peoplehub-staff-portal .benchmark-level-name {
    font-weight: 600;
    font-size: 13px;
    color: #15803d;
    background: rgba(34, 197, 94, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
}

.peoplehub-staff-portal .benchmark-expectation {
    font-size: 13px;
    color: #4b5563;
    font-style: italic;
    margin-left: 6px;
}

.peoplehub-staff-portal .success-criteria-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.peoplehub-staff-portal .success-criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.peoplehub-staff-portal .success-criteria-item:last-child {
    margin-bottom: 0;
}

.peoplehub-staff-portal .success-criteria-item .dashicons {
    color: #22c55e;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Enhanced Form Actions */
.peoplehub-staff-portal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--portal-border);
}

.peoplehub-staff-portal .form-actions .portal-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .form-actions .portal-btn-primary {
    background: linear-gradient(135deg, var(--portal-primary) 0%, #1a5490 100%);
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.3);
}

.peoplehub-staff-portal .form-actions .portal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.peoplehub-staff-portal .form-actions .portal-btn-secondary {
    background: #fff;
    border: 2px solid var(--portal-border);
}

.peoplehub-staff-portal .form-actions .portal-btn-secondary:hover {
    border-color: var(--portal-primary);
    color: var(--portal-primary);
}

/* ========================================
   Loading State
   ======================================== */
.is-loading {
    position: relative;
    pointer-events: none;
}

.is-loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ========================================
   Goal Progress Cards
   ======================================== */
.peoplehub-staff-portal .goal-progress-selector {
    margin-bottom: 20px;
}

.peoplehub-staff-portal .goals-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.peoplehub-staff-portal .goal-progress-card {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .goal-progress-card.expanded,
.peoplehub-staff-portal .goal-progress-card.selected {
    border-color: var(--portal-primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.peoplehub-staff-portal .goal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.peoplehub-staff-portal .goal-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.peoplehub-staff-portal .goal-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.peoplehub-staff-portal .goal-checkbox-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #c8ced3;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.peoplehub-staff-portal .goal-checkbox-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--portal-primary);
    border-radius: 3px;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.peoplehub-staff-portal .goal-checkbox:checked+.goal-checkbox-indicator {
    border-color: var(--portal-primary);
    background: #f0f7ff;
}

.peoplehub-staff-portal .goal-checkbox:checked+.goal-checkbox-indicator::after {
    transform: scale(1);
}

.peoplehub-staff-portal .goal-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--portal-text);
}

.peoplehub-staff-portal .goal-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--portal-text-muted);
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .goal-expand-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--portal-primary);
}

.peoplehub-staff-portal .goal-progress-card.expanded .goal-expand-btn .dashicons {
    transform: rotate(180deg);
}

.peoplehub-staff-portal .goal-card-details {
    padding: 0 16px 16px;
    border-top: 1px solid #e1e5e9;
}

/* Benchmarks and Strategies Sections */
.peoplehub-staff-portal .goal-benchmarks-section,
.peoplehub-staff-portal .goal-strategies-section,
.peoplehub-staff-portal .goal-progress-note-section {
    margin-top: 16px;
}

.peoplehub-staff-portal .subsection-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.peoplehub-staff-portal .subsection-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--portal-primary);
}

/* Benchmarks List */
.peoplehub-staff-portal .benchmarks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.peoplehub-staff-portal .benchmark-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.peoplehub-staff-portal .benchmark-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.peoplehub-staff-portal .benchmark-level {
    font-size: 11px;
    font-weight: 600;
    color: var(--portal-primary);
    background: rgba(34, 113, 177, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.peoplehub-staff-portal .benchmark-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-text);
}

/* Criteria Checklist - VERTICAL LIST */
.peoplehub-staff-portal .criteria-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.peoplehub-staff-portal .criterion-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.peoplehub-staff-portal .criterion-checkbox:hover {
    border-color: var(--portal-primary);
    background: #f0f7ff;
}

.peoplehub-staff-portal .criterion-checkbox.checked,
.peoplehub-staff-portal .criterion-checkbox:has(input:checked) {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.peoplehub-staff-portal .criterion-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.peoplehub-staff-portal .criterion-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #c8ced3;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.peoplehub-staff-portal .criterion-indicator::after {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.peoplehub-staff-portal .criterion-checkbox:has(input:checked) .criterion-indicator,
.peoplehub-staff-portal .criterion-checkbox.checked .criterion-indicator {
    background: #22c55e;
    border-color: #22c55e;
}

.peoplehub-staff-portal .criterion-checkbox:has(input:checked) .criterion-indicator::after,
.peoplehub-staff-portal .criterion-checkbox.checked .criterion-indicator::after {
    opacity: 1;
}

.peoplehub-staff-portal .criterion-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--portal-text);
}

/* Strategies List */
.peoplehub-staff-portal .strategies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.peoplehub-staff-portal .strategy-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .strategy-item.selected {
    background: #f0f7ff;
    border-color: var(--portal-primary);
}

.peoplehub-staff-portal .strategy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.peoplehub-staff-portal .strategy-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--portal-primary);
    cursor: pointer;
}

.peoplehub-staff-portal .strategy-role {
    font-weight: 600;
    font-size: 14px;
    color: var(--portal-text);
}

.peoplehub-staff-portal .strategy-context {
    font-size: 13px;
    color: var(--portal-text-muted);
    margin-left: 4px;
}

.peoplehub-staff-portal .strategy-evidence-field {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e1e5e9;
}

.peoplehub-staff-portal .strategy-evidence-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--portal-text-muted);
    margin-bottom: 6px;
}

.peoplehub-staff-portal .strategy-evidence-field textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

/* Progress Note */
.peoplehub-staff-portal .goal-progress-note {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

/* No Goals Message */
.peoplehub-staff-portal .no-goals-message {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--portal-text-muted);
    text-align: center;
    font-size: 14px;
}

/* Goals Cards Section */
.peoplehub-staff-portal .goals-cards-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.peoplehub-staff-portal .goals-cards-section.goals-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Goal Select Label */
.peoplehub-staff-portal .goal-select-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding-right: 12px;
}

.peoplehub-staff-portal .goal-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #c8ced3;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
}

.peoplehub-staff-portal .goal-checkbox-custom::after {
    content: '✓';
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.peoplehub-staff-portal .goal-checkbox:checked+.goal-checkbox-custom {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
}

.peoplehub-staff-portal .goal-checkbox:checked+.goal-checkbox-custom::after {
    opacity: 1;
}

/* Narrative Label */
.peoplehub-staff-portal .narrative-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 8px;
    margin-top: 12px;
}

/* Section Subtitle */
.peoplehub-staff-portal .section-subtitle {
    font-size: 14px;
    color: var(--portal-text-muted);
    margin-top: 4px;
}

/* ========================================
   Wizard Progress Indicator - Vibrant
   ======================================== */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 28px;
    gap: 8px;
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 70px;
}

.progress-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--portal-glass-bg);
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: var(--portal-text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, var(--portal-success) 0%, #059669 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.progress-step .step-label {
    font-size: 12px;
    color: var(--portal-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-label {
    color: var(--portal-primary);
    font-weight: 700;
}

.progress-step.completed .step-label {
    color: var(--portal-success);
}

.progress-line {
    flex: 1;
    height: 4px;
    max-width: 80px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.progress-line.completed {
    background: linear-gradient(90deg, var(--portal-success) 0%, #34d399 100%);
}

/* ========================================
   Event Review Cards - Glassy
   ======================================== */
.event-review-card {
    background: var(--portal-glass-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--portal-shadow);
}

.event-review-header {
    padding: 18px 24px;
    background: transparent;
    border-bottom: 1px solid var(--portal-glass-border);
}

.event-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.event-review-content {
    padding: 24px;
}

.event-section {
    margin-bottom: 18px;
}

.event-section:last-child {
    margin-bottom: 0;
}

.event-section label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--portal-primary);
    margin-bottom: 8px;
}

.event-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--portal-text);
    background: rgba(255, 255, 255, 0.8);
    padding: 14px 18px;
    border-radius: var(--portal-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ========================================
   Wizard Navigation
   ======================================== */
.wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.wizard-nav {
    justify-content: space-between;
}

.wizard-nav .prev-btn {
    flex: 0 0 auto;
}

.wizard-nav .next-btn {
    flex: 1;
    max-width: 250px;
    margin-left: auto;
}

/* ========================================
   Summary Page
   ======================================== */
.summary-context {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fd 100%);
    border: 1px solid #c5ddf8;
}

.summary-events-list {
    margin-bottom: 24px;
}

.summary-events-list h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.summary-event-card {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.summary-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--portal-bg);
    border-bottom: 1px solid var(--portal-border);
}

.summary-event-header .edit-link {
    font-size: 14px;
    color: var(--portal-primary);
    text-decoration: none;
}

.summary-event-header .edit-link:hover {
    text-decoration: underline;
}

.summary-event-body {
    padding: 16px 20px;
}

.summary-event-body p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.summary-event-body p:last-child {
    margin-bottom: 0;
}

.summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.summary-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--portal-primary);
    color: #fff;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}

.summary-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.summary-goal {
    display: inline-block;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}

.summary-actions {
    justify-content: center;
    gap: 16px;
}

.summary-actions .portal-btn {
    flex: 0 1 auto;
    min-width: 160px;
}

/* AI Review Button on Summary Page */
.summary-actions .ai-review-btn {
    border: 2px solid var(--portal-primary);
    color: var(--portal-primary);
    background: transparent;
}

.summary-actions .ai-review-btn:hover {
    background: var(--portal-primary);
    color: #fff;
}

/* ========================================
   Event Why It Mattered Section (Per-Event)
   ======================================== */
.event-why-mattered .section-number {
    font-size: 20px;
    background: linear-gradient(135deg, #00a32a 0%, #007017 100%);
}

/* ========================================
   Client Not Here Toggle
   ======================================== */
.client-absent-toggle-card {
    margin-bottom: 20px;
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    padding: 4px;
    transition: border-color 0.3s ease;
}

.client-absent-toggle-card:has(input:checked) {
    border-color: #f59e0b;
    background: #fffbeb;
}

.client-absent-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}

.client-absent-toggle-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.client-absent-toggle-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-text);
}

.client-absent-toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.client-absent-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.client-absent-toggle-switch .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 28px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.client-absent-toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.client-absent-toggle-switch input:checked+.toggle-slider {
    background: #f59e0b;
}

.client-absent-toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

/* ========================================
   Rich Text Toolbar
   ======================================== */
.rich-text-wrapper {
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    overflow: hidden;
    transition: border-color 0.3s ease;
    background: #fff;
}

.rich-text-wrapper.rich-text-focused {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.rich-text-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #f8f9fb;
    border-bottom: 1px solid var(--portal-border);
    flex-wrap: wrap;
}

.rich-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--portal-text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.rich-text-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--portal-primary);
}

.rich-text-btn.active {
    background: var(--portal-primary);
    color: #fff;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
}

.rich-text-separator {
    width: 1px;
    height: 20px;
    background: var(--portal-border);
    margin: 0 4px;
}

.rich-text-editor {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--portal-text);
    outline: none;
    min-height: 100px;
    overflow-y: auto;
    word-break: break-word;
}

.rich-text-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--portal-text-muted);
    pointer-events: none;
    opacity: 0.6;
}

.rich-text-editor ul,
.rich-text-editor ol {
    margin: 4px 0;
    padding-left: 24px;
}

.rich-text-editor li {
    margin-bottom: 2px;
}

.rich-text-hidden {
    display: none !important;
}

/* ========================================
   Activity Selection Page Styles
   ======================================== */

/* Activity Search Container */
.activity-search-container {
    position: relative;
    margin-bottom: 20px;
}

.activity-search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 16px;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.activity-search-input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.activity-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--portal-text-muted);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Activities Checklist */
.activities-checklist {
    display: grid;
    gap: 12px;
    /* max-height: 400px; Remove scroll for full view */
    /* overflow-y: auto; */
    padding: 4px;
}

.activity-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.activity-checkbox-item:hover {
    border-color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.05);
}

.activity-checkbox-item.selected {
    border-color: var(--portal-primary);
    background: var(--portal-primary-light);
}

.activity-checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--portal-primary);
    flex-shrink: 0;
}

.activity-checkbox-item label {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
}

/* No Activities Message */
.no-activities-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--portal-text-muted);
}

.no-activities-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Activity Category Sections */
.activity-category-section {
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-category-section:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.activity-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.activity-category-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.activity-category-header.collapsed {
    border-bottom: none;
}

.category-toggle-icon {
    color: var(--portal-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.activity-category-header.collapsed .category-toggle-icon {
    transform: rotate(-90deg);
}

.activity-category-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.activity-category-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-primary);
    background: var(--portal-primary-light);
    padding: 4px 12px;
    border-radius: 16px;
}

.activity-category-body {
    padding: 12px 16px;
    display: grid;
    gap: 8px;
}

.activity-category-body.collapsed {
    display: none;
}

/* Activity items within categories - slightly smaller padding */
.activity-category-body .activity-checkbox-item {
    padding: 12px 16px;
}

/* Search filtering - hide categories with no visible activities */
.activity-category-section.hidden {
    display: none;
}

/* ========================================
   Activity Dropdown Sections
   ======================================== */
.activities-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-dropdown-section {
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-dropdown-section:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.activity-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.activity-dropdown-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.activity-dropdown-header .dropdown-icon {
    color: var(--portal-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.activity-dropdown-header[aria-expanded="false"] .dropdown-icon {
    transform: rotate(-90deg);
}

.activity-dropdown-header .dropdown-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.activity-dropdown-header .dropdown-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-primary);
    background: var(--portal-primary-light);
    padding: 4px 12px;
    border-radius: 16px;
}

.activity-dropdown-content {
    padding: 24px;
    border-top: 1px solid var(--portal-border);
}

.activity-dropdown-content.collapsed {
    display: none;
}

.activity-dropdown-section .activity-list {
    display: grid;
    gap: 8px;
    /* max-height: 300px; Remove scroll for full view */
    /* overflow-y: auto; */
}

.activity-dropdown-section .activity-checkbox-item {
    padding: 12px 16px;
    flex-wrap: wrap;
    position: relative;
}

/* Activity Info Button & Tooltip */
.activity-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: auto;
}

.activity-info-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.activity-info-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--portal-primary, #6366f1);
}

.activity-info-tooltip {
    display: none;
    width: 100%;
    margin-top: 8px;
}

.activity-info-tooltip.visible {
    display: block;
}

.activity-info-tooltip-content {
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid var(--portal-primary, #6366f1);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--portal-text, #1e293b);
}

/* Client Activities - Add Activity Inline */
.add-client-activity-inline {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--portal-border);
}

.add-client-activity-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    transition: all 0.3s ease;
}

.add-client-activity-input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.add-client-activity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border: none;
    border-radius: var(--portal-radius-sm);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.add-client-activity-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.add-client-activity-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Client activities list empty state */
.client-activity-list:empty::before {
    content: "No custom activities yet";
    display: block;
    padding: 16px;
    text-align: center;
    color: var(--portal-text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ========================================
   Activity Support Page Styles
   ======================================== */

/* Period Header Badge (dual reporting periods) */
.period-header-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: var(--portal-radius, 12px);
    text-align: center;
}

.period-badge-icon {
    font-size: 1.5rem;
}

.period-badge-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Activity Badge */
.activity-badge-display {
    margin-bottom: 24px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: var(--portal-radius);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: var(--portal-radius);
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    text-transform: capitalize;
}

.activity-badge .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Form Textarea */
.form-textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--portal-text);
}

/* Benefits Pills Section */
.benefits-section {
    margin-top: 24px;
}

.benefits-category {
    margin-bottom: 20px;
}

.benefits-category-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--portal-text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--portal-border);
}

.benefits-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefit-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
}

.benefit-pill:hover {
    border-color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.05);
}

.benefit-pill.selected {
    border-color: var(--portal-primary);
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.benefit-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.benefit-pill span {
    pointer-events: none;
}

/* ========================================
   Goal Work Documentation Styles
   ======================================== */
.goals-documentation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-card {
    background: #fff;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.goal-card.expanded {
    border-color: var(--portal-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.goal-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.goal-card-header:hover {
    background: rgba(99, 102, 241, 0.03);
}

.goal-card-header .goal-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--portal-primary);
    flex-shrink: 0;
}

.goal-card-header .goal-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.goal-card-header .goal-toggle-icon {
    color: var(--portal-text-muted);
    transition: transform 0.3s ease;
}

.goal-card.expanded .goal-toggle-icon {
    transform: rotate(180deg);
}

.goal-card-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--portal-border);
}

.goal-meta {
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--portal-radius-sm);
    margin-bottom: 16px;
}

.goal-domain {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--portal-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.goal-benchmark-count {
    font-size: 14px;
    color: var(--portal-text-muted);
}

/* Benchmarks Section */
.goal-benchmarks {
    margin-top: 16px;
}

.benchmark-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--portal-text);
}

.benchmark-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benchmark-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--portal-glass-bg);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
}

.benchmark-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--portal-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.benchmark-item label {
    font-size: 15px;
    line-height: 1.5;
    color: var(--portal-text);
    cursor: pointer;
}

/* Strategies Section */
.goal-strategies {
    margin-top: 20px;
}

.strategies-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--portal-text);
}

.strategy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strategy-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--portal-glass-bg);
    border: 1px solid var(--portal-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
}

.strategy-pill:hover {
    border-color: var(--portal-success);
    background: rgba(16, 185, 129, 0.05);
}

.strategy-pill.selected {
    border-color: var(--portal-success);
    background: var(--portal-success);
    color: #fff;
}

.strategy-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* No Goals Message */
.no-goals-message {
    text-align: center;
    padding: 48px 24px;
    background: var(--portal-glass-bg);
    border: 2px dashed var(--portal-border);
    border-radius: var(--portal-radius);
    color: var(--portal-text-muted);
}

.no-goals-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.no-goals-message p {
    margin: 0;
    font-size: 16px;
}

/* Page Intro Section (used for titles inside form boxes) */
.page-intro-section,
.goals-intro-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: var(--portal-radius);
    border: 1px solid rgba(99, 102, 241, 0.15);
    text-align: center;
}

.page-intro-section .section-title,
.goals-intro-section .section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--portal-text);
    line-height: 1.4;
}

/* Goal Header Content */
.goal-header-content {
    flex: 1;
    min-width: 0;
}

.goal-header-content .goal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 4px;
}

.goal-statement-preview {
    font-size: 14px;
    color: var(--portal-text-muted);
    line-height: 1.4;
}

/* Goal Narrative Section */
.goal-narrative-section {
    margin-bottom: 24px;
    padding-top: 16px;
}

.goal-narrative-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.goal-narrative-textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Label hint for requirements */
.section-label .label-hint {
    font-weight: 400;
    font-size: 13px;
    color: var(--portal-text-muted);
    margin-left: 4px;
}

/* Word count indicator */
.narrative-word-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--portal-text-muted);
}

.narrative-word-count .word-count-display {
    font-weight: 500;
}

.narrative-word-count .word-count-status {
    font-size: 12px;
}

.narrative-word-count.insufficient {
    color: var(--portal-danger);
}

.narrative-word-count.insufficient .word-count-status {
    color: var(--portal-danger);
}

.narrative-word-count.sufficient {
    color: var(--portal-success);
}

.narrative-word-count.sufficient .word-count-status {
    font-weight: 600;
}

/* Writing Guide */
.writing-guide {
    margin: 12px 0;
}

.toggle-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-primary);
    background: var(--portal-primary-light);
    border: none;
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-guide:hover {
    background: rgba(99, 102, 241, 0.25);
}

.toggle-guide .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.guide-content {
    margin-top: 12px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: var(--portal-radius-sm);
    border-left: 4px solid var(--portal-primary);
}

.guide-pattern {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--portal-text);
    line-height: 1.5;
}

.guide-pattern strong {
    display: block;
    margin-bottom: 4px;
    color: var(--portal-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-example {
    font-size: 14px;
    color: var(--portal-text-muted);
    line-height: 1.6;
}

.guide-example strong {
    display: block;
    margin-bottom: 4px;
    color: var(--portal-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-example em {
    display: block;
    font-style: normal;
    color: var(--portal-text);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--portal-border);
}

/* Subsection Titles */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-text);
    margin: 0 0 8px 0;
}

.subsection-title .dashicons {
    color: var(--portal-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.subsection-description {
    font-size: 14px;
    color: var(--portal-text-muted);
    margin: 0 0 16px 0;
}

/* Benchmarks Section */
.goal-benchmarks-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--portal-radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.benchmark-level-group {
    margin-bottom: 16px;
}

.benchmark-level-group:last-child {
    margin-bottom: 0;
}

.benchmark-level-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--portal-success);
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.benchmark-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criterion-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.criterion-checkbox-item:hover {
    border-color: var(--portal-success);
    background: rgba(16, 185, 129, 0.03);
}

.criterion-checkbox-item.selected {
    border-color: var(--portal-success);
    background: rgba(16, 185, 129, 0.08);
}

.criterion-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--portal-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.criterion-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--portal-text);
}

/* Support Strategies Section - matches benchmark styling */
.goal-staff-inputs-section,
.goal-support-strategies-section {
    padding: 16px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--portal-radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.staff-inputs-list,
.support-strategies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-input-item,
.support-strategy-item {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.staff-input-item:hover,
.support-strategy-item:hover {
    border-color: var(--portal-success);
}

.staff-input-item.selected,
.support-strategy-item.selected {
    border-color: var(--portal-success);
    background: rgba(16, 185, 129, 0.05);
}

.staff-input-checkbox,
.support-strategy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.staff-input-checkbox input[type="checkbox"],
.support-strategy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--portal-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.staff-input-header,
.support-strategy-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

/* Support strategy group container */
.support-strategy-group {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.support-strategy-group:last-child {
    margin-bottom: 0;
}

.staff-input-actions,
.support-strategy-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual checkable strategy items - matches criterion-checkbox-item */
.support-strategy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
}

.support-strategy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--portal-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.strategy-action-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--portal-text);
}

.staff-input-actions li,
.support-strategy-actions li {
    font-size: 14px;
    color: var(--portal-text-muted);
    padding: 4px 0;
    line-height: 1.4;
}

/* ========================================
   Preview Page Styles - Clean & Simple
   ======================================== */
.preview-section {
    background: none;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 24px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

/* Ensure content wrapper has edge padding */
.preview-content-wrapper {
    padding: 16px;
}

/* Summary context bar spacing */
.preview-content-wrapper .summary-context {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
}

.preview-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Preview Card - simple list item style */
.preview-card {
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-border);
}

.preview-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preview-card:first-child {
    padding-top: 0;
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

/* Activity name - simple bold text, not a fancy badge */
.preview-card-header .activity-badge {
    display: inline;
    padding: 0;
    background: none;
    color: #000;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
    text-transform: none;
}

/* Goal title - same simple style */
.preview-card-header .goal-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    flex: 1;
    line-height: 1.4;
}

.preview-card-header .edit-link {
    font-size: 13px;
    color: var(--portal-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.preview-card-header .edit-link:hover {
    text-decoration: underline;
}

/* Incomplete documentation flag for supervisors */
.activity-preview-card.has-incomplete-documentation {
    border-left: 4px solid #f59e0b;
}

.incomplete-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
}

.preview-card-body {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.preview-card-body p {
    margin: 0;
}

.preview-card-body .goal-stats {
    font-size: 13px;
    color: #333;
    margin: 0;
}

/* Preview pills for benefits/tags - simple inline text */
.preview-pills {
    display: inline;
    margin-top: 4px;
    font-size: 13px;
    color: #333;
}

.preview-pill {
    display: inline;
    padding: 0;
    background: none;
    color: #333;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
}

.preview-pill::after {
    content: ", ";
}

.preview-pill:last-child::after {
    content: "";
}

/* Activity Preview Card - Frost UI (Soft Glass) - Matches Goal Preview */
.activity-preview-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.activity-preview-card:last-child {
    margin-bottom: 0;
}

.activity-preview-card .preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 12px;
}

.activity-preview-card .activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.activity-narrative-preview {
    margin-bottom: 12px;
}

.activity-narrative-preview p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.activity-benefits-preview {
    margin-top: 12px;
}

.activity-benefits-preview strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.activity-benefits-preview .benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-benefits-preview .benefit-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #059669;
    transition: all 0.2s ease;
}

.activity-benefits-preview .benefit-tag:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.goal-preview-benchmarks {
    margin-top: 8px;
}

.goal-preview-benchmarks .benchmark-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--portal-success);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Goal Preview Card - Frost UI (Soft Glass) */
.goal-preview-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.goal-preview-card:last-child {
    margin-bottom: 0;
}

.goal-preview-card .preview-card-header {
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 16px;
}

.goal-preview-card .goal-header-info {
    flex: 1;
    min-width: 0;
}

.goal-preview-card .goal-area-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.goal-preview-card .goal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.goal-narrative-preview {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
}

.goal-narrative-preview strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--portal-primary);
    margin-bottom: 8px;
}

.goal-narrative-preview p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.benchmarks-preview,
.strategies-preview {
    margin-bottom: 16px;
}

.benchmarks-preview strong,
.strategies-preview strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 10px;
}

.benchmarks-preview strong::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--portal-success) 0%, #34d399 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
}

.strategies-preview strong::before {
    content: "⚡";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
}

.preview-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.preview-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.preview-checklist li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.preview-checklist li:last-child {
    margin-bottom: 0;
}

.preview-checklist .dashicons {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.preview-checklist .dashicons-yes-alt {
    color: var(--portal-success);
}

.preview-checklist .dashicons-admin-tools {
    color: var(--portal-primary);
}

.preview-checklist .benchmark-level,
.preview-checklist .strategy-context {
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}

.goal-stats.muted {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
    padding: 16px;
    text-align: center;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 10px;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.wizard-nav .prev-btn {
    flex: 0 0 auto;
}

.wizard-nav .next-btn,
.wizard-nav .submit-btn {
    flex: 1;
    max-width: 280px;
}

/* ========================================
   Responsive
   ========================================/ */
@media (max-width: 600px) {
    .peoplehub-staff-portal {
        padding: 12px;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-header h2 {
        font-size: 20px;
    }

    .portal-form {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .portal-btn {
        width: 100%;
    }

    .portal-context-bar {
        gap: 12px;
    }

    .context-item {
        flex: 1 1 45%;
    }
}

/* ==========================================================================
   Edit History Section
   ========================================================================== */
.edit-history-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(226, 232, 240, 0.6) 100%);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.edit-history-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-history-section h3::before {
    content: "📝";
}

.edit-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.edit-history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 14px;
}

.edit-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edit-who {
    font-weight: 600;
    color: #334155;
}

.edit-when {
    color: #64748b;
}

.edit-what {
    flex-basis: 100%;
    color: #475569;
    font-style: italic;
}

/* View Actions (Edit button) */
.view-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: flex-end;
}

.view-actions .portal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Activity & Goal View Cards (Report View Page)
   ========================================================================== */
.activity-view-card,
.goal-view-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.85) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-view-card:last-child,
.goal-view-card:last-child {
    margin-bottom: 0;
}

.activity-view-header,
.goal-view-header {
    margin-bottom: 12px;
}

.activity-view-header strong,
.goal-view-header strong {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.activity-view-content,
.goal-view-content {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    padding: 12px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
    margin-bottom: 12px;
}

.activity-view-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.activity-view-benefits .benefits-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.view-meta-item {
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

/* View section styling */
.view-section {
    margin-bottom: 24px;
}

.view-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.view-content {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.view-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.view-pill {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   Shift Report Organization System
   ======================================== */

/* Stats Bar */
.reports-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--portal-radius-sm);
    transition: background 0.2s ease;
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--portal-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-drafts .stat-number {
    color: var(--portal-warning);
}

.stat-submitted .stat-number {
    color: var(--portal-success);
}

/* Controls Bar (Search & Group Toggle) */
.reports-controls-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.reports-search-form {
    flex: 1;
    min-width: 200px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    transition: box-shadow 0.2s ease;
}

.search-input-wrap:focus-within {
    box-shadow: var(--portal-shadow-hover);
}

.search-input-wrap .dashicons {
    color: var(--portal-text-muted);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.search-input-wrap input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--portal-text);
    outline: none;
}

.search-input-wrap input[type="search"]::placeholder {
    color: var(--portal-text-muted);
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    color: var(--portal-text-muted);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--portal-danger-light);
    color: var(--portal-danger);
}

/* Group By Toggle */
.group-by-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-text-muted);
    white-space: nowrap;
}

.toggle-buttons {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-decoration: none;
    border-radius: var(--portal-radius-sm);
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    color: var(--portal-primary);
    background: var(--portal-primary-light);
}

.toggle-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.toggle-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Filter Bar */
.reports-filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--portal-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-text-muted);
    text-decoration: none;
    border-radius: var(--portal-radius-sm);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--portal-warning);
    border-radius: 9px;
}

.filter-dropdowns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 32px 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-text);
    background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--portal-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px var(--portal-primary-light);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--portal-radius-sm);
    margin-bottom: 16px;
}

.active-filters-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--portal-text-muted);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.15);
    border-radius: 20px;
}

.active-filter-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    color: var(--portal-primary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.active-filter-tag a:hover {
    background: var(--portal-primary);
    color: #fff;
}

.clear-all-filters {
    font-size: 12px;
    color: var(--portal-danger);
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s ease;
}

.clear-all-filters:hover {
    text-decoration: underline;
}

/* Date Range Inputs */
.date-range-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-range-wrap input[type="date"] {
    padding: 7px 10px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    font-size: 13px;
    background: var(--portal-card-bg);
    color: var(--portal-text);
    max-width: 150px;
}

.date-sep {
    color: var(--portal-text-muted);
    font-size: 14px;
}

/* Pagination Info */
.pagination-info {
    font-size: 13px;
    color: var(--portal-text-muted);
    padding: 0 8px;
    display: flex;
    align-items: center;
}

/* Small Button */
.portal-btn-small {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--portal-radius-sm);
    cursor: pointer;
    background: var(--portal-primary);
    color: #fff;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-btn-small:hover {
    opacity: 0.9;
}

/* Text/Ghost Button */
.portal-btn-text {
    background: transparent !important;
    color: var(--portal-text-muted) !important;
    border: 1px solid var(--portal-border) !important;
}

.portal-btn-text:hover {
    color: var(--portal-danger) !important;
    border-color: var(--portal-danger) !important;
}

/* Filter Badge Warning */
.filter-badge-warn {
    background: var(--portal-warning, #f59e0b);
    color: #fff;
}

/* Filter Revision Pill */
.filter-btn.filter-revision.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* Clickable Stats Bar */
.reports-stats-bar a.stat-item {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: var(--portal-radius-sm);
    padding: 12px 16px;
}

.reports-stats-bar a.stat-item:hover {
    border-color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.05);
}

.reports-stats-bar a.stat-item.active {
    border-color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.08);
}

.reports-stats-bar .stat-item.stat-revision .stat-number {
    color: #d97706;
}

.reports-stats-bar .stat-item.stat-reviewed .stat-number {
    color: #059669;
}

/* Drafts Banner */
.drafts-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--portal-radius);
    margin-bottom: 20px;
}

.drafts-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.drafts-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drafts-banner-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.drafts-banner-text span {
    font-size: 13px;
    color: #b45309;
}

.portal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-warning);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--portal-warning);
    border-radius: var(--portal-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.portal-btn-secondary:hover {
    color: #fff;
    background: var(--portal-warning);
}

/* Grouped Reports */
.portal-reports-grouped {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-group {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--portal-radius);
    overflow: hidden;
}

.report-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-group-header:hover {
    background: rgba(255, 255, 255, 0.95);
}

.group-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-chevron {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--portal-text-muted);
    transition: transform 0.3s ease;
}

.report-group.collapsed .group-chevron {
    transform: rotate(-90deg);
}

.group-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--portal-primary);
    border-radius: 12px;
}

.report-group-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.report-group.collapsed .report-group-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Status Colors for Report Cards */
.report-status.status-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.report-status.status-submitted {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.report-status.status-needs_revision {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.report-status.status-reviewed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.report-status.status-revision {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* ========================================
   Command Central
   ======================================== */
.portal-command-central {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.command-central-subtitle {
    margin: -6px 0 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
}

.command-central-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.command-central-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.command-central-stat-number {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #1f2937;
}

.command-central-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.command-central-draft-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(255, 251, 235, 0.92) 100%);
}

.command-central-draft-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.command-central-draft-text strong {
    font-size: 14px;
    color: #7c2d12;
}

.command-central-draft-text span {
    font-size: 12px;
    color: #92400e;
}

.command-central-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.command-central-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-central-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.14);
}

.command-central-card-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.command-central-card-icon {
    font-size: 24px;
    line-height: 1;
}

.command-central-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.command-central-card-meta {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 41, 55, 0.78);
}

.command-central-card-primary .command-central-card-meta {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Landing Page - Clean Hero Section
   ======================================== */
.portal-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    text-align: center;
}

.landing-hero {
    margin-bottom: 32px;
}

.landing-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.landing-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

/* Drafts Banner */
.landing-drafts-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f59e0b;
    margin-bottom: 32px;
}

.drafts-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.drafts-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.drafts-text strong {
    font-size: 15px;
    color: #1f2937;
}

.drafts-text span {
    font-size: 13px;
    color: #6b7280;
}

/* Action Buttons */
.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 32px;
}

.landing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.landing-btn-secondary {
    background: #fff;
    color: #374151;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.landing-btn-outline {
    padding: 10px 20px;
    font-size: 14px;
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    border-radius: 12px;
}

.landing-btn-outline:hover {
    background: #6366f1;
    color: #fff;
}

.landing-btn .btn-icon {
    font-size: 24px;
    line-height: 1;
}

.landing-btn .btn-text {
    line-height: 1;
}

/* Hint Text */
.landing-hint {
    max-width: 320px;
}

.landing-hint p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   Mobile Responsive - Clean Minimal Design
   Inspired by modern app aesthetics
   ======================================== */
@media (max-width: 768px) {

    /* Full-width background wrapper - apply to body or outer container */
    body.page-template-default,
    body.logged-in {
        background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%) !important;
        min-height: 100vh;
    }

    /* Base container - full width, no max-width constraint */
    .peoplehub-staff-portal {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px 24px 16px !important;
        margin: 0 !important;
        background: transparent !important;
        min-height: auto;
    }

    /* Portal content wrapper */
    .staff-portal-content {
        padding: 0;
    }

    /* Page title - large and bold like reference */
    .portal-header {
        padding: 16px 0;
        margin-bottom: 8px;
    }

    .portal-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        letter-spacing: -0.3px;
        margin-bottom: 12px;
    }

    /* New Report button */
    .portal-header-actions .portal-btn-primary {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* Stats Bar - Clean horizontal card */
    .reports-stats-bar {
        display: flex;
        gap: 0;
        padding: 20px 16px;
        margin-bottom: 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border: none;
    }

    .stat-item {
        flex: 1;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .stat-item+.stat-item {
        border-left: 1px solid #f3f4f6;
    }

    .stat-number {
        font-size: 32px;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 11px;
        font-weight: 500;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .command-central-subtitle {
        margin-top: -2px;
        margin-bottom: 8px;
        font-size: 14px;
        color: #374151;
    }

    .command-central-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .command-central-stat {
        padding: 12px;
        border-radius: 12px;
    }

    .command-central-stat-number {
        font-size: 24px;
    }

    .command-central-stat-label {
        font-size: 11px;
    }

    .command-central-draft-callout {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        border-radius: 12px;
    }

    .command-central-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .command-central-card {
        min-height: 0;
        padding: 14px;
        border-radius: 14px;
    }

    .command-central-card-title {
        font-size: 16px;
    }

    .command-central-card-meta {
        font-size: 13px;
    }

    /* Search Bar - Clean white input */
    .reports-controls-bar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .reports-search-form {
        min-width: 100%;
    }

    .search-input-wrap {
        padding: 14px 16px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border: 1px solid #f3f4f6;
    }

    .search-input-wrap input[type="search"] {
        font-size: 16px;
    }

    .search-input-wrap input[type="search"]::placeholder {
        color: #9ca3af;
    }

    /* Group By Toggle - Hidden label, horizontal pills */
    .group-by-toggle {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .toggle-label {
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .toggle-buttons {
        display: flex;
        gap: 8px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .toggle-buttons::-webkit-scrollbar {
        display: none;
    }

    .toggle-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 24px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        white-space: nowrap;
    }

    .toggle-btn:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .toggle-btn.active {
        color: #fff;
        background: #1f2937;
        border-color: #1f2937;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.25);
    }

    .toggle-btn .dashicons {
        display: none;
    }

    /* Filter Bar - Horizontal scrolling pills */
    .reports-filter-bar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .filter-group {
        display: flex;
        gap: 8px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        white-space: nowrap;
    }

    .filter-btn:hover {
        background: #f9fafb;
    }

    .filter-btn.active {
        color: #fff;
        background: #6366f1;
        border-color: #6366f1;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }

    .filter-badge {
        margin-left: 4px;
        padding: 2px 6px;
        background: #fbbf24;
        border-radius: 10px;
    }

    .filter-dropdowns {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .filter-select {
        width: auto;
        min-width: 200px;
        max-width: 280px;
        padding: 14px 40px 14px 16px;
        font-size: 15px;
        background-color: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Active Filters - Subtle pills */
    .active-filters {
        padding: 10px 14px;
        background: rgba(99, 102, 241, 0.06);
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .active-filter-tag {
        padding: 5px 12px;
        font-size: 13px;
        background: #fff;
        border: 1px solid #e5e7eb;
    }

    /* Drafts Banner - Clean card */
    .drafts-banner {
        flex-direction: row;
        align-items: center;
        padding: 16px;
        background: #fff;
        border: 1px solid #fde68a;
        border-radius: 16px;
        gap: 12px;
        margin-bottom: 16px;
    }

    .drafts-banner-icon {
        font-size: 24px;
    }

    .drafts-banner-text {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }

    .drafts-banner-text strong {
        font-size: 14px;
        color: #1f2937;
    }

    .drafts-banner-text span {
        font-size: 12px;
        color: #6b7280;
    }

    .portal-btn-secondary {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Report Groups - Clean cards */
    .portal-reports-grouped {
        gap: 12px;
    }

    .report-group {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .report-group-header {
        padding: 16px;
        background: transparent;
        backdrop-filter: none;
    }

    .group-header-left {
        gap: 10px;
    }

    .group-chevron {
        font-size: 14px;
        width: 14px;
        height: 14px;
        color: #9ca3af;
    }

    .group-title {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
    }

    .group-count {
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        font-size: 11px;
        background: #f3f4f6;
        color: #6b7280;
    }

    .report-group-content {
        padding: 0 12px 12px;
        gap: 8px;
    }

    /* Report Cards - Clean minimal cards */
    .report-card {
        padding: 14px;
        background: #f9fafb;
        border-radius: 12px;
        border: none;
        box-shadow: none;
    }

    .report-card:hover {
        background: #f3f4f6;
        transform: none;
        box-shadow: none;
    }

    .report-card-header {
        margin-bottom: 8px;
    }

    .report-date {
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
    }

    .report-status {
        padding: 4px 10px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .report-client {
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }

    .report-program,
    .report-shift {
        font-size: 13px;
        color: #6b7280;
    }

    .report-card-footer {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }

    .action-hint {
        font-size: 12px;
        color: #9ca3af;
    }

    /* Empty State */
    .portal-empty {
        padding: 40px 24px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .portal-empty h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
    }

    .portal-empty p {
        font-size: 14px;
        color: #6b7280;
    }
}

/* ========================================
   AI Benchmark Analysis Section
   ======================================== */

.ai-analysis-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--portal-radius);
}

.ai-analysis-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--portal-primary);
}

.ai-analysis-section h3 .section-icon {
    font-size: 24px;
}

/* Loading State */
.ai-analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 16px;
    text-align: center;
}

.ai-analysis-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--portal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-analysis-loading p {
    margin: 0;
    font-size: 15px;
    color: var(--portal-text-muted);
}

/* Results Container */
.ai-analysis-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Summary Message */
.ai-summary-message {
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--portal-radius-sm);
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}

.ai-summary-header .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: #fff;
    background: var(--portal-success);
    border-radius: 50%;
}

.ai-summary-header .info-icon {
    font-size: 20px;
}

.ai-summary-message p {
    margin: 0;
    font-size: 14px;
    color: var(--portal-text);
    line-height: 1.5;
}

/* Detected Goals */
.detected-benchmarks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detected-goal-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--portal-radius-sm);
    border-left: 4px solid var(--portal-primary);
}

.detected-goal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.detected-goal-header .goal-icon {
    font-size: 18px;
}

/* Detected Benchmarks List */
.detected-benchmarks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detected-benchmark {
    padding: 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.detected-benchmark.confidence-high {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.detected-benchmark.confidence-medium {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.detected-benchmark.confidence-low {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.2);
}

.benchmark-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 4px;
}

.benchmark-expectation {
    font-size: 13px;
    color: var(--portal-text-muted);
    margin-bottom: 8px;
}

/* Matched Criteria */
.matched-criteria {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matched-criteria li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--portal-text);
    line-height: 1.4;
}

.matched-criteria li::before {
    content: "✓";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    color: #fff;
    background: var(--portal-success);
    border-radius: 50%;
    margin-top: 1px;
}

/* No Detections Message */
.no-detections-message {
    padding: 16px;
    text-align: center;
}

.no-detections-message p {
    margin: 0;
    font-size: 14px;
    color: var(--portal-text-muted);
}

/* Error State */
.ai-analysis-error {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--portal-radius-sm);
}

.ai-analysis-error .error-message {
    margin: 0;
    font-size: 14px;
    color: var(--portal-danger);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .ai-analysis-section {
        padding: 16px;
    }

    .ai-analysis-section h3 {
        font-size: 16px;
    }

    .detected-goal-card {
        padding: 12px;
    }

    .detected-benchmark {
        padding: 10px;
    }
}

/* ========================================
   Benchmark Guidance Section (Goals Page)
   ======================================== */

.benchmark-guidance-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--portal-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.benchmark-guidance-section .guidance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--portal-primary);
}

.benchmark-guidance-section .guidance-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--portal-warning);
}

.benchmark-guide-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--portal-text);
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236b7280" d="M6 8L1 3h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.benchmark-guide-dropdown:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.benchmark-details-panel {
    margin-top: 12px;
}

.benchmark-detail {
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--portal-radius-sm);
    border-left: 4px solid var(--portal-primary);
}

.benchmark-detail .benchmark-header {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--portal-text);
}

.benchmark-detail .benchmark-expectation {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    font-size: 14px;
    color: var(--portal-text);
    line-height: 1.5;
}

.benchmark-detail .benchmark-expectation .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.benchmark-detail .benchmark-criteria {
    font-size: 14px;
    color: var(--portal-text);
}

.benchmark-detail .benchmark-criteria .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.benchmark-detail .benchmark-criteria ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benchmark-detail .benchmark-criteria li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    line-height: 1.4;
}

.benchmark-detail .benchmark-criteria li::before {
    content: "✓";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: #fff;
    background: var(--portal-success);
    border-radius: 50%;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .benchmark-guidance-section {
        padding: 12px;
    }

    .benchmark-guide-dropdown {
        font-size: 14px;
        padding: 10px 14px;
    }

    .benchmark-detail {
        padding: 12px;
    }
}

/* ========================================
   Goal Reminder & Quality Feedback Cards
   ======================================== */

.goal-reminder-card {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--portal-radius-sm);
    border-left: 4px solid var(--portal-warning);
}

.goal-reminder-card .reminder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #b45309;
}

.goal-reminder-card .reminder-header .reminder-icon {
    font-size: 20px;
}

.goal-reminder-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--portal-text);
}

/* Quality Feedback Card */
.quality-feedback-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--portal-radius-sm);
}

.quality-feedback-card.quality-good {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--portal-success);
}

.quality-feedback-card.quality-improve {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--portal-primary);
}

.quality-feedback-card .quality-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--portal-text);
}

.quality-feedback-card .quality-icon {
    font-size: 18px;
}

.quality-feedback-card .quality-message {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--portal-text);
}

.quality-feedback-card .quality-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-feedback-card .quality-suggestions li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--portal-text);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.quality-feedback-card .quality-suggestions li::before {
    content: "→";
    flex-shrink: 0;
    color: var(--portal-primary);
    font-weight: 600;
}

.quality-feedback-card.quality-good .quality-suggestions li::before {
    content: "✓";
    color: var(--portal-success);
}

/* Quality feedback sections */
.quality-feedback-card .quality-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quality-feedback-card .quality-section strong {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--portal-text);
}

.quality-feedback-card .missing-section {
    background: rgba(255, 152, 0, 0.08);
    margin: 12px -14px -14px -14px;
    padding: 12px 14px;
    border-radius: 0 0 10px 10px;
}

.quality-feedback-card .quality-missing {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-feedback-card .quality-missing li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #e65100;
}

.quality-feedback-card .quality-missing li::before {
    content: "•";
    color: #e65100;
    font-weight: 700;
}

.quality-feedback-card .quality-strengths {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-feedback-card .quality-strengths li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--portal-success);
}

.quality-feedback-card .quality-strengths li::before {
    content: "✓";
    color: var(--portal-success);
    font-weight: 600;
}

/* Quality issues with quotes */
.quality-feedback-card .quality-issues {
    margin-top: 12px;
}

.quality-feedback-card .issue-item {
    background: rgba(255, 152, 0, 0.06);
    border-left: 3px solid #ff9800;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.quality-feedback-card .issue-quote {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.quality-feedback-card .issue-quote em {
    color: #e65100;
    font-style: normal;
    font-weight: 500;
}

.quality-feedback-card .issue-problem {
    font-size: 13px;
    color: #bf360c;
    margin-bottom: 6px;
}

.quality-feedback-card .issue-tip {
    font-size: 13px;
    color: var(--portal-primary);
    background: rgba(157, 86, 247, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 8px;
}

/* Tip wrapper for Apply button layout */
.quality-feedback-card .issue-tip-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quality-feedback-card .issue-tip-wrapper .issue-tip {
    flex: 1;
    margin-top: 0;
}

/* Apply Rewrite Button */
.apply-rewrite-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-success) 0%, #059669 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.apply-rewrite-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.apply-rewrite-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Applied state */
.apply-rewrite-btn.applied {
    background: var(--portal-success);
    cursor: default;
}

.issue-item.rewrite-applied {
    opacity: 0.8;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin: -10px;
}

.issue-item.rewrite-applied .issue-quote em {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Reminders section */
.quality-feedback-card .reminders-section {
    background: rgba(33, 150, 243, 0.06);
    margin: 12px -14px -14px -14px;
    padding: 12px 14px;
    border-radius: 0 0 10px 10px;
}

.quality-feedback-card .quality-reminders {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-feedback-card .quality-reminders li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #0d47a1;
}

.quality-feedback-card .quality-reminders li::before {
    content: "•";
    color: #2196f3;
    font-weight: 700;
}

/* Mobile Responsive for new cards */
@media (max-width: 600px) {

    .goal-reminder-card,
    .quality-feedback-card {
        padding: 12px;
    }

    .goal-reminder-card .reminder-header,
    .quality-feedback-card .quality-header {
        font-size: 14px;
    }
}

/* ========================================
   AI Analysis Timestamp Badge
   ======================================== */

.ai-analysis-timestamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(34, 197, 94, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #059669;
}

.ai-analysis-timestamp .timestamp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--portal-success);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
}

.ai-analysis-timestamp .timestamp-text {
    color: #047857;
}

/* ========================================
   Custom Confirmation Modal
   Replaces native confirm() for better mobile support
   ======================================== */

.portal-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portal-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.portal-confirm-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    background: #fff;
    border-radius: var(--portal-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: portal-modal-appear 0.2s ease-out;
}

@keyframes portal-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.portal-confirm-message {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--portal-text);
    line-height: 1.5;
    text-align: center;
}

.portal-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.portal-confirm-actions .portal-btn {
    flex: 1;
    max-width: 150px;
}

/* Prevent background scroll when modal is open */
body.portal-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mobile responsive modal */
@media (max-width: 600px) {
    .portal-confirm-modal {
        padding: 16px;
    }

    .portal-confirm-dialog {
        padding: 20px;
    }

    .portal-confirm-message {
        font-size: 15px;
    }

    .portal-confirm-actions {
        flex-direction: column;
    }

    .portal-confirm-actions .portal-btn {
        max-width: none;
    }
}

/* ========================================
   Inline AI Analysis
   ======================================== */
.inline-analysis-wrapper {
    margin-top: 12px;
}

.analysis-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: approvalPop 0.3s ease-out;
}

.approval-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@keyframes approvalPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Disabled navigation button state */
.portal-btn.btn-disabled,
.portal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Waiting for approval button state */
.portal-btn.btn-waiting {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    opacity: 0.85;
}

.portal-btn.btn-waiting .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.analyze-narrative-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analyze-narrative-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.analyze-narrative-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.analyze-narrative-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.analyze-narrative-btn .dashicons.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.inline-analysis-result {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.analysis-quality-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 12px;
}

.analysis-quality-banner .quality-icon {
    font-size: 18px;
}

.analysis-quality-banner.quality-good {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.analysis-quality-banner.quality-needs-improvement {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.analysis-quality-banner.quality-needs-content {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.analysis-quality-banner.quality-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.analysis-issues {
    margin: 0 0 12px 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
}

.analysis-issues li {
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 6px;
}

.analysis-issues .strength-item {
    color: #166534;
    background: #dcfce7;
}

.analysis-issues .issue-item {
    color: #92400e;
    background: #fef3c7;
}

.analysis-issues .coaching-tip {
    color: #1e40af;
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
    margin-top: 12px;
    padding: 10px 12px;
}

/* 3-Tier Quality Banner Styles */
.analysis-quality-banner.quality-could-be-stronger {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

/* Element Checklist Styles */
.element-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.element-item.element-good {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.element-item.element-good .element-icon {
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
}

.element-item.element-needs-work {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.element-item.element-needs-work .element-icon {
    color: #d97706;
    font-weight: 500;
}

/* 3-Tier Rating System: STRONG (best) */
.element-item.element-strong {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #166534;
    border: 2px solid #22c55e;
}

.element-item.element-strong .element-icon {
    color: #15803d;
    font-weight: 700;
    font-size: 16px;
}

/* 3-Tier Rating System: ACCEPTABLE (meets minimum) */
.element-item.element-acceptable {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.element-item.element-acceptable .element-icon {
    color: #16a34a;
    font-weight: 600;
    font-size: 15px;
}

/* 3-Tier Rating System: NOT_ACCEPTABLE (must fix) */
.element-item.element-not-acceptable {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

.element-item.element-not-acceptable .element-icon {
    color: #dc2626;
    font-weight: 500;
}

/* Element content layout with label and quote */
.element-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.element-label {
    font-weight: 600;
    font-size: 13px;
}

.element-quote {
    font-size: 14px;
    line-height: 1.4;
}

/* Coaching suggestion per element */
.element-coaching {
    font-size: 12px;
    color: #1e40af;
    font-style: italic;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.element-strong .element-quote,
.element-acceptable .element-quote,
.element-good .element-quote {
    color: #15803d;
    font-style: normal;
}

.element-not-acceptable .element-quote,
.element-needs-work .element-quote {
    color: #dc2626;
    font-style: italic;
}

/* No-work acknowledgment checkbox */
.no-work-confirmation {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    border: 1px solid #f59e0b;
}

.no-work-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.no-work-checkbox {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #f59e0b;
}

.suggested-rewrite-container {
    margin-top: 12px;
}

.suggested-rewrite-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.suggested-rewrite-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #c7d2fe;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.suggested-rewrite-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Read-only example display (replaces editable textarea) */
.example-text-display {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #7dd3fc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #0369a1;
    font-style: italic;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.example-text-display::before {
    content: "📝 ";
}

.example-container .suggested-rewrite-label {
    color: #0369a1;
    font-weight: 600;
}

.analysis-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.analysis-actions .portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
}

.analysis-actions .portal-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.apply-inline-rewrite-btn.applied {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

/* Mobile adjustments for inline analysis */
@media (max-width: 600px) {
    .inline-analysis-result {
        padding: 12px;
    }

    .analysis-quality-banner {
        padding: 8px 12px;
        font-size: 14px;
    }

    .analysis-actions {
        flex-direction: column;
    }

    .analysis-actions .portal-btn {
        justify-content: center;
    }
}

/* ========================================
   Submission Celebration / Fireworks
   ======================================== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(75, 0, 130, 0.9) 50%, rgba(30, 27, 75, 0.95) 100%);
    animation: celebrationFadeIn 0.5s ease-out;
}

@keyframes celebrationFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.celebration-overlay #fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.celebration-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    animation: celebrationBounce 0.6s ease-out;
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: emojiWiggle 0.5s ease-in-out infinite alternate;
}

@keyframes emojiWiggle {
    from {
        transform: rotate(-10deg) scale(1);
    }

    to {
        transform: rotate(10deg) scale(1.1);
    }
}

.celebration-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: titlePulse 1s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.celebration-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .celebration-emoji {
        font-size: 60px;
    }

    .celebration-title {
        font-size: 28px;
    }

    .celebration-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   Client Not at Work Checkbox
   ======================================== */
.client-not-at-work-section {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--portal-radius);
}

.not-at-work-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.not-at-work-checkbox-label input[type="checkbox"] {
    display: none;
}

.not-at-work-checkbox-label .checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--portal-warning);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.not-at-work-checkbox-label .checkbox-custom::after {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--portal-warning);
    border-radius: 3px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.15s ease;
}

.not-at-work-checkbox-label.checked .checkbox-custom::after,
.not-at-work-checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.not-at-work-checkbox-label .checkbox-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.not-at-work-hint {
    margin: 8px 0 0 36px;
    font-size: 13px;
    color: var(--portal-text-muted);
}

/* Container transition */
.activities-container {
    transition: opacity 0.2s ease;
}

/* ========================================
   Client Not at Work Preview Notice
   ======================================== */
.not-at-work-notice {
    padding: 0;
}

.not-at-work-notice .notice-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--portal-radius);
}

.not-at-work-notice .notice-banner .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--portal-warning);
    flex-shrink: 0;
}

.not-at-work-notice .notice-banner span:last-child {
    font-size: 15px;
    font-weight: 500;
    color: #92400e;
}

/* Notice info styling fallback */
.notice-banner.notice-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.notice-banner.notice-info .dashicons {
    color: var(--portal-primary);
}

.notice-banner.notice-info span:last-child {
    color: #1e40af;
}

/* ========================================
   Unified Staff Schedule (List View)
   ======================================== */
.staff-schedule-unified {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--portal-text);
}

.schedule-shift-count {
    font-size: 14px;
    color: var(--portal-text-muted);
}

.schedule-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 8px;
    border-radius: var(--portal-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.schedule-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--portal-text-muted);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.schedule-nav-btn:hover {
    color: var(--portal-primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-month-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--portal-text);
    min-width: 120px;
    text-align: center;
}

/* Empty State */
.schedule-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--portal-radius);
    border: 2px dashed rgba(148, 163, 184, 0.2);
}

.schedule-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.schedule-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--portal-text);
}

.schedule-empty-state p {
    margin: 0;
    font-size: 14px;
    color: var(--portal-text-muted);
}

/* Shifts List */
.schedule-shifts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-day-group {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.schedule-day-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow);
}

.schedule-day-group.is-today {
    border: 2px solid var(--portal-primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.schedule-day-group.is-past {
    filter: grayscale(1);
    opacity: 0.7;
}

.schedule-day-group.is-past:hover {
    filter: grayscale(0.5);
    opacity: 0.9;
}

.schedule-day-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.schedule-day-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-day-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--portal-text);
}

.schedule-today-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--portal-primary);
    border-radius: 10px;
}

.schedule-day-shifts {
    padding: 4px 0;
}

.schedule-shift-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.shift-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    flex-shrink: 0;
}

.schedule-shift-item.program-residential .shift-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--portal-primary);
}

.schedule-shift-item.program-respite .shift-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--portal-warning);
}

.schedule-shift-item.program-day .shift-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--portal-success);
}

.shift-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.shift-location {
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text);
}

.shift-program-type {
    font-size: 12px;
    color: var(--portal-text-muted);
    font-weight: 500;
}

.shift-time-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shift-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-text-muted);
    text-transform: uppercase;
}

.shift-time {
    font-size: 15px;
    font-weight: 500;
    color: var(--portal-text);
    font-variant-numeric: tabular-nums;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .schedule-header-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .schedule-header-main {
        text-align: center;
    }

    .schedule-nav-controls {
        justify-content: space-between;
    }

    .schedule-shift-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shift-time-info {
        width: 100%;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid rgba(226, 232, 240, 0.6);
    }

    .shift-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ========================================
   Calendar View Styles
   ======================================== */
.staff-schedule-calendar {
    background: #fff;
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--portal-border);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--portal-bg-static);
    border-bottom: 1px solid var(--portal-border);
}

.calendar-day-name {
    padding: 12px 4px;
    text-align: center;
    font-weight: 600;
    color: var(--portal-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--portal-border);
    /* Creates grid lines via gap */
    gap: 1px;
    background-color: rgba(148, 163, 184, 0.2);
}

.calendar-day {
    background: #fff;
    min-height: 120px;
    padding: 8px;
    position: relative;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day-empty {
    background: #f9fafb;
}

.calendar-day-today {
    background: #f0f9ff;
}

.calendar-day-today .calendar-day-number {
    color: var(--portal-primary);
    background: rgba(99, 102, 241, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-day-number {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--portal-text-muted);
    font-size: 0.9rem;
}

/* Agency Lines (top-of-day, distinct from shift cards) */
.calendar-agency-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-agency-line {
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: 600;
    border-left: 3px solid transparent;
    background: #f1f5f9;
    color: #0f172a;
}

.calendar-agency-line .calendar-agency-time {
    font-weight: 700;
    margin-right: 4px;
}

.calendar-agency-line.agency-birthday {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.calendar-agency-line.agency-appointment {
    background: #e0f2fe;
    border-left-color: #0284c7;
    color: #075985;
}

.calendar-agency-line.agency-day_off {
    background: #dcfce7;
    border-left-color: #16a34a;
    color: #166534;
}

.calendar-agency-line.agency-general {
    background: #ede9fe;
    border-left-color: #7c3aed;
    color: #5b21b6;
}

/* Shift Cards in Calendar */
.calendar-shifts-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-shift {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    border-left: 3px solid transparent;
    background: #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease;
}

.calendar-shift:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Shift Colors by Program */
.calendar-shift.program-residential {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.calendar-shift.program-day {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.calendar-shift.program-respite {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.calendar-shift.program-on_call {
    background: #f3e8ff;
    border-left-color: #9333ea;
    color: #581c87;
}

.calendar-shift-time {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.calendar-shift-name {
    display: block;
    line-height: 1.3;
}

.calendar-shift-location {
    display: block;
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .calendar-header {
        display: none;
    }

    .calendar-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: none;
        background: transparent;
    }

    .calendar-day {
        min-height: auto;
        border-bottom: 1px solid var(--portal-border);
        padding: 16px;
        display: flex;
        gap: 16px;
    }

    .calendar-day-empty {
        display: none;
    }

    /* Show every day in the selected month, even without shifts */
    .calendar-day:not(.has-shifts):not(.calendar-day-today) {
        display: flex;
    }

    .calendar-day:not(.has-shifts) {
        background: #fff;
    }

    .calendar-day:not(.has-shifts)::after {
        content: "No shifts";
        margin-left: auto;
        font-size: 0.82rem;
        color: var(--portal-text-muted);
        opacity: 0.75;
        align-self: center;
    }

    .calendar-day.has-agency-events:not(.has-shifts)::after {
        display: none;
        content: "";
    }

    .calendar-day-number {
        font-size: 1.1rem;
        min-width: 40px;
    }

    .calendar-shifts-container {
        flex: 1;
    }

    .calendar-shift {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Wizard Step: Goal Tracking
   ======================================== */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-card {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.goal-card:hover {
    box-shadow: var(--portal-shadow);
    transform: translateY(-1px);
}

.goal-card.expanded-on-check:has(.goal-trigger-checkbox:checked) {
    border-color: var(--portal-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.goal-header {
    margin: 0;
    padding: 0;
    background: #fff;
}

.goal-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    font-weight: 600;
    color: var(--portal-text);
    transition: background 0.2s;
}

.goal-checkbox-card:hover {
    background: var(--portal-bg-static);
}

.goal-trigger-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    accent-color: var(--portal-primary);
}

.goal-title-text {
    flex: 1;
    font-size: 1.05em;
}

.goal-details {
    padding: 0 20px 20px 20px;
    background: #fafafa;
    border-top: 1px solid var(--portal-border);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.goal-subsection:first-child {
    border-top: none;
}

.goal-subsection h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--portal-text-muted);
    letter-spacing: 0.5px;
}

.benchmark-option,
.strategy-option {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.2s;
}

.benchmark-option:hover,
.strategy-option:hover {
    border-color: var(--portal-primary-light);
    background: #f8fafc;
}

.benchmark-option:has(:checked),
.strategy-option:has(:checked) {
    background: var(--portal-primary-light);
    border-color: var(--portal-primary);
    color: var(--portal-primary-hover);
}

.goal-narrative-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.goal-narrative-input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px var(--portal-primary-light);
}

.ai-preview-area textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    margin-bottom: 10px;
}

.approve-narrative-btn {
    accent-color: var(--portal-success);
    margin-right: 8px;
}

/* ==========================================================================
   Shift Wizard V2 - iOS-inspired scoped refresh
   ========================================================================== */
.peoplehub-staff-portal .shift-wizard-v2 {
    --wizard-v2-surface: #f4f4f8;
    --wizard-v2-card: #ffffff;
    --wizard-v2-muted: #cbccd3;
    --wizard-v2-muted-2: #8b8e97;
    --wizard-v2-text: #14161a;
    --wizard-v2-accent: #ff7f50;
    --wizard-v2-accent-strong: #f9733f;
    --wizard-v2-success: #37c36a;
    --wizard-v2-border: rgba(20, 22, 26, 0.08);
    --wizard-v2-shadow: 0 10px 28px rgba(20, 22, 26, 0.08);
    --wizard-v2-radius: 20px;
    --wizard-v2-radius-sm: 14px;
    --wizard-v2-speed: 180ms;
    color: var(--wizard-v2-text);
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-header {
    margin-bottom: 16px;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-header h2 {
    color: #1b4e46;
    text-shadow: none;
    font-size: 38px;
    letter-spacing: -0.02em;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 127, 80, 0.25);
    background: rgba(255, 255, 255, 0.75);
    color: var(--wizard-v2-accent-strong);
    font-weight: 600;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-back:hover {
    background: #fff;
    border-color: rgba(255, 127, 80, 0.4);
}

.peoplehub-staff-portal .shift-wizard-v2 .wizard-progress {
    padding: 20px 18px;
    border-radius: var(--wizard-v2-radius);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--wizard-v2-shadow);
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step .step-number {
    width: 40px;
    height: 40px;
    border: 0;
    background: #d4d5dc;
    color: #666b76;
    box-shadow: none;
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step.active .step-number {
    background: var(--wizard-v2-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 127, 80, 0.35);
    transform: none;
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step.completed .step-number {
    background: var(--wizard-v2-success);
    color: #fff;
    box-shadow: 0 6px 16px rgba(55, 195, 106, 0.28);
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step .step-label {
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #7c7f88;
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step.active .step-label {
    color: var(--wizard-v2-accent-strong);
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-step.completed .step-label {
    color: #2ea85d;
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-line {
    height: 3px;
    margin-bottom: 22px;
    max-width: 96px;
    background: #d9dae1;
}

.peoplehub-staff-portal .shift-wizard-v2 .progress-line.completed {
    background: #5ccd86;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-context-bar,
.peoplehub-staff-portal .shift-wizard-v2 .portal-form,
.peoplehub-staff-portal .shift-wizard-v2 .preview-content-wrapper.portal-form {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--wizard-v2-shadow);
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-form {
    border-radius: 24px;
    padding: 28px;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-form .form-section {
    margin-bottom: 16px;
    padding: 18px 18px 16px;
    background: var(--wizard-v2-card);
    border: 1px solid var(--wizard-v2-border);
    border-radius: var(--wizard-v2-radius);
    box-shadow: 0 3px 10px rgba(20, 22, 26, 0.05);
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-form .form-section:last-of-type {
    margin-bottom: 0;
}

.peoplehub-staff-portal .shift-wizard-v2 .page-intro-section,
.peoplehub-staff-portal .shift-wizard-v2 .goals-intro-section,
.peoplehub-staff-portal .shift-wizard-v2 .activity-badge-display {
    background: rgba(255, 127, 80, 0.13);
    border: 1px solid rgba(255, 127, 80, 0.24);
}

.peoplehub-staff-portal .shift-wizard-v2 .page-intro-section .section-title,
.peoplehub-staff-portal .shift-wizard-v2 .goals-intro-section .section-title {
    color: #2f3239;
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-badge {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 30px;
    font-weight: 700;
    color: var(--wizard-v2-accent-strong);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    text-transform: none;
}

.peoplehub-staff-portal .shift-wizard-v2 .section-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--wizard-v2-text);
}

.peoplehub-staff-portal .shift-wizard-v2 .section-description {
    color: #7e8189;
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-search-container {
    position: relative;
    margin-bottom: 20px;
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-search-input {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px 12px 42px !important;
    line-height: 1.25;
    border: 1px solid #dbdde5;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-search-input:focus {
    border-color: rgba(255, 127, 80, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-search-input::placeholder {
    color: #8a8e98;
}

.peoplehub-staff-portal .shift-wizard-v2 .activity-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    color: #8a8e98;
    pointer-events: none;
    z-index: 2;
}

.peoplehub-staff-portal .shift-wizard-v2 .form-textarea,
.peoplehub-staff-portal .shift-wizard-v2 .goal-narrative-textarea,
.peoplehub-staff-portal .shift-wizard-v2 #benefits_fallback_text {
    border: 1px solid #dbdde5;
    border-radius: 14px;
    background: #fff;
}

.peoplehub-staff-portal .shift-wizard-v2 .form-textarea:focus,
.peoplehub-staff-portal .shift-wizard-v2 .goal-narrative-textarea:focus,
.peoplehub-staff-portal .shift-wizard-v2 #benefits_fallback_text:focus {
    border-color: rgba(255, 127, 80, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
}

/* Segmented experience toggle */
.peoplehub-staff-portal .shift-wizard-v2 .experience-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    border-radius: 16px;
    border: 1px solid #d8dae2;
    background: #ececf1;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option {
    position: relative;
    margin: 0;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0.001;
    margin: 0;
    cursor: pointer;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 60px;
    padding: 0 12px;
    border-radius: 13px;
    color: #1f232b;
    font-size: 17px;
    font-weight: 700;
    transition: background var(--wizard-v2-speed) ease, color var(--wizard-v2-speed) ease, box-shadow var(--wizard-v2-speed) ease;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-icon {
    font-size: 20px;
    line-height: 1;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option input[type="radio"]:checked+.experience-box {
    background: var(--wizard-v2-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 127, 80, 0.34);
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option input[type="radio"]:focus-visible+.experience-box {
    outline: 3px solid rgba(255, 127, 80, 0.45);
    outline-offset: 2px;
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option:hover .experience-box {
    background: rgba(255, 127, 80, 0.08);
}

.peoplehub-staff-portal .shift-wizard-v2 .experience-option input[type="radio"]:checked:hover+.experience-box {
    background: var(--wizard-v2-accent-strong);
}

.peoplehub-staff-portal .shift-wizard-v2 .benefits-section,
.peoplehub-staff-portal .shift-wizard-v2 .goals-readonly-section,
.peoplehub-staff-portal .shift-wizard-v2 .preview-section {
    border-radius: var(--wizard-v2-radius);
    border: 1px solid var(--wizard-v2-border);
    background: #fff;
    padding: 20px 16px;
    margin-bottom: 24px;
}

.peoplehub-staff-portal .shift-wizard-v2 .benefit-pill {
    border-width: 1px;
    border-color: rgba(255, 127, 80, 0.5);
    background: #fffaf8;
    color: var(--wizard-v2-accent-strong);
    border-radius: 999px;
}

.peoplehub-staff-portal .shift-wizard-v2 .benefit-pill:hover {
    border-color: var(--wizard-v2-accent);
    background: rgba(255, 127, 80, 0.14);
}

.peoplehub-staff-portal .shift-wizard-v2 .benefit-pill.selected {
    color: #fff;
    border-color: var(--wizard-v2-accent);
    background: var(--wizard-v2-accent);
    box-shadow: 0 4px 16px rgba(255, 127, 80, 0.35);
}

.peoplehub-staff-portal .shift-wizard-v2 .benefit-tag {
    background: rgba(255, 127, 80, 0.16);
    color: var(--wizard-v2-accent-strong);
    border: 1px solid rgba(255, 127, 80, 0.28);
}

.peoplehub-staff-portal .shift-wizard-v2 .goal-card,
.peoplehub-staff-portal .shift-wizard-v2 .preview-card {
    border: 1px solid #e4e6ee;
    box-shadow: none;
    border-radius: 14px;
}

.peoplehub-staff-portal .shift-wizard-v2 .wizard-actions {
    margin-top: 26px;
    gap: 10px;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-btn.portal-btn-primary {
    background: var(--wizard-v2-accent);
    box-shadow: 0 8px 22px rgba(255, 127, 80, 0.33);
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-btn.portal-btn-primary:hover {
    background: var(--wizard-v2-accent-strong);
    box-shadow: 0 10px 24px rgba(255, 127, 80, 0.4);
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-btn.portal-btn-secondary {
    background: #fff;
    border-color: #d6d8e1;
    color: #4a4f59;
    box-shadow: none;
}

.peoplehub-staff-portal .shift-wizard-v2 .portal-btn.portal-btn-secondary:hover {
    border-color: var(--wizard-v2-accent);
    color: var(--wizard-v2-accent-strong);
}

@media (max-width: 768px) {
    .peoplehub-staff-portal .shift-wizard-v2 .portal-header h2 {
        font-size: 32px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .wizard-progress {
        padding: 14px 12px;
        gap: 6px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .progress-step {
        min-width: 58px;
        gap: 6px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .progress-step .step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .progress-step .step-label {
        font-size: 10px;
    }
}

@media (max-width: 600px) {

    .peoplehub-staff-portal .shift-wizard-v2 .portal-form,
    .peoplehub-staff-portal .shift-wizard-v2 .preview-content-wrapper.portal-form {
        padding: 16px;
        border-radius: 18px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .portal-form .form-section {
        padding: 14px 14px 12px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .experience-box {
        min-height: 54px;
        font-size: 16px;
        gap: 6px;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .experience-label {
        font-size: 0.95em;
    }

    .peoplehub-staff-portal .shift-wizard-v2 .wizard-actions .portal-btn {
        width: 100%;
        max-width: none;
    }
}

/* ========================================
   Mobile Visual Refresh (Portal Pages)
   ======================================== */
@media (max-width: 768px) {

    body.page-template-default,
    body.logged-in {
        background-color: #e9ecf3 !important;
        background-image:
            radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 38%),
            radial-gradient(circle at 88% 6%, rgba(214, 220, 232, 0.55) 0%, rgba(214, 220, 232, 0) 34%),
            linear-gradient(160deg, #edf0f6 0%, #e6eaf2 48%, #dde2ec 100%) !important;
    }

    .peoplehub-staff-portal {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 14px 28px !important;
        font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    }

    .peoplehub-staff-portal::before {
        background: var(--peoplehub-portal-aurora-static, linear-gradient(130deg, #0044EE 0%, #8E6BFF 45%, #FF6E83 72%, #FFB6CC 100%));
        animation: none;
    }

    .portal-nav {
        margin-bottom: 16px;
        padding: 12px 14px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.92);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 14px 32px rgba(81, 89, 118, 0.16);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        overflow: visible;
    }

    .portal-nav.menu-open {
        z-index: 9200;
    }

    .portal-nav.menu-open::after {
        content: "";
        position: absolute;
        top: 68px;
        left: 8px;
        width: 48%;
        min-width: 156px;
        height: 372px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.92);
        background: linear-gradient(160deg, rgba(247, 249, 253, 0.95) 0%, rgba(238, 242, 249, 0.84) 100%);
        box-shadow: 0 20px 42px rgba(80, 90, 118, 0.16);
        pointer-events: none;
        z-index: 9050;
    }

    .portal-nav-logo-img {
        width: 30px;
    }

    .portal-nav-title {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: #242a3c;
    }

    .portal-mobile-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(135deg, #8b5cf6 0%, #db5ad1 100%);
        box-shadow: 0 10px 20px rgba(181, 87, 213, 0.32);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .portal-mobile-toggle .dashicons {
        font-size: 21px;
        width: 21px;
        height: 21px;
    }

    .portal-nav-links {
        top: calc(100% + 10px);
        left: clamp(20px, 12vw, 56px);
        right: 6px;
        width: auto;
        border: 1px solid rgba(225, 229, 238, 0.92);
        border-radius: 22px;
        box-shadow: 0 28px 52px rgba(42, 49, 74, 0.24);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        overflow: hidden;
    }

    .portal-nav-links::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 116px;
        border-radius: 22px 22px 18px 18px;
        background: linear-gradient(135deg, #8b5cf6 0%, #db5ad1 100%);
        z-index: 0;
    }

    .portal-nav-links::after {
        content: "";
        position: absolute;
        top: 92px;
        left: 50%;
        transform: translateX(-50%);
        width: 164px;
        height: 30px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 999px;
        box-shadow: 0 8px 16px rgba(74, 84, 113, 0.14);
        z-index: 1;
    }

    .portal-nav.menu-open .portal-nav-links {
        max-height: min(78vh, 620px);
        padding: 126px 12px 12px;
    }

    .portal-nav-link {
        position: relative;
        z-index: 2;
        min-height: 46px;
        margin-bottom: 5px;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        color: #2f3446;
        justify-content: flex-start;
    }

    .portal-nav-link::after {
        content: "›";
        margin-left: auto;
        color: #9198ab;
        font-size: 18px;
        line-height: 1;
    }

    .portal-nav-link .dashicons {
        width: 22px;
        height: 22px;
        font-size: 15px;
        border-radius: 50%;
        color: #c75ab8;
        background: rgba(222, 157, 215, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .portal-nav-link:hover,
    .portal-nav-link:active {
        background: rgba(244, 234, 248, 0.84);
        color: #8b3e82;
    }

    .portal-nav-link.active {
        color: #af4f9b;
        background: linear-gradient(90deg, rgba(244, 219, 244, 0.95) 0%, rgba(251, 237, 250, 0.82) 100%);
        box-shadow: none;
    }

    .portal-nav-link.active .dashicons {
        color: #af4f9b;
        background: rgba(175, 79, 155, 0.18);
    }

    .portal-nav-mobile-user {
        position: relative;
        z-index: 2;
        order: -1;
        margin-top: 0;
        margin-bottom: 10px;
        padding-top: 0;
        padding-bottom: 10px;
        border-top: 0;
        border-bottom: 1px solid rgba(226, 230, 239, 0.9);
        gap: 6px;
    }

    .portal-nav-mobile-user .portal-nav-link {
        color: #3a4158;
    }

    .portal-nav-mobile-user .portal-nav-user-link {
        min-height: 52px;
        border-radius: 14px;
        margin-bottom: 2px;
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .portal-nav-mobile-user .portal-nav-user-link::after {
        content: "";
    }

    .portal-nav-mobile-user .portal-nav-user-link .dashicons {
        color: #fff;
        background: rgba(255, 255, 255, 0.22);
    }

    .portal-nav-logout {
        position: relative;
        z-index: 2;
        margin-top: 4px;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(252, 204, 214, 0.82);
        background: rgba(255, 236, 240, 0.82);
        color: #b94f64;
        font-weight: 700;
    }

    .portal-header {
        padding: 10px 2px 4px;
        margin-bottom: 16px;
    }

    .portal-header h2 {
        color: #1f2433;
        text-shadow: none;
        letter-spacing: -0.03em;
        font-size: clamp(28px, 6.6vw, 34px);
        line-height: 1.08;
    }

    .portal-back-link,
    .portal-back {
        color: #4b556d;
    }

    .portal-section,
    .portal-tabs-wrapper,
    .portal-tabs-mobile,
    .portal-tabs,
    .portal-tabs-select,
    .portal-search-box,
    .person-card,
    .person-profile-header,
    .profile-info-card,
    .portal-form,
    .portal-context-bar,
    .portal-view-content,
    .portal-empty,
    .portal-empty-state,
    .report-group,
    .reports-stats-bar,
    .drafts-banner {
        border: 1px solid rgba(255, 255, 255, 0.96);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 10px 24px rgba(99, 108, 136, 0.14);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .portal-tabs {
        padding: 8px;
        gap: 6px;
    }

    .portal-tab {
        border-radius: 12px;
        font-weight: 600;
    }

    .portal-tabs-select {
        border-radius: 14px;
        font-weight: 600;
        color: #2b3142;
        border: 1px solid rgba(223, 228, 238, 0.92);
        box-shadow: 0 10px 22px rgba(99, 108, 136, 0.12);
    }

    .portal-header-actions .portal-btn-primary {
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #8b5cf6 0%, #db5ad1 100%);
        box-shadow: 0 10px 20px rgba(181, 87, 213, 0.3);
        font-weight: 700;
    }

    .report-card {
        background: rgba(245, 248, 252, 0.94);
        border: 1px solid rgba(225, 230, 240, 0.84);
        border-radius: 14px;
    }

    .person-card {
        gap: 14px;
        padding: 14px 15px;
    }

    .person-card-avatar {
        border: 2px solid rgba(255, 255, 255, 0.82);
        box-shadow: 0 8px 16px rgba(108, 79, 183, 0.25);
    }

    .person-profile-name {
        color: #1f2433;
    }

    .person-profile-type.type-employee {
        color: #4a556c;
        background: rgba(106, 116, 141, 0.14);
    }
}

@media (max-width: 420px) {
    .portal-nav.menu-open::after {
        left: 4px;
        width: 42%;
        min-width: 132px;
        height: 340px;
    }

    .portal-nav-links {
        left: 16px;
    }

    .portal-nav-links::before {
        height: 108px;
    }

    .portal-nav-links::after {
        top: 84px;
        width: 148px;
    }

    .portal-nav.menu-open .portal-nav-links {
        padding-top: 118px;
    }
}

/* ========================================
   StepVise Additive Components (sv-*)
   ======================================== */
.sv-card {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-glass-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

.sv-pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--sv-blue);
    box-shadow: 0 4px 12px rgba(0, 68, 238, 0.3);
}

.sv-stat-card {
    background: var(--sv-white);
    border: 1px solid rgba(0, 68, 238, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 24, 46, 0.07);
}

.sv-hero {
    border-radius: 30px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(132deg, #0044ee 0%, #8e6bff 52%, #ff6e83 100%);
    box-shadow: 0 14px 34px rgba(0, 68, 238, 0.3);
}

.sv-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e8ebf5;
    overflow: hidden;
}

.sv-progress>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0044ee 0%, #8e6bff 100%);
}

.sv-tabbar {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
}

/* ========================================
   StepVise Portal Overrides
   ======================================== */
.peoplehub-staff-portal .portal-nav {
    border: 1px solid var(--portal-glass-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(15, 24, 46, 0.09);
}

.peoplehub-staff-portal .portal-nav-link.active {
    background: linear-gradient(135deg, #0044ee 0%, #8e6bff 100%);
    box-shadow: 0 8px 24px rgba(0, 68, 238, 0.28);
}

.peoplehub-staff-portal .portal-command-central.sv-command-central {
    gap: 20px;
}

.peoplehub-staff-portal .sv-command-central .portal-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(130deg, #0044ee 0%, #8e6bff 52%, #ff6e83 100%);
    color: #fff;
    border-radius: 30px;
    border: 0;
    box-shadow: 0 14px 34px rgba(0, 68, 238, 0.3);
    padding: 22px;
}

.peoplehub-staff-portal .sv-command-central .portal-header-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.peoplehub-staff-portal .sv-command-central .command-central-hero-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.peoplehub-staff-portal .sv-command-central .portal-header-text {
    flex: 1;
    min-width: 0;
}

.peoplehub-staff-portal .sv-command-central .portal-header h2 {
    color: #fff;
    font-size: 32px;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.1;
}

.peoplehub-staff-portal .sv-command-central .command-central-user-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.peoplehub-staff-portal .sv-command-central .portal-header-actions {
    display: flex;
}

.peoplehub-staff-portal .sv-command-central .portal-header-actions .portal-btn-primary {
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: blur(4px);
    width: 100%;
    justify-content: center;
}

.peoplehub-staff-portal .sv-command-central .portal-header-actions .portal-btn-primary:hover {
    background: rgba(255, 255, 255, 0.28);
}

.peoplehub-staff-portal .sv-command-central .command-central-subtitle {
    margin: -4px 0 0;
    font-size: 15px;
    color: #fff;
    opacity: 0.88;
}

.peoplehub-staff-portal .sv-command-central .command-central-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.peoplehub-staff-portal .sv-command-central .command-central-stat {
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 68, 238, 0.08);
    box-shadow: 0 10px 30px rgba(15, 24, 46, 0.07);
    padding: 16px;
}

.peoplehub-staff-portal .sv-command-central .command-central-stat-number {
    font-size: 30px;
    color: #1a1a1a;
}

.peoplehub-staff-portal .sv-command-central .command-central-stat-label {
    color: #8c8c8c;
}

.peoplehub-staff-portal .sv-command-central .command-central-draft-callout {
    border-radius: 22px;
    border: 1px solid rgba(241, 196, 15, 0.35);
    background: linear-gradient(180deg, #fff7d6 0%, #fffdfa 100%);
}

.peoplehub-staff-portal .sv-command-central .command-central-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.peoplehub-staff-portal .sv-command-central .command-central-card {
    border-radius: 24px;
    min-height: 164px;
    padding: 18px;
    border: 1px solid rgba(207, 216, 242, 0.8);
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 24, 46, 0.07);
}

.peoplehub-staff-portal .sv-command-central .command-central-card-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(140deg, #0044ee 0%, #8e6bff 48%, #ff6e83 100%);
    box-shadow: 0 16px 32px rgba(0, 68, 238, 0.28);
}

.peoplehub-staff-portal .sv-command-central .command-central-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 68, 238, 0.08);
}

.peoplehub-staff-portal .sv-command-central .command-central-card-primary .command-central-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.peoplehub-staff-portal .sv-command-central .command-central-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.peoplehub-staff-portal .sv-command-central .command-central-card-icon picture {
    display: inline-flex;
}

.peoplehub-staff-portal .sv-command-central .command-central-card-title {
    font-size: 18px;
    line-height: 1.25;
}

.peoplehub-staff-portal .sv-command-central .command-central-card-meta {
    color: #8c8c8c;
}

.peoplehub-staff-portal .sv-command-central .command-central-card-primary .command-central-card-meta {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .peoplehub-staff-portal {
        padding: 18px 14px 96px !important;
    }

    .peoplehub-staff-portal .portal-nav {
        border-radius: 22px;
        padding: 12px 14px;
    }

    .peoplehub-staff-portal .portal-nav-title {
        font-size: 15px;
    }

    .peoplehub-staff-portal .portal-nav-links {
        border-radius: 20px;
        border: 1px solid rgba(210, 219, 243, 0.8);
        box-shadow: 0 20px 40px rgba(15, 24, 46, 0.12);
    }

    .peoplehub-staff-portal .portal-nav.menu-open .portal-nav-links {
        padding: 14px;
    }

    .peoplehub-staff-portal .portal-nav-link {
        padding: 11px 14px;
        border-radius: 14px;
    }

    .peoplehub-staff-portal .sv-command-central .portal-header {
        border-radius: 24px;
        padding: 18px;
    }

    .peoplehub-staff-portal .sv-command-central .portal-header h2 {
        font-size: 28px;
    }

    .peoplehub-staff-portal .sv-command-central .command-central-hero-logo {
        width: 36px;
        height: 36px;
    }

    .peoplehub-staff-portal .sv-command-central .command-central-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .peoplehub-staff-portal .sv-command-central .command-central-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .peoplehub-staff-portal .sv-command-central .command-central-card {
        min-height: 0;
        border-radius: 20px;
        padding: 16px;
    }
}

/* ========================================
   Command Central Info Cards (Messages, Training, etc.)
   ======================================== */
.peoplehub-staff-portal .sv-command-central .command-central-info-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 68, 238, 0.08);
    box-shadow: 0 10px 30px rgba(15, 24, 46, 0.07);
    padding: 18px;
}

.peoplehub-staff-portal .sv-command-central a.command-central-info-card:hover {
    box-shadow: 0 14px 36px rgba(15, 24, 46, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .peoplehub-staff-portal .sv-command-central .command-central-info-card {
        border-radius: 20px;
        padding: 16px;
    }
}

/* ========================================
   Mobile Menu Readability Hard Overrides
   ======================================== */
@media (max-width: 768px) {
    .peoplehub-staff-portal {
        font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    }

    .peoplehub-staff-portal .portal-nav.menu-open::after,
    .peoplehub-staff-portal .portal-nav-links::before,
    .peoplehub-staff-portal .portal-nav-links::after {
        content: none !important;
        display: none !important;
    }

    .peoplehub-staff-portal .portal-nav-links {
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 8px) !important;
        width: 100% !important;
        border-radius: 16px !important;
        border: 1px solid #d8e1f0 !important;
        background: #ffffff !important;
        box-shadow: 0 18px 36px rgba(20, 30, 55, 0.16) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
    }

    .peoplehub-staff-portal .portal-nav.menu-open .portal-nav-links {
        max-height: min(78vh, 620px) !important;
        padding: 10px 10px 12px !important;
    }

    .peoplehub-staff-portal .portal-nav-link {
        min-height: 48px !important;
        margin-bottom: 6px !important;
        border-radius: 12px !important;
        border: 1px solid #edf1f7 !important;
        background: #ffffff !important;
        color: #1f2937 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
    }

    .peoplehub-staff-portal .portal-nav-link::after {
        color: #748097 !important;
    }

    .peoplehub-staff-portal .portal-nav-link .dashicons {
        color: #4e5a74 !important;
        background: transparent !important;
    }

    .peoplehub-staff-portal .portal-nav-link.active {
        color: #ffffff !important;
        border-color: transparent !important;
        background: linear-gradient(135deg, #0044ee 0%, #6d63f5 100%) !important;
        box-shadow: 0 10px 20px rgba(0, 68, 238, 0.26) !important;
    }

    .peoplehub-staff-portal .portal-nav-link.active .dashicons,
    .peoplehub-staff-portal .portal-nav-link.active::after {
        color: #ffffff !important;
        background: transparent !important;
    }

    .peoplehub-staff-portal .portal-nav-mobile-user {
        order: 0 !important;
        margin: 2px 0 8px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid #e7ecf5 !important;
        border-top: 0 !important;
        gap: 8px !important;
    }

    .peoplehub-staff-portal .portal-nav-mobile-user .portal-nav-user-link {
        min-height: 48px !important;
        border-radius: 12px !important;
        border: 1px solid #dbe5ff !important;
        background: #f4f8ff !important;
        color: #1f2937 !important;
        box-shadow: none !important;
    }

    .peoplehub-staff-portal .portal-nav-mobile-user .portal-nav-user-link .dashicons {
        color: #2f57d0 !important;
        background: rgba(47, 87, 208, 0.12) !important;
        border-radius: 999px;
    }

    .peoplehub-staff-portal .portal-nav-logout {
        margin-top: 2px !important;
        border-radius: 12px !important;
        border: 1px solid #ffd7e0 !important;
        background: #fff1f4 !important;
        color: #b42344 !important;
        font-weight: 700 !important;
    }
}

/* ========================================
   Staff Eligibility Tab (Read-Only)
   ======================================== */

.peoplehub-staff-portal .eligibility-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.peoplehub-staff-portal .eligibility-table thead {
    background: rgba(0, 68, 238, 0.04);
}

.peoplehub-staff-portal .eligibility-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--portal-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(0, 68, 238, 0.08);
}

.peoplehub-staff-portal .eligibility-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--portal-text, #1f2937);
}

.peoplehub-staff-portal .eligibility-table tbody tr:hover {
    background: rgba(0, 68, 238, 0.02);
}

.peoplehub-staff-portal .eligibility-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.peoplehub-staff-portal .eligibility-eligible {
    background: #d1fae5;
    color: #065f46;
}

.peoplehub-staff-portal .eligibility-ineligible {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Comms Manager Section
   ======================================== */

/* Header row with title + button */
.comms-section .portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

/* Tab badge for unread count */
.portal-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 999px;
    line-height: 1;
}

.portal-tab.active .portal-tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Nav badge for menu item counts */
.portal-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 999px;
    line-height: 1;
    margin-left: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.portal-nav-link.active .portal-nav-badge {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* Empty state inside comms */
.comms-section .comms-empty-state {
    text-align: center;
    padding: 64px 32px;
    margin-top: 24px;
    background: var(--portal-card-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border-radius: var(--portal-radius);
    border: 2px dashed var(--portal-border);
    box-shadow: var(--portal-shadow-sm);
}

.comms-section .comms-empty-state .comms-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.comms-section .comms-empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--portal-text);
}

.comms-section .comms-empty-state p {
    margin: 0;
    font-size: 15px;
    color: var(--portal-text-muted);
}

/* Message list */
.comms-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Individual message row card */
.comms-message-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--portal-card-bg);
    backdrop-filter: var(--portal-blur);
    -webkit-backdrop-filter: var(--portal-blur);
    border-radius: var(--portal-radius-sm);
    border: 1px solid var(--portal-glass-border);
    box-shadow: var(--portal-shadow-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.comms-message-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow-hover);
    border-color: rgba(99, 102, 241, 0.25);
}

.comms-message-row.unread {
    border-left: 4px solid var(--portal-primary);
    background: rgba(255, 255, 255, 0.96);
}

/* Unread dot */
.comms-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* Message body area */
.comms-msg-body {
    flex: 1;
    min-width: 0;
}

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

.comms-msg-sender {
    font-size: 15px;
    color: var(--portal-text);
    line-height: 1.3;
}

.comms-msg-sender.unread {
    font-weight: 700;
}

.comms-msg-subject {
    font-size: 14px;
    color: var(--portal-text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comms-msg-subject.unread {
    font-weight: 600;
}

.comms-msg-preview {
    margin: 0;
    font-size: 13px;
    color: var(--portal-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Priority & type badges */
.comms-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}

.comms-badge-urgent {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.comms-badge-important {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

.comms-badge-ack {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

/* Meta column (time + type) */
.comms-msg-meta {
    flex-shrink: 0;
    text-align: right;
    min-width: 70px;
}

.comms-msg-time {
    font-size: 12px;
    color: var(--portal-text-muted);
    white-space: nowrap;
}

.comms-msg-type {
    font-size: 11px;
    color: var(--portal-text-muted);
    opacity: 0.7;
    margin-top: 4px;
}

/* Compose button */
.comms-section .comms-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #8b5cf6 100%);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}

.comms-section .comms-compose-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.comms-section .comms-compose-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Pagination */
.comms-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.comms-pagination .page-info {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--portal-text-muted);
}

@media (max-width: 480px) {
    .comms-message-row {
        padding: 14px 16px;
    }

    .comms-msg-meta {
        display: none;
    }

    .comms-section .comms-compose-btn span:not(.dashicons) {
        display: none;
    }
}

/* ========================================
   Portal Documents Section
   ======================================== */

.portal-documents-section .section-header {
    margin-bottom: 24px;
}

.portal-documents-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-text, #1f2937);
    margin: 0 0 6px;
}

.portal-documents-section .section-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--portal-primary, #6366f1);
}

.portal-documents-section .section-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--portal-text-muted, #9ca3af);
}

.portal-documents-section .portal-empty-state {
    text-align: center;
    padding: 60px 32px;
    background: var(--portal-card-bg, rgba(255, 255, 255, 0.85));
    border: 2px dashed var(--portal-border, rgba(0, 0, 0, 0.08));
    border-radius: var(--portal-radius, 16px);
}

.portal-documents-section .portal-empty-state p {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--portal-text-muted, #9ca3af);
}

.portal-documents-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.portal-document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 24, 46, 0.12);
}

.portal-document-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.1);
}

.portal-document-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #6366f1;
}

/* Icon color classes */
.portal-document-icon.doc-icon-pdf {
    background: rgba(239, 68, 68, 0.1);
}

.portal-document-icon.doc-icon-pdf .dashicons {
    color: #ef4444;
}

.portal-document-icon.doc-icon-doc {
    background: rgba(37, 99, 235, 0.1);
}

.portal-document-icon.doc-icon-doc .dashicons {
    color: #2563eb;
}

.portal-document-icon.doc-icon-spreadsheet {
    background: rgba(16, 185, 129, 0.1);
}

.portal-document-icon.doc-icon-spreadsheet .dashicons {
    color: #10b981;
}

.portal-document-icon.doc-icon-image {
    background: rgba(168, 85, 247, 0.1);
}

.portal-document-icon.doc-icon-image .dashicons {
    color: #a855f7;
}

.portal-document-icon.doc-icon-video {
    background: rgba(236, 72, 153, 0.1);
}

.portal-document-icon.doc-icon-video .dashicons {
    color: #ec4899;
}

.portal-document-icon.doc-icon-archive {
    background: rgba(245, 158, 11, 0.1);
}

.portal-document-icon.doc-icon-archive .dashicons {
    color: #f59e0b;
}

.portal-document-icon.doc-icon-apk {
    background: rgba(61, 220, 132, 0.1);
}

.portal-document-icon.doc-icon-apk .dashicons {
    color: #3ddc84;
}

.portal-document-info {
    flex: 1;
    min-width: 0;
}

.portal-document-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-text, #1f2937);
    line-height: 1.3;
}

.portal-document-desc {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--portal-text-muted, #9ca3af);
    line-height: 1.4;
}

.portal-document-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--portal-text-muted, #6b7280);
}

.portal-document-meta span::before {
    content: '';
}

.portal-document-meta span+span::before {
    content: '·';
    margin-right: 12px;
    color: #d1d5db;
}

.portal-document-type {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.portal-document-actions {
    flex-shrink: 0;
}

.portal-document-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary, #6366f1) 0%, #8b5cf6 100%);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.portal-document-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.portal-document-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .portal-document-card {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }

    .portal-document-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .portal-document-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .portal-document-info {
        flex: 1 1 calc(100% - 56px);
    }

    .portal-document-actions {
        width: 100%;
    }

    .portal-document-download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

/* ========================================
   Desktop Responsive Enhancements
   ======================================== */
@media (min-width: 1024px) {

    /* Nav can breathe more on desktop */
    .portal-nav {
        padding: 16px 32px;
    }

    .portal-nav-link {
        padding: 10px 18px;
    }

    /* Client/people list: 2-col grid on desktop */
    .people-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Person cards: full width within grid cell */
    .person-card {
        margin-bottom: 0;
    }

    /* Client groups: span full width */
    .client-group {
        grid-column: 1 / -1;
    }

    .client-group .people-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Shift report cards: 2-col grid */
    .portal-shift-report-list,
    .shift-report-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Comms message list: wider rows */
    .comms-message-row {
        padding: 16px 24px;
    }

    /* Portal header with actions: side-by-side */
    .portal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Document cards: 2-col grid */
    .portal-documents-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}