/* ============================================================
   Liugoo CRM – メインスタイル
   ArchitectUI風サイドバーレイアウト
   ============================================================ */

/* ---------- CSS変数 ---------- */
:root {
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 64px;
    --topbar-height: 54px;

    --sidebar-bg: #1c2a3a;
    --sidebar-hover: #243447;
    --sidebar-active: #2f4461;
    --sidebar-active-accent: #4a9eff;
    --sidebar-text: #a8bdd0;
    --sidebar-text-bright: #e0eaf4;
    --sidebar-section-label: #5a7a96;
    --sidebar-border: #253545;

    --topbar-bg: #ffffff;
    --topbar-border: #e8ecf0;
    --topbar-text: #4a5568;

    --content-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 4px rgba(0,0,0,0.08);
    --card-radius: 6px;

    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;

    --accent: #4a9eff;
    --accent-dark: #2563eb;

    --transition: 0.22s ease;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    overflow-x: hidden;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--content-bg);
}

/* ---------- レイアウト骨格 ---------- */
.crm-body {
    display: flex;
    min-height: 100vh;
}

/* ========== サイドバー ========== */
.crm-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition);
    overflow: hidden;
}

/* ロゴ */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.logo-icon {
    font-size: 20px;
    color: var(--sidebar-active-accent);
    flex-shrink: 0;
}

.logo-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--sidebar-text-bright);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color var(--transition), background var(--transition);
}
.sidebar-toggle-btn:hover {
    color: var(--sidebar-text-bright);
    background: var(--sidebar-hover);
}

/* ナビ */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--sidebar-border); border-radius: 2px; }

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sidebar-section-label);
    padding: 14px 18px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: var(--sidebar-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
    font-size: 13px;
}

.nav-item i {
    font-size: 15px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-bright);
    text-decoration: none;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-bright);
    border-left-color: var(--sidebar-active-accent);
}

/* ユーザーエリア */
.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    overflow: hidden;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--sidebar-active);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-active-accent);
    font-size: 16px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--sidebar-text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 10px;
    color: var(--sidebar-section-label);
}

.logout-form { flex-shrink: 0; }

.logout-btn {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}
.logout-btn:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
}

/* ===== 折りたたみ状態 ===== */
.crm-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    cursor: pointer;
}

.crm-sidebar.collapsed .logo-text,
.crm-sidebar.collapsed .nav-label,
.crm-sidebar.collapsed .nav-section-label,
.crm-sidebar.collapsed .user-details {
    display: none;
}

.crm-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
    border-left: none;
    border-right: 3px solid transparent;
}
.crm-sidebar.collapsed .nav-item.active {
    border-right-color: var(--sidebar-active-accent);
    border-left: none;
}
.crm-sidebar.collapsed .nav-item i {
    width: auto;
    font-size: 17px;
}

.crm-sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.crm-sidebar.collapsed .sidebar-toggle-btn {
    display: none;
}

.crm-sidebar.collapsed .user-info {
    justify-content: center;
}

.crm-sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 12px 0;
}

/* ========== メインエリア ========== */
.crm-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

.crm-main.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* トップバー */
.crm-topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.topbar-menu-btn:hover { background: var(--border-color); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-username {
    font-size: 12px;
    color: var(--text-secondary);
}

/* パンくずリスト */
.breadcrumb {
    font-size: 12px;
    margin: 0;
}
.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-primary); }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e0; }

/* コンテンツエリア */
.crm-content {
    flex: 1;
    padding: 24px;
}

/* ========== カード ========== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
}

.crm_card {
    height: 90px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    cursor: pointer;
}
.crm_card:hover {
    box-shadow: 0 4px 12px rgba(74,158,255,0.15);
    transform: translateY(-1px);
    border-color: var(--accent);
}

.card_title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.crm_title  { font-size: 16px; font-weight: 600; }

/* ========== テーブル ========== */
table.table {
    font-size: 12px;
    border-collapse: separate;
    border-spacing: 0;
}

