﻿
:root {
    --psn-font: "PSN Common", "TT Commons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --psn-navy-dark: #060D26;
    --psn-navy-light: #16225C;
    --psn-blue: #16225C;
    --psn-orange: #f58118;
    --psn-orange-dark: #DD741C;
    --psn-orange-soft: #FDE6D2;
    --psn-blue-soft: #EAF2FF;
    --primary-color: var(--psn-orange);
    --primary-hover: var(--psn-orange-dark);
    --secondary-color: #4d5b7f;
    --success-color: #10b981;
    --background: var(--psn-blue-soft);
    --card-bg: #ffffff;
    --border-color: #E4E9F2;
    --text-primary: var(--psn-navy-dark);
    --text-secondary: #4d5b7f;
    --text-muted: #9CA3AF;
    --badge-active-bg: #D1FAE5;
    --badge-active-text: #065F46;
    --badge-inactive-bg: #FEE2E2;
    --badge-inactive-text: #991B1B;
    --badge-info-bg: #DBEAFE;
    --badge-info-text: #1E40AF;
    --badge-warning-bg: #FEF3C7;
    --badge-warning-text: #92400E;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    font-family: var(--psn-font);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background: var(--psn-navy-dark);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.4;
    }

    .header .container {
        position: relative;
        z-index: 1;
    }

    .header h1 {
        font-weight: 700;
        font-size: 2rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        letter-spacing: -0.025em;
    }

        .header h1 i {
            font-size: 2rem;
        }

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Filter Card */
.filter-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .filter-card:hover {
        box-shadow: var(--shadow-lg);
    }

    .filter-card h5 {
        font-weight: 600;
        font-size: 1.125rem;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
    letter-spacing: 0.01em;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    width: 100%;
    background: white;
    color: var(--text-primary);
}

    .form-control:focus, .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(245, 129, 24, 0.16);
        background: white;
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-secondary);
}

.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(245, 129, 24, 0.2);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(245, 129, 24, 0.28);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Search Section */
.filter-controls {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.search-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

    .search-section > div:first-child {
        grid-column: 1;
    }

.view-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    align-items: center;
}

.view-option {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    min-height: 42px;
    padding: 0 0.875rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.filter-controls .form-control,
.filter-controls .input-group-text,
.filter-controls .btn-primary {
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

.search-button-wrap {
    display: flex;
    align-items: center;
}

    .view-option i {
        font-size: 0.875rem;
    }

    .view-option[data-view="my-rfis"] {
        background: #e0f2fe;
        border-color: #bae6fd;
        color: #075985;
        box-shadow: 0 2px 4px rgba(2, 132, 199, 0.15);
    }

    .view-option[data-view="all-active-jobs"] {
        background: var(--badge-active-bg);
        border-color: #A7F3D0;
        color: var(--badge-active-text);
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
    }

    .view-option.add-job-option {
        background: #ecfdf5;
        border-color: #99f6e4;
        color: #0f766e;
        box-shadow: 0 2px 4px rgba(15, 118, 110, 0.12);
    }

    .view-option.add-job-option:hover {
        background: #ccfbf1;
        border-color: #5eead4;
        color: #115e59;
    }

    .view-option:hover,
    .view-option.active {
        filter: brightness(0.97);
        transform: translateY(-1px);
    }

    .view-option.active {
        border-width: 2px;
        box-shadow: 0 0 0 3px rgba(245, 129, 24, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
        filter: brightness(0.95);
        position: relative;
    }

    .view-option.active::after {
        content: '';
        position: absolute;
        left: 0.875rem;
        right: 0.875rem;
        bottom: 0.25rem;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        opacity: 0.7;
    }

.view-option-title {
    white-space: nowrap;
}

#btn-search-jobs.active-search {
    background: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(245, 129, 24, 0.22), 0 2px 4px rgba(245, 129, 24, 0.2);
    filter: brightness(0.98);
}

/* Checkbox */
.form-check {
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    min-height: 52px;
}

    .form-check:hover {
        border-color: var(--primary-color);
        background: var(--psn-orange-soft);
    }

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 !important;
    margin-top: 0 !important;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    position: relative;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

        .form-check-input:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 0.875rem;
            font-weight: 700;
        }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(245, 129, 24, 0.16);
        outline: none;
    }

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    user-select: none;
    margin-bottom: 0;
}

