.wtsm-admin-wrap .page-title-action { margin-left: 8px; }
.wtsm-version { color: #666; font-size: 12px; margin-top: 6px; }

.wtsm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
}
.wtsm-filter-form input[type="search"] { min-width: 240px; }

.wtsm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.wtsm-stock-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.wtsm-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}
.wtsm-card-thumb { width: 100%; height: 190px; object-fit: cover; }
.wtsm-card-no-image { color: #777; font-size: 13px; }
.wtsm-card-body { padding: 14px; }
.wtsm-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wtsm-card-badges span { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #f0f0f1; font-size: 12px; }
.wtsm-card-badges .is-featured { background: #fff3cd; }
.wtsm-card-badges .is-sale { background: #ffe2e2; }
.wtsm-card-body h2 { min-height: 42px; margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.wtsm-card-size { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.wtsm-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.wtsm-card-meta div { padding: 8px; background: #f6f7f7; border-radius: 6px; }
.wtsm-card-meta dt { margin: 0 0 2px; color: #666; font-size: 11px; }
.wtsm-card-meta dd { margin: 0; font-weight: 600; }
.wtsm-card-status { margin: 10px 0; padding: 6px 8px; border-radius: 6px; text-align: center; font-weight: 700; }
.wtsm-card-status.is-available { background: #e7f7ed; }
.wtsm-card-status.is-sold { background: #f0f0f1; color: #666; }
.wtsm-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.wtsm-form, .wtsm-form * { box-sizing: border-box; }
.wtsm-editor-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 18px;
    max-width: 1180px;
    align-items: start;
}
.wtsm-editor-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 16px;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.wtsm-editor-card-photo { grid-column: 1; grid-row: 1 / -1; }
.wtsm-editor-card:not(.wtsm-editor-card-photo) { grid-column: 2; }
.wtsm-editor-card h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
    font-size: 16px;
}
.wtsm-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.wtsm-wheel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wtsm-field { min-width: 0; }
.wtsm-field-full { grid-column: 1 / -1; }
.wtsm-field label,
.wtsm-field-label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    color: #1d2327;
}
.wtsm-field input[type="text"],
.wtsm-field input[type="number"],
.wtsm-field select,
.wtsm-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
}
.wtsm-field textarea { min-height: 98px; }
.wtsm-maker-other { margin-top: 8px; }
.wtsm-radio-row,
.wtsm-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    min-height: 38px;
    align-items: center;
}
.wtsm-radio-row label,
.wtsm-check-row label {
    margin: 0;
    font-weight: 400;
}
.wtsm-input-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.wtsm-input-unit span { color: #555; white-space: nowrap; }

.wtsm-date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}
.wtsm-date-row input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
}
.wtsm-date-row .button {
    min-height: 38px;
    line-height: 36px;
    white-space: nowrap;
}
.wtsm-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    margin-bottom: 10px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
}
.wtsm-image-preview img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
}
.wtsm-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}
.wtsm-sub-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 78px;
    padding: 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}
