.billingsg-job-view {
    --bjv-primary: #2563eb;
    --bjv-primary-dark: #1d4ed8;
    --bjv-surface: #ffffff;
    --bjv-border: #e5e7eb;
    --bjv-muted: #64748b;
    --bjv-text: #0f172a;
    --bjv-success: #16a34a;
    --bjv-danger: #dc2626;
    --bjv-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    --bjv-shadow-lg: 0 10px 26px rgba(37, 99, 235, 0.12);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
    color: var(--bjv-text) !important;
    line-height: 1.5;
    width: 100%;
}

.billingsg-job-view *,
.billingsg-job-view *::before,
.billingsg-job-view *::after {
    box-sizing: border-box;
}

.billingsg-job-view h1,
.billingsg-job-view h2,
.billingsg-job-view h3,
.billingsg-job-view p {
    margin: 0;
    padding: 0;
}

.billingsg-job-view a {
    text-decoration: none;
}

.billingsg-job-view .bjv-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.billingsg-job-view .bjv-hero {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%) !important;
    border-radius: 14px;
    color: #fff !important;
    padding: 24px 28px;
    box-shadow: var(--bjv-shadow-lg);
}

.billingsg-job-view .bjv-hero-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.billingsg-job-view .bjv-back-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #dbeafe !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.billingsg-job-view .bjv-back-link:hover {
    color: #fff !important;
}

.billingsg-job-view .bjv-job-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd !important;
    margin-bottom: 6px;
}

.billingsg-job-view .bjv-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #fff !important;
}

.billingsg-job-view .bjv-badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.billingsg-job-view .bjv-status-badge {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    border: 1px solid transparent;
}

.billingsg-job-view .bjv-priority-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff !important;
}

.billingsg-job-view .bjv-meta-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.billingsg-job-view .bjv-meta-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 14px;
}

.billingsg-job-view .bjv-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #bfdbfe !important;
    margin-bottom: 4px;
    font-weight: 700;
}

.billingsg-job-view .bjv-meta-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
}

.billingsg-job-view .bjv-grid-2 {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.billingsg-job-view .bjv-stack {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
}

.billingsg-job-view .bjv-card {
    background: var(--bjv-surface) !important;
    border: 1px solid var(--bjv-border) !important;
    border-radius: 12px;
    box-shadow: var(--bjv-shadow);
    overflow: hidden;
}

.billingsg-job-view .bjv-card-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcfe;
}

.billingsg-job-view .bjv-card-header h3 {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.billingsg-job-view .bjv-card-header h3 i {
    color: var(--bjv-primary);
    font-size: 14px;
}

.billingsg-job-view .bjv-card-body {
    padding: 18px;
}

.billingsg-job-view .bjv-progress-track {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    position: relative;
}

.billingsg-job-view .bjv-progress-track::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 999px;
    z-index: 0;
}

.billingsg-job-view .bjv-progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 4px;
}

.billingsg-job-view .bjv-progress-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    font-size: 18px;
}

.billingsg-job-view .bjv-progress-step.is-complete .bjv-progress-icon {
    background: #ecfdf5;
    border-color: #86efac;
    color: var(--bjv-success);
}

.billingsg-job-view .bjv-progress-step.is-current .bjv-progress-icon {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.billingsg-job-view .bjv-progress-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--bjv-muted);
    line-height: 1.35;
}

.billingsg-job-view .bjv-progress-step.is-complete .bjv-progress-label,
.billingsg-job-view .bjv-progress-step.is-current .bjv-progress-label {
    color: #1e293b;
}

.billingsg-job-view .bjv-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.billingsg-job-view .bjv-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
}

.billingsg-job-view .bjv-btn-primary {
    background: var(--bjv-primary) !important;
    color: #fff !important;
    border-color: var(--bjv-primary) !important;
}

.billingsg-job-view .bjv-btn-primary:hover {
    background: var(--bjv-primary-dark) !important;
    color: #fff !important;
}

.billingsg-job-view .bjv-btn-secondary {
    background: #fff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

.billingsg-job-view .bjv-btn-secondary:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.billingsg-job-view .bjv-nda-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
}

.billingsg-job-view .bjv-nda-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--bjv-border);
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
}

.billingsg-job-view .bjv-nda-item.is-signed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.billingsg-job-view .bjv-nda-item.is-unsigned {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.billingsg-job-view .bjv-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.billingsg-job-view .bjv-info-item {
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fcfdff;
}

.billingsg-job-view .bjv-info-item.is-wide {
    grid-column: 1 / -1;
}

.billingsg-job-view .bjv-info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bjv-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.billingsg-job-view .bjv-info-value {
    display: block;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
    word-break: break-word;
}

.billingsg-job-view .bjv-timeline {
    position: relative;
    padding-left: 24px;
}

.billingsg-job-view .bjv-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}

.billingsg-job-view .bjv-timeline-item {
    position: relative;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--bjv-border);
    border-radius: 10px;
    background: #fff;
}

.billingsg-job-view .bjv-timeline-item:last-child {
    margin-bottom: 0;
}

.billingsg-job-view .bjv-timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bjv-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dbeafe;
}

.billingsg-job-view .bjv-timeline-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--bjv-primary);
    margin-bottom: 6px;
}

.billingsg-job-view .bjv-timeline-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.billingsg-job-view .bjv-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--bjv-muted);
}

.billingsg-job-view .bjv-empty-state i {
    font-size: 32px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: block;
}

.billingsg-job-view .bjv-attachments-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.billingsg-job-view .bjv-attachment-item {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--bjv-border);
    border-radius: 10px;
    background: #fcfdff;
}

.billingsg-job-view .bjv-attachment-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--bjv-primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.billingsg-job-view .bjv-attachment-meta {
    min-width: 0;
}

.billingsg-job-view .bjv-attachment-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 4px;
    word-break: break-word;
}

.billingsg-job-view .bjv-attachment-name:hover {
    color: var(--bjv-primary) !important;
}

.billingsg-job-view .bjv-attachment-sub {
    display: block;
    font-size: 12px;
    color: var(--bjv-muted);
}

.billingsg-job-view .bjv-attachment-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.billingsg-job-view .bjv-attachment-actions .bjv-btn {
    width: auto;
    min-width: 96px;
    padding: 8px 12px;
}

.billingsg-job-view .bjv-diagnosis-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.billingsg-job-view .bjv-diagnosis-updated {
    font-size: 12px;
    font-weight: 700;
    color: var(--bjv-primary);
    margin-bottom: 2px;
}

.billingsg-job-view .bjv-diagnosis-item {
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.billingsg-job-view .bjv-diagnosis-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bjv-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.billingsg-job-view .bjv-diagnosis-value {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

.billingsg-job-view .bjv-section-divider {
    margin: 18px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--bjv-border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bjv-muted);
}

@media (max-width: 991px) {
    .billingsg-job-view .bjv-grid-2 {
        grid-template-columns: 1fr;
    }

    .billingsg-job-view .bjv-meta-row {
        grid-template-columns: 1fr;
    }

    .billingsg-job-view .bjv-info-grid {
        grid-template-columns: 1fr;
    }

    .billingsg-job-view .bjv-progress-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .billingsg-job-view .bjv-progress-track::before {
        display: none;
    }

    .billingsg-job-view .bjv-attachment-item {
        grid-template-columns: auto 1fr;
    }

    .billingsg-job-view .bjv-attachment-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .billingsg-job-view .bjv-hero {
        padding: 18px;
    }

    .billingsg-job-view .bjv-title {
        font-size: 1.35rem !important;
    }
}
