/* Estilos añadidos para la versión conectada a la API */

.modal-content { position: relative; max-width: 520px; }
.modal-close { position: absolute; top: 16px; right: 16px; }

.error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
    margin-bottom: 10px;
}

.muted { color: var(--text-secondary); font-size: 13px; }

.wide-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.wide-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.toolbar .wide-input { flex: 1; min-width: 200px; }

.results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: white;
}
.result-row:hover { background: var(--bg-tertiary); }

.flex-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-title { font-size: 20px; font-weight: 700; }
.detail-meta { margin-top: 12px; font-size: 14px; color: var(--text-primary); }
.detail-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.total-box {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-secondary);
}

.badge-muted { background: #F1F5F9; color: #475569; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn-small { padding: 6px 12px; font-size: 12px; }

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s;
    pointer-events: none;
    z-index: 2000;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: var(--success); }
.toast.bad { background: var(--danger); }

.nav-item { user-select: none; }
