/*
 * TaxAI 2266g7wh21
 * Accounting send queue detail / Common Professional UI
 */

html.taxai-accounting-detail-pro,
html.taxai-accounting-detail-pro body {
    background:
        radial-gradient(
            circle at 72% -10%,
            rgba(37, 99, 235, 0.055),
            transparent 34rem
        ),
        #f4f7fb;
}

html.taxai-accounting-detail-pro {
    --taxai-pro-primary: #2563eb;
    --taxai-pro-primary-strong: #1d4ed8;
    --taxai-pro-primary-soft: #eff6ff;
    --taxai-pro-ink: #0f172a;
    --taxai-pro-muted: #64748b;
    --taxai-pro-line: #dbe3ef;
    --taxai-pro-line-soft: #e8edf5;
    --taxai-pro-surface: #ffffff;
    --taxai-pro-surface-soft: #f8fafc;
    --taxai-pro-danger: #dc2626;
    --taxai-pro-danger-soft: #fef2f2;
    --taxai-pro-success: #047857;
    --taxai-pro-success-soft: #ecfdf5;
    --taxai-pro-warning: #b45309;
    --taxai-pro-warning-soft: #fffbeb;
    --taxai-pro-radius: 18px;
    --taxai-pro-radius-sm: 12px;
    --taxai-pro-shadow:
        0 1px 2px rgba(15, 23, 42, 0.025),
        0 12px 34px rgba(15, 23, 42, 0.055);
}

