.progress-section {
    background: var(--shades-50);
    border-radius: 0.75rem;
    padding: 1.5625rem;
    margin-bottom: 0.9375rem;
}

.progress-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--shades-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9375rem;
}

.progress-title > span:first-child {
    white-space: nowrap;
}

.progress-title #progressText {
    white-space: nowrap;
    margin-left: 0.625rem;
    flex: 1;
    min-width: 12.5rem;
}

.progress-title .refresh-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--shades-400);
}

.files-section {
    overflow-y: auto;
    padding-right: 0.25rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--shades-600);
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(61, 62, 64, 0.08);
}

.files-table th {
    background: var(--shades-50);
    padding: 0.9375rem;
    text-align: left;
    font-weight: 600;
    color: var(--shades-600);
    border: none;
    vertical-align: top;
}

.files-table td {
    padding: 0.9375rem;
    border: none;
    border-bottom: 0.0625rem solid var(--shades-150);
    color: var(--shades-400);
    font-size: 0.875rem;
    vertical-align: top;
}

.files-table .filename-cell {
    max-width: 15.625rem;
    word-break: break-word;
}



.files-table .details-cell {
    max-width: 31.25rem;
    word-break: break-word;
    white-space: pre-line;
    vertical-align: top;
    text-align: left;
}

.files-table .details-cell > div {
    text-align: left;
    vertical-align: top;
}

.files-table .file-info-cell {
    max-width: 15.625rem;
    word-break: break-word;
    vertical-align: top;
}

.file-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-section {
    margin-bottom: 0.25rem;
    padding-bottom: 0.375rem;
    border-bottom: 0.0625rem solid var(--shades-200);
}

.category-label {
    font-weight: 500;
    color: var(--shades-400);
    font-size: 0.75rem;
    margin-right: 0.375rem;
}

