/* ============================================
   マイページ共通スタイル (mypage-common.css)
   マイページ・出品者・パートナー配下の全ページで使用
   ============================================ */

/* --- カラートークン ---
   タイトル:     #121620
   データ/入力:  #1e2a36
   ラベル:       #363c48
   プレースホルダー: #b0b6bf
   ボーダー:     #ebeef5
   ラベル背景:   #f8f9fb
   ホバー行:     #fafcff
   テーブルホバー: #f0f7ff
   プライマリー:  #409EFF
   ヘッダー背景:  #f0f7ff
   --- */

/* =====================
   ページヘッダー
   ===================== */
.card-header {
    background-color: #f0f7ff;
    border-bottom: 2px solid #409EFF;
    padding: 16px 24px;
}
.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #121620;
    padding-left: 12px;
    border-left: 3px solid #409EFF;
}

/* =====================
   セクションタイトル
   ===================== */
.section-title {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #121620;
    background-color: #f8f9fb;
    border-bottom: 1px solid #ebeef5;
    border-left: 3px solid #409EFF;
}

/* =====================
   テーブル（el-table）
   ===================== */
.el-table th {
    background-color: #f8f9fb !important;
    color: #363c48 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    border-bottom: 1px solid #ebeef5 !important;
    padding: 12px 0 !important;
}
.el-table td {
    color: #1e2a36 !important;
    font-size: 13px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #ebeef5 !important;
}
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #fafcff !important;
}
.el-table__body tr:hover > td {
    background-color: #f0f7ff !important;
}
.el-table--border::after,
.el-table--group::after,
.el-table::before {
    background-color: #ebeef5;
}
.el-table__footer-wrapper td {
    background-color: #f8f9fb !important;
    font-weight: 600 !important;
    color: #121620 !important;
}

/* テーブル内ボタン */
.el-table .el-button--mini {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.el-table .el-button.is-plain:hover {
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.2);
}

/* 商品IDボタン */
.el-table .el-button.is-plain:not(.el-button--primary):not(.el-button--success):not(.el-button--danger):not(.el-button--warning) {
    color: #409EFF;
    border-color: #c6e2ff;
    background-color: #fff;
}
.el-table .el-button.is-plain:not(.el-button--primary):not(.el-button--success):not(.el-button--danger):not(.el-button--warning):hover {
    background-color: #ecf5ff;
    border-color: #409EFF;
}

/* =====================
   テーブル（HTMLテーブル）
   ===================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.info-table thead td,
.info-table thead th {
    background-color: #f8f9fb;
    color: #363c48;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
}
.info-table tbody td {
    color: #1e2a36;
    font-size: 13px;
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
}
.info-table tbody tr:hover {
    background-color: #fafcff;
}
.info-table tbody tr:last-child td {
    border-bottom: none;
}
.info-table td.label-cell {
    background-color: #f8f9fb;
    font-weight: 500;
    color: #363c48;
    width: 200px;
    border-right: 1px solid #ebeef5;
    letter-spacing: 0.02em;
}
.info-table td.value-cell {
    color: #1e2a36;
}
.info-table td.value-cell.empty {
    color: #b0b6bf;
    font-style: italic;
}
.info-table pre {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    white-space: pre-wrap;
    color: #1e2a36;
}
.info-table tfoot td {
    color: #1e2a36;
    font-size: 13px;
    padding: 10px 16px;
    border-bottom: 1px solid #ebeef5;
}
.info-table tfoot b {
    color: #363c48;
}

/* =====================
   フォーム行（横並びラベル+入力）
   ===================== */
.form-group-unified {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #ebeef5;
    margin-left: 0;
    margin-right: 0;
    transition: background-color 0.15s ease;
}
.form-group-unified:last-child {
    border-bottom: none;
}
.form-group-unified:hover {
    background-color: #fafcff;
}

/* =====================
   ラベル
   ===================== */
.label-unified {
    font-size: 14px;
    text-align: left !important;
    font-weight: 500 !important;
    color: #363c48;
    background-color: #f8f9fb;
    padding: 14px 20px;
    margin: 0;
    border-right: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    min-height: 52px;
    min-width: 200px;
    letter-spacing: 0.02em;
}

/* =====================
   インプット
   ===================== */
.input-unified {
    font-size: 14px;
    color: #1e2a36;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 8px 12px;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}
.input-unified:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
    outline: none;
}
.input-unified::placeholder {
    color: #b0b6bf;
}