.wtsm-sub-image-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}
.wtsm-no-image { color: #777; font-size: 13px; }
.wtsm-form .submit {
    max-width: 1180px;
    margin-top: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
}

@media (max-width: 1200px) {
    .wtsm-editor-layout { grid-template-columns: 1fr; }
    .wtsm-editor-card-photo,
    .wtsm-editor-card:not(.wtsm-editor-card-photo) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 900px) {
    .wtsm-wheel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .wtsm-filter-form input[type="search"],
    .wtsm-filter-form select,
    .wtsm-filter-form .button { width: 100%; max-width: none; }
    .wtsm-card-grid { grid-template-columns: 1fr; }
    .wtsm-fields-grid,
    .wtsm-wheel-grid { grid-template-columns: 1fr; }
    .wtsm-radio-row,
    .wtsm-check-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
}

.wtsm-readonly-box {
    min-height: 32px;
    padding: 6px 10px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    line-height: 1.6;
}


/* v0.6.6: 製造年週の経過判定色 */
#wtsm_manufacture_year.is-age-fresh,
.wtsm-readonly-box.is-age-fresh {
    background: #e7f7ed;
    border-color: #8ccf9c;
}
#wtsm_manufacture_year.is-age-middle,
.wtsm-readonly-box.is-age-middle {
    background: #fff8d6;
    border-color: #e6cf65;
}
#wtsm_manufacture_year.is-age-old,
.wtsm-readonly-box.is-age-old {
    background: #fff0df;
    border-color: #e4a86a;
}
#wtsm_manufacture_year.is-age-very-old,
.wtsm-readonly-box.is-age-very-old {
    background: #ffe6e6;
    border-color: #d88181;
}
#wtsm_manufacture_year.is-invalid,
.wtsm-readonly-box.is-invalid {
    background: #f6f7f7;
    border-color: #d63638;
}

/* v0.6.7: 入力アシスト */
.wtsm-size-assist,
.wtsm-manufacture-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.wtsm-size-assist input,
.wtsm-manufacture-split input {
    width: 100%;
    text-align: center;
}
.wtsm-size-assist span {
    font-weight: 700;
    color: #555;
}
.wtsm-manufacture-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.wtsm-manufacture-split label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    margin: 0;
}
#wtsm_manufacture_week_part.is-age-fresh,
#wtsm_manufacture_year_part.is-age-fresh {
    background: #e7f7ed;
    border-color: #8ccf9c;
}
#wtsm_manufacture_week_part.is-age-middle,
#wtsm_manufacture_year_part.is-age-middle {
    background: #fff8d6;
    border-color: #e6cf65;
}
#wtsm_manufacture_week_part.is-age-old,
#wtsm_manufacture_year_part.is-age-old {
    background: #fff0df;
    border-color: #e4a86a;
}
#wtsm_manufacture_week_part.is-age-very-old,
#wtsm_manufacture_year_part.is-age-very-old {
    background: #ffe6e6;
    border-color: #d88181;
}
#wtsm_manufacture_week_part.is-invalid,
#wtsm_manufacture_year_part.is-invalid {
    background: #f6f7f7;
    border-color: #d63638;
}
@media (max-width: 782px) {
    .wtsm-size-assist {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    }
}


.wtsm-editor-card-sales {
    border-left: 4px solid #2271b1;
}

.wtsm-profit-preview {
    font-weight: 700;
}

.wtsm-owned-field,
.wtsm-consignment-field {
    transition: opacity .15s ease;
}

/* v0.6.10: カード表示調整・フロントショートコード */
.wtsm-card-maker {
    min-height: 0 !important;
    margin: 0 0 4px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}