.category-value {
    color: var(--shades-600);
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-section {
    margin-bottom: 0.25rem;
}

.timestamps-section {
    border-top: 0.0625rem solid var(--shades-200);
    padding-top: 0.375rem;
}

.timestamp-item {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

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

.timestamp-label {
    font-weight: 500;
    color: var(--shades-400);
    font-size: 0.75rem;
    margin-right: 0.375rem;
}

.timestamp-value {
    color: var(--shades-600);
    font-size: 0.8125rem;
}

.statistics-section {
    border-top: 0.0625rem solid var(--shades-200);
    padding-top: 0.375rem;
    color: var(--success-500);
    font-size: 0.8125rem;
}

.files-table tr:hover {
    background: var(--shades-50);
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.queued {
    background-color: var(--shades-400);
    color: var(--white);
}

.status-badge.processing {
    background-color: var(--primary-blue-500);
    color: var(--white);
}

.status-badge.success {
    background-color: var(--success-500);
    color: var(--white);
}

.status-badge.error {
    background-color: var(--danger-500);
    color: var(--white);
}

.status-badge.skipped {
    background-color: var(--shades-150);
    color: var(--shades-600);
}

.no-files {
    text-align: center;
    padding: 2.5rem;
    color: var(--shades-400);
}

.no-files i {
    font-size: 3rem;
    margin-bottom: 0.9375rem;
    opacity: 0.5;
}

.status-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
    gap: 0.9375rem;
    margin-bottom: 1.25rem;
}

.status-tab {
    padding: 1.25rem 0.9375rem;
    background: var(--shades-50);
    border: 0.125rem solid var(--shades-200);
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--shades-400);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    text-align: center;
    min-height: 6.25rem;
    justify-content: center;
}

.status-tab:hover {
    color: var(--primary-blue-500);
    background: var(--white);
    border-color: var(--primary-blue-500);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(2, 104, 206, 0.35);
}

.status-tab.active {
    color: var(--primary-blue-500);
    border-color: var(--primary-blue-500);
    background: var(--white);
    box-shadow: 0 0.25rem 0.75rem rgba(2, 104, 206, 0.35);
}

.status-count {
    background: var(--white);
    color: var(--shades-400);
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(61, 62, 64, 0.08);
    border: 0.125rem solid var(--shades-200);
    text-shadow: 0 0.0625rem 0.125rem rgba(61, 62, 64, 0.08);
    transition: all 0.3s ease;
}

.status-count:hover {
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.5rem rgba(61, 62, 64, 0.08);
}

.status-count:active {
    transform: scale(0.95);
}

.status-tab.active .status-count {
    background: var(--primary-blue-500);
    box-shadow: 0 0.25rem 0.75rem rgba(2, 104, 206, 0.35);
    transform: scale(1.05);
}

.status-tab:hover .status-count {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.status-tab i {
    font-size: 1.25rem;
    margin-bottom: 0.3125rem;
}

.status-tab.queued i {
    color: var(--primary-blue-400);
}

.status-tab.processing i {
    color: var(--primary-blue-500);
}

.status-tab.success i {
    color: var(--success-500);
}

.status-tab.error i {
    color: var(--danger-500);
}

        .status-tab.skipped i {
    color: var(--primary-blue-400);
}

.status-tab:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.status-number {
    font-size: 40.125rem;
    font-weight: 800;
    margin-bottom: 0.3125rem;
    text-shadow: 0 0.125rem 0.25rem rgba(61, 62, 64, 0.08);
    color: var(--shades-600);
}

.extraction-analysis {
    background-color: var(--shades-50);
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    padding: 0.625rem;
    margin-top: 0;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: pre-wrap; /* Preserve line breaks and spaces */
    text-align: left;
}

.extraction-analysis-header {
    font-weight: 600;
    color: var(--shades-600);
    margin-bottom: 0.5rem;
    font-size: 1em;
}

.extraction-section {
    padding: 0.5rem;
    background-color: var(--white);
    border-radius: 0.375rem;
    border-left: 0.1875rem solid var(--primary-blue-500);
}

.extraction-section-title {
    font-weight: 600;
    color: var(--primary-blue-500);
    margin-bottom: 0.375rem;
    font-size: 0.95em;
}

.extraction-item {
    margin-left: 1rem;
    margin-bottom: 0.25rem;
    color: var(--shades-300);
    font-size: 0.9em;
}

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

.extraction-item-sub {
    margin-left: 20.25rem;
    margin-bottom: 0.375rem;
    color: var(--shades-400);
    font-size: 0.85em;
    line-height: 1.3;
}

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

.error-detail {
    color: var(--danger-500);
    font-style: italic;
    font-size: 0.9em;
}

.circuit-breaker-info {
    color: var(--primary-blue-400);
    font-weight: 600;
    font-size: 0.95em;
    background-color: var(--primary-blue-50);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border-left: 0.1875rem solid var(--primary-blue-400);
}

.error-type {
    color: var(--primary-blue-500);
    font-weight: 500;
    font-size: 0.9em;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3125rem;
}

.detail-label {
    font-weight: 500;
    color: var(--shades-600);
}

.detail-value {
    flex-grow: 1;
    text-align: right;
    color: var(--shades-400);
}

.detail-value.error {
    color: var(--danger-500);
    font-weight: 600;
}

.file-item {
    background-color: var(--shades-50);
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    padding: 0.9375rem;
    margin-bottom: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 600;
    color: var(--shades-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%; /* Adjust as needed */
}

.file-status {
    flex-shrink: 0;
}

.file-details {
    font-size: 0.9em;
    color: var(--shades-400);
}

.details-cell {
    max-width: 25rem;
    word-break: break-word;
    white-space: pre-line;
    vertical-align: top;
    text-align: left;
}

@media (max-width: 48em) {

    .status-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .status-tab {
        padding: 0.9375rem 0.625rem;
        font-size: 0.75rem;
        min-height: 5rem;
    }

    .status-tab i {
        font-size: 1rem;
    }

    .status-count {
        font-size: 1rem;
        padding: 0.375rem 0.875rem;
        min-width: 1.875rem;
        background: none;
        border: none;
        box-shadow: none;
        color: inherit;
    }

    .status-number {
        font-size: 1.875rem;
    }

    .files-table {
        font-size: 0.75rem;
    }

    .files-table th,
    .files-table td {
        padding: 0.625rem 0.5rem;
    }

    .files-table .timestamps-cell {
        max-width: 12.5rem;
    }

    .timestamp-item {
        margin-bottom: 0.1875rem;
    }

    .timestamp-label {
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }

    .timestamp-value {
        font-size: 0.75rem;
    }
}
