/*
 * TaxAI 2266g7wh11f
 * AI仕訳一覧・共通プロ仕様UI canonical layout
 *
 * このファイルを唯一の正規仕様とし、
 * 2266g7wh8〜2266g7wh11eの重複ルールを廃止する。
 */

.taxai-ai-journal-pro-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.taxai-ai-journal-pro-scroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.taxai-ai-journal-pro-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate;
    border-spacing: 0;
}

.taxai-ai-journal-pro-table th,
.taxai-ai-journal-pro-table td {
    box-sizing: border-box;
    vertical-align: middle;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/*
 * 固定列合計：906px
 * 摘要列だけが残余幅を使用する。
 */

/* 1 ID */
.taxai-ai-journal-pro-table th:nth-child(1),
.taxai-ai-journal-pro-table td:nth-child(1) {
    width: 42px;
}

/* 2 日付 */
.taxai-ai-journal-pro-table th:nth-child(2),
.taxai-ai-journal-pro-table td:nth-child(2) {
    width: 92px;
}

/* 3 摘要 */
.taxai-ai-journal-pro-table th:nth-child(3),
.taxai-ai-journal-pro-table td:nth-child(3) {
    width: auto;
    min-width: 0;
}

/* 4 金額 */
.taxai-ai-journal-pro-table th:nth-child(4),
.taxai-ai-journal-pro-table td:nth-child(4) {
    width: 74px;
}

/* 5 OCR */
.taxai-ai-journal-pro-table th:nth-child(5),
.taxai-ai-journal-pro-table td:nth-child(5) {
    width: 84px;
}

/* 6 状態 */
.taxai-ai-journal-pro-table th:nth-child(6),
.taxai-ai-journal-pro-table td:nth-child(6) {
    width: 82px;
}

/* 7 AI信頼度 */
.taxai-ai-journal-pro-table th:nth-child(7),
.taxai-ai-journal-pro-table td:nth-child(7) {
    width: 74px;
}

/* 8 AI理由 */
.taxai-ai-journal-pro-table th:nth-child(8),
.taxai-ai-journal-pro-table td:nth-child(8) {
    width: 82px;
}

/* 9 原本 */
.taxai-ai-journal-pro-table th:nth-child(9),
.taxai-ai-journal-pro-table td:nth-child(9) {
    width: 136px;
}

/* 10 操作 */
.taxai-ai-journal-pro-table th:nth-child(10),
.taxai-ai-journal-pro-table td:nth-child(10) {
    width: 176px;
}

.taxai-ai-journal-pro-table thead th {
    height: 44px;
    padding: 9px 7px;
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #f6f8fb;
    border-top: 1px solid #dfe6ef;
    border-bottom: 1px solid #dfe6ef;
}

.taxai-ai-journal-pro-table tbody tr {
    height: 64px;
    transition: background-color .16s ease;
}

.taxai-ai-journal-pro-table tbody tr:hover {
    background: #f7faff;
}

.taxai-ai-journal-pro-table tbody td {
    height: 64px;
    padding: 9px 7px;
    overflow: hidden;
    color: #172033;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 1px solid #edf1f6;
}

/* ID */
.taxai-ai-journal-pro-table td:nth-child(1) {
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 日付 */
.taxai-ai-journal-pro-table td:nth-child(2) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 摘要 */
.taxai-ai-journal-pro-table td:nth-child(3) {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 金額 */
.taxai-ai-journal-pro-table td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 状態系 */
.taxai-ai-journal-pro-table td:nth-child(5),
.taxai-ai-journal-pro-table td:nth-child(6),
.taxai-ai-journal-pro-table td:nth-child(7),
.taxai-ai-journal-pro-table td:nth-child(8) {
    overflow-wrap: normal;
    word-break: keep-all;
}

/* 原本セル */
.taxai-ai-journal-pro-table td.taxai-col-attachment {
    padding: 7px 8px;
}

.taxai-original-file {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.taxai-original-file__preview {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #f8fafc !important;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.taxai-original-file__preview > span {
    position: relative;
    display: block;
    width: 13px;
    height: 16px;
    border: 1.5px solid #64748b;
    border-radius: 2px;
    box-sizing: border-box;
}

.taxai-original-file__preview > span::before,
.taxai-original-file__preview > span::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    height: 1px;
    background: #94a3b8;
}

.taxai-original-file__preview > span::before {
    top: 5px;
}

.taxai-original-file__preview > span::after {
    top: 9px;
}

.taxai-original-file__name {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.taxai-original-file__name:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.taxai-original-empty {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 操作列 */
.taxai-ai-journal-pro-table td.taxai-col-actions {
    padding: 7px 5px;
    overflow: hidden;
}

.taxai-journal-action-row {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.taxai-journal-action-row > form {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.taxai-journal-action-row > a,
.taxai-journal-action-row > button,
.taxai-journal-action-row > form > button,
.taxai-journal-action-row [role="button"] {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 56px !important;
    max-width: 108px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.taxai-journal-action-row > span,
.taxai-journal-action-row > div {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/*
 * カード実幅が狭い場合だけ横スクロールを許可する。
 * ブラウザ幅ではなくテーブルコンテナ幅に近い基準へ寄せる。
 */
@media (max-width: 1100px) {
    .taxai-ai-journal-pro-scroll {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .taxai-ai-journal-pro-table {
        width: 1040px !important;
        min-width: 1040px !important;
        max-width: none !important;
    }
}

@media (max-width: 767px) {
    .taxai-ai-journal-pro-table {
        width: 1000px !important;
        min-width: 1000px !important;
    }
}

/* TaxAI 2266g7wh11f canonical end */

/*
 * TaxAI 2266g7wh11g
 * Shared original-file component identity.
 */

.taxai-ai-journal-pro-table
[data-taxai-original-component="2266g7wh11g"] {
    box-sizing: border-box;
}

/* TaxAI 2266g7wh11g component identity end */
