/* =========================================================
   1. REFINED THEME VARIABLES
   A much cleaner, high-contrast, low-saturation palette
========================================================= */
:root {
    /* Backgrounds */
    --bg-body: #f8fafc; /* Very light, cool slate for the app background */
    --bg-surface: #ffffff; /* Pure white for the header and cards */
    /* Text */
    --text-primary: #0f172a; /* Nearly black for high contrast readability */
    --text-secondary: #64748b; /* Medium slate for supporting text */
    /* Accents & Borders */
    --accent-color: #000000; /* Sharp black for active states */
    --border-color: #e2e8f0; /* Crisp, subtle gray for structure */
    /* Links */
    --link-color: #2563eb; /* Blue for active state */
    --link-hover: #1d4ed8; /* Hover color */
}

/* =========================================================
   2. TYPOGRAPHY & BASE
========================================================= */
.ccj-app-body {
    margin: 0;
    background-color: var(--bg-body);
    /* System font stack for the crispest possible rendering on any device */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* FIX: Reduced base font size to make the app feel like a proper desktop tool */
    font-size: 14px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased; /* Makes text look sharper */
}

/* =========================================================
   3. TOP HEADER NAVIGATION
========================================================= */
.ccj-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ccj-header-container {
    max-width: 1400px; /* Constrains the width on massive monitors */
    margin: 0 auto;
    height: 60px; /* Slimmer header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.ccj-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Brand */
.ccj-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccj-brand-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.ccj-brand-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ccj-brand-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.ccj-brand-app {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
}

.ccj-brand-clean {
    color: #1f4fa3; /* blue tone from logo */
    font-weight: 700;
}

.ccj-brand-crew {
    color: #c62828; /* red tone from logo */
    font-weight: 700;
}

/* Navigation Links */
.ccj-top-nav {
    display: flex;
    gap: 24px;
    height: 100%;
}

.ccj-nav-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

    .ccj-nav-item:hover {
        color: var(--text-primary);
    }

    .ccj-nav-item.active {
        color: var(--text-primary);
        border-bottom-color: var(--accent-color); /* Underline active item */
    }

/* User Menu */
.ccj-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ccj-avatar {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 50%; /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccj-avatar-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.ccj-user-name {
    font-weight: 500;
    color: var(--text-secondary);
}

/* =========================================================
   4. PAGE HEADER & CONTENT
========================================================= */
.ccj-page-header {
    background-color: var(--bg-body);
    padding: 32px 24px 16px 24px;
}

.ccj-page-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* FIX: Smaller, tighter page titles */
.ccj-page-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--text-primary);
}

.ccj-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 48px 24px;
}

/* =========================================================
   5. SHARED COMPONENTS (FLAT CARDS)
========================================================= */
/* Replaced soft shadows with crisp borders for a tighter look */
.ccj-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Sharper corners */
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); /* Barely visible shadow */
}

/* =========================================================
   6. RESPONSIVE DESIGN (MOBILE NAV)
========================================================= */
@media (max-width: 991.98px) {
    .ccj-top-nav {
        display: none; /* Hide top nav on mobile, would need a hamburger menu implementation */
    }

    .ccj-user-name {
        display: none;
    }
}

/* =========================================================
   7. BUTTONS
========================================================= */
.ccj-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px; /* Tighter border radius */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.ccj-btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-surface);
}

    .ccj-btn-primary:hover {
        background-color: #334155; /* Slightly lighter black/slate */
        color: white;
    }

.ccj-btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

    .ccj-btn-outline:hover {
        background-color: var(--bg-body);
        border-color: #cbd5e1;
    }

.ccj-btn-contrast {
    color: #ffffff;
    border-color: #ffffff;
}

    .ccj-btn-contrast:hover {
        background-color: #ffffff;
        color: #000000;
    }

/* =========================================================
   8. DASHBOARD STAT CARDS
========================================================= */
.ccj-stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccj-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccj-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccj-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Utility background colors for icons */
.bg-light-success {
    background-color: #dcfce7;
}

.text-success {
    color: #16a34a !important;
}

.bg-light-primary {
    background-color: #e0e7ff;
}

.text-primary {
    color: #4f46e5 !important;
}

.bg-light-warning {
    background-color: #fef3c7;
}

.text-warning {
    color: #d97706 !important;
}

