/* Alerts screen presentation only. Table markup, exports and print remain native. */
.mi-alert-filter-title { display:none; }
@media screen and (max-width: 767px) {
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) {
    padding: 8px 10px calc(90px + env(safe-area-inset-bottom)); background: linear-gradient(115deg,#effaff,#e7f6ff 55%,#f5fbff); color:#090e4d;
  }
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-header {
    padding:8px 10px; min-height:54px; gap:10px; margin-bottom:8px; border-radius:16px; background:linear-gradient(110deg,#fff,#eff8ff); box-shadow:0 5px 15px #2381b910;
  }
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-header img { width:36%; max-height:40px; }
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-header b {font-size:16px;color:#090e4d}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-account {display:flex;align-items:center;gap:9px;margin-left:auto}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-account > svg {width:20px;height:24px;fill:none;stroke:#143d83;stroke-width:1.7}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-account > svg circle {fill:#f32838;stroke:none}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-account button {width:36px;height:36px;min-width:36px;padding:8px;border-radius:50%;background:#e1eeff;border:1px solid #c9e0ff}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-account button svg {width:18px;height:20px;fill:#315a96}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page {--mi-accent:#00aff2;color:#090e4d;font-family:"DM Sans",Arial,sans-serif}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title {
    position:relative;display:grid;grid-template-columns:minmax(0,1fr) 94px;align-items:center;gap:5px;margin:0 0 8px;padding:13px 55px 13px 13px;min-height:98px;border:1px solid #e3f4ff;border-radius:15px;background:linear-gradient(125deg,#fff9,#e0f3ffb8 72%,#f2fbff);box-shadow:0 5px 18px #278bd211;
  }
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title::after {content:"";position:absolute;inset:auto -2px 8px auto;width:68px;height:78px;transform:none;opacity:1;border:0;border-radius:0;background:url('../img/alerts-mobile-bell.svg') center/contain no-repeat;pointer-events:none}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title span {font-size:8px;letter-spacing:1px;color:#0070ff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title h1 {font-size:18px!important;line-height:1.15!important;color:#090e4d;margin:4px 0 7px;letter-spacing:-.4px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title p {font-size:10px;line-height:1.35;color:#637ba8}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-title button {position:relative;z-index:1;min-height:36px;height:auto;padding:7px 5px;background:linear-gradient(125deg,#00b6f5,#0067ff)!important;border:1px solid #09aaff;border-radius:9px;color:white;font-size:10px;box-shadow:0 5px 12px #008cff30}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards,
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-tabs {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;margin:0 0 8px;border:0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button {padding:8px 6px!important;min-height:94px!important;border:1px solid color-mix(in srgb,var(--alert-accent) 23%,white);border-radius:9px;background:linear-gradient(130deg,#fff,var(--alert-accent-soft));box-shadow:0 3px 10px #1884c410;outline:0;transform:none}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.active {box-shadow:0 3px 10px #1884c418}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.expired {--alert-accent:#ff002b;--alert-accent-soft:#fff0f5;--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 2v6m8-6v6M4 11h16'/%3E%3C/svg%3E")}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.near {--alert-accent:#f6a000;--alert-accent-soft:#fffbed;--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 5v7l5 4'/%3E%3C/svg%3E")}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.low {--alert-accent:#ff5800;--alert-accent-soft:#fff3e8;--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m3 6 9-4 9 4v12l-9 4-9-4zM3 6l9 5 9-5M12 11v11M7 4l10 5v6'/%3E%3C/svg%3E")}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.out {--alert-accent:#006bff;--alert-accent-soft:#edf8ff;--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 4 16 4 16 0V5M4 12c0 4 16 4 16 0'/%3E%3C/svg%3E")}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards > button.due {--alert-accent:#7118ff;--alert-accent-soft:#f4efff;--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 8h18m-5 5h5v4h-5z'/%3E%3C/svg%3E")}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards button::before {position:static;display:block;width:21px;height:22px;margin:0 0 6px;border-radius:0;background:var(--alert-accent);mask:var(--alert-icon) center/contain no-repeat;filter:drop-shadow(1px 2px 2px #0770ff25)}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards :is(span,small) {font-size:9px;line-height:1.2;color:#17417e;letter-spacing:-.2px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards small {display:block;overflow:visible;font-size:8.5px;color:#667eac;margin-top:3px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-cards b {color:var(--alert-accent);font-size:23px;line-height:1;margin:4px 0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-tabs button {font-size:9px;min-height:35px;padding:5px 2px;color:#0b124e;background:linear-gradient(#fff,#f1faff);border:1px solid #e1f0ff;border-radius:8px;box-shadow:0 3px 9px #237ca610}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-tabs button.active {color:#fff;background:linear-gradient(130deg,#00b4f7,#006aff);border-color:#00aaff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-card {padding:0;margin:0;overflow:visible;background:transparent!important;border:0!important;box-shadow:none!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-card > header {padding:9px 10px 4px!important;min-height:35px;flex-wrap:nowrap!important;border-radius:12px 12px 0 0;background:#ffffffeb;gap:5px!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-card > header > div {display:none}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-filter-title {display:block;flex:1;white-space:nowrap;font-size:12px;color:#090e4d}
  html[data-medaliza-ui-mode="mobile"] #app .mi-alert-filter-title::before {content:"";display:inline-block;width:17px;height:19px;vertical-align:middle;margin-right:6px;background:#101755;clip-path:polygon(0 0,100% 0,61% 51%,61% 100%,40% 87%,40% 51%,0 0,12% 10%,47% 50%,47% 83%,54% 88%,54% 48%,88% 9%,12% 10%)}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-card > header button {padding:3px 4px;min-height:28px;height:auto;font-size:8px;color:#0074ff;border:1px solid #d6e9ff;background:#f5fbff;border-radius:8px;max-width:80px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;padding:5px 9px 9px;margin:0 0 8px;background:#ffffffeb;border-radius:0 0 12px 12px;box-shadow:0 6px 18px #389bca12}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters > :is(label,select) {grid-column:span 2!important;min-height:37px;height:37px;border:1px solid #cddff3;border-radius:7px;background:linear-gradient(110deg,#fff,#fafdff);font-size:10px!important;padding:3px 6px!important;color:#526b97}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters label {display:flex;align-items:center;gap:4px;overflow:hidden}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters label:has(input[name="batch"]) {font-size:0!important;gap:0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters input {min-height:29px;height:29px;border:0!important;background:transparent!important;padding:2px!important;font-size:11px!important;box-shadow:none!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters label:has([type="date"]) {display:grid;grid-template-columns:1fr;gap:0;font-size:8px!important;height:42px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters input[type="date"] {min-height:24px;height:24px;font-size:11px!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters button {min-height:36px;height:auto;margin:2px 0 0;padding:5px 2px;border-radius:7px;font-size:10px;color:#fff;background:linear-gradient(130deg,#00b4ff,#0064ff);border:1px solid #0a9cff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters [data-alert-action="clear"] {background:#f5fbff;color:#f76b00;border-color:#d6e9ff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters [data-alert-action="export"] {background:linear-gradient(120deg,#e3fbef,#f5fff9);color:#009447;border-color:#bcefd7}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-filters [data-alert-action="print"] {background:linear-gradient(120deg,#e9f8ff,#dff2ff);color:#007aff;border-color:#acd9ff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .medaliza-alert-reorder {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px;margin:0 0 7px;border:0;border-radius:10px;background:#ffffffc9}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .medaliza-alert-reorder label {font-size:10px!important;gap:6px;color:#141b56}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .medaliza-alert-reorder button {width:auto;min-height:33px;padding:4px 6px;gap:2px;font-size:9px;background:#eaf5ff;border:1px solid #c7e1ff;color:#0071ff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-table {overflow:visible;min-width:0;width:100%}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-table table {min-width:0!important;width:100%!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tbody {gap:7px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tbody > tr {position:relative;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:7px 7px 4px;border:1px solid #dcf0ff;border-left:3px solid #00aff4;border-radius:10px;box-shadow:0 5px 13px #3195cc15}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tbody > tr:not(.mi-message-row)::after {content:attr(data-mobile-alert-status);position:absolute;right:8px;top:11px;font-size:7px;font-weight:700;border-radius:20px;padding:4px 5px;color:#d56600;background:#fff2e3;max-width:24%}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td {grid-column:auto!important;min-width:0;padding:5px 5px!important;font-size:10px!important;line-height:1.25!important;overflow-wrap:anywhere!important;color:#101d55;border-bottom:1px solid #eaf1fa!important;font-weight:400}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td::before {font-size:8px;font-weight:400;margin-bottom:3px;color:#6b83af;letter-spacing:0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td[data-mobile-label="Product"],
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td[data-mobile-label="Party"] {grid-column:1/-1!important;min-height:45px;padding:0 25% 7px 0!important;font-size:12px!important;font-weight:700}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tr:has(.medaliza-alert-select) td[data-mobile-label="Product"] {padding-left:30px!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td[data-mobile-label="Product"] small {font-weight:400;font-size:10px;line-height:1.25;color:#6b82ac;margin:2px 0 0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.medaliza-alert-select {position:absolute!important;top:11px;left:8px;width:23px!important;padding:0!important;border:0!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.medaliza-alert-select::before {display:none}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.medaliza-alert-select input {margin:0;width:20px;height:20px}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td[data-mobile-label="Current Quantity"] {color:#fb152a}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.mi-actions {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-column:1/-1!important;gap:0;margin-top:5px;padding:2px!important;border:1px solid #e1efff!important;border-radius:7px;background:#f7fbff!important}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.mi-actions::before {display:none}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.mi-actions button {padding:4px 2px;margin:0;min-height:30px;font-size:8.5px;color:#006bff;border:0;border-right:1px solid #d4e7ff;border-radius:0;background:none}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table td.mi-actions button:last-child {border-right:0}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .alerts-live-badge {font-size:7px;padding:4px;line-height:1.1;border-radius:15px;font-weight:700;white-space:normal}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tr:has(td[data-mobile-label="Party"]) {grid-template-columns:repeat(2,minmax(0,1fr));border-left-color:#8b4cff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tr:has(.expired)::after {color:#e60b36;background:#ffedf3}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tr:has(.out)::after {color:#0067f5;background:#eaf5ff}
  html[data-medaliza-ui-mode="mobile"] #app .alerts-live-page .mi-table tr.mi-message-row td {grid-column:1/-1!important;padding:16px 7px!important;font-size:12px!important}
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-nav {background:#f9fcffe8;border:1px solid #d9eaff;box-shadow:0 3px 18px #2f8ec41a;border-radius:20px}
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-nav__item--main {background:linear-gradient(135deg,#edf7ff,#e1edff);color:#12245a;border-color:#d2e6ff;border-radius:13px}
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(.alerts-live-page) .medaliza-mobile-shell-nav__item--main.is-active {background:linear-gradient(130deg,#00b6ff,#0066ff);border-color:#19b4ff;color:white}
}
