/*
 * RastreCore — identidade visual do mapa.
 * Mantido separado dos temas legados para garantir um menu estável em todas as cores.
 */
body.new-design-active {
    --rc-map-primary: #1261e9;
    --rc-map-primary-strong: #0d4fc4;
    --rc-map-primary-soft: #edf4ff;
    --rc-map-navy: #10213d;
    --rc-map-text: #52627a;
    --rc-map-muted: #8a98ac;
    --rc-map-line: #e1e8f1;
    --rc-map-surface: #fff;
    --rc-map-hover: #f5f8fd;
}

/* Resultado da busca no mapa — ação de limpar compacta. */
body.new-design-active .leaflet-popup-content:has(.rc-map-point-clear),
body.new-design-active .leaflet-popup-content:has(button[onclick*="app.clearPoint"]),
body.new-design-active .maplibregl-popup-content:has(.rc-map-point-clear),
body.new-design-active .maplibregl-popup-content:has(button[onclick*="app.clearPoint"]) {
    width: auto !important;
    margin: 6px !important;
    padding: 0 !important;
    text-align: center !important;
}

body.new-design-active .leaflet-popup-content .rc-map-point-clear-wrap,
body.new-design-active .maplibregl-popup-content .rc-map-point-clear-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.new-design-active .rc-map-point-clear,
body.new-design-active button[onclick*="app.clearPoint"] {
    display: inline-grid !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 9px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-map-point-clear > span,
body.new-design-active button[onclick*="app.clearPoint"]::before {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

body.new-design-active button[onclick*="app.clearPoint"]:not(.rc-map-point-clear)::before {
    content: "\00d7" !important;
}

body.new-design-active .rc-map-point-clear:hover,
body.new-design-active .rc-map-point-clear:focus,
body.new-design-active button[onclick*="app.clearPoint"]:hover,
body.new-design-active button[onclick*="app.clearPoint"]:focus {
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    outline: 0 !important;
}

/* Busca de endereço — mesmo padrão visual dos modais do mapa. */
body.new-design-active #searchAddress.rc-search-address-modal {
    position: fixed !important;
    z-index: 2147483000 !important;
}

body.new-design-active:has(#searchAddress.in) > .modal-backdrop,
body.new-design-active.rc-search-address-open > .modal-backdrop {
    z-index: 2147482990 !important;
}

body.new-design-active #searchAddress .rc-search-address-dialog {
    width: min(620px, calc(100vw - 28px)) !important;
    max-width: none !important;
    margin: 28px auto !important;
}

body.new-design-active #searchAddress .modal-content {
    overflow: visible !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .25) !important;
}

body.new-design-active #searchAddress .modal-header {
    display: flex !important;
    min-height: 68px !important;
    align-items: center !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #dce4ee !important;
    border-radius: 15px 15px 0 0 !important;
    background: #fff !important;
}

body.new-design-active #searchAddress .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 17px !important;
    font-weight: 750 !important;
}

body.new-design-active #searchAddress .modal-title > .icon {
    display: inline-grid !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #edf4ff !important;
    color: #1265ef !important;
    font-size: 16px !important;
    line-height: 40px !important;
}

body.new-design-active #searchAddress .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

body.new-design-active #searchAddress .modal-body {
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
}

body.new-design-active #searchAddress .rc-search-address-tabs {
    display: flex !important;
    min-height: 58px !important;
    align-items: flex-end !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 10px 22px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
}

body.new-design-active #searchAddress .rc-search-address-tabs > li {
    float: none !important;
    margin: 0 !important;
}

body.new-design-active #searchAddress .rc-search-address-tabs > li > a {
    display: inline-flex !important;
    min-height: 47px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 10px 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

body.new-design-active #searchAddress .rc-search-address-tabs > li.active > a,
body.new-design-active #searchAddress .rc-search-address-tabs > li.active > a:hover,
body.new-design-active #searchAddress .rc-search-address-tabs > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #17233a !important;
}

body.new-design-active #searchAddress .rc-search-address-content {
    min-height: 116px !important;
    margin: 0 !important;
    padding: 20px 22px 22px !important;
}

body.new-design-active #searchAddress .form-group {
    margin: 0 0 16px !important;
}

body.new-design-active #searchAddress .form-group:last-child {
    margin-bottom: 0 !important;
}

body.new-design-active #searchAddress .form-group > label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #1d2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active #searchAddress .form-control {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #d2dce9 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
}

body.new-design-active #searchAddress .form-control:focus {
    border-color: #7ca9f8 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #searchAddress .autocomplete-dropdown {
    z-index: 2147483010 !important;
    margin-top: 6px !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}

body.new-design-active #searchAddress .rc-search-coordinate-types {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin-bottom: 16px !important;
}

body.new-design-active #searchAddress .rc-search-coordinate-types .form-group,
body.new-design-active #searchAddress .radio {
    margin: 0 !important;
}

body.new-design-active #searchAddress .radio {
    display: flex !important;
    min-height: 20px !important;
    align-items: center !important;
    gap: 7px !important;
}

body.new-design-active #searchAddress .radio > input[type="radio"] {
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    appearance: none !important;
    margin: 0 !important;
    border: 1.5px solid #cbd6e4 !important;
    border-radius: 50% !important;
    background: #fff !important;
    cursor: pointer !important;
}

body.new-design-active #searchAddress .radio > input[type="radio"]:checked {
    border: 5px solid #1265ef !important;
}

body.new-design-active #searchAddress .radio > label {
    margin: 0 !important;
    padding: 0 !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

body.new-design-active #searchAddress .search_cor_type_1,
body.new-design-active #searchAddress .search_cor_type_2 {
    margin-right: -5px !important;
    margin-left: -5px !important;
}

body.new-design-active #searchAddress .search_cor_type_1 > [class*="col-"],
body.new-design-active #searchAddress .search_cor_type_2 > [class*="col-"] {
    padding-right: 5px !important;
    padding-left: 5px !important;
}

body.new-design-active #searchAddress .modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 14px 18px !important;
    border-top: 1px solid #e4eaf2 !important;
    border-radius: 0 0 15px 15px !important;
    background: #fff !important;
}

body.new-design-active #searchAddress .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.new-design-active #searchAddress .modal-footer .btn {
    min-width: 92px !important;
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active #searchAddress .modal-footer .rc-search-address-submit {
    border-color: #299bd6 !important;
    background: #299bd6 !important;
    color: #fff !important;
}

body.new-design-active #searchAddress .modal-footer .rc-search-address-cancel {
    border-color: #edf0f4 !important;
    background: #f1f3f6 !important;
    color: #667085 !important;
}

@media (max-width: 767px) {
    body.new-design-active #searchAddress .rc-search-address-dialog {
        width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    body.new-design-active #searchAddress .modal-header {
        min-height: 60px !important;
        padding: 10px 14px !important;
    }

    body.new-design-active #searchAddress .modal-title > .icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
        line-height: 36px !important;
    }

    body.new-design-active #searchAddress .rc-search-address-tabs {
        min-height: 54px !important;
        gap: 18px !important;
        padding: 7px 14px 0 !important;
    }

    body.new-design-active #searchAddress .rc-search-address-content {
        padding: 16px 14px 18px !important;
    }

    body.new-design-active #searchAddress .rc-search-coordinate-types {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    body.new-design-active #searchAddress .search_cor_type_1 > [class*="col-"],
    body.new-design-active #searchAddress .search_cor_type_2 > [class*="col-"] {
        width: 100% !important;
    }

    body.new-design-active #searchAddress .modal-footer .buttons,
    body.new-design-active #searchAddress .modal-footer .btn {
        flex: 1 1 0 !important;
    }
}

/* Points of interest — standardized sidebar editor. */
body.new-design-active #pois_create.active,
body.new-design-active #pois_edit.active {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    background: #fff !important;
}

body.new-design-active #pois_create:not(.active),
body.new-design-active #pois_edit:not(.active) {
    display: none !important;
}

body.new-design-active #pois_create > .rc-poi-editor-form,
body.new-design-active #pois_edit > .rc-poi-editor-form {
    display: flex !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    margin: 0 !important;
}

body.new-design-active #pois_create .rc-poi-editor-body,
body.new-design-active #pois_edit .rc-poi-editor-body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fff !important;
    padding: 12px 12px 20px !important;
    scrollbar-color: #ccd7e5 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active #pois_create .rc-poi-draw-alert,
body.new-design-active #pois_edit .rc-poi-draw-alert {
    display: flex !important;
    min-height: 48px !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 0 16px !important;
    border: 1px solid #b9dff0 !important;
    border-radius: 11px !important;
    color: #24749a !important;
    background: #e8f6fc !important;
    padding: 11px 13px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

body.new-design-active #pois_create .rc-poi-editor-body > .form-group,
body.new-design-active #pois_edit .rc-poi-editor-body > .form-group {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

body.new-design-active #pois_create .rc-poi-editor-body > .form-group > label,
body.new-design-active #pois_edit .rc-poi-editor-body > .form-group > label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #263247 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.new-design-active #pois_create .rc-poi-editor-body .form-control,
body.new-design-active #pois_edit .rc-poi-editor-body .form-control,
body.new-design-active #pois_create .rc-poi-editor-body .bootstrap-select > .dropdown-toggle,
body.new-design-active #pois_edit .rc-poi-editor-body .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 1px solid #d5dfec !important;
    border-radius: 10px !important;
    color: #475569 !important;
    background: #fff !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 24px !important;
    box-shadow: none !important;
}

body.new-design-active #pois_create .rc-poi-editor-body textarea.form-control,
body.new-design-active #pois_edit .rc-poi-editor-body textarea.form-control {
    height: 82px !important;
    min-height: 82px !important;
    resize: vertical !important;
    line-height: 18px !important;
}

body.new-design-active #pois_create .rc-poi-editor-body .form-control:focus,
body.new-design-active #pois_edit .rc-poi-editor-body .form-control:focus,
body.new-design-active #pois_create .rc-poi-editor-body .bootstrap-select.open > .dropdown-toggle,
body.new-design-active #pois_edit .rc-poi-editor-body .bootstrap-select.open > .dropdown-toggle {
    border-color: #7ca9f8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #pois_create .rc-poi-editor-body .bootstrap-select.form-control,
body.new-design-active #pois_edit .rc-poi-editor-body .bootstrap-select.form-control {
    height: 42px !important;
    min-height: 42px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #pois_create .rc-poi-icon-list,
body.new-design-active #pois_edit .rc-poi-icon-list {
    display: grid !important;
    width: 100% !important;
    max-height: 300px !important;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)) !important;
    gap: 7px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    padding: 9px !important;
    scrollbar-color: #ccd7e5 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active #pois_create .rc-poi-draw-alert.has-position,
body.new-design-active #pois_edit .rc-poi-draw-alert.has-position {
    border-color: #9ed7b5 !important;
    color: #23804a !important;
    background: #edf9f2 !important;
}

body.new-design-active .rc-poi-draft-marker {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: #1265ef !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .28) !important;
}

body.new-design-active .rc-poi-draft-marker > img,
body.new-design-active .rc-poi-draft-marker > i {
    display: block !important;
    max-width: 28px !important;
    max-height: 28px !important;
    color: #fff !important;
    object-fit: contain !important;
}

body.new-design-active #pois_create .rc-poi-icon-option,
body.new-design-active #pois_edit .rc-poi-icon-option {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #pois_create .rc-poi-icon-option > input[type="radio"],
body.new-design-active #pois_edit .rc-poi-icon-option > input[type="radio"] {
    position: absolute !important;
    z-index: 2 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

body.new-design-active #pois_create .rc-poi-icon-option > label,
body.new-design-active #pois_edit .rc-poi-icon-option > label {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #d8e2ee !important;
    border-radius: 9px !important;
    background: #fff !important;
    padding: 5px !important;
    cursor: pointer !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease !important;
}

body.new-design-active #pois_create .rc-poi-icon-option > label::before,
body.new-design-active #pois_create .rc-poi-icon-option > label::after,
body.new-design-active #pois_edit .rc-poi-icon-option > label::before,
body.new-design-active #pois_edit .rc-poi-icon-option > label::after {
    display: none !important;
    content: none !important;
}

body.new-design-active #pois_create .rc-poi-icon-option > input[type="radio"]:checked + label,
body.new-design-active #pois_edit .rc-poi-icon-option > input[type="radio"]:checked + label {
    border-color: #1265ef !important;
    background: #edf4ff !important;
    box-shadow: 0 0 0 2px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #pois_create .rc-poi-icon-option img,
body.new-design-active #pois_edit .rc-poi-icon-option img {
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
}

body.new-design-active #pois_create .rc-poi-editor-actions,
body.new-design-active #pois_edit .rc-poi-editor-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

body.new-design-active #pois_create .rc-poi-editor-actions > .btn,
body.new-design-active #pois_edit .rc-poi-editor-actions > .btn {
    display: inline-flex !important;
    min-width: 92px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.new-design-active #pois_create .rc-poi-editor-actions > .btn-action,
body.new-design-active #pois_edit .rc-poi-editor-actions > .btn-action {
    border: 1px solid #168fc8 !important;
    color: #fff !important;
    background: #299bd6 !important;
}

body.new-design-active #pois_create .rc-poi-editor-actions > .btn-default,
body.new-design-active #pois_edit .rc-poi-editor-actions > .btn-default {
    border: 1px solid #d7e0eb !important;
    color: #52627a !important;
    background: #f2f4f7 !important;
}

@media (max-width: 480px) {
    body.new-design-active #pois_create .rc-poi-editor-body,
    body.new-design-active #pois_edit .rc-poi-editor-body {
        padding: 10px 10px 16px !important;
    }

    body.new-design-active #pois_create .rc-poi-icon-list,
    body.new-design-active #pois_edit .rc-poi-icon-list {
        max-height: 240px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.new-design-active #pois_create .rc-poi-editor-actions > .btn,
    body.new-design-active #pois_edit .rc-poi-editor-actions > .btn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }
}

/* Modais devem cobrir também os painéis flutuantes do mapa e o menu. */
body.new-design-active .modal,
body.new-design-active .modal.in,
body.new-design-active .modal.show {
    z-index: 12050 !important;
}

body.new-design-active > .modal-backdrop.in,
body.new-design-active > .modal-backdrop.show {
    z-index: 12040 !important;
}

/* Consulta completa de eventos. */
body.new-design-active #events_lookup,
body.new-design-active .modal.rc-events-lookup-modal {
    position: fixed !important;
    z-index: 2147483000 !important;
    padding: 0 !important;
}

body.new-design-active.rc-events-lookup-open > .modal-backdrop,
body.new-design-active.rc-events-lookup-open .modal-backdrop {
    z-index: 2147482990 !important;
}

body.new-design-active #events_lookup .modal-dialog {
    width: min(1380px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin: 24px auto !important;
}

body.new-design-active #events_lookup .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .28) !important;
}

body.new-design-active #events_lookup .modal-header {
    min-height: 58px !important;
    border-bottom: 1px solid #e8edf3 !important;
    background: #fff !important;
    padding: 0 20px !important;
}

body.new-design-active #events_lookup .modal-title {
    display: flex !important;
    height: 58px !important;
    align-items: center !important;
    gap: 9px !important;
    color: #1e293b !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
}

body.new-design-active #events_lookup .modal-title > i,
body.new-design-active #events_lookup .modal-title .icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    color: #2563eb !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: none !important;
}

body.new-design-active #events_lookup .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    margin: 12px 0 0 !important;
    border-radius: 10px !important;
    color: #64748b !important;
    background: #f2f5f9 !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

body.new-design-active #events_lookup .modal-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 130px) !important;
    overflow: auto !important;
    background: #fff !important;
    padding: 16px 18px 20px !important;
}

body.new-design-active #events_lookup .modal-content,
body.new-design-active #events_lookup .panel,
body.new-design-active #events_lookup .panel-body,
body.new-design-active #events_lookup [id$="Container"],
body.new-design-active #events_lookup .dataTables_wrapper {
    min-height: 0 !important;
}

body.new-design-active #events_lookup .panel,
body.new-design-active #events_lookup .panel-body {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup .panel-heading {
    display: none !important;
}

body.new-design-active #events_lookup .event-type-cards {
    margin: 0 0 18px !important;
    border-bottom: 1px solid #edf1f5 !important;
    padding: 0 0 16px !important;
}

body.new-design-active #events_lookup .rc-event-type-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 7px !important;
}

body.new-design-active #events_lookup .rc-event-type-col {
    min-width: 0 !important;
}

body.new-design-active #events_lookup .event-type-card {
    display: flex !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 10px !important;
    color: #475569 !important;
    background: #fff !important;
    padding: 7px 9px !important;
    text-align: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease !important;
}

body.new-design-active #events_lookup .event-type-card:hover {
    border-color: #93b4ef !important;
    color: #1d4ed8 !important;
    background: #f6f9ff !important;
    transform: translateY(-1px) !important;
}

body.new-design-active #events_lookup .event-type-card.active {
    border-color: #2563eb !important;
    color: #fff !important;
    background: #2563eb !important;
}

body.new-design-active #events_lookup .event-type-card .card-body {
    width: 100% !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .event-type-card .card-title {
    margin: 0 !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

body.new-design-active #events_lookup .dataTables_wrapper {
    color: #64748b !important;
    font-size: 11px !important;
}

body.new-design-active #events_lookup .dataTables_filter {
    margin: 0 0 10px !important;
}

body.new-design-active #events_lookup .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

body.new-design-active #events_lookup .dataTables_filter input {
    width: 210px !important;
    height: 36px !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 0 11px !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e3e9f1 !important;
    border-radius: 11px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}

body.new-design-active #events_lookup table.dataTable thead th {
    height: 38px !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e9f1 !important;
    color: #64748b !important;
    background: #f6f8fb !important;
    padding: 8px 10px !important;
    font-size: 10px !important;
    font-weight: 650 !important;
}

body.new-design-active #events_lookup table.dataTable tbody td {
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    color: #475569 !important;
    background: #fff !important;
    padding: 9px 10px !important;
}

body.new-design-active #events_lookup table.dataTable tbody tr:hover td {
    background: #f7f9fc !important;
}

body.new-design-active #events_lookup .dataTables_paginate,
body.new-design-active #events_lookup .dataTables_length,
body.new-design-active #events_lookup .dataTables_info {
    margin-top: 10px !important;
}

body.new-design-active #events_lookup .dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

body.new-design-active #events_lookup .dataTables_length {
    display: none !important;
}

body.new-design-active #events_lookup .dataTables_length select {
    width: 76px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 10px !important;
    color: #334155 !important;
    background-color: #fff !important;
    padding: 0 28px 0 10px !important;
    font-size: 11px !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup .dataTables_info {
    color: #7b8798 !important;
    font-size: 10px !important;
    line-height: 34px !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .dataTables_paginate {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 34px !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination > li {
    display: block !important;
    margin: 0 !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination > li > a,
body.new-design-active #events_lookup .dataTables_paginate .pagination > li > span {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 9px !important;
    color: #53637a !important;
    background: #fff !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination > li > a:hover {
    border-color: #93b4ef !important;
    color: #1d4ed8 !important;
    background: #f3f7ff !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination > .active > a,
body.new-design-active #events_lookup .dataTables_paginate .pagination > .active > span {
    border-color: #2563eb !important;
    color: #fff !important;
    background: #2563eb !important;
}

body.new-design-active #events_lookup .dataTables_paginate .pagination > .disabled > a,
body.new-design-active #events_lookup .dataTables_paginate .pagination > .disabled > span {
    border-color: #edf1f5 !important;
    color: #b3bdca !important;
    background: #f8fafc !important;
    cursor: default !important;
}

body.new-design-active #events_lookup .row:last-child {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    border-top: 0 !important;
    padding-top: 6px !important;
}

body.new-design-active #events_lookup .dataTables_wrapper > .row:last-child,
body.new-design-active #events_lookup .dataTables_wrapper .row:last-child,
body.new-design-active #events_lookup .dataTables_wrapper .dataTables_paginate {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.new-design-active #events_lookup .dataTables_wrapper > .bottom,
body.new-design-active #events_lookup .dataTables_wrapper .bottom {
    min-height: 34px !important;
    margin: 4px 0 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup .dataTables_wrapper > .bottom::before,
body.new-design-active #events_lookup .dataTables_wrapper > .bottom::after {
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #events_lookup .dataTables_wrapper > .clear {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .dataTables_wrapper > hr,
body.new-design-active #events_lookup .dataTables_wrapper .dataTables-separator {
    display: none !important;
}

body.new-design-active #events_lookup .nav-pagination {
    height: auto !important;
    min-height: 0 !important;
    margin: 6px 0 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #events_lookup .nav-pagination::before,
body.new-design-active #events_lookup .nav-pagination::after {
    display: none !important;
    border: 0 !important;
    content: none !important;
}

body.new-design-active #events_lookup .modal-footer:empty,
body.new-design-active #events_lookup .panel-footer:empty {
    display: none !important;
}

body.new-design-active #events_lookup .modal-footer,
body.new-design-active #events_lookup .panel-footer {
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

body.new-design-active #events_lookup .row:last-child > [class*="col-"] {
    min-width: 0 !important;
    flex: 1 1 33.333% !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    body.new-design-active #events_lookup .modal-dialog {
        width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    body.new-design-active #events_lookup .modal-body {
        max-height: calc(100vh - 82px) !important;
        padding: 10px !important;
    }

    body.new-design-active #events_lookup .rc-event-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body.new-design-active #events_lookup .event-type-card {
        min-height: 42px !important;
        padding: 6px !important;
    }

    body.new-design-active #events_lookup .dataTables_filter label {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.new-design-active #events_lookup .dataTables_filter input {
        width: 100% !important;
    }

    body.new-design-active #events_lookup .row:last-child {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    body.new-design-active #events_lookup .row:last-child > [class*="col-"] {
        width: 100% !important;
        flex: 0 0 auto !important;
        text-align: center !important;
    }

    body.new-design-active #events_lookup .dataTables_length,
    body.new-design-active #events_lookup .dataTables_paginate {
        display: flex !important;
        justify-content: center !important;
    }

    body.new-design-active #events_lookup #eventsLookupTableContainer {
        overflow-x: auto !important;
    }
}

/* Histórico — campos e ações do filtro lateral. */
body.new-design-active #history_tab > .rc-history-filter-header {
    margin: 0 !important;
    padding: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
}

body.new-design-active #history-form.rc-history-filter-form {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.new-design-active #history-form .form-group {
    margin: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-field {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 65px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

body.new-design-active #history-form .rc-history-filter-field--range {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.new-design-active #history-form .rc-history-filter-label,
body.new-design-active #history-form .rc-history-filter-control {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-control--full {
    grid-column: 1 / -1 !important;
}

body.new-design-active #history-form .control-label {
    margin: 0 !important;
    padding: 0 !important;
    color: #26354d !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: left !important;
}

body.new-design-active #history-form .form-control,
body.new-design-active #history-form .bootstrap-select.form-control,
body.new-design-active #history-form .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.new-design-active #history-form .rc-history-filter-control > select,
body.new-design-active #history-form .rc-history-filter-control > .form-control,
body.new-design-active #history-form .rc-history-filter-control > .bootstrap-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.new-design-active #history-form .form-control {
    padding: 6px 12px !important;
}

body.new-design-active #history-form .bootstrap-select.form-control {
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #history-form .bootstrap-select > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    padding: 5px 34px 5px 12px !important;
}

body.new-design-active #history-form .bootstrap-select > .dropdown-toggle .filter-option {
    overflow: hidden !important;
    color: #344054 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #history-form .bootstrap-select > .dropdown-toggle .caret {
    right: 13px !important;
    color: #718096 !important;
}

body.new-design-active #history-form .form-control:focus,
body.new-design-active #history-form .bootstrap-select.open > .dropdown-toggle,
body.new-design-active #history-form .bootstrap-select > .dropdown-toggle:focus {
    border-color: #8bb5ff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #history-form #history-date-range {
    cursor: pointer !important;
    color: #344054 !important;
    text-align: center !important;
}

body.new-design-active #history-form .rc-history-filter-advanced-control {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-advanced-toggle {
    display: inline-flex !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 auto !important;
    padding: 1px 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #1265ef !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 18px !important;
    text-decoration: none !important;
}

body.new-design-active #history-form .rc-history-filter-advanced-toggle:hover {
    background: #eef5ff !important;
}

body.new-design-active #history-form .rc-history-filter-advanced-toggle > .fa {
    transition: transform .2s ease !important;
}

body.new-design-active #history-form .rc-history-filter-advanced-toggle[aria-expanded="true"] > .fa {
    transform: rotate(180deg) !important;
}

body.new-design-active #history-form .rc-history-filter-advanced {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.new-design-active #history-form .rc-history-filter-advanced.collapse:not(.in),
body.new-design-active #history-form .rc-history-filter-advanced.collapsing {
    padding: 0 !important;
    border: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-advanced.in {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

body.new-design-active #history-form .rc-history-filter-check-row,
body.new-design-active #history-form .rc-history-filter-check-control {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-check-control--indented {
    padding-left: 75px !important;
}

body.new-design-active #history-form .checkbox {
    position: relative !important;
    display: flex !important;
    min-height: 20px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #history-form .checkbox > input[type="checkbox"] {
    position: absolute !important;
    top: 2px !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

body.new-design-active #history-form .checkbox > label {
    position: relative !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 2px 0 0 24px !important;
    color: #344054 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    cursor: pointer !important;
}

body.new-design-active #history-form .checkbox > label::before {
    position: absolute !important;
    top: 2px !important;
    left: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c9d5e4 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 15px !important;
    text-align: center !important;
    box-shadow: none !important;
}

body.new-design-active #history-form .checkbox > label::after {
    position: absolute !important;
    top: 4px !important;
    left: 6px !important;
    z-index: 1 !important;
    width: 5px !important;
    height: 9px !important;
    margin: 0 !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    content: "" !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active #history-form .checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #1265ef !important;
    background: #1265ef !important;
}

body.new-design-active #history-form .checkbox > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active #history-form .rc-history-filter-actions.input-group {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin: 0 !important;
}

body.new-design-active #history-form .rc-history-filter-submit {
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 5px 14px !important;
    border: 1px solid #299bd6 !important;
    border-radius: 10px !important;
    background: #299bd6 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    box-shadow: none !important;
}

body.new-design-active #history-form .rc-history-filter-submit:hover,
body.new-design-active #history-form .rc-history-filter-submit:focus {
    border-color: #2189bf !important;
    background: #2189bf !important;
}

body.new-design-active #history-form .rc-history-filter-actions-side.input-group-btn {
    position: static !important;
    display: flex !important;
    width: auto !important;
    align-items: stretch !important;
    gap: 6px !important;
    white-space: normal !important;
}

body.new-design-active #history-form .rc-history-filter-actions-side > .btn-group {
    display: block !important;
}

body.new-design-active #history-form .rc-history-filter-action-btn {
    display: inline-grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #52627a !important;
    box-shadow: none !important;
}

body.new-design-active #history-form .rc-history-filter-action-btn:hover,
body.new-design-active #history-form .rc-history-filter-actions-side > .open > .rc-history-filter-action-btn {
    border-color: #bcd1ee !important;
    background: #eef5ff !important;
    color: #1265ef !important;
}

body.new-design-active #history-form .rc-history-filter-actions-side .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 170px !important;
    margin-top: 6px !important;
    padding: 6px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}

body.new-design-active #history-form .rc-history-filter-actions-side .dropdown-menu > li > a {
    padding: 8px 10px !important;
    border-radius: 7px !important;
    color: #42526a !important;
    font-size: 11px !important;
}

body.new-design-active #history-form .rc-history-filter-actions-side .dropdown-menu > li > a:hover {
    background: #eef5ff !important;
    color: #1265ef !important;
}

@media (max-width: 479px) {
    body.new-design-active #history_tab > .rc-history-filter-header {
        padding: 10px !important;
    }

    body.new-design-active #history-form .rc-history-filter-field {
        grid-template-columns: 65px minmax(0, 1fr) !important;
        gap: 10px !important;
    }
}

/* Ecodrive — filtro lateral no mesmo padrão do Histórico. */
body.new-design-active #ecodrive_tab > .rc-ecodrive-filter-header {
    margin: 0 !important;
    padding: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
}

body.new-design-active #ecodrive-form.rc-ecodrive-filter-form {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.new-design-active #ecodrive-form .form-group {
    margin: 0 !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-field {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 65px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-field--range {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-label,
body.new-design-active #ecodrive-form .rc-ecodrive-filter-control {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-control--full {
    grid-column: 1 / -1 !important;
}

body.new-design-active #ecodrive-form .control-label {
    color: #26354d !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: left !important;
}

body.new-design-active #ecodrive-form .form-control,
body.new-design-active #ecodrive-form .bootstrap-select.form-control,
body.new-design-active #ecodrive-form .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-control > select,
body.new-design-active #ecodrive-form .rc-ecodrive-filter-control > .form-control,
body.new-design-active #ecodrive-form .rc-ecodrive-filter-control > .bootstrap-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.new-design-active #ecodrive-form .form-control {
    padding: 6px 12px !important;
}

body.new-design-active #ecodrive-form .bootstrap-select.form-control {
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #ecodrive-form .bootstrap-select > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    padding: 5px 34px 5px 12px !important;
}

body.new-design-active #ecodrive-form .bootstrap-select > .dropdown-toggle .filter-option {
    overflow: hidden !important;
    color: #344054 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #ecodrive-form .bootstrap-select > .dropdown-toggle .caret {
    right: 13px !important;
    color: #718096 !important;
}

body.new-design-active #ecodrive-form .form-control:focus,
body.new-design-active #ecodrive-form .bootstrap-select.open > .dropdown-toggle,
body.new-design-active #ecodrive-form .bootstrap-select > .dropdown-toggle:focus {
    border-color: #8bb5ff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #ecodrive-form #ecodrive-date-range {
    cursor: pointer !important;
    color: #344054 !important;
    text-align: center !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-actions.input-group {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin: 0 !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-submit {
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 5px 14px !important;
    border: 1px solid #299bd6 !important;
    border-radius: 10px !important;
    background: #299bd6 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    box-shadow: none !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-submit:hover,
body.new-design-active #ecodrive-form .rc-ecodrive-filter-submit:focus {
    border-color: #2189bf !important;
    background: #2189bf !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-actions-side.input-group-btn {
    position: static !important;
    display: flex !important;
    width: auto !important;
    align-items: stretch !important;
    white-space: normal !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-action-btn {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #52627a !important;
    line-height: 30px !important;
    text-align: center !important;
    box-shadow: none !important;
}

body.new-design-active #ecodrive-form .rc-ecodrive-filter-action-btn:hover {
    border-color: #bcd1ee !important;
    background: #eef5ff !important;
    color: #1265ef !important;
}

body.new-design-active #ecodrive-form #ecodrive-clear-btn[style*="display: none"] {
    display: none !important;
}

@media (max-width: 479px) {
    body.new-design-active #ecodrive_tab > .rc-ecodrive-filter-header {
        padding: 10px !important;
    }

    body.new-design-active #ecodrive-form .rc-ecodrive-filter-field {
        grid-template-columns: 65px minmax(0, 1fr) !important;
        gap: 10px !important;
    }
}

