/* Aviso flotante de descuento por monto / envío sin costo */
.dm-alerta {
    position: fixed; right: 20px; bottom: 20px; z-index: 9999;
    width: 340px; max-width: calc(100vw - 24px);
    background: #fff; color: #222; border-left: 5px solid var(--accent-color, #EA4F0F);
    border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.22);
    padding: 12px 34px 12px 14px; font-size: 13.5px; line-height: 1.4;
    transform: translateY(24px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
}
.dm-alerta.dm-visible { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.dm-alerta .dm-cerrar {
    position: absolute; top: 4px; right: 8px; border: none; background: none;
    font-size: 22px; line-height: 1; color: #888; cursor: pointer;
}
.dm-alerta .dm-cerrar:hover { color: #222; }
.dm-linea + .dm-linea { margin-top: 9px; padding-top: 9px; border-top: 1px solid #eee; }
.dm-ok { color: #1e7e34; }
.dm-barra { height: 7px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.dm-barra span { display: block; height: 100%; background: var(--accent-color, #EA4F0F); border-radius: 4px; transition: width .3s; }
@media (max-width: 600px) {
    .dm-alerta { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* Pantalla de administración */
.dmadm-box { border: 1px solid #ddd; border-radius: 6px; padding: 10px 14px 12px; margin: 0 0 14px; }
.dmadm-box legend { font-weight: 600; padding: 0 6px; font-size: 14px; }
.dmadm-fila { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; }
.dmadm-fila label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.dmadm-box input[type=text], .dmadm-box input[type=number], .dmadm-box input[type=datetime-local], .dmadm-box select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; max-width: 100%; }
.dmadm-box small { color: #777; display: block; margin-top: 4px; }
.dmadm-tabla { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 13px; }
.dmadm-tabla th, .dmadm-tabla td { padding: 4px 6px; text-align: left; }
.dmadm-tabla input[type=number] { width: 130px; }
.dmadm-estado { padding: 8px 12px; border-radius: 6px; background: #f3f3f3; }
.dmadm-on { background: #e7f6ea; color: #1e7e34; }
.dmadm-prog { background: #fff4d6; color: #8a6100; }
.dmadm-off { background: #f3f3f3; color: #666; }
.dmadm-res a { display: block; padding: 5px 8px; border-bottom: 1px solid #eee; cursor: pointer; text-decoration: none; color: inherit; }
.dmadm-res a:hover { background: #f7f7f7; }
.dmadm-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.dmadm-chip { background: #eee; border-radius: 14px; padding: 3px 10px; font-size: 12.5px; }
.dmadm-chip a { margin-left: 4px; text-decoration: none; color: #c00; }
.dmadm-cats { max-height: 240px; overflow: auto; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.dmadm-acciones { display: flex; align-items: center; gap: 12px; }
.dmadm-aviso { background: #fff4d6; padding: 10px 14px; border-radius: 6px; }
.dmadm-cats small, .dmadm-box label small { display: inline; margin: 0 0 0 3px; }

/* Ayuda de la pantalla de administración */
.dmadm-ayuda { border: 1px solid #cfe2ff; background: #f3f8ff; border-radius: 6px; margin: 0 0 14px; }
.dmadm-ayuda summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: #0a58ca; }
.dmadm-ayuda-cuerpo { padding: 2px 18px 14px; font-size: 13.5px; line-height: 1.5; }
.dmadm-ayuda-cuerpo h6 { margin: 16px 0 4px; font-size: 14px; color: #222; }
.dmadm-ayuda-cuerpo p, .dmadm-ayuda-cuerpo ul, .dmadm-ayuda-cuerpo ol { margin: 4px 0 6px; }
.dmadm-ayuda-cuerpo li { margin: 2px 0; }
