/* Fase 23L - modifica rapida orario/stato dal calendario */
.phase23l-event-card .event-inline-actions button.event-quick-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 0;
    background: #f5f3ff;
    color: #6d28d9;
    font: inherit;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.phase23l-event-card .event-inline-actions button.event-quick-edit-btn:hover {
    background: #ede9fe;
}

.phase23l-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}

.phase23l-modal {
    width: min(620px, calc(100vw - 32px));
    border-radius: 22px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .30);
    overflow: hidden;
}

.phase23l-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #dbe4f0;
    background: #f8fafc;
}

.phase23l-modal-head h3 {
    margin: 0;
    font-size: 1.08rem;
    color: #0f172a;
}

.phase23l-modal-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .9rem;
}

.phase23l-modal-close {
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
}

.phase23l-modal-body {
    padding: 18px 20px 20px;
}

.phase23l-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.phase23l-modal-field label {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-weight: 900;
    font-size: .82rem;
}

.phase23l-modal-field input,
.phase23l-modal-field select {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #bfd0e4;
    padding: 8px 10px;
    color: #0f172a;
    font-size: .96rem;
    background: #fff;
}

.phase23l-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.phase23l-modal-actions button {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
}

.phase23l-modal-actions .primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

@media (max-width: 640px) {
    .phase23l-modal-grid {
        grid-template-columns: 1fr;
    }
}