/* Histórico — tabela do registro de dados. */
body.new-design-active #bottom-history #datalog {
    padding: 10px 12px 12px !important;
    background: #fff !important;
}

body.new-design-active #bottom-history #messages_tab,
body.new-design-active #bottom-history #messages_tab > [data-table] {
    width: 100% !important;
    min-width: 0 !important;
}

body.new-design-active #bottom-history .rc-history-data-table-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #c7d2e1 transparent !important;
}

body.new-design-active #bottom-history .rc-history-data-table-wrap::-webkit-scrollbar {
    width: 7px !important;
    height: 7px !important;
}

body.new-design-active #bottom-history .rc-history-data-table-wrap::-webkit-scrollbar-track {
    background: transparent !important;
}

body.new-design-active #bottom-history .rc-history-data-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background: #c7d2e1 !important;
    background-clip: padding-box !important;
}

body.new-design-active #bottom-history .rc-history-data-table {
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    background: #fff !important;
}

body.new-design-active #bottom-history .rc-history-data-table > thead > tr > th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    height: 42px !important;
    min-width: 78px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #dfe7f1 !important;
    background: #f3f6fa !important;
    color: #627189 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.new-design-active #bottom-history .rc-history-data-table > tbody > tr > td {
    height: 39px !important;
    padding: 9px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 11px !important;
    line-height: 16px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.new-design-active #bottom-history .rc-history-data-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active #bottom-history .rc-history-data-table > tbody > tr:hover > td {
    background: #f8fbff !important;
}

body.new-design-active #bottom-history .rc-history-data-table > tbody > tr.active > td,
body.new-design-active #bottom-history .rc-history-data-table > tbody > tr.selected > td {
    background: #eef5ff !important;
}

body.new-design-active #bottom-history .rc-history-data-table > thead > tr > th.sorting,
body.new-design-active #bottom-history .rc-history-data-table > thead > tr > th[class*="sorting_"] {
    padding-right: 27px !important;
}

body.new-design-active #bottom-history .rc-history-data-table--selectable > thead > tr > th:first-child,
body.new-design-active #bottom-history .rc-history-data-table--selectable > tbody > tr > td:first-child {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    text-align: center !important;
}

body.new-design-active #bottom-history .rc-history-data-table .table-checkbox > .btn-group {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 5px !important;
    vertical-align: middle !important;
}

body.new-design-active #bottom-history .rc-history-data-table .table-checkbox > .btn-group > .btn {
    display: inline-grid !important;
    width: 22px !important;
    height: 22px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #68778c !important;
    font-size: 13px !important;
    line-height: 22px !important;
}

body.new-design-active #bottom-history .rc-history-data-table .table-checkbox > .btn-group > .btn:hover,
body.new-design-active #bottom-history .rc-history-data-table .table-checkbox > .btn-group.open > .btn {
    background: #e7eef8 !important;
    color: #1265ef !important;
}

body.new-design-active #bottom-history .rc-history-data-table .checkbox {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

body.new-design-active #bottom-history .rc-history-data-table .checkbox > label {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #bottom-history .rc-history-data-table .checkbox > label::before,
body.new-design-active #bottom-history .rc-history-data-table .checkbox > label::after {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1px solid #c9d5e4 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active #bottom-history .rc-history-data-table .checkbox > label::before {
    z-index: 1 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 15px !important;
    text-align: center !important;
}

body.new-design-active #bottom-history .rc-history-data-table .checkbox > input[type="checkbox"]:checked + label::before,
body.new-design-active #bottom-history .rc-history-data-table .checkbox > input[type="checkbox"]:checked + label::after {
    border-color: #1265ef !important;
    background: #1265ef !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination {
    display: flex !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 8px 0 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination::before,
body.new-design-active #bottom-history .rc-history-data-pagination::after,
body.new-design-active #bottom-history .rc-history-data-pagination .rc-history-data-limit {
    display: none !important;
    content: none !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination {
    display: flex !important;
    float: none !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > li {
    display: block !important;
    float: none !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > li > a,
body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > li > span {
    display: inline-grid !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #52627a !important;
    font-size: 11px !important;
    line-height: 30px !important;
    box-shadow: none !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > li > a:hover {
    border-color: #dbe6f5 !important;
    background: #f3f7fc !important;
    color: #1265ef !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > .active > a,
body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > .active > span {
    border-color: #d9e7ff !important;
    background: #eef5ff !important;
    color: #1265ef !important;
    font-weight: 750 !important;
}

body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > .disabled > a,
body.new-design-active #bottom-history .rc-history-data-pagination > .pagination > .disabled > span {
    border-color: transparent !important;
    background: transparent !important;
    color: #a8b3c2 !important;
}

@media (max-width: 767px) {
    body.new-design-active #bottom-history #datalog {
        padding: 8px !important;
    }

    body.new-design-active #bottom-history .rc-history-data-table > thead > tr > th,
    body.new-design-active #bottom-history .rc-history-data-table > tbody > tr > td {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.new-design-active #bottom-history .rc-history-data-pagination {
        justify-content: center !important;
    }

    body.new-design-active #bottom-history .rc-history-data-pagination > .pagination {
        margin: 0 auto !important;
    }
}

/* Eventos — mesmo padrão visual compacto da lista de dispositivos. */
body.new-design-active #events_tab {
    height: 100% !important;
    min-height: 0 !important;
    background: #fff !important;
}

body.new-design-active #events_tab > .tab-pane-header {
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    background: #fff !important;
    padding: 10px 12px !important;
}

body.new-design-active #events_tab .tab-pane-header .form,
body.new-design-active #events_tab .tab-pane-header .form-group,
body.new-design-active #events_tab .tab-pane-header .input-group {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active #events_tab .tab-pane-header .input-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.new-design-active #events_tab .tab-pane-header .form-group.search {
    position: relative !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.new-design-active #events_tab #events_search_field {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 12px !important;
    color: #334155 !important;
    background: #fff !important;
    padding: 0 14px 0 35px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

body.new-design-active #events_tab .tab-pane-header .form-group.search::before {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 12px !important;
    color: #8795a9 !important;
    font-family: FontAwesome !important;
    font-size: 13px !important;
    content: "\f002" !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

body.new-design-active #events_tab .tab-pane-header .input-group-btn {
    display: flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
}

body.new-design-active #events_tab .tab-pane-header .input-group-btn > .btn {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 10px !important;
    color: #53637a !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
}

body.new-design-active #events_tab > .tab-pane-body {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 6px 8px 10px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

body.new-design-active #events_tab .events-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body.new-design-active #events_tab .event-item {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .15s ease !important;
}

body.new-design-active #events_tab .event-item:hover,
body.new-design-active #events_tab .event-item.active {
    background: #f3f6fa !important;
}

body.new-design-active #events_tab .event-item-content {
    display: flex !important;
    min-height: 70px !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 9px 9px !important;
}

body.new-design-active #events_tab .event-icon {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    place-items: center !important;
    margin: 1px 0 0 !important;
    border-radius: 10px !important;
    color: #2563eb !important;
    background: #eaf2ff !important;
}

body.new-design-active #events_tab .event-icon > i {
    margin: 0 !important;
    font-size: 16px !important;
}

body.new-design-active #events_tab .event-details {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    color: #64748b !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

body.new-design-active #events_tab .event-title,
body.new-design-active #events_tab .event-device {
    overflow: hidden !important;
    color: #1e293b !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #events_tab .event-title {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.new-design-active #events_tab .event-device {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
}

body.new-design-active #events_tab .event-geofence,
body.new-design-active #events_tab .event-datetime,
body.new-design-active #events_tab .event-speed,
body.new-design-active #events_tab .event-address {
    overflow-wrap: anywhere !important;
    color: #7b8798 !important;
}

body.new-design-active #events_tab .event-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

body.new-design-active #events_tab .event-actions .btn {
    display: grid !important;
    width: 26px !important;
    height: 30px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    color: #64748b !important;
    background: transparent !important;
    padding: 0 !important;
}

body.new-design-active #events_tab .event-item.no-data .event-item-content {
    min-height: 90px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    body.new-design-active #events_tab > .tab-pane-header {
        padding: 8px !important;
    }

    body.new-design-active #events_tab #events_search_field {
        height: 38px !important;
    }

    body.new-design-active #events_tab > .tab-pane-body {
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    body.new-design-active #events_tab .event-item-content {
        gap: 8px !important;
        padding: 8px 7px !important;
    }
}

body.new-design-active #sidebar.sidebar-new-design-layout {
    position: fixed !important;
    z-index: 1100 !important;
    top: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    right: auto !important;
    width: 232px !important;
    min-width: 232px !important;
    height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--rc-map-surface) !important;
    box-shadow: none !important;
    transition: width .22s ease, min-width .22s ease, box-shadow .22s ease !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-header {
    display: flex !important;
    width: 100% !important;
    min-height: 64px !important;
    height: 64px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-bottom: 0 !important;
    background: var(--rc-map-surface) !important;
    padding: 10px 11px !important;
    box-sizing: border-box !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-logo {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-logo > a {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-logo img {
    width: auto !important;
    max-width: 148px !important;
    height: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-collapse-btn {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #617189 !important;
    background: var(--rc-map-surface) !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: border-color .18s ease, color .18s ease, background .18s ease !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-collapse-btn:hover,
body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-collapse-btn:focus {
    border-color: #bfd2f4 !important;
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    outline: 0 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-vertical-menu {
    top: 64px !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100% - 64px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-right: 0 !important;
    background: var(--rc-map-surface) !important;
    padding: 8px 8px 9px !important;
    scrollbar-color: #cfd8e5 transparent !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: auto !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-vertical-menu::-webkit-scrollbar {
    width: 5px !important;
    height: 0 !important;
    background: transparent !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-vertical-menu::-webkit-scrollbar-thumb {
    border: 0 !important;
    border-radius: 10px !important;
    background: #cfd8e5 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-vertical-menu::-webkit-scrollbar-track,
body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-vertical-menu::-webkit-scrollbar-corner {
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 1px 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: var(--rc-map-text) !important;
    background: transparent !important;
    padding: 0 10px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item:hover,
body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item:focus {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-hover) !important;
    outline: 0 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout:not(.collapsed) .sidebar-menu-item.active {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item > i,
body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item > .icon {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    flex: 0 0 26px !important;
    place-items: center !important;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item > .text {
    min-width: 0 !important;
    overflow: hidden !important;
    color: currentColor !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item > .badge {
    min-width: 22px !important;
    margin-left: auto !important;
    border: 1px solid #dce7f7 !important;
    border-radius: 20px !important;
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-surface) !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    font-weight: 750 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-separator {
    display: block !important;
    width: auto !important;
    height: 1px !important;
    min-height: 1px !important;
    flex: 0 0 1px !important;
    align-self: stretch !important;
    margin: 8px 7px !important;
    border: 0 !important;
    background: var(--rc-map-line) !important;
    box-shadow: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-back-admin {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-footer {
    width: 100% !important;
    margin-top: 8px !important;
    border-top: 1px solid var(--rc-map-line) !important;
    background: var(--rc-map-surface) !important;
    padding-top: 8px !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-logo,
body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-icon-chevron,
body.new-design-active #sidebar.sidebar-new-design-layout:not(.collapsed) .sidebar-icon-menu {
    display: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-header {
    width: 64px !important;
    min-height: 64px !important;
    justify-content: center !important;
    padding: 10px 11px !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed {
    width: 64px !important;
    min-width: 64px !important;
    overflow: hidden !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-vertical-menu {
    top: 64px !important;
    width: 64px !important;
    height: calc(100% - 64px) !important;
    overflow-x: hidden !important;
    padding: 8px 8px 10px !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item {
    width: 46px !important;
    min-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-content: center !important;
    margin: 2px auto !important;
    padding: 0 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item > .text,
body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item > .badge {
    display: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item.active {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    box-shadow: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-separator,
body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-expiration-banner {
    display: none !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-footer {
    width: 46px !important;
    margin: 10px auto 0 !important;
    padding-top: 9px !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-dropdown {
    width: 46px !important;
    margin: 0 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item > i,
body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item > .icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex-basis: 22px !important;
    margin: 0 !important;
}

body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-item > .icon img {
    display: block !important;
    width: 16px !important;
    max-width: 16px !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* No celular, o menu reduzido nao comporta o indicador lateral da conta. */
@media (max-width: 767px) {
    body.new-design-active #sidebar.sidebar-new-design-layout.collapsed #dropAccountSidebar.dropdown-toggle::after {
        display: none !important;
        content: none !important;
    }

    body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-footer .sidebar-menu-item > i,
    body.new-design-active #sidebar.sidebar-new-design-layout.collapsed .sidebar-menu-footer .sidebar-menu-item > .icon {
        position: relative !important;
        left: -4px !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active #sidebar.sidebar-new-design-layout {
        top: 6px !important;
        bottom: 6px !important;
        left: 6px !important;
        width: min(232px, calc(100vw - 12px)) !important;
        min-width: min(232px, calc(100vw - 12px)) !important;
        border-radius: 17px !important;
        box-shadow: none !important;
        z-index: 990 !important;
    }

    body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-header {
        min-height: 64px !important;
        padding: 10px !important;
    }

    body.new-design-active #sidebar.sidebar-new-design-layout .sidebar-menu-item {
        min-height: 44px !important;
    }

    body.new-design-active #sidebar.sidebar-new-design-layout.collapsed {
        width: 64px !important;
        min-width: 64px !important;
    }
}

/* --------------------------------------------------------------------------
 * Painel compacto de dispositivos no mapa
 * -------------------------------------------------------------------------- */
body.new-design-active #sidebar-content.sidebar-content {
    position: fixed !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 430px !important;
    max-width: calc(100vw - 96px) !important;
    height: calc(100vh - 16px) !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 20px !important;
    background: var(--rc-map-surface) !important;
    box-shadow: 0 16px 42px rgba(16, 33, 61, .18) !important;
    overflow: hidden !important;
    opacity: 1 !important;
    z-index: 996 !important;
    transition: opacity .18s ease, transform .18s ease !important;
}

body.new-design-active #sidebar-content.sidebar-content.collapsed {
    transform: translateX(-115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.new-design-active #sidebar-content > .sidebar-content-header {
    display: flex !important;
    min-height: 64px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    background: var(--rc-map-surface) !important;
    padding: 10px 12px 10px 14px !important;
}

body.new-design-active #sidebar-content .sidebar-content-title,
body.new-design-active #sidebar-content .sidebar-content-header-actions,
body.new-design-active #sidebar-content .sidebar-content-object-actions,
body.new-design-active #sidebar-content .sidebar-content-geofence-actions,
body.new-design-active #sidebar-content .sidebar-content-route-actions,
body.new-design-active #sidebar-content .sidebar-content-poi-actions {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
}

body.new-design-active #sidebar-content .sidebar-content-title {
    flex: 1 1 auto !important;
    gap: 9px !important;
}

body.new-design-active #sidebar-content .sidebar-content-title > .icon {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    place-items: center !important;
    border-radius: 10px !important;
    color: var(--rc-map-text) !important;
    background: var(--rc-map-surface-soft) !important;
    font-size: 17px !important;
}

body.new-design-active #sidebar-content .sidebar-content-title .title-text {
    overflow: hidden !important;
    color: var(--rc-map-text) !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #sidebar-content .sidebar-content-header-actions {
    flex: 0 0 auto !important;
    gap: 6px !important;
}

body.new-design-active #sidebar-content .sidebar-content-object-actions,
body.new-design-active #sidebar-content .sidebar-content-geofence-actions,
body.new-design-active #sidebar-content .sidebar-content-route-actions,
body.new-design-active #sidebar-content .sidebar-content-poi-actions {
    display: none !important;
    gap: 6px !important;
}

body.new-design-active #sidebar-content.objects-active .sidebar-content-object-actions {
    display: flex !important;
}

body.new-design-active #sidebar-content.geofencing-active .sidebar-content-geofence-actions {
    display: flex !important;
}

body.new-design-active #sidebar-content.routes-active .sidebar-content-route-actions {
    display: flex !important;
}

body.new-design-active #sidebar-content.pois-active .sidebar-content-poi-actions {
    display: flex !important;
}

body.new-design-active #sidebar-content .sidebar-content-action-btn,
body.new-design-active #sidebar-content .sidebar-content-collapse-btn {
    position: relative !important;
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #536278 !important;
    background: #f5f8fc !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

body.new-design-active #sidebar-content .sidebar-content-action-btn:hover,
body.new-design-active #sidebar-content .sidebar-content-action-btn:focus,
body.new-design-active #sidebar-content .sidebar-content-collapse-btn:hover,
body.new-design-active #sidebar-content .sidebar-content-collapse-btn:focus {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    outline: 0 !important;
}

body.new-design-active #sidebar-content .sidebar-content-action-btn > i,
body.new-design-active #sidebar-content .sidebar-content-collapse-btn > i {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

body.new-design-active #sidebar-content .sidebar-content-action-btn .rc-action-plus {
    position: absolute !important;
    right: 5px !important;
    bottom: 3px !important;
    color: currentColor !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.new-design-active #sidebar-content > .nav-tabs {
    display: none !important;
}

body.new-design-active #sidebar-content > .tab-content {
    position: relative !important;
    height: calc(100% - 64px) !important;
    overflow: hidden !important;
    background: var(--rc-map-surface) !important;
}

body.new-design-active #sidebar-content > .tab-content > .tab-pane {
    height: 100% !important;
    min-height: 0 !important;
}

body.new-design-active #objects_tab {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

body.new-design-active #objects_tab > .tab-pane-header {
    flex: 0 0 auto !important;
    border: 0 !important;
    background: var(--rc-map-surface) !important;
    padding: 10px 12px 8px !important;
}

body.new-design-active #objects_tab .tab-pane-header .form,
body.new-design-active #objects_tab .tab-pane-header .form-group {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active #objects_tab .rc-device-search {
    position: relative !important;
}

body.new-design-active #objects_tab .rc-device-search > i {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 13px !important;
    color: #8b9bb1 !important;
    font-size: 15px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

body.new-design-active #objects_tab .rc-device-search::before {
    display: none !important;
    content: none !important;
}

body.new-design-active #objects_tab .rc-device-search .form-control {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 11px !important;
    color: var(--rc-map-text) !important;
    background: #fbfcfe !important;
    padding: 0 13px 0 38px !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

body.new-design-active #objects_tab .rc-device-search .form-control:focus {
    border-color: #a9c8ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(24, 105, 241, .08) !important;
}

body.new-design-active #objects_tab .rc-device-filters {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 7px !important;
    overflow-x: auto !important;
    padding: 0 0 2px !important;
    scrollbar-width: none !important;
}

body.new-design-active #objects_tab .rc-device-filters::-webkit-scrollbar {
    display: none !important;
}

body.new-design-active #objects_tab .rc-device-filters button {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    height: 27px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 20px !important;
    color: #718096 !important;
    background: #eef3f8 !important;
    padding: 0 10px !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
}

body.new-design-active #objects_tab .rc-device-filters button.active {
    color: #fff !important;
    background: #172033 !important;
}

body.new-design-active #objects_tab > .tab-pane-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: var(--rc-map-surface) !important;
    padding: 3px 12px 16px !important;
    scrollbar-color: #ccd7e5 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active #objects_tab #ajax-items,
body.new-design-active #objects_tab .group,
body.new-design-active #objects_tab .group-body,
body.new-design-active #objects_tab .group-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #objects_tab .group {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active #objects_tab .group + .group {
    margin-top: 7px !important;
}

body.new-design-active #objects_tab .group-heading {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 38px !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 10px !important;
    color: #172033 !important;
    background: #f8fafc !important;
    padding: 5px 7px !important;
    transition: border-color .15s ease, background .15s ease !important;
}

body.new-design-active #objects_tab .group-heading:hover {
    border-color: #d8e1ed !important;
    color: #172033 !important;
    background: #f4f7fb !important;
}

body.new-design-active #objects_tab .group[data-device-group-id="0"] > .group-heading {
    display: none !important;
}

/* Nos filtros por status, apresente os dispositivos em uma lista única. */
body.new-design-active #objects_tab.rc-status-filtered .group > .group-heading {
    display: none !important;
}

body.new-design-active #objects_tab.rc-status-filtered .group + .group {
    margin-top: 0 !important;
}

body.new-design-active #objects_tab.rc-status-filtered .group-collapse,
body.new-design-active #objects_tab.rc-status-filtered .group-body {
    display: block !important;
    height: auto !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox {
    position: relative !important;
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > input[type="checkbox"] {
    position: absolute !important;
    z-index: 2 !important;
    top: 1.5px !important;
    left: 1.5px !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > label {
    position: relative !important;
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > label::before {
    position: absolute !important;
    inset: 0 !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important;
    border-radius: 4px !important;
    color: transparent !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(16, 33, 61, .05) !important;
    content: '' !important;
    transform: none !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > label::after {
    position: absolute !important;
    top: 2px !important;
    left: 4px !important;
    display: block !important;
    width: 4px !important;
    height: 7px !important;
    margin: 0 !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    content: '' !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > input[type="checkbox"]:checked + label::before,
body.new-design-active #objects_tab .group-heading > .checkbox > input[type="checkbox"]:indeterminate + label::before {
    border-color: #555555 !important;
    background: #555555 !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active #objects_tab .group-heading > .checkbox > input[type="checkbox"]:indeterminate + label::after {
    top: 6px !important;
    left: 3px !important;
    width: 7px !important;
    height: 1.5px !important;
    border: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
}

body.new-design-active #objects_tab .group-heading .group-title {
    position: relative !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    color: #344258 !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.new-design-active #objects_tab .group-heading .group-title-text {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #objects_tab .group-heading .count {
    min-width: 20px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border-radius: 20px !important;
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
}

body.new-design-active #objects_tab .group-heading .group-title::after {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto !important;
    margin-left: 1px !important;
    color: #8795a9 !important;
    font-size: 9px !important;
    line-height: 1 !important;
}

body.new-design-active #objects_tab .group-heading > .btn-group {
    display: flex !important;
    min-width: 26px !important;
    flex: 0 0 26px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

body.new-design-active #objects_tab .group-heading .btn-group > .btn {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    color: #8795a9 !important;
    background: transparent !important;
    padding: 0 !important;
}

body.new-design-active #objects_tab .rc-options-angle {
    border-radius: 7px !important;
    color: #718198 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: color .16s ease, background .16s ease, transform .16s ease !important;
}

body.new-design-active #objects_tab .rc-options-angle:hover,
body.new-design-active #objects_tab .rc-options-angle:focus,
body.new-design-active #objects_tab .btn-group.open > .rc-options-angle {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    transform: translateX(1px) !important;
}

body.new-design-active #objects_tab .group-list {
    list-style: none !important;
}

body.new-design-active #objects_tab .rc-device-row {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 55px !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    padding: 5px 4px !important;
    box-shadow: none !important;
    transition: background .16s ease !important;
}

body.new-design-active #objects_tab .rc-device-row:hover {
    background: #f7f9fc !important;
}

body.new-design-active #objects_tab .group-list > .rc-device-row.active,
body.new-design-active #objects_tab .group-list > .rc-device-row.active:hover {
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 11px !important;
    background: #f1f5f9 !important;
    box-shadow: none !important;
}

body.new-design-active #objects_tab .group-list > .rc-device-row.active::before,
body.new-design-active #objects_tab .group-list > .rc-device-row.active::after {
    display: none !important;
    width: 0 !important;
    border: 0 !important;
    content: none !important;
}

body.new-design-active #objects_tab .group-list > .rc-device-row.active > .rc-device-visibility {
    border-left: 0 !important;
    padding-left: 0 !important;
}

body.new-design-active #objects_tab .rc-device-row > .rc-device-visibility {
    position: relative !important;
    z-index: 1 !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #objects_tab .rc-device-visibility input {
    position: absolute !important;
    z-index: 2 !important;
    top: 1.5px !important;
    left: 1.5px !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

body.new-design-active #objects_tab .rc-device-visibility label {
    position: relative !important;
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

body.new-design-active #objects_tab .rc-device-visibility label::before {
    position: absolute !important;
    inset: 0 !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 33, 61, .05) !important;
    padding: 0 !important;
    content: '' !important;
    transform: none !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease !important;
}

body.new-design-active #objects_tab .rc-device-visibility label::after {
    position: absolute !important;
    top: 2px !important;
    left: 4px !important;
    display: block !important;
    width: 4px !important;
    height: 7px !important;
    margin: 0 !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    content: '' !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active #objects_tab .rc-device-visibility input:checked + label::before {
    border-color: #555555 !important;
    background: #555555 !important;
    box-shadow: 0 2px 5px rgba(85, 85, 85, .24) !important;
}

body.new-design-active #objects_tab .rc-device-visibility input:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active #objects_tab .rc-device-visibility input:focus + label::before {
    border-color: #555555 !important;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, .16) !important;
}

body.new-design-active #objects_tab .rc-device-select {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: left !important;
    cursor: pointer !important;
}

body.new-design-active #objects_tab .rc-device-select:focus {
    outline: 0 !important;
}

body.new-design-active #objects_tab .rc-device-icon {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    place-items: center !important;
    border-radius: 10px !important;
    color: #172033 !important;
    background: #f2f5f9 !important;
    font-size: 17px !important;
    overflow: hidden !important;
}

body.new-design-active #objects_tab .rc-device-icon .rc-device-selected-icon {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
}

body.new-design-active #objects_tab .rc-device-icon.has-photo {
    background: #e8edf4 !important;
}

body.new-design-active #objects_tab .rc-device-icon .rc-device-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.new-design-active #objects_tab .rc-device-select > .name {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active #objects_tab .rc-device-select [data-device="name"] {
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #objects_tab .rc-device-title-line {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 6px !important;
}

body.new-design-active #objects_tab .rc-device-title-line [data-device="name"] {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.new-design-active #objects_tab .rc-device-meta {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    color: #8391a5 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

body.new-design-active #objects_tab .rc-device-meta > i {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 9px !important;
}

body.new-design-active #objects_tab .rc-device-state {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    flex: 0 0 8px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: 0 0 0 2px #fff !important;
}

body.new-design-active #objects_tab .rc-device-state-online {
    background: #16a66a !important;
}

body.new-design-active #objects_tab .rc-device-state-moving {
    background: #2563eb !important;
}

body.new-design-active #objects_tab .rc-device-state-offline {
    background: #dc3545 !important;
}

body.new-design-active #objects_tab .rc-device-state-unknown {
    background: #7b8798 !important;
}

body.new-design-active #objects_tab .rc-device-row > .details {
    display: flex !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 0 0 auto !important;
    padding: 0 0 0 6px !important;
}

body.new-design-active #objects_tab .rc-device-chip {
    display: inline-flex !important;
    height: 29px !important;
    min-width: 29px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #7f8da1 !important;
    background: #eef2f6 !important;
    padding: 0 7px !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.new-design-active #objects_tab .rc-device-chip.on {
    color: #169866 !important;
    background: #e6f8f0 !important;
}

body.new-design-active #objects_tab .rc-device-chip.off {
    color: #8795a9 !important;
    background: #edf1f6 !important;
}

body.new-design-active #objects_tab .rc-device-lock.is-blocked {
    color: #111827 !important;
    background: #edf1f6 !important;
}

body.new-design-active #objects_tab .rc-device-lock.is-unlocked {
    color: #169866 !important;
    background: #e6f8f0 !important;
}

/* Teste visual: sensores compactos exibidos somente como ícones. */
body.new-design-active #objects_tab .rc-device-ignition,
body.new-design-active #objects_tab .rc-device-lock,
body.new-design-active #objects_tab .rc-device-engine,
body.new-design-active #objects_tab .rc-device-anchor,
body.new-design-active #objects_tab .rc-device-ignition.on,
body.new-design-active #objects_tab .rc-device-ignition.off,
body.new-design-active #objects_tab .rc-device-lock.is-blocked,
body.new-design-active #objects_tab .rc-device-lock.is-unlocked,
body.new-design-active #objects_tab .rc-device-engine.on,
body.new-design-active #objects_tab .rc-device-engine.off {
    width: 19px !important;
    height: 25px !important;
    min-width: 19px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #objects_tab .rc-device-anchor[hidden] {
    display: none !important;
}

body.new-design-active #objects_tab .rc-device-anchor.is-active {
    display: inline-flex !important;
    color: #2563eb !important;
}

body.new-design-active #objects_tab .rc-device-chip > i {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

body.new-design-active #objects_tab .rc-device-ignition > i,
body.new-design-active #objects_tab .rc-device-lock > i,
body.new-design-active #objects_tab .rc-device-engine > i,
body.new-design-active #objects_tab .rc-device-anchor > i {
    font-size: 14px !important;
}

body.new-design-active #objects_tab .rc-device-anchor > i {
    font-size: 12px !important;
}

body.new-design-active #objects_tab .rc-device-live-data,
body.new-design-active #objects_tab .rc-device-row > .details > [data-device="status"],
body.new-design-active #objects_tab .rc-device-row > .details > [data-device="detect_engine"] {
    display: none !important;
}

body.new-design-active #objects_tab .rc-device-speed {
    color: #1385c8 !important;
    background: #eaf6fd !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
}

body.new-design-active #objects_tab .rc-device-row > .details > .btn-group {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body.new-design-active #objects_tab .rc-device-row > .details > .btn-group > .btn {
    display: grid !important;
    width: 23px !important;
    height: 29px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    color: #8795a9 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px !important;
}

body.new-design-active #objects_tab .no-results {
    margin: 24px 8px !important;
    color: #8795a9 !important;
    font-size: 12px !important;
    text-align: center !important;
}