.ccj-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.ccj-stat-context {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .ccj-stat-context.positive {
        color: #16a34a;
    }

    .ccj-stat-context.negative {
        color: #dc2626;
    }

    .ccj-stat-context.neutral {
        color: var(--text-secondary);
    }

/* =========================================================
   9. DATA TABLES
========================================================= */
.ccj-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ccj-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ccj-table {
    width: 100%;
    border-collapse: collapse;
}

    .ccj-table th {
        text-align: left;
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ccj-table td {
        padding: 16px;
        font-size: 13px;
        color: var(--text-primary);
        border-top: 1px solid var(--border-color);
        vertical-align: middle;
    }

    /* Subtle row highlight on hover for better data tracking */
    .ccj-table tbody tr:hover {
        background-color: #f8fafc;
    }

/* Status Badges */
.ccj-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* =========================================================
   10. FORMS & INPUTS
========================================================= */
.ccj-input,
.ccj-select {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
}

    /* Sharp focus state for accessibility and modern feel */
    .ccj-input:focus,
    .ccj-select:focus {
        border-color: var(--text-primary);
        box-shadow: 0 0 0 1px var(--text-primary);
    }

.ccj-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ccj-input-uppercase {
    text-transform: uppercase;
}

/* Search Wrapper with Icon */
.ccj-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ccj-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.ccj-search-wrapper .ccj-input {
    padding-left: 36px; /* Make room for the search icon */
}

/* =========================================================
   11. ADDITIONAL BADGE STYLES
========================================================= */
.badge-draft {
    background-color: #f1f5f9; /* Light slate */
    color: #475569; /* Medium-dark slate */
    border: 1px solid #e2e8f0;
}

/* =========================================================
   12. PERSON COMPONENT (AVATAR & INFO STACK)
========================================================= */
.ccj-person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Slightly larger avatar for the table context */
.ccj-avatar-md {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ccj-person-info {
    display: flex;
    flex-direction: column;
}

.ccj-person-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.ccj-person-id {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Table Alignment Fix for combined cells */
.ccj-table.align-middle td {
    vertical-align: middle;
}

/* =========================================================
   13. REPORT TABS & LABELS
========================================================= */
.ccj-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccj-tabs-wrapper {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
}

.ccj-tab {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px; /* Overlap the container border */
}

    .ccj-tab:hover {
        color: var(--text-primary);
    }

    .ccj-tab.active {
        color: var(--text-primary);
        border-bottom-color: var(--text-primary);
        font-weight: 600;
    }

/* =========================================================
   14. SUMMARY CARD ACCENTS
========================================================= */
.border-left-primary {
    border-left: 4px solid var(--text-primary) !important;
}

.border-left-success {
    border-left: 4px solid #16a34a !important;
}

.border-left-danger {
    border-left: 4px solid #dc2626 !important;
}

.border-left-warning {
    border-left: 4px solid #d97706 !important;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

/* =========================================================
   15. PRINT STYLES (CRITICAL FOR REPORTS)
========================================================= */
@media print {
    /* Hide navigation, buttons, and decorative elements when printing */
    .ccj-header,
    .print-hide,
    .ccj-btn,
    .ccj-search-wrapper {
        display: none !important;
    }

    .ccj-app-body {
        background-color: white;
    }

    .ccj-main-content {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .ccj-card {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    /* Ensure chart canvases render correctly on paper */
    canvas {
        max-width: 100% !important;
    }
}

/* =========================================================
   16. PAY STUB DOCUMENT CONTAINER
========================================================= */
.ccj-paystub-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 60px 0;
}

.ccj-paystub-document {
    background-color: #ffffff;
    width: 100%;
    max-width: 850px; /* Width of an 8.5x11 piece of paper */
    border: 1px solid #d1d5db; /* Slightly darker border to define the edge */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft drop shadow */
    padding: 48px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Standard document fonts */
}

/* Header Grid */
.ccj-stub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 24px;
}

.ccj-stub-meta-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    text-align: left;
}

/* Employee Box */
.ccj-stub-employee-box {
    background-color: var(--bg-body); /* Slight slate background to offset it */
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 4px;
}

/* Document Tables */
.ccj-stub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .ccj-stub-table th {
        text-align: left;
        padding: 10px 12px;
        color: var(--text-secondary);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.5px;
        border-bottom: 1px solid var(--border-color);
    }

    .ccj-stub-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .ccj-stub-table tfoot td {
        border-bottom: none;
        padding-top: 16px;
    }

/* Summary Box */
.ccj-stub-summary-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    padding: 24px;
}

/* =========================================================
   17. PAY STUB PRINT STYLES
========================================================= */
@media print {
    /* Hide top nav, background color, and buttons */
    body {
        background-color: white !important;
    }

    .ccj-header, .ccj-page-header, .print-hide {
        display: none !important;
    }

    .ccj-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Remove the wrapper padding and the document's drop shadow */
    .ccj-paystub-wrapper {
        padding: 0;
        display: block;
    }

    .ccj-paystub-document {
        max-width: 100%;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* Ensure specific colors print correctly (like the net pay blue) */
    .text-primary {
        color: #000 !important;
    }
    /* Usually better to print pure black */
    .text-danger {
        color: #000 !important;
    }

    .text-warning {
        color: #000 !important;
    }

    /* Make sure borders print crisp */
    .ccj-stub-table th, .ccj-stub-table td {
        border-bottom: 1px solid #000 !important;
    }
}

/* =========================================================
   18. DATA ENTRY GRID (SPREADSHEET STYLE)
========================================================= */
.ccj-data-grid th {
    padding: 12px;
    font-size: 11px;
    border-bottom: 2px solid var(--border-color);
    vertical-align: middle;
}

/* Base table cell styling */
.ccj-data-grid td {
    border-bottom: 1px solid var(--border-color);
    position: relative;
    vertical-align: middle;
}

    /* Cells that contain full-width spreadsheet-style inputs */
    .ccj-data-grid td.ccj-input-cell {
        padding: 0;
    }

    /* Cells that contain display-only content */
    .ccj-data-grid td.ccj-display-cell {
        padding: 10px 12px;
    }

/* Make inputs look like borderless spreadsheet cells */
.ccj-grid-input {
    width: 100%;
    height: 48px;
    border: none;
    background-color: transparent;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: background-color 0.1s;
    box-sizing: border-box;
}

    /* Highlight the cell when the user is typing in it */
    .ccj-grid-input:focus {
        background-color: #f1f5f9;
        box-shadow: inset 0 0 0 2px var(--primary-color);
        z-index: 1;
    }

/* Standardized spacing for calculated (non-input) values */
.ccj-calc-val {
    padding: 0 12px;
    font-size: 14px;
}

/* Employee identity cell layout */
.ccj-person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Optional helper if you want better checkbox centering */
.ccj-data-grid td.ccj-check-cell {
    padding: 10px 12px;
    text-align: center;
}

/* Row states to help the admin spot missing data */
.row-warning {
    background-color: #fffbeb;
}

    .row-warning td {
        border-bottom-color: #fde68a;
    }

.row-inactive {
    background-color: #f8fafc;
}

    .row-inactive .ccj-person-name {
        color: var(--text-secondary);
    }

/* =========================================================
   19. CUSTOM SCROLLBARS FOR EMBEDDED TABLES
========================================================= */
.ccj-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ccj-custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ccj-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    .ccj-custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* =========================================================
   20. OFFCANVAS SIDE PANEL
========================================================= */
.ccj-offcanvas-panel {
    width: 680px !important;
    max-width: 100%;
    border-left: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

/* Preserve and enhance Bootstrap's slide animation */
.offcanvas.offcanvas-end.ccj-offcanvas-panel {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.offcanvas.show:not(.hiding).ccj-offcanvas-panel,
.offcanvas.showing.ccj-offcanvas-panel {
    transform: none;
}

/* Slightly softer backdrop */
.offcanvas-backdrop.show {
    opacity: 0.28;
}

/* Header */
.ccj-offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Body */
.ccj-offcanvas-body {
    padding: 24px;
    overflow-y: auto;
}

/* Footer */
.ccj-offcanvas-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Optional helper for grouped form sections */
.ccj-form-section {
    margin-bottom: 24px;
}

.ccj-form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Better spacing for validation messages */
.field-validation-error,
.validation-summary-errors {
    font-size: 12px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .ccj-offcanvas-panel {
        width: 100% !important;
    }

    .ccj-offcanvas-header,
    .ccj-offcanvas-body,
    .ccj-offcanvas-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ccj-offcanvas-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .ccj-offcanvas-footer .ccj-btn {
            justify-content: center;
        }
}

/* =========================================================
   21. FORM SECTION CARDS
========================================================= */
.ccj-form-section-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.ccj-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ccj-form-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ccj-form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.ccj-form-section-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Accent themes */
.ccj-section-basic {
    background: linear-gradient(to bottom, #f8fbff 0%, #ffffff 100%);
}

    .ccj-section-basic .ccj-form-section-icon {
        background-color: #e0e7ff;
        color: #4f46e5;
    }

.ccj-section-pay {
    background: linear-gradient(to bottom, #f6fef8 0%, #ffffff 100%);
}

    .ccj-section-pay .ccj-form-section-icon {
        background-color: #dcfce7;
        color: #16a34a;
    }

.ccj-section-contact {
    background: linear-gradient(to bottom, #fffaf5 0%, #ffffff 100%);
}

    .ccj-section-contact .ccj-form-section-icon {
        background-color: #fef3c7;
        color: #d97706;
    }

/* =========================================================
   22. EMPLOYEE PROFILE SPECIFICS
========================================================= */

/* Hero card */
.ccj-profile-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

    .ccj-profile-hero::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, #4f46e5 0%, #0ea5e9 50%, #16a34a 100%);
    }

.ccj-profile-hero-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

/* Extra large avatar */
.ccj-avatar-xl {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.ccj-avatar-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff;
}

/* Identity area */
.ccj-profile-identity {
    flex: 1;
    min-width: 0;
}

.ccj-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ccj-profile-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.7px;
    margin: 0;
    color: var(--text-primary);
}

.ccj-profile-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 6px;
}

.ccj-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Quick stat strip */
.ccj-profile-quickstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ccj-profile-stat {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
}

.ccj-profile-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ccj-profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Definition lists */
.ccj-description-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 16px;
}

    .ccj-description-list dt {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-secondary);
        letter-spacing: 0.6px;
        margin-bottom: 4px;
    }

    .ccj-description-list dd {
        margin: 0;
        font-size: 14px;
        color: var(--text-primary);
        line-height: 1.45;
    }

/* Card subtitles */
.ccj-card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Info cards */
.ccj-info-card {
    position: relative;
    overflow: hidden;
}

    .ccj-info-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
    }

.ccj-info-card-pay::before {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.ccj-info-card-employment::before {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

.ccj-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccj-info-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
}

/* Inner panel blocks */
.ccj-inner-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    background-color: #fcfdff;
    height: 100%;
}

.ccj-inner-panel-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ccj-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccj-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

    .ccj-detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

/* Badge variants */
.badge-soft-primary {
    background-color: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Slightly nicer table actions on profile page */
.ccj-table .btn.btn-light {
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

    .ccj-table .btn.btn-light:hover {
        background-color: #f8fafc;
    }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .ccj-profile-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-profile-quickstats {
        grid-template-columns: 1fr;
    }
}

/* Contact card grid */

.ccj-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.ccj-contact-item {
    display: flex;
    flex-direction: column;
}

.ccj-contact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

    .ccj-contact-label i {
        font-size: 14px;
        color: var(--text-muted);
    }

.ccj-contact-value {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* mobile */

@media (max-width: 768px) {

    .ccj-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   23. PROFILE HERO ENHANCEMENTS
========================================================= */

.ccj-profile-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ccj-profile-banner {
    height: 48px;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #0ea5e9 100%);
    opacity: 0.95;
}

.ccj-profile-hero-content {
    padding: 0 24px 24px 24px;
    margin-top: -42px;
}

.ccj-profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    margin-top: 50px;
}

.ccj-avatar-xl {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.ccj-avatar-gradient {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
}

.ccj-profile-identity {
    text-align: center;
}

.ccj-profile-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin: 0;
    color: var(--text-primary);
}

.ccj-profile-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ccj-profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ccj-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
}

    .ccj-profile-chip i {
        color: #64748b;
    }

.ccj-profile-quickstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ccj-profile-stat {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 14px;
    text-align: center;
}

.ccj-profile-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.ccj-profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .ccj-profile-quickstats {
        grid-template-columns: 1fr;
    }

    .ccj-profile-chip-row {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================================
   24. CONTACT & IDENTITY CARD ENHANCEMENTS
========================================================= */

.ccj-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}

.ccj-contact-item {
    display: flex;
    flex-direction: column;
}

.ccj-contact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

    .ccj-contact-label i {
        font-size: 14px;
        color: #64748b;
    }

.ccj-contact-value {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.ccj-contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

    .ccj-contact-link:hover {
        color: #2563eb;
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .ccj-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   25. DETAIL STACK CARDS
========================================================= */

.ccj-info-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

    .ccj-info-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
    }

.ccj-info-card-pay::before {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.ccj-info-card-employment::before {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

.ccj-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccj-info-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.ccj-info-card-icon-pay {
    background-color: #ecfdf5;
    color: #16a34a;
}

.ccj-info-card-icon-employment {
    background-color: #eef2ff;
    color: #4f46e5;
}

/* stack rows */

.ccj-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccj-detail-stack-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #ffffff;
}

.ccj-detail-stack-row-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: #c7d2fe;
}

.ccj-detail-stack-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 0;
}

    .ccj-detail-stack-label i {
        font-size: 14px;
        color: #64748b;
        flex-shrink: 0;
    }

.ccj-detail-stack-value {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    font-weight: 500;
    max-width: 55%;
}

/* extra badge options */

.badge-soft-neutral {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-soft-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* responsive */

@media (max-width: 575.98px) {
    .ccj-detail-stack-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-detail-stack-value {
        text-align: left;
        max-width: 100%;
    }
}

.ccj-breadcrumbs {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccj-breadcrumb-link {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

    .ccj-breadcrumb-link:hover {
        color: var(--link-hover);
    }

.ccj-breadcrumb-separator {
    color: var(--text-muted);
}

.ccj-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* =========================================================
   26. TOASTS
========================================================= */
.ccj-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 320px;
    max-width: 420px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    z-index: 2000;
    overflow: hidden;
    animation: ccj-toast-slide-in 0.25s ease-out;
}

.ccj-toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.ccj-toast-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.ccj-toast-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

    .ccj-toast-close:hover {
        opacity: 1;
    }

.ccj-toast-success {
    background-color: #ecfdf5;
    border-left: 5px solid #10b981;
    color: #065f46;
}

.ccj-toast-error {
    background-color: #fef2f2;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}

.ccj-toast-warning {
    background-color: #fffbeb;
    border-left: 5px solid #f59e0b;
    color: #92400e;
}

@keyframes ccj-toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================
   27. PAYSLIP PRINT STYLES
   Styles for rendering payroll payslips cleanly on screen
   and ensuring proper formatting for 8.5 x 11 printing.
========================================================= */

/* ---------------------------------------------------------
   Base payslip container (screen view)
--------------------------------------------------------- */
.payslip-print-wrap {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
}

.payslip-print-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.25;
    color: #000;
}

    /* Section headings */
    .payslip-print-body h3,
    .payslip-print-body h4 {
        margin-bottom: 8px;
        font-weight: 600;
    }

    /* Tables */
    .payslip-print-body .table {
        margin-bottom: 12px;
        font-size: 13px;
    }

        .payslip-print-body .table th,
        .payslip-print-body .table td {
            padding: 6px 8px;
            vertical-align: middle;
        }

/* Summary box */
.payslip-summary-box {
    padding: 10px 12px;
}

/* ---------------------------------------------------------
   PRINT MODE (8.5 x 11 optimization)
--------------------------------------------------------- */
@media print {

    /* Force letter size */
    @page {
        size: letter portrait;
        margin: 0.4in;
    }

    /* Remove all non-essential UI */
    .btn,
    .navbar,
    .sidebar,
    .page-header,
    .breadcrumb,
    .ccj-toast,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    /* Remove card styling for print */
    .ccj-card {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    /* Expand payslip to full page width */
    .payslip-print-wrap {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Compact layout for print */
    .payslip-print-body {
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

        /* Reduce heading sizes */
        .payslip-print-body h3 {
            font-size: 18px !important;
            margin-bottom: 4px !important;
        }

        .payslip-print-body h4 {
            font-size: 14px !important;
            margin-bottom: 6px !important;
        }

        /* Tighten spacing */
        .payslip-print-body .mb-4 {
            margin-bottom: 10px !important;
        }

        .payslip-print-body .mb-3 {
            margin-bottom: 6px !important;
        }

        .payslip-print-body .mt-3,
        .payslip-print-body .mt-md-0,
        .payslip-print-body .mt-2 {
            margin-top: 0 !important;
        }

        .payslip-print-body .p-4 {
            padding: 0 !important;
        }

        .payslip-print-body .p-3 {
            padding: 8px !important;
        }

        /* Compact tables */
        .payslip-print-body .table {
            font-size: 11px !important;
            margin-bottom: 8px !important;
        }

            .payslip-print-body .table th,
            .payslip-print-body .table td {
                padding: 4px 6px !important;
            }

        /* Reduce grid spacing */
        .payslip-print-body .row {
            --bs-gutter-x: 10px;
            --bs-gutter-y: 0;
        }

        /* Preserve light backgrounds when printing */
        .payslip-print-body .bg-light,
        .payslip-print-body .table-light {
            background-color: #f8f9fa !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        /* Adjust large text */
        .payslip-print-body .fs-4 {
            font-size: 18px !important;
        }

        /* Ensure Bootstrap columns behave in print */
        .payslip-print-body .col-md-6,
        .payslip-print-body .col-md-4 {
            float: left;
        }

        .payslip-print-body .col-md-6 {
            width: 50%;
        }

        .payslip-print-body .col-md-4 {
            width: 33.3333%;
        }

        /* Align text properly */
        .payslip-print-body .text-md-end {
            text-align: right !important;
        }

        /* Prevent awkward page breaks */
        .payslip-print-body table,
        .payslip-print-body tr,
        .payslip-print-body td,
        .payslip-print-body th {
            page-break-inside: avoid !important;
        }

        .payslip-print-body .row {
            page-break-inside: avoid !important;
        }
}

/* =========================================================
   Payroll Hero Section
   Clean, modern, and trust-focused landing section
   ========================================================= */
.ccj-payroll-hero {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.ccj-payroll-hero-content {
    max-width: 560px;
}

.ccj-payroll-hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background-color: #e8f0fe;
    color: #174ea6;
    font-size: 0.85rem;
    font-weight: 600;
}

.ccj-payroll-hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.ccj-payroll-hero-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 30px;
}

.ccj-payroll-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ccj-btn-primary {
    background-color: #174ea6;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

    .ccj-btn-primary:hover {
        background-color: #123d82;
        color: #ffffff;
    }

.ccj-btn-secondary {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

    .ccj-btn-secondary:hover {
        background-color: #f9fafb;
        color: #1f2937;
    }

.ccj-payroll-preview-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.ccj-payroll-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.ccj-payroll-preview-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.ccj-payroll-preview-period {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.ccj-payroll-preview-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #ecfdf3;
    color: #027a48;
    font-size: 0.8rem;
    font-weight: 700;
}

.ccj-payroll-stat-card {
    background-color: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 18px;
    height: 100%;
}

.ccj-payroll-stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.ccj-payroll-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.ccj-payroll-preview-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #4b5563;
}

/* =========================================================
   Responsive adjustments
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-payroll-hero {
        padding: 60px 0;
    }

    .ccj-payroll-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .ccj-payroll-hero-title {
        font-size: 1.9rem;
    }

    .ccj-payroll-preview-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ccj-payroll-stat-value {
        font-size: 1.2rem;
    }
}

/* =========================================================
   Clean Crew Jamaica Payroll Landing Page
   Modern, colorful, and operationally focused
   ========================================================= */

.ccj-payroll-landing {
    /*background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);*/
    
    min-height: 100vh;
    padding: 0px 0 70px 0;
    border-radius: 25px;
}

/* =========================================================
   Hero Wrapper
   ========================================================= */
.ccj-payroll-hero-wrap {
    background: linear-gradient(135deg, #0f3d2e 0%, #0f4c81 55%, #0a2540 100%);
    border-radius: 32px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

    .ccj-payroll-hero-wrap::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -80px;
        width: 240px;
        height: 240px;
        background: rgba(255, 255, 255, 0.07);
        border-radius: 50%;
    }

    .ccj-payroll-hero-wrap::after {
        content: "";
        position: absolute;
        bottom: -120px;
        left: -100px;
        width: 280px;
        height: 280px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

.ccj-payroll-hero-content {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.ccj-payroll-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ccj-payroll-hero-title {
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.ccj-payroll-hero-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 530px;
}

.ccj-payroll-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.ccj-payroll-btn-primary {
    background-color: #22c55e;
    color: #08331f;
    border: none;
    border-radius: 14px;
    padding: 13px 24px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.30);
}

    .ccj-payroll-btn-primary:hover {
        background-color: #16a34a;
        color: #ffffff;
    }

.ccj-payroll-btn-secondary {
    background-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 13px 24px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(6px);
}

    .ccj-payroll-btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }

.ccj-payroll-hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ccj-payroll-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    font-weight: 500;
}

.ccj-payroll-highlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    flex-shrink: 0;
}

/* =========================================================
   Preview Card
   ========================================================= */
.ccj-payroll-preview-shell {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.ccj-payroll-preview-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.ccj-payroll-preview-eyebrow {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ccj-payroll-preview-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.ccj-payroll-preview-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   Metric Cards
   ========================================================= */
.ccj-payroll-metric-card {
    border-radius: 20px;
    padding: 18px;
    height: 100%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-payroll-metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    }

.ccj-payroll-metric-label {
    font-size: 0.83rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ccj-payroll-metric-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.2;
}

.ccj-payroll-metric-subtext {
    font-size: 0.88rem;
    color: #64748b;
}

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-left: 5px solid #16a34a;
}

.metric-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-left: 5px solid #d97706;
}

.metric-dark {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-left: 5px solid #0f172a;
}

/* =========================================================
   Preview Footer
   ========================================================= */
.ccj-payroll-preview-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.ccj-payroll-preview-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #334155;
}

.ccj-text-success {
    color: #15803d;
}

/* =========================================================
   Feature Section
   ========================================================= */
.ccj-payroll-feature-section {
    margin-top: 34px;
}

.ccj-payroll-feature-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-payroll-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.10);
    }

.ccj-payroll-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-icon-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.feature-icon-green {
    background-color: #dcfce7;
    color: #15803d;
}

.feature-icon-amber {
    background-color: #fef3c7;
    color: #b45309;
}

.feature-icon-dark {
    background-color: #e2e8f0;
    color: #0f172a;
}

.ccj-payroll-feature-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.ccj-payroll-feature-text {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
    .ccj-payroll-hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 991.98px) {
    .ccj-payroll-landing {
        padding: 30px 0 50px 0;
    }

    .ccj-payroll-hero-wrap {
        padding: 35px 28px;
        border-radius: 26px;
    }

    .ccj-payroll-hero-title {
        font-size: 2.2rem;
    }

    .ccj-payroll-preview-shell {
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .ccj-payroll-hero-wrap {
        padding: 28px 20px;
    }

    .ccj-payroll-hero-title {
        font-size: 1.9rem;
    }

    .ccj-payroll-hero-text {
        font-size: 1rem;
    }

    .ccj-payroll-preview-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-payroll-metric-value {
        font-size: 1.3rem;
    }

    .ccj-payroll-feature-card {
        padding: 20px;
    }
}

.ccj-payroll-change-up {
    color: #15803d;
    font-weight: 700;
}

.ccj-payroll-change-down {
    color: #b91c1c;
    font-weight: 700;
}

.ccj-payroll-change-neutral {
    color: #475569;
    font-weight: 700;
}

/* =========================================================
   Employee Directory Hero
   ========================================================= */
.ccj-employee-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 58%, #0a2540 100%);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-employee-hero::before {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 220px;
        height: 220px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

.ccj-employee-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.ccj-employee-hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-employee-hero-title {
    color: #ffffff;
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 14px;
}

.ccj-employee-hero-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* =========================================================
   Hero Right Panel
   ========================================================= */
.ccj-employee-hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.ccj-employee-hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ccj-employee-hero-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ccj-employee-hero-panel-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 800;
}

.ccj-employee-metric-card {
    height: 100%;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.ccj-employee-metric-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.ccj-employee-metric-value {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.ccj-employee-metric-subtext {
    font-size: 0.87rem;
    color: #64748b;
}

.ccj-employee-mini-card {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: center;
    height: 100%;
}

.ccj-employee-mini-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.ccj-employee-mini-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-dark {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-left: 5px solid #0f172a;
}

/* =========================================================
   Toolbar
   ========================================================= */
.ccj-employee-toolbar {
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-search-wrapper-modern {
    position: relative;
}

    .ccj-search-wrapper-modern .ccj-search-icon {
        position: absolute;
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.95rem;
    }

    .ccj-search-wrapper-modern .ccj-input {
        height: 48px;
        border-radius: 14px;
        border: 1px solid #dbe3ec;
        background-color: #f8fafc;
    }

.ccj-employee-toolbar .ccj-select {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ec;
    background-color: #f8fafc;
}

.ccj-employee-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-employee-hero {
        padding: 28px;
    }

    .ccj-employee-hero-title {
        font-size: 2.15rem;
    }

    .ccj-employee-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ccj-employee-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .ccj-employee-hero-title {
        font-size: 1.8rem;
    }

    .ccj-employee-toolbar {
        padding: 18px;
        border-radius: 20px;
    }
}

/* =========================================================
   Employee Table Upgrade
   ========================================================= */

.ccj-employee-row {
    transition: background 0.2s ease;
}

    .ccj-employee-row:hover {
        background-color: #f8fafc;
    }

/* Employee Cell */
.ccj-employee-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ccj-employee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f4c81, #0f3d2e);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ccj-employee-info {
    display: flex;
    flex-direction: column;
}

.ccj-employee-name {
    font-weight: 700;
    color: #0f172a;
}

.ccj-employee-subtext {
    font-size: 0.85rem;
    color: #64748b;
}

/* Role Badges */
.ccj-role-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.role-driver {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.role-assistant {
    background-color: #fef3c7;
    color: #b45309;
}

.role-management {
    background-color: #dcfce7;
    color: #15803d;
}

.role-default {
    background-color: #e2e8f0;
    color: #334155;
}

/* Rate */
.ccj-rate {
    font-weight: 600;
    color: #0f172a;
}

/* Status */
.ccj-status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Actions */
.ccj-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ccj-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.2s ease;
}

    .ccj-icon-btn:hover {
        background-color: #f1f5f9;
    }

    .ccj-icon-btn.danger {
        color: #b91c1c;
    }

.ccj-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .ccj-btn-export i {
        font-size: 1rem;
    }

    .ccj-btn-export:hover {
        background: linear-gradient(135deg, #dcfce7, #ecfdf5);
        border-color: #86efac;
        transform: translateY(-1px);
    }

/* =========================================================
   Employee Profile Hero
   ========================================================= */

.ccj-employee-profile-hero {
    background: linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 30px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

.ccj-employee-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* Avatar */
.ccj-employee-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Name */
.ccj-employee-name-lg {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

/* Meta */
.ccj-employee-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ccj-employee-submeta {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Role badge large */
.ccj-role-badge-lg {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Status badge large */
.ccj-status-badge-lg {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Employee code */
.ccj-employee-code {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Stats row */
.ccj-employee-profile-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ccj-profile-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 14px 18px;
    min-width: 140px;
}

/* LABEL */
.ccj-profile-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

/* VALUE */
.ccj-profile-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.role-driver {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.role-assistant {
    background-color: #fef3c7;
    color: #b45309;
}

.role-management {
    background-color: #dcfce7;
    color: #15803d;
}

/* =========================================================
   Work Entries Page
   ========================================================= */

.ccj-work-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 28px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-work-hero::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

.ccj-work-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.ccj-work-hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-work-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #ffffff;
}

.ccj-work-hero-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.ccj-work-hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.ccj-work-hero-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.ccj-work-hero-date {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 6px;
}

.ccj-work-hero-meta {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   Toolbar
   ========================================================= */

.ccj-work-toolbar-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #dbe7f1;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-work-filter-input {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ec;
    background-color: #f8fafc;
}

.ccj-work-bulk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ccj-btn-soft-primary,
.ccj-btn-soft-success,
.ccj-btn-soft-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ccj-btn-soft-primary {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

    .ccj-btn-soft-primary:hover {
        background: #dbeafe;
        color: #1e40af;
    }

.ccj-btn-soft-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

    .ccj-btn-soft-success:hover {
        background: #dcfce7;
        color: #14532d;
    }

.ccj-btn-soft-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

    .ccj-btn-soft-danger:hover {
        background: #fecaca;
        color: #7f1d1d;
    }

/* =========================================================
   Grid Card
   ========================================================= */

.ccj-work-grid-card {
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    position: relative;
}

    .ccj-work-grid-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

.ccj-work-table-head {
    background: #f8fafc;
}

    .ccj-work-table-head th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
        padding-top: 16px;
        padding-bottom: 16px;
    }

.entry-row {
    transition: background-color 0.18s ease;
}

    .entry-row:hover {
        background-color: #f8fafc;
    }

.ccj-work-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
    background: linear-gradient(135deg, #dbeafe, #ecfdf5);
    color: #0f4c81;
    border: 1px solid #dbe7f1;
}

.ccj-work-person-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ccj-work-person-role {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.ccj-work-grid-input {
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 40px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .ccj-work-grid-input:focus {
        background-color: #ffffff;
        border-color: #93c5fd;
        box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.10);
        outline: none;
    }

.ccj-work-total-hours {
    font-weight: 800;
    font-size: 1rem;
    color: #1d4ed8;
}

/* =========================================================
   Footer Summary
   ========================================================= */

.ccj-work-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ccj-work-summary-count {
    font-size: 0.92rem;
    color: #64748b;
}

.ccj-work-total {
    text-align: end;
}

    .ccj-work-total .label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .ccj-work-total .value {
        font-size: 1.55rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.1;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .ccj-work-hero {
        padding: 24px;
    }

    .ccj-work-hero-title {
        font-size: 1.95rem;
    }

    .ccj-work-bulk-actions {
        justify-content: flex-start;
    }

    .ccj-work-toolbar-card {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .ccj-work-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .ccj-work-hero-title {
        font-size: 1.7rem;
    }

    .ccj-work-toolbar-card {
        padding: 16px;
        border-radius: 20px;
    }

    .ccj-work-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-work-total {
        text-align: left;
    }
}

.ccj-truck-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

.ccj-truck-time-card {
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
    border: 1px solid #cfe3f8;
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.06);
    position: relative;
}

    .ccj-truck-time-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

.ccj-work-date-bar {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #d6e8fb;
    border-radius: 22px;
    padding: 20px 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ccj-work-date-input {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ec;
    background-color: #f8fafc;
}

.ccj-work-date-bar-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.ccj-work-date-bar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.ccj-work-date-bar-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.ccj-work-instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.ccj-work-instructions-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ccj-work-instructions-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.ccj-work-toolbar-card {
    background: linear-gradient(180deg, #f7fcf8 0%, #ffffff 100%);
    border: 1px solid #d9efe0;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(21, 128, 61, 0.05);
    position: relative;
}

    .ccj-work-toolbar-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

.ccj-section-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 10px;
    padding-left: 4px;
}

.ccj-work-toolbar-inner {
    display: flex;
    flex-direction: column;
}

.ccj-work-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .ccj-work-bulk-actions {
        justify-content: flex-start;
    }
}

#saveEntriesBtn {
    margin-left: 6px;
}

.ccj-work-bulk-actions #saveEntriesBtn {
    margin-left: auto;
}

/* =========================================================
   Weekly Summary Hero
   ========================================================= */

.ccj-weekly-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 28px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-weekly-hero::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

.ccj-weekly-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.ccj-weekly-hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-weekly-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #ffffff;
}

.ccj-weekly-hero-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.ccj-weekly-hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.ccj-weekly-hero-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.ccj-weekly-hero-date {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 6px;
}

.ccj-weekly-hero-meta {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   Weekly Stats
   ========================================================= */

.ccj-weekly-stat-card {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #dbe7f1;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.ccj-weekly-stat-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.ccj-weekly-stat-value {
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.ccj-weekly-stat-subtext {
    font-size: 0.88rem;
    color: #64748b;
}

.stat-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.stat-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-left: 5px solid #16a34a;
}

.stat-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-left: 5px solid #d97706;
}

.stat-dark {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-left: 5px solid #0f172a;
}

/* =========================================================
   Weekly Grid
   ========================================================= */

.ccj-weekly-grid-card {
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    position: relative;
}

    .ccj-weekly-grid-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
    }

.ccj-weekly-table {
    table-layout: fixed;
    width: 100%;
}

.ccj-weekly-table-head {
    background: #f8fafc;
}

    .ccj-weekly-table-head th {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
        padding-top: 14px;
        padding-bottom: 14px;
        vertical-align: middle;
    }

.ccj-weekly-employee-col {
    min-width: 200px;
    width: 200px;
}

.ccj-weekly-day-col {
    min-width: 82px;
    width: 82px;
}

.ccj-weekly-summary-col {
    min-width: 78px;
    width: 78px;
}

.ccj-weekly-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.ccj-weekly-day-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #334155;
    line-height: 1;
}

.ccj-weekly-day-date {
    font-size: 0.66rem;
    color: #64748b;
    line-height: 1;
}

.ccj-weekly-row:hover {
    background-color: #f8fafc;
}

.ccj-weekly-row td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.ccj-weekly-avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
    background: linear-gradient(135deg, #dbeafe, #ecfdf5);
    color: #0f4c81;
    border: 1px solid #dbe7f1;
}

.ccj-weekly-person-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ccj-weekly-person-role {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    line-height: 1.2;
}

.ccj-weekly-day-cell {
    border-radius: 10px;
    padding: 6px 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.ccj-weekly-day-cell-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ccj-weekly-day-cell-entered {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ccj-weekly-day-cell-approved {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.ccj-weekly-day-hours {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.ccj-weekly-day-missing {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.ccj-weekly-day-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 2px auto 0;
}

    .ccj-weekly-day-indicator.entered {
        background: #3b82f6;
    }

    .ccj-weekly-day-indicator.approved {
        background: #16a34a;
    }

.ccj-weekly-total-hours {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.ccj-weekly-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

    .ccj-weekly-count-pill.entered {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .ccj-weekly-count-pill.approved {
        background: #ecfdf5;
        color: #15803d;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .ccj-weekly-employee-col {
        min-width: 180px;
        width: 180px;
    }

    .ccj-weekly-day-col {
        min-width: 76px;
        width: 76px;
    }

    .ccj-weekly-summary-col {
        min-width: 72px;
        width: 72px;
    }
}

@media (max-width: 991.98px) {
    .ccj-weekly-hero {
        padding: 24px;
    }

    .ccj-weekly-hero-title {
        font-size: 1.95rem;
    }

    .ccj-weekly-stat-card {
        padding: 18px;
    }

    .ccj-weekly-day-cell {
        min-height: 48px;
        padding: 5px 3px;
    }

    .ccj-weekly-day-hours {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .ccj-weekly-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .ccj-weekly-hero-title {
        font-size: 1.7rem;
    }

    .ccj-weekly-stat-card {
        padding: 16px;
    }
}

/* =========================================================
   Payroll Periods Hero
   ========================================================= */
.ccj-payroll-periods-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 58%, #0a2540 100%);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-payroll-periods-hero::before {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 220px;
        height: 220px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

.ccj-payroll-periods-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.ccj-payroll-periods-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-payroll-periods-title {
    color: #ffffff;
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 14px;
}

.ccj-payroll-periods-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* =========================================================
   Hero Right Panel
   ========================================================= */
.ccj-payroll-periods-hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.ccj-payroll-periods-hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ccj-payroll-periods-hero-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ccj-payroll-periods-hero-panel-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 800;
}

.ccj-payroll-periods-metric-card {
    height: 100%;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.ccj-payroll-periods-metric-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.ccj-payroll-periods-metric-value {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.ccj-payroll-periods-metric-subtext {
    font-size: 0.87rem;
    color: #64748b;
}

.ccj-payroll-periods-mini-card {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: center;
    height: 100%;
}

.ccj-payroll-periods-mini-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.ccj-payroll-periods-mini-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-dark {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-left: 5px solid #0f172a;
}

/* =========================================================
   Toolbar
   ========================================================= */
.ccj-payroll-periods-toolbar {
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-search-wrapper-modern {
    position: relative;
}

    .ccj-search-wrapper-modern .ccj-search-icon {
        position: absolute;
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.95rem;
    }

    .ccj-search-wrapper-modern .ccj-input {
        height: 48px;
        border-radius: 14px;
        border: 1px solid #dbe3ec;
        background-color: #f8fafc;
    }

.ccj-payroll-periods-toolbar .ccj-select {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ec;
    background-color: #f8fafc;
}

.ccj-payroll-periods-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   Export Button
   ========================================================= */
.ccj-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .ccj-btn-export i {
        font-size: 1rem;
    }

    .ccj-btn-export:hover {
        background: linear-gradient(135deg, #dcfce7, #ecfdf5);
        border-color: #86efac;
        transform: translateY(-1px);
    }

/* =========================================================
   Table Card
   ========================================================= */
.ccj-payroll-periods-table-card {
    border-radius: 24px;
    border: 1px solid #dbe7f1;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-payroll-periods-table-head {
    background: #f8fafc;
}

    .ccj-payroll-periods-table-head th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
        padding-top: 16px;
        padding-bottom: 16px;
    }

.ccj-payroll-periods-row:hover {
    background-color: #f8fafc;
}

.ccj-payroll-period-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ccj-payroll-period-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #ecfdf5);
    color: #0f4c81;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe7f1;
    font-size: 0.95rem;
}

.ccj-payroll-period-info {
    display: flex;
    flex-direction: column;
}

.ccj-payroll-period-id {
    font-weight: 800;
    color: #2563eb;
    line-height: 1.2;
}

.ccj-payroll-period-subtext {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.2;
}

.ccj-payroll-period-range {
    color: #0f172a;
    font-weight: 600;
}

/* =========================================================
   Badges
   ========================================================= */
.badge-soft-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-soft-amber {
    background: #fef3c7;
    color: #b45309;
}

.badge-soft-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-soft-neutral {
    background: #e2e8f0;
    color: #334155;
}

/* =========================================================
   Actions
   ========================================================= */
.ccj-payroll-period-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.ccj-icon-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .ccj-icon-action-btn.success {
        color: #15803d;
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

        .ccj-icon-action-btn.success:hover {
            background: #dcfce7;
        }

.ccj-period-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .ccj-period-action-link:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
    }

/* =========================================================
   Footer
   ========================================================= */
.ccj-payroll-periods-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ccj-payroll-periods-footer-text {
    font-size: 0.9rem;
    color: #64748b;
}

.ccj-run-payroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #15803d;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .ccj-run-payroll-btn i {
        font-size: 0.95rem;
    }

    .ccj-run-payroll-btn:hover {
        background: linear-gradient(135deg, #dcfce7, #ecfdf5);
        border-color: #86efac;
        transform: translateY(-1px);
    }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-payroll-periods-hero {
        padding: 28px;
    }

    .ccj-payroll-periods-title {
        font-size: 2.15rem;
    }

    .ccj-payroll-periods-toolbar-actions {
        justify-content: flex-start;
    }

    .ccj-payroll-periods-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 575.98px) {
    .ccj-payroll-periods-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .ccj-payroll-periods-title {
        font-size: 1.8rem;
    }

    .ccj-payroll-periods-toolbar {
        padding: 18px;
        border-radius: 20px;
    }
}

/* =========================================================
   Payroll Period Details Hero
   ========================================================= */
.ccj-payroll-details-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 28px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-payroll-details-hero::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

.ccj-payroll-details-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.ccj-payroll-details-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-payroll-details-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
}

.ccj-payroll-details-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ccj-payroll-details-meta-divider {
    opacity: 0.6;
}

.ccj-payroll-details-notes {
    margin-top: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 620px;
    line-height: 1.6;
}

.ccj-payroll-details-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ccj-payroll-details-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ccj-actions-left {
    display: flex;
    align-items: center;
}

.ccj-actions-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* =========================================================
   Summary Cards
   ========================================================= */
.ccj-payroll-summary-card {
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.ccj-payroll-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ccj-payroll-summary-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.ccj-payroll-summary-subtext {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.ccj-payroll-lock-banner {
    border: 1px solid #fcd34d;
    background: linear-gradient(135deg, #fff8db 0%, #fffdf5 100%);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    color: #7c5a03;
}

.ccj-payroll-lock-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.ccj-readonly-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.94rem;
}

    .ccj-readonly-note i {
        color: #6b7280;
    }

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-left: 5px solid #d97706;
}

.metric-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-left: 5px solid #16a34a;
}

.metric-dark {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-left: 5px solid #0f172a;
}

.metric-slate {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-left: 5px solid #64748b;
}

.metric-net {
    background: linear-gradient(180deg, #eefcf3 0%, #ffffff 100%);
    border-left: 5px solid #15803d;
}

/* =========================================================
   Sections
   ========================================================= */
.ccj-section-block {
    margin-top: 32px;
}

.ccj-section-header {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #0f172a;
}

.ccj-section-card {
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   Buttons
   ========================================================= */
.ccj-btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
}

    .ccj-btn-success:hover {
        background: linear-gradient(135deg, #15803d, #166534);
        color: #ffffff;
    }

.ccj-btn-success-outline {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 9px 14px;
    font-weight: 600;
}

    .ccj-btn-success-outline:hover {
        background: #dcfce7;
        color: #14532d;
    }

.ccj-icon-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .ccj-icon-action-btn.primary {
        color: #2563eb;
        border-color: #bfdbfe;
        background: #eff6ff;
    }

        .ccj-icon-action-btn.primary:hover {
            background: #dbeafe;
        }

    .ccj-icon-action-btn.danger {
        color: #dc2626;
        border-color: #fecaca;
        background: #fef2f2;
    }

        .ccj-icon-action-btn.danger:hover {
            background: #fee2e2;
        }

/* =========================================================
   Soft Badges
   ========================================================= */
.badge-soft-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-soft-amber {
    background: #fef3c7;
    color: #b45309;
}

.badge-soft-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-soft-neutral {
    background: #e2e8f0;
    color: #334155;
}

/* =========================================================
   Card spacing helpers
   ========================================================= */
.ccj-card-body {
    padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-payroll-details-hero {
        padding: 24px;
    }

    .ccj-payroll-details-title {
        font-size: 1.95rem;
    }

    .ccj-payroll-details-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ccj-payroll-details-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .ccj-payroll-details-title {
        font-size: 1.7rem;
    }

    .ccj-payroll-summary-card {
        padding: 18px;
    }
}

.ccj-payroll-details-actions {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ccj-btn-glass-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .ccj-btn-glass-light:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.32);
    }

.ccj-btn-success-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border: none;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
    transition: all 0.2s ease;
}

    .ccj-btn-success-solid:hover {
        background: linear-gradient(135deg, #15803d, #166534);
        color: #ffffff;
        transform: translateY(-1px);
    }

/* =========================================================
   Payslips Hero
   ========================================================= */
.ccj-payslips-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 28px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-payslips-hero::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

.ccj-payslips-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.ccj-payslips-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-payslips-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #ffffff;
}

.ccj-payslips-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.ccj-payslips-hero-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.ccj-payslips-hero-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.ccj-payslips-hero-date {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 6px;
}

.ccj-payslips-hero-meta {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   Summary Cards
   ========================================================= */
.ccj-payslips-summary-card {
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.ccj-payslips-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ccj-payslips-summary-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.ccj-payslips-summary-subtext {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-left: 5px solid #16a34a;
}

.metric-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-left: 5px solid #d97706;
}

/* =========================================================
   Toolbar
   ========================================================= */
.ccj-payslips-toolbar {
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-payslips-toolbar-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ccj-payslips-toolbar-subtext {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.4;
}

.ccj-payslips-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   Export Button
   ========================================================= */
.ccj-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .ccj-btn-export i {
        font-size: 1rem;
    }

    .ccj-btn-export:hover {
        background: linear-gradient(135deg, #dcfce7, #ecfdf5);
        border-color: #86efac;
        transform: translateY(-1px);
    }

/* =========================================================
   Table Card
   ========================================================= */
.ccj-payslips-table-card {
    border-radius: 24px;
    border: 1px solid #dbe7f1;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ccj-payslips-table-head {
    background: #f8fafc;
}

    .ccj-payslips-table-head th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        font-weight: 700;
        padding-top: 16px;
        padding-bottom: 16px;
    }

.ccj-payslips-row:hover {
    background-color: #f8fafc;
}

.ccj-payslip-employee-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ccj-payslip-employee-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #ecfdf5);
    color: #0f4c81;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe7f1;
    font-size: 0.9rem;
    font-weight: 800;
}

.ccj-payslip-employee-info {
    display: flex;
    flex-direction: column;
}

.ccj-payslip-employee-name {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.ccj-payslip-employee-subtext {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.2;
}

.ccj-pay-positive {
    color: #15803d;
    font-weight: 600;
}

.ccj-pay-negative {
    color: #dc2626;
    font-weight: 600;
}

.ccj-payslip-gross {
    color: #0f172a;
}

.ccj-payslip-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .ccj-payslip-action-link:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
    }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-payslips-hero {
        padding: 24px;
    }

    .ccj-payslips-title {
        font-size: 1.95rem;
    }

    .ccj-payslips-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ccj-payslips-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .ccj-payslips-title {
        font-size: 1.7rem;
    }

    .ccj-payslips-summary-card,
    .ccj-payslips-toolbar {
        padding: 18px;
    }
}

/* =========================================================
   Reports Hero
   ========================================================= */
.ccj-reports-hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 28%), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%), linear-gradient(135deg, #0f3d2e 0%, #0f4c81 60%, #0a2540 100%);
    border-radius: 28px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

    .ccj-reports-hero::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

.ccj-reports-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.ccj-reports-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ccj-reports-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #ffffff;
}

.ccj-reports-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.ccj-reports-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ccj-btn-glass-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .ccj-btn-glass-light:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.32);
    }

.ccj-btn-success-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border: none;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
    transition: all 0.2s ease;
}

    .ccj-btn-success-solid:hover {
        background: linear-gradient(135deg, #15803d, #166534);
        color: #ffffff;
        transform: translateY(-1px);
    }

/* =========================================================
   Tabs
   ========================================================= */
.ccj-tabs {
    display: flex;
    gap: 10px;
    border-bottom: none;
    flex-wrap: wrap;
}

    .ccj-tabs .nav-link {
        border: none;
        background: #f1f5f9;
        color: #475569;
        border-radius: 12px;
        padding: 10px 16px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

        .ccj-tabs .nav-link:hover {
            background: #e2e8f0;
            color: #334155;
        }

        .ccj-tabs .nav-link.active {
            background: #0f172a;
            color: #ffffff;
        }

/* =========================================================
   Summary Cards
   ========================================================= */
.ccj-summary-card {
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.ccj-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ccj-summary-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.ccj-summary-subtext {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.metric-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-left: 5px solid #2563eb;
}

.metric-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-left: 5px solid #d97706;
}

.metric-green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-left: 5px solid #16a34a;
}

.metric-slate {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-left: 5px solid #64748b;
}

/* =========================================================
   Section Cards
   ========================================================= */
.ccj-section-card {
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ccj-report-info-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    height: 100%;
}

.ccj-report-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
}

.ccj-report-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* =========================================================
   Tables
   ========================================================= */
.ccj-report-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
}

.ccj-report-table tbody tr:hover {
    background: #f8fafc;
}

.ccj-report-table tfoot tr {
    background: #f8fafc;
}

/* =========================================================
   Soft Badge
   ========================================================= */
.badge-soft-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ccj-reports-hero {
        padding: 24px;
    }

    .ccj-reports-title {
        font-size: 1.95rem;
    }

    .ccj-reports-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ccj-reports-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .ccj-reports-title {
        font-size: 1.7rem;
    }

    .ccj-summary-card {
        padding: 18px;
    }
}

.ccj-modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.ccj-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ccj-preview-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
}

.ccj-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.ccj-preview-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* Modal shell */
.ccj-modal-modern {
    border: none;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* Card containers */
.ccj-period-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

/* Section headers */
.ccj-period-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* Grid for start/end */
.ccj-period-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Divider */
.ccj-period-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

/* Labels */
.ccj-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 4px;
}

/* Values */
.ccj-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* Pay date highlight */
.ccj-pay-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2563eb;
}

/* Pay section layout */
.ccj-period-pay {
    text-align: center;
}

/* Info note */
.ccj-info-note {
    font-size: 0.85rem;
    color: #4b5563;
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 10px;
}

.ccj-modal-premium {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    background: #ffffff;
}

.ccj-modal-premium-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.ccj-modal-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.ccj-modal-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.45;
}

.ccj-modal-premium-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.ccj-modal-premium-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.ccj-modal-loading-state {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    gap: 0.85rem;
}

.ccj-modal-loading-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.ccj-preview-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 1rem 1rem 1rem 1rem;
    margin-bottom: 1rem;
}

.ccj-preview-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    margin-bottom: 0.75rem;
}

.ccj-preview-hero-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.35rem;
}

.ccj-preview-hero-text {
    font-size: 0.93rem;
    line-height: 1.55;
    color: #4b5563;
}

.ccj-preview-main-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.ccj-preview-main-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fcfcfd;
}