/* Job List */
.job-list {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.job-item {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

    .job-item.job-item-expanded {
        border-color: var(--primary-color);
        box-shadow: 0 10px 22px rgba(245, 129, 24, 0.14);
    }

    .job-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: var(--primary-color);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .job-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 8px 16px rgba(245, 129, 24, 0.14);
        transform: translateY(-2px);
    }

        .job-item:hover::before {
            opacity: 1;
        }

.job-expand-indicator {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0.3125rem 0.625rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: #fff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: var(--transition);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    white-space: nowrap;
}

    .job-item-expanded .job-expand-indicator {
        border-color: var(--primary-color);
        color: #fff;
        background: #eef2ff;
        background: var(--primary-color);
    }

.job-form-panel {
    position: relative;
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -0.875rem;
    cursor: default;
}

.job-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.job-form-panel iframe {
    width: 100%;
    height: min(78vh, 920px);
    min-height: 620px;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.job-form-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.job-form-loaded .job-form-loading {
    display: none;
}

body.job-focus-mode {
    overflow: hidden;
}

body.job-focus-mode .header,
body.job-focus-mode #jobForm,
body.job-focus-mode .action-group-header,
body.job-focus-mode .action-group:not(:has(.job-item-expanded)),
body.job-focus-mode .job-item:not(.job-item-expanded),
body.job-focus-mode .empty-state {
    display: none !important;
}

body.job-focus-mode .container.main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.job-focus-mode .job-list {
    display: block;
}

body.job-focus-mode .job-item.job-item-expanded {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 18px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    cursor: default;
}

body.job-focus-mode .job-item.job-item-expanded::before {
    opacity: 0;
}

body.job-focus-mode .job-item.job-item-expanded .job-header {
    flex: 0 0 auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

body.job-focus-mode .job-item.job-item-expanded .job-form-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 12px -18px -18px;
    padding-top: 0;
    border-top: 0;
}

body.job-focus-mode .job-item.job-item-expanded .job-form-panel iframe {
    flex: 1 1 auto;
    height: auto;
    min-height: calc(100vh - 155px);
    border-radius: 0;
}

/* Add Job wizard */
.add-job-body {
    min-height: 100vh;
    background: var(--psn-blue-soft);
}

.add-job-shell {
    position: relative;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.add-job-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.add-job-header h1 {
    margin: 6px 0 4px;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
}

.add-job-header p {
    margin: 0;
    color: var(--text-secondary);
}

.add-job-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
}

.add-job-header-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-top: 2px;
}

.add-job-page-login-form {
    margin: 0;
}

.add-job-page-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
}

