/* One outer border for all filter editors; native inputs inside DevExpress stay borderless. */
.alerts-history .alerts-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.alerts-history .alerts-filters>label{display:flex;flex-direction:column;gap:8px;flex:1 1 220px;min-width:190px;margin:0}
#application .alerts-filters .dx-texteditor,#application #alert-history-range{min-height:42px;height:42px;border:1px solid var(--border,#dce3ed)!important;border-radius:10px!important;box-shadow:none!important;background:#fff;color:#243248;font:inherit}
#application .alerts-filters .dx-texteditor-input{border:0!important;border-radius:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;min-height:38px!important;height:38px!important;padding:8px 12px!important;font:inherit!important;color:inherit!important}
#application .alerts-filters .dx-texteditor-input-container{border:0!important;box-shadow:none!important;background:transparent!important}
#application .alerts-filters .dx-texteditor::before,#application .alerts-filters .dx-texteditor::after{display:none!important}
#application .alerts-filters .dx-texteditor.dx-state-focused,#application #alert-history-range:focus{border-color:#639ee8!important;outline:2px solid #639ee833!important;outline-offset:1px}
#application .alerts-filters .dx-placeholder{color:#66758a!important;font:inherit!important}
#application .alerts-filters .dx-placeholder::before{padding:8px 12px!important}
#application .alerts-filters .dx-tagbox-input{width:auto!important;min-width:70px!important}
#application .alerts-filters .dx-tagbox{height:auto;min-height:42px}
#application .alerts-filters>button{height:42px;margin:0}
#application #alert-history-range{padding:8px 12px;width:100%;box-sizing:border-box;cursor:pointer}
[data-theme=dark] #application .alerts-filters .dx-texteditor,[data-theme=dark] #application #alert-history-range{background:#253247;color:#dce5f2}
[data-palette=gray] #application .alerts-filters .dx-texteditor,[data-palette=gray] #application #alert-history-range{background:#292929;color:#eee}
[data-theme=dark] #application .alerts-filters .dx-placeholder{color:#b2bdcb!important}
.alerts-history .dx-datagrid{background:transparent;color:inherit}.alerts-history .dx-datagrid .alert-icon-button{padding:5px;width:32px;height:32px}
.daterangepicker.alert-history-calendar{--color-panel-solid:#fff;--color-border-strong:#dce3ed;--color-border:#e2e8f0;--color-text:#243248;--color-text-soft:#334155;--color-text-muted:#64748b;--color-text-faint:#94a3b8;--color-surface-inset:#f7f9fc;--color-surface:#fff;--color-surface-hover:#edf3fb;--color-accent:#1769c2;--color-accent-soft:#e8f1fc;--shadow-floating:0 18px 50px #0003}
[data-theme=dark] .daterangepicker.alert-history-calendar{--color-panel-solid:#1b2535;--color-border-strong:#344156;--color-border:#344156;--color-text:#dce5f2;--color-text-soft:#c4d0df;--color-text-muted:#a0aec0;--color-text-faint:#718096;--color-surface-inset:#253247;--color-surface:#253247;--color-surface-hover:#30415b;--color-accent:#72b9f5;--color-accent-soft:#293c51}
[data-palette=gray] .daterangepicker.alert-history-calendar{--color-panel-solid:#222;--color-border-strong:#444;--color-border:#444;--color-text:#eee;--color-text-soft:#ddd;--color-text-muted:#aaa;--color-text-faint:#777;--color-surface-inset:#292929;--color-surface:#292929;--color-surface-hover:#363636;--color-accent:#72b9f5;--color-accent-soft:#29343c}
.daterangepicker.alert-history-calendar{z-index:9999!important;margin-top:8px!important;padding:7px!important;border:1px solid var(--color-border-strong)!important;border-radius:12px!important;background:var(--color-panel-solid)!important;box-shadow:var(--shadow-floating)!important;color:var(--color-text)!important;font-family:"Roboto",system-ui,sans-serif!important}
.daterangepicker.alert-history-calendar.show-calendar{width:min(1040px,calc(100vw - 32px));max-width:calc(100vw - 32px);overflow:hidden}
.daterangepicker.alert-history-calendar.show-calendar .ranges{width:190px;min-width:190px;margin:0;padding:8px}
.daterangepicker.alert-history-calendar.show-calendar .drp-calendar{width:calc((100% - 190px)/2);max-width:none!important;padding:12px 16px!important}
.daterangepicker.alert-history-calendar.show-ranges.ltr .drp-calendar.left{border-right:0!important;border-left:1px solid var(--color-border)!important}
.daterangepicker.alert-history-calendar .drp-calendar.right{border-left:1px solid var(--color-border)!important}
.daterangepicker.alert-history-calendar .calendar-table table{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:2px!important}
.daterangepicker.alert-history-calendar .calendar-table th,.daterangepicker.alert-history-calendar .calendar-table td{min-width:0!important;padding:0!important}
.daterangepicker.alert-history-calendar .calendar-table .prev span,.daterangepicker.alert-history-calendar .calendar-table .next span{border-color:var(--color-text-muted)!important}
.daterangepicker.alert-history-calendar .calendar-table thead tr:first-child th.prev,.daterangepicker.alert-history-calendar .calendar-table thead tr:first-child th.next,.daterangepicker.alert-history-calendar .calendar-table thead tr:nth-child(2) th,.daterangepicker.alert-history-calendar .calendar-table tbody td{width:14.2857%!important}
.daterangepicker.alert-history-calendar .calendar-table thead tr:first-child th.month{width:71.4285%!important}
.daterangepicker.alert-history-calendar select.monthselect,.daterangepicker.alert-history-calendar select.yearselect{height:31px!important;padding:0 8px!important;font-size:13px!important;font-weight:750!important}
.daterangepicker.alert-history-calendar:before{border-bottom-color:var(--color-border-strong)!important}.daterangepicker.alert-history-calendar:after{border-bottom-color:var(--color-panel-solid)!important}.daterangepicker.alert-history-calendar .calendar-table{border:0!important;background:transparent!important}.daterangepicker.alert-history-calendar .calendar-table th,.daterangepicker.alert-history-calendar .calendar-table td{width:31px!important;height:29px!important;min-width:31px!important;border:0!important;border-radius:7px!important;background:transparent;color:var(--color-text-soft);font-size:13px}.daterangepicker.alert-history-calendar .calendar-table th{color:var(--color-text-muted);font-weight:750}.daterangepicker.alert-history-calendar td.off,.daterangepicker.alert-history-calendar td.off.in-range{background:transparent!important;color:var(--color-text-faint)!important;opacity:.42}.daterangepicker.alert-history-calendar td.available:hover,.daterangepicker.alert-history-calendar th.available:hover{background:var(--color-surface-hover)!important;color:var(--color-text)!important}.daterangepicker.alert-history-calendar td.in-range{background:var(--color-accent-soft)!important;color:var(--color-text)!important}.daterangepicker.alert-history-calendar td.active,.daterangepicker.alert-history-calendar td.active:hover{background:var(--color-accent)!important;color:#fff!important}.daterangepicker.alert-history-calendar .drp-calendar.left{border-right:1px solid var(--color-border)!important}.daterangepicker.alert-history-calendar .calendar-time select,.daterangepicker.alert-history-calendar select.monthselect,.daterangepicker.alert-history-calendar select.yearselect{border:1px solid var(--color-border)!important;border-radius:6px;background:var(--color-surface-inset)!important;color:var(--color-text)!important}.daterangepicker.alert-history-calendar .drp-buttons{border-top:1px solid var(--color-border)!important}.daterangepicker.alert-history-calendar .drp-selected{color:var(--color-text-muted)!important}.daterangepicker.alert-history-calendar .btn{height:31px;padding:0 12px;border:1px solid var(--color-border);border-radius:7px;background:var(--color-surface);color:var(--color-text-soft);font-size:12px;font-weight:750}.daterangepicker.alert-history-calendar .applyBtn{border-color:var(--color-accent)!important;background:var(--color-accent)!important;color:#fff!important}.daterangepicker.alert-history-calendar .ranges li{border-radius:7px;color:var(--color-text-muted);font-size:12px}.daterangepicker.alert-history-calendar .ranges li:hover,.daterangepicker.alert-history-calendar .ranges li.active{background:var(--color-accent-soft)!important;color:var(--color-accent)!important}
@media(max-width:900px){.daterangepicker.alert-history-calendar.show-calendar .ranges{width:100%;min-width:0}.daterangepicker.alert-history-calendar .ranges ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}.daterangepicker.alert-history-calendar.show-calendar .drp-calendar{width:50%}}
@media(max-width:650px){.daterangepicker.alert-history-calendar.show-calendar{width:calc(100vw - 18px);max-height:calc(100vh - 24px);overflow:auto;left:9px!important}.daterangepicker.alert-history-calendar.show-calendar .drp-calendar{width:100%}.daterangepicker.alert-history-calendar .ranges ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
.alert-dwell-secondary{display:block;margin-top:4px;font-size:11px;color:var(--muted,#8290a3);font-weight:400}#application #alert-filter-units .dx-tag-content{margin:4px 0 4px 8px;padding:5px 28px 5px 8px;white-space:nowrap;background:transparent;border:0}#application #alert-filter-units{height:42px!important;overflow:hidden}

.alert-history-small-icon{font-size:13px;line-height:18px;vertical-align:middle;color:inherit}#alert-history-grid .dx-data-row>td:has(.alert-history-small-icon){padding-left:4px;padding-right:4px;vertical-align:middle}

.alert-type-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:600;line-height:1.4;color:var(--text);background:color-mix(in srgb,var(--muted) 10%,transparent)}.alert-type-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--type-accent);flex:none}.alert-type-badge[data-tone=amber]{--type-accent:#dc941d}.alert-type-badge[data-tone=green]{--type-accent:#20ae7d}.alert-type-badge[data-tone=blue]{--type-accent:#5499ef}.alert-type-badge[data-tone=violet]{--type-accent:#a484e9}.alert-type-badge[data-tone=neutral]{--type-accent:#8198ac}.alert-type-badge{background:color-mix(in srgb,var(--type-accent) 11%,transparent)}