.ccj-preview-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.15rem;
}

.ccj-preview-section-subtitle {
    font-size: 0.86rem;
    color: #6b7280;
}

.ccj-preview-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

.ccj-preview-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.ccj-preview-detail-list {
    display: flex;
    flex-direction: column;
}

.ccj-preview-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f3f4f6;
}

    .ccj-preview-detail-row:last-child {
        border-bottom: none;
    }

.ccj-preview-detail-row-accent {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.65) 0%, rgba(255, 255, 255, 1) 100%);
}

.ccj-preview-detail-left {
    min-width: 0;
}

.ccj-preview-detail-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.ccj-preview-detail-help {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.45;
}

.ccj-preview-detail-right {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.ccj-preview-detail-right-accent {
    color: #1d4ed8;
}

.ccj-preview-footer-note {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

    .ccj-preview-footer-note i {
        color: #2563eb;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

@media (max-width: 767.98px) {
    .ccj-modal-premium-header,
    .ccj-modal-premium-body,
    .ccj-modal-premium-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ccj-preview-main-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-preview-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-preview-detail-right {
        text-align: left;
        white-space: normal;
    }

    .ccj-modal-icon-wrap {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

.ccj-close-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.9rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

    .ccj-close-period-btn:hover {
        background: #f9fafb;
        border-color: #9ca3af;
        color: #111827;
    }

    .ccj-close-period-btn i {
        font-size: 0.95rem;
    }

.ccj-btn-warning-outline {
    border: 1px solid #f59e0b;
    background: #ffffff;
    color: #b45309;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

    .ccj-btn-warning-outline:hover {
        background: #fffbeb;
        border-color: #d97706;
        color: #92400e;
    }

/* =========================================================
   Users Index Page
   ========================================================= */

.ccj-users-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.ccj-page-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    margin-bottom: 8px;
}

.ccj-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccj-stat-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ccj-stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ccj-stat-card-icon-blue {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.ccj-stat-card-icon-green {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.ccj-stat-card-icon-amber {
    background: rgba(255, 193, 7, 0.18);
    color: #b58100;
}

.ccj-stat-card-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.ccj-stat-card-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.ccj-users-list-card {
    border-radius: 20px;
    overflow: hidden;
}

.ccj-users-card-header {
    align-items: center;
}

.ccj-users-card-header-meta {
    display: flex;
    align-items: center;
}

.ccj-record-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: #f3f6f9;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}

.ccj-users-table-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #edf0f2;
    background: #fff;
}

.ccj-users-table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

    .ccj-users-table thead th {
        background: #f8fafc;
        color: #495057;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid #e9ecef;
        padding: 16px 18px;
        white-space: nowrap;
    }

    .ccj-users-table tbody td {
        padding: 18px;
        border-bottom: 1px solid #f1f3f5;
        vertical-align: middle;
    }

    .ccj-users-table tbody tr:last-child td {
        border-bottom: none;
    }

    .ccj-users-table tbody tr:hover {
        background-color: #fafcff;
    }

.ccj-user-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccj-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #4f8dfd 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.22);
}

.ccj-user-name {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.ccj-user-id {
    font-size: 12px;
    margin-top: 3px;
}

.ccj-user-email,
.ccj-job-title {
    color: #374151;
    font-size: 14px;
}

.ccj-role-badge,
.ccj-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ccj-role-manager {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.ccj-role-office-admin {
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.ccj-role-payroll {
    background: rgba(13, 202, 240, 0.16);
    color: #0c8599;
}

.ccj-role-default {
    background: rgba(108, 117, 125, 0.14);
    color: #495057;
}

.ccj-status-active {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.ccj-status-inactive {
    background: rgba(108, 117, 125, 0.14);
    color: #495057;
}

.ccj-empty-state {
    text-align: center;
    padding: 48px 20px;
}

.ccj-empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6f9;
    color: #6c757d;
    font-size: 30px;
}

.ccj-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.ccj-empty-state-text {
    font-size: 14px;
    color: #6c757d;
    max-width: 420px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .ccj-users-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ccj-page-actions {
        width: 100%;
    }

        .ccj-page-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .ccj-users-table thead th,
    .ccj-users-table tbody td {
        padding: 14px 12px;
    }

    .ccj-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

.ccj-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccj-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccj-logout-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #374151;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .ccj-logout-btn:hover {
        background: #f3f4f6;
        color: #111827;
        border-color: #bfc7cf;
    }

/* =========================================================
   Users Page
   Modern hero + toolbar + table styling
   ========================================================= */


.ccj-users-hero-content {
    position: relative;
    z-index: 1;
}

.ccj-users-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ccj-users-hero-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
}

.ccj-users-hero-text {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.ccj-users-hero-panel {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.ccj-users-hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ccj-users-hero-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ccj-users-hero-panel-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #dcfce7;
    font-size: 0.75rem;
    font-weight: 700;
}

.ccj-users-metric-card,
.ccj-users-mini-card {
    height: 100%;
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
}

    .ccj-users-metric-card.metric-blue {
        background: linear-gradient(180deg, rgba(59,130,246,0.26), rgba(255,255,255,0.10));
    }

    .ccj-users-metric-card.metric-dark {
        background: linear-gradient(180deg, rgba(15,23,42,0.55), rgba(255,255,255,0.08));
    }

.ccj-users-metric-label,
.ccj-users-mini-label {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ccj-users-metric-value,
.ccj-users-mini-value {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.ccj-users-metric-subtext {
    color: rgba(255,255,255,0.68);
    font-size: 0.8rem;
}

/* Toolbar */
.ccj-users-toolbar-actions {
    display: flex;
    justify-content: flex-end;
}

.ccj-users-toolbar .ccj-btn {
    min-width: 150px;
}

/* Table card */
.ccj-users-table-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ccj-users-table {
    margin-bottom: 0;
}

    .ccj-users-table thead th {
        background: #f8fafc;
        color: #475569;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        border-bottom: 1px solid #e5e7eb;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .ccj-users-table tbody td {
        vertical-align: middle;
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-color: #eef2f7;
    }

.ccj-users-row {
    transition: background-color 0.18s ease;
}

    .ccj-users-row:hover {
        background-color: #f8fbff;
    }

/* User cell */
.ccj-user-name-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ccj-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.ccj-user-name {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.ccj-user-id {
    font-size: 0.82rem;
}

.ccj-user-email {
    color: #334155;
    font-weight: 500;
    word-break: break-word;
}

.ccj-job-title {
    color: #475569;
    font-weight: 500;
}

/* Footer */
.ccj-users-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fcfdff;
}

.ccj-users-footer-text {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Role badge tuning */
.ccj-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.ccj-role-manager {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ccj-role-office-admin {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.ccj-role-payroll {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.ccj-role-default {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

/* Status badges */
.ccj-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.ccj-status-active {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.ccj-status-inactive {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

/* Empty state */
.ccj-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ccj-empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.8rem;
}

.ccj-empty-state-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.ccj-empty-state-text {
    color: #64748b;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ccj-users-hero {
        padding: 1.5rem;
    }

    .ccj-users-toolbar-actions {
        justify-content: stretch;
    }

        .ccj-users-toolbar-actions .ccj-btn {
            width: 100%;
        }

    .ccj-users-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .ccj-users-hero-title {
        font-size: 2rem;
    }

    .ccj-user-name-cell {
        align-items: flex-start;
    }

    .ccj-user-avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

.ccj-user-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .ccj-user-row-actions .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

/* =========================================================
   Create User Page
   ========================================================= */


.ccj-user-create-hero-content,
.ccj-user-create-hero-panel {
    position: relative;
    z-index: 1;
}

.ccj-user-create-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ccj-user-create-hero-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
}

.ccj-user-create-hero-text {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.ccj-user-create-hero-panel {
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.ccj-user-create-hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ccj-user-create-hero-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ccj-user-create-hero-panel-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.20);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 700;
}

.ccj-user-create-metric-card,
.ccj-user-create-mini-card {
    height: 100%;
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
}

    .ccj-user-create-metric-card.metric-blue {
        background: linear-gradient(180deg, rgba(59,130,246,0.26), rgba(255,255,255,0.10));
    }

    .ccj-user-create-metric-card.metric-dark {
        background: linear-gradient(180deg, rgba(15,23,42,0.55), rgba(255,255,255,0.08));
    }

.ccj-user-create-metric-label,
.ccj-user-create-mini-label {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ccj-user-create-metric-value {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.ccj-user-create-mini-value,
.ccj-user-create-metric-subtext {
    color: rgba(255,255,255,0.70);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ccj-user-create-card-modern {
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 1.75rem;
    background: #ffffff;
}

.ccj-user-create-card-header {
    margin-bottom: 1.5rem;
}

.ccj-user-create-form-section {
    padding: 1.25rem;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fcfdff;
    margin-bottom: 1.25rem;
}

.ccj-user-create-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ccj-user-create-info-panel {
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
}

.ccj-user-create-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}

    .ccj-user-create-actions .ccj-btn {
        min-width: 150px;
        justify-content: center;
    }

@media (max-width: 991.98px) {
    .ccj-user-create-hero {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .ccj-user-create-hero-title {
        font-size: 2rem;
    }

    .ccj-user-create-card-modern {
        padding: 1.25rem;
    }

    .ccj-user-create-actions .ccj-btn {
        width: 100%;
    }
}

/* =========================================================
   Info Panel (Reusable)
   ========================================================= */

.ccj-info-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.ccj-info-panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ccj-info-panel-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.2rem;
}

.ccj-info-panel-text {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ccj-info-panel.success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-color: #a7f3d0;
}

.ccj-info-panel.warning {
    background: linear-gradient(135deg, #fffbeb, #fefce8);
    border-color: #fde68a;
}

.ccj-info-panel.danger {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border-color: #fecaca;
}

.ccj-tab {
    border: none;
    background: #f3f4f6;
    color: #475467;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .ccj-tab.active {
        background: #1d4ed8;
        color: #ffffff;
    }

.ccj-tab-panel {
    display: none;
}

    .ccj-tab-panel.active {
        display: block;
    }

.ccj-mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ccj-mobile-menu-btn:hover {
        background-color: #f8fafc;
        border-color: #cbd5e1;
    }

.ccj-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ccj-mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #ffffff;
    transition: all 0.2s ease;
}

    .ccj-mobile-nav-item:hover {
        background: #f8fafc;
        color: var(--text-primary);
    }

    .ccj-mobile-nav-item.active {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
    }

@media (max-width: 991.98px) {
    .ccj-mobile-menu-btn {
        display: inline-flex;
    }

    .ccj-header-container {
        gap: 12px;
    }
}

.ccj-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.ccj-top-nav {
    display: flex;
    gap: 24px;
    height: 100%;
    margin-left: auto;
}

@media (max-width: 991.98px) {
    .ccj-top-nav {
        display: none;
    }

    .ccj-header-right {
        margin-left: auto;
    }
}