/* Modale d'emplacement — appelée depuis la collection, « à ranger » et le classeur. */

/* Coquille, voile et couche : voir .modal dans components.css. */
.location-modal__panel {
    width: min(100%, 460px);
    max-height: min(90vh, 720px);
    padding: var(--space-5);
}

.location-modal__panel h2 {
    margin: 0 0 var(--space-1);
    font-size: var(--fs-lg);
    font-family: var(--font-heading);
    color: var(--gold);
}

.location-modal__card-name {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.location-form__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
}

.location-form__qty[hidden] {
    display: none !important;
}

.location-form__qty-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
}

/* Compteur de quantité : voir .qty-stepper dans components.css. */

.location-form .binder-picker-label {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
}

.location-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.location-form__row label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
}

.location-form__row input,
.location-extras__add input {
    --cut: 8px;
    --cut-r: 10px;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 0;
    background-color: #0c0b18;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 48%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(180, 190, 255, 0.28),
        inset 0 2px 8px rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    font-size: var(--fs-sm);
    clip-path: polygon(
        var(--cut) 0,
        calc(100% - var(--cut-r)) 0,
        100% var(--cut-r),
        100% 100%,
        0 100%,
        0 var(--cut)
    );
}

.location-form__row input:focus-visible,
.location-extras__add input:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(180, 190, 255, 0.7),
        0 0 14px rgba(180, 190, 255, 0.22);
}

.location-form__hint {
    margin: var(--space-2) 0 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.location-extras {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.location-extras__title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    color: var(--gold);
}

.location-extras ul {
    margin: 0 0 var(--space-2);
    padding-left: 1.1rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.location-extras__add {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    flex-wrap: wrap;
}

.location-extras__add label {
    font-size: var(--fs-xs);
}

#location-next-slot {
    margin-top: var(--space-2);
}

.location-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-4);
}

.location-form__actions-spacer {
    flex: 1 1 auto;
    min-width: 0.5rem;
}
