/**
 * File Path: assets/css/mbs-admin-inline-edit.css
 * MBS taxonomy fields in WordPress native bulk-edit and quick-edit panels; loaded on the Books list screen only.
 * @package MyBookShowroom
 * @since   1.0.0
 */

/* ── Section heading ───────────────────────────────────────────────────────── */
.mbs-inline-edit-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #646970;
    margin: 14px 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e5e5;
}

/* ── Series single-select row ──────────────────────────────────────────────── */
.mbs-inline-edit-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mbs-inline-edit-label .title {
    flex-shrink: 0;
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3338;
}

.mbs-inline-edit-label select {
    min-width: 200px;
    max-width: 100%;
    font-size: 13px;
}

/* ── Checklist wrapper ─────────────────────────────────────────────────────── */
.mbs-inline-edit-checklist-wrap {
    margin-bottom: 12px;
}

.mbs-inline-edit-tax-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 3px;
}

/* "Adds to existing — does not remove" note (bulk edit only) */
.mbs-inline-edit-append-note {
    font-size: 11px;
    color: #646970;
    font-style: italic;
    margin: 0 0 4px;
}

/* ── The checkbox list ─────────────────────────────────────────────────────── */
.mbs-inline-edit-checklist {
    list-style: none;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    background: #fff;
    max-height: 148px;
    overflow-y: auto;
}

.mbs-inline-edit-checklist li {
    padding: 2px 0;
}

.mbs-inline-edit-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.mbs-inline-edit-checklist input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}

/* ── Fieldset chrome ───────────────────────────────────────────────────────── */
.mbs-inline-edit-fieldset {
    /* Matches WP core's .inline-edit-col-right margin convention. */
    margin-top: 0;
}

.mbs-inline-edit-fieldset .inline-edit-col {
    padding-top: 0;
}

/* ── Hide WP native Order field (menu_order) — not used by MBS ───────────── */
/* The Order <label> has no class; target it via its input child.             */
label:has(input.inline-edit-menu-order-input) {
    display: none !important;
}

/* ── Series Position input ─────────────────────────────────────────────────── */
.mbs-inline-edit-label input.small-text {
    width: 80px;
    font-size: 13px;
}

/* ── Reading Order display row ─────────────────────────────────────────────── */
.mbs-inline-edit-reading-order-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mbs-inline-edit-reading-order-wrap .mbs-inline-edit-tax-label {
    flex-shrink: 0;
    width: 80px;
    margin-bottom: 0;
}

.mbs-inline-edit-reading-order-pos {
    font-size: 13px;
    font-weight: 600;
    color: #2c3338;
    min-width: 24px;
}

.mbs-inline-edit-reading-order-note {
    font-size: 11px;
    color: #646970;
    font-style: italic;
}