.wtsm-card-pattern-size {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.wtsm-public-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 18px 0;
}
.wtsm-public-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wtsm-public-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f6f7f7;
    border-bottom: 1px solid #e2e4e7;
}
.wtsm-public-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wtsm-public-no-image,
.wtsm-public-empty {
    color: #777;
    font-size: 13px;
}
.wtsm-public-card-body {
    padding: 14px;
}
.wtsm-public-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.wtsm-public-badges span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f0f1;
    font-size: 12px;
    line-height: 1.6;
}
.wtsm-public-badges .is-featured { background: #fff3cd; }
.wtsm-public-badges .is-sale { background: #ffe2e2; }
.wtsm-public-maker {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
}
.wtsm-public-pattern-size {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.wtsm-public-manufacture,
.wtsm-public-quantity {
    margin: 0 0 6px;
    color: #444;
    font-size: 14px;
}
.wtsm-public-price {
    margin: 10px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.wtsm-public-price small {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* v0.6.11: ショートコード表示分離（カード/行） */
.wtsm-public-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.wtsm-public-card-link:hover .wtsm-public-maker,
.wtsm-public-card-link:hover .wtsm-public-pattern-size span {
    text-decoration: underline;
}
.wtsm-public-pattern-size {
    display: block;
}
.wtsm-public-pattern-size span {
    display: block;
}
.wtsm-public-stock-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.wtsm-public-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
}
.wtsm-public-row-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f7f7;
    border-radius: 8px;
}
.wtsm-public-row-image .wtsm-public-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wtsm-public-row-title {
    display: grid;
    gap: 2px;
    line-height: 1.35;
}
.wtsm-public-row-title strong {
    font-size: 13px;
}
.wtsm-public-row-size {
    font-size: 17px;
    font-weight: 700;
}
.wtsm-public-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    color: #555;
    font-size: 13px;
}
.wtsm-public-row-price {
    min-width: 120px;
    text-align: right;
    font-weight: 700;
    line-height: 1.35;
}
.wtsm-public-row-price small {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}
.wtsm-detail-button,
.wtsm-back-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.wtsm-detail-button:hover,
.wtsm-back-link:hover {
    color: #fff;
    opacity: .9;
}
.wtsm-public-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.wtsm-public-detail-image {
    overflow: hidden;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
}
.wtsm-public-detail-image .wtsm-public-thumb {
    width: 100%;
    height: auto;
    display: block;
}
.wtsm-public-detail-size {
    font-size: 22px;
    font-weight: 700;
}
.wtsm-public-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wtsm-public-detail-list div {
    padding: 10px;
    background: #f6f7f7;
    border-radius: 8px;
}
.wtsm-public-detail-list dt {
    color: #666;
    font-size: 12px;
}
.wtsm-public-detail-list dd {
    margin: 2px 0 0;
    font-weight: 700;
}
.wtsm-public-detail-note {
    margin-top: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
}
@media (max-width: 782px) {
    .wtsm-public-row {
        grid-template-columns: 84px minmax(0, 1fr);
    }
    .wtsm-public-row-image {
        width: 84px;
    }
    .wtsm-public-row-price,
    .wtsm-public-row-action {
        grid-column: 2;
        text-align: left;
    }
    .wtsm-public-detail-layout,
    .wtsm-public-detail-list {
        grid-template-columns: 1fr;
    }
}

/* v0.6.12: 新品時の残溝表示・価格表示整理 */
.wtsm-tread-depth-field.is-new-tire input[type="text"] {
    display: none;
}
.wtsm-tread-depth-preview {
    margin-top: 8px;
    font-weight: 700;
}
.wtsm-card-pattern-size,
.wtsm-public-pattern-size {
    display: block;
}
.wtsm-card-pattern-size span,
.wtsm-public-pattern-size span {
    display: block;
}
.wtsm-card-pattern-size span + span,
.wtsm-public-pattern-size span + span {
    margin-top: 2px;
}


/* v0.6.13: 公開リストをPC行表示に整理、単独本数表示を廃止 */
.wtsm-public-quantity {
    display: none;
}
.wtsm-public-stock-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}
.wtsm-public-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) minmax(120px, auto) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
}
.wtsm-public-row-image {
    width: 80px;
    height: 80px;
    aspect-ratio: auto;
    color: inherit;
    text-decoration: none;
}
.wtsm-public-row-main {
    color: inherit;
    text-decoration: none;
}
.wtsm-public-row-main:hover .wtsm-public-row-title span,
.wtsm-public-row-main:hover .wtsm-public-row-title strong,
.wtsm-public-row-price:hover {
    text-decoration: underline;
}
.wtsm-public-row-title {
    display: grid;
    gap: 1px;
}
.wtsm-public-row-title strong {
    font-size: 13px;
    font-weight: 700;
}
.wtsm-public-row-title span:not(.wtsm-public-row-size) {
    font-size: 15px;
    font-weight: 700;
}
.wtsm-public-row-size {
    font-size: 15px;
    font-weight: 700;
}
.wtsm-public-row-meta {
    margin-top: 4px;
    font-size: 13px;
}
.wtsm-public-row-price {
    color: inherit;
    text-decoration: none;
    min-width: 120px;
    text-align: right;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 782px) {
    .wtsm-public-row {
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: start;
    }
    .wtsm-public-row-image {
        width: 84px;
        height: 84px;
    }
    .wtsm-public-row-price,
    .wtsm-public-row-action {
        grid-column: 2;
        text-align: left;
    }
}