.add-job-page-login-button:hover {
    border-color: var(--psn-orange);
    background: #fff;
    color: var(--psn-orange-dark);
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.account-chip.account-chip-button {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.account-chip-button .account-avatar {
    width: 32px;
    height: 32px;
}

.account-chip-button:hover,
.account-chip-link:hover {
    border-color: var(--psn-orange);
    background: #fff;
    color: var(--psn-orange-dark);
}

.account-chip-dark {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.account-chip-dark.account-chip-link:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.account-avatar {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
}

.account-avatar-initials {
    background: var(--psn-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
}

.account-avatar-generic {
    background: #e2e8f0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.account-chip-dark .account-avatar-generic {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.account-chip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-job-progress {
    min-width: 220px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.add-job-progress-track {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-color);
}

.add-job-progress-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.add-job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.add-job-wizard {
    padding: 0;
    overflow: hidden;
}

.wizard-step {
    display: none;
    padding: 24px;
}

.wizard-step.active {
    display: block;
}

.wizard-eyebrow {
    margin: 0 0 6px;
    color: var(--psn-navy-light);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wizard-step h2 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.wizard-help {
    max-width: 760px;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.wizard-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.wizard-option input {
    margin-top: 3px;
}

.wizard-option span {
    color: var(--text-primary);
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.wizard-free-answer,
.wizard-note,
.wizard-grid input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: white;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.wizard-note-label,
.wizard-grid label span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.wizard-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--text-primary);
    font-weight: 800;
}

.wizard-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--psn-orange);
}

.address-lookup {
    position: relative;
    margin: 4px 0 16px;
}

.address-lookup label {
    display: block;
}

.address-lookup label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.address-lookup-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    background: white;
}

.address-lookup-input i {
    color: var(--primary-color);
}

.address-lookup-input input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.address-lookup-results {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: var(--shadow-md);
}

.address-lookup-results.show {
    display: block;
}

.address-lookup-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
    background: white;
    color: var(--text-primary);
    text-align: left;
    font-weight: 650;
    line-height: 1.25;
}

.address-lookup-option:last-child {
    border-bottom: 0;
}

.address-lookup-option:hover,
.address-lookup-option:focus {
    background: #eff6ff;
}

.address-lookup-option i {
    margin-top: 1px;
    color: var(--primary-color);
}

.address-lookup-option span {
    overflow-wrap: anywhere;
}

.address-lookup-empty {
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 650;
}

.wizard-manual-address-label {
    margin: 16px 0 10px;
    color: var(--text-secondary);
    font-weight: 800;
}

.wizard-section-heading {
    margin-top: 24px !important;
}

.wizard-pin-label {
    display: block;
    max-width: 220px;
}

.wizard-pin-test {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 18px;
    padding: 14px 18px;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    background: #fffbeb;
    color: #78350f;
}

.wizard-pin-test span,
.wizard-pin-test small {
    font-weight: 800;
}

.wizard-pin-test strong {
    color: #111827;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0;
}

.wizard-pin-label span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wizard-pin-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.wizard-send-diagnostics {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    background: #f9fafb;
    text-align: left;
}

.wizard-send-diagnostics > strong {
    color: var(--text-primary);
}

.wizard-send-diagnostic {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.wizard-send-diagnostic span {
    font-weight: 800;
    text-transform: capitalize;
}

.wizard-send-diagnostic small {
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.wizard-send-diagnostic.sent {
    border-left: 4px solid #16a34a;
}

.wizard-send-diagnostic.skipped {
    border-left: 4px solid #f59e0b;
}

.wizard-send-diagnostic.failed {
    border-left: 4px solid #dc2626;
}

.wizard-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    border: 1px dashed #93c5fd;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    cursor: pointer;
}

.wizard-upload input {
    display: none;
}

.wizard-uploaded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.wizard-upload-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
}

.wizard-upload-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.wizard-upload-file:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.wizard-upload-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.wizard-upload-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.wizard-upload-remove:hover {
    border-color: #ef4444;
    color: #b91c1c;
    background: #fef2f2;
}

.wizard-upload-state {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wizard-upload-row.uploading .wizard-upload-state {
    color: #1d4ed8;
}

.wizard-upload-row.uploaded .wizard-upload-state {
    color: var(--badge-active-text);
}

.wizard-complete-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
    font-size: 1.8rem;
}

.wizard-assessment-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 20px;
}

.wizard-assessment-summary {
    margin: 18px 0 20px;
}

.wizard-assessment-summary-card {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
}

.wizard-assessment-summary-card h3,
.wizard-assessment-summary-card h4,
.wizard-assessment-section-title {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.35;
}

.wizard-assessment-summary-card h4 {
    margin-top: 16px;
    font-size: 0.88rem;
}

