/* TaxAI OCR Split Pro UI v1190 */

.ocr-split-pro {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ocr-split-pro * {
    box-sizing: border-box;
}

.ocr-split-hero {
    background:
        radial-gradient(circle at 90% 12%, rgba(245,158,11,.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #fff7ed 100%) !important;
}

.ocr-split-tabs,
.ocr-split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ocr-split-tab,
.ocr-split-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #b45309 !important;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ocr-split-tab:hover,
.ocr-split-btn:hover {
    background: #fff7ed;
}

.ocr-split-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.ocr-split-kpi {
    min-height: 124px;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
}

.ocr-split-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,158,11,.11), transparent 48%);
    pointer-events: none;
}

.ocr-split-kpi-label {
    position: relative;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.ocr-split-kpi-value {
    position: relative;
    color: #0f172a;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.ocr-split-kpi-note {
    position: relative;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.ocr-split-main {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
}

.ocr-split-panel {
    padding: 22px !important;
}

.ocr-split-panel-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 6px;
}

.ocr-split-panel-sub {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.ocr-preview-box {
    min-height: 420px;
    border-radius: 18px;
    border: 1px dashed #f59e0b;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,237,.76)),
        repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(245,158,11,.08) 32px);
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.ocr-preview-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #b45309;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 14px;
    border: 1px solid #fed7aa;
}

.ocr-preview-title {
    color: #0f172a;
    font-weight: 900;
    font-size: 18px;
}

.ocr-preview-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 8px;
}

.ocr-result-list {
    display: grid;
    gap: 12px;
}

.ocr-result-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.ocr-result-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.ocr-result-value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    word-break: break-word;
}

.ocr-confidence {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.ocr-confidence.warn {
    background: #fffbeb;
    color: #b45309;
}

.ocr-confidence.danger {
    background: #fef2f2;
    color: #dc2626;
}

.ocr-correction-box {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.ocr-correction-item {
    padding: 14px;
    border-radius: 16px;
    border-left: 5px solid #f59e0b;
    background: #fff7ed;
}

.ocr-correction-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.ocr-correction-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 4px;
}

.ocr-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ocr-flow-step {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.ocr-flow-num {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #b45309;
    font-weight: 900;
    margin-bottom: 8px;
}

.ocr-flow-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.ocr-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.ocr-table-wrap table {
    min-width: 840px;
}

@media (max-width: 1180px) {
    .ocr-split-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ocr-split-main {
        grid-template-columns: 1fr;
    }

    .ocr-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ocr-split-grid,
    .ocr-flow {
        grid-template-columns: 1fr;
    }

    .ocr-result-item {
        grid-template-columns: 1fr;
    }

    .ocr-preview-box {
        min-height: 300px;
    }
}
