/* Group header row */
.group-header-row {
    background: linear-gradient(135deg, #f8f0d0 0%, #fdf5e0 100%) !important;
    border-left: 4px solid #e1b922;
}
.group-header-row:hover {
    background: linear-gradient(135deg, #f3e8c0 0%, #f8f0d0 100%) !important;
}
.group-header-cell {
    padding: 10px 15px !important;
}
.group-header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.group-toggle {
    background: none;
    border: 2px solid #e1b922;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #d12627;
    flex-shrink: 0;
}
.group-toggle:hover {
    background: #e1b922;
    color: #222;
}
.group-workflow-id {
    font-weight: 700;
    color: #d12627;
    font-size: 12px;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e1b922;
}
.group-info-label {
    color: #999;
    font-weight: 400;
}
.group-info-value {
    color: #333;
}
.group-info-value.bold {
    font-weight: 600;
}
.group-separator {
    color: #ccc;
    margin: 0 2px;
}
.photos-btn {
    background: #fff;
    color: #d12627;
    border: 2px solid #e1b922;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.photos-btn:hover {
    background: #e1b922;
    color: #222;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(225, 185, 34, 0.4);
}
/* Column labels row within group */
.group-columns-row {
    background: #f5f5f5 !important;
    border-bottom: 2px solid #e0e0e0;
}
.group-columns-row th {
    background: #f5f5f5 !important;
    color: #777 !important;
    padding: 6px 10px !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: left;
}
/* Product rows within group */
.group-product-row td:first-child {
    padding-left: 36px;
}
/* Photo grid in modal */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px 0;
}
.photo-item {
    display: flex;
    flex-direction: column;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.photo-item:hover {
    border-color: #e1b922;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.photo-item.file-item .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    font-size: 56px;
    background: #f8f8f8;
}
.photo-filename {
    padding: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-loading .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #eee;
    border-top: 4px solid #d12627;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Fullscreen image viewer */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
}
.fullscreen-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
}
.fullscreen-viewer img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}
.fullscreen-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}
.fullscreen-close:hover {
    color: #e1b922;
}