.wizard-assessment-summary-details {
    display: grid;
    gap: 8px;
    margin: 0;
}

.wizard-assessment-summary-details div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--psn-blue-soft);
}

.wizard-assessment-summary-details dt {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
}

.wizard-assessment-summary-details dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 750;
}

.wizard-assessment-responses {
    display: grid;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.wizard-assessment-response {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    padding: 9px 10px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.wizard-assessment-response:first-child {
    border-top: 0;
}

.wizard-assessment-response-question {
    display: flex;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.78rem;
    line-height: 1.35;
}

.wizard-assessment-response-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wizard-assessment-response-answer {
    color: #075985;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.45;
}

.wizard-assessment-response-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wizard-assessment-response-empty {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-style: italic;
}

.wizard-assessment-section-title {
    margin: 18px 0 10px;
}

.wizard-assessment-result {
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
}

.wizard-assessment-result-next-steps {
    border-color: var(--psn-orange);
    border-left: 5px solid var(--psn-orange);
    background: var(--psn-orange-soft);
    box-shadow: 0 10px 24px rgba(245, 129, 24, 0.14);
}

.wizard-assessment-result-next-steps .wizard-assessment-number {
    background: var(--psn-orange);
}

.wizard-assessment-result-next-steps .wizard-assessment-title {
    color: var(--psn-navy-dark);
}

.wizard-assessment-result-next-steps .wizard-assessment-answer {
    border-color: var(--psn-orange);
    border-left-color: var(--psn-orange-dark);
    background: #fff;
    color: var(--psn-navy-dark);
}

.wizard-assessment-result-next-steps .wizard-assessment-note {
    color: var(--psn-navy-dark);
}

.wizard-assessment-result + .wizard-assessment-result::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.wizard-assessment-number {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    flex: 0 0 auto;
}

.wizard-assessment-content {
    min-width: 0;
}

.wizard-assessment-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--text-primary);
    font-weight: 900;
    line-height: 1.35;
}

.wizard-assessment-title {
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 900 !important;
    line-height: 1.35;
}

.wizard-assessment-answer,
.wizard-assessment-note {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wizard-assessment-answer {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--psn-navy-light);
    background: var(--psn-blue-soft);
    color: var(--psn-navy-light);
    font-weight: 800;
}

.wizard-assessment-note {
    color: var(--text-secondary);
    white-space: normal;
}

.wizard-contact-button {
    margin-left: auto;
    white-space: nowrap;
}

.wizard-debug-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 20px;
}

.wizard-debug-step {
    display: grid;
    grid-template-columns: 32px 84px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
}

