.po-document-review {
    --podr-primary: #5B9BD5;
    --podr-primary-dark: #4178BE;
    --podr-primary-soft: rgba(91, 155, 213, 0.1);
    --podr-text: #1e293b;
    --podr-text-muted: #64748b;
    --podr-bg: #f8fafc;
    --podr-bg-dark: #1e293b;
    --podr-border: #e2e8f0;
    --podr-success: #10b981;
    --podr-danger: #ef4444;
    --podr-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --podr-radius: 8px;
    --podr-radius-lg: 12px;
}
.po-document-review {
    width: 100%;
    height: 100%;
    min-height: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--podr-text);
    background: var(--podr-bg);
}
.podr-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--podr-radius-lg);
    box-shadow: var(--podr-shadow);
    overflow: hidden;
}
.podr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--podr-bg-dark);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.podr-toolbar-left,
.podr-toolbar-center,
.podr-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.podr-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.podr-page-indicator {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.podr-zoom-level {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    min-width: 45px;
    text-align: center;
}
.podr-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.podr-sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--podr-bg);
    border-right: 1px solid var(--podr-border);
    display: flex;
    flex-direction: column;
}
.podr-sidebar:last-child {
    border-right: none;
    border-left: 1px solid var(--podr-border);
}
.podr-thumbnails {
    width: 160px;
    min-width: 160px;
}
.podr-thumbnails-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.podr-thumbnail {
    position: relative;
    background: #fff;
    border: 2px solid var(--podr-border);
    border-radius: var(--podr-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}
.podr-thumbnail:hover {
    border-color: var(--podr-primary);
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.2);
}
.podr-thumbnail.active {
    border-color: var(--podr-primary);
    box-shadow: 0 0 0 3px var(--podr-primary-soft);
}
.podr-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.podr-thumbnail-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--podr-bg-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}
.podr-thumbnail-box-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--podr-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.podr-canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    overflow: auto;
    position: relative;
}
.podr-canvas-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.podr-canvas-container canvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}
.podr-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.9);
    z-index: 10;
    gap: 12px;
}
.podr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--podr-border);
    border-top-color: var(--podr-primary);
    border-radius: 50%;
    animation: podr-spin 0.8s linear infinite;
}
@keyframes podr-spin {
    to { transform: rotate(360deg); }
}
.podr-loading span {
    color: var(--podr-text-muted);
    font-size: 13px;
}
.podr-error {
    color: var(--podr-danger);
    font-size: 13px;
}
.podr-info-panel {
    width: 280px;
    min-width: 280px;
}
.podr-info-header {
    padding: 16px;
    border-bottom: 1px solid var(--podr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.podr-info-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--podr-text);
}
.podr-box-count {
    font-size: 12px;
    color: var(--podr-primary);
    font-weight: 500;
    background: var(--podr-primary-soft);
    padding: 3px 8px;
    border-radius: 4px;
}
.podr-box-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.podr-box-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--podr-border);
    border-radius: var(--podr-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.podr-box-item:hover {
    border-color: var(--podr-primary);
    background: var(--podr-primary-soft);
}
.podr-box-item.selected {
    border-color: var(--podr-primary);
    background: var(--podr-primary-soft);
}
.podr-box-item.selected .podr-box-item-check {
    color: var(--podr-primary);
}
.podr-box-item-check {
    font-size: 16px;
    color: var(--podr-text-muted);
    transition: color 0.15s ease;
}
.podr-box-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.podr-box-item-label {
    font-size: 13px;
    color: var(--podr-text);
    font-weight: 500;
}
.podr-box-item-confidence {
    font-size: 11px;
    color: var(--podr-text-muted);
    background: var(--podr-bg);
    padding: 2px 6px;
    border-radius: 3px;
}
.podr-empty {
    text-align: center;
    color: var(--podr-text-muted);
    padding: 20px;
    font-size: 13px;
}
.podr-quick-actions {
    padding: 12px;
    border-top: 1px solid var(--podr-border);
    display: flex;
    gap: 8px;
}
.podr-quick-actions .podr-btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
}
.podr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid var(--podr-border);
}
.podr-footer-info {
    font-size: 13px;
    color: var(--podr-text-muted);
}
.podr-footer-actions {
    display: flex;
    gap: 10px;
}
.podr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--podr-radius);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.podr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.podr-btn-primary {
    background: var(--podr-primary);
    color: #fff;
}
.podr-btn-primary:hover:not(:disabled) {
    background: var(--podr-primary-dark);
}
.podr-btn-secondary {
    background: var(--podr-bg);
    color: var(--podr-text);
    border: 1px solid var(--podr-border);
}
.podr-btn-secondary:hover:not(:disabled) {
    background: var(--podr-border);
}
.podr-btn-outline {
    background: transparent;
    color: var(--podr-text);
    border: 1px solid var(--podr-border);
}
.podr-btn-outline:hover:not(:disabled) {
    border-color: var(--podr-primary);
    color: var(--podr-primary);
    background: var(--podr-primary-soft);
}
.podr-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 4px;
}
.podr-btn-icon:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
@media (max-width: 1200px) {
    .podr-info-panel {
        width: 240px;
        min-width: 240px;
    }
}
@media (max-width: 992px) {
    .podr-sidebar.podr-thumbnails {
        width: 120px;
        min-width: 120px;
    }
    .podr-info-panel {
        width: 220px;
        min-width: 220px;
    }
}
@media (max-width: 768px) {
    .podr-content {
        flex-direction: column;
    }
    .podr-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--podr-border);
    }
    .podr-thumbnails-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .podr-thumbnail {
        width: 80px;
        flex-shrink: 0;
    }
    .podr-info-panel {
        max-height: 200px;
    }
    .podr-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .podr-toolbar-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}
@media (prefers-color-scheme: dark) {
    .po-document-review.podr-dark {
        --podr-text: #e2e8f0;
        --podr-text-muted: #94a3b8;
        --podr-bg: #1e293b;
        --podr-bg-dark: #0f172a;
        --podr-border: #334155;
    }
    .po-document-review.podr-dark .podr-wrapper {
        background: var(--podr-bg);
    }
    .po-document-review.podr-dark .podr-box-item {
        background: #334155;
    }
    .po-document-review.podr-dark .podr-canvas-area {
        background: #0f172a;
    }
}
@keyframes podr-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.podr-box-item {
    animation: podr-fade-in 0.2s ease forwards;
}
.podr-box-item:nth-child(1) { animation-delay: 0ms; }
.podr-box-item:nth-child(2) { animation-delay: 30ms; }
.podr-box-item:nth-child(3) { animation-delay: 60ms; }
.podr-box-item:nth-child(4) { animation-delay: 90ms; }
.podr-box-item:nth-child(5) { animation-delay: 120ms; }