/* v0.6.14: [wtsm_stock_list] PC版をExcel風の表表示に変更 */
.wtsm-public-stock-list-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}
.wtsm-public-stock-list-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dcdcde;
    font-size: 14px;
}
.wtsm-public-stock-list-table th,
.wtsm-public-stock-list-table td {
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    vertical-align: middle;
    text-align: left;
}
.wtsm-public-stock-list-table th {
    background: #f6f7f7;
    font-weight: 700;
    white-space: nowrap;
}
.wtsm-public-stock-list-table tbody tr:nth-child(even) {
    background: #fbfbfc;
}
.wtsm-public-stock-list-table tbody tr:hover {
    background: #f0f6fc;
}
.wtsm-public-stock-list-table a {
    color: inherit;
    text-decoration: none;
}
.wtsm-public-stock-list-table a:hover {
    text-decoration: underline;
}
.wtsm-col-photo,
.wtsm-list-photo {
    width: 72px;
    text-align: center !important;
}
.wtsm-col-detail,
.wtsm-list-detail {
    width: 76px;
    text-align: center !important;
}
.wtsm-public-list-thumb,
.wtsm-public-list-no-image {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    border-radius: 4px;
    background: #f6f7f7;
    font-size: 11px;
    line-height: 1.2;
}
.wtsm-list-size,
.wtsm-list-price {
    font-weight: 700;
}
.wtsm-list-price small {
    display: block;
    color: #666;
    font-size: 11px;
    font-weight: 500;
}
.wtsm-public-stock-list-table .wtsm-detail-button {
    padding: 6px 10px;
    font-size: 13px;
}

@media (max-width: 782px) {
    .wtsm-public-stock-list-table-wrap {
        overflow-x: visible;
    }
    .wtsm-public-stock-list-table,
    .wtsm-public-stock-list-table thead,
    .wtsm-public-stock-list-table tbody,
    .wtsm-public-stock-list-table tr,
    .wtsm-public-stock-list-table th,
    .wtsm-public-stock-list-table td {
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .wtsm-public-stock-list-table {
        border: 0;
        background: transparent;
    }
    .wtsm-public-stock-list-table thead {
        display: none;
    }
    .wtsm-public-stock-list-table tr {
        margin: 0 0 12px;
        padding: 10px;
        background: #fff;
        border: 1px solid #dcdcde;
        border-radius: 10px;
    }
    .wtsm-public-stock-list-table td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        border: 0;
        text-align: left !important;
    }
    .wtsm-public-stock-list-table td::before {
        content: attr(data-label);
        color: #666;
        font-size: 12px;
        font-weight: 700;
    }
    .wtsm-list-photo {
        grid-template-columns: 88px 64px !important;
    }
    .wtsm-list-detail .wtsm-detail-button {
        width: fit-content;
    }
}

/* v0.6.15: Excel風一覧の操作性向上 */
.wtsm-public-list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    padding: 12px;
    margin: 18px 0 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}
.wtsm-public-list-filters label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #50575e;
}
.wtsm-public-list-filters input,
.wtsm-public-list-filters select {
    min-width: 150px;
    height: 34px;
    padding: 4px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}