.wizard-debug-index {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.wizard-debug-status {
    text-transform: uppercase;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 850;
}

.wizard-debug-step p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.wizard-debug-step.debug-success {
    border-color: #86efac;
    background: #f0fdf4;
}

.wizard-debug-step.debug-warning {
    border-color: #facc15;
    background: #fefce8;
}

.wizard-debug-step.debug-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.wizard-status {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 650;
    white-space: pre-wrap;
}

.wizard-status-error {
    color: #b91c1c !important;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0;
}

    .job-header > div:first-child {
        flex: 1;
    }

.job-reference {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.job-item:hover .job-reference {
    color: var(--primary-hover);
}

.job-header .text-muted {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badges */
.badge {
    padding: 0.3125rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.02em;
}

button.badge {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

button.badge:hover {
    filter: brightness(0.96);
}

button.badge:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

    .badge i {
        font-size: 0.75rem;
    }

.badge-active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
}

.badge-inactive {
    background: var(--badge-inactive-bg);
    color: var(--badge-inactive-text);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
}

.badge-info {
    background: var(--badge-info-bg);
    color: var(--badge-info-text);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

/* Job Details Grid */
.job-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 1rem;
    margin-top: 0.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    padding: 0;
    line-height: 1.25;
}

    .detail-item i {
        color: var(--text-secondary);
        font-size: 0.875rem;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
    min-width: fit-content;
}

.detail-value {
    color: var(--text-primary);
    word-break: break-word;
    font-weight: 500;
}

.job-due-date-editor {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    max-width: 260px;
}

.job-due-date-editor span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.job-due-date-editor input {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 4px 7px;
}

.job-due-date-editor small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    min-width: 44px;
}

.rfi-state-comment {
    background: #e0f2fe;
    color: #075985;
}

/* RFI Badges */
.rfi-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0;
    flex-wrap: wrap;
}

    .rfi-badges .badge {
        background: var(--badge-warning-bg);
        color: var(--badge-warning-text);
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.15);
        border-radius: 20px;
    }

    /* Assigned to Me — blue / actionable */
    .rfi-badges .badge-assigned {
        background: #e0f2fe;
        color: #075985;
        box-shadow: 0 2px 4px rgba(2, 132, 199, 0.15);
        border: 1px solid #bae6fd;
    }

    /* Open Items — orange / attention */
    .rfi-badges .badge-open {
        background: #fff7ed;
        color: #9a3412;
        box-shadow: 0 2px 4px rgba(249, 115, 22, 0.15);
        border: 1px solid #fed7aa;
    }
    .rfi-badges .badge-total-no {
        background: #f3f4f6; /* light gray */
        color: #374151; /* dark gray text */
        box-shadow: 0 2px 4px rgba(107, 114, 128, 0.12);
        border: 1px solid var(--border-color);
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        opacity: 0.3;
        color: var(--text-muted);
    }

    .empty-state h5 {
        font-weight: 600;
        font-size: 1.25rem;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        color: var(--text-muted);
        font-size: 0.9375rem;
    }