table.table th {
    background: #f7f9fc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.03em;
    padding: 8px 6px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

table.table td {
    padding: 5px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
    color: var(--text-primary);
}

table.table tr { height: 30px; }

table.table tbody tr:hover { background: #f7fbff; }

table.table th div { font-size: 11px; }

/* 列幅 */
th.col-ordering       { width: 60px; }
th.col-product_color  { width: 80px; }
th.col-product_size   { width: 80px; }
th.col-product_model  { width: 180px; }
th.col-maker_sku      { width: 220px; }
th.col-system_sku     { width: 180px; }
th.col-sale_price,
th.col-regular_price,
th.col-fixed_price,
th.col-cost_price,
th.col-cost_price_wo_tax { width: 100px; }
th.col-status         { width: 100px; }

td input.form-control,
td select.form-control {
    padding: 2px 4px;
    font-size: 12px;
}

/* ========== フォーム ========== */
label, .form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

/* ========== 商品フォーム col内のラベル上余白 ========== */
.product-form-accordion .accordion-body [class*="col"] > label,
.product-form-accordion .accordion-body [class*="col"] > .form-label,
.product-form-accordion .accordion-body [class*="col"] > .form-group > label {
    margin-top: 10px;
}

.form-control, .form-select {
    font-size: 13px;
    padding: 6px 10px;
    border-color: var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,158,255,0.15);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group .help {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

/* ========== ボタン ========== */
.btn {
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    height: 34px;
    padding: 0 14px;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-sm {
    height: 30px;
    font-size: 12px;
    padding: 0 12px;
    width: auto;
    min-width: 72px;
}

.btn-sm2 {
    width: 140px;
    font-size: 12px;
    height: 34px;
}

/* ========== アコーディオン ========== */
.accordion-button.collapsed {
    background-color: #f7f9fc;
}

/* ========== ページネーション ========== */
.page-link {
    font-size: 12px;
    padding: 4px 10px;
    color: var(--text-secondary);
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* ========== アップロードエリア ========== */
.upload_area {
    width: 250px;
    font-size: 12px;
}

/* ========== ページリンクボタン ========== */
.page_link_btn a {
    width: 200px;
    padding-top: 8px;
    text-align: left;
}

/* ========== セレクトボタン ========== */
.pp-select-btn { height: 28px; }

/* ========== 数値入力 スピンボタン非表示 ========== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* ========== コンテナ調整 ========== */
.container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* ========== フォームページ最大幅 ========== */
.form-container {
    max-width: 1400px;
}

/* ========== モバイル対応 ========== */
@media (max-width: 768px) {
    .crm-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition), width var(--transition);
    }
    .crm-sidebar.mobile-open {
        transform: translateX(0);
    }
    .crm-main {
        margin-left: 0;
    }
    .topbar-menu-btn {
        display: block;
    }
    .crm-content {
        padding: 16px;
    }
}

/* 折りたたみ時のロゴアイコン（クリックで展開） */
.crm-sidebar.collapsed .logo-icon {
    cursor: pointer;
    transition: color var(--transition);
}
.crm-sidebar.collapsed .logo-icon:hover {
    color: #ffffff;
}

/* ========== 折りたたみ時のツールチップ ========== */
.crm-sidebar.collapsed .nav-item {
    position: relative;
}

.crm-sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: fixed;
    left: calc(var(--sidebar-collapsed-width) + 8px);
    background: #2d3748;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.crm-sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
}

/* ========== 商品フォーム 基本情報 行間調整 ========== */
/* ========== 商品フォーム専用アコーディオン ========== */
.product-form-accordion .accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: var(--card-radius) !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* 開いているヘッダー */
.product-form-accordion .accordion-button {
    background-color: #dce8f8 !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 16px;
    border: none;
    box-shadow: none !important;
    border-bottom: 1px solid #c5d9f5 !important;
}

/* 閉じているヘッダー */
.product-form-accordion .accordion-button.collapsed {
    background-color: #f0f4f8 !important;
    color: var(--text-secondary) !important;
    border-bottom: none !important;
}

/* アコーディオン内のcard border除去 */
.product-form-accordion .accordion-body {
    padding: 20px;
}

.product-form-accordion .accordion-body .card.border-0 {
    box-shadow: none;
    border: none !important;
}

.product-form-accordion .accordion-body .card-body {
    padding: 0;
}

/* ========== 価格セクション：カード型グリッド ========== */
.price-grid-row {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.price-grid-row.row-6 { grid-template-columns: repeat(6, 1fr); }
.price-grid-row.row-4 { grid-template-columns: repeat(4, 1fr); }
.price-grid-row.row-3 { grid-template-columns: repeat(3, 1fr); }

.price-field-card {
    background: #f8fafd;
    border: 1px solid #e4eaf3;
    border-radius: 5px;
    padding: 10px 12px;
}

.price-field-card .form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.price-field-card .form-control {
    width: 100%;
    max-width: 100%;
    background: #fff;
}

.price-field-card.readonly-card {
    background: #f0f4f9;
}

.price-field-card.readonly-card .form-control {
    background: #eef2f7;
    color: var(--text-secondary);
}

.price-field-card .help {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* ========== 保存バー（固定） ========== */
.form-sticky-footer {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 2px solid #c5d9f5;
    padding: 10px 20px;
    z-index: 200;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.07);
    margin-top: 16px;
}

/* ========== 型番バッジ（パンくず横） ========== */
.model-name-badge {
    margin-left: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e2d3d;
    background: #dce8f8;
    border: 1px solid #c5d9f5;
    border-radius: 5px;
    padding: 2px 10px;
}

/* ========== 関連ページリンク ========== */
.related-pages-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #c5d9f5;
    border-radius: 4px;
    overflow: hidden;
    background: #f8fafd;
    margin: 8px 0 16px 0;
}

.related-pages-model-name {
    flex-shrink: 0;
    width: 110px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1e2d3d;
    background: #dce8f8;
    border-right: 1px solid #c5d9f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-pages-model-name.active {
    background: #4a7fc1;
    color: #ffffff;
    border-right-color: #3a6aa0;
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    flex: 1;
    background: transparent;
    align-content: start;
}

.related-link {
    font-size: 12px;
    color: #3b7dd8;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 5px 8px;
    background: #f8fafd;
    overflow: hidden;
    border-right: 1px solid #e4eaf3;
    border-bottom: 1px solid #e4eaf3;
}

.related-link:hover {
    background: #dce8f8;
    color: #1e2d3d;
}

.related-link.active {
    background: #4a7fc1;
    color: #ffffff;
    font-weight: 700;
}

.related-link i {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.related-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-link.active .related-link-id {
    color: #d0e4f7;
}

.related-link-id {
    color: #6c7a8a;
}

.related-page-link .related-link {
    display: inline-flex;
}

/* ========== help_text 共通 ========== */
.help {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 2px;
    margin-bottom: 0;
}
.detail_row + .detail_row {
    margin-top: 8px;
}

/* ========== 編集画面 画像サムネイル共通 ========== */
.form-img-thumb {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 6px;
}

.form-img-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed #c5d3e0;
    border-radius: 6px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0b0c0;
    font-size: 12px;
    margin-bottom: 6px;
}

.form-img-name {
    display: block;
    font-size: 10px;
    color: #6c7a8a;
    word-break: break-all;
    text-decoration: none;
    max-width: 120px;
    line-height: 1.4;
    margin-top: 2px;
}

.form-img-name:hover {
    text-decoration: underline;
    color: #4a7fc1;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   画像ダウンロードパネル
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.img-dl-panel {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.img-dl-panel__toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    background: #dbeafe;
    border: none;
    border-bottom: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}
.img-dl-panel__toggle:hover { background: #bfdbfe; }
.img-dl-panel__toggle[aria-expanded="true"] {
    border-bottom-color: #93c5fd;
    background: #bfdbfe;
}

.img-dl-panel__chevron {
    margin-left: auto !important;
    transition: transform .2s ease;
    font-size: 12px;
    color: #667085;
}

.img-dl-panel__body {
    padding: 12px 16px 14px;
}

.img-dl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.img-dl-row--action { margin-top: 10px; margin-bottom: 0; }
.img-dl-row--mall   { margin-bottom: 6px; }

.img-dl-row__label {
    flex: 0 0 56px;
    font-size: 11px;
    font-weight: 600;
    color: #667085;
    text-align: right;
    padding-right: 6px;
}
.img-dl-row__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.img-dl-divider {
    border-top: 1px solid #eaecf0;
    margin: 8px 0;
}

.img-dl-ctrl-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    line-height: 1;
}
.img-dl-ctrl-btn:hover { background: #f2f4f7; border-color: #98a2b3; }
.img-dl-ctrl-btn--outline { background: transparent; }

.img-dl-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    padding: 3px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    background: #fff;
    transition: background .12s;
}
.img-dl-check:hover { background: #f2f4f7; }
.img-dl-check input[type=checkbox] { cursor: pointer; }

.img-dl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    padding: 8px 10px;
    background: #f8f9fb;
    border-radius: 6px;
    border: 1px solid #eaecf0;
    margin-left: 62px;
}

.img-dl-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid #e4e7ec;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #344054;
    transition: border-color .12s, background .12s;
    min-width: 80px;
}
.img-dl-item:hover { border-color: #84caff; background: #f0f8ff; }
.img-dl-item:has(input:checked) {
    border-color: #2e90fa;
    background: #eff8ff;
    color: #1849a9;
}
.img-dl-item__name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}
.img-dl-item__name::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1.5px solid #d0d5dd;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    transition: border-color .12s, background .12s;
}
.img-dl-item:has(input:checked) .img-dl-item__name::before {
    background: #2e90fa;
    border-color: #2e90fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
.img-dl-item input[type=checkbox] { display: none; }

.img-dl-item__note {
    font-size: 10px;
    color: #f79009;
    font-weight: 400;
    white-space: nowrap;
}

.img-dl-count {
    font-size: 12px;
    color: #667085;
    font-weight: 500;
    min-width: 80px;
}

.img-dl-exec-btn {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #1849a9;
    color: #fff;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.img-dl-exec-btn:hover:not(:disabled) { background: #1239a0; }
.img-dl-exec-btn:disabled {
    background: #b2ccff;
    cursor: not-allowed;
    opacity: .7;
}

/* ========== 画像セル下のラベル ========== */
.img-cell-label {
    font-size: 10px;
    color: #5a6480;
    margin-top: 3px;
    white-space: nowrap;
    line-height: 1.4;
}
/* ========== 新規出品登録ページ専用スタイル ========== */
.listing-page .card-header {
    background: #e8f5e9;
    border-bottom: 2px solid #66bb6a;
    color: #2e7d32;
}

.listing-page .card {
    border-color: #c8e6c9;
}

.listing-page .form-sticky-footer {
    border-top: 2px solid #66bb6a;
    background: #f1f8f1;
}

.listing-page .btn-primary {
    background: #43a047;
    border-color: #43a047;
}

.listing-page .btn-primary:hover {
    background: #2e7d32;
    border-color: #2e7d32;
}

.listing-page h4 {
    color: #2e7d32;
}

.listing-page h4 i {
    color: #66bb6a;
}