/* =====================
   ラジオボタン
   ===================== */
.radio-unified {
    font-size: 14px;
    color: #363c48;
    cursor: pointer;
    padding: 6px 16px 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.radio-unified:hover {
    color: #409EFF;
}
.radio-unified input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c0c4cc;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease;
    flex-shrink: 0;
}
.radio-unified input[type="radio"]:checked {
    border-color: #409EFF;
}
.radio-unified input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #409EFF;
}
.radio-unified input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
    outline: none;
}

/* =====================
   ボタンエリア（フッター）
   ===================== */
.buttons-unified {
    padding: 20px 24px;
    border-top: 1px solid #ebeef5;
    background-color: #f8f9fb;
}
.buttons-unified .el-button {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.buttons-unified .el-button--primary {
    background-color: #409EFF;
    border-color: #409EFF;
    color: #fff;
    min-width: 100px;
}
.buttons-unified .el-button--primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}
.buttons-unified .el-button:not(.el-button--primary) {
    background-color: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
}
.buttons-unified .el-button:not(.el-button--primary):hover {
    color: #409EFF;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

/* =====================
   編集ボタン（ヘッダー内）
   ===================== */
.btn-edit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    background-color: #409EFF;
    border-color: #409EFF;
    color: #fff;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.btn-edit:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

/* =====================
   ダイアログ内フォーム
   ===================== */
.el-dialog .el-form-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 1px solid #ebeef5;
    padding: 0;
    transition: background-color 0.15s ease;
}
.el-dialog .el-form-item:last-child {
    border-bottom: none;
}
.el-dialog .el-form-item:hover {
    background-color: #fafcff;
}
.el-dialog .el-form-item__label {
    font-size: 14px;
    font-weight: 500 !important;
    color: #363c48;
    background-color: #f8f9fb;
    padding: 14px 20px;
    margin: 0;
    border-right: 1px solid #ebeef5;
    min-height: 52px;
    display: flex;
    align-items: center;
    min-width: 130px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.el-dialog .el-form-item__content {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
    color: #1e2a36;
    margin-left: 0 !important;
    line-height: 1.6;
}
.el-dialog .el-input__inner {
    font-size: 14px;
    color: #1e2a36;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.el-dialog .el-input__inner:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}
.el-dialog__footer {
    border-top: 1px solid #ebeef5;
    background-color: #f8f9fb;
    padding: 16px 20px;
}
.el-dialog__footer .el-button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.el-dialog__footer .el-button--primary:hover {
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

/* =====================
   注意書きバー
   ===================== */
.header-sub {
    padding: 12px 24px;
    font-size: 13px;
    color: #e6a23c;
    background-color: #fdf6ec;
    line-height: 1.6;
    border-top: 1px solid #ebeef5;
}
.header-sub p {
    margin: 0 0 2px;
}
.header-sub p:last-child {
    margin-bottom: 0;
}

/* =====================
   エラーメッセージ
   ===================== */
.text-danger {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    padding-left: 2px;
}

/* =====================
   空状態（empty state）

   一覧・履歴・検索結果などの「データなし」を伝える汎用パターン。
   サイト全域で再利用できるよう、特定ページにスコープしない。

   構成:
       .lr-empty                ← 縦並び・中央寄せの基本コンテナ
         ├── .lr-empty__icon       （大きめミュートアイコン、el-icon-*）
         ├── .lr-empty__message    （主メッセージ）
         ├── .lr-empty__description（補足説明、任意）
         └── .lr-empty__action     （CTA ボタン領域、任意）

   バリアント:
       .lr-empty--compact       ← 狭い領域用（min-height 解除、アイコン縮小）
   ===================== */
.lr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px 48px;
    color: var(--lr-text-muted);
    min-height: 200px;
}
.lr-empty__icon {
    font-size: 56px;
    color: var(--lr-border-strong);
    margin-bottom: var(--lr-space-md);
    opacity: 0.5;
    line-height: 1;
}
.lr-empty__message {
    font-size: var(--lr-fs-md);
    color: var(--lr-text-body);
    margin: 0;
    line-height: var(--lr-lh-base);
    font-weight: var(--lr-fw-medium);
}
.lr-empty__description {
    font-size: var(--lr-fs-sm);
    color: var(--lr-text-muted);
    margin: var(--lr-space-xs) 0 0;
    line-height: var(--lr-lh-base);
    /* 短文は1行に収まるよう余裕を持たせる。長文は読みやすい行長で折り返す */
    max-width: 480px;
}
.lr-empty__action {
    margin-top: var(--lr-space-lg);
}

/* 狭い領域用バリアント（カードの一角など） */
.lr-empty--compact {
    padding: 24px 16px;
    min-height: auto;
}
.lr-empty--compact .lr-empty__icon {
    font-size: 36px;
    margin-bottom: var(--lr-space-sm);
}
.lr-empty--compact .lr-empty__message {
    font-size: var(--lr-fs-sm);
}

/* =====================
   ダイアログ本体のテキストブロック

   ダイアログ本体に書く「リード文」「小見出し」のための専用クラス。
   フォームの input 下の補助メッセージ（.lr-helper）とは別物。

   使い方:
       <p class="lr-dialog-lead">ダイアログの目的を説明するリード文。</p>
       <p class="lr-section-heading">留意事項</p>
       <p class="lr-section-heading lr-text-warn">下記の留意事項をご確認ください。</p>
       <ol>
           <li>項目1</li>
           <li>項目2</li>
       </ol>
   ===================== */
.lr-dialog-lead {
    font-size: var(--lr-fs-md);
    color: var(--lr-text-body);
    margin: 0 0 12px;
    line-height: var(--lr-lh-base);
}
.lr-section-heading {
    font-size: var(--lr-fs-md);
    color: var(--lr-text-body);
    font-weight: var(--lr-fw-medium);
    margin: 16px 0 8px;
    line-height: var(--lr-lh-tight);
}
/* 色は別途 .lr-text-warn 等で上書き可能（コンポーザブル） */

/* =====================
   補助メッセージ（helper message）

   入力フィールドの下に置く注釈・例示・警告・エラーの統一クラス。
   span/p/small 要素に付与する。意味で色を選ぶ。

   使い方:
       <p class="lr-helper">開始日と終了日は０時基準です。</p>
       <p class="lr-helper">※ 例：新発売記念</p>
       <p class="lr-helper-warning">割引率が50%を超える特別価格の申請はお控え下さい。</p>
       <p class="lr-helper-error">必須項目です</p>

   従来の <p style="color: red"> や class 無しの <p>/<small> による
   暗黙スタイル（developer-form.css）は順次このクラスに寄せる。
   ===================== */
.lr-helper,
.lr-helper-warning,
.lr-helper-error {
    font-size: var(--lr-fs-xs);
    margin-top: 6px;
    margin-bottom: 0;
    line-height: var(--lr-lh-base);
}
.lr-helper          { color: var(--lr-text-muted); }
.lr-helper-warning  { color: var(--lr-color-warning); }
.lr-helper-error    { color: var(--lr-color-danger); }

/* =====================
   インライン色ユーティリティ（developer-product.css から移管・サイト全域化）

   ブロックレベルの補助メッセージは .lr-helper-* を使うが、
   見出し（h4 等）や行内テキスト（span 等）に色だけ付けたい場合は
   こちらを使う。font-size・margin は元の要素のものを尊重する。
   ===================== */
.lr-text-aux  { color: var(--lr-text-muted); }
.lr-text-warn { color: var(--lr-color-warning); }

/* =====================
   入力フィールド幅ユーティリティ（用途別の意味的幅）

   使い方:
       <el-input class="lr-input-md" v-model="campaign.special_price" />
       <el-date-picker class="lr-input-md" v-model="campaign.date1" />
       <el-input class="lr-input-xs" v-model="campaign.expiration" />

   対応コンポーネント:
       el-input / el-input-number / el-date-picker / el-time-picker /
       el-select / el-cascader  ※ いずれもラッパー div の幅を制御する

   参考: 値は design-tokens.css の --lr-input-w-* と一致
       xs=80px / sm=160px / md=220px / lg=320px / xl=480px
   ===================== */
.lr-input-xs { width: var(--lr-input-w-xs); }
.lr-input-sm { width: var(--lr-input-w-sm); }
.lr-input-md { width: var(--lr-input-w-md); }
.lr-input-lg { width: var(--lr-input-w-lg); }
.lr-input-xl { width: var(--lr-input-w-xl); }

/* el-date-picker は .el-date-editor.el-input.el-input--small に対して
   インラインで width: 220px が直書きされるため、ユーティリティの優先度を保つ */
.el-date-editor.el-input.lr-input-xs,
.el-date-editor.el-input.lr-input-xs.el-input--small,
.el-date-editor.el-input.lr-input-xs.el-input--mini { width: var(--lr-input-w-xs) !important; }
.el-date-editor.el-input.lr-input-sm,
.el-date-editor.el-input.lr-input-sm.el-input--small,
.el-date-editor.el-input.lr-input-sm.el-input--mini { width: var(--lr-input-w-sm) !important; }
.el-date-editor.el-input.lr-input-md,
.el-date-editor.el-input.lr-input-md.el-input--small,
.el-date-editor.el-input.lr-input-md.el-input--mini { width: var(--lr-input-w-md) !important; }
.el-date-editor.el-input.lr-input-lg,
.el-date-editor.el-input.lr-input-lg.el-input--small,
.el-date-editor.el-input.lr-input-lg.el-input--mini { width: var(--lr-input-w-lg) !important; }
.el-date-editor.el-input.lr-input-xl,
.el-date-editor.el-input.lr-input-xl.el-input--small,
.el-date-editor.el-input.lr-input-xl.el-input--mini { width: var(--lr-input-w-xl) !important; }

/* =====================
   新規会員クーポン対象行のリボン（el-table最終セル右下）
   ===================== */
/* 汎用 .nm-coupon::after（van-grid-item等向け）が tr にも適用されるのを打ち消す */
.el-table__body tr.nm-coupon::after {
    content: none;
}
.el-table__body tr.nm-coupon td:last-child {
    position: relative;
}
.el-table__body tr.nm-coupon td:last-child::after {
    content: 'CP';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 16px;
    background: rgba(0, 0, 0, 0.08);
    color: #999;
    font-size: 9px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 2;
    border-radius: 4px 0 6px 0;
    transition: background 0.15s ease, color 0.15s ease, width 0.15s ease, padding 0.15s ease, border-radius 0.15s ease;
}
.el-table__body tr.nm-coupon:hover td:last-child::after {
    content: '新規会員特典対象';
    width: auto;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
}

/* 新規会員クーポン訴求の共通グラデーションカラー（虹グラデ）
   home.tpl（PCフロート・スマホ下部バナー）やLPで使用 */
:root {
    --nm-coupon-gradient: linear-gradient(135deg,#f97316 0%,#ef4444 20%,#ec4899 40%,#8b5cf6 60%,#3b82f6 80%,#06b6d4 100%);
}

/* 新規会員クーポン対象 右下のCPバッジ。
   PC ranking の .ranking-item（<a>） と スマホ商品カードの .van-grid-item の両方で共用 */
.ranking-item.nm-coupon,
.van-grid-item.nm-coupon {
    position: relative;
}
.ranking-item.nm-coupon::after,
.van-grid-item.nm-coupon::after {
    content: 'CP';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 16px;
    background: rgba(0, 0, 0, 0.08);
    color: #999;
    font-size: 9px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 2;
    border-radius: 4px 0 6px 0;
    transition: all 0.15s ease;
}
.ranking-item.nm-coupon:hover::after,
.van-grid-item.nm-coupon:hover::after {
    content: '新規会員特典対象';
    width: auto;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
    bottom: -2px;
    right: -2px;
}
@media (max-width: 767px) {
    .ranking-item.nm-coupon::after,
    .van-grid-item.nm-coupon::after {
        width: 18px;
    }
}

/* =============================================================
 *  ダイアログ統一スタイル（明示的 opt-in: .lr-dialog / .lr-form-dialog）
 *  追加日: 2026-06-02 / 再設計: 2026-06-02（C案: 薄青ヘッダー）
 *
 *  デザイン方針:
 *    - ヘッダー背景を超薄青（var(--lr-color-primary-bg-soft) #f0f7ff）
 *      にし、サイトの .card-header と一体感を出す。
 *    - 装飾的な縦バーは無し。背景差だけで本体と区切る（下罫線不要）。
 *    - 角丸 8px・深く柔らかい二重影で「浮いている」感を強める。
 *    - フッターは白基調＋細罫線。
 *    - ×ボタンはホバーで 90度回転＋青に変色。
 *    - プライマリボタンには glow 影。
 *
 *  対象セレクタ:
 *    .lr-dialog（通常）と .lr-form-dialog（フォーム型）の外装を
 *    共通化。本体内のフォーム流儀は developer-form.css 側が担う。
 *
 *  使い方:
 *    <el-dialog title="..." custom-class="lr-dialog">...</el-dialog>
 *    <el-dialog title="..." custom-class="lr-form-dialog">...</el-dialog>
 *
 *  注意:
 *    既存の汎用 .el-dialog__footer（letsreal.css L386-399）も
 *    生きているため、本セクションで上書きする。
 *    custom-class の値は el-dialog のルート要素（.el-dialog）に
 *    付与されるので、一部セレクタで自己セレクタ結合している。
 * ============================================================= */

/* ---- ダイアログ本体（角丸 8px・二重影） ----
   1段目: 青みを含む遠い影で「持ち上がる」感
   2段目: 黒の近い影で輪郭をピリッと立たせる
   さらに：ビューポート対応で max-height: 90vh + flex 化し、
   コンテンツが多くてもフッターが画面外に押し出されないようにする。 */
.lr-dialog.el-dialog,
.lr-form-dialog.el-dialog {
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(15, 76, 176, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.04);
    /* ビューポート対応：フッターを常に画面内に */
    max-height: 90vh;
    margin-top: 5vh !important;
    margin-bottom: 5vh !important;
    display: flex;
    flex-direction: column;
}

/* body のみスクロール、header/footer は固定 */
.lr-dialog .el-dialog__body,
.lr-form-dialog .el-dialog__body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;  /* flex子要素のスクロール有効化に必須 */
}

/* ---- ヘッダー（薄青背景・ボーダー無し） ----
   サイトの .card-header（#f0f7ff 背景）と同じ流儀で一体感を出す。
   下罫線は不要（背景差で本体と自然に区切られる）。 */
.lr-dialog .el-dialog__header,
.lr-form-dialog .el-dialog__header {
    padding: 18px 24px;
    background-color: var(--lr-color-primary-bg-soft);
    border-bottom: none;
    position: relative;
    margin: 0;
}

/* ---- タイトル ---- */
.lr-dialog .el-dialog__title,
.lr-form-dialog .el-dialog__title {
    font-size: 17px;
    font-weight: var(--lr-fw-bold);
    color: var(--lr-text-title);
    letter-spacing: 0.02em;
    line-height: var(--lr-lh-tight);
}

/* ---- ×ボタン（hover で 90度回転＋青に変色） ----
   薄青背景上では #b0b6bf が薄すぎるため #909399（text-muted）。 */
.lr-dialog .el-dialog__headerbtn,
.lr-form-dialog .el-dialog__headerbtn {
    top: 16px;
    right: 22px;
}
.lr-dialog .el-dialog__headerbtn .el-dialog__close,
.lr-form-dialog .el-dialog__headerbtn .el-dialog__close {
    color: var(--lr-text-muted);
    font-size: 20px;
    transition:
        color var(--lr-transition-fast),
        transform var(--lr-transition-fast);
}
.lr-dialog .el-dialog__headerbtn:hover .el-dialog__close,
.lr-dialog .el-dialog__headerbtn:focus .el-dialog__close,
.lr-form-dialog .el-dialog__headerbtn:hover .el-dialog__close,
.lr-form-dialog .el-dialog__headerbtn:focus .el-dialog__close {
    color: var(--lr-color-primary);
    transform: rotate(90deg);
}

/* ---- 本体（lr-dialog のみ。lr-form-dialog は developer-form.css が担当） ---- */
.lr-dialog .el-dialog__body {
    padding: 26px 28px;
    color: var(--lr-text-body);
    font-size: var(--lr-fs-md);
    line-height: var(--lr-lh-base);
}

/* ---- ダイアログ内のリスト（<ol> / <ul>）の表示を明示的に復元 ----
   サイト共通の reset 系 CSS でリストマーカーが消えるケースがあるため、
   ダイアログ内では確実にデフォルトの番号/中点が見えるようにする。

   除外: <el-timeline> は内部的に <ul class="el-timeline"><li class="el-timeline-item">
   で構成されており、Element UI 既定の list-style: none を尊重するため :not() で除く。 */
.lr-dialog .el-dialog__body ol,
.lr-dialog .el-dialog__body ul:not(.el-timeline),
.lr-form-dialog .el-dialog__body ol,
.lr-form-dialog .el-dialog__body ul:not(.el-timeline) {
    margin: var(--lr-space-sm) 0 var(--lr-space-md);
    padding-left: 24px;
    list-style-position: outside;
}
.lr-dialog .el-dialog__body ol,
.lr-form-dialog .el-dialog__body ol {
    list-style-type: decimal;
}
.lr-dialog .el-dialog__body ul:not(.el-timeline),
.lr-form-dialog .el-dialog__body ul:not(.el-timeline) {
    list-style-type: disc;
}
.lr-dialog .el-dialog__body li:not(.el-timeline-item),
.lr-form-dialog .el-dialog__body li:not(.el-timeline-item) {
    margin-bottom: var(--lr-space-xs);
    line-height: var(--lr-lh-base);
}

/* ---- フッター（slot="footer"）：白基調＋上罫線 ----
   .lr-dialog と .lr-form-dialog で完全に同じフッター見た目に揃える。
   既存の汎用 .el-dialog__footer の薄グレー背景は、ここで白に上書き。 */
.lr-dialog .el-dialog__footer,
.lr-form-dialog .el-dialog__footer {
    background-color: var(--lr-surface);
    border-top: var(--lr-bw-1) solid var(--lr-border);
    padding: 14px 24px;
    text-align: right;
}
.lr-dialog .el-dialog__footer .el-button + .el-button,
.lr-form-dialog .el-dialog__footer .el-button + .el-button {
    margin-left: var(--lr-space-sm);
}

/* ---- フッター内 primary ボタンの glow ----
   控えめだが押せる感を出す。hover で広がる。 */
.lr-dialog .el-dialog__footer .el-button--primary,
.lr-form-dialog .el-dialog__footer .el-button--primary {
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.30);
    transition: box-shadow var(--lr-transition-base);
}
.lr-dialog .el-dialog__footer .el-button--primary:hover,
.lr-form-dialog .el-dialog__footer .el-button--primary:hover {
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.40);
}

