.job-group {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

body.dark-mode .job-group {
    background: #1e293b;
    border-color: #334155;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

body.dark-mode .job-header {
    border-bottom-color: #334155;
}

.job-header.collapsible:hover {
    background-color: #f1f5f9;
    border-radius: 6px;
    margin: 0 -8px 12px -8px;
    padding: 8px 8px 8px 8px;
}

body.dark-mode .job-header.collapsible:hover {
    background-color: #334155;
}

.job-header .header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.job-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.job-header .collapse-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.job-files {
    max-height: none;
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.job-files.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.job-date {
    font-weight: 600;
    color: #475569;
}

body.dark-mode .job-date {
    color: #e2e8f0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    align-self: flex-end;
    width: fit-content;
}

.status-badge.in-progress { background: #ff6b35; color: #ffffff; }
.status-badge.ready { background: #16a34a; color: #ffffff; }
.status-badge.delivered { background: #64748b; color: #ffffff; }

.job-file {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

body.dark-mode .job-file {
    background: #0f172a;
    border-color: #334155;
}

.file-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.dark-mode .file-thumb {
    background: #1e293b;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb {
    font-size: 0.6rem;
    color: #94a3b8;
    text-align: center;
}

.file-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-all;
}

body.dark-mode .file-name {
    color: #f1f5f9;
}

.file-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

body.dark-mode .file-meta {
    color: #94a3b8;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

body.dark-mode .progress-bar {
    background: #334155;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}
/* Estimated Ready Time Styles */
.estimated-time {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    margin: -8px 0 12px 0;
    border-radius: 6px;
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

body.dark-mode .estimated-time {
    background: #1e3a5f;
    color: #93c5fd;
    border-left-color: #3b82f6;
}

.estimated-time.overdue {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #dc2626;
}

body.dark-mode .estimated-time.overdue {
    background: #7f1d1d;
    color: #fca5a5;
    border-left-color: #ef4444;
}

/* Refresh button in estimated time */
.estimated-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-time-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.refresh-time-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode .refresh-time-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.refresh-time-btn svg {
    width: 14px;
    height: 14px;
}

/* Time disclaimer */
.time-disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    margin-top: 4px;
    padding-left: 12px;
}

body.dark-mode .time-disclaimer {
    color: #94a3b8;
}