.wtsm-filter-button,
.wtsm-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.wtsm-filter-button {
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
}
.wtsm-filter-clear {
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #50575e;
}
.wtsm-public-stock-list-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #dcdcde;
}
.wtsm-sort-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.wtsm-sort-link:hover {
    text-decoration: underline;
}
.wtsm-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 3px;
}
.wtsm-list-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f0f0f1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}
.wtsm-list-badge.is-new { background: #d1e7dd; color: #0f5132; }
.wtsm-list-badge.is-used { background: #e2e3e5; color: #41464b; }
.wtsm-list-badge.is-sold { background: #f8d7da; color: #842029; }
.wtsm-list-badge.is-featured { background: #fff3cd; color: #664d03; }
.wtsm-list-badge.is-sale { background: #ffe2e2; color: #8a1f11; }
.wtsm-list-badge.is-consignment { background: #e7d9ff; color: #4c2a85; }
.wtsm-list-condition {
    font-size: 12px;
    color: #50575e;
}
.wtsm-public-stock-list-table tbody tr {
    transition: background-color .12s ease;
}
.wtsm-public-stock-list-table tbody tr:hover td {
    background: #f0f6fc;
}
.wtsm-public-stock-list-table .wtsm-detail-button {
    min-width: 62px;
    padding: 7px 12px;
    border-radius: 6px;
}

@media (max-width: 782px) {
    .wtsm-public-list-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
    .wtsm-public-list-filters input,
    .wtsm-public-list-filters select {
        width: 100%;
        min-width: 0;
    }
    .wtsm-public-stock-list-table th {
        position: static;
        box-shadow: none;
    }
}


/* v0.6.16: 一覧状態欄・ボタン視認性・管理画面保管期間 */
.wtsm-public-stock-list-table td.wtsm-list-status {
    text-align: center !important;
}
.wtsm-list-status .wtsm-list-badges {
    justify-content: center;
}
.wtsm-list-status .wtsm-list-condition {
    text-align: center;
}
.wtsm-detail-button,
.wtsm-detail-button:link,
.wtsm-detail-button:visited,
.wtsm-filter-button,
.wtsm-filter-button:link,
.wtsm-filter-button:visited,
.wtsm-back-link,
.wtsm-back-link:link,
.wtsm-back-link:visited {
    background: #2271b1 !important;
    color: #ffffff !important;
    border-color: #2271b1 !important;
    text-decoration: none !important;
}
.wtsm-detail-button:hover,
.wtsm-filter-button:hover,
.wtsm-back-link:hover {
    background: #135e96 !important;
    color: #ffffff !important;
    border-color: #135e96 !important;
}
@media (max-width: 782px) {
    .wtsm-public-stock-list-table td.wtsm-list-status,
    .wtsm-list-status .wtsm-list-condition {
        text-align: left !important;
    }
    .wtsm-list-status .wtsm-list-badges {
        justify-content: flex-start;
    }
}

/* v0.6.17: リスト列再構成・商品情報セル */
.wtsm-sub-label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 700;
}
.wtsm-price-calc-preview {
    margin-top: 8px;
}
.wtsm-public-stock-list-table {
    min-width: 840px;
}
.wtsm-list-product {
    min-width: 150px;
    font-weight: 700;
    line-height: 1.45;
}
.wtsm-list-product a:first-child {
    font-size: 13px;
    color: #50575e;
}
.wtsm-list-product a:last-child {
    font-size: 14px;
}
.wtsm-list-status {
    min-width: 260px;
    max-width: 420px;
    white-space: normal;
    word-break: break-word;
    text-align: left !important;
}
.wtsm-list-status .wtsm-list-badges {
    justify-content: flex-start;
    margin-bottom: 4px;
}
.wtsm-list-info-line {
    font-size: 12px;
    line-height: 1.45;
    color: #2c3338;
    margin-top: 2px;
}
.wtsm-list-wheel-line {
    color: #50575e;
    max-width: 100%;
}
.wtsm-list-badge.is-wheel { background: #dff3ff; color: #075985; }
.wtsm-public-stock-list-table td.wtsm-list-status,
.wtsm-list-status .wtsm-list-condition {
    text-align: left !important;
}
@media (min-width: 783px) {
    .wtsm-public-stock-list-table th:nth-child(4),
    .wtsm-public-stock-list-table td:nth-child(4) {
        width: 38%;
    }
}

/* v0.6.18 */
.wtsm-list-badge.is-new { background: #2e7d32; color: #fff; }
.wtsm-list-badge.is-used { background: #616161; color: #fff; }
.wtsm-list-badge.is-sold { background: #c62828; color: #fff; }
.wtsm-list-badge.is-featured { background: #f9a825; color: #111; }
.wtsm-list-badge.is-sale { background: #d32f2f; color: #fff; }
.wtsm-list-badge.is-consignment { background: #00838f; color: #fff; }
.wtsm-list-badge.is-wheel { background: #6a1b9a; color: #fff; }
.wtsm-public-badges span { background: #616161; color: #fff; }
.wtsm-public-badges .is-featured { background: #f9a825; color: #111; }
.wtsm-public-badges .is-sale { background: #d32f2f; color: #fff; }
.wtsm-list-management-number,
.wtsm-public-management-number {
    margin-top: 4px;
    color: #50575e;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}
.wtsm-public-management-number {
    margin: 0 0 5px;
    color: #2271b1;
}
.wtsm-list-tire-condition {
    font-weight: 600;
}
.wtsm-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 24px;
}
.wtsm-pagination a,
.wtsm-pagination span {
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #2c3338;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.wtsm-pagination a:hover {
    border-color: #2271b1;
    color: #2271b1;
}
.wtsm-pagination .is-current {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}
.wtsm-pagination .is-disabled {
    opacity: .45;
}

/* v0.6.19: settings shortcode guide */
.wtsm-shortcode-guide .wtsm-shortcode-table code,
.wtsm-shortcode-guide .wtsm-shortcode-examples code {
    display: inline-block;
    padding: 3px 6px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 13px;
}
.wtsm-shortcode-table-wrap {
    overflow-x: auto;
}
.wtsm-shortcode-table th,
.wtsm-shortcode-table td {
    vertical-align: middle;
}
.wtsm-shortcode-sample {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px;
    white-space: pre-wrap;
    line-height: 1.7;
}


/* v0.6.20 RC: 店主レビュー版の一覧微調整 */
@media (min-width: 783px) {
    .wtsm-public-stock-list-table th.wtsm-col-price,
    .wtsm-public-stock-list-table td.wtsm-list-price {
        width: 170px;
        min-width: 170px;
    }
}
.wtsm-list-price {
    font-weight: 700;
    white-space: nowrap;
}
.wtsm-list-price small {
    font-weight: 500;
}


/* v0.6.21: 店主レビュー版リスト列幅の再調整 */
@media (min-width: 783px) {
    .wtsm-public-stock-list-table {
        table-layout: fixed;
    }
    .wtsm-public-stock-list-table th.wtsm-col-photo,
    .wtsm-public-stock-list-table td.wtsm-list-photo {
        width: 72px;
    }
    .wtsm-public-stock-list-table th:nth-child(2),
    .wtsm-public-stock-list-table td.wtsm-list-product {
        width: 20%;
    }
    .wtsm-public-stock-list-table th:nth-child(3),
    .wtsm-public-stock-list-table td:nth-child(3) {
        width: 15%;
        min-width: 130px;
    }
    .wtsm-public-stock-list-table th:nth-child(4),
    .wtsm-public-stock-list-table td.wtsm-list-status {
        width: 30%;
        min-width: 220px;
        max-width: none;
    }
    .wtsm-public-stock-list-table th.wtsm-col-price,
    .wtsm-public-stock-list-table td.wtsm-list-price {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}

/* v0.6.23 店主モード ホーム */
.wtsm-home-wrap .wtsm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}
.wtsm-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}
.wtsm-home-stat-card {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    text-decoration: none;
    color: #1d2327;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.wtsm-home-stat-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.wtsm-home-stat-label {
    display: block;
    color: #646970;
    font-size: 12px;
    margin-bottom: 6px;
}
.wtsm-home-stat-card strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
}
.wtsm-review-points {
    margin-left: 1.2em;
    list-style: disc;
}