/* =============================================================
 *  el-tabs type="card" の共通装飾（サイト全タブのリファレンス）
 *  ガイドライン §5-12 で「閲覧切替タブはすべて type="card"」と定めており、
 *  ここで定義する見た目がサイト全体の card 型タブの正となる。
 *
 *  ポイント:
 *    - アクティブタブは文字色プライマリ＋下端 2px の青ライン（box-shadow inset）で
 *      選択状態を強く視認させる（Element UI 既定だけだと弱い）。
 *    - ホバー時は薄い primary 背景でクリック可能領域を明示。
 *    - ヘッダー帯と nav の border は --lr-border に揃える。
 *
 *  注意:
 *    - リアル実績ダイアログのような「ダイアログ内サブタブ」もこのスタイルが当たる。
 *    - ページ固有の上書きをしたい場合は #ページID スコープで個別に上書きする。
 * ============================================================= */
.el-tabs--card > .el-tabs__header {
    border-bottom: var(--lr-bw-1) solid var(--lr-border);
    margin: 0 0 var(--lr-space-md);
}
.el-tabs--card > .el-tabs__header .el-tabs__nav {
    border-color: var(--lr-border);
    border-radius: var(--lr-radius-sm) var(--lr-radius-sm) 0 0;
}
.el-tabs--card > .el-tabs__header .el-tabs__item {
    color: var(--lr-text-label);
    transition: color var(--lr-transition-fast), background-color var(--lr-transition-fast);
    border-left-color: var(--lr-border);
}
.el-tabs--card > .el-tabs__header .el-tabs__item:hover {
    color: var(--lr-color-primary);
    background: var(--lr-color-primary-bg-soft);
}
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
    color: var(--lr-color-primary);
    background: var(--lr-surface);
    border-bottom-color: var(--lr-surface);
    font-weight: var(--lr-fw-medium);
    box-shadow: inset 0 -2px 0 var(--lr-color-primary);
}

/* =============================================================
 *  ユーティリティクラス
 *  細かい1プロパティの汎用ユーティリティはここに置く。
 *  ガイドライン §5-3 等で参照される。
 * ============================================================= */

/* テキスト改行禁止（テーブルヘッダー等で1行に収めるとき） */
.lr-nowrap {
    white-space: nowrap;
}

/* バッジ等幅ユーティリティ
   同じ列で複数の el-tag が並ぶ場合（種類列の EA／Indicator／セット、
   ステータス列の 承認／却下／待ち など）、文字数の違いでガタつくのを防ぐ。
   ガイドライン §5-8 のカテゴリバッジ・状態バッジ運用に対応。
   min-width は「Indicator」など長めのカテゴリも収まる 70px を採用。 */
.lr-tag-equal {
    min-width: 70px;
    text-align: center;
    box-sizing: border-box;
}