/* Cercas virtuais — painel lateral no mesmo padrão dos dispositivos. */
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab).active {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab):not(.active) {
    display: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) > .tab-pane-header {
    flex: 0 0 auto !important;
    border: 0 !important;
    background: #fff !important;
    padding: 10px 12px 8px !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .tab-pane-header .form,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .tab-pane-header .input-group,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .tab-pane-header .form-group {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-search {
    position: relative !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-search > i {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 13px !important;
    color: #8b9bb1 !important;
    font-size: 15px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-search::before {
    display: none !important;
    content: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-search .form-control {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 11px !important;
    color: #52627a !important;
    background: #fbfcfe !important;
    padding: 0 13px 0 38px !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-search .form-control:focus {
    border-color: #a9c8ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(24, 105, 241, .08) !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar-actions {
    position: static !important;
    display: flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar-btn {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 9px !important;
    color: #65758c !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 33, 61, .08) !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar-btn:hover,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar-btn:focus {
    border-color: #c7daf8 !important;
    color: #1261e9 !important;
    background: #edf4ff !important;
    outline: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-toolbar-btn > i {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) > .tab-pane-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fff !important;
    padding: 3px 12px 16px !important;
    scrollbar-color: #ccd7e5 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) #ajax-geofences,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) #ajax-routes,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) #ajax-map-icons,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-body,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group + .group {
    margin-top: 7px !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 38px !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 10px !important;
    color: #172033 !important;
    background: #f8fafc !important;
    padding: 5px 7px !important;
    transition: border-color .15s ease, background .15s ease !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading:hover {
    border-color: #d8e1ed !important;
    background: #f4f7fb !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility {
    position: relative !important;
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > input[type="checkbox"],
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > input[type="checkbox"] {
    position: absolute !important;
    z-index: 2 !important;
    top: 1.5px !important;
    left: 1.5px !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > label,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > label {
    position: relative !important;
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > label::before,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > label::before {
    position: absolute !important;
    inset: 0 !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important;
    border-radius: 4px !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(16, 33, 61, .05) !important;
    content: '' !important;
    transform: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > label::after,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > label::after {
    position: absolute !important;
    top: 2px !important;
    left: 4px !important;
    display: block !important;
    width: 4px !important;
    height: 7px !important;
    margin: 0 !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    background: transparent !important;
    padding: 0 !important;
    content: '' !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > input[type="checkbox"]:checked + label::before,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > input[type="checkbox"]:indeterminate + label::before,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > input[type="checkbox"]:checked + label::before {
    border-color: #299bd6 !important;
    background: #299bd6 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > input[type="checkbox"]:checked + label::after,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-visibility > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .checkbox > input[type="checkbox"]:indeterminate + label::after {
    top: 6px !important;
    left: 3px !important;
    width: 7px !important;
    height: 1.5px !important;
    border: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-title {
    position: relative !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    color: #344258 !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-title-text {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading .count {
    min-width: 20px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border-radius: 20px !important;
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-title::after {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto !important;
    margin-left: 1px !important;
    color: #8795a9 !important;
    font-size: 9px !important;
    line-height: 1 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading > .btn-group {
    display: flex !important;
    min-width: 26px !important;
    flex: 0 0 26px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-heading .btn-group > .btn,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-options-angle {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: #718198 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: color .16s ease, background .16s ease, transform .16s ease !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-options-angle:hover,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-options-angle:focus,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .btn-group.open > .rc-geofence-options-angle {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    outline: 0 !important;
    transform: translateX(1px) !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .group-list {
    list-style: none !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    padding: 5px 6px !important;
    transition: background .16s ease !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row:hover {
    background: #f7f9fc !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row.active,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row.active:hover {
    background: #f1f5f9 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-select {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    margin: 0 !important;
    color: #172033 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    cursor: pointer !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-select:focus {
    outline: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-select :is([data-geofence="name"], [data-route="name"], [data-poi="name"]) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row > .details {
    display: flex !important;
    width: 28px !important;
    min-width: 28px !important;
    flex: 0 0 28px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .rc-geofence-row > .details > .btn-group {
    margin: 0 !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .dropdown-menu:not(.rc-geofence-options-menu) {
    min-width: 170px !important;
    overflow: hidden !important;
    border: 1px solid #dce4ee !important;
    border-radius: 11px !important;
    background: #fff !important;
    padding: 6px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .dropdown-menu:not(.rc-geofence-options-menu) > li > a {
    display: flex !important;
    min-height: 34px !important;
    align-items: center !important;
    gap: 9px !important;
    border-radius: 7px !important;
    color: #445269 !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .dropdown-menu:not(.rc-geofence-options-menu) > li > a:hover,
body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .dropdown-menu:not(.rc-geofence-options-menu) > li > a:focus {
    color: #1261e9 !important;
    background: #edf4ff !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) .no-results {
    margin: 24px 8px !important;
    color: #8795a9 !important;
    font-size: 12px !important;
    text-align: center !important;
}

body.new-design-active :is(#geofencing_tab, #routes_tab, #pois_tab) form.text-center .btn-xs {
    min-height: 32px !important;
    margin-top: 8px !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #52627a !important;
    padding: 0 12px !important;
}

/* Geofence create/edit — same form language used throughout the map panels. */
body.new-design-active #geofencing_create.active,
body.new-design-active #geofencing_edit.active {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    background: #fff !important;
}

body.new-design-active #geofencing_create:not(.active),
body.new-design-active #geofencing_edit:not(.active) {
    display: none !important;
}

body.new-design-active #geofencing_create > .tab-pane-header,
body.new-design-active #geofencing_edit > .tab-pane-header {
    flex: 0 0 auto !important;
    border: 0 !important;
    background: #fff !important;
    padding: 10px 12px 0 !important;
}

body.new-design-active #geofencing_create .rc-geofence-draw-alert,
body.new-design-active #geofencing_edit .rc-geofence-draw-alert {
    display: flex !important;
    min-height: 48px !important;
    align-items: center !important;
    margin: 0 !important;
    border: 1px solid #b9dff0 !important;
    border-radius: 11px !important;
    color: #24749a !important;
    background: #e8f6fc !important;
    padding: 11px 13px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-form,
body.new-design-active #geofencing_edit .rc-geofence-editor-form {
    display: flex !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    margin: 0 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body,
body.new-design-active #geofencing_edit .rc-geofence-editor-body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fff !important;
    padding: 18px 12px 20px !important;
    scrollbar-color: #ccd7e5 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body > .form-group,
body.new-design-active #geofencing_edit .rc-geofence-editor-body > .form-group {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body label,
body.new-design-active #geofencing_edit .rc-geofence-editor-body label,
body.new-design-active #geofencing_create .rc-geofence-editor-body h5,
body.new-design-active #geofencing_edit .rc-geofence-editor-body h5 {
    display: block !important;
    margin: 0 0 6px !important;
    color: #263247 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body .form-control,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .form-control,
body.new-design-active #geofencing_create .rc-geofence-editor-body .bootstrap-select > .dropdown-toggle,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 1px solid #d5dfec !important;
    border-radius: 10px !important;
    color: #475569 !important;
    background-color: #fff !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 24px !important;
    box-shadow: none !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body .form-control:focus,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .form-control:focus,
body.new-design-active #geofencing_create .rc-geofence-editor-body .bootstrap-select.open > .dropdown-toggle,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .bootstrap-select.open > .dropdown-toggle {
    border-color: #7ca9f8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body .bootstrap-select.form-control,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .bootstrap-select.form-control {
    height: 42px !important;
    min-height: 42px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control > .input-group,
body.new-design-active #geofencing_edit .rc-geofence-group-control > .input-group {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    gap: 7px !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control .geofence_groups_select_ajax,
body.new-design-active #geofencing_edit .rc-geofence-group-control .geofence_groups_select_ajax {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control .input-group-btn,
body.new-design-active #geofencing_edit .rc-geofence-group-control .input-group-btn {
    position: static !important;
    display: block !important;
    width: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
    margin: 0 !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control .input-group-btn > .btn,
body.new-design-active #geofencing_edit .rc-geofence-group-control .input-group-btn > .btn {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid #b8cdf0 !important;
    border-radius: 9px !important;
    color: #1265ef !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06) !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control .input-group-btn > .btn:hover,
body.new-design-active #geofencing_edit .rc-geofence-group-control .input-group-btn > .btn:hover {
    border-color: #93b4ef !important;
    background: #edf4ff !important;
}

body.new-design-active #geofencing_create .rc-geofence-group-control .input-group-btn > .btn > i,
body.new-design-active #geofencing_edit .rc-geofence-group-control .input-group-btn > .btn > i {
    margin: 0 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-actions,
body.new-design-active #geofencing_edit .rc-geofence-editor-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-actions > .btn,
body.new-design-active #geofencing_edit .rc-geofence-editor-actions > .btn {
    display: inline-flex !important;
    min-width: 92px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-actions > .btn-action,
body.new-design-active #geofencing_edit .rc-geofence-editor-actions > .btn-action {
    border: 1px solid #168fc8 !important;
    color: #fff !important;
    background: #299bd6 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-actions > .btn-default,
body.new-design-active #geofencing_edit .rc-geofence-editor-actions > .btn-default {
    border: 1px solid #d7e0eb !important;
    color: #52627a !important;
    background: #f2f4f7 !important;
}

body.new-design-active #geofencing_create .rc-geofence-editor-body .form-group::before,
body.new-design-active #geofencing_create .rc-geofence-editor-body .form-group::after,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .form-group::before,
body.new-design-active #geofencing_edit .rc-geofence-editor-body .form-group::after {
    display: table !important;
    clear: both !important;
    content: '' !important;
}

@media (max-width: 480px) {
    body.new-design-active #geofencing_create .rc-geofence-editor-body,
    body.new-design-active #geofencing_edit .rc-geofence-editor-body {
        padding: 14px 10px 18px !important;
    }

    body.new-design-active #geofencing_create .rc-geofence-editor-actions > .btn,
    body.new-design-active #geofencing_edit .rc-geofence-editor-actions > .btn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active #sidebar-content.sidebar-content {
        top: 6px !important;
        bottom: 6px !important;
        left: 82px !important;
        width: calc(100vw - 94px) !important;
        max-width: calc(100vw - 94px) !important;
        height: calc(100vh - 12px) !important;
        max-height: calc(100vh - 12px) !important;
        border-radius: 17px !important;
    }

    body.new-design-active #sidebar.sidebar-new-design-layout:not(.collapsed) ~ #sidebar-content.sidebar-content {
        opacity: 0 !important;
        transform: translateX(-8px) !important;
        pointer-events: none !important;
    }

    @supports (height: 100dvh) {
        body.new-design-active #sidebar-content.sidebar-content {
            height: calc(100dvh - 12px) !important;
            max-height: calc(100dvh - 12px) !important;
        }
    }

    body.new-design-active #sidebar-content > .sidebar-content-header {
        min-height: 60px !important;
        padding: 9px 9px 9px 11px !important;
    }

    body.new-design-active #sidebar-content > .tab-content {
        display: flex !important;
        min-height: 0 !important;
        flex-direction: column !important;
        height: calc(100% - 60px) !important;
        overflow: hidden !important;
    }

    body.new-design-active #sidebar-content > .tab-content > #objects_tab {
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    body.new-design-active #objects_tab > .tab-pane-body {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        flex: 1 1 0 !important;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
        scrollbar-color: #cbd6e4 transparent !important;
        scrollbar-width: thin !important;
    }

    body.new-design-active #objects_tab > .tab-pane-body::-webkit-scrollbar {
        width: 4px !important;
        background: transparent !important;
    }

    body.new-design-active #objects_tab > .tab-pane-body::-webkit-scrollbar-track {
        background: transparent !important;
    }

    body.new-design-active #objects_tab > .tab-pane-body::-webkit-scrollbar-thumb {
        border-radius: 10px !important;
        background: #cbd6e4 !important;
    }

    body.new-design-active #objects_tab #ajax-items {
        min-height: min-content !important;
        overflow: visible !important;
    }

    body.new-design-active #sidebar-content .sidebar-content-title > .icon,
    body.new-design-active #sidebar-content .sidebar-content-action-btn,
    body.new-design-active #sidebar-content .sidebar-content-collapse-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    body.new-design-active #sidebar-content .sidebar-content-title .title-text {
        font-size: 14px !important;
    }

    body.new-design-active #objects_tab .rc-device-row {
        flex-wrap: wrap !important;
        gap: 3px 5px !important;
        padding: 6px 2px !important;
    }

    body.new-design-active #objects_tab .rc-device-row > .details {
        width: 100% !important;
        justify-content: flex-end !important;
        margin-left: 0 !important;
        padding-left: 47px !important;
    }

    body.new-design-active #objects_tab .rc-device-row > .rc-device-visibility {
        top: auto !important;
        left: auto !important;
    }
}

/* Controles laterais do mapa — padrão compacto RastreCore. */
body.new-design-active #map-controls.map-controls {
    display: flex !important;
    width: 40px !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active #map-controls.map-controls.top-right {
    top: 8px !important;
    right: 10px !important;
}

body.new-design-active #map-controls > div,
body.new-design-active #map-controls > div > .btn-group-vertical {
    width: 40px !important;
    margin: 0 !important;
}

body.new-design-active #map-controls > div > .btn-group-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.new-design-active #map-controls .btn-group-vertical > .btn,
body.new-design-active #map-controls #ruler-group > .btn {
    display: grid !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 9px !important;
    color: #65758c !important;
    background: var(--rc-map-surface) !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(16, 33, 61, .10) !important;
    transition: color .16s ease, background-color .16s ease, transform .16s ease !important;
}

body.new-design-active #map-controls .btn-group-vertical > .btn + .btn {
    border-top: 1px solid #dce5f0 !important;
}

body.new-design-active #map-controls .btn-group-vertical > .btn:hover,
body.new-design-active #map-controls .btn-group-vertical > .btn:focus,
body.new-design-active #map-controls #ruler-group > .btn:hover,
body.new-design-active #map-controls #ruler-group > .btn:focus {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    border-color: #c7daf8 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.new-design-active #map-controls .btn-group-vertical > .btn.active,
body.new-design-active #map-controls .btn-group-vertical > label.btn.active,
body.new-design-active #map-controls .btn-group-vertical > label.btn:has(input:checked),
body.new-design-active #map-controls #ruler-group > .btn.active {
    color: var(--rc-map-primary) !important;
    background: #e8f1ff !important;
    border-color: #b9d0f6 !important;
    box-shadow: none !important;
}

body.new-design-active #map-controls .btn input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.new-design-active #map-controls .btn i,
body.new-design-active #map-controls .btn [class*="icon-"] {
    display: inline-grid !important;
    width: 18px !important;
    height: 18px !important;
    place-items: center !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 18px !important;
    vertical-align: middle !important;
}

body.new-design-active #map-controls #ruler-group.btn-group {
    display: flex !important;
    width: 32px !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.new-design-active #map-controls #ruler-cancel-btn:not(.is-visible) {
    display: none !important;
}

body.new-design-active #map-controls #ruler-cancel-btn.is-visible {
    display: grid !important;
    color: #ef3340 !important;
    border-color: #fecaca !important;
    background: #fff5f5 !important;
}

body.new-design-active #map-controls #ruler-cancel-btn.is-visible:hover,
body.new-design-active #map-controls #ruler-cancel-btn.is-visible:focus {
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
}

@media (max-width: 767px) {
    body.new-design-active #map-controls.map-controls {
        width: 38px !important;
        gap: 5px !important;
    }

    body.new-design-active #map-controls.map-controls.top-right {
        top: 6px !important;
        right: 7px !important;
    }

    body.new-design-active #map-controls > div,
    body.new-design-active #map-controls > div > .btn-group-vertical {
        width: 38px !important;
    }

    body.new-design-active #map-controls > div > .btn-group-vertical {
        padding: 0 !important;
    }
}

/* Keep the device list at the same standard distance from the menu. */
body.new-design-active #sidebar-content.sidebar-content {
    left: var(--sidebar-content-left) !important;
}

/* Shared stacking order for screens that display the bottom panel. */
body.new-design-active.bottom-panel-open #sidebar {
    z-index: 1001 !important;
}

body.new-design-active.bottom-panel-open #sidebar-content {
    left: var(--sidebar-content-left, 0px) !important;
    bottom: calc(var(--bottom-panel-height, 0px) + 8px) !important;
    height: calc(100vh - var(--bottom-panel-height, 0px) - 16px) !important;
    max-height: calc(100vh - var(--bottom-panel-height, 0px) - 16px) !important;
    z-index: 997 !important;
}

@media (max-width: 767px) {
    body.new-design-active.bottom-panel-open #sidebar-content {
        bottom: calc(var(--bottom-panel-height, 0px) + 6px) !important;
        height: calc(100vh - var(--bottom-panel-height, 0px) - 12px) !important;
        max-height: calc(100vh - var(--bottom-panel-height, 0px) - 12px) !important;
    }

    @supports (height: 100dvh) {
        body.new-design-active.bottom-panel-open #sidebar-content {
            height: calc(100dvh - var(--bottom-panel-height, 0px) - 12px) !important;
            max-height: calc(100dvh - var(--bottom-panel-height, 0px) - 12px) !important;
        }
    }
}

body.new-design-active.bottom-panel-open #bottombar {
    left: var(--sidebar-content-left, 0px) !important;
    width: calc(100% - var(--sidebar-content-left, 0px)) !important;
    padding-left: 0 !important;
    z-index: 1000 !important;
}

/* Widgets do mapa — cartões compartilhados do novo layout. */
body.new-design-active #widgets {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

body.new-design-active #widgets .widgets-content {
    display: flex !important;
    height: 172px !important;
    min-height: 172px !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    color: var(--rc-map-text) !important;
    background: rgba(255, 255, 255, .90) !important;
    white-space: nowrap !important;
    scrollbar-color: #cbd6e4 transparent !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

body.new-design-active #widgets .widgets-content::-webkit-scrollbar {
    height: 5px !important;
}

body.new-design-active #widgets .widgets-content::-webkit-scrollbar-track {
    background: transparent !important;
}

body.new-design-active #widgets .widgets-content::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
    background: #cbd6e4 !important;
}

body.new-design-active #widgets .widget {
    display: flex !important;
    min-width: 250px !important;
    height: 156px !important;
    flex: 1 0 250px !important;
    flex-direction: column !important;
    margin: 0 !important;
    overflow: hidden !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 12px !important;
    color: var(--rc-map-text) !important;
    background: var(--rc-map-surface) !important;
    box-shadow: 0 3px 12px rgba(16, 33, 61, .07) !important;
}

body.new-design-active #widgets .widget + .widget {
    margin-left: 0 !important;
}

body.new-design-active #widgets .widget-heading {
    display: flex !important;
    min-height: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    align-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    border-radius: 0 !important;
    padding: 0 11px !important;
    box-sizing: border-box !important;
    color: var(--rc-map-navy) !important;
    background: #f8fafd !important;
}

body.new-design-active #widgets .widget-title {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 35px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active #widgets .widget-title > .icon,
body.new-design-active #widgets .widget-title > [class^="icon-gps-"],
body.new-design-active #widgets .widget-title > [class*=" icon-gps-"] {
    display: inline-flex !important;
    width: 18px !important;
    height: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px 0 0 !important;
    color: var(--rc-map-primary) !important;
    font-size: 16px !important;
    line-height: 18px !important;
    vertical-align: middle !important;
}

body.new-design-active #widgets .widget-actions {
    display: flex !important;
    height: 35px !important;
    align-items: center !important;
    gap: 5px !important;
    float: right !important;
    margin-left: 8px !important;
    color: var(--rc-map-muted) !important;
}

body.new-design-active #widgets .widget-actions > a,
body.new-design-active #widgets .widget-actions > .btn {
    display: inline-grid !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: var(--rc-map-primary) !important;
    background: transparent !important;
    padding: 0 !important;
    line-height: 25px !important;
}

body.new-design-active #widgets .widget-actions > a:hover,
body.new-design-active #widgets .widget-actions > a:focus,
body.new-design-active #widgets .widget-actions > .btn:hover,
body.new-design-active #widgets .widget-actions > .btn:focus {
    background: var(--rc-map-primary-soft) !important;
    text-decoration: none !important;
    outline: 0 !important;
}

body.new-design-active #widgets .widget-body {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 120px !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: auto !important;
    padding: 7px 11px !important;
    box-sizing: border-box !important;
    color: var(--rc-map-text) !important;
    background: var(--rc-map-surface) !important;
    font-size: 11px !important;
    scrollbar-color: #d3dce8 transparent !important;
    scrollbar-width: thin !important;
}

body.new-design-active #widgets .widget-body::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

body.new-design-active #widgets .widget-body::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
    background: #d3dce8 !important;
}

body.new-design-active #widgets .table {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    table-layout: fixed !important;
    color: inherit !important;
    background: transparent !important;
}

body.new-design-active #widgets .table + .table {
    margin: 0 !important;
}

body.new-design-active #widgets .table tr > td {
    height: 21px !important;
    border-color: #edf1f6 !important;
    padding: 2px 3px !important;
    color: inherit !important;
    line-height: 16px !important;
    vertical-align: middle !important;
}

body.new-design-active #widgets .table tr > td:first-child {
    width: 40% !important;
    color: #68778c !important;
}

body.new-design-active #widgets .widget-sensors {
    min-width: 390px !important;
    flex-basis: 390px !important;
}

body.new-design-active #widgets .widget-sensors .widget-body {
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 0 10px !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] > .table {
    width: 100% !important;
    min-width: 0 !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] > .table tr > td:first-child {
    width: 64% !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] > .table tr > td:last-child {
    width: 36% !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] > .table:nth-child(odd) {
    padding-right: 7px !important;
}

body.new-design-active #widgets .widget-sensors [data-device="sensors"] > .table:nth-child(even) {
    padding-left: 7px !important;
}

body.new-design-active #widgets .widget-vehicle-details {
    min-width: 310px !important;
    flex-basis: 310px !important;
}

body.new-design-active #widgets .widget-vehicle-details .preview {
    display: none !important;
}

body.new-design-active #widgets .widget-vehicle-details .table tr:first-child > td {
    height: auto !important;
    vertical-align: top !important;
}

body.new-design-active #widgets .widget-vehicle-details .table tr:first-child > td:last-child,
body.new-design-active #widgets .widget-vehicle-details [data-device="address"] {
    overflow: visible !important;
    max-width: none !important;
    line-height: 16px !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body.new-design-active #widgets .widget-image {
    min-width: 280px !important;
    flex-basis: 280px !important;
}

body.new-design-active #widgets .widget-image .widget-body,
body.new-design-active #widgets .widget-camera .widget-body,
body.new-design-active #widgets .widget-streetview .widget-body {
    padding: 7px !important;
    overflow: hidden !important;
}

body.new-design-active #widgets .widget-image .image {
    border-radius: 8px !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
}

body.new-design-active #widgets .widget-image .name,
body.new-design-active #widgets .widget-camera .name {
    right: 7px !important;
    bottom: 7px !important;
    border-radius: 6px 0 6px 0 !important;
    padding: 2px 6px !important;
}

body.new-design-active .rc-widget-image-viewer {
    width: calc(100% - 28px) !important;
    max-width: 640px !important;
    max-height: calc(100% - 28px) !important;
    margin: auto !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: var(--rc-map-text) !important;
    background: transparent !important;
    overflow: visible !important;
}

body.new-design-active .rc-widget-image-viewer::backdrop {
    background: rgba(8, 18, 35, .62) !important;
}

body.new-design-active .rc-widget-image-dialog {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 14px !important;
    background: var(--rc-map-surface) !important;
    box-shadow: 0 18px 48px rgba(16, 33, 61, .24) !important;
}

body.new-design-active .rc-widget-image-header {
    display: flex !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;
    color: var(--rc-map-navy) !important;
    background: #f8fafd !important;
}

body.new-design-active .rc-widget-image-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
}

body.new-design-active .rc-widget-image-close {
    width: 30px !important;
    height: 30px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #66758a !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 24px !important;
    line-height: 28px !important;
}

body.new-design-active .rc-widget-image-close:hover {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
}

body.new-design-active .rc-widget-image-body {
    display: flex !important;
    min-height: 220px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    background: #f3f6fa !important;
}

body.new-design-active .rc-widget-image-body img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 68vh !important;
    border-radius: 9px !important;
    object-fit: contain !important;
}

/* Popup compacto do veículo. */
body.new-design-active .leaflet-popup-device .leaflet-popup-content-wrapper {
    overflow: hidden !important;
    border: 1px solid #dce4ee !important;
    border-radius: 12px !important;
    background: var(--rc-map-surface) !important;
    box-shadow: 0 5px 18px rgba(16, 33, 61, .18) !important;
}

body.new-design-active .leaflet-popup-device .leaflet-popup-content {
    width: min(260px, calc(100vw - 32px)) !important;
    margin: 0 !important;
}

body.new-design-active .rc-popup-card {
    width: min(260px, calc(100vw - 32px)) !important;
    box-sizing: border-box !important;
    color: var(--rc-map-text) !important;
    background: var(--rc-map-surface) !important;
    padding-bottom: 7px !important;
    font-size: 11px !important;
}

body.new-design-active .rc-popup-head {
    display: flex !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    padding: 9px 10px 7px !important;
}

body.new-design-active .rc-popup-heading {
    min-width: 0 !important;
}

body.new-design-active .rc-popup-name {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: var(--rc-map-navy) !important;
    font-size: 13px !important;
}

body.new-design-active .rc-popup-name [data-device="status"] {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 50% !important;
}

body.new-design-active .rc-popup-online {
    margin: 3px 0 0 12px !important;
    color: #12b85a !important;
    font-size: 12px !important;
}

body.new-design-active .rc-popup-relative {
    color: var(--rc-map-muted) !important;
}

body.new-design-active .rc-popup-close {
    width: 26px !important;
    height: 26px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #77869a !important;
    background: #f3f6fa !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 24px !important;
}

body.new-design-active .rc-popup-metrics {
    display: grid !important;
    min-height: 68px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    padding: 9px 5px 7px !important;
}

body.new-design-active .rc-popup-metric {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: center !important;
}

body.new-design-active .rc-popup-metric > i {
    height: 17px !important;
    color: currentColor !important;
    font-size: 15px !important;
}

