.system-state-popover.e-tooltip-wrap {
    background-color: #365d70 !important;
    border: 0 !important;
    width: 320px !important;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    color: #fff;
}

.system-state-popover .e-tip-content {
    padding: 0;
}

.system-state-popover .popover-header {
    background: transparent;
    color: #fff;
    border-bottom: 1px solid #ffffff55;
    padding: 10px 12px 10px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.system-state-popover .popover-body {
    color: #fff;
    padding: 0 16px 12px;
}

.system-state-popover .popover-header > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.system-state-popover .e-tooltip-close {
    display: none !important;
}

.system-state-popover .system-state-close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.system-state-popover .system-state-close:hover {
    background: #ffffff20;
}

.system-state-popover button:focus-visible,
.system-state-trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.system-state-popover .e-arrow-tip-inner {
    display: none;
}

.system-state-popover .system-partition {
    padding: 12px 0;
}

.system-state-popover .system-partition + .system-partition {
    border-top: 1px solid #ffffff35;
}

.system-state-popover .system-state-row,
.system-state-popover .smart-active,
.system-state-popover .smart-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.system-state-popover .system-state-row {
    justify-content: space-between;
    margin: 5px 0 8px;
}

.system-state-popover .system-state-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 22px;
    color: #fff;
}

.system-state-popover .system-state-label {
    color: #ffb568;
    text-transform: uppercase;
}

.system-state-popover .smart-title,
.system-state-popover .smart-hint,
.system-state-popover .smart-active {
    font-size: 12px;
}

.system-state-popover .smart-title {
    margin-bottom: 4px;
}

.system-state-popover .smart-controls label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.system-state-popover select,
.system-state-popover input[type="number"] {
    padding: 5px 7px;
    background: #fff;
    color: #274f63;
    border: 1px solid #e3e7ea;
    border-radius: 4px;
    font: inherit;
    min-width: 0;
}

.system-state-popover input[type="number"] {
    width: 72px;
}

.system-state-popover .smart-button {
    padding: 5px 9px;
    color: #fff;
    background: transparent;
    border: 1px solid #ffffff70;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}

.system-state-popover .smart-button:disabled {
    opacity: .5;
    cursor: default;
}

.system-state-popover .smart-primary {
    background: #f19738;
    border-color: #f19738;
    color: #243f50;
}

.system-state-popover .smart-hint {
    margin-top: 5px;
    color: #e0e9ef;
}

.system-state-popover .smart-active {
    justify-content: space-between;
    color: #ffca94;
}

.system-state-popover .smart-error {
    color: #fff;
    margin-top: 8px;
}

.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch .e-switch-inner,
.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch .e-switch-off {
    background: #718895 !important;
    border-color: #718895 !important;
    color: #fff !important;
}

.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch .e-switch-inner.e-switch-active,
.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch .e-switch-on {
    background: #1f9367 !important;
    border-color: #1f9367 !important;
    color: #fff !important;
}

.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch .e-switch-handle,
.system-state-popover.e-tooltip-wrap .e-switch-wrapper.system-state-switch:hover .e-switch-handle {
    background: #fff !important;
    box-shadow: none;
}

.system-state-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.smart-state-indicator {
    font-size: 11px;
    white-space: nowrap;
    color: #274f63;
}

@media (pointer: coarse) {
    .system-state-popover .system-state-close,
    .system-state-popover .smart-button,
    .system-state-popover select,
    .system-state-popover input[type="number"] {
        min-width: 44px;
        min-height: 44px;
    }
}
