/* ============================================
   マイページ共通スタイル (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;
}