body.new-design-active .rc-popup-metric strong {
    overflow: hidden !important;
    max-width: 100% !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-popup-metric-ignition { color: #ef3340 !important; }
body.new-design-active .rc-popup-metric-lock { color: #12b85a !important; }
body.new-design-active .rc-popup-metric-speed { color: #172033 !important; }
body.new-design-active .rc-popup-metric-battery { color: #12a864 !important; }

body.new-design-active .rc-tag-popup .rc-popup-card {
    padding-bottom: 0 !important;
}

body.new-design-active .rc-tag-popup .rc-popup-metrics {
    min-height: 72px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-right: 22px !important;
    padding-left: 22px !important;
}

body.new-design-active .rc-popup-metric-speed {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-template-rows: 17px auto !important;
    align-content: start !important;
    justify-content: center !important;
    column-gap: 3px !important;
}

body.new-design-active .rc-popup-metric-speed > i {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
}

body.new-design-active .rc-popup-metric-speed strong {
    font-size: 16px !important;
    line-height: 14px !important;
}

body.new-design-active .rc-popup-metric-speed small {
    align-self: center !important;
    color: var(--rc-map-muted) !important;
    font-size: 9px !important;
    line-height: 14px !important;
    text-transform: uppercase !important;
}

body.new-design-active .rc-popup-metric-battery {
    display: grid !important;
    grid-template-columns: auto !important;
    grid-template-rows: 17px auto auto !important;
    align-content: start !important;
    justify-content: center !important;
    row-gap: 2px !important;
}

body.new-design-active .rc-popup-metric-battery > i {
    justify-self: center !important;
}

body.new-design-active .rc-popup-metric-battery strong {
    font-size: 16px !important;
    line-height: 15px !important;
}

body.new-design-active .rc-popup-metric-battery small {
    color: var(--rc-map-muted) !important;
    font-size: 9px !important;
    line-height: 12px !important;
    text-transform: uppercase !important;
}

body.new-design-active .rc-tag-popup .rc-popup-location {
    padding-bottom: 9px !important;
}

body.new-design-active .rc-popup-location {
    padding: 7px 10px 6px !important;
}

body.new-design-active .rc-popup-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    line-height: 14px !important;
    white-space: normal !important;
}

body.new-design-active .rc-popup-info > i {
    width: 10px !important;
    flex: 0 0 10px !important;
    margin-top: 2px !important;
    color: #91a0b4 !important;
    text-align: center !important;
}

body.new-design-active .rc-popup-time {
    margin-top: 7px !important;
    color: #8695aa !important;
    font-size: 10px !important;
}

body.new-design-active .rc-popup-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    border-top: 1px solid var(--rc-map-line) !important;
    padding: 7px 8px !important;
}

body.new-design-active .rc-popup-btn {
    display: flex !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border: 1px solid #d8e1eb !important;
    border-radius: 6px !important;
    color: #66758a !important;
    background: #fff !important;
    padding: 3px !important;
    font-size: 9px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-popup-btn-danger {
    border-color: #ef9da4 !important;
    color: #e32938 !important;
}

body.new-design-active .rc-popup-btn-success {
    border-color: #86cbb2 !important;
    color: #088b59 !important;
}

body.new-design-active .rc-popup-details-toggle {
    display: flex !important;
    width: calc(100% - 16px) !important;
    min-height: 30px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border: 1px solid #d8e1eb !important;
    border-radius: 6px !important;
    color: #172033 !important;
    background: #f7f9fc !important;
    margin: 0 8px !important;
    padding: 3px !important;
    font-size: 11px !important;
}

body.new-design-active .rc-popup-details-toggle.active {
    color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
}

body.new-design-active .rc-popup-card.details-open .rc-popup-details-toggle > i {
    transform: rotate(180deg) !important;
}

body.new-design-active .rc-popup-legacy {
    max-height: 230px !important;
    overflow: auto !important;
    border-top: 1px solid var(--rc-map-line) !important;
    padding: 6px !important;
}

body.new-design-active .rc-popup-legacy[hidden] {
    display: none !important;
}

body.new-design-active .rc-popup-legacy .popup-header {
    display: none !important;
}

/* Janela de detalhes completos do veículo. */
body.new-design-active .rc-device-details-dialog {
    width: calc(100% - 28px) !important;
    max-width: 760px !important;
    max-height: calc(100% - 28px) !important;
    margin: auto !important;
    overflow: hidden !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 14px !important;
    background: var(--rc-map-surface) !important;
    padding: 0 !important;
    box-shadow: 0 22px 60px rgba(16, 33, 61, .28) !important;
}

body.new-design-active .rc-device-details-dialog::backdrop {
    background: rgba(8, 18, 35, .42) !important;
}

body.new-design-active .rc-device-action-confirm {
    width: calc(100% - 28px) !important;
    max-width: 512px !important;
    margin: auto !important;
    overflow: hidden !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 20px 55px rgba(8, 18, 35, .30) !important;
}

body.new-design-active .rc-device-action-confirm::backdrop {
    background: rgba(8, 13, 22, .72) !important;
}

body.new-design-active .rc-action-confirm-card {
    padding: 26px 24px 22px !important;
    color: var(--rc-map-text) !important;
}

body.new-design-active .rc-action-confirm-card header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #172033 !important;
}

body.new-design-active .rc-action-confirm-card header > i {
    color: #ef3340 !important;
    font-size: 20px !important;
}

body.new-design-active .rc-device-action-confirm.is-unlock .rc-action-confirm-card header > i {
    color: #0dab65 !important;
}

body.new-design-active .rc-action-confirm-card h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-action-confirm-body {
    padding: 10px 0 16px !important;
}

body.new-design-active .rc-action-confirm-body p {
    margin: 0 0 20px !important;
    color: #627188 !important;
    font-size: 14px !important;
    line-height: 21px !important;
}

body.new-design-active .rc-action-confirm-body p strong {
    color: #ef3340 !important;
}

body.new-design-active .rc-device-action-confirm.is-unlock .rc-action-confirm-body p strong {
    color: #0dab65 !important;
}

body.new-design-active .rc-action-confirm-body small {
    color: #68778c !important;
    font-size: 12px !important;
}

body.new-design-active .rc-action-confirm-card footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.new-design-active .rc-action-confirm-card footer button {
    display: inline-flex !important;
    min-width: 92px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 7px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
}

body.new-design-active .rc-action-cancel {
    border: 1px solid #d7e0ea !important;
    color: #263246 !important;
    background: #fff !important;
}

body.new-design-active .rc-action-submit {
    border: 1px solid #e52535 !important;
    color: #fff !important;
    background: #e52535 !important;
}

body.new-design-active .rc-device-action-confirm.is-unlock .rc-action-submit {
    border-color: #0ba564 !important;
    background: #0ba564 !important;
}

body.new-design-active [data-rc-confirm-action].is-sending {
    opacity: .6 !important;
    pointer-events: none !important;
}

body.new-design-active .rc-device-anchor-dialog {
    width: min(480px, calc(100vw - 28px)) !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: 0 18px 55px rgba(15, 27, 48, .3) !important;
}

body.new-design-active .rc-device-anchor-dialog::backdrop {
    background: rgba(12, 22, 38, .62) !important;
}

body.new-design-active .rc-anchor-card {
    overflow: hidden !important;
    border-radius: 14px !important;
    color: var(--rc-map-text) !important;
    background: #fff !important;
}

body.new-design-active .rc-anchor-card > header,
body.new-design-active .rc-anchor-card > footer,
body.new-design-active .rc-anchor-card > header > div {
    display: flex !important;
    align-items: center !important;
}

body.new-design-active .rc-anchor-card > header {
    min-height: 58px !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e4eaf1 !important;
    padding: 0 18px !important;
}

body.new-design-active .rc-anchor-card > header > div { gap: 10px !important; }
body.new-design-active .rc-anchor-card > header i { color: #1677ff !important; font-size: 19px !important; }
body.new-design-active .rc-anchor-card > header h3 { margin: 0 !important; font-size: 17px !important; }
body.new-design-active .rc-anchor-card > header button {
    width: 30px !important; height: 30px !important; border: 0 !important; border-radius: 8px !important;
    color: #77869a !important; background: #f3f6fa !important; font-size: 21px !important;
}

body.new-design-active .rc-anchor-body { padding: 18px !important; }
body.new-design-active .rc-anchor-device { margin: 0 0 14px !important; color: #172033 !important; font-size: 14px !important; font-weight: 700 !important; }
body.new-design-active .rc-anchor-body > label:not(.rc-anchor-check) { display: block !important; color: #65758c !important; font-size: 11px !important; }
body.new-design-active .rc-anchor-body input[type="number"] {
    display: block !important; width: 100% !important; height: 42px !important; margin-top: 6px !important;
    border: 1px solid #d8e1eb !important; border-radius: 9px !important; padding: 0 12px !important; font-size: 14px !important;
}

body.new-design-active .rc-anchor-presets { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; margin-top: 9px !important; }
body.new-design-active .rc-anchor-presets button {
    min-height: 34px !important; border: 1px solid #d8e1eb !important; border-radius: 8px !important;
    color: #65758c !important; background: #fff !important;
}
body.new-design-active .rc-anchor-presets button.active { border-color: #1677ff !important; color: #1677ff !important; background: #eef6ff !important; }

body.new-design-active .rc-anchor-check {
    display: flex !important; align-items: flex-start !important; gap: 10px !important; margin-top: 16px !important;
    border-radius: 10px !important; background: #fff5f5 !important; padding: 12px !important;
}
body.new-design-active .rc-anchor-check input { margin-top: 3px !important; }
body.new-design-active .rc-anchor-check strong,
body.new-design-active .rc-anchor-check small,
body.new-design-active .rc-anchor-active span { display: block !important; }
body.new-design-active .rc-anchor-check small { margin-top: 3px !important; color: #75849a !important; font-weight: 400 !important; line-height: 15px !important; }
body.new-design-active .rc-anchor-help { margin: 13px 0 0 !important; color: #75849a !important; font-size: 11px !important; line-height: 16px !important; }
body.new-design-active .rc-anchor-active { border: 1px solid #bcebd0 !important; border-radius: 10px !important; color: #087846 !important; background: #ecfbf3 !important; padding: 13px !important; }
body.new-design-active .rc-anchor-active strong { display: block !important; margin-bottom: 6px !important; font-size: 14px !important; }
body.new-design-active .rc-anchor-active span { margin-top: 3px !important; color: #496b5c !important; }

body.new-design-active .rc-anchor-card > footer { justify-content: flex-end !important; gap: 8px !important; border-top: 1px solid #e4eaf1 !important; padding: 12px 18px !important; }
body.new-design-active .rc-anchor-card > footer button { min-height: 38px !important; border: 1px solid #d8e1eb !important; border-radius: 8px !important; background: #fff !important; padding: 0 15px !important; }
body.new-design-active .rc-anchor-card > footer button.primary { border-color: #1677ff !important; color: #fff !important; background: #1677ff !important; }
body.new-design-active .rc-anchor-card > footer button.danger { border-color: #e32938 !important; color: #fff !important; background: #e32938 !important; }
body.new-design-active .rc-anchor-card > footer button:disabled { opacity: .55 !important; pointer-events: none !important; }
body.new-design-active .rc-anchor-loading { display: flex !important; min-height: 150px !important; align-items: center !important; justify-content: center !important; gap: 9px !important; }

body.new-design-active .rc-detail-window {
    color: var(--rc-map-text) !important;
    background: #fff !important;
}

body.new-design-active .rc-detail-titlebar,
body.new-design-active .rc-detail-tabs {
    display: flex !important;
    align-items: center !important;
}

body.new-design-active .rc-detail-titlebar {
    height: 42px !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    padding: 0 14px !important;
    color: var(--rc-map-navy) !important;
    background: #f8fafd !important;
}

body.new-design-active .rc-detail-titlebar button {
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: #718097 !important;
    background: transparent !important;
    font-size: 20px !important;
}

body.new-design-active .rc-detail-tabs {
    gap: 4px !important;
    overflow-x: auto !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    padding: 8px 12px !important;
}

body.new-design-active .rc-detail-tabs button {
    min-height: 36px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #65758c !important;
    background: transparent !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-detail-tabs button.active {
    color: #fff !important;
    background: #151923 !important;
}

body.new-design-active .rc-detail-content {
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    padding: 14px 16px 18px !important;
}

body.new-design-active .rc-detail-pane {
    display: none !important;
}

body.new-design-active .rc-detail-pane.active {
    display: block !important;
}

body.new-design-active .rc-detail-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.new-design-active .rc-detail-field {
    min-height: 58px !important;
    border-radius: 10px !important;
    background: #f7f9fc !important;
    padding: 10px 12px !important;
}

body.new-design-active .rc-detail-field small,
body.new-design-active .rc-detail-field strong {
    display: block !important;
}

body.new-design-active .rc-detail-field small {
    margin-bottom: 4px !important;
    color: #8492a6 !important;
    font-size: 9px !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.new-design-active .rc-detail-field strong {
    overflow-wrap: anywhere !important;
    color: var(--rc-map-navy) !important;
    font-size: 12px !important;
}

body.new-design-active .rc-detail-empty {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    color: var(--rc-map-muted) !important;
    background: #f7f9fc !important;
    padding: 24px !important;
    text-align: center !important;
}

body.new-design-active .rc-detail-sensor-list {
    margin-top: 14px !important;
    border-top: 1px solid #edf1f6 !important;
    padding-top: 10px !important;
}

body.new-design-active .rc-detail-sensor-list h4 {
    margin: 0 0 8px !important;
    color: var(--rc-map-navy) !important;
    font-size: 12px !important;
}

body.new-design-active .rc-detail-device-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid #edf1f6 !important;
    padding-bottom: 12px !important;
}

body.new-design-active .rc-detail-device-icon {
    display: grid !important;
    width: 58px !important;
    height: 58px !important;
    place-items: center !important;
    border-radius: 12px !important;
    color: #95a3b5 !important;
    background: #f3f6fa !important;
    font-size: 24px !important;
}

body.new-design-active .rc-detail-device-head h3,
body.new-design-active .rc-detail-device-head p {
    margin: 3px 0 0 !important;
}

body.new-design-active .rc-detail-badges .online {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border: 1px solid #bcebd0 !important;
    border-radius: 20px !important;
    color: #0fac58 !important;
    background: #ecfbf3 !important;
    padding: 2px 9px !important;
    font-size: 11px !important;
}

body.new-design-active .rc-detail-badges [data-device="status"] {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
}

body.new-design-active .rc-detail-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

body.new-design-active .rc-detail-metric {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 9px !important;
    border-radius: 10px !important;
    background: #f7f9fc !important;
    padding: 8px 10px !important;
}

body.new-design-active .rc-detail-metric > i {
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: #eef2f7 !important;
    font-size: 16px !important;
}

body.new-design-active .rc-detail-metric small,
body.new-design-active .rc-detail-metric strong,
body.new-design-active .rc-detail-address small,
body.new-design-active .rc-detail-address strong,
body.new-design-active .rc-detail-secondary small,
body.new-design-active .rc-detail-secondary strong {
    display: block !important;
}

body.new-design-active .rc-detail-metric small,
body.new-design-active .rc-detail-address small,
body.new-design-active .rc-detail-secondary small {
    color: #8492a6 !important;
    font-size: 9px !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.new-design-active .rc-detail-address {
    display: flex !important;
    gap: 11px !important;
    margin-top: 12px !important;
    border-radius: 11px !important;
    background: #f7f9fc !important;
    padding: 12px !important;
    line-height: 18px !important;
}

body.new-design-active .rc-detail-address > i {
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: #eef2f7 !important;
}

body.new-design-active .rc-detail-address p {
    margin: 5px 0 0 !important;
    color: #8492a6 !important;
    font-size: 10px !important;
}

body.new-design-active .rc-detail-secondary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

body.new-design-active .rc-detail-secondary > div {
    border-radius: 10px !important;
    background: #f7f9fc !important;
    padding: 10px 12px !important;
}

body.new-design-active .rc-detail-quick {
    margin-top: 14px !important;
    border-top: 1px solid #edf1f6 !important;
    padding-top: 11px !important;
}

body.new-design-active .rc-detail-quick > div {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 7px !important;
}

body.new-design-active .rc-detail-quick a {
    display: flex !important;
    min-height: 54px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    border-radius: 9px !important;
    color: var(--rc-map-navy) !important;
    background: #f7f9fc !important;
    font-size: 10px !important;
    text-decoration: none !important;
}

body.new-design-active .rc-detail-quick a.danger { color: #e32938 !important; background: #fff0f1 !important; }
body.new-design-active .rc-detail-quick a.success { color: #07925a !important; background: #ecfaf4 !important; }

@media (max-width: 767px) {
    body.new-design-active .rc-device-details-dialog {
        width: calc(100% - 12px) !important;
        max-height: calc(100% - 12px) !important;
    }

    body.new-design-active .rc-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.new-design-active .rc-detail-quick > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.new-design-active .rc-detail-fields {
        grid-template-columns: 1fr !important;
    }
}

body.new-design-active #widgets .widget-empty {
    width: 100% !important;
    min-width: 210px !important;
    background-size: auto 78% !important;
    color: var(--rc-map-muted) !important;
}

body.new-design-active #widgets .widget-empty > p {
    padding-top: 34px !important;
}

/* Histórico — gráfico e registro de dados. */
body.new-design-active #bottom-history {
    overflow: hidden !important;
    border: 1px solid var(--rc-map-line) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .16) !important;
}

body.new-design-active #bottom-history .bottom-history-header {
    display: flex !important;
    min-height: 60px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--rc-map-line) !important;
    background: #fff !important;
}

body.new-design-active #bottom-history .bottom-history-header::before,
body.new-design-active #bottom-history .bottom-history-header::after {
    display: none !important;
}

body.new-design-active #bottom-history #graph_sensors {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 1px 2px 3px !important;
    border: 0 !important;
    white-space: nowrap !important;
    scrollbar-width: thin !important;
}

body.new-design-active #bottom-history #graph_sensors > li,
body.new-design-active #bottom-history .bottom-history-header > .nav-tabs.pull-right > li {
    float: none !important;
    margin: 0 !important;
}

body.new-design-active #bottom-history #graph_sensors > li > a {
    min-height: 34px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 999px !important;
    background: #f5f7fa !important;
    color: #607086 !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

body.new-design-active #bottom-history #graph_sensors > li.active > a,
body.new-design-active #bottom-history #graph_sensors > li > a:hover {
    border-color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary-soft) !important;
    color: var(--rc-map-primary) !important;
}

body.new-design-active #bottom-history .bottom-history-header > .nav-tabs.pull-right {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    order: 2 !important;
    margin: 0 !important;
    border: 0 !important;
}

body.new-design-active #bottom-history .bottom-history-header > .nav-tabs.pull-right > li > a {
    display: inline-flex !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #52627a !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

body.new-design-active #bottom-history .bottom-history-header > .nav-tabs.pull-right > li.active > a {
    border-color: #bfd2f5 !important;
    background: var(--rc-map-primary-soft) !important;
    color: var(--rc-map-primary) !important;
}

body.new-design-active #bottom-history .bottom-history-header .btn-close {
    width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f4f7fb !important;
    color: var(--rc-map-primary) !important;
}

body.new-design-active #bottom-history .bottom-history-content,
body.new-design-active #bottom-history .tab-content,
body.new-design-active #bottom-history #graph {
    background: #fff !important;
}

body.new-design-active #bottom-history .graph-controls {
    display: flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 14px 4px !important;
    background: #fff !important;
}

body.new-design-active #bottom-history .graph-controls::before,
body.new-design-active #bottom-history .graph-controls::after {
    display: none !important;
}

body.new-design-active #bottom-history .graph-controls .nav-pills {
    display: flex !important;
    float: none !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
}

body.new-design-active #bottom-history .graph-controls .nav-pills > li {
    display: block !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    float: none !important;
}

body.new-design-active #bottom-history .graph-controls .nav-pills.pull-left {
    min-width: 238px !important;
}

body.new-design-active #bottom-history .graph-controls .btn {
    display: inline-grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: var(--rc-map-primary) !important;
    background: #f4f7fb !important;
}

body.new-design-active #bottom-history #historySpeed {
    width: 92px !important;
    height: 34px !important;
    margin-left: 5px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #52627a !important;
    box-shadow: none !important;
}

body.new-design-active #bottom-history #hoverdata,
body.new-design-active #bottom-history #hoverdata-date {
    margin: 0 5px !important;
    color: var(--rc-map-muted) !important;
    font-size: 11px !important;
}

body.new-design-active #bottom-history .graph-1-wrap {
    height: 165px !important;
    margin: 0 !important;
    padding: 0 10px 10px !important;
    background: #fff !important;
}

body.new-design-active #bottom-history .graph-1 {
    height: 155px !important;
}

