@import url("colors.css");

/* Workaround for material-ui css being injected into the shadow root,
and no longer in the head.  Elements that are attached to the body
are not aware of the styling (like popup menus) */

.MuiPaper-root {
    color: var(--text-default);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    background-color: var(--background-default);
}
.MuiPaper-rounded {
    border-radius: 4px;
}
.MuiPaper-outlined {
    border: 1px solid var(--border-gray);
}
.MuiPaper-elevation0 {
    box-shadow: none;
}
.MuiPaper-elevation1 {
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
        0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation2 {
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
        0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation3 {
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
        0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation4 {
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
        0px 4px 5px 0px rgba(0, 0, 0, 0.14),
        0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation5 {
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
        0px 5px 8px 0px rgba(0, 0, 0, 0.14),
        0px 1px 14px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation6 {
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
        0px 6px 10px 0px rgba(0, 0, 0, 0.14),
        0px 1px 18px 0px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation7 {
    box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2),
        0px 7px 10px 1px rgba(0, 0, 0, 0.14),
        0px 2px 16px 1px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation8 {
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
        0px 8px 10px 1px rgba(0, 0, 0, 0.14),
        0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation9 {
    box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2),
        0px 9px 12px 1px rgba(0, 0, 0, 0.14),
        0px 3px 16px 2px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation10 {
    box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2),
        0px 10px 14px 1px rgba(0, 0, 0, 0.14),
        0px 4px 18px 3px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation11 {
    box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2),
        0px 11px 15px 1px rgba(0, 0, 0, 0.14),
        0px 4px 20px 3px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation12 {
    box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2),
        0px 12px 17px 2px rgba(0, 0, 0, 0.14),
        0px 5px 22px 4px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation13 {
    box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2),
        0px 13px 19px 2px rgba(0, 0, 0, 0.14),
        0px 5px 24px 4px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation14 {
    box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2),
        0px 14px 21px 2px rgba(0, 0, 0, 0.14),
        0px 5px 26px 4px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation15 {
    box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2),
        0px 15px 22px 2px rgba(0, 0, 0, 0.14),
        0px 6px 28px 5px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation16 {
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2),
        0px 16px 24px 2px rgba(0, 0, 0, 0.14),
        0px 6px 30px 5px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation17 {
    box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2),
        0px 17px 26px 2px rgba(0, 0, 0, 0.14),
        0px 6px 32px 5px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation18 {
    box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2),
        0px 18px 28px 2px rgba(0, 0, 0, 0.14),
        0px 7px 34px 6px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation19 {
    box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2),
        0px 19px 29px 2px rgba(0, 0, 0, 0.14),
        0px 7px 36px 6px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation20 {
    box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2),
        0px 20px 31px 3px rgba(0, 0, 0, 0.14),
        0px 8px 38px 7px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation21 {
    box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2),
        0px 21px 33px 3px rgba(0, 0, 0, 0.14),
        0px 8px 40px 7px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation22 {
    box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2),
        0px 22px 35px 3px rgba(0, 0, 0, 0.14),
        0px 8px 42px 7px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation23 {
    box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2),
        0px 23px 36px 3px rgba(0, 0, 0, 0.14),
        0px 9px 44px 8px rgba(0, 0, 0, 0.12);
}
.MuiPaper-elevation24 {
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
        0px 24px 38px 3px rgba(0, 0, 0, 0.14),
        0px 9px 46px 8px rgba(0, 0, 0, 0.12);
}

@media print {
    .MuiButtonBase-root {
        -webkit-print-color-adjust: exact;
    }
}

.MuiPopover-paper {
    outline: 0;
    position: absolute;
    max-width: calc(100% - 32px);
    min-width: 16px;
    max-height: calc(100% - 32px);
    min-height: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

.MuiTooltip-popper {
  z-index: 1500;
  pointer-events: none;
  padding: 8px !important;
  margin: 8px !important;
}

.MuiTooltip-popperInteractive {
  pointer-events: auto;
}
.MuiTooltip-popperArrow[x-placement*="bottom"] .MuiTooltip-arrow {
  top: 0;
  left: 0;
  margin-top: -0.71em;
  margin-left: 4px;
  margin-right: 4px;
}
.MuiTooltip-popperArrow[x-placement*="top"] .MuiTooltip-arrow {
  left: 0;
  bottom: 0;
  margin-left: 4px;
  margin-right: 4px;
  margin-bottom: -0.71em;
}
.MuiTooltip-popperArrow[x-placement*="right"] .MuiTooltip-arrow {
  left: 0;
  width: 0.71em;
  height: 1em;
  margin-top: 4px;
  margin-left: -0.71em;
  margin-bottom: 4px;
}
.MuiTooltip-popperArrow[x-placement*="left"] .MuiTooltip-arrow {
  right: 0;
  width: 0.71em;
  height: 1em;
  margin-top: 4px;
  margin-right: -0.71em;
  margin-bottom: 4px;
}
.MuiTooltip-popperArrow[x-placement*="left"] .MuiTooltip-arrow::before {
  transform-origin: 0 0;
}
.MuiTooltip-popperArrow[x-placement*="right"] .MuiTooltip-arrow::before {
  transform-origin: 100% 100%;
}
.MuiTooltip-popperArrow[x-placement*="top"] .MuiTooltip-arrow::before {
  transform-origin: 100% 0;
}
.MuiTooltip-popperArrow[x-placement*="bottom"] .MuiTooltip-arrow::before {
  transform-origin: 0 100%;
}
.MuiTooltip-tooltip {
  color: var(--text-negative);
  padding: 8px !important;
  max-width: 300px;
  word-wrap: break-word;
  font-family: var(--threegis-font-family);
  font-weight: 400;
  line-height: 1;
  border-radius: 2px;
  background-color: var(--primary-gray-dark);
}
.MuiTooltip-tooltipArrow {
  margin: 0;
  position: relative;
}
.MuiTooltip-arrow {
  color: var(--primary-gray-dark);
  width: 1em;
  height: 0.71em;
  overflow: hidden;
  position: absolute;
  box-sizing: border-box;
}
.MuiTooltip-arrow::before {
  width: 100%;
  height: 100%;
  margin: auto;
  content: "";
  display: block;
  transform: rotate(45deg);
  background-color: currentColor;
}
.MuiTooltip-touch {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.14286em;
}
.MuiTooltip-tooltipPlacementLeft {
  margin: 0 24px ;
  transform-origin: right center;
}
@media (min-width:600px) {
  .MuiTooltip-tooltipPlacementLeft {
    margin: 0 14px;
  }
}
.MuiTooltip-tooltipPlacementRight {
  margin: 0 24px;
  transform-origin: left center;
}
@media (min-width:600px) {
  .MuiTooltip-tooltipPlacementRight {
    margin: 0 14px;
  }
}
.MuiTooltip-tooltipPlacementTop {
  margin: 24px 0;
  transform-origin: center bottom;
}
@media (min-width:600px) {
  .MuiTooltip-tooltipPlacementTop {
    margin: 14px 0;
  }
}
.MuiTooltip-tooltipPlacementBottom {
  margin: 24px 0;
  transform-origin: center top;
}
@media (min-width:600px) {
  .MuiTooltip-tooltipPlacementBottom {
    margin: 14px 0;
  }
}

/* These 100% will go away as we convert other tools to react
   Currently, this is a dialog launched from a Polymer component
   All of the styles are injected into the parent's shadowdom
   Once those are converted to React, these should no longer be needed */

div.layerSelector_dialog {
    z-index: 5000 !important;
}

/* Since this is added to the body, styled components doesn't go with it
Hopefully this will go away as we remove the shadow root.  This centers the
"year" text in the calendar */
.MuiYearPicker-root > div > button {
    height: initial;
    width: initial;
    padding: 8px 12px;
    margin: 8px;
}

.MuiMonthPicker-root > button {
  height: initial;
  width: initial;
  padding: 8px 12px;
  margin: 8px;
  border-radius: 16px;
  background-color: transparent;
  color: unset;
  font-size: 1rem;
  flex: auto;
}

.MuiMonthPicker-root > button.Mui-selected {
  color: var(--text-negative) ;
  background-color: var(--background-contained-default);
  font-weight: 400;
}

.MuiMonthPicker-root > button.Mui-selected:hover {
  background-color: rgb(44, 56, 126);
}

.MuiDialogContent-root {
  padding-top: 24px !important;
}

/* Radio, toggles and checkboxes are blue on dialogs without this */
.MuiRadio-root:not(.Mui-disabled),
.MuiSwitch-root:not(.Mui-disabled),
.MuiCheckbox-root:not(.Mui-disabled) {
    color: var(--gadget-primary) !important;
}

.MuiRadio-root .Mui-checked:not(.Mui-disabled),
.MuiSwitch-root .Mui-checked:not(.Mui-disabled),
.MuiCheckbox-root .Mui-checked:not(.Mui-disabled) {
    color: var(--gadget-primary) !important;
}

/* Data Grid Column Popup Dialogs */
.MuiDataGrid-panelWrapper {
    box-sizing: border-box;
    color: var(--text-default);
    display: block;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 24px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.MuiDataGrid-panelWrapper .MuiDataGrid-panelContent {
    box-sizing: border-box;
    color: var(--text-default);
    display: flex;
    flex-basis: 0%;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 24px;
    max-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.MuiDataGrid-panelWrapper .MuiDataGrid-panelContent .MuiDataGrid-columnsPanel {
    box-sizing: border-box;
    color: var(--text-default);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 24px;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.MuiDataGrid-panelWrapper .MuiDataGrid-panelContent .MuiDataGrid-columnsPanel .MuiDataGrid-columnsPanelRow {
    box-sizing: border-box;
    color: var(--text-default);
    display: flex;
    font-size: 16px;
    font-weight: 400;
    justify-content: space-between;
    letter-spacing: normal;
    line-height: 24px;
    padding-bottom: 1px;
    padding-left: 7px;
    padding-right: 8px;
    padding-top: 1px;
    text-size-adjust: 100%;
    -webkit-box-pack: justify;
    -webkit-font-smoothing: antialiased;
}

.MuiDataGrid-panelWrapper .MuiDataGrid-panelContent .MuiDataGrid-columnsPanel.MuiDataGrid-columnsPanelRow .MuiFormControlLabel-root {
    align-items: center;
    box-sizing: border-box;
    color: var(--text-default);
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 24px;
    margin-left: -11px;
    margin-right: 16px;
    text-size-adjust: 100%;
    vertical-align: middle;
    -webkit-box-align: center;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

/* This part essentially hides the check and shows the toggle */
.MuiDataGrid-panelWrapper .MuiSwitch-switchBase input {
    cursor: inherit;
    position: absolute;
    opacity: 0;
    height: 100%;
    top: 0;
    margin: 0;
    padding: 0;
    z-index: 1400;
}

.MuiDataGrid-panelWrapper .MuiSwitch-input {
    left: -100%;
    width: 300%;
}

/* The next several styles focus on the "Manage Columns" toggles on the option under the Grid Column Menu */
.MuiDataGrid-panelWrapper .MuiSwitch-thumb {
    height: 16px;
    width: 16px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
        rgba(0, 0, 0, 0.14) 0px 1px 1px 0px,
        rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
    background-color: var(--background-default);
    border-radius: 50%;
    flex-shrink: 0;
}

.MuiDataGrid-panelWrapper .MuiSwitch-track {
    height: 100%;
    width: 100%;
    z-index: -1;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    opacity: 1;
    border-radius: 32px;
    background-color: rgb(176, 184, 196);
}

.MuiDataGrid-panelWrapper .MuiSwitch-switchBase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: transparent;
    outline: 0;
    border: 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    text-decoration: none;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1400;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    height: 20px !important;
    width: 20px !important;
    padding: 4px;
    color: var(--background-default);
}

.MuiDataGrid-panelWrapper .MuiSwitch-switchBase.Mui-checked {
    transform: translateX(11px);
    color: var(--background-default);
}

.MuiDataGrid-panelWrapper .MuiSwitch-switchBase.Mui-checked .MuiSwitch-track {
    color: var(--gadget-primary);
}

.MuiDataGrid-panelWrapper .MuiSwitch-root {
    display: inline-flex;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
    z-index: 0;
    vertical-align: middle;
    width: 32px;
    height: 20px;
    padding: 0px;
    margin-right:4px;
    margin-left: 4px;
}

.MuiDataGrid-menuList li {
    border-bottom: none !important;
    color: var(--text-default);
}

.MuiDataGrid-menuList li:hover {
    color: var(--text-hover);
    background-color: var(--background-hover);
}

.MuiDataGrid-menuList li:active {
    color: var(--text-active);
    background-color: var(--background-active);
}

.MuiDataGrid-menuList li:focus-visible {
    outline: 1px solid var(--border-active);
    outline-offset: -1px;
}

.MuiDataGrid-menuList hr {
    margin-top: 8px;
    margin-bottom: 8px;
    border: 0;
    border-bottom: 0.8px solid var(--border-gray);
}

.MuiDataGrid-menuList ul {
    border-radius: 4px;
}

/* Controls the fontweight of the grid header instead of using an "unstable"
variable
*/
.MuiDataGrid-columnHeaderTitle {
    font-weight: 500;
}

.MuiAutocomplete-root {
    background-color: var(--background-default);
    color: var(--text-default);
}

/* Icon Buttons aren't styling correctly inside list boxes
   as they are added to the presentation layer, outside the
   shadow-dom that contains the icon button styling (polymer-related)  */
.MuiAutocomplete-popper .MuiIconButton-root {
    flex: 0 0 auto;
    color: var(--text-default);
    overflow: visible;
    text-align: center;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 50% !important;
    border: 0;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    outline: 0;
    align-items: center;
    user-select: none;
    vertical-align: middle;
    -moz-appearance: none;
    justify-content: center;
    text-decoration: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 8px !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    border: none;
    background-color: transparent;
}

.MuiAutocomplete-popper svg {
    width: 24px;
    height: 24px;
}

[role="presentation"] .MuiAutocomplete-popper {
    z-index: 1300;
}

.MuiAutocomplete-popper .MuiIconButton-root:hover {
    background-color: var(--primary-gray-light) !important;
}

.MuiAutocomplete-popper .MuiIconButton-root.toggled {
    background-color: var(--background-active) !important;
    color: var(--text-active) !important;
}

.MuiAutocomplete-popper .MuiListItem-root {
    background-color: var(--background-default);
    color: var(--text-default);
}

.MuiAutocomplete-popper .MuiListItem-root:hover {
    background-color: var(--background-hover);
    color: var(--text-hover);
}

.MuiAutocomplete-popper .MuiListItem-root:active {
    background-color: var(--background-active);
    color: var(--text-active);
}

.MuiAutocomplete-popper .MuiListItem-root:focus-visible {
    outline: 1px solid var(--border-active);
    outline-offset: -1px;
}

.MuiAutocomplete-popper li {
    display: block !important;
    overflow-wrap: break-word !important;
}

.MuiAutocomplete-listbox ul {
    padding-inline-start: 0;
}

.MuiFormControl_root.MuiTextField-root.calendar_input {
    padding-top: 24px;
    padding-bottom: 8px;
    display: flex;
    flex: auto;
}

#progress {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Padding around dropdown indicator on autocomplete */
.MuiAutocomplete-popupIndicator {
    padding: 2px !important;
    margin-right: -2px !important;
}

/* DataGrid Pro Styling, particularly around the filter */
.MuiDataGrid-panelWrapper {
    display: flex;
    flex-direction: column;
    margin: 8px;
    flex: 1 1 0%;
}

.MuiDataGrid-panelContent {
    display: flex;
    flex-direction: column;
    overflow: auto;
    flex: 1 1 0%;
    max-height: 400px;
}

.MuiDataGrid-filterForm select {
    appearance: none;
    user-select: none;
    border-radius: 0px;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    color: currentcolor;
    padding: 4px 4px 5px;
    border: 0px;
    box-sizing: content-box;
    background: none;
    height: 1.4375em;
    margin: 0px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    min-width: 0px;
    width: 100%;
    animation-name: mui-auto-fill-cancel;
    animation-duration: 10ms;
}

.MuiDataGrid-filterForm .MuiFormControl-root {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0px;
    margin: 0px 4px;
    border: 0px;
    vertical-align: top;
    flex-shrink: 0;
    -webkit-box-pack: end;
    justify-content: flex-end;
    min-width: 0;
}

.MuiDataGrid-filterForm .MuiDataGrid-filterFormLogicOperatorInput .MuiInputBase-root {
    display: flex;
}

/* .MuiDataGrid-filterForm .MuiDataGrid-filterFormValueInput {
    display: flex;
    align-self: self-start;
    height: 1.4375em;
} */

.MuiDataGrid-filterForm .MuiFormControl-root label {
    min-width: 60px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.MuiDataGrid-filterForm .MuiFormControl-root .MuiInputLabel-root {
    font-family: var(--threegis-font-family);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4375em;
    letter-spacing: 0.00938em;
    padding: 0px;
    display: flex;
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 133%;
    transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
}

.MuiDataGrid-filterForm label + .MuiInput-root {
    display: flex;
}

.MuiDataGrid-filterForm select ~ svg {
    user-select: none;
    width: 1em;
    height: 1.4375em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    font-size: 1.5em;
    pointer-events: none;
}

.MuiDataGrid-filterForm {
    display: flex;
    padding: 8px;
}

.MuiDataGrid-filterForm > .MuiFormControl-root > button {
    flex: auto;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
    outline: 0px;
    border: 0px;
    margin: 0px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    text-decoration: none;
    text-align: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: visible;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    padding: 5px;
    height: 30px;
    width: 30px;
}

/* Buttons on the datagrid filter popup */
.MuiDataGrid-panelFooter>.MuiButton-root {
    --variant-containedBg: var(--background-contained-default);
    --variant-containedColor: var(--text-negative);

    --variant-outlinedBg: transparent;
    --variant-outlinedColor: var(--text-primary);
    --variant-outlinedBorder: var(--text-primary);

    --variant-textColor: var(--text-primary);
    --variant-textBg: transparent;
}

.MuiDataGrid-panelFooter>.MuiButton-root:hover {
    --variant-outlinedBg: var(--background-hover);
    --variant-textBg: var(--background-hover);
    --variant-containedBg: var(--background-contained-hover);
    --variant-containedColor: var(--text-negative);
}

.MuiDataGrid-panelFooter>.MuiButton-root:active {
    --variant-outlinedBg: var(--background-active);
    --variant-textBg: var(--background-active);
    --variant-containedBg: var(--background-contained-active);
    --variant-containedColor: var(--text-negative);
}

.MuiDataGrid-panelFooter>.MuiButton-root:focus-visible {
    padding: 7px 15px;
    border: 1px solid var(--border-active);
}

.MuiDataGrid-panelFooter>.MuiButton-root.MuiButton-contained:focus-visible {
    border: 1px solid var(--border-contained-focus);
}

.MuiDataGrid-panelFooter>.MuiButton-root.Mui-disabled {
    color: var(--text-primary);
    background-color: var(--background-default);
    opacity: var(--disabled-opacity);
}

.MuiDataGrid-panelFooter>.MuiButton-root.MuiButton-contained.Mui-disabled {
    color: var(--text-negative);
    background-color: var(--background-contained-default);
    opacity: var(--disabled-opacity);
}

.MuiDataGrid-panelFooter>.MuiButton-root.MuiButton-outlined.Mui-disabled {
    color: var(--text-primary);
    background-color: var(--background-default);
    border: 1px solid var(--text-primary) !important;
    opacity: var(--disabled-opacity);
}

.MuiDataGrid-panelFooter .MuiButton-startIcon {
    display: flex;
}

.MuiDataGrid-panelFooter {
    display: flex;
    justify-content: space-between;
}

/* Special class for map linking since the menu item uses
Layout and the shadow-dom prevents this from bubbling down
to the presentation element.  This can be removed once
polymer is removed */
.mapLink_listItem {
    display: flex;
    flex: auto;
    align-items: center;
    flex-grow: 1;
    flex-direction: row;
}

/* Makes icons in a menu size as our standard 40x40 (map linking) */
.MuiMenu-root .MuiIconButton-root {
    width: 40px;
    height: 40px;
}

/* Added to match polymer styling */
#mapLinkMenuButton_menuList > li {
    border-bottom: none;
}

/* Special class for diagrams since the menu item uses
Layout and the shadow-dom prevents this from bubbling down
to the presentation element.  This can be removed once
polymer is removed */
.diagram_listItem {
    display: flex;
    flex: auto;
    align-items: center;
    flex-grow: 1;
    flex-direction: row;
}

/* Added to match polymer styling */
#diagramMenuButton_menuList > li {
    border-bottom: none;
}

.MuiAutocomplete-popper {
    padding: 8px;
}

.MuiAutocomplete-popper .MuiAutocomplete-listbox {
    padding: 8px 0;
    font-size: 16px;
}

.MuiAutocomplete-popper .MuiAutocomplete-listbox .MuiAutocomplete-option,
.MuiAutocomplete-popper .MuiAutocomplete-noOptions {
    white-space: normal;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Lists from components on the presentation layer, like menu buttons and dropdowns */

[role="presentation"] .MuiMenu-paper {
    z-index: 1300;
}

[role="presentation"] .MuiMenu-paper .MuiMenuItem-root {
    background-color: var(--background-default) !important;
    color: var(--text-default)!important;
}

[role="presentation"] .MuiMenu-paper .MuiMenuItem-root:focus-visible {
    outline: 1px solid var(--border-active);
    outline-offset: -1px;
}

[role="presentation"] .MuiMenu-paper .MuiMenuItem-root:hover {
    background-color: var(--background-hover) !important;
    color: var(--text-hover) !important;
}

[role="presentation"] .MuiMenu-paper .MuiMenuItem-root.Mui-selected,
[role="presentation"] .MuiMenu-paper .MuiMenuItem-root:active {
    background-color: var(--background-active) !important;
    color: var(--text-active) !important;
}

[role="presentation"] .MuiMenu-paper .MuiMenuItem-root:focus-visible {
    outline: 1px solid var(--border-active);
    outline-offset: -1px;
}

[role="presentation"] .MuiMenu-paper .MuiAutocomplete-groupUl {
  padding:8px;
}

/* Tab indicator is always --text-primary */
.MuiTabs-indicator {
    background-color: var(--text-primary) !important;
}