html.taxai-accounting-detail-pro body {
    color: var(--taxai-pro-ink);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell {
    width: min(100%, 1180px);
    margin-inline: auto;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell > :first-child {
    margin-top: 0 !important;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-page-head {
    margin-bottom: 20px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-page-head h1 {
    margin: 3px 0 0;
    color: var(--taxai-pro-ink);
    font-size: clamp(25px, 2.25vw, 34px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-page-head p,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-page-head small {
    color: var(--taxai-pro-muted);
}

/* 共通カード */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-card,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell > section,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell > .card,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell > [class*="card"] {
    border: 1px solid var(--taxai-pro-line-soft) !important;
    border-radius: var(--taxai-pro-radius) !important;
    background: var(--taxai-pro-surface) !important;
    box-shadow: var(--taxai-pro-shadow) !important;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-card {
    margin-bottom: 18px;
    padding: 22px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--taxai-pro-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.018em;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-card-title::before {
    width: 4px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--taxai-pro-primary);
    content: "";
}

/* 操作コマンドバー */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-command {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: var(--taxai-pro-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--taxai-pro-shadow);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-back {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #fff;
    color: var(--taxai-pro-primary-strong);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-back:hover {
    border-color: #93c5fd;
    background: var(--taxai-pro-primary-soft);
    transform: translateY(-1px);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > *,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-secondary-actions > * {
    min-width: 0;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions a,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid var(--taxai-pro-primary);
    border-radius: 11px;
    background: var(--taxai-pro-primary);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(n + 2) a,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(n + 2) button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(n + 2) input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > a:nth-child(n + 2),
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > button:nth-child(n + 2) {
    border-color: var(--taxai-pro-line);
    background: #fff;
    color: var(--taxai-pro-ink);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-more {
    margin-top: 10px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 12px;
    background: var(--taxai-pro-surface-soft);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 14px;
    color: var(--taxai-pro-ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-more > summary::-webkit-details-marker {
    display: none;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-more > summary::after {
    color: var(--taxai-pro-muted);
    content: "＋";
    font-size: 17px;
    font-weight: 500;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-more[open] > summary::after {
    content: "−";
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-secondary-actions a,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-secondary-actions button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-secondary-actions input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--taxai-pro-line);
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* レコード識別子 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-record-id {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 15px;
    padding: 5px 10px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--taxai-pro-muted);
    font-size: 11px;
    font-weight: 700;
}

/* KPI */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-kpi {
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 14px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-kpi-label {
    margin-bottom: 9px;
    color: var(--taxai-pro-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-kpi-value {
    color: var(--taxai-pro-ink);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-kpi-note {
    margin-top: 9px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.45;
}

/* 仕訳データ */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 13px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    box-shadow: none !important;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table th,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table td {
    padding: 12px 14px !important;
    border-width: 0 0 1px !important;
    border-color: var(--taxai-pro-line-soft) !important;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table tr:last-child th,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table tr:last-child td {
    border-bottom: 0 !important;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table th {
    width: 25%;
    background: #f8fafc !important;
    color: #475569;
    font-weight: 800;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-data-table td {
    color: var(--taxai-pro-ink);
    font-weight: 700;
}

/* タイムライン */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 14px;
    width: 2px;
    background: #dbeafe;
    content: "";
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline-item {
    position: relative;
    padding-left: 42px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline-number {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 2px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--taxai-pro-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 0 0 1px #bfdbfe;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline-body {
    padding: 13px 15px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 12px;
    background: var(--taxai-pro-surface-soft);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline-title {
    margin-bottom: 4px;
    color: var(--taxai-pro-ink);
    font-size: 12px;
    font-weight: 800;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-timeline-date {
    color: var(--taxai-pro-muted);
    font-size: 11px;
}

/* API状態 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-item {
    padding: 15px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 13px;
    background: var(--taxai-pro-surface-soft);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-label {
    margin-bottom: 8px;
    color: var(--taxai-pro-muted);
    font-size: 10px;
    font-weight: 800;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-value {
    color: var(--taxai-pro-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-note {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

/* 開発者向け情報 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer {
    margin-top: 14px;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 15px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer > summary::-webkit-details-marker {
    display: none;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer > summary::after {
    color: var(--taxai-pro-muted);
    content: "＋";
    font-size: 17px;
    font-weight: 500;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer[open] > summary::after {
    content: "−";
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer-body {
    display: grid;
    gap: 7px;
    padding: 0 13px 13px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer-body details {
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 9px;
    background: #fff;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer-body details > summary {
    padding: 10px 12px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

/* 開発者表示フッター */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 13px 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer strong {
    display: block;
    margin-bottom: 3px;
    color: #334155;
    font-size: 11px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer span {
    color: var(--taxai-pro-muted);
    font-size: 10px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #0f172a;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

/* 状態バッジ補正 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell [class*="badge"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell [class*="status"] {
    max-width: 100%;
}

/* JS適用前のちらつきを抑制 */
html.taxai-accounting-detail-pro-pending body {
    opacity: 0.995;
}

@media (max-width: 960px) {
    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-api-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-card {
        padding: 17px;
        border-radius: 15px !important;
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-command {
        padding: 14px;
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-primary-actions,
    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-secondary-actions,
    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-kpi-grid {
        grid-template-columns: 1fr;
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-data-table {
        overflow-x: auto;
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-data-table table {
        min-width: 560px;
    }

    html.taxai-accounting-detail-pro
    .taxai-accounting-detail-dev-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/*
 * TaxAI 2266g7wh21d
 * Detail action classification and visual hierarchy correction
 */

/* Existing section-heading decoration must not produce a capsule. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-card-title {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep only the real developer disclosure. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer {
    display: none !important;
}

/* Prevent an empty-looking oversized command area. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-command {
    display: grid;
    gap: 10px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-command
.taxai-accounting-detail-back {
    margin-bottom: 0;
}

/* Primary resend is blue; OCR review remains a neutral secondary action. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :first-child a,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :first-child button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :first-child input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > a:first-child,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > button:first-child {
    border-color: var(--taxai-pro-primary) !important;
    background: var(--taxai-pro-primary) !important;
    color: #fff !important;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(2) a,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(2) button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > :nth-child(2) input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > a:nth-child(2),
html.taxai-accounting-detail-pro
.taxai-accounting-detail-primary-actions > button:nth-child(2) {
    border-color: var(--taxai-pro-line) !important;
    background: #fff !important;
    color: var(--taxai-pro-ink) !important;
}

/*
 * TaxAI 2266g7wh21e
 * Preserve native server-rendered actions.
 *
 * Action elements are no longer reparented by JavaScript. These rules
 * normalize the original operation area without depending on its exact
 * form hierarchy.
 */

html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell
form button,
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell
form input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell
a[class*="btn"],
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell
button[class*="btn"] {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 800;
}

/*
 * Do not hide native operation forms or links.
 * This overrides any inherited UI rule that may suppress empty-looking
 * wrappers before JavaScript finishes.
 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-shell
form {
    visibility: visible;
}

/*
 * The generated command bar is intentionally unused from 21e onward.
 * Hide a stale bar only when browser restoration or cached DOM retains it.
 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-command[data-taxai-version="2266g7wh21"] {
    display: none !important;
}

/*
 * TaxAI 2266g7wh21f
 * Native accounting-send detail operation hierarchy
 *
 * Existing links and forms retain their original DOM positions.
 */

html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar {
    position: relative;
}

html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
[hidden] {
    display: none !important;
}

/* Main operation */
html.taxai-accounting-detail-pro
.taxai-native-action-primary,
html.taxai-accounting-detail-pro
.taxai-native-action-primary a,
html.taxai-accounting-detail-pro
.taxai-native-action-primary button,
html.taxai-accounting-detail-pro
.taxai-native-action-primary input[type="submit"] {
    border-color: var(--taxai-pro-primary) !important;
    background: var(--taxai-pro-primary) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* OCR review is a neutral professional secondary action. */
html.taxai-accounting-detail-pro
.taxai-native-action-review,
html.taxai-accounting-detail-pro
.taxai-native-action-review a,
html.taxai-accounting-detail-pro
.taxai-native-action-review button,
html.taxai-accounting-detail-pro
.taxai-native-action-review input[type="submit"] {
    border-color: var(--taxai-pro-line) !important;
    background: #fff !important;
    color: var(--taxai-pro-ink) !important;
    box-shadow: none !important;
}

/* Back navigation remains quiet. */
html.taxai-accounting-detail-pro
.taxai-native-action-back,
html.taxai-accounting-detail-pro
.taxai-native-action-back a,
html.taxai-accounting-detail-pro
.taxai-native-action-back button {
    background: #fff !important;
    color: var(--taxai-pro-primary-strong) !important;
    box-shadow: none !important;
}

/* Expanded support operations are intentionally neutral. */
html.taxai-accounting-detail-pro
.taxai-native-action-secondary,
html.taxai-accounting-detail-pro
.taxai-native-action-secondary a,
html.taxai-accounting-detail-pro
.taxai-native-action-secondary button,
html.taxai-accounting-detail-pro
.taxai-native-action-secondary input[type="submit"] {
    border-color: var(--taxai-pro-line) !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

/* Native toggle: inserted only; no existing control is moved. */
html.taxai-accounting-detail-pro
.taxai-native-more-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid var(--taxai-pro-line-soft);
    border-radius: 10px;
    background: var(--taxai-pro-surface-soft);
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle:hover {
    border-color: #bfdbfe;
    background: var(--taxai-pro-primary-soft);
    color: var(--taxai-pro-primary-strong);
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle-icon {
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

/* Remove the old purple visual priority from support controls. */
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar.is-taxai-more-open
.taxai-native-action-secondary,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar.is-taxai-more-open
.taxai-native-action-secondary a,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar.is-taxai-more-open
.taxai-native-action-secondary button {
    background-image: none !important;
}

/* Keep only the single developer disclosure below the API summary. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer {
    display: none !important;
}

@media (max-width: 700px) {
    html.taxai-accounting-detail-pro
    .taxai-native-more-toggle {
        min-height: 44px;
    }
}

/*
 * TaxAI 2266g7wh21h
 * Final accounting send detail visual cleanup
 */

/* Technical database identity is never shown in the normal operator UI. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-record-id {
    display: none !important;
}

/*
 * The standalone developer disclosure below the API area is retained.
 * The redundant explanatory footer inside the API card is removed.
 */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-dev-footer {
    display: none !important;
}

/* Compact the operation card without compromising click targets. */
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-back {
    min-height: 38px !important;
    margin-bottom: 8px !important;
}

html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-primary,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-review {
    min-height: 38px !important;
}

/* Give the two main actions equal visual weight and width. */
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-primary,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-review {
    width: calc(50% - 6px) !important;
    max-width: none !important;
}

html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-primary a,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-primary button,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-primary input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-review a,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-review button,
html.taxai-accounting-detail-pro
.taxai-native-accounting-action-bar
.taxai-native-action-review input[type="submit"] {
    width: 100% !important;
    min-height: 38px !important;
}

/* Make the disclosure clearly recognizable as an expandable operation. */
html.taxai-accounting-detail-pro
.taxai-native-more-toggle {
    justify-content: center;
    min-height: 36px;
    margin-top: 8px;
    padding: 7px 12px;
    border-color: transparent;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle-chevron {
    color: var(--taxai-pro-primary);
    font-size: 9px;
    line-height: 1;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle:hover {
    border-color: #dbeafe;
    background: #eff6ff;
}

/* Reduce excessive vertical spacing in the API summary cards. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-item {
    padding: 12px 14px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-label {
    margin-bottom: 5px;
}

html.taxai-accounting-detail-pro
.taxai-accounting-detail-api-note {
    margin-top: 4px;
}

/* Slightly tighten the page-title to operation-card relationship. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-page-head {
    margin-bottom: 14px;
}

@media (max-width: 700px) {
    html.taxai-accounting-detail-pro
    .taxai-native-accounting-action-bar
    .taxai-native-action-primary,
    html.taxai-accounting-detail-pro
    .taxai-native-accounting-action-bar
    .taxai-native-action-review {
        width: 100% !important;
    }

    html.taxai-accounting-detail-pro
    .taxai-native-more-toggle {
        min-height: 40px;
    }
}

/*
 * TaxAI 2266g7wh21i
 * Equal principal actions and redundant developer notice removal
 */

/*
 * The smallest safe common parent detected by JavaScript becomes a
 * two-column row. No action element is moved.
 */
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
}

html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-primary,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-review {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-primary > *,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-review > *,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-primary a,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-primary button,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-primary input[type="submit"],
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-review a,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-review button,
html.taxai-accounting-detail-pro
.taxai-native-primary-action-row
.taxai-native-action-review input[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

/*
 * JS hides the verified notice container. This rule also prevents a
 * restored browser DOM or inherited display declaration from showing it.
 */
html.taxai-accounting-detail-pro
.taxai-redundant-developer-notice,
html.taxai-accounting-detail-pro
.taxai-redundant-developer-notice[hidden] {
    display: none !important;
}

/* Preserve the independent developer disclosure beneath the API section. */
html.taxai-accounting-detail-pro
.taxai-accounting-detail-developer {
    display: block;
}

@media (max-width: 700px) {
    html.taxai-accounting-detail-pro
    .taxai-native-primary-action-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/*
 * TaxAI 2266g7wh21j
 * Final redundant developer guidance suppression
 */

html.taxai-accounting-detail-pro
.taxai-final-redundant-developer-notice,
html.taxai-accounting-detail-pro
.taxai-final-redundant-developer-notice[hidden] {
    display: none !important;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle-label {
    white-space: nowrap;
}

html.taxai-accounting-detail-pro
.taxai-native-more-toggle-chevron {
    display: inline-block;
    width: 12px;
    text-align: center;
}