/* EcoDrive — detalhes do segmento. */
body.new-design-active .rc-ecodrive-segment-modal {
    width: min(940px, calc(100vw - 36px)) !important;
    max-width: none !important;
    margin: 18px auto !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .26) !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-header {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    padding: 0 18px !important;
    border-bottom: 1px solid #e7edf5 !important;
    background: #fff !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-title {
    color: #1f2d3d !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    font-size: 20px !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-body {
    max-height: calc(100vh - 145px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 16px 18px 8px !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-details-summary,
body.new-design-active .rc-ecodrive-segment-modal .ecodrive-details-legend {
    margin: 0 0 16px !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-details-summary h5,
body.new-design-active .rc-ecodrive-segment-modal .ecodrive-details-legend h5 {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #dfe7f1 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 18px !important;
}

body.new-design-active .rc-ecodrive-segment-modal .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -5px !important;
    margin-left: -5px !important;
}

body.new-design-active .rc-ecodrive-segment-modal .row > [class*="col-"] {
    display: flex !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card {
    display: flex !important;
    width: 100% !important;
    min-height: 76px !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    padding: 12px 13px !important;
    border: 1px solid #e0e7f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .045) !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-bottom: 7px !important;
    color: #718096 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    letter-spacing: .045em !important;
    line-height: 14px !important;
    text-transform: uppercase !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-header i {
    width: 14px !important;
    color: #64748b !important;
    text-align: center !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-value {
    color: #172033 !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 21px !important;
    overflow-wrap: anywhere !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-rag {
    align-items: flex-start !important;
    border-color: #bfe8cf !important;
    background: #ecfdf3 !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-rag .ecodrive-card-header,
body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-rag .ecodrive-card-header i {
    color: #16854d !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card-rag .ecodrive-card-value {
    width: 100% !important;
    color: #087443 !important;
    font-size: 20px !important;
    text-align: left !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-legend-item {
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    padding: 8px 10px !important;
    border: 1px solid #e0e7f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-legend-circle {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    place-items: center !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body.new-design-active .rc-ecodrive-segment-modal .ecodrive-legend-text {
    color: #52627a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-footer {
    min-height: 58px !important;
    padding: 10px 18px !important;
    border-top: 1px solid #e7edf5 !important;
    background: #fff !important;
}

body.new-design-active .rc-ecodrive-segment-modal .modal-footer .btn-default {
    min-width: 92px !important;
    height: 36px !important;
    border: 1px solid #d7e0eb !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #52627a !important;
}

/* Alertas — listagem e gerenciamento. */
body.new-design-active .rc-alerts-modal {
    width: min(920px, calc(100vw - 36px)) !important;
    max-width: none !important;
    margin: 34px auto !important;
}

body.new-design-active .rc-alerts-modal .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .26) !important;
}

body.new-design-active .rc-alerts-modal .modal-header {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    padding: 0 18px !important;
    border-bottom: 1px solid #e7edf5 !important;
    background: #fff !important;
}

body.new-design-active .rc-alerts-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1f2d3d !important;
    font-size: 16px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-alerts-modal .modal-title .icon {
    display: inline-grid !important;
    width: 20px !important;
    height: 20px !important;
    place-items: center !important;
    margin: 0 !important;
    color: var(--rc-map-primary) !important;
    font-size: 16px !important;
    line-height: 20px !important;
}

body.new-design-active .rc-alerts-modal .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

body.new-design-active .rc-alerts-modal .modal-body {
    min-height: 270px !important;
    max-height: calc(100vh - 175px) !important;
    overflow: auto !important;
    padding: 15px !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-alerts-modal #table_alerts {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

body.new-design-active .rc-alerts-modal #table_alerts > .pull-right {
    float: none !important;
    order: 2 !important;
    margin-left: auto !important;
}

body.new-design-active .rc-alerts-modal #table_alerts > .col-xs-4 {
    width: min(320px, calc(100% - 58px)) !important;
    flex: 0 1 320px !important;
    order: 1 !important;
    padding: 0 !important;
}

body.new-design-active .rc-alerts-modal #table_alerts > [data-table] {
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 3 !important;
    padding: 0 !important;
}

body.new-design-active .rc-alerts-modal .form-group.search {
    margin: 0 !important;
}

body.new-design-active .rc-alerts-modal .form-group.search .form-control {
    height: 38px !important;
    padding: 8px 14px 8px 36px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alerts-modal .nav-icons {
    margin: 0 !important;
    border: 0 !important;
}

body.new-design-active .rc-alerts-modal .nav-icons > li > a {
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--rc-map-primary) !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alerts-modal .rc-alert-action .fa {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

body.new-design-active .rc-alerts-modal .nav-icons > li > a:hover,
body.new-design-active .rc-alerts-modal .nav-icons > li > a:focus {
    border-color: #bcd1ee !important;
    background: #eef5ff !important;
    color: #1265ef !important;
}

body.new-design-active .rc-alerts-modal .table-responsive {
    min-height: 176px !important;
    overflow: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 11px !important;
    background: #fff !important;
}

body.new-design-active .rc-alerts-modal .table {
    min-width: 680px !important;
    margin: 0 !important;
    border: 0 !important;
}

body.new-design-active .rc-alerts-modal .table > thead > tr > th {
    height: 42px !important;
    padding: 10px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf2 !important;
    background: #f2f5f9 !important;
    color: #68778c !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-alerts-modal .table > tbody > tr > td {
    height: 46px !important;
    padding: 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    color: #334155 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-alerts-modal .table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active .rc-alerts-modal .alert-status-toggle.label {
    display: inline-flex !important;
    min-height: 22px !important;
    align-items: center !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-alerts-modal td.actions {
    white-space: nowrap !important;
    text-align: right !important;
}

body.new-design-active .rc-alerts-modal td.actions .btn {
    display: inline-grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin-left: 4px !important;
    padding: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--rc-map-primary) !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alerts-modal td.actions .btn:hover {
    border-color: #bcd1ee !important;
    background: #eef5ff !important;
    color: #1265ef !important;
}

body.new-design-active .rc-alerts-modal td.actions .rc-alert-action-delete {
    border-color: #f6d1d5 !important;
    color: #ef3340 !important;
}

body.new-design-active .rc-alerts-modal td.actions .rc-alert-action-delete:hover,
body.new-design-active .rc-alerts-modal td.actions .rc-alert-action-delete:focus {
    border-color: #f2aeb5 !important;
    background: #fff1f2 !important;
    color: #d92332 !important;
}

body.new-design-active .rc-alerts-modal .nav-pagination {
    min-height: 34px !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.new-design-active .rc-alerts-modal .modal-footer {
    min-height: 58px !important;
    padding: 10px 15px !important;
    border-top: 1px solid #e7edf5 !important;
    background: #fff !important;
}

body.new-design-active .rc-alerts-modal .modal-footer .btn-default {
    min-width: 92px !important;
    height: 36px !important;
    border: 1px solid #d7e0eb !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #52627a !important;
}

/* Alertas — criação e edição. */
body.new-design-active .rc-alert-form-modal {
    width: min(780px, calc(100vw - 32px)) !important;
    max-width: none !important;
    margin: 24px auto !important;
}

body.new-design-active .rc-alert-form-modal .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .28) !important;
}

body.new-design-active .rc-alert-form-modal .modal-header {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    padding: 0 18px !important;
    border-bottom: 1px solid #e7edf5 !important;
    background: #fff !important;
}

body.new-design-active .rc-alert-form-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1f2d3d !important;
    font-size: 16px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-alert-form-modal .modal-title .icon {
    width: 20px !important;
    margin: 0 !important;
    color: var(--rc-map-primary) !important;
    font-size: 16px !important;
}

body.new-design-active .rc-alert-form-modal .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

body.new-design-active .rc-alert-form-modal .modal-body {
    max-height: calc(100vh - 145px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default {
    display: flex !important;
    min-height: 58px !important;
    align-items: flex-end !important;
    gap: 22px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 10px 22px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default::-webkit-scrollbar {
    display: none !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li {
    float: none !important;
    margin: 0 !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li > a {
    display: inline-flex !important;
    min-height: 47px !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 10px 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 16px !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li.active > a,
body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li.active > a:hover,
body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #17233a !important;
}

body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li:not(.active) > a:hover,
body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default > li:not(.active) > a:focus {
    border-bottom-color: #bfd4ff !important;
    background: transparent !important;
    color: #1265ef !important;
}

body.new-design-active .rc-alert-form-modal .alert-form > .tab-content {
    min-height: 350px !important;
    padding: 20px 24px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-alert-form-modal .form-group {
    margin-bottom: 13px !important;
}

body.new-design-active .rc-alert-form-modal .form-group > label,
body.new-design-active .rc-alert-form-modal .control-label {
    margin-bottom: 6px !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-alert-form-modal .form-control,
body.new-design-active .rc-alert-form-modal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #485a75 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alert-form-modal .bootstrap-select,
body.new-design-active .rc-alert-form-modal .multiexpand-container {
    width: 100% !important;
}

body.new-design-active .rc-alert-form-modal .dropdown-menu {
    border: 1px solid #dce4ee !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer {
    min-height: 66px !important;
    padding: 11px 18px !important;
    border-top: 1px solid #e7edf5 !important;
    background: #fbfcfe !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer .btn {
    min-width: 92px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer .btn-action {
    order: 1 !important;
    border-color: var(--rc-map-primary) !important;
    background: var(--rc-map-primary) !important;
    color: #fff !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer .btn-default {
    order: 2 !important;
    border-color: #d7e0eb !important;
    background: #fff !important;
    color: #52627a !important;
}

body.new-design-active .rc-alert-form-modal .modal-footer .btn-danger {
    order: 3 !important;
    border-color: #ef4444 !important;
    background: #ef4444 !important;
    color: #fff !important;
}

body.new-design-active .rc-alert-form-modal .alert-form {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active .rc-alert-form-modal .form-control:focus,
body.new-design-active .rc-alert-form-modal .bootstrap-select.open > .dropdown-toggle,
body.new-design-active .rc-alert-form-modal .bootstrap-select > .dropdown-toggle:focus {
    border-color: #8bb5ff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active .rc-alert-form-modal small {
    display: block !important;
    margin-top: 6px !important;
    color: #74839a !important;
    font-size: 10px !important;
    line-height: 16px !important;
}

body.new-design-active .rc-alert-form-modal .checkbox,
body.new-design-active .rc-alert-form-modal .checkbox-inline {
    position: relative !important;
    display: inline-flex !important;
    min-height: 22px !important;
    align-items: center !important;
    margin: 0 20px 0 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > input[type="checkbox"],
body.new-design-active .rc-alert-form-modal .checkbox-inline > input[type="checkbox"] {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > label,
body.new-design-active .rc-alert-form-modal .checkbox-inline > label {
    position: relative !important;
    display: inline-flex !important;
    min-height: 22px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 0 0 24px !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > label::before,
body.new-design-active .rc-alert-form-modal .checkbox-inline > label::before {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important;
    border-radius: 4px !important;
    background: #fff !important;
    content: "" !important;
    box-sizing: border-box !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > label::after,
body.new-design-active .rc-alert-form-modal .checkbox-inline > label::after {
    position: absolute !important;
    top: 50% !important;
    left: 6px !important;
    width: 5px !important;
    height: 9px !important;
    margin-top: -6px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    content: "" !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > input[type="checkbox"]:checked + label::before,
body.new-design-active .rc-alert-form-modal .checkbox-inline > input[type="checkbox"]:checked + label::before {
    border-color: #1265ef !important;
    background: #1265ef !important;
}

body.new-design-active .rc-alert-form-modal .checkbox > input[type="checkbox"]:checked + label::after,
body.new-design-active .rc-alert-form-modal .checkbox-inline > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-row {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-row:first-child {
    padding-top: 0 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-row:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-toggle,
body.new-design-active .rc-alert-form-modal .rc-alert-notification-content {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-toggle .checkbox {
    width: 18px !important;
    margin: 1px 0 0 !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-notification-content > label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #25344d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-alert-form-modal .bootstrap-select.form-control.multiexpand {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: 236px !important;
    min-height: 236px !important;
    flex-direction: column !important;
    padding: 8px !important;
    overflow: hidden !important;
    border: 1px solid #d4deeb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand > .dropdown-toggle {
    display: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand > .dropdown-menu {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    grid-template-columns: minmax(160px, 1fr) minmax(300px, auto) !important;
    grid-template-rows: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-searchbox,
body.new-design-active .rc-alert-form-modal .multiexpand .bs-actionsbox {
    width: auto !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-searchbox {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-actionsbox {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-searchbox .form-control {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-actionsbox .btn-group {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    gap: 4px !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .bs-actionsbox .btn {
    display: inline-flex !important;
    min-width: 0 !important;
    height: 40px !important;
    flex: 1 1 50% !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f2f4f7 !important;
    color: #586579 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header,
body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.divider {
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header {
    display: flex !important;
    min-height: 30px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 4px 4px 3px !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #f5f7fa !important;
    color: #617087 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
    width: 33.333% !important;
    min-height: 34px !important;
    float: left !important;
    padding: 1px 4px !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a {
    display: flex !important;
    width: 100% !important;
    min-height: 32px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #344054 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li > a > .check-mark {
    display: none !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li > a .text {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 20px !important;
    padding-left: 21px !important;
    overflow: hidden !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li > a .text::before {
    position: absolute !important;
    top: 50% !important;
    left: 1px !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #cfd7e2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li > a .text::after {
    position: absolute !important;
    top: 50% !important;
    left: 6px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    box-sizing: border-box !important;
    content: "" !important;
    opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.selected:not(.dropdown-header) > a .text::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.selected:not(.dropdown-header) > a .text::after {
    opacity: 1 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline,
body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"],
body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label,
body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::before {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline {
    flex: 0 0 14px !important;
    margin: 0 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label {
    min-height: 14px !important;
    padding: 0 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::after {
    top: 2px !important;
    left: 5px !important;
    width: 4px !important;
    height: 8px !important;
    margin: 0 !important;
    border-width: 0 1.5px 1.5px 0 !important;
}

body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}

body.new-design-active .rc-alert-form-modal .table-responsive {
    width: 100% !important;
    margin: 0 !important;
    overflow: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

body.new-design-active .rc-alert-form-modal .table-responsive > .table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.new-design-active .rc-alert-form-modal .table-responsive > .table > thead > tr > th {
    min-height: 40px !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f2f5f9 !important;
    color: #65758b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-alert-form-modal .table-responsive > .table > tbody > tr > td,
body.new-design-active .rc-alert-form-modal .table-responsive > .table > tbody > tr > th {
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
    color: #344054 !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-schedule-table {
    min-width: 720px !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-schedule-table > tbody > tr > td.item {
    width: 24px !important;
    min-width: 24px !important;
    height: 28px !important;
    padding: 0 !important;
    border-right: 1px solid #edf1f6 !important;
    cursor: pointer !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-schedule-table > tfoot > tr > th {
    padding: 10px !important;
    border: 0 !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-alert-form-modal .rc-alert-schedule-table .btn {
    min-height: 30px !important;
    margin: 0 2px !important;
    border-radius: 7px !important;
}

body.new-design-active .rc-alert-form-modal hr {
    margin: 16px 0 !important;
    border-color: #e7edf5 !important;
}

@media (max-width: 680px) {
    body.new-design-active .rc-alert-form-modal .multiexpand > .dropdown-menu {
        grid-template-columns: 1fr !important;
        grid-template-rows: 40px 40px minmax(0, 1fr) !important;
    }

    body.new-design-active .rc-alert-form-modal .multiexpand .bs-searchbox {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.new-design-active .rc-alert-form-modal .multiexpand .bs-actionsbox {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner {
        top: 88px !important;
    }

    body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
        width: 50% !important;
    }
}

@media (max-width: 420px) {
    body.new-design-active .rc-alert-form-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
        width: 100% !important;
    }
}

/* Confirmação destrutiva de exclusão de alerta. */
body.new-design-active .rc-confirm-modal {
    width: min(520px, calc(100vw - 28px)) !important;
    max-width: none !important;
    margin: max(72px, 12vh) auto !important;
}

body.new-design-active .rc-confirm-modal .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .30) !important;
}

body.new-design-active .rc-confirm-modal .modal-header {
    display: flex !important;
    min-height: 60px !important;
    align-items: center !important;
    padding: 0 18px !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
}

body.new-design-active .rc-confirm-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #172033 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-confirm-modal .modal-title i {
    color: #ef4444 !important;
    font-size: 17px !important;
}

body.new-design-active .rc-confirm-modal .modal-header .close {
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f4f6f9 !important;
    color: #64748b !important;
    opacity: 1 !important;
}

body.new-design-active .rc-confirm-modal .modal-body {
    padding: 20px 22px !important;
    background: #fff !important;
}

body.new-design-active .rc-confirm-modal .rc-confirm-message {
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 21px !important;
}

body.new-design-active .rc-confirm-modal .modal-footer {
    min-height: 66px !important;
    padding: 12px 18px !important;
    border-top: 1px solid #edf1f6 !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-confirm-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.new-design-active .rc-confirm-modal .modal-footer .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 94px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

body.new-design-active .rc-device-delete-modal .rc-device-delete-password {
    margin: 18px 0 0 !important;
}

body.new-design-active .rc-device-delete-modal .rc-device-delete-password > label {
    display: block !important;
    margin-bottom: 7px !important;
    color: #1e2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-device-delete-modal .rc-device-delete-password > .form-control {
    height: 40px !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.new-design-active .rc-confirm-modal .modal-footer .btn-default {
    border-color: #d7e0eb !important;
    background: #fff !important;
    color: #52627a !important;
}

body.new-design-active .rc-confirm-modal .modal-footer .btn-danger {
    border-color: #ef4444 !important;
    background: #ef4444 !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    body.new-design-active .rc-alert-form-modal {
        width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    body.new-design-active .rc-alert-form-modal .modal-body {
        max-height: calc(100dvh - 132px) !important;
        padding: 0 !important;
    }

    body.new-design-active .rc-alert-form-modal .nav-tabs.nav-default {
        min-height: 54px !important;
        gap: 18px !important;
        padding: 7px 14px 0 !important;
    }

    body.new-design-active .rc-alert-form-modal .alert-form > .tab-content {
        min-height: 280px !important;
        padding: 16px 14px 20px !important;
    }

    body.new-design-active .rc-alert-form-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }

    body.new-design-active .rc-confirm-modal {
        width: calc(100vw - 20px) !important;
        margin: 18vh auto 0 !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active .rc-alerts-modal {
        width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    body.new-design-active .rc-alerts-modal .modal-body {
        min-height: 0 !important;
        max-height: calc(100dvh - 126px) !important;
        padding: 10px !important;
    }

    body.new-design-active .rc-alerts-modal #table_alerts > .col-xs-4 {
        width: calc(100% - 48px) !important;
        flex-basis: calc(100% - 48px) !important;
    }

    body.new-design-active .rc-alerts-modal .table-responsive {
        min-height: 230px !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active .rc-ecodrive-segment-modal {
        width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    body.new-design-active .rc-ecodrive-segment-modal .modal-body {
        max-height: calc(100dvh - 126px) !important;
        padding: 12px 11px 4px !important;
    }

    body.new-design-active .rc-ecodrive-segment-modal .row > [class*="col-"] {
        width: 100% !important;
    }

    body.new-design-active .rc-ecodrive-segment-modal .ecodrive-card {
        min-height: 68px !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active #bottom-history {
        border-radius: 12px 12px 0 0 !important;
    }

    body.new-design-active #bottom-history .bottom-history-header {
        min-height: 0 !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
        padding: 8px !important;
    }

    body.new-design-active #bottom-history #graph_sensors {
        flex-basis: 100% !important;
        order: 2 !important;
    }

    body.new-design-active #bottom-history .bottom-history-header > .nav-tabs.pull-right {
        width: 100% !important;
        justify-content: flex-end !important;
        order: 1 !important;
    }

    body.new-design-active #bottom-history .graph-controls {
        flex-wrap: wrap !important;
        padding: 7px 8px 3px !important;
    }

    body.new-design-active #bottom-history .graph-controls .nav-pills.pull-right {
        margin-left: auto !important;
    }

    body.new-design-active #bottom-history .graph-1-wrap {
        height: 145px !important;
        padding: 0 4px 6px !important;
    }

    body.new-design-active #bottom-history .graph-1 {
        height: 139px !important;
    }
}

@media (max-width: 767px) {
    body.new-design-active #widgets .widgets-content {
        height: 160px !important;
        min-height: 160px !important;
        gap: 6px !important;
        padding: 6px !important;
        scroll-snap-type: x proximity !important;
    }

    body.new-design-active #widgets .widget {
        min-width: min(292px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
        height: 148px !important;
        flex-basis: min(292px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
        border-radius: 10px !important;
        scroll-snap-align: start !important;
    }

    body.new-design-active #widgets .widget-sensors {
        min-width: min(360px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
        flex-basis: min(360px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
    }

    body.new-design-active #widgets .widget-vehicle-details {
        min-width: min(310px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
        flex-basis: min(310px, calc(100vw - var(--sidebar-content-left, 0px) - 18px)) !important;
    }

    body.new-design-active #widgets .widget-heading {
        min-height: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
        padding: 0 9px !important;
    }

    body.new-design-active #widgets .widget-title {
        font-size: 12px !important;
        line-height: 33px !important;
    }

    body.new-design-active #widgets .widget-body {
        height: 114px !important;
        padding: 6px 9px !important;
    }
}
/* Standard device create/edit modal header and navigation */
body.new-design-active .rc-device-form-dialog > .modal-content > .modal-header {
    min-height: 42px;
    padding: 11px 16px;
    border-bottom: 1px solid #dce4ee;
    background: #f8fafc;
}
body.new-design-active .rc-device-form-dialog .modal-title {
    display: flex; align-items: center; gap: 7px;
    margin: 0; color: #172033; font-size: 14px; font-weight: 700;
}
body.new-design-active .rc-device-form-dialog .modal-header .close {
    top: 8px; right: 12px; color: #718198; opacity: 1;
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 3px;
    width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden;
    white-space: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    margin: 0; padding: 9px 12px; border-bottom: 1px solid #dce4ee;
    background: #fff;
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li { flex: 0 0 auto; margin: 0; }
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline::-webkit-scrollbar { height: 5px; }
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
body.new-design-active .rc-device-form-dialog .rc-device-form-tabs {
    padding-top: 14px !important;
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li > a {
    display: flex; align-items: center; gap: 6px;
    min-height: 36px; margin: 0; padding: 8px 11px;
    border: 0 !important; border-radius: 7px;
    color: #607089; background: transparent; font-size: 13px;
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a,
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a:hover,
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a:focus {
    color: #fff !important; background: #151922 !important;
}
@media (max-width: 767px) {
    body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
    }
    body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li { flex: 0 0 auto; }
}
/* Device forms — complete unified modal design */
body.new-design-active .rc-device-form-dialog { width: min(760px, calc(100vw - 28px)) !important; }
body.new-design-active .rc-device-form-dialog > .modal-content { overflow: hidden; border: 1px solid #d9e2ee; border-radius: 15px !important; box-shadow: 0 18px 45px rgba(15, 23, 42, .22) !important; }
body.new-design-active .rc-device-form-dialog > .modal-content > .modal-header { min-height: 76px; padding: 18px 22px !important; background: #fff; }
body.new-design-active .rc-device-form-dialog .modal-title { gap: 12px; font-size: 18px; color: #17233a; }
body.new-design-active .rc-device-form-dialog .modal-title > .fa { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 42px; border-radius: 11px; color: #1265ef; background: #edf4ff; font-size: 16px; }
body.new-design-active .rc-device-form-dialog .modal-header .close { top: 22px !important; right: 20px !important; font-size: 23px; }
body.new-design-active .rc-device-form-dialog > .modal-content > .modal-body { padding: 0 !important; background: #fff; }
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline { min-height: 64px !important; padding: 17px 24px 0 !important; gap: 22px !important; border-bottom: 1px solid #dce4ee; }
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li > a { min-height: 46px; padding: 10px 0 12px !important; border-radius: 0 !important; border-bottom: 2px solid transparent !important; color: #66758f; font-size: 12px; font-weight: 600; }
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a,
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a:hover,
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline > li.active > a:focus { color: #17233a !important; background: transparent !important; border-bottom-color: #1265ef !important; }
body.new-design-active .rc-device-form-dialog .rc-device-form-tabs { padding: 20px 24px 24px !important; }
body.new-design-active .rc-device-form-dialog .form-group { margin-bottom: 17px; }
body.new-design-active .rc-device-form-dialog .form-group > label { margin-bottom: 7px; color: #1e2b43; font-size: 12px; font-weight: 700; }
body.new-design-active .rc-device-form-dialog .form-control,
body.new-design-active .rc-device-form-dialog .bootstrap-select > .btn { min-height: 42px; border: 1px solid #d4deeb !important; border-radius: 8px !important; background: #fff; color: #485a75; box-shadow: none !important; }
body.new-design-active .rc-device-form-dialog textarea.form-control { min-height: 92px; }
body.new-design-active .rc-device-form-dialog input[type="checkbox"] + label::before { border-radius: 5px !important; border-color: #c9d6e6 !important; }
body.new-design-active .rc-device-form-dialog input[type="checkbox"]:checked + label::before { border-color: #1265ef !important; background: #1265ef !important; }
body.new-design-active .rc-device-form-dialog > .modal-content > .modal-footer { min-height: 66px; padding: 11px 18px !important; border-top: 1px solid #dce4ee; background: #fbfcfe; }
body.new-design-active .rc-device-form-dialog .modal-footer .buttons { display: flex; flex-direction: row-reverse; gap: 10px; }
body.new-design-active .rc-device-form-dialog .modal-footer .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 108px;
    min-height: 42px;
    border-radius: 8px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    text-align: center !important;
}
body.new-design-active .rc-device-form-dialog .modal-footer .btn-action { border-color: #2699df !important; background: #2699df !important; color: #fff !important; }
@media (max-width: 767px) {
  body.new-design-active .rc-device-form-dialog { width: calc(100vw - 12px) !important; margin: 6px auto !important; }
  body.new-design-active .rc-device-form-dialog > .modal-content > .modal-header { min-height: 66px; padding: 12px 16px !important; }
  body.new-design-active .rc-device-form-dialog .modal-title { font-size: 16px; }
  body.new-design-active .rc-device-form-dialog .modal-title > .fa { width: 38px; height: 38px; flex-basis: 38px; }
  body.new-design-active .rc-device-form-dialog .modal-header .close { top: 17px !important; right: 14px !important; }
  body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline { padding-right: 16px !important; padding-left: 16px !important; gap: 18px !important; }
  body.new-design-active .rc-device-form-dialog .rc-device-form-tabs { padding: 16px !important; }
  body.new-design-active .rc-device-form-dialog .modal-footer .buttons { width: 100%; }
  body.new-design-active .rc-device-form-dialog .modal-footer .btn { min-width: 0; flex: 1 1 50%; }
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
body.new-design-active .rc-device-form-dialog .modal-body > .rc-tabs-underline::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
/* Device forms — standard checkbox */
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn),
body.new-design-active .rc-device-form-dialog .checkbox-inline {
    position: relative !important; display: flex !important; min-height: 24px !important;
    align-items: center !important; margin: 0 !important; padding: 0 !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > input[type="checkbox"],
body.new-design-active .rc-device-form-dialog .checkbox-inline > input[type="checkbox"] {
    position: absolute !important; top: 50% !important; left: 0 !important; z-index: 2 !important;
    width: 18px !important; height: 18px !important; margin: 0 !important;
    opacity: 0 !important; cursor: pointer !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label {
    position: relative !important; display: flex !important; min-height: 24px !important;
    align-items: center !important; margin: 0 !important; padding: 0 0 0 30px !important;
    color: #344054 !important; cursor: pointer !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label::before,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label::before {
    position: absolute !important; top: 50% !important; left: 0 !important;
    width: 18px !important; height: 18px !important; margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important; border-radius: 5px !important;
    background: #fff !important; box-shadow: 0 1px 2px rgba(16,33,61,.05) !important;
    content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label::after,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label::after {
    position: absolute !important; top: 50% !important; left: 6px !important;
    width: 6px !important; height: 10px !important; margin: -6px 0 0 !important;
    border: solid #fff !important; border-width: 0 2px 2px 0 !important;
    padding: 0 !important; content: "" !important; opacity: 0 !important;
    transform: rotate(45deg) !important;
}
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #1265ef !important; background: #1265ef !important;
    box-shadow: 0 2px 5px rgba(18,101,239,.22) !important;
}
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:checked + label::after { opacity: 1 !important; }
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:focus + label::before {
    border-color: #1265ef !important; box-shadow: 0 0 0 3px rgba(18,101,239,.16) !important;
}
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:disabled + label { color: #98a2b3 !important; cursor: not-allowed !important; }
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:disabled + label::before { border-color: #d9e1eb !important; background: #f0f3f7 !important; box-shadow: none !important; }
/* Device list — redesigned action menu */
body.new-design-active .rc-device-options-menu {
    width: 286px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(520px, calc(100vh - 24px)) !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .18) !important;
    scrollbar-width: none !important;
}
body.new-design-active .rc-device-options-menu::-webkit-scrollbar { display: none !important; }
body.new-design-active .rc-device-options-menu > .rc-device-options-header {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 10px !important;
    margin: -2px -2px 7px !important;
    padding: 9px 10px !important;
    border-radius: 10px !important;
    background: #f5f8fc !important;
}
body.new-design-active .rc-device-options-header-icon {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    border-radius: 9px !important;
    color: #1265ef !important;
    background: #e8f1ff !important;
}
body.new-design-active .rc-device-options-header-copy {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 2px !important;
}
body.new-design-active .rc-device-options-header-copy strong {
    overflow: hidden !important;
    color: #17233a !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-device-options-header-copy small {
    color: #8492a8 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}
body.new-design-active .rc-device-options-menu > li:not(.rc-device-options-header):not(.divider) {
    margin: 2px 0 !important;
}
body.new-design-active .rc-device-options-menu > li:not(.rc-device-options-header):not(.divider) > a {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    color: #435168 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: background .15s ease, color .15s ease, transform .15s ease !important;
}
body.new-design-active .rc-device-options-menu > li:not(.rc-device-options-header):not(.divider) > a:hover,
body.new-design-active .rc-device-options-menu > li:not(.rc-device-options-header):not(.divider) > a:focus {
    color: #1265ef !important;
    background: #edf4ff !important;
    transform: translateX(2px) !important;
}
body.new-design-active .rc-device-options-menu > li > a > .icon {
    position: static !important;
    display: inline-flex !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 8px !important;
    color: #5f7089 !important;
    background-color: #f2f5f9 !important;
    font-size: 14px !important;
}
body.new-design-active .rc-device-options-menu > li > a:hover > .icon,
body.new-design-active .rc-device-options-menu > li > a:focus > .icon {
    color: #1265ef !important;
    background-color: #dfeaff !important;
}
body.new-design-active .rc-device-options-menu > li > a > .text {
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-device-options-menu > .rc-device-options-divider {
    height: 1px !important;
    margin: 7px 4px !important;
    overflow: hidden !important;
    border: 0 !important;
    background: #e5ebf3 !important;
}
@media (max-width: 480px) {
    body.new-design-active .rc-device-options-menu { width: min(276px, calc(100vw - 16px)) !important; }
}

/* Geofence actions — use the same rhythm and controls as device actions. */
body.new-design-active .rc-geofence-options-menu > li {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

body.new-design-active .rc-geofence-options-menu > li > .confirmed-delete-form-btn {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-geofence-options-menu > li > a > .icon > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Devices inside a geofence — standardized lookup modal and table. */
body.new-design-active .modal:has(.rc-geofence-devices-modal) {
    z-index: 12120 !important;
}

body.new-design-active:has(.modal.in .rc-geofence-devices-modal) > .modal-backdrop:last-of-type {
    z-index: 12110 !important;
}

body.new-design-active .rc-geofence-devices-modal {
    width: min(1040px, calc(100vw - 32px)) !important;
    max-width: none !important;
    margin: 24px auto !important;
}

body.new-design-active .rc-geofence-devices-modal > .modal-content {
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .25) !important;
}

body.new-design-active .rc-geofence-devices-modal > .modal-content > .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 68px !important;
    align-items: center !important;
    padding: 13px 54px 13px 20px !important;
    border-bottom: 1px solid #e4eaf2 !important;
    background: #fff !important;
}

body.new-design-active .rc-geofence-devices-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
}

body.new-design-active .rc-geofence-devices-modal .modal-title > i {
    position: static !important;
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    color: #1265ef !important;
    background: #edf4ff !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

body.new-design-active .rc-geofence-devices-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #637188 !important;
    background: #f4f7fb !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-geofence-devices-modal > .modal-content > .modal-body {
    min-height: 330px !important;
    max-height: calc(100vh - 116px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 18px 20px 22px !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-geofence-devices-modal [id$="Container"] {
    width: 100% !important;
    overflow-x: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper {
    color: #64748b !important;
    font-size: 11px !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper > .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper > .row:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 18px !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper > .top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 18px !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper > .table-responsive {
    min-height: 176px !important;
    margin: 0 !important;
    overflow: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 11px !important;
    background: #fff !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_filter {
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_filter label {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    color: #52627a !important;
    font-size: 0 !important;
    font-weight: 600 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_filter label::before {
    position: absolute !important;
    z-index: 1 !important;
    top: 50% !important;
    left: 12px !important;
    color: #7b8798 !important;
    content: "\f002" !important;
    font-family: FontAwesome !important;
    font-size: 12px !important;
    font-weight: normal !important;
    line-height: 1 !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_filter input {
    width: min(320px, calc(100vw - 72px)) !important;
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 10px !important;
    color: #344054 !important;
    background: #fff !important;
    padding: 8px 14px 8px 36px !important;
    box-shadow: none !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable {
    width: 100% !important;
    min-width: 760px !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable > thead > tr > th {
    height: 42px !important;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf2 !important;
    color: #68778c !important;
    background: #f2f5f9 !important;
    padding: 10px 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable > tbody > tr > td {
    height: 46px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    color: #334155 !important;
    background: #fff !important;
    padding: 9px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable > tbody > tr:hover > td {
    background: #f7f9fc !important;
}

body.new-design-active .rc-geofence-devices-modal table.dataTable .btn-group > .btn {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    color: #1265ef !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_length {
    display: none !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_info {
    display: none !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_wrapper > .bottom {
    border-top: 0 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_paginate {
    display: flex !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_paginate .pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_paginate .pagination > li > a,
body.new-design-active .rc-geofence-devices-modal .dataTables_paginate .pagination > li > span {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 9px !important;
    color: #53637a !important;
    background: #fff !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

body.new-design-active .rc-geofence-devices-modal .dataTables_paginate .pagination > .active > a,
body.new-design-active .rc-geofence-devices-modal .dataTables_paginate .pagination > .active > span {
    border-color: #2563eb !important;
    color: #fff !important;
    background: #2563eb !important;
}

body.new-design-active .rc-geofence-devices-modal > .modal-content > .modal-footer {
    display: none !important;
}

@media (max-width: 700px) {
    body.new-design-active .rc-geofence-devices-modal {
        width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    body.new-design-active .rc-geofence-devices-modal > .modal-content > .modal-body {
        min-height: 260px !important;
        max-height: calc(100dvh - 84px) !important;
        padding: 14px !important;
    }
}
/* Sharing modal — unified visual standard */
body.new-design-active .rc-sharing-modal { width: min(880px, calc(100vw - 28px)) !important; }
body.new-design-active .rc-sharing-modal > .modal-content {
    overflow: hidden !important; border: 1px solid #d9e2ee !important; border-radius: 15px !important;
    background: #fff !important; box-shadow: 0 18px 45px rgba(15,23,42,.22) !important;
}
body.new-design-active .rc-sharing-modal > .modal-content > .modal-header {
    min-height: 76px !important; padding: 18px 22px !important; border-bottom: 1px solid #dce4ee !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .modal-title {
    display: flex !important; align-items: center !important; gap: 12px !important;
    margin: 0 !important; color: #17233a !important; font-size: 18px !important; font-weight: 700 !important;
}
body.new-design-active .rc-sharing-modal .modal-title > .fa {
    display: inline-flex !important; width: 42px !important; height: 42px !important;
    align-items: center !important; justify-content: center !important; flex: 0 0 42px !important;
    border-radius: 11px !important; color: #1265ef !important; background: #edf4ff !important; font-size: 16px !important;
}
body.new-design-active .rc-sharing-modal .modal-header .close {
    top: 22px !important; right: 20px !important; color: #718198 !important; font-size: 23px !important; opacity: 1 !important;
}
body.new-design-active .rc-sharing-modal > .modal-content > .modal-body {
    max-height: calc(100vh - 190px) !important; padding: 0 !important; overflow-x: hidden !important; overflow-y: auto !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-tabs {
    display: flex !important; min-height: 64px !important; align-items: flex-end !important; gap: 24px !important;
    margin: 0 !important; padding: 17px 24px 0 !important; border-bottom: 1px solid #dce4ee !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-tabs > li { margin: 0 !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-tabs > li > a {
    display: flex !important; min-height: 46px !important; align-items: center !important; gap: 6px !important;
    margin: 0 !important; padding: 10px 0 12px !important; border: 0 !important;
    border-bottom: 2px solid transparent !important; border-radius: 0 !important;
    color: #66758f !important; background: transparent !important; font-size: 12px !important; font-weight: 600 !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-tabs > li.active > a,
body.new-design-active .rc-sharing-modal .rc-sharing-tabs > li.active > a:hover,
body.new-design-active .rc-sharing-modal .rc-sharing-tabs > li.active > a:focus {
    color: #17233a !important; background: transparent !important; border-bottom-color: #1265ef !important;
}
body.new-design-active .rc-sharing-modal .modal-body > .tab-content { padding: 20px 24px 26px !important; }
body.new-design-active .rc-sharing-modal .form-group { margin-bottom: 17px !important; }
body.new-design-active .rc-sharing-modal .form-group > label {
    display: block !important; margin-bottom: 7px !important; color: #1e2b43 !important; font-size: 12px !important; font-weight: 700 !important;
}
body.new-design-active .rc-sharing-modal .form-control,
body.new-design-active .rc-sharing-modal .bootstrap-select > .btn {
    min-height: 42px !important; border: 1px solid #d4deeb !important; border-radius: 8px !important;
    background: #fff !important; color: #485a75 !important; box-shadow: none !important;
}
body.new-design-active .rc-sharing-modal .radio-inline {
    position: relative !important; display: inline-flex !important; min-height: 28px !important;
    align-items: center !important; margin: 0 22px 0 0 !important; padding: 0 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"] {
    position: absolute !important; left: 0 !important; width: 18px !important; height: 18px !important; margin: 0 !important; opacity: 0 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label {
    position: relative !important; margin: 0 !important; padding-left: 27px !important; color: #344054 !important; cursor: pointer !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::before {
    position: absolute !important; top: 50% !important; left: 0 !important; width: 18px !important; height: 18px !important;
    border: 1.5px solid #c8d3e1 !important; border-radius: 50% !important; background: #fff !important;
    content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::before {
    border: 5px solid #1265ef !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) {
    position: relative !important; display: flex !important; min-height: 24px !important; align-items: center !important; margin: 0 !important; padding: 0 !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > input[type="checkbox"] {
    position: absolute !important; left: 0 !important; z-index: 2 !important; width: 18px !important; height: 18px !important; margin: 0 !important; opacity: 0 !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label {
    position: relative !important; display: flex !important; min-height: 24px !important; align-items: center !important;
    margin: 0 !important; padding-left: 30px !important; color: #344054 !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label::before {
    position: absolute !important; top: 50% !important; left: 0 !important; width: 18px !important; height: 18px !important;
    margin: 0 !important; border: 1.5px solid #c8d3e1 !important; border-radius: 5px !important;
    background: #fff !important; content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label::after {
    position: absolute !important; top: 50% !important; left: 6px !important; width: 6px !important; height: 10px !important;
    margin-top: -6px !important; border: solid #fff !important; border-width: 0 2px 2px 0 !important;
    content: "" !important; opacity: 0 !important; transform: rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .checkbox > input[type="checkbox"]:checked + label::before { border-color: #1265ef !important; background: #1265ef !important; }
body.new-design-active .rc-sharing-modal .checkbox > input[type="checkbox"]:checked + label::after { opacity: 1 !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox { width: 44px !important; min-width: 44px !important; border: 1px solid #d4deeb !important; border-right: 0 !important; border-radius: 8px 0 0 8px !important; background: #f8fafc !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label { display: block !important; width: 43px !important; height: 40px !important; margin: 0 !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::before { left: 12px !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::after { left: 18px !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox + .form-control { border-radius: 0 8px 8px 0 !important; }
body.new-design-active .rc-sharing-modal .multiexpand { min-height: 190px !important; border-radius: 10px !important; }
body.new-design-active .rc-sharing-modal small { display: block !important; margin-top: 6px !important; color: #74839a !important; font-size: 10px !important; }
body.new-design-active .rc-sharing-modal > .modal-content > .modal-footer {
    min-height: 66px !important; padding: 11px 18px !important; border-top: 1px solid #dce4ee !important; background: #fbfcfe !important;
}
body.new-design-active .rc-sharing-modal .modal-footer .buttons { display: flex !important; flex-direction: row-reverse !important; gap: 10px !important; }
body.new-design-active .rc-sharing-modal .modal-footer .btn { min-width: 108px !important; min-height: 42px !important; border-radius: 8px !important; font-weight: 700 !important; }
body.new-design-active .rc-sharing-modal .modal-footer .btn-action { border-color: #2699df !important; background: #2699df !important; color: #fff !important; }
@media (max-width: 767px) {
    body.new-design-active .rc-sharing-modal { width: calc(100vw - 12px) !important; margin: 6px auto !important; }
    body.new-design-active .rc-sharing-modal > .modal-content > .modal-header { min-height: 66px !important; padding: 12px 16px !important; }
    body.new-design-active .rc-sharing-modal .modal-title { font-size: 16px !important; }
    body.new-design-active .rc-sharing-modal .modal-title > .fa { width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
    body.new-design-active .rc-sharing-modal .modal-header .close { top: 17px !important; right: 14px !important; }
    body.new-design-active .rc-sharing-modal .rc-sharing-tabs { padding-right: 16px !important; padding-left: 16px !important; }
    body.new-design-active .rc-sharing-modal .modal-body > .tab-content { padding: 16px !important; }
    body.new-design-active .rc-sharing-modal .radio-inline { margin-right: 12px !important; }
    body.new-design-active .rc-sharing-modal .modal-footer .buttons { width: 100% !important; }
    body.new-design-active .rc-sharing-modal .modal-footer .btn { min-width: 0 !important; flex: 1 1 50% !important; }
}
/* Sharing modal — selector and delivery field corrections */
body.new-design-active .rc-sharing-modal .bootstrap-select.form-control.multiexpand {
    position: relative !important; display: flex !important; width: 100% !important;
    height: 240px !important; min-height: 240px !important; flex-direction: column !important;
    padding: 8px !important; overflow: hidden !important;
    border: 1px solid #d4deeb !important; border-radius: 10px !important;
    background: #fff !important; box-shadow: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand > .dropdown-toggle { display: none !important; }
body.new-design-active .rc-sharing-modal .multiexpand > .dropdown-menu {
    position: relative !important; inset: auto !important; display: grid !important;
    width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: none !important;
    grid-template-columns: minmax(160px, 1fr) minmax(300px, auto) !important;
    grid-template-rows: 42px minmax(0, 1fr) !important; gap: 8px !important;
    float: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .bs-searchbox,
body.new-design-active .rc-sharing-modal .multiexpand .bs-actionsbox {
    width: auto !important; min-height: 42px !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .bs-searchbox { grid-column: 1 !important; grid-row: 1 !important; }
body.new-design-active .rc-sharing-modal .multiexpand .bs-actionsbox { grid-column: 2 !important; grid-row: 1 !important; }
body.new-design-active .rc-sharing-modal .multiexpand .bs-actionsbox .btn-group {
    display: flex !important; width: 100% !important; height: 42px !important; gap: 4px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .bs-searchbox .form-control {
    width: 100% !important; height: 42px !important; min-height: 42px !important;
    border: 1px solid #d4deeb !important; border-radius: 8px !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .bs-actionsbox .btn {
    display: inline-flex !important; min-width: 0 !important; height: 42px !important; min-height: 42px !important;
    flex: 1 1 50% !important; align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-radius: 8px !important;
    background: #f2f4f7 !important; color: #586579 !important; box-shadow: none !important;
    font-size: 11px !important; font-weight: 600 !important; white-space: nowrap !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner {
    position: absolute !important; top: 50px !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important;
    margin: 0 !important; padding: 6px 0 !important; overflow-x: hidden !important; overflow-y: auto !important;
    border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li { width: 33.333% !important; float: left !important; padding: 0 4px !important; }
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li > a {
    display: flex !important; min-height: 34px !important; align-items: center !important;
    padding: 6px 8px !important; overflow: hidden !important; border-radius: 7px !important;
    background: transparent !important; color: #344054 !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li > a > .check-mark { display: none !important; }
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li > a .text {
    position: relative !important; display: block !important; width: 100% !important; min-width: 0 !important;
    min-height: 20px !important; padding-left: 25px !important; overflow: hidden !important;
    line-height: 20px !important; text-overflow: ellipsis !important; white-space: nowrap !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li > a .text::before {
    position: absolute !important; top: 50% !important; left: 1px !important; width: 18px !important; height: 18px !important;
    border: 1.5px solid #cfd7e2 !important; border-radius: 5px !important; background: #fff !important;
    box-sizing: border-box !important; content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li > a .text::after {
    position: absolute !important; top: 50% !important; left: 7px !important; width: 5px !important; height: 9px !important;
    border: solid #fff !important; border-width: 0 2px 2px 0 !important; box-sizing: border-box !important;
    content: "" !important; opacity: 0 !important; transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.selected > a .text::before { border-color: #1265ef !important; background: #1265ef !important; }
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.selected > a .text::after { opacity: 1 !important; }

body.new-design-active .rc-sharing-modal .form-group > .input-group { display: flex !important; width: 100% !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox {
    position: relative !important; display: block !important; width: 44px !important; min-width: 44px !important;
    height: 42px !important; margin: 0 !important; padding: 0 !important;
    border: 1px solid #d4deeb !important; border-right: 0 !important; border-radius: 8px 0 0 8px !important; background: #f8fafc !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > input[type="checkbox"] {
    position: absolute !important; top: 50% !important; left: 12px !important; z-index: 2 !important;
    width: 18px !important; height: 18px !important; margin: 0 !important; opacity: 0 !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label { position: relative !important; display: block !important; width: 43px !important; height: 40px !important; margin: 0 !important; padding: 0 !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::before {
    position: absolute !important; top: 50% !important; left: 12px !important; width: 18px !important; height: 18px !important;
    margin: 0 !important; border: 1.5px solid #c8d3e1 !important; border-radius: 5px !important;
    background: #fff !important; content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::after {
    position: absolute !important; top: 50% !important; left: 18px !important; width: 6px !important; height: 10px !important;
    margin: -6px 0 0 !important; border: solid #fff !important; border-width: 0 2px 2px 0 !important;
    content: "" !important; opacity: 0 !important; transform: rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > input[type="checkbox"]:checked + label::before { border-color: #1265ef !important; background: #1265ef !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > input[type="checkbox"]:checked + label::after { opacity: 1 !important; }
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox + input.form-control {
    width: calc(100% - 44px) !important; flex: 1 1 auto !important; margin: 0 !important;
    border-radius: 0 8px 8px 0 !important; background: #fff !important;
}
@media (max-width: 680px) {
    body.new-design-active .rc-sharing-modal .multiexpand > .dropdown-menu { grid-template-columns: 1fr !important; grid-template-rows: 42px 42px minmax(0,1fr) !important; }
    body.new-design-active .rc-sharing-modal .multiexpand .bs-searchbox { grid-column: 1 !important; grid-row: 1 !important; }
    body.new-design-active .rc-sharing-modal .multiexpand .bs-actionsbox { grid-column: 1 !important; grid-row: 2 !important; }
    body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner { top: 92px !important; }
    body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li { width: 50% !important; }
}
/* Sharing modal — standardized records table */
body.new-design-active .rc-sharing-modal .rc-sharing-table-wrap {
    overflow: hidden !important; border: 1px solid #d9e2ed !important; border-radius: 10px !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-table { width: 100% !important; margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-table > thead > tr > th {
    height: 43px !important; padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid #dce4ee !important;
    background: #f4f7fb !important; color: #607089 !important; font-size: 11px !important; font-weight: 700 !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-table > tbody > tr > td {
    min-height: 46px !important; padding: 10px 12px !important; vertical-align: middle !important;
    border: 0 !important; border-bottom: 1px solid #edf1f6 !important; color: #344054 !important; font-size: 12px !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-table > tbody > tr:last-child > td { border-bottom: 0 !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-table > tbody > tr:hover > td { background: #f8fbff !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-table td.actions { width: 92px !important; text-align: right !important; white-space: nowrap !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-action {
    display: inline-flex !important; width: 32px !important; height: 32px !important; align-items: center !important; justify-content: center !important;
    margin: 0 0 0 4px !important; padding: 0 !important; border: 1px solid #dce4ee !important; border-radius: 8px !important;
    background: #fff !important; box-shadow: none !important; font-size: 13px !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-action-edit { color: #1265ef !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-action-edit:hover { border-color: #bfd4ff !important; background: #edf4ff !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-action-delete { color: #e5484d !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-action-delete:hover { border-color: #ffc8ca !important; background: #fff0f0 !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-status {
    display: inline-flex !important; min-height: 24px !important; align-items: center !important; padding: 3px 9px !important;
    border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important;
}
body.new-design-active .rc-sharing-modal .rc-sharing-status.is-active { color: #16834b !important; background: #e7f8ef !important; }
body.new-design-active .rc-sharing-modal .rc-sharing-status.is-inactive { color: #7b8798 !important; background: #eef2f6 !important; }
body.new-design-active .rc-sharing-modal .nav-pagination { margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; }
/* Sharing modal — radio and grouped-device alignment */
body.new-design-active .rc-sharing-modal #sharing_send > .form-group:first-child {
    display: flex !important; min-height: 30px !important; align-items: center !important;
    flex-wrap: wrap !important; gap: 10px 24px !important;
}
body.new-design-active .rc-sharing-modal .radio-inline {
    display: inline-flex !important; min-height: 24px !important; align-items: center !important;
    gap: 0 !important; margin: 0 !important; padding: 0 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"] {
    position: absolute !important; top: 50% !important; left: 0 !important; z-index: 2 !important;
    width: 18px !important; height: 18px !important; margin: 0 !important;
    padding: 0 !important; opacity: 0 !important; appearance: none !important;
    -webkit-appearance: none !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label {
    position: relative !important; display: inline-flex !important; min-height: 24px !important;
    align-items: center !important; margin: 0 !important; padding: 0 0 0 27px !important;
    color: #344054 !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::before {
    position: absolute !important; top: 50% !important; left: 0 !important;
    width: 18px !important; height: 18px !important; margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important; border-radius: 50% !important;
    background: #fff !important; box-shadow: none !important; box-sizing: border-box !important;
    content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::after {
    position: absolute !important; top: 50% !important; left: 5px !important;
    display: block !important; width: 8px !important; height: 8px !important; margin: 0 !important;
    border: 0 !important; border-radius: 50% !important; background: #1265ef !important;
    content: "" !important; opacity: 0 !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::before {
    border: 1.5px solid #1265ef !important; background: #fff !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::after { opacity: 1 !important; }

body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header,
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.divider {
    width: 100% !important; clear: both !important; float: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header {
    display: flex !important; min-height: 30px !important; align-items: center !important;
    margin: 4px 4px 3px !important; padding: 6px 10px !important;
    border: 0 !important; border-radius: 7px !important; background: #f5f7fa !important;
    color: #617087 !important; font-size: 11px !important; font-weight: 700 !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header:first-child { margin-top: 0 !important; }
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text {
    min-height: 18px !important; padding: 0 !important; line-height: 18px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text::before,
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text::after {
    display: none !important; content: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
    width: 33.333% !important; min-height: 36px !important; float: left !important; padding: 1px 4px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a {
    width: 100% !important; min-height: 34px !important; margin: 0 !important;
}
@media (max-width: 680px) {
    body.new-design-active .rc-sharing-modal #sharing_send > .form-group:first-child { gap: 8px 18px !important; }
    body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) { width: 50% !important; }
}
@media (max-width: 420px) {
    body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) { width: 100% !important; }
}
/* Sharing modal — radio selection indicated by border only */
body.new-design-active .rc-sharing-modal .radio-inline > label::after,
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::before {
    border-color: #c8d3e1 !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::before {
    border-color: #1265ef !important;
    border-width: 1.5px !important;
    background: #fff !important;
    box-shadow: none !important;
}
/* Sharing modal — group checkbox matches device checkbox */
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header {
    gap: 8px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline {
    position: relative !important; display: inline-flex !important; width: 18px !important; height: 18px !important;
    min-width: 18px !important; min-height: 18px !important; flex: 0 0 18px !important;
    align-items: center !important; margin: 0 !important; padding: 0 !important; vertical-align: middle !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"] {
    position: absolute !important; inset: 0 !important; z-index: 2 !important;
    width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important;
    margin: 0 !important; padding: 0 !important; opacity: 0 !important; cursor: pointer !important;
    appearance: none !important; -webkit-appearance: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label {
    position: relative !important; display: block !important; width: 18px !important; height: 18px !important;
    min-width: 18px !important; min-height: 18px !important; margin: 0 !important; padding: 0 !important; cursor: pointer !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::before {
    position: absolute !important; inset: 0 !important; display: block !important;
    width: 18px !important; height: 18px !important; margin: 0 !important;
    border: 1.5px solid #cfd7e2 !important; border-radius: 5px !important;
    background: #fff !important; box-shadow: none !important; box-sizing: border-box !important;
    content: "" !important; transform: none !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::after {
    position: absolute !important; top: 3px !important; left: 6px !important;
    display: block !important; width: 5px !important; height: 9px !important; margin: 0 !important;
    border: solid #fff !important; border-width: 0 2px 2px 0 !important; box-sizing: border-box !important;
    content: "" !important; opacity: 0 !important; transform: rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::before {
    border-color: #1265ef !important; background: #1265ef !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text::before {
    width: 18px !important; height: 18px !important; border-radius: 5px !important;
}
/* Sharing modal — compact 14px group and device checkboxes */
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline,
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"],
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label,
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::before {
    width: 14px !important; height: 14px !important; min-width: 14px !important; min-height: 14px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline {
    flex-basis: 14px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::after {
    top: 2px !important; left: 5px !important; width: 4px !important; height: 8px !important;
    border-width: 0 1.5px 1.5px 0 !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text {
    padding-left: 21px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text::before {
    width: 14px !important; height: 14px !important; border-radius: 4px !important;
}
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text::after {
    left: 6px !important; width: 4px !important; height: 8px !important;
    border-width: 0 1.5px 1.5px 0 !important;
}
/* Sharing modal — vehicle-list checkbox color */
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::before,
body.new-design-active .rc-sharing-modal .multiexpand .dropdown-menu.inner > li.selected:not(.dropdown-header) > a .text::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
    box-shadow: none !important;
}
/* Sharing modal — compact list-style radio controls */
body.new-design-active .rc-sharing-modal .radio-inline > label {
    padding-left: 22px !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"] {
    width: 14px !important; height: 14px !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::before {
    width: 14px !important; height: 14px !important;
    border: 1.5px solid #cfd7e2 !important; border-radius: 4px !important;
    background: #fff !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > label::after,
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::after {
    position: absolute !important; top: 50% !important; left: 5px !important;
    display: block !important; width: 4px !important; height: 8px !important; margin: 0 !important;
    border: solid #fff !important; border-width: 0 1.5px 1.5px 0 !important;
    border-radius: 0 !important; background: transparent !important;
    content: "" !important; opacity: 0 !important; transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::before {
    border-color: #555b62 !important; border-width: 1.5px !important;
    border-radius: 4px !important; background: #555b62 !important;
}
body.new-design-active .rc-sharing-modal .radio-inline > input[type="radio"]:checked + label::after {
    opacity: 1 !important;
}
/* Sharing modal — compact delivery checkboxes */
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > input[type="checkbox"] {
    left: 15px !important; width: 14px !important; height: 14px !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::before {
    left: 15px !important; width: 14px !important; height: 14px !important;
    border-radius: 4px !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > label::after {
    top: 50% !important; left: 20px !important; width: 4px !important; height: 8px !important;
    margin: 0 !important; border-width: 0 1.5px 1.5px 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-sharing-modal .input-group-btn.checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important; box-shadow: none !important;
}
/* Sharing edit modal — same standard as creation */
body.new-design-active .rc-sharing-edit-modal { width: min(680px, calc(100vw - 28px)) !important; }
body.new-design-active .rc-sharing-edit-modal > .modal-content > .modal-body { padding: 0 !important; }
body.new-design-active .rc-sharing-edit-modal > .modal-content > .modal-body > form {
    padding: 20px 24px 26px !important;
}
body.new-design-active .rc-sharing-edit-modal .bootstrap-select.form-control.multiexpand {
    height: 240px !important; min-height: 240px !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > input[type="checkbox"] {
    width: 14px !important; height: 14px !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label {
    min-height: 20px !important; padding-left: 22px !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label::before {
    width: 14px !important; height: 14px !important; border-radius: 4px !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > label::after {
    left: 5px !important; width: 4px !important; height: 8px !important;
    margin-top: -5px !important; border-width: 0 1.5px 1.5px 0 !important;
}
body.new-design-active .rc-sharing-modal .checkbox:not(.input-group-btn) > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important; box-shadow: none !important;
}
body.new-design-active .rc-sharing-edit-modal .modal-footer .buttons { display: flex !important; flex-direction: row-reverse !important; }
@media (max-width: 767px) {
    body.new-design-active .rc-sharing-edit-modal { width: calc(100vw - 12px) !important; margin: 6px auto !important; }
    body.new-design-active .rc-sharing-edit-modal > .modal-content > .modal-body > form { padding: 16px !important; }
}
/* Device forms — compact checks and standardized data tables */
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn),
body.new-design-active .rc-device-form-dialog .checkbox-inline {
    min-height: 20px !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > input[type="checkbox"],
body.new-design-active .rc-device-form-dialog .checkbox-inline > input[type="checkbox"] {
    width: 14px !important; height: 14px !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label {
    min-height: 20px !important; padding-left: 22px !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label::before,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label::before {
    width: 14px !important; height: 14px !important; border-radius: 4px !important;
}
body.new-design-active .rc-device-form-dialog .checkbox:not(.input-group-btn) > label::after,
body.new-design-active .rc-device-form-dialog .checkbox-inline > label::after {
    left: 5px !important; width: 4px !important; height: 8px !important;
    margin-top: -5px !important; border-width: 0 1.5px 1.5px 0 !important;
}
body.new-design-active .rc-device-form-dialog .checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important; box-shadow: none !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > input[type="checkbox"] {
    left: 15px !important; width: 14px !important; height: 14px !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > label::before {
    left: 15px !important; width: 14px !important; height: 14px !important; border-radius: 4px !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > label::after {
    top: 50% !important; left: 20px !important; width: 4px !important; height: 8px !important;
    margin: 0 !important; border-width: 0 1.5px 1.5px 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important; box-shadow: none !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-data-table-wrap {
    overflow: hidden !important; margin-top: 8px !important;
    border: 1px solid #d9e2ed !important; border-radius: 10px !important; background: #fff !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-data-table {
    width: 100% !important; margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-data-table > thead > tr > th {
    height: 43px !important; padding: 10px 12px !important;
    border: 0 !important; border-bottom: 1px solid #dce4ee !important;
    background: #f4f7fb !important; color: #607089 !important; font-size: 11px !important; font-weight: 700 !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-data-table > tbody > tr > td {
    min-height: 46px !important; padding: 10px 12px !important; vertical-align: middle !important;
    border: 0 !important; border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important; color: #344054 !important; font-size: 12px !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-data-table > tbody > tr:last-child > td { border-bottom: 0 !important; }
body.new-design-active .rc-device-form-dialog .rc-device-data-table > tbody > tr:hover > td { background: #f8fbff !important; }
body.new-design-active .rc-device-form-dialog .rc-device-data-table td.actions { width: 92px !important; text-align: right !important; white-space: nowrap !important; }
body.new-design-active .rc-device-form-dialog .rc-device-table-action {
    display: inline-flex !important; width: 32px !important; height: 32px !important;
    align-items: center !important; justify-content: center !important;
    margin: 0 0 0 4px !important; padding: 0 !important;
    border: 1px solid #dce4ee !important; border-radius: 8px !important;
    background: #fff !important; box-shadow: none !important; font-size: 13px !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-table-edit { color: #1265ef !important; }
body.new-design-active .rc-device-form-dialog .rc-device-table-edit:hover { border-color: #bfd4ff !important; background: #edf4ff !important; }
body.new-design-active .rc-device-form-dialog .rc-device-table-delete { color: #e5484d !important; }
body.new-design-active .rc-device-form-dialog .rc-device-table-delete:hover { border-color: #ffc8ca !important; background: #fff0f0 !important; }
body.new-design-active .rc-device-form-dialog .rc-device-tab-actions { margin: 0 0 10px !important; }
body.new-design-active .rc-device-form-dialog .rc-device-tab-add {
    display: inline-flex !important; width: 38px !important; height: 38px !important;
    align-items: center !important; justify-content: center !important;
    padding: 0 !important; border-radius: 9px !important; background: #1265ef !important;
}
body.new-design-active .rc-device-form-dialog .nav-pagination { margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; }
/* Device forms — compact add action and sensor-group spacing */
body.new-design-active .rc-device-form-dialog .rc-device-tab-actions {
    min-height: 32px !important; margin: 0 0 10px !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-tab-add {
    display: inline-flex !important; width: 32px !important; height: 32px !important;
    min-width: 32px !important; min-height: 32px !important;
    align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 0 !important;
    border: 1px solid #9bc0ff !important; border-radius: 8px !important;
    background: #fff !important; color: #1265ef !important;
    box-shadow: 0 2px 5px rgba(18,101,239,.08) !important; font-size: 13px !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-tab-add:hover,
body.new-design-active .rc-device-form-dialog .rc-device-tab-add:focus {
    border-color: #6ea2fb !important; background: #edf4ff !important; color: #1265ef !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-tab-add > .fa {
    margin: 0 !important; color: inherit !important; font-size: 13px !important; line-height: 1 !important;
}
body.new-design-active .rc-device-form-dialog #device-form-sensors .rc-sensor-group-field,
body.new-design-active .rc-device-form-dialog #device-add-form-sensors .rc-sensor-group-field {
    margin-top: 18px !important;
}
/* Device forms — sensor group dropdown opens upward */
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select {
    position: relative !important; overflow: visible !important;
}
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select > .dropdown-menu {
    top: auto !important; right: 0 !important; bottom: calc(100% + 5px) !important; left: 0 !important;
    width: 100% !important; max-height: 190px !important; margin: 0 !important;
    overflow: hidden !important; border: 1px solid #d4deeb !important; border-radius: 9px !important;
    background: #fff !important; box-shadow: 0 12px 30px rgba(15,23,42,.18) !important; z-index: 1250 !important;
}
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select > .dropdown-menu > .inner {
    max-height: 178px !important; overflow-x: hidden !important; overflow-y: auto !important;
    scrollbar-width: thin !important;
}
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select.open > .dropdown-menu {
    display: block !important;
}
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select > .dropdown-toggle .caret {
    transition: transform .16s ease !important;
    transform-origin: center !important;
}
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select.open > .dropdown-toggle .caret,
body.new-design-active .rc-device-form-dialog .rc-sensor-group-field .bootstrap-select.dropup.open > .dropdown-toggle .caret {
    transform: rotate(180deg) !important;
}
body.new-design-active .rc-device-form-dialog .rc-device-form-tabs:has(> #device-add-form-sensors.active) {
    overflow: visible !important;
}
/* Device forms — visible field-enabler checkboxes */
body.new-design-active .rc-device-form-dialog .form-group > .input-group {
    display: flex !important; width: 100% !important; align-items: stretch !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox {
    position: relative !important; display: block !important;
    width: 44px !important; min-width: 44px !important; height: 42px !important;
    margin: 0 !important; padding: 0 !important;
    border: 1px solid #d4deeb !important; border-right: 0 !important;
    border-radius: 8px 0 0 8px !important; background: #f8fafc !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > input[type="checkbox"] {
    position: absolute !important; top: 50% !important; left: 15px !important; z-index: 2 !important;
    width: 14px !important; height: 14px !important; margin: 0 !important; padding: 0 !important;
    opacity: 0 !important; cursor: pointer !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > label {
    position: relative !important; display: block !important;
    width: 43px !important; height: 40px !important; min-height: 40px !important;
    margin: 0 !important; padding: 0 !important; cursor: pointer !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > label::before {
    position: absolute !important; top: 50% !important; left: 15px !important;
    width: 14px !important; height: 14px !important; margin: 0 !important;
    border: 1.5px solid #cfd7e2 !important; border-radius: 4px !important;
    background: #fff !important; box-shadow: none !important; content: "" !important;
    transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > label::after {
    position: absolute !important; top: 50% !important; left: 20px !important;
    width: 4px !important; height: 8px !important; margin: 0 !important;
    border: solid #fff !important; border-width: 0 1.5px 1.5px 0 !important;
    content: "" !important; opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .form-control,
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .bootstrap-select,
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + input.form-control {
    min-width: 0 !important; flex: 1 1 auto !important;
    border-radius: 0 8px 8px 0 !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .bootstrap-select > .dropdown-toggle {
    border-radius: 0 8px 8px 0 !important;
}
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .form-control:disabled,
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .form-control[disabled],
body.new-design-active .rc-device-form-dialog .input-group-btn.checkbox + .bootstrap-select.disabled > .dropdown-toggle {
    background: #f1f4f8 !important; color: #98a2b3 !important; cursor: not-allowed !important;
}
/* Device forms — joined checkbox and field control */
body.new-design-active .rc-device-form-dialog .form-group > .input-group:has(> .input-group-btn.checkbox) {
    display: flex !important; width: 100% !important; height: 42px !important;
    align-items: stretch !important; border: 0 !important; border-radius: 8px !important;
    background: transparent !important; box-shadow: none !important; overflow: visible !important;
}
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .input-group-btn.checkbox {
    box-sizing: border-box !important; flex: 0 0 44px !important;
}
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .input-group-btn.checkbox + .form-control,
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .input-group-btn.checkbox + input.form-control,
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .input-group-btn.checkbox + .bootstrap-select {
    width: calc(100% - 44px) !important; height: 42px !important; min-height: 42px !important;
    flex: 1 1 auto !important; margin: 0 !important; border-left: 1px solid #d4deeb !important;
    border-radius: 0 8px 8px 0 !important;
}
/* Device forms — prevent legacy input-group wrapping */
body.new-design-active .rc-device-form-dialog .form-group > .input-group {
    display: flex !important; width: 100% !important; max-width: 100% !important;
    height: 42px !important; flex-flow: row nowrap !important; align-items: stretch !important;
    table-layout: auto !important;
}
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .input-group-btn.checkbox {
    display: block !important; width: 44px !important; min-width: 44px !important; max-width: 44px !important;
    flex: 0 0 44px !important; float: none !important; order: 1 !important;
}
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .form-control,
body.new-design-active .rc-device-form-dialog .form-group > .input-group > input.form-control,
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .bootstrap-select {
    display: block !important; width: auto !important; min-width: 0 !important; max-width: none !important;
    height: 42px !important; flex: 1 1 0 !important; float: none !important; clear: none !important;
    order: 2 !important; margin: 0 !important;
}
body.new-design-active .rc-device-form-dialog .form-group > .input-group > .bootstrap-select > .dropdown-toggle {
    width: 100% !important; height: 42px !important;
}

/* Device forms — structural enabled field row */
body.new-design-active .rc-device-form-dialog .rc-enabled-field-row {
    display: flex !important; width: 100% !important; height: 42px !important;
    flex-flow: row nowrap !important; align-items: stretch !important; direction: ltr !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-row > .input-group-btn.checkbox {
    display: block !important; width: 44px !important; min-width: 44px !important;
    max-width: 44px !important; height: 42px !important; flex: 0 0 44px !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-value {
    display: block !important; width: calc(100% - 44px) !important; min-width: 0 !important;
    height: 42px !important; flex: 1 1 auto !important; margin: 0 !important; order: 2 !important;
    position: relative !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-value > .form-control,
body.new-design-active .rc-device-form-dialog .rc-enabled-field-value > .bootstrap-select {
    display: block !important; width: 100% !important; max-width: 100% !important;
    height: 42px !important; min-height: 42px !important; margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-value > .bootstrap-select > .dropdown-toggle {
    width: 100% !important; height: 42px !important; border-radius: 0 8px 8px 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-value > .rc-expiration-date-display {
    padding-right: 42px !important;
}
body.new-design-active .rc-device-form-dialog .rc-enabled-field-calendar {
    position: absolute !important; right: 14px !important; top: 50% !important;
    transform: translateY(-50%) !important; z-index: 3 !important;
    width: 24px !important; height: 28px !important; padding: 0 !important; border: 0 !important;
    background: transparent !important; color: #64748b !important; font-size: 16px !important;
    line-height: 1 !important; cursor: pointer !important;
}

/* Device forms — forward field keeps checkbox, address and protocol in order */
body.new-design-active .rc-device-form-dialog .rc-forward-field-row {
    display: flex !important; width: 100% !important; height: 42px !important;
    flex-flow: row nowrap !important; align-items: stretch !important; direction: ltr !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row > .input-group-btn.checkbox {
    order: 1 !important; flex: 0 0 44px !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row > input.form-control {
    order: 2 !important; width: auto !important; min-width: 0 !important;
    height: 42px !important; flex: 1 1 auto !important; border-radius: 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row > .input-group-addon {
    display: flex !important; order: 3 !important; width: auto !important; height: 42px !important;
    flex: 0 0 auto !important; align-items: center !important; gap: 12px !important;
    padding: 0 12px !important; border-left: 0 !important; border-radius: 0 8px 8px 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row > .input-group-addon > .checkbox-inline {
    width: auto !important; min-width: auto !important; margin: 0 !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"] {
    position: absolute !important; width: 14px !important; height: 14px !important;
    margin: 0 !important; opacity: 0 !important; cursor: pointer !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"] + label {
    position: relative !important; min-height: 20px !important; margin: 0 !important;
    padding-left: 22px !important; line-height: 20px !important; cursor: pointer !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"] + label::before {
    position: absolute !important; top: 50% !important; left: 0 !important;
    width: 14px !important; height: 14px !important; margin: 0 !important;
    border: 1.5px solid #cfd7e2 !important; border-radius: 4px !important;
    background: #fff !important; content: "" !important; transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"] + label::after {
    position: absolute !important; top: 50% !important; left: 5px !important;
    width: 4px !important; height: 8px !important; margin: 0 !important;
    border: solid #fff !important; border-width: 0 1.5px 1.5px 0 !important;
    background: transparent !important; content: "" !important; opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"]:checked + label::before {
    border-color: #555b62 !important; background: #555b62 !important;
}
body.new-design-active .rc-device-form-dialog .rc-forward-field-row input[type="radio"]:checked + label::after {
    opacity: 1 !important;
}

/* Sensor create/edit modal */
body.new-design-active .rc-sensor-modal { z-index: 1320 !important; }
body.new-design-active .rc-sensor-modal .modal-backdrop { z-index: 1310 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-form-dialog { width: 600px !important; max-width: calc(100vw - 24px) !important; }
body.new-design-active .rc-sensor-modal .modal-content { overflow: hidden !important; border: 1px solid #d8e2ef !important; border-radius: 14px !important; box-shadow: 0 18px 48px rgba(15,23,42,.24) !important; }
body.new-design-active .rc-sensor-modal .modal-header { min-height: 58px !important; display: flex !important; align-items: center !important; border-bottom: 1px solid #e4eaf2 !important; padding: 14px 20px !important; }
body.new-design-active .rc-sensor-modal .modal-header { position: relative !important; }
body.new-design-active .rc-sensor-modal .modal-header .close { position: absolute !important; top: 50% !important; right: 16px !important; margin: 0 !important; transform: translateY(-50%) !important; }
body.new-design-active .rc-sensor-modal .modal-title { display: flex !important; align-items: center !important; gap: 9px !important; color: #17233a !important; font-size: 16px !important; font-weight: 750 !important; }
body.new-design-active .rc-sensor-modal .modal-title > i { color: #1265ef !important; }
body.new-design-active .rc-sensor-modal .modal-body { max-height: min(70vh, 620px) !important; overflow-x: hidden !important; overflow-y: auto !important; padding: 18px 20px 20px !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-form-content { margin: 0 !important; }
body.new-design-active .rc-sensor-modal .sen-data-fields,
body.new-design-active .rc-sensor-modal .sen-cal-fields { padding: 0 !important; }
body.new-design-active .rc-sensor-modal .form-group { margin-bottom: 14px !important; }
body.new-design-active .rc-sensor-modal .form-group > label { display: block !important; margin: 0 0 7px !important; color: #1d2b43 !important; font-size: 12px !important; font-weight: 700 !important; }
body.new-design-active .rc-sensor-modal .form-control,
body.new-design-active .rc-sensor-modal .bootstrap-select > .dropdown-toggle { width: 100% !important; height: 38px !important; min-height: 38px !important; border: 1px solid #d2dce9 !important; border-radius: 9px !important; background: #fff !important; color: #344054 !important; box-shadow: none !important; padding: 8px 12px !important; font-size: 12px !important; }
body.new-design-active .rc-sensor-modal .bootstrap-select.form-control { height: 38px !important; min-height: 38px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
body.new-design-active .rc-sensor-modal .form-control:focus,
body.new-design-active .rc-sensor-modal .bootstrap-select.open > .dropdown-toggle { border-color: #7ca9f8 !important; box-shadow: 0 0 0 3px rgba(18,101,239,.10) !important; }
body.new-design-active .rc-sensor-modal .input-group { display: flex !important; width: 100% !important; align-items: stretch !important; gap: 8px !important; }
body.new-design-active .rc-sensor-modal #sensor_parameters {
    display: block !important; width: 100% !important; height: auto !important;
    min-height: 38px !important; border: 0 !important;
    border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; padding: 0 !important;
}
body.new-design-active .rc-sensor-modal #sensor_parameters > .bootstrap-select {
    width: 100% !important; margin: 0 !important;
}
body.new-design-active .rc-sensor-modal #sensor_parameters .bootstrap-select > .dropdown-toggle {
    position: relative !important; height: 38px !important; min-height: 38px !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; padding: 0 !important;
}
body.new-design-active .rc-sensor-modal #sensor_parameters .bootstrap-select .bs-input.form-control {
    display: block !important; width: 100% !important; height: 38px !important;
    min-height: 38px !important; margin: 0 !important; border: 1px solid #d2dce9 !important;
    border-radius: 9px !important; background: #fff !important; box-shadow: none !important;
    padding: 8px 38px 8px 12px !important;
}
body.new-design-active .rc-sensor-modal #sensor_parameters .bootstrap-select .bs-caret {
    position: absolute !important; top: 50% !important; right: 14px !important;
    z-index: 3 !important; transform: translateY(-50%) !important; pointer-events: none !important;
}
body.new-design-active .rc-sensor-modal #sensor_parameters .bootstrap-select.open .bs-input.form-control {
    border-color: #7ca9f8 !important; box-shadow: 0 0 0 3px rgba(18,101,239,.10) !important;
}
body.new-design-active .rc-sensor-modal .input-group > .form-control,
body.new-design-active .rc-sensor-modal .input-group > .bootstrap-select { min-width: 0 !important; flex: 1 1 0 !important; }
body.new-design-active .rc-sensor-modal .input-group-btn:empty { display: none !important; }
body.new-design-active .rc-sensor-modal .checkbox { position: relative !important; display: flex !important; min-height: 22px !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
body.new-design-active .rc-sensor-modal .checkbox > input[type="checkbox"] { position: absolute !important; left: 0 !important; z-index: 2 !important; width: 16px !important; height: 16px !important; margin: 0 !important; opacity: 0 !important; cursor: pointer !important; }
body.new-design-active .rc-sensor-modal .checkbox > label { position: relative !important; min-height: 22px !important; margin: 0 !important; padding: 2px 0 0 24px !important; color: #344054 !important; font-size: 12px !important; cursor: pointer !important; }
body.new-design-active .rc-sensor-modal .checkbox > label::before { position: absolute !important; top: 50% !important; left: 0 !important; width: 16px !important; height: 16px !important; border: 1.5px solid #cbd6e4 !important; border-radius: 5px !important; background: #fff !important; content: "" !important; transform: translateY(-50%) !important; }
body.new-design-active .rc-sensor-modal .checkbox > label::after { position: absolute !important; top: 50% !important; left: 6px !important; width: 5px !important; height: 9px !important; border: solid #fff !important; border-width: 0 2px 2px 0 !important; content: "" !important; opacity: 0 !important; transform: translateY(-62%) rotate(45deg) !important; }
body.new-design-active .rc-sensor-modal .checkbox > label::after {
    display: block !important; box-sizing: border-box !important;
}
body.new-design-active .rc-sensor-modal .checkbox > input[type="checkbox"]:checked + label::before { border-color: #299bd6 !important; background: #299bd6 !important; }
body.new-design-active .rc-sensor-modal .checkbox > input[type="checkbox"]:checked + label::after { opacity: 1 !important; }
body.new-design-active .rc-sensor-modal .btn-preview { display: inline-flex !important; width: 38px !important; height: 38px !important; align-items: center !important; justify-content: center !important; border: 1px solid #7ca9f8 !important; border-radius: 9px !important; background: #fff !important; color: #1265ef !important; padding: 0 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row { display: grid !important; grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr) !important; gap: 8px !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > .input-group-btn { display: block !important; width: 38px !important; height: 38px !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > .input-group-btn:empty { display: none !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > .form-control { width: 100% !important; min-width: 0 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > input[name="input"] { grid-column: 1 !important; grid-row: 1 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > .input-group-btn:not(:empty) { grid-column: 2 !important; grid-row: 1 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row > #preview-result { grid-column: 3 !important; grid-row: 1 !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-preview-row .btn-preview > i { margin: 0 !important; color: #1265ef !important; }
body.new-design-active .rc-sensor-modal .rc-sensor-form-content { padding-bottom: 18px !important; }
body.new-design-active .rc-sensor-modal .modal-footer { display: flex !important; justify-content: flex-end !important; gap: 10px !important; border-top: 1px solid #e4eaf2 !important; padding: 14px 20px !important; }
body.new-design-active .rc-sensor-modal .modal-footer .btn { min-width: 92px !important; height: 38px !important; border-radius: 9px !important; font-weight: 700 !important; }
@media (max-width: 640px) {
    body.new-design-active .rc-sensor-modal .rc-sensor-form-dialog { width: calc(100vw - 16px) !important; margin: 8px auto !important; }
    body.new-design-active .rc-sensor-modal .modal-body { max-height: calc(100vh - 132px) !important; padding: 16px !important; }
    body.new-design-active .rc-sensor-modal .row > [class*="col-sm-"] { width: 100% !important; }
}

body.new-design-active .modal:has(.rc-sensor-delete-modal) { z-index: 1360 !important; }
body.new-design-active .rc-sensor-delete-modal { z-index: 1361 !important; }

/* Camera create/edit modal */
body.new-design-active .modal:has(.rc-camera-form-modal) { z-index: 1320 !important; }
body.new-design-active .rc-camera-form-modal { width: 440px !important; max-width: calc(100vw - 24px) !important; }
body.new-design-active .rc-camera-form-modal .modal-content { overflow: hidden !important; border: 1px solid #d8e2ef !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 18px 48px rgba(15,23,42,.24) !important; }
body.new-design-active .rc-camera-form-modal .modal-header { position: relative !important; display: flex !important; min-height: 58px !important; align-items: center !important; border-bottom: 1px solid #e4eaf2 !important; padding: 14px 20px !important; }
body.new-design-active .rc-camera-form-modal .modal-title { display: flex !important; align-items: center !important; gap: 9px !important; color: #17233a !important; font-size: 16px !important; font-weight: 750 !important; }
body.new-design-active .rc-camera-form-modal .modal-title > i { color: #1265ef !important; }
body.new-design-active .rc-camera-form-modal .modal-header .close { position: absolute !important; top: 50% !important; right: 16px !important; margin: 0 !important; transform: translateY(-50%) !important; }
body.new-design-active .rc-camera-form-modal .modal-body { padding: 20px !important; }
body.new-design-active .rc-camera-form-modal .rc-camera-form-content { margin: 0 !important; }
body.new-design-active .rc-camera-form-modal .rc-camera-form-content > [class*="col-"] { padding: 0 !important; }
body.new-design-active .rc-camera-form-modal .form-group { margin-bottom: 16px !important; }
body.new-design-active .rc-camera-form-modal .form-group:last-child { margin-bottom: 0 !important; }
body.new-design-active .rc-camera-form-modal .form-group > label { display: block !important; margin: 0 0 7px !important; color: #1d2b43 !important; font-size: 12px !important; font-weight: 700 !important; }
body.new-design-active .rc-camera-form-modal .form-control { width: 100% !important; height: 40px !important; border: 1px solid #d2dce9 !important; border-radius: 9px !important; background: #fff !important; color: #344054 !important; box-shadow: none !important; padding: 8px 12px !important; }
body.new-design-active .rc-camera-form-modal .form-control:focus { border-color: #7ca9f8 !important; box-shadow: 0 0 0 3px rgba(18,101,239,.10) !important; }
body.new-design-active .rc-camera-form-modal .checkbox { position: relative !important; display: flex !important; min-height: 22px !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
body.new-design-active .rc-camera-form-modal .checkbox > input[type="checkbox"] { position: absolute !important; left: 0 !important; z-index: 2 !important; width: 16px !important; height: 16px !important; margin: 0 !important; opacity: 0 !important; cursor: pointer !important; }
body.new-design-active .rc-camera-form-modal .checkbox > label { position: relative !important; min-height: 22px !important; margin: 0 !important; padding: 2px 0 0 24px !important; color: #344054 !important; font-size: 12px !important; cursor: pointer !important; }
body.new-design-active .rc-camera-form-modal .checkbox > label::before { position: absolute !important; top: 50% !important; left: 0 !important; width: 16px !important; height: 16px !important; border: 1.5px solid #cbd6e4 !important; border-radius: 5px !important; background: #fff !important; content: "" !important; transform: translateY(-50%) !important; }
body.new-design-active .rc-camera-form-modal .checkbox > label::after { position: absolute !important; top: 50% !important; left: 6px !important; display: block !important; width: 5px !important; height: 9px !important; border: solid #fff !important; border-width: 0 2px 2px 0 !important; content: "" !important; opacity: 0 !important; transform: translateY(-62%) rotate(45deg) !important; }
body.new-design-active .rc-camera-form-modal .checkbox > input[type="checkbox"]:checked + label::before { border-color: #299bd6 !important; background: #299bd6 !important; }
body.new-design-active .rc-camera-form-modal .checkbox > input[type="checkbox"]:checked + label::after { opacity: 1 !important; }
body.new-design-active .rc-camera-form-modal .modal-footer { display: flex !important; justify-content: flex-end !important; gap: 10px !important; border-top: 1px solid #e4eaf2 !important; padding: 14px 20px !important; }
body.new-design-active .rc-camera-form-modal .modal-footer .btn { min-width: 92px !important; height: 38px !important; margin: 0 !important; border-radius: 9px !important; font-weight: 700 !important; }
body.new-design-active .modal:has(.rc-camera-delete-modal) { z-index: 1360 !important; }
body.new-design-active .rc-camera-delete-modal { z-index: 1361 !important; }
@media (max-width: 480px) {
    body.new-design-active .rc-camera-form-modal { width: calc(100vw - 16px) !important; margin: 8px auto !important; }
}
/* Send command modal */
body.new-design-active .modal:has(.rc-send-command-modal) { z-index: 1340 !important; }
body.new-design-active .rc-send-command-modal {
    width: 640px !important;
    max-width: calc(100vw - 24px) !important;
}
body.new-design-active .rc-send-command-modal > .modal-content {
    border: 1px solid #d8e2ef !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24) !important;
    overflow: visible !important;
}
body.new-design-active .rc-send-command-modal > .modal-content > .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    border-bottom: 1px solid #e4eaf2 !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 14px 52px 14px 20px !important;
}
body.new-design-active .rc-send-command-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}
body.new-design-active .rc-send-command-modal .modal-title > i {
    flex: 0 0 auto !important;
    color: #1265ef !important;
    font-size: 17px !important;
}
body.new-design-active .rc-send-command-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #637188 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}
body.new-design-active .rc-send-command-modal .modal-header .close:hover {
    background: #eaf0f7 !important;
    color: #17233a !important;
}
body.new-design-active .rc-send-command-modal > .modal-content > .modal-body {
    max-height: min(72vh, 660px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-tabs {
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 24px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf2 !important;
    padding: 12px 20px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-tabs::-webkit-scrollbar { display: none !important; }
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li {
    flex: 0 0 auto !important;
    margin: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li > a {
    display: inline-flex !important;
    min-height: 45px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: 7px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #607089 !important;
    padding: 10px 0 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li > a:hover {
    background: transparent !important;
    color: #17233a !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li.active > a,
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li.active > a:hover,
body.new-design-active .rc-send-command-modal .rc-send-command-tabs > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #17233a !important;
    box-shadow: none !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-alert {
    margin: 14px 20px 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-content {
    min-height: 320px !important;
    padding: 22px 20px 34px !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-content > .tab-pane {
    width: 100% !important;
}
body.new-design-active .rc-send-command-modal .rc-send-command-form {
    margin: 0 !important;
}
body.new-design-active .rc-send-command-modal .form-group {
    margin-bottom: 15px !important;
}
body.new-design-active .rc-send-command-modal .form-group:last-child {
    margin-bottom: 0 !important;
}
body.new-design-active .rc-send-command-modal .form-group > label,
body.new-design-active .rc-send-command-modal .attributes label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #1d2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-send-command-modal .form-control,
body.new-design-active .rc-send-command-modal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid #d2dce9 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}
body.new-design-active .rc-send-command-modal input.form-control,
body.new-design-active .rc-send-command-modal select.form-control {
    height: 40px !important;
}
body.new-design-active .rc-send-command-modal textarea.form-control {
    min-height: 88px !important;
    height: auto !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}
body.new-design-active .rc-send-command-modal .bootstrap-select.form-control {
    height: 40px !important;
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .bootstrap-select > .dropdown-toggle {
    height: 40px !important;
}
body.new-design-active .rc-send-command-modal .form-control:focus,
body.new-design-active .rc-send-command-modal .bootstrap-select.open > .dropdown-toggle {
    border-color: #7ca9f8 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}
body.new-design-active .rc-send-command-modal .bootstrap-select .filter-option {
    color: #344054 !important;
    line-height: 22px !important;
}
body.new-design-active .rc-send-command-modal .bootstrap-select .dropdown-menu {
    border: 1px solid #d8e2ef !important;
    border-radius: 9px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
}
body.new-design-active .rc-send-command-modal .attributes {
    margin-right: -5px !important;
    margin-left: -5px !important;
}
body.new-design-active .rc-send-command-modal .attributes > [class*="col-"] {
    padding-right: 5px !important;
    padding-left: 5px !important;
}
body.new-design-active .rc-send-command-modal small,
body.new-design-active .rc-send-command-modal .rc-send-command-form p {
    color: #74839a !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
}
body.new-design-active .rc-send-command-modal small {
    display: block !important;
    margin-top: 6px !important;
}
body.new-design-active .rc-send-command-modal .send_command_result {
    margin-top: 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    padding: 12px !important;
}
body.new-design-active .rc-send-command-modal #table_sent_commands .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}
body.new-design-active .rc-send-command-modal #table_sent_commands [class*="col-"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
}
body.new-design-active .rc-send-command-modal > .modal-content > .modal-footer {
    min-height: 66px !important;
    border-top: 1px solid #e4eaf2 !important;
    border-radius: 0 0 14px 14px !important;
    background: #fff !important;
    padding: 13px 20px !important;
}
body.new-design-active .rc-send-command-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}
body.new-design-active .rc-send-command-modal .modal-footer .btn {
    min-width: 92px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-send-command-modal .modal-footer .btn-action {
    border-color: #2699df !important;
    background: #2699df !important;
    color: #fff !important;
}
body.new-design-active .rc-send-command-modal .modal-footer .btn-action:hover {
    border-color: #168bd0 !important;
    background: #168bd0 !important;
}
body.new-design-active .rc-send-command-modal .modal-footer .btn[disabled] {
    opacity: .48 !important;
}
@media (max-width: 680px) {
    body.new-design-active .rc-send-command-modal {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin: 8px auto !important;
    }
    body.new-design-active .rc-send-command-modal > .modal-content > .modal-header {
        min-height: 56px !important;
        padding: 12px 50px 12px 16px !important;
    }
    body.new-design-active .rc-send-command-modal > .modal-content > .modal-body {
        max-height: calc(100vh - 130px) !important;
    }
    body.new-design-active .rc-send-command-modal .rc-send-command-tabs {
        min-height: 54px !important;
        gap: 20px !important;
        padding: 9px 16px 0 !important;
    }
    body.new-design-active .rc-send-command-modal .rc-send-command-content {
        min-height: 270px !important;
        padding: 20px 16px 28px !important;
    }
    body.new-design-active .rc-send-command-modal .rc-send-command-alert {
        margin: 12px 16px 0 !important;
    }
    body.new-design-active .rc-send-command-modal .attributes > [class*="col-"] {
        width: 100% !important;
    }
    body.new-design-active .rc-send-command-modal > .modal-content > .modal-footer {
        min-height: 62px !important;
        padding: 11px 16px !important;
    }
    body.new-design-active .rc-send-command-modal .modal-footer .buttons {
        width: 100% !important;
    }
    body.new-design-active .rc-send-command-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 50% !important;
    }
}

/* Send command — standardized tables */
body.new-design-active .rc-send-command-modal .rc-command-log-search {
    width: 100% !important;
    margin: 0 0 14px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search > [class*="col-"] {
    width: 100% !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search .form-group {
    margin: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search .input-group {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-radius: 9px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search .input-group-addon {
    display: inline-flex !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #d2dce9 !important;
    border-right: 0 !important;
    border-radius: 9px 0 0 9px !important;
    background: #fff !important;
    color: #6b7890 !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search input.form-control {
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    flex: 1 1 auto !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search .input-group-btn {
    display: flex !important;
    width: auto !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-search .input-group-btn .btn {
    height: 40px !important;
    min-width: 76px !important;
    border: 1px solid #d2dce9 !important;
    border-left: 1px solid #d2dce9 !important;
    border-radius: 0 9px 9px 0 !important;
    background: #f4f7fb !important;
    color: #607089 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-panel {
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-heading {
    min-height: 42px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #f7f9fc !important;
    color: #1d2b43 !important;
    padding: 11px 14px !important;
    font-size: 12px !important;
    line-height: 20px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-heading strong {
    font-weight: 750 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-heading .text-muted {
    color: #74839a !important;
    font-weight: 500 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-description {
    border: 0 !important;
    background: #fff !important;
    padding: 14px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-description p {
    margin: 0 !important;
    color: #66758a !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table-wrap {
    width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-panel .rc-command-table-wrap {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 11px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-table {
    min-width: 570px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-schedule-table,
body.new-design-active .rc-send-command-modal .rc-command-schedule-logs-table {
    min-width: 680px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table > thead > tr > th {
    height: 40px !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid #dfe6ef !important;
    background: #f3f6fa !important;
    color: #5e6d84 !important;
    padding: 9px 12px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table > tbody > tr > td {
    min-height: 48px !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid #e7ecf2 !important;
    background: #fff !important;
    color: #344054 !important;
    padding: 9px 12px !important;
    line-height: 1.4 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table > tbody > tr:hover > td {
    background: #f8fbff !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table td strong {
    color: #1d2b43 !important;
    font-weight: 750 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table .text-muted {
    color: #7b8798 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-status {
    display: inline-flex !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    padding: 4px 8px !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-response {
    border: 0 !important;
    border-radius: 5px !important;
    background: #f4f7fb !important;
    color: #263349 !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-send-command-modal .rc-command-error {
    margin-top: 5px !important;
    font-size: 10px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-empty {
    height: 132px !important;
    vertical-align: middle !important;
    background: #fff !important;
    color: #8a96a8 !important;
    font-size: 11px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table th:last-child,
body.new-design-active .rc-send-command-modal .rc-command-table td.actions {
    width: 54px !important;
    text-align: right !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table-action {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #cdd9e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1265ef !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06) !important;
    padding: 0 !important;
    line-height: 1 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table-action:hover {
    border-color: #a9c2ed !important;
    background: #edf4ff !important;
    color: #0e58d2 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table-more {
    margin: 0 !important;
    color: #607089 !important;
    cursor: pointer !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table .dropdown-menu {
    min-width: 150px !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 9px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
    padding: 5px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table .dropdown-menu > li > a {
    border-radius: 6px !important;
    color: #344054 !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
}
body.new-design-active .rc-send-command-modal .rc-command-table .dropdown-menu > li > a:hover {
    background: #f3f7fc !important;
}
body.new-design-active .rc-send-command-modal .rc-command-pagination {
    margin: 12px 0 0 !important;
    border: 0 !important;
    padding: 0 !important;
}
body.new-design-active .rc-send-command-modal .rc-command-log-panel + .rc-command-pagination,
body.new-design-active .rc-send-command-modal .rc-command-log-panel .rc-command-pagination {
    padding: 0 12px 12px !important;
}
@media (max-width: 680px) {
    body.new-design-active .rc-send-command-modal .rc-command-log-heading {
        padding: 10px 12px !important;
    }
    body.new-design-active .rc-send-command-modal .rc-command-log-description {
        padding: 12px !important;
    }
    body.new-design-active .rc-send-command-modal .rc-command-table > thead > tr > th,
    body.new-design-active .rc-send-command-modal .rc-command-table > tbody > tr > td {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* Standard generic confirmation modal */
body.new-design-active #js-confirm-link.rc-generic-confirm-layer {
    z-index: 1420 !important;
}
body.new-design-active #js-confirm-link.rc-generic-confirm-layer.in ~ .modal-backdrop:last-child {
    z-index: 1410 !important;
}
body.new-design-active .rc-generic-confirm-modal {
    width: 520px !important;
    max-width: calc(100vw - 24px) !important;
    margin: max(72px, 12vh) auto !important;
}
body.new-design-active .rc-generic-confirm-modal > .modal-content {
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .30) !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 60px !important;
    align-items: center !important;
    border-bottom: 1px solid #e4eaf2 !important;
    background: #fff !important;
    padding: 14px 54px 14px 20px !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-title > i {
    color: #1265ef !important;
    font-size: 18px !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #637188 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-header .close:hover {
    background: #eaf0f7 !important;
    color: #17233a !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-body {
    min-height: 82px !important;
    border: 0 !important;
    background: #fff !important;
    color: #52627a !important;
    padding: 22px !important;
    font-size: 13px !important;
    line-height: 21px !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer {
    min-height: 66px !important;
    margin: 0 !important;
    border-top: 1px solid #e4eaf2 !important;
    background: #f8fafc !important;
    padding: 12px 18px !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer .btn {
    min-width: 98px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer .btn-primary {
    border-color: #2699df !important;
    background: #2699df !important;
    color: #fff !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer .btn-primary:hover {
    border-color: #168bd0 !important;
    background: #168bd0 !important;
}
body.new-design-active .rc-generic-confirm-modal .modal-footer .btn-default {
    border-color: #d7e0eb !important;
    background: #fff !important;
    color: #52627a !important;
}
@media (max-width: 560px) {
    body.new-design-active .rc-generic-confirm-modal {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin: 8px auto !important;
    }
    body.new-design-active .rc-generic-confirm-modal .modal-header {
        min-height: 56px !important;
        padding: 12px 50px 12px 16px !important;
    }
    body.new-design-active .rc-generic-confirm-modal .modal-body {
        min-height: 74px !important;
        padding: 18px 16px !important;
    }
    body.new-design-active .rc-generic-confirm-modal .modal-footer {
        padding: 11px 16px !important;
    }
    body.new-design-active .rc-generic-confirm-modal .modal-footer .buttons {
        width: 100% !important;
    }
    body.new-design-active .rc-generic-confirm-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 50% !important;
    }
}

/* Device group create/edit modal */
body.new-design-active .modal:has(.rc-device-group-modal) {
    z-index: 12120 !important;
}
body.new-design-active .rc-device-group-modal {
    width: 680px !important;
    max-width: calc(100vw - 24px) !important;
}
body.new-design-active .rc-device-group-modal > .modal-content {
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24) !important;
}
body.new-design-active .rc-device-group-modal > .modal-content > .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 68px !important;
    align-items: center !important;
    border-bottom: 1px solid #e4eaf2 !important;
    background: #fff !important;
    padding: 13px 54px 13px 20px !important;
}
body.new-design-active .rc-device-group-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 17px !important;
    font-weight: 750 !important;
}
body.new-design-active .rc-device-group-modal .modal-title > i {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    background: #edf4ff !important;
    color: #1265ef !important;
    font-size: 16px !important;
}
body.new-design-active .rc-device-group-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #637188 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-group-modal > .modal-content > .modal-body {
    max-height: calc(100vh - 156px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 20px 22px 24px !important;
}
body.new-design-active .rc-device-group-modal .rc-device-group-form {
    margin: 0 !important;
}
body.new-design-active .rc-device-group-modal .form-group {
    margin-bottom: 17px !important;
}
body.new-design-active .rc-device-group-modal .form-group:last-child {
    margin-bottom: 0 !important;
}
body.new-design-active .rc-device-group-modal .form-group > label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #1d2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-device-group-modal .form-control,
body.new-design-active .rc-device-group-modal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #d2dce9 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
}
body.new-design-active .rc-device-group-modal input.form-control {
    height: 42px !important;
}
body.new-design-active .rc-device-group-modal .bootstrap-select.form-control:not(.multiexpand) {
    height: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}
body.new-design-active .rc-device-group-modal .bootstrap-select:not(.multiexpand) > .dropdown-toggle {
    height: 42px !important;
}
body.new-design-active .rc-device-group-modal .form-control:focus,
body.new-design-active .rc-device-group-modal .bootstrap-select.open > .dropdown-toggle {
    border-color: #7ca9f8 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}
body.new-design-active .rc-device-group-modal .bootstrap-select.form-control.multiexpand {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #d4deeb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 8px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand > .dropdown-toggle {
    display: none !important;
}
body.new-design-active .rc-device-group-modal .multiexpand > .dropdown-menu {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    grid-template-columns: minmax(180px, 1fr) minmax(270px, auto) !important;
    grid-template-rows: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
    float: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-searchbox,
body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox {
    width: auto !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-searchbox {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox {
    grid-column: 2 !important;
    grid-row: 1 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-searchbox .form-control {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 8px 12px 8px 34px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox .btn-group {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    gap: 6px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox .btn {
    display: inline-flex !important;
    min-width: 0 !important;
    height: 40px !important;
    flex: 1 1 50% !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f2f4f7 !important;
    color: #586579 !important;
    box-shadow: none !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox .btn:hover {
    background: #e9eef5 !important;
    color: #344054 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header,
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.divider {
    width: 100% !important;
    clear: both !important;
    float: none !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header {
    display: flex !important;
    min-height: 30px !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 4px 4px 3px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #f5f7fa !important;
    color: #617087 !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header:first-child {
    margin-top: 0 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
    width: 33.333% !important;
    min-height: 34px !important;
    float: left !important;
    padding: 1px 4px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a {
    display: flex !important;
    width: 100% !important;
    min-height: 32px !important;
    align-items: center !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #344054 !important;
    padding: 5px 7px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a:hover {
    background: #f5f8fc !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li > a > .check-mark {
    display: none !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 20px !important;
    overflow: hidden !important;
    padding-left: 21px !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text::before {
    position: absolute !important;
    top: 50% !important;
    left: 1px !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #cfd7e2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
    transform: translateY(-50%) !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) > a .text::after {
    position: absolute !important;
    top: 50% !important;
    left: 6px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    box-sizing: border-box !important;
    content: "" !important;
    opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.selected:not(.dropdown-header) > a .text::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.selected:not(.dropdown-header) > a .text::after {
    opacity: 1 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text {
    min-height: 18px !important;
    padding: 0 !important;
    line-height: 18px !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text::before,
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header .text::after {
    display: none !important;
    content: none !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline {
    position: relative !important;
    display: inline-flex !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    flex: 0 0 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label {
    position: relative !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::before {
    position: absolute !important;
    inset: 0 !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #cfd7e2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > label::after {
    position: absolute !important;
    top: 2px !important;
    left: 5px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    content: "" !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}
body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li.dropdown-header > .checkbox-inline > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}
body.new-design-active .rc-device-group-modal > .modal-content > .modal-footer {
    min-height: 66px !important;
    border-top: 1px solid #e4eaf2 !important;
    background: #f8fafc !important;
    padding: 12px 20px !important;
}
body.new-design-active .rc-device-group-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}
body.new-design-active .rc-device-group-modal .modal-footer .btn {
    min-width: 98px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 17px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
body.new-design-active .rc-device-group-modal .modal-footer .btn-action {
    border-color: #2699df !important;
    background: #2699df !important;
    color: #fff !important;
}
body.new-design-active .rc-device-group-modal .modal-footer .btn-default {
    border-color: #d7e0eb !important;
    background: #fff !important;
    color: #52627a !important;
}
@media (max-width: 700px) {
    body.new-design-active .rc-device-group-modal {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin: 8px auto !important;
    }
    body.new-design-active .rc-device-group-modal > .modal-content > .modal-header {
        min-height: 62px !important;
        padding: 11px 50px 11px 16px !important;
    }
    body.new-design-active .rc-device-group-modal .modal-title {
        font-size: 16px !important;
    }
    body.new-design-active .rc-device-group-modal .modal-title > i {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
    body.new-design-active .rc-device-group-modal > .modal-content > .modal-body {
        max-height: calc(100dvh - 128px) !important;
        padding: 16px !important;
    }
    body.new-design-active .rc-device-group-modal .bootstrap-select.form-control.multiexpand {
        height: 300px !important;
        min-height: 300px !important;
    }
    body.new-design-active .rc-device-group-modal .multiexpand > .dropdown-menu {
        grid-template-columns: 1fr !important;
        grid-template-rows: 40px 40px minmax(0, 1fr) !important;
    }
    body.new-design-active .rc-device-group-modal .multiexpand .bs-searchbox {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.new-design-active .rc-device-group-modal .multiexpand .bs-actionsbox {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner {
        top: 88px !important;
    }
    body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
        width: 50% !important;
    }
    body.new-design-active .rc-device-group-modal .modal-footer .buttons {
        width: 100% !important;
    }
    body.new-design-active .rc-device-group-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 50% !important;
    }
}
@media (max-width: 420px) {
    body.new-design-active .rc-device-group-modal .multiexpand .dropdown-menu.inner > li:not(.dropdown-header):not(.divider) {
        width: 100% !important;
    }
}

body.new-design-active .modal:has(.rc-device-group-delete-modal) {
    z-index: 12160 !important;
}

body.new-design-active:has(.modal.in .rc-device-group-modal) > .modal-backdrop:last-of-type {
    z-index: 12110 !important;
}

body.new-design-active:has(.modal.in .rc-device-group-delete-modal) > .modal-backdrop:last-of-type {
    z-index: 12150 !important;
}

/* Device groups management modal */
body.new-design-active .modal:has(.rc-device-groups-manage-modal) {
    z-index: 12060 !important;
}

body.new-design-active .rc-device-groups-manage-modal {
    width: min(720px, calc(100vw - 28px)) !important;
    max-width: none !important;
    margin: 32px auto !important;
}

body.new-design-active .rc-device-groups-manage-modal > .modal-content {
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .25) !important;
}

body.new-design-active .rc-device-groups-manage-modal > .modal-content > .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 68px !important;
    align-items: center !important;
    padding: 13px 54px 13px 20px !important;
    border-bottom: 1px solid #e4eaf2 !important;
    background: #fff !important;
}

body.new-design-active .rc-device-groups-manage-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 17px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-device-groups-manage-modal .modal-title > i {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    background: #edf4ff !important;
    color: #1265ef !important;
    font-size: 16px !important;
}

body.new-design-active .rc-device-groups-manage-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #637188 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-device-groups-manage-modal > .modal-content > .modal-body {
    min-height: 330px !important;
    max-height: calc(100vh - 160px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 18px 20px 22px !important;
    background: #fff !important;
}

body.new-design-active .rc-device-groups-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

body.new-design-active .rc-device-groups-search {
    position: relative !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.new-design-active .rc-device-groups-search > i {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 13px !important;
    color: #8795a9 !important;
    font-size: 12px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

body.new-design-active .rc-device-groups-search > .form-control {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #d5dfec !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #344054 !important;
    padding: 8px 13px 8px 36px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.new-design-active .rc-device-groups-search > .form-control:focus {
    border-color: #7ca9f8 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active .rc-device-groups-add {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #b8cdf0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #1265ef !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06) !important;
    font-size: 15px !important;
}

body.new-design-active .rc-device-groups-table-wrap {
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 11px !important;
}

body.new-design-active .rc-device-groups-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-device-groups-table > thead > tr > th {
    height: 44px !important;
    border: 0 !important;
    border-bottom: 1px solid #dce5f0 !important;
    background: #f3f6fa !important;
    color: #5d6d84 !important;
    padding: 10px 13px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-device-groups-table > tbody > tr > td {
    height: 52px !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf4 !important;
    background: #fff !important;
    color: #344054 !important;
    padding: 9px 13px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-device-groups-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active .rc-device-groups-table th.actions,
body.new-design-active .rc-device-groups-table td.actions {
    width: 92px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-device-group-table-action {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 5px !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.new-design-active .rc-device-group-table-edit {
    color: #1265ef !important;
}

body.new-design-active .rc-device-group-table-delete {
    color: #ef3340 !important;
}

body.new-design-active .rc-device-groups-pagination {
    margin: 12px 0 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-device-groups-pagination:empty {
    display: none !important;
}

body.new-design-active .rc-device-groups-manage-modal > .modal-content > .modal-footer {
    min-height: 66px !important;
    padding: 12px 20px !important;
    border-top: 1px solid #e4eaf2 !important;
    background: #f8fafc !important;
}

body.new-design-active .rc-device-groups-manage-modal .modal-footer .buttons {
    display: flex !important;
    justify-content: flex-end !important;
}

body.new-design-active .rc-device-groups-manage-modal .modal-footer .btn {
    min-width: 98px !important;
    height: 40px !important;
    margin: 0 !important;
    border: 1px solid #d7e0eb !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #52627a !important;
    padding: 8px 17px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

@media (max-width: 700px) {
    body.new-design-active .rc-device-groups-manage-modal {
        width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    body.new-design-active .rc-device-groups-manage-modal > .modal-content > .modal-body {
        min-height: 260px !important;
        max-height: calc(100dvh - 128px) !important;
        padding: 14px !important;
    }

    body.new-design-active .rc-device-groups-table > thead > tr > th,
    body.new-design-active .rc-device-groups-table > tbody > tr > td {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* History panel — standardized navigation tabs */
body.new-design-active #bottom-history .bottom-history-header {
    min-height: 62px !important;
    align-items: stretch !important;
    gap: 22px !important;
    padding: 0 14px !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs {
    min-height: 61px !important;
    align-items: stretch !important;
    gap: 22px !important;
    padding: 0 2px !important;
    scrollbar-width: none !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs::-webkit-scrollbar,
body.new-design-active #bottom-history .rc-history-view-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li {
    display: flex !important;
    min-height: 61px !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a {
    display: inline-flex !important;
    min-height: 61px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    box-shadow: none !important;
    padding: 10px 0 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a:hover {
    border-bottom-color: #b9cff8 !important;
    background: transparent !important;
    color: #17233a !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a,
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a:hover,
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #1265ef !important;
    box-shadow: none !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs {
    min-height: 61px !important;
    align-items: stretch !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li {
    display: flex !important;
    min-height: 61px !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close) {
    display: inline-flex !important;
    min-height: 61px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    box-shadow: none !important;
    padding: 10px 0 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close):hover {
    border-bottom-color: #b9cff8 !important;
    background: transparent !important;
    color: #17233a !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close),
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close):hover,
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close):focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #1265ef !important;
    box-shadow: none !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li:last-child {
    align-items: center !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs .btn-close {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #607089 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs .btn-close:hover {
    border-color: #bfd1ea !important;
    background: #eaf0f7 !important;
    color: #17233a !important;
}
@media (max-width: 767px) {
    body.new-design-active #bottom-history .bottom-history-header {
        gap: 0 !important;
        padding: 0 8px !important;
    }
    body.new-design-active #bottom-history .rc-history-view-tabs {
        min-height: 50px !important;
        gap: 18px !important;
    }
    body.new-design-active #bottom-history .rc-history-view-tabs > li,
    body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close) {
        min-height: 50px !important;
    }
    body.new-design-active #bottom-history .rc-history-sensor-tabs {
        min-height: 48px !important;
        gap: 20px !important;
        border-top: 1px solid #eef2f7 !important;
    }
    body.new-design-active #bottom-history .rc-history-sensor-tabs > li,
    body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a {
        min-height: 48px !important;
    }
}

/* History tabs — compact icon/underline standard */
body.new-design-active #bottom-history .bottom-history-header {
    min-height: 56px !important;
    gap: 24px !important;
    padding: 0 18px !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs {
    min-height: 55px !important;
    gap: 26px !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li,
body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a {
    min-height: 55px !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a {
    gap: 7px !important;
    color: #66758f !important;
    padding: 9px 0 8px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a .rc-history-tab-icon {
    width: 14px !important;
    flex: 0 0 14px !important;
    color: #66758f !important;
    font-size: 12px !important;
    text-align: center !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a,
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a:hover,
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a:focus {
    color: #17233a !important;
}
body.new-design-active #bottom-history .rc-history-sensor-tabs > li.active > a .rc-history-tab-icon {
    color: #17233a !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs {
    min-height: 55px !important;
    gap: 22px !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li,
body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close) {
    min-height: 55px !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close) {
    color: #66758f !important;
    padding: 9px 0 8px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close),
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close):hover,
body.new-design-active #bottom-history .rc-history-view-tabs > li.active > a:not(.btn-close):focus {
    color: #17233a !important;
}
body.new-design-active #bottom-history .rc-history-view-tabs .btn-close {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
}
@media (max-width: 767px) {
    body.new-design-active #bottom-history .bottom-history-header {
        padding: 0 10px !important;
    }
    body.new-design-active #bottom-history .rc-history-view-tabs {
        min-height: 46px !important;
        gap: 18px !important;
    }
    body.new-design-active #bottom-history .rc-history-view-tabs > li,
    body.new-design-active #bottom-history .rc-history-view-tabs > li > a:not(.btn-close) {
        min-height: 46px !important;
    }
    body.new-design-active #bottom-history .rc-history-sensor-tabs {
        min-height: 46px !important;
        gap: 22px !important;
    }
    body.new-design-active #bottom-history .rc-history-sensor-tabs > li,
    body.new-design-active #bottom-history .rc-history-sensor-tabs > li > a {
        min-height: 46px !important;
    }
}

/* History tabs — definitive removal of legacy pill styling */
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs {
    min-height: 52px !important;
    align-items: stretch !important;
    gap: 24px !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 2px !important;
}
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li {
    min-height: 52px !important;
    align-items: stretch !important;
    margin: 0 !important;
}
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li > a {
    display: inline-flex !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    box-shadow: none !important;
    padding: 9px 0 8px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 18px !important;
}
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li > a:hover {
    border-bottom-color: #b9cff8 !important;
    background: transparent !important;
    color: #17233a !important;
}
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li.active > a,
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li.active > a:hover,
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li.active > a:focus {
    border: 0 !important;
    border-bottom: 2px solid #1265ef !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #17233a !important;
    box-shadow: none !important;
}
body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li > a .rc-history-tab-icon {
    color: currentColor !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs {
    min-height: 52px !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li {
    min-height: 52px !important;
    align-items: stretch !important;
    margin: 0 !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li > a:not(.btn-close) {
    display: inline-flex !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    box-shadow: none !important;
    padding: 9px 0 8px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 18px !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li > a:not(.btn-close):hover {
    border-bottom-color: #b9cff8 !important;
    background: transparent !important;
    color: #17233a !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li.active > a:not(.btn-close),
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li.active > a:not(.btn-close):hover,
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li.active > a:not(.btn-close):focus {
    border: 0 !important;
    border-bottom: 2px solid #1265ef !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #17233a !important;
    box-shadow: none !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li:last-child {
    align-items: center !important;
}
body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs .btn-close {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 9px !important;
    background: #f4f7fb !important;
    color: #607089 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
@media (max-width: 767px) {
    body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs,
    body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs {
        min-height: 46px !important;
    }
    body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li,
    body.new-design-active #bottom-history .bottom-history-header > #graph_sensors.rc-history-sensor-tabs > li > a,
    body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li,
    body.new-design-active #bottom-history .bottom-history-header > ul.nav-tabs.pull-right.rc-history-view-tabs > li > a:not(.btn-close) {
        min-height: 46px !important;
    }
}

/* Dispositivos — largura, seleção de usuários e galeria de ícones. */
@media (min-width: 768px) {
    body.new-design-active .rc-device-form-dialog {
        width: min(980px, calc(100vw - 28px)) !important;
    }
}

body.new-design-active .rc-device-form-dialog .rc-device-users-tab.active,
body.new-design-active .rc-device-form-dialog .rc-device-users-selector {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-client-devices-selector-title {
    display: flex !important;
    min-height: 26px !important;
    align-items: center !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active .rc-device-form-dialog .rc-client-devices-selector-title > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

body.new-design-active .rc-device-form-dialog .rc-client-devices-selector-title label {
    margin: 0 !important;
    color: #1e2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .bootstrap-select.form-control.multiexpand {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: hidden !important;
    border: 1px solid #d4deeb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand > .dropdown-toggle {
    display: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand > .dropdown-menu {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    grid-template-columns: minmax(180px, 1fr) minmax(300px, auto) !important;
    grid-template-rows: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-searchbox,
body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox {
    width: auto !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-searchbox {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-searchbox .form-control {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox .btn-group {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    gap: 4px !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox .btn {
    display: inline-flex !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 1 1 50% !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f2f4f7 !important;
    color: #586579 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li {
    width: 50% !important;
    min-height: 34px !important;
    float: left !important;
    margin: 0 !important;
    padding: 1px 4px !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 32px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #344054 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li > a > .check-mark {
    display: none !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li > a .text {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 20px !important;
    padding-left: 21px !important;
    overflow: hidden !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li > a .text::before {
    position: absolute !important;
    top: 50% !important;
    left: 1px !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid #cfd7e2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li > a .text::after {
    position: absolute !important;
    top: 50% !important;
    left: 6px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    box-sizing: border-box !important;
    content: "" !important;
    opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li.selected > a .text::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}

body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li.selected > a .text::after {
    opacity: 1 !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    place-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline > input[type="radio"],
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline > input[type="radio"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline > label,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline > label {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9px !important;
    overflow: hidden !important;
    border: 1px solid #d9e2ed !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline > label::before,
body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline > label::after,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline > label::before,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline > label::after {
    display: none !important;
    content: none !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list > .checkbox-inline > input[type="radio"]:checked + label,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list > .checkbox-inline > input[type="radio"]:checked + label {
    border-color: #1265ef !important;
    background: #edf4ff !important;
    box-shadow: 0 0 0 2px rgba(18, 101, 239, .10) !important;
}

body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list img,
body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list img {
    display: block !important;
    max-width: 64px !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

@media (max-width: 600px) {
    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .bootstrap-select.form-control.multiexpand {
        height: 280px !important;
        min-height: 280px !important;
    }

    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand > .dropdown-menu {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 40px 40px minmax(0, 1fr) !important;
    }

    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-searchbox,
    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox {
        grid-column: 1 !important;
    }

    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .bs-actionsbox {
        grid-row: 2 !important;
    }

    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner {
        top: 88px !important;
    }

    body.new-design-active .rc-device-form-dialog .rc-device-users-selector .multiexpand .dropdown-menu.inner > li {
        width: 100% !important;
        float: none !important;
    }

    body.new-design-active .rc-device-form-dialog #device-form-icons .icon-list,
    body.new-design-active .rc-device-form-dialog #device-add-form-icons .icon-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
        gap: 8px !important;
    }
}

/* Relatórios — modal, formulário, abas e tabelas. */
body.new-design-active .rc-reports-modal {
    width: min(780px, calc(100vw - 28px)) !important;
    max-width: none !important;
    margin: 22px auto !important;
}

/* O daterangepicker e anexado ao body; deve permanecer acima do modal e backdrop. */
body.new-design-active .daterangepicker.rc-reports-date-picker,
body.new-design-active.rc-reports-calendar-open .daterangepicker,
body.new-design-active:has(#reports_create.in) .daterangepicker {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

body.new-design-active .rc-reports-modal > .modal-content {
    overflow: hidden !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .25) !important;
}

body.new-design-active .rc-reports-modal > .modal-content > .modal-header {
    display: flex !important;
    min-height: 68px !important;
    align-items: center !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
}

body.new-design-active .rc-reports-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 17px !important;
    font-weight: 750 !important;
}

body.new-design-active .rc-reports-modal .modal-title > .icon {
    display: inline-grid !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #edf4ff !important;
    color: #1265ef !important;
    font-size: 16px !important;
    line-height: 40px !important;
}

body.new-design-active .rc-reports-modal .modal-header .close {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    order: 2 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f3f6fa !important;
    color: #64748b !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

body.new-design-active .rc-reports-modal > .modal-content > .modal-body {
    max-height: calc(100vh - 156px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-reports-modal .rc-reports-tabs {
    display: flex !important;
    min-height: 58px !important;
    align-items: flex-end !important;
    gap: 24px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 10px 22px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.new-design-active .rc-reports-modal .rc-reports-tabs::-webkit-scrollbar {
    display: none !important;
}

body.new-design-active .rc-reports-modal .rc-reports-tabs > li {
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-tabs > li > a {
    display: inline-flex !important;
    min-height: 47px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 10px 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66758f !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-tabs > li.active > a,
body.new-design-active .rc-reports-modal .rc-reports-tabs > li.active > a:hover,
body.new-design-active .rc-reports-modal .rc-reports-tabs > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    background: transparent !important;
    color: #17233a !important;
}

body.new-design-active .rc-reports-modal #reports-modal,
body.new-design-active .rc-reports-modal #report_form {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-content {
    min-height: 450px !important;
    padding: 20px 24px 24px !important;
    background: #fff !important;
}

body.new-design-active .rc-reports-modal .rc-reports-basic-row,
body.new-design-active .rc-reports-modal .rc-reports-filter-row,
body.new-design-active .rc-reports-modal .rc-reports-delivery-row,
body.new-design-active .rc-reports-modal .rc-reports-options-row,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 0 16px !important;
}

body.new-design-active .rc-reports-modal .rc-reports-basic-row::before,
body.new-design-active .rc-reports-modal .rc-reports-basic-row::after,
body.new-design-active .rc-reports-modal .rc-reports-filter-row::before,
body.new-design-active .rc-reports-modal .rc-reports-filter-row::after,
body.new-design-active .rc-reports-modal .rc-reports-delivery-row::before,
body.new-design-active .rc-reports-modal .rc-reports-delivery-row::after,
body.new-design-active .rc-reports-modal .rc-reports-options-row::before,
body.new-design-active .rc-reports-modal .rc-reports-options-row::after,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row::before,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row::after,
body.new-design-active .rc-reports-modal .rc-reports-filter-row .form-group::before,
body.new-design-active .rc-reports-modal .rc-reports-filter-row .form-group::after {
    display: none !important;
    content: none !important;
}

body.new-design-active .rc-reports-modal .rc-reports-basic-row,
body.new-design-active .rc-reports-modal .rc-reports-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.new-design-active .rc-reports-modal .rc-reports-basic-row > .col-sm-12 {
    grid-column: 1 / -1 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-delivery-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-row,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-row > .col-md-2,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row > .col-md-2 {
    grid-column: span 2 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-row > .col-md-3,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row > .col-md-3 {
    grid-column: span 3 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-basic-row > [class*="col-"],
body.new-design-active .rc-reports-modal .rc-reports-filter-row > [class*="col-"],
body.new-design-active .rc-reports-modal .rc-reports-delivery-row > [class*="col-"],
body.new-design-active .rc-reports-modal .rc-reports-options-row > [class*="col-"],
body.new-design-active .rc-reports-modal .rc-reports-options-values-row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-reports-modal .form-group {
    margin: 0 0 16px !important;
}

body.new-design-active .rc-reports-modal .form-group > label,
body.new-design-active .rc-reports-modal .control-label {
    display: block !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    color: #1e2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 17px !important;
    text-align: left !important;
}

body.new-design-active .rc-reports-modal .rc-reports-filter-row > [class*="col-"] > .form-group {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

body.new-design-active .rc-reports-modal .rc-reports-filter-row .control-label {
    width: auto !important;
    margin: 0 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-filter-row .form-group > [class*="col-sm-"] {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-reports-modal .form-control,
body.new-design-active .rc-reports-modal .bootstrap-select.form-control,
body.new-design-active .rc-reports-modal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border: 1px solid #d4deeb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #485a75 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.new-design-active .rc-reports-modal .bootstrap-select.form-control {
    border: 0 !important;
    background: transparent !important;
}

body.new-design-active .rc-reports-modal .bootstrap-select > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    padding: 7px 34px 7px 12px !important;
}

body.new-design-active .rc-reports-modal .form-control:focus,
body.new-design-active .rc-reports-modal .bootstrap-select.open > .dropdown-toggle,
body.new-design-active .rc-reports-modal .bootstrap-select > .dropdown-toggle:focus {
    border-color: #8bb5ff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active .rc-reports-modal .bootstrap-select > .dropdown-menu {
    margin-top: 5px !important;
    padding: 6px !important;
    border: 1px solid #dce4ee !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
}

body.new-design-active .rc-reports-modal .has-feedback .form-control {
    padding-left: 38px !important;
}

body.new-design-active .rc-reports-modal .has-feedback .form-control-feedback {
    top: 0 !important;
    left: 0 !important;
    width: 38px !important;
    height: 40px !important;
    color: #66758f !important;
    line-height: 40px !important;
}

body.new-design-active .rc-reports-modal .section-line {
    margin: 4px 0 18px !important;
    border-color: #e7edf5 !important;
}

body.new-design-active .rc-reports-modal #report-additional {
    margin-right: -8px !important;
    margin-left: -8px !important;
}

body.new-design-active .rc-reports-modal #report-additional > [class*="col-"] {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

body.new-design-active .rc-reports-modal .checkbox {
    position: relative !important;
    display: flex !important;
    min-height: 22px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-reports-modal .checkbox > input[type="checkbox"] {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-reports-modal .checkbox > label {
    position: relative !important;
    display: flex !important;
    min-height: 22px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 0 0 22px !important;
    color: #344054 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 15px !important;
    cursor: pointer !important;
}

body.new-design-active .rc-reports-modal .checkbox > label::before {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    border: 1.5px solid #cfd7e2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-reports-modal .checkbox > label::after {
    position: absolute !important;
    top: 50% !important;
    left: 5px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    content: "" !important;
    opacity: 0 !important;
    transform: translateY(-60%) rotate(45deg) !important;
}

body.new-design-active .rc-reports-modal .checkbox > input[type="checkbox"]:checked + label::before {
    border-color: #555b62 !important;
    background: #555b62 !important;
}

body.new-design-active .rc-reports-modal .checkbox > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-row {
    align-items: center !important;
    padding-top: 2px !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-values-row {
    align-items: start !important;
}

body.new-design-active .rc-reports-modal .rc-reports-options-row .form-group,
body.new-design-active .rc-reports-modal .rc-reports-options-values-row .form-group {
    margin-bottom: 10px !important;
}

body.new-design-active .rc-reports-modal #reports-form-generated-reports,
body.new-design-active .rc-reports-modal #reports-form-report-logs {
    min-height: 390px !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table-wrap {
    width: 100% !important;
    min-height: 250px !important;
    overflow: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table {
    min-width: 760px !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table > thead > tr > th {
    height: 42px !important;
    padding: 10px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #f3f6fa !important;
    color: #65758b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table > tbody > tr > td {
    height: 46px !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table > tbody > tr:hover > td {
    background: #f8fbff !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table td.actions {
    width: 92px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table-action {
    display: inline-grid !important;
    width: 32px !important;
    height: 32px !important;
    place-items: center !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #1265ef !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table-edit:hover,
body.new-design-active .rc-reports-modal .rc-reports-table-download:hover {
    border-color: #bfd4ff !important;
    background: #edf4ff !important;
    color: #1265ef !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table-delete {
    border-color: #f6d1d5 !important;
    color: #e5484d !important;
}

body.new-design-active .rc-reports-modal .rc-reports-table-delete:hover {
    border-color: #ffc8ca !important;
    background: #fff0f0 !important;
    color: #d92332 !important;
}

body.new-design-active .rc-reports-modal .nav-pagination {
    min-height: 38px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.new-design-active .rc-reports-modal > .modal-content > .modal-footer {
    min-height: 66px !important;
    padding: 11px 18px !important;
    border-top: 1px solid #dce4ee !important;
    background: #fbfcfe !important;
}

body.new-design-active .rc-reports-modal .modal-footer .buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.new-design-active .rc-reports-modal .modal-footer .btn {
    min-width: 88px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-reports-modal .modal-footer .btn-action.generate {
    border-color: #2699df !important;
    background: #2699df !important;
    color: #fff !important;
}

body.new-design-active .rc-reports-modal .modal-footer .btn-default {
    border-color: #d7e0eb !important;
    background: #fff !important;
    color: #52627a !important;
}

body.new-design-active .rc-reports-modal .modal-footer .btn-default.save {
    border-color: #bfd4ff !important;
    color: #1265ef !important;
}

@media (max-width: 767px) {
    body.new-design-active .rc-reports-modal {
        width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    body.new-design-active .rc-reports-modal > .modal-content > .modal-header {
        min-height: 62px !important;
        padding: 10px 14px !important;
    }

    body.new-design-active .rc-reports-modal .modal-title {
        font-size: 16px !important;
    }

    body.new-design-active .rc-reports-modal .modal-title > .icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
        line-height: 36px !important;
    }

    body.new-design-active .rc-reports-modal > .modal-content > .modal-body {
        max-height: calc(100dvh - 130px) !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-tabs {
        min-height: 54px !important;
        gap: 18px !important;
        padding: 7px 14px 0 !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-content {
        min-height: 360px !important;
        padding: 16px 14px 20px !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-basic-row,
    body.new-design-active .rc-reports-modal .rc-reports-filter-row,
    body.new-design-active .rc-reports-modal .rc-reports-delivery-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-filter-row > [class*="col-"] > .form-group {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-options-row,
    body.new-design-active .rc-reports-modal .rc-reports-options-values-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 12px !important;
    }

    body.new-design-active .rc-reports-modal .rc-reports-options-row > [class*="col-"],
    body.new-design-active .rc-reports-modal .rc-reports-options-values-row > [class*="col-"] {
        grid-column: auto !important;
    }

    body.new-design-active .rc-reports-modal .modal-footer .buttons {
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    body.new-design-active .rc-reports-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 calc(50% - 4px) !important;
    }
}

/* Account settings — unified modal, tabs, fields and tabular content. */
body.new-design-active .rc-settings-modal {
    width: min(1040px, calc(100vw - 28px)) !important;
    max-width: none !important;
    margin: 18px auto !important;
}

body.new-design-active .rc-settings-modal > .modal-content {
    display: flex !important;
    max-height: calc(100vh - 36px) !important;
    max-height: calc(100dvh - 36px) !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .24) !important;
}

body.new-design-active .rc-settings-modal > .modal-content > .modal-header {
    position: relative !important;
    display: flex !important;
    min-height: 72px !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    padding: 14px 58px 14px 20px !important;
    border-bottom: 1px solid #e3e9f1 !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    color: #17233a !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
}

body.new-design-active .rc-settings-modal .modal-title > i {
    position: static !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    color: #1265ef !important;
    background: #edf4ff !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

body.new-design-active .rc-settings-modal .modal-header .close {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #64748b !important;
    background: #f3f6fa !important;
    font-size: 21px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-settings-modal > .modal-content > .modal-body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs {
    position: sticky !important;
    z-index: 5 !important;
    top: 0 !important;
    display: flex !important;
    min-height: 60px !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 23px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 13px 22px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs > li {
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs > li > a {
    display: inline-flex !important;
    min-height: 46px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 10px 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #66758f !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs > li > a > i {
    width: 14px !important;
    color: inherit !important;
    text-align: center !important;
}

body.new-design-active .rc-settings-modal .rc-settings-tabs > li.active > a,
body.new-design-active .rc-settings-modal .rc-settings-tabs > li.active > a:hover,
body.new-design-active .rc-settings-modal .rc-settings-tabs > li.active > a:focus {
    border-bottom-color: #1265ef !important;
    color: #17233a !important;
    background: transparent !important;
}

body.new-design-active .rc-settings-modal .rc-settings-form {
    width: 100% !important;
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-content {
    min-height: 430px !important;
    margin: 0 !important;
    padding: 20px 24px 26px !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 20px !important;
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid::before,
body.new-design-active .rc-settings-modal .rc-settings-main-grid::after {
    display: none !important;
    content: none !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid > [class*="col-"] {
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    padding: 0 !important;
}

body.new-design-active .rc-settings-modal .form-group {
    margin: 0 0 17px !important;
}

body.new-design-active .rc-settings-modal .form-group > label,
body.new-design-active .rc-settings-modal .control-label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #1e2b43 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.new-design-active .rc-settings-modal .form-control,
body.new-design-active .rc-settings-modal .bootstrap-select:not(.multiexpand) > .dropdown-toggle {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 1px solid #d4deeb !important;
    border-radius: 9px !important;
    color: #485a75 !important;
    background: #fff !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    line-height: 22px !important;
    box-shadow: none !important;
}

body.new-design-active .rc-settings-modal textarea.form-control {
    height: auto !important;
    min-height: 88px !important;
    resize: vertical !important;
}

body.new-design-active .rc-settings-modal .bootstrap-select.form-control:not(.multiexpand) {
    height: 42px !important;
    min-height: 42px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.new-design-active .rc-settings-modal .form-control:focus,
body.new-design-active .rc-settings-modal .bootstrap-select.open > .dropdown-toggle {
    border-color: #7ca9f8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(18, 101, 239, .10) !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid .form-group > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid .form-group > .row::before,
body.new-design-active .rc-settings-modal .rc-settings-main-grid .form-group > .row::after {
    display: none !important;
    content: none !important;
}

body.new-design-active .rc-settings-modal .rc-settings-main-grid .form-group > .row > [class*="col-"] {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-divider {
    height: 1px !important;
    margin: 4px 0 17px !important;
    border: 0 !important;
    background: #e6ebf2 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-tab {
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading,
body.new-design-active .rc-settings-modal .rc-settings-client-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    clear: both !important;
    margin: 0 0 18px !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading::before,
body.new-design-active .rc-settings-modal .rc-settings-client-heading::after,
body.new-design-active .rc-settings-modal .rc-settings-client-row::before,
body.new-design-active .rc-settings-modal .rc-settings-client-row::after {
    display: none !important;
    content: none !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading > [class*="col-"],
body.new-design-active .rc-settings-modal .rc-settings-client-row > [class*="col-"] {
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    padding: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading > .col-sm-12,
body.new-design-active .rc-settings-modal .rc-settings-client-row > .col-sm-12 {
    grid-column: 1 / -1 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading {
    margin-bottom: 14px !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-heading h4 {
    margin: 0 !important;
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-client-row > [class*="col-"] > .form-group {
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .rc-settings-section-title,
body.new-design-active .rc-settings-modal .tab-pane > h4,
body.new-design-active .rc-settings-modal .tab-pane h5 {
    margin: 0 0 12px !important;
    color: #17233a !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

body.new-design-active .rc-settings-modal .checkbox,
body.new-design-active .rc-settings-modal .checkbox-inline {
    position: relative !important;
    display: inline-flex !important;
    min-height: 24px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-settings-modal .checkbox > input[type="checkbox"],
body.new-design-active .rc-settings-modal .checkbox-inline > input[type="checkbox"] {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-settings-modal .checkbox > label,
body.new-design-active .rc-settings-modal .checkbox-inline > label {
    position: relative !important;
    display: inline-flex !important;
    min-height: 24px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 0 0 29px !important;
    color: #344054 !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

body.new-design-active .rc-settings-modal .checkbox > label::before,
body.new-design-active .rc-settings-modal .checkbox-inline > label::before {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 1.5px solid #c8d3e1 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    content: "" !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-settings-modal .checkbox > label::after,
body.new-design-active .rc-settings-modal .checkbox-inline > label::after {
    position: absolute !important;
    top: 50% !important;
    left: 6px !important;
    width: 6px !important;
    height: 10px !important;
    margin: -6px 0 0 !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    content: "" !important;
    opacity: 0 !important;
    transform: rotate(45deg) !important;
}

body.new-design-active .rc-settings-modal .checkbox > input[type="checkbox"]:checked + label::before,
body.new-design-active .rc-settings-modal .checkbox-inline > input[type="checkbox"]:checked + label::before {
    border-color: #1265ef !important;
    background: #1265ef !important;
}

body.new-design-active .rc-settings-modal .checkbox > input[type="checkbox"]:checked + label::after,
body.new-design-active .rc-settings-modal .checkbox-inline > input[type="checkbox"]:checked + label::after {
    opacity: 1 !important;
}

body.new-design-active .rc-settings-modal .dashboard-widget {
    display: flex !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    border: 1px solid #e0e7f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
}

body.new-design-active .rc-settings-modal .dashboard-widget .pull-left,
body.new-design-active .rc-settings-modal .dashboard-widget .pull-right {
    float: none !important;
}

body.new-design-active .rc-settings-modal .dashboard-widget .sortdragger {
    display: inline-flex !important;
    width: 30px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    color: #66758f !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal .tab-pane > .action-block {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
}

body.new-design-active .rc-settings-modal .action-block .panel-form {
    width: min(340px, 100%) !important;
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .action-block .form-group {
    margin: 0 !important;
}

body.new-design-active .rc-settings-modal .action-block .form-group.search {
    position: relative !important;
}

body.new-design-active .rc-settings-modal .action-block .form-group.search::before {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 13px !important;
    color: #8491a4 !important;
    content: "\f002" !important;
    font-family: FontAwesome !important;
    font-size: 12px !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

body.new-design-active .rc-settings-modal .action-block .form-group.search .form-control {
    padding-left: 36px !important;
}

body.new-design-active .rc-settings-modal .action-block > .btn-action {
    display: inline-flex !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    border: 1px solid #1265ef !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: #1265ef !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-settings-modal [data-table] {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 11px !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal [data-table] .table-responsive {
    margin: 0 !important;
    overflow-x: auto !important;
    border: 0 !important;
}

body.new-design-active .rc-settings-modal [data-table] table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal [data-table] table > thead > tr > th {
    height: 42px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #66758f !important;
    background: #f3f6fa !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-settings-modal [data-table] table > tbody > tr > td {
    height: 46px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    color: #344054 !important;
    background: #fff !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

body.new-design-active .rc-settings-modal [data-table] table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.new-design-active .rc-settings-modal [data-table] table > tbody > tr:hover > td {
    background: #f8fafc !important;
}

body.new-design-active .rc-settings-modal [data-table] td.actions {
    min-width: 82px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.new-design-active .rc-settings-modal [data-table] td.actions > .btn,
body.new-design-active .rc-settings-modal [data-table] td.actions > .btn-group > .btn,
body.new-design-active .rc-settings-modal [data-table] .rc-device-group-table-action {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 5px !important;
    border: 1px solid #d6e1ef !important;
    border-radius: 9px !important;
    color: #1265ef !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

body.new-design-active .rc-settings-modal [data-table] td.actions > [class*="trash"],
body.new-design-active .rc-settings-modal [data-table] .rc-device-group-table-delete {
    border-color: #fecaca !important;
    color: #ef3340 !important;
    background: #fff !important;
}

body.new-design-active .rc-settings-modal .nav-pagination {
    display: flex !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.new-design-active .rc-settings-modal .nav-pagination .pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.new-design-active .rc-settings-modal .nav-pagination .pagination > li > a,
body.new-design-active .rc-settings-modal .nav-pagination .pagination > li > span {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 9px !important;
    color: #53637a !important;
    background: #fff !important;
    padding: 0 !important;
    font-size: 11px !important;
}

body.new-design-active .rc-settings-modal .nav-pagination .pagination > .active > a,
body.new-design-active .rc-settings-modal .nav-pagination .pagination > .active > span {
    border-color: #1265ef !important;
    color: #fff !important;
    background: #1265ef !important;
}

body.new-design-active .rc-settings-modal > .modal-content > .modal-footer {
    min-height: 66px !important;
    flex: 0 0 auto !important;
    padding: 11px 18px !important;
    border-top: 1px solid #dce4ee !important;
    background: #fbfcfe !important;
}

body.new-design-active .rc-settings-modal .modal-footer .buttons {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 10px !important;
}

body.new-design-active .rc-settings-modal .modal-footer .btn {
    display: inline-flex !important;
    min-width: 108px !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.new-design-active .rc-settings-modal .modal-footer .btn-action {
    border-color: #2699df !important;
    color: #fff !important;
    background: #2699df !important;
}

body.new-design-active .rc-settings-modal .modal-footer .btn-default {
    border-color: #d7e0eb !important;
    color: #52627a !important;
    background: #fff !important;
}

@media (max-width: 900px) {
    body.new-design-active .rc-settings-modal .rc-settings-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body.new-design-active .rc-settings-modal {
        width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    body.new-design-active .rc-settings-modal > .modal-content {
        max-height: calc(100vh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 13px !important;
    }

    body.new-design-active .rc-settings-modal > .modal-content > .modal-header {
        min-height: 64px !important;
        padding: 11px 54px 11px 14px !important;
    }

    body.new-design-active .rc-settings-modal .modal-title {
        gap: 10px !important;
        font-size: 16px !important;
    }

    body.new-design-active .rc-settings-modal .modal-title > i {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    body.new-design-active .rc-settings-modal .modal-header .close {
        right: 13px !important;
    }

    body.new-design-active .rc-settings-modal .rc-settings-tabs {
        min-height: 54px !important;
        gap: 18px !important;
        padding: 7px 14px 0 !important;
    }

    body.new-design-active .rc-settings-modal .rc-settings-content {
        min-height: 360px !important;
        padding: 16px 14px 20px !important;
    }

    body.new-design-active .rc-settings-modal .rc-settings-main-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.new-design-active .rc-settings-modal .rc-settings-client-heading,
    body.new-design-active .rc-settings-modal .rc-settings-client-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body.new-design-active .rc-settings-modal .tab-pane > .action-block {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.new-design-active .rc-settings-modal .action-block .panel-form,
    body.new-design-active .rc-settings-modal .tab-pane > .action-block > .btn-action {
        width: 100% !important;
    }

    body.new-design-active .rc-settings-modal .modal-footer .buttons {
        width: 100% !important;
    }

    body.new-design-active .rc-settings-modal .modal-footer .btn {
        min-width: 0 !important;
        flex: 1 1 50% !important;
    }
}
