/* ---- Carteles (toastr): tarjeta blanca con franja de color y ícono ---- */
#toast-container { top: 72px !important; }
#toast-container > div {
    width: 380px; max-width: 92vw; opacity: 1; border-radius: 14px;
    padding: 14px 40px 14px 56px; background-color: #fff !important; color: #111827;
    font-size: 14px; line-height: 1.45; font-weight: 500;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .22), 0 0 0 1px rgba(17, 24, 39, .06);
    border-left: 6px solid #9ca3af; background-repeat: no-repeat; background-position: 16px 14px; background-size: 28px 28px;
    -moz-box-shadow: none;
}
#toast-container > div:hover { box-shadow: 0 14px 36px rgba(17, 24, 39, .3), 0 0 0 1px rgba(17, 24, 39, .08); opacity: 1; }
#toast-container > .toast-success { border-left-color: #16a34a; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%2316a34a'/><path d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important; }
#toast-container > .toast-error { border-left-color: #dc2626; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23dc2626'/><path d='M8 8l8 8M16 8l-8 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'/></svg>") !important; }
#toast-container > .toast-warning { border-left-color: #d97706; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23d97706'/><path d='M12 6.5v7' stroke='white' stroke-width='2.6' stroke-linecap='round'/><circle cx='12' cy='17.3' r='1.5' fill='white'/></svg>") !important; }
#toast-container > .toast-info { border-left-color: #2563eb; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%232563eb'/><path d='M12 11v6' stroke='white' stroke-width='2.6' stroke-linecap='round'/><circle cx='12' cy='7.4' r='1.5' fill='white'/></svg>") !important; }
#toast-container .toast-title { font-weight: 700; margin-bottom: 2px; }
#toast-container .toast-message { word-wrap: break-word; }
#toast-container .toast-close-button { top: 6px; right: 10px; color: #6b7280; opacity: .8; font-size: 22px; text-shadow: none; }
#toast-container .toast-progress { height: 4px; opacity: .35; background-color: #111827; border-radius: 0 0 14px 0; }

/* ---- Campanita: punto rojo con el número de avisos sin ver ---- */
#show_unread_notifications { position: relative; }
span.notifications_count {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: #dc2626 !important; color: #fff !important; font-size: 12px; font-weight: 700;
    line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
span.notifications_count:empty { display: none; }

/* ---- Lista de la campanita ---- */
.notifications-menu .dropdown-menu { padding: 0 !important; border-radius: 14px !important; overflow-x: hidden; }
.notifications-menu .dropdown-menu > li > ul.menu { padding: 4px 0 8px; margin: 0; list-style: none; max-height: none; }
.om-notif-titulo { padding: 14px 16px 8px; font-size: 15px; font-weight: 700; color: #111827; list-style: none; }
.om-notif-titulo small { font-weight: 500; color: #9ca3af; font-size: 12px; margin-left: 6px; }
#notifications_list .notification-li { display: block !important; padding: 0 !important; margin: 0 6px 2px; border-radius: 10px; list-style: none; }
#notifications_list .notification-li > a { display: flex !important; align-items: flex-start; gap: 12px; padding: 10px 12px; color: #111827 !important; text-decoration: none; white-space: normal; }
#notifications_list .notification-li:hover { background: #f3f4f6; }
#notifications_list .notification-li.unread { background: #eff6ff; }
#notifications_list .notification-li.unread > a { box-shadow: inset 3px 0 0 #2563eb; border-radius: 10px; }
#notifications_list .notif-icon { flex: 0 0 22px; width: 22px; font-size: 18px; margin: 1px 0 0; text-align: center; background: none !important; }
#notifications_list .notif-texto { flex: 1 1 auto; min-width: 0; display: block; }
#notifications_list .notif-info { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; color: #111827; word-break: break-word; }
#notifications_list .time { display: block; margin-top: 2px; font-size: 11px; color: #9ca3af; }
#notifications_list .om-nv-success { color: #16a34a !important; }
#notifications_list .om-nv-error { color: #dc2626 !important; }
#notifications_list .om-nv-warning { color: #d97706 !important; }
#notifications_list .om-nv-info, #notifications_list .om-nv-venta { color: #2563eb !important; }
#notifications_list .no-notification { padding: 28px 12px !important; color: #9ca3af; font-size: 13px; }

/* ---- Menú lateral: ventas nuevas sin ver ---- */
.om-badge-ventas {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    margin-left: 8px; border-radius: 11px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}

/* Punto rojo en "Vender" cuando hay ventas nuevas sin ver */
.om-con-punto { position: relative; }
.om-dot-ventas { position: absolute; left: 29px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 2px #fff; }
