/* dzungmedia — OCR Upload module (Version 1) */

.tvc-main--ocr {
    overflow-x: hidden;
    padding-bottom: 4rem;
}

.tvc-ocr-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.tvc-ocr-hero {
    padding: 3.5rem 0 1.5rem;
    position: relative;
}

.tvc-ocr-hero::before {
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(37, 99, 255, 0.14), transparent 65%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.tvc-ocr-hero__content {
    margin: 0 auto;
    max-width: 920px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.tvc-ocr-hero__title {
    font-family: var(--tvc-font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.tvc-ocr-hero__title span {
    background: linear-gradient(135deg, #7eb8ff, #2563ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tvc-ocr-hero__lead {
    color: var(--tvc-text-muted);
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    line-height: 1.75;
    margin: 0 auto;
    max-width: 760px;
}

.tvc-ocr-upload-section {
    padding-top: 2rem;
}

.tvc-ocr-upload-card,
.tvc-ocr-grid-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(145deg, rgba(19, 35, 63, 0.92), rgba(8, 18, 35, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    padding: 1.5rem;
}

.tvc-ocr-dropzone {
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(109, 186, 255, 0.28);
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 1.75rem 1.25rem;
    position: relative;
    text-align: center;
    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.tvc-ocr-dropzone:hover,
.tvc-ocr-dropzone.is-dragover {
    background: rgba(37, 99, 255, 0.06);
    border-color: rgba(109, 186, 255, 0.55);
    box-shadow: 0 0 32px rgba(37, 99, 255, 0.12);
    transform: translateY(-2px);
}

.tvc-ocr-dropzone__input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.tvc-ocr-dropzone__icon {
    color: var(--tvc-blue-light);
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    text-shadow: 0 0 24px rgba(37, 99, 255, 0.35);
}

.tvc-ocr-dropzone__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.tvc-ocr-dropzone__text {
    color: var(--tvc-text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.tvc-ocr-dropzone__meta {
    color: var(--tvc-text-soft);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.tvc-ocr-selected {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.85rem;
}

.tvc-ocr-selected__preview {
    align-items: center;
    background: rgba(37, 99, 255, 0.12);
    border-radius: 10px;
    color: var(--tvc-blue-light);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.tvc-ocr-selected__preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tvc-ocr-selected__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tvc-ocr-selected__info strong {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvc-ocr-selected__info span {
    color: var(--tvc-text-muted);
    font-size: 0.8rem;
}

.tvc-ocr-selected__clear {
    background: transparent;
    border: none;
    color: var(--tvc-text-muted);
    padding: 0.25rem;
}

.tvc-ocr-selected__clear:hover {
    color: var(--tvc-text);
}

.tvc-ocr-notes {
    margin-top: 1rem;
}

.tvc-ocr-notes__input {
    background: rgba(2, 8, 23, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--tvc-text) !important;
    font-size: 14px !important;
}

.tvc-ocr-notes__input:focus {
    border-color: var(--tvc-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.15) !important;
}

.tvc-ocr-progress {
    margin: 1rem 0 0.75rem;
}

.tvc-ocr-progress__bar {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.tvc-ocr-progress__fill {
    background: linear-gradient(90deg, #2563ff, #6dbaff);
    border-radius: inherit;
    box-shadow: 0 0 16px rgba(37, 99, 255, 0.45);
    height: 100%;
    transition: width 0.2s ease;
    width: 0;
}

.tvc-ocr-progress__label {
    color: var(--tvc-text-muted);
    display: block;
    font-size: 0.8rem;
    margin-top: 0.45rem;
}

.tvc-ocr-alert {
    border-radius: 12px;
    font-size: 0.88rem;
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem;
}

.tvc-ocr-alert--error {
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.28);
    color: var(--tvc-text-soft);
}

.tvc-ocr-alert--success {
    background: rgba(37, 99, 255, 0.12);
    border: 1px solid rgba(37, 99, 255, 0.28);
    color: var(--tvc-text-soft);
}

.tvc-ocr-pipeline {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 14, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
}

.tvc-ocr-pipeline__eyebrow {
    color: var(--tvc-blue-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.tvc-ocr-pipeline__steps {
    align-items: center;
    color: var(--tvc-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.35rem;
}

.tvc-ocr-pipeline__steps i {
    color: rgba(109, 186, 255, 0.55);
    font-size: 0.75rem;
}

.tvc-ocr-grid-card__head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tvc-ocr-grid-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.tvc-ocr-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    max-height: 620px;
    overflow: auto;
}

.tvc-ocr-table {
    color: var(--tvc-text-soft);
    font-size: 0.86rem;
    margin-bottom: 0;
}

.tvc-ocr-table thead th {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: var(--tvc-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.tvc-ocr-table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.tvc-ocr-table__empty td {
    color: var(--tvc-text-muted);
    padding: 2rem 1rem;
    text-align: center;
}

.tvc-ocr-table__filename {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvc-ocr-thumb {
    align-items: center;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tvc-ocr-thumb__img {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.tvc-ocr-thumb__pdf {
    align-items: center;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 157, 46, 0.24);
    border-radius: 8px;
    color: #ff9d2e;
    display: inline-flex;
    font-size: 1.2rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tvc-ocr-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    text-transform: uppercase;
}

.tvc-ocr-status--uploaded {
    background: rgba(37, 99, 255, 0.14);
    border: 1px solid rgba(109, 186, 255, 0.24);
    color: #6dbaff;
}

.tvc-ocr-status--ocr-processing {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 214, 102, 0.28);
    color: #ffd666;
}

.tvc-ocr-status--ocr-completed {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.24);
    color: #34d399;
}

.tvc-ocr-status--ocr-failed {
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 157, 46, 0.24);
    color: #ff9d2e;
}

.tvc-ocr-status--ocr-timeout {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #f87171;
}

.tvc-ocr-status--unsupported-file-type {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}

.tvc-ocr-status--data-extracted,
.tvc-ocr-status--extracting-data {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.24);
    color: #34d399;
}

.tvc-ocr-extract-btn--disabled,
.tvc-ocr-extract-btn:disabled {
    background: #64748b !important;
    border-color: #64748b !important;
    color: #e2e8f0 !important;
    opacity: 0.85;
    cursor: not-allowed;
}

.tvc-ocr-extract-wrap {
    display: inline-block;
    cursor: not-allowed;
}

.tvc-ocr-unsupported-warn {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #fbbf24;
    font-weight: 500;
}

.tvc-ocr-delete-modal__name {
    color: var(--tvc-text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.tvc-ocr-delete-btn {
    color: #f87171 !important;
}

.tvc-ocr-delete-btn:hover {
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

.tvc-ocr-status--pendingocr {
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 157, 46, 0.24);
    color: #ff9d2e;
}

.tvc-ocr-status--parsing-completed,
.tvc-ocr-status--normalization-completed,
.tvc-ocr-status--import-completed {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.24);
    color: #34d399;
}

.tvc-ocr-status--parsing-failed,
.tvc-ocr-status--normalization-failed,
.tvc-ocr-status--import-failed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #f87171;
}

.tvc-ocr-status--import-pending,
.tvc-ocr-status--parsing-no-rows {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.24);
    color: #93c5fd;
}

/* —— OCR Review Modal (enterprise import tool) —— */
.tvc-ocr-review-modal .modal-dialog {
    max-width: min(1280px, 96vw);
}

.tvc-ocr-review-modal__content {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 900px);
}

.tvc-ocr-review-modal__header {
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}

.tvc-ocr-review-modal__title-block {
    flex: 1;
    min-width: 0;
}

.tvc-ocr-review-modal__title-block .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.tvc-ocr-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tvc-ocr-review-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
}

.tvc-ocr-review-badge--rows {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}

.tvc-ocr-review-badge--parsed {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}

.tvc-ocr-review-badge--review {
    background: rgba(251, 146, 60, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

.tvc-ocr-review-badge--package {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

.tvc-ocr-review-modal__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0.75rem;
}

.tvc-ocr-review-toolbar {
    align-items: flex-end;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.tvc-ocr-review-broadcast {
    align-items: flex-end;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: flex-end;
    min-width: 280px;
}

.tvc-ocr-review-field {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    min-width: 0;
}

.tvc-ocr-review-field__label {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tvc-ocr-review-select--kenh {
    min-width: 140px;
}

.tvc-ocr-review-modal__footer {
    align-items: stretch;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.65rem;
    padding-top: 0.65rem;
}

.tvc-ocr-review-modal__footer-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.tvc-ocr-sql-import-zone {
    width: 100%;
}

.tvc-ocr-sql-import-loading {
    align-items: center;
    background: rgba(37, 99, 255, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 10px;
    color: #bfdbfe;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.tvc-ocr-sql-import-loading__hint {
    color: rgba(255, 255, 255, 0.55);
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    margin-top: 0.15rem;
}

.tvc-ocr-sql-import-result {
    background: rgba(2, 8, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.tvc-ocr-sql-import-result--success {
    border-color: rgba(52, 211, 153, 0.35);
}

.tvc-ocr-sql-import-result--warning {
    border-color: rgba(251, 146, 60, 0.4);
}

.tvc-ocr-sql-import-result--error {
    border-color: rgba(248, 113, 113, 0.4);
}

.tvc-ocr-sql-import-result__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.tvc-ocr-sql-import-result__meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
}

.tvc-ocr-sql-import-result__stats {
    display: grid;
    gap: 0.25rem;
    font-size: 0.88rem;
}

.tvc-ocr-sql-import-result__stats strong {
    color: #f8fafc;
    font-weight: 600;
}

.tvc-ocr-sql-import-result__grid {
    display: grid;
    gap: 0.35rem 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    margin-bottom: 0.5rem;
}

.tvc-ocr-sql-import-result__item {
    font-size: 0.82rem;
}

.tvc-ocr-sql-import-result__label {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
}

.tvc-ocr-sql-import-result__value {
    color: #f8fafc;
    font-weight: 500;
}

.tvc-ocr-sql-import-result__failed {
    margin-top: 0.65rem;
}

.tvc-ocr-sql-import-result__failed summary {
    color: #fdba74;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
}

.tvc-ocr-sql-import-result__failed-table {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    width: 100%;
}

.tvc-ocr-sql-import-result__failed-table th,
.tvc-ocr-sql-import-result__failed-table td {
    border-color: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.5rem;
}

.tvc-ocr-review-toast--warning {
    background: rgba(251, 146, 60, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

.tvc-ocr-review-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.tvc-ocr-btn--sql {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #1e40af 100%) !important;
    border: 1px solid rgba(147, 197, 253, 0.35) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    color: #fff !important;
    font-weight: 600;
}

.tvc-ocr-btn--sql:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    color: #fff !important;
}

.tvc-ocr-runtime-debug {
    background: rgba(2, 8, 23, 0.75);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.tvc-ocr-runtime-debug[hidden] {
    display: none !important;
}

.tvc-ocr-runtime-debug__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.tvc-ocr-runtime-debug__grid {
    display: grid;
    gap: 0.35rem 1rem;
    grid-template-columns: minmax(160px, auto) 1fr;
    margin-bottom: 0.65rem;
}

.tvc-ocr-runtime-debug__label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.tvc-ocr-runtime-debug__value {
    color: #f8fafc;
    font-size: 0.88rem;
    word-break: break-word;
}

.tvc-ocr-runtime-debug__value--mono {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8rem;
}

.tvc-ocr-runtime-debug__json-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.tvc-ocr-runtime-debug__json {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e2e8f0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
    margin: 0;
    max-height: 180px;
    overflow: auto;
    padding: 0.65rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.tvc-ocr-review-search {
    background: rgba(2, 8, 23, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--tvc-text) !important;
    max-width: 360px;
    min-width: 220px;
}

.tvc-ocr-review-select {
    background: rgba(2, 8, 23, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--tvc-text) !important;
    flex: 1 1 auto;
    font-size: 0.82rem !important;
    max-width: 360px;
    min-height: 32px;
    min-width: 160px;
    padding: 0.25rem 2rem 0.25rem 0.55rem !important;
}

.tvc-ocr-review-select option {
    background: #fff;
    color: #0f172a;
}

.tvc-ocr-review-status {
    margin-bottom: 0.85rem;
}

.tvc-ocr-review-toast {
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    padding: 0.7rem 1rem;
}

.tvc-ocr-review-toast--success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}

.tvc-ocr-review-toast__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.tvc-ocr-review-toast__detail {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}

.tvc-ocr-review-toast--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #f87171;
}

.tvc-ocr-btn-spinner {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.tvc-ocr-review-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.tvc-ocr-review-table {
    color: var(--tvc-text);
    font-size: 0.88rem;
    margin-bottom: 0;
}

.tvc-ocr-review-table thead th {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    white-space: nowrap;
    z-index: 2;
}

.tvc-ocr-review-th--price,
.tvc-ocr-review-td--price {
    text-align: right;
}

.tvc-ocr-review-table tbody tr:hover {
    background: rgba(37, 99, 255, 0.08);
}

.tvc-ocr-review-table td,
.tvc-ocr-review-table th {
    border-color: rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
}

.tvc-ocr-review-input {
    background: rgba(2, 8, 23, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--tvc-text) !important;
    font-size: 0.85rem !important;
    min-width: 72px;
    padding: 0.35rem 0.45rem !important;
}

.tvc-ocr-review-input--price {
    font-variant-numeric: tabular-nums;
    min-width: 88px;
    text-align: right;
}

.tvc-ocr-review-input:focus {
    border-color: rgba(96, 165, 250, 0.45) !important;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 255, 0.15) !important;
}

.tvc-ocr-review-input--wide {
    min-width: 140px;
}

.tvc-ocr-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.tvc-ocr-result-modal__meta {
    color: var(--tvc-text-muted);
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
}

.tvc-ocr-result-modal__status {
    margin-bottom: 0.85rem;
    text-align: left;
}

.tvc-ocr-result-modal__textarea {
    background: rgba(2, 8, 23, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--tvc-text) !important;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px !important;
    line-height: 1.6 !important;
    min-height: 360px;
    resize: vertical;
}

.tvc-ocr-modal .modal-content {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(145deg, rgba(19, 35, 63, 0.96), rgba(8, 18, 35, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tvc-text);
}

.tvc-ocr-modal__body {
    min-height: 200px;
    text-align: center;
}

.tvc-ocr-modal__body img {
    border-radius: 12px;
    max-height: 70vh;
    max-width: 100%;
}

.tvc-ocr-modal__pdf {
    padding: 2rem 1rem;
}

.tvc-ocr-modal__pdf i {
    color: #ff9d2e;
    font-size: 4rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .tvc-ocr-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tvc-ocr-table__filename {
        max-width: 120px;
    }

    .tvc-ocr-dropzone {
        min-height: 180px;
    }

    .tvc-ocr-row-actions {
        justify-content: flex-start;
    }
}

.tvc-ocr-column-mapping {
    background: rgba(37, 99, 255, 0.08);
    border: 1px solid rgba(37, 99, 255, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
}

.tvc-ocr-column-mapping__header {
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-top: 0.25rem;
}

.tvc-ocr-review-row--parsed {
    background: transparent;
}

.tvc-ocr-review-row--needs-review {
    background: rgba(255, 193, 7, 0.12);
}

.tvc-ocr-review-row--package {
    background: rgba(59, 130, 246, 0.06);
}

.tvc-ocr-status-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.3rem 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.tvc-ocr-status-badge--parsed {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.tvc-ocr-status-badge--needsreview {
    background: rgba(251, 146, 60, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.4);
    color: #fdba74;
}

.tvc-ocr-status-badge--packageprice {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}
