/* TaxAI Ver.115.5 共通UIフォームCSS誤適用修正 */

/* 共通背景 */
body,
.taxai-page,
.taxai-os-page,
.taxai-pro-page,
.taxai-v86-page,
.taxai-content,
.taxai-main,
.taxai-main-content {
    background: #f5f7fb !important;
    color: #0f172a !important;
}

/* カード共通 */
.taxai-card,
.taxai-pro-card,
.taxai-stat-card,
.taxai-metric-card,
.taxai-panel,
.taxai-section,
.taxai-widget {
    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 :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-pro-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-stat-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-metric-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-panel :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-section :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label),
.taxai-widget :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,b,i,label) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* divにフォーム枠が誤爆しているケースを解除。ただしカード本体・テーブル・フォーム部品は除外 */
.taxai-card div:not(.taxai-card):not(.taxai-pro-card):not(.taxai-stat-card):not(.taxai-metric-card):not(.taxai-panel):not(.taxai-section):not(.taxai-widget):not(.taxai-table-wrap):not(.table-responsive):not(.form-group):not(.input-group):not(.form-control),
.taxai-pro-card div:not(.taxai-card):not(.taxai-pro-card):not(.taxai-stat-card):not(.taxai-metric-card):not(.taxai-panel):not(.taxai-section):not(.taxai-widget):not(.taxai-table-wrap):not(.table-responsive):not(.form-group):not(.input-group):not(.form-control),
.taxai-stat-card div:not(.taxai-card):not(.taxai-pro-card):not(.taxai-stat-card):not(.taxai-metric-card):not(.taxai-panel):not(.taxai-section):not(.taxai-widget):not(.taxai-table-wrap):not(.table-responsive):not(.form-group):not(.input-group):not(.form-control),
.taxai-metric-card div:not(.taxai-card):not(.taxai-pro-card):not(.taxai-stat-card):not(.taxai-metric-card):not(.taxai-panel):not(.taxai-section):not(.taxai-widget):not(.taxai-table-wrap):not(.table-responsive):not(.form-group):not(.input-group):not(.form-control) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* 本物のフォームだけフォーム表示に限定 */
input,
select,
textarea,
.form-control,
.taxai-form-control,
.taxai-input,
.taxai-select,
.taxai-textarea {
    background: #ffffff !important;
    border: 1px solid #dbe5f3 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* ボタンはフォーム解除対象から外し、TaxAI標準へ */
button,
.btn,
.taxai-btn {
    border-radius: 12px !important;
}

/* テーブル */
table,
.taxai-table {
    width: 100%;
    background: #ffffff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

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

.taxai-table-wrap,
.table-responsive {
    overflow-x: auto !important;
    border-radius: 16px !important;
    border: 1px solid #dbe5f3 !important;
    background: #ffffff !important;
}

/* ページ幅の標準化 */
.taxai-v86-main,
.taxai-pro-main,
.taxai-main-inner,
.taxai-content-inner {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 左メニューに影響させない */
.taxai-sidebar,
.taxai-common-sidebar,
.taxai-os-sidebar {
    background: #0f172a !important;
    color: #ffffff !important;
}
