/* TaxAI Ver.115.4 OCR layout/color repair */

body {
    background: #f4f7fb !important;
}

.taxai-content,
.taxai-main,
.taxai-page,
.taxai-pro-page {
    background: #f4f7fb !important;
}

/* OCR画面カードを通常カード表示へ戻す */
.taxai-card,
.taxai-pro-card,
.taxai-stat-card,
.taxai-panel {
    background: #ffffff !important;
    border: 1px solid #dbe5f3 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08) !important;
}

/* 見出し・数値・説明文に出ている入力欄風の枠を消す */
.taxai-card h1,
.taxai-card h2,
.taxai-card h3,
.taxai-card h4,
.taxai-card p,
.taxai-card span,
.taxai-card strong,
.taxai-card small,
.taxai-pro-card h1,
.taxai-pro-card h2,
.taxai-pro-card h3,
.taxai-pro-card h4,
.taxai-pro-card p,
.taxai-pro-card span,
.taxai-pro-card strong,
.taxai-pro-card small,
.taxai-stat-card h1,
.taxai-stat-card h2,
.taxai-stat-card h3,
.taxai-stat-card h4,
.taxai-stat-card p,
.taxai-stat-card span,
.taxai-stat-card strong,
.taxai-stat-card small {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* テーブルは自然な白背景 */
table,
.taxai-table {
    background: #ffffff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

th {
    background: #f8fafc !important;
    color: #0f172a !important;
}

td {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* 本物のフォームだけ維持 */
input,
select,
textarea {
    background: #ffffff !important;
    border: 1px solid #dbe5f3 !important;
    border-radius: 12px !important;
}

/* OCRページ中央寄せ幅 */
.taxai-v86-main,
.taxai-pro-main,
.taxai-main-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* v1154.1 stronger OCR-only reset */
body:has(.taxai-ocr-page) .taxai-card *,
body:has(.taxai-ocr-page) .taxai-pro-card *,
body:has(.taxai-ocr-page) .taxai-stat-card * {
    box-shadow: none !important;
}

body:has(.taxai-ocr-page) h1,
body:has(.taxai-ocr-page) h2,
body:has(.taxai-ocr-page) h3,
body:has(.taxai-ocr-page) p,
body:has(.taxai-ocr-page) span,
body:has(.taxai-ocr-page) div {
    background-image: none !important;
}

body:has(.taxai-ocr-page) .taxai-stat-card,
body:has(.taxai-ocr-page) .taxai-metric-card {
    min-height: 132px !important;
    padding: 24px !important;
}

body:has(.taxai-ocr-page) .taxai-stat-card > *,
body:has(.taxai-ocr-page) .taxai-metric-card > * {
    display: block !important;
    width: auto !important;
    max-width: none !important;
}

body:has(.taxai-ocr-page) table *,
body:has(.taxai-ocr-page) .taxai-table * {
    border-radius: 0 !important;
    box-shadow: none !important;
}