/* Loading Spinner */
.spinner-border {
    display: none;
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.loading .spinner-border {
    display: inline-block;
}

.loading .btn-primary {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }

    .job-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .search-section {
        grid-template-columns: 1fr;
    }

        .search-section > div {
            width: 100%;
        }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
    }

    .job-item {
        padding: 0.875rem 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

        .header h1 {
            font-size: 1.5rem;
        }

            .header h1 i {
                font-size: 1.5rem;
            }

    .filter-card {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }

        .filter-card h5 {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

    .job-list {
        gap: 0.625rem;
    }

    .job-item {
        padding: 0.875rem;
    }

        .job-item:hover {
            transform: none;
        }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .job-header-actions {
        align-self: stretch;
        justify-content: space-between;
    }

    .job-reference {
        font-size: 1rem;
    }

    .job-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .detail-item {
        font-size: 0.8125rem;
    }

        .detail-item i {
            font-size: 0.9375rem;
        }

    .badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }

    .search-section {
        gap: 0.5rem;
    }

    .view-options {
        width: 100%;
    }

    .view-option {
        flex: 1;
    }

    .form-control, .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .filter-controls .form-control,
    .filter-controls .input-group-text,
    .filter-controls .btn-primary,
    .filter-controls .view-option {
        min-height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .add-job-header {
        flex-direction: column;
        align-items: stretch;
    }

    .add-job-header-actions {
        align-items: stretch;
    }

    .add-job-page-login-form {
        margin-bottom: 14px;
    }

    .add-job-page-login-button {
        width: auto;
        align-self: flex-end;
    }

    .add-job-progress {
        min-width: 0;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

        .empty-state i {
            font-size: 3rem;
        }

        .empty-state h5 {
            font-size: 1.125rem;
        }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .filter-card {
        padding: 1rem;
    }

    .job-list {
        gap: 0.5rem;
    }

    .job-item {
        padding: 0.75rem;
    }

    .job-reference {
        font-size: 1rem;
    }

    .rfi-badges {
        gap: 0.375rem;
        margin-top: 0.375rem;
        padding-top: 0;
    }

    .detail-item {
        font-size: 0.75rem;
    }

        .detail-item i {
            font-size: 0.875rem;
            width: 18px;
        }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0F172A;
        --card-bg: #1E293B;
        --border-color: #334155;
        --text-primary: #F1F5F9;
        --text-secondary: #94A3B8;
        --text-muted: #64748B;
    }

    .input-group-text,
    .form-check {
        background: #1E293B;
    }

    .form-control,
    .form-select {
        background: #1E293B;
        color: var(--text-primary);
    }

    .job-item:hover {
        background: linear-gradient(to right, rgba(245, 129, 24, 0.10), transparent);
    }
}

/* Print Styles */
@media print {
    .header,
    .filter-card,
    .search-section {
        display: none;
    }

    .job-item {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}


/* Checklist Items Container */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

    .checklist-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

/* Status Badge */
.checklist-status {
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

    .status-badge.complete {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.open-rfi {
        background: #fff3cd;
        color: #856404;
    }

    .status-badge.incomplete {
        background: #f8d7da;
        color: #721c24;
    }

/* Header Section */
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.item-description {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.btn-more {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

    .btn-more:hover {
        color: #0b5ed7;
        text-decoration: underline;
    }

/* Explanatory Note */
.explanatory-note {
    background: #f8f9fa;
    padding: 0.75rem;
    border-left: 3px solid #0d6efd;
    margin: 0.75rem 0;
    border-radius: 4px;
}

    .explanatory-note p {
        margin: 0;
        color: #555;
        font-size: 0.95rem;
    }

/* Answer Section */
.answer-box {
    background: #f0f7ff;
    padding: 0.75rem;
    border-left: 3px solid #28a745;
    margin: 0.5rem 0;
    border-radius: 4px;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.answer-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.answer-text {
    color: #555;
}

.answer-note {
    background: #f8f9fa;
    padding: 0.75rem;
    border-left: 3px solid #6c757d;
    margin: 0.5rem 0;
    border-radius: 4px;
}

    .answer-note p {
        margin: 0;
        color: #555;
    }

/* Incomplete Section */
.incomplete-section {
    padding: 0.75rem;
    background: #ffe6e6;
    border-radius: 4px;
    text-align: center;
}

.no-answer {
    margin: 0;
    color: #721c24;
    font-style: italic;
}

/* RFI Section */
.rfi-section {
    margin: 0.75rem 0;
}

.rfi-card,
.rfi-history-card {
    background: #fffbf0;
    border: 1px solid #ffe0b2;
    border-left: 3px solid #ff9800;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.rfi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ffe0b2;
}

.rfi-label {
    margin: 0;
    font-weight: 600;
    color: #ff9800;
}

.rfi-date {
    margin: 0;
    color: #ff9800;
    font-weight: 500;
}

.rfi-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ffe0b2;
}

.rfi-history-date {
    margin: 0;
    font-weight: 600;
    color: #ff9800;
}

.rfi-history-closed {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.rfi-detail {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

    .rfi-detail strong {
        color: #333;
    }

/* Attachments */
.rfi-attachments {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ffe0b2;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ffe0b2;
}

.attachment-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.attachment-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-word;
}

    .attachment-link:hover {
        text-decoration: underline;
    }

/* Files Section */
.files-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.files-header {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.file-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.file-item i {
    font-size: 1.5rem;
    color: #6c757d;
}

.file-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-word;
}

    .file-link:hover {
        text-decoration: underline;
    }



.btn-rfi-history {
    background: #fff3cd;
    border: 1px solid #ff9800;
    color: #856404;
    /*padding: 0.5rem 1rem;*/
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-rfi-history:hover {
        background: #ffe0b2;
        color: #654321;
    }

/* Empty State */
.empty-checklist {
    text-align: center;
    padding: 2rem;
    color: #999;
}

    .empty-checklist i {
        font-size: 2.5rem;
        display: block;
        margin-bottom: 0.5rem;
        color: #ccc;
    }

    .empty-checklist p {
        margin: 0;
    }

@media (max-width: 768px) {
    .address-secondary {
        display: block; /* Moves to next line on mobile */
        margin-top: 2px; /* Optional spacing */
    }
}
/* ===== User Section (Header Right) ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

    .user-section span {
        font-weight: 500;
        color: #fff;
    }

/* ===== Unified Buttons (Sign In & Logout) ===== */
.btn-signin,
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    background: var(--psn-orange);
    box-shadow: 0 3px 8px rgba(245, 129, 24, 0.25);
}

    /* Hover effects */
    .btn-signin:hover,
    .btn-logout:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(245, 129, 24, 0.32);
    }

    /* Active/pressed */
    .btn-signin:active,
    .btn-logout:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(245, 129, 24, 0.2);
    }

/* ===== Logout variation ===== */
.btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

    .btn-logout:hover {
        box-shadow: 0 6px 12px rgba(239, 68, 68, 0.35);
    }

    /* Icon alignment */
    .btn-signin i,
    .btn-logout i {
        font-size: 1rem;
    }

/* ===== Mobile Adjustments ===== */
@media (max-width: 768px) {
    .user-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .btn-signin,
    .btn-logout {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
input[readonly] {
    background-color: #e9ecef; /* light gray background */
    opacity: 1; /* keep text readable */
    cursor: not-allowed; /* show disabled-style cursor */
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

    .loader-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loader {
    width: 3rem;
    height: 3rem;
    border: 4px solid #ccc;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.job-list.collapsed {
    display: none;
}

.action-group-header {
    cursor: pointer;
    user-select: none;
}

.collapse-icon {
    transition: transform 0.3s ease;
    margin-left: 0;
    color: var(--primary-color);
    flex-shrink: 0;
}

    .collapse-icon.rotated {
        transform: rotate(-90deg);
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ── NEW ACTION GROUP HEADER ── */

.action-group {
    margin-bottom: 24px;
}

.action-group-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 14px 0;
    margin-bottom: 14px;
    border-bottom: 1.5px solid #e2e8f0;
    overflow: hidden;
}

    /* Animated accent line that slides in */
    .action-group-header::after {
        content: '';
        position: absolute;
        bottom: -1.5px;
        left: 0;
        height: 2.5px;
        width: 0;
        background: #1e293b;
        border-radius: 999px;
        animation: lineExpand 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

@keyframes lineExpand {
    to {
        width: 100%;
    }
}

.action-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
}

    .action-group-icon i {
        font-size: 14px;
        color: #64748b;
    }

.action-group-title {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1;
}

.group-divider {
    flex: 1;
    /* intentionally empty — spacer */
}

.group-cnt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e293b;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Optional: subtle fade-in for the whole header */
.action-group-header {
    animation: fadeSlideDown 0.3s ease both;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.my-rfi-toggle input {
    display: none;
}

/* Card container */
.toggle-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 14px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e0e0e0;
}

    /* Hover effect */
    .toggle-card:hover {
        background: #e9f5ee;
    }

/* Toggle switch background */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 50px;
    transition: 0.25s ease;
}

    /* Circle */
    .toggle-switch::before {
        content: "";
        position: absolute;
        width: 22px;
        height: 22px;
        background: white;
        border-radius: 50%;
        top: 2px;
        left: 2px;
        transition: 0.25s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

/* Checked state */
.my-rfi-toggle input:checked + .toggle-card .toggle-switch {
    background: #198754; /* green 😉 */
}

    .my-rfi-toggle input:checked + .toggle-card .toggle-switch::before {
        transform: translateX(24px);
    }

/* Active card state */
.my-rfi-toggle input:checked + .toggle-card {
    background: #e6f4ea;
    border-color: #198754;
}

/* Text styling */
.toggle-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

.toggle-sub {
    font-size: 0.85rem;
    color: #6c757d;
}
