@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

body.itec-login-page {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(219, 13, 43, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(120, 7, 22, 0.3), transparent 28%),
    linear-gradient(135deg, #020202 0%, #090909 48%, #131313 100%);
}

body.itec-app-shell {
  --itec-red: #db0d2b;
  --itec-red-dark: #8f0a21;
  --itec-black: #090909;
  --itec-panel: #121212;
  --itec-border: rgba(219, 13, 43, 0.16);
}

body.itec-app-shell,
body.itec-app-shell input,
body.itec-app-shell button,
body.itec-app-shell textarea,
body.itec-app-shell select {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.itec-app-shell .MuiAppBar-root {
  background: linear-gradient(90deg, #070707 0%, #141414 70%, #2a0a11 100%) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
  border-bottom: 1px solid var(--itec-border);
}

body.itec-app-shell .MuiDrawer-paper,
body.itec-app-shell .MuiPaper-root.MuiDrawer-paper {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%) !important;
  border-right: 1px solid rgba(219, 13, 43, 0.14) !important;
}

body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root.Mui-selected,
body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(219, 13, 43, 0.18) 0%, rgba(219, 13, 43, 0.08) 100%) !important;
  box-shadow: inset 3px 0 0 var(--itec-red);
}

body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root:hover {
  background: rgba(219, 13, 43, 0.08) !important;
}

body.itec-app-shell .MuiButton-containedPrimary,
body.itec-app-shell .MuiFab-primary,
body.itec-app-shell .MuiSpeedDial-fab {
  background: linear-gradient(135deg, var(--itec-red) 0%, var(--itec-red-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(219, 13, 43, 0.2) !important;
}

body.itec-app-shell .MuiButton-containedPrimary:hover,
body.itec-app-shell .MuiFab-primary:hover,
body.itec-app-shell .MuiSpeedDial-fab:hover {
  background: linear-gradient(135deg, #f01334 0%, #a30d27 100%) !important;
}

body.itec-app-shell .MuiButton-outlinedPrimary,
body.itec-app-shell .MuiButton-textPrimary,
body.itec-app-shell a {
  color: var(--itec-red);
}

body.itec-app-shell .MuiTabs-indicator,
body.itec-app-shell .MuiLinearProgress-bar,
body.itec-app-shell .MuiSlider-track,
body.itec-app-shell .MuiCheckbox-colorPrimary.Mui-checked,
body.itec-app-shell .MuiRadio-colorPrimary.Mui-checked,
body.itec-app-shell .MuiSwitch-colorPrimary.Mui-checked {
  color: var(--itec-red) !important;
  background-color: var(--itec-red) !important;
}

body.itec-app-shell .MuiPaper-root:not(.MuiAppBar-root):not(.MuiDrawer-paper),
body.itec-app-shell .leaflet-popup-content-wrapper,
body.itec-app-shell .maplibregl-popup-content {
  background: linear-gradient(180deg, rgba(255, 250, 251, 0.98) 0%, rgba(255, 241, 244, 0.97) 58%, rgba(255, 232, 237, 0.98) 100%);
  border: 1px solid rgba(219, 13, 43, 0.08);
}

body.itec-app-shell .MuiCard-root,
body.itec-app-shell .MuiDialog-paper,
body.itec-app-shell .MuiMenu-paper,
body.itec-app-shell .MuiPopover-paper {
  box-shadow:
    0 16px 36px rgba(15, 15, 15, 0.12),
    0 2px 8px rgba(219, 13, 43, 0.06) !important;
}

body.itec-app-shell .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,
body.itec-app-shell .MuiInput-underline:after,
body.itec-app-shell .MuiFilledInput-underline:after {
  border-color: var(--itec-red) !important;
}

body.itec-app-shell .MuiInputLabel-root.Mui-focused,
body.itec-app-shell .MuiTab-root.Mui-selected,
body.itec-app-shell .MuiTypography-colorPrimary {
  color: var(--itec-red) !important;
}

body.itec-app-shell .MuiChip-colorPrimary,
body.itec-app-shell .MuiAlert-standardSuccess {
  border-radius: 999px;
}

body.itec-app-shell .MuiBottomNavigation-root {
  border-top: 1px solid rgba(219, 13, 43, 0.12);
}

body.itec-app-shell .MuiPaper-root .MuiInputBase-root {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

body.itec-app-shell .MuiPaper-root .MuiListItem-root,
body.itec-app-shell .MuiPaper-root .MuiListItemButton-root {
  border-radius: 1rem;
}

body.itec-app-shell .MuiPaper-root .MuiListItemButton-root:hover {
  background: rgba(219, 13, 43, 0.05) !important;
}

body.itec-app-shell .MuiPaper-root .MuiDivider-root {
  border-color: rgba(219, 13, 43, 0.08);
}

body.itec-app-shell .maplibregl-popup,
.maplibregl-popup {
  filter: drop-shadow(0 18px 36px rgba(13, 13, 13, 0.18));
}

body.itec-app-shell .maplibregl-popup-content,
.maplibregl-popup-content {
  min-width: 300px;
  max-width: 360px;
  padding: 18px 18px 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(219, 13, 43, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 252, 0.98) 0%, rgba(255, 243, 246, 0.97) 65%, rgba(255, 236, 240, 0.99) 100%) !important;
  box-shadow:
    0 18px 38px rgba(15, 15, 15, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

body.itec-app-shell .maplibregl-popup-content::before,
.maplibregl-popup-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #db0d2b 0%, #a00c25 55%, #6d0819 100%);
}

body.itec-app-shell .maplibregl-popup-tip,
.maplibregl-popup-tip {
  filter: drop-shadow(0 8px 12px rgba(15, 15, 15, 0.08));
}

body.itec-app-shell .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(255, 236, 240, 0.99) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-top .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(255, 252, 252, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(255, 246, 248, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(255, 246, 248, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-close-button,
.maplibregl-popup-close-button {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #8a0d24 !important;
  font-size: 24px;
  line-height: 30px;
  box-shadow: 0 8px 16px rgba(138, 13, 36, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

body.itec-app-shell .maplibregl-popup-close-button:hover,
.maplibregl-popup-close-button:hover {
  background: rgba(255, 237, 241, 0.98) !important;
  transform: scale(1.04);
}

body.itec-app-shell .maplibregl-popup-content h1,
body.itec-app-shell .maplibregl-popup-content h2,
body.itec-app-shell .maplibregl-popup-content h3,
body.itec-app-shell .maplibregl-popup-content h4,
body.itec-app-shell .maplibregl-popup-content h5,
body.itec-app-shell .maplibregl-popup-content h6,
.maplibregl-popup-content h1,
.maplibregl-popup-content h2,
.maplibregl-popup-content h3,
.maplibregl-popup-content h4,
.maplibregl-popup-content h5,
.maplibregl-popup-content h6 {
  margin: 0 0 14px;
  padding-right: 36px;
  color: #1a1f2b;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.itec-app-shell .maplibregl-popup-content > div > div:first-child,
.maplibregl-popup-content > div > div:first-child {
  color: #1a1f2b;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-right: 34px;
}

body.itec-app-shell .maplibregl-popup-content table,
body.itec-app-shell .maplibregl-popup-content .MuiTable-root,
.maplibregl-popup-content table,
.maplibregl-popup-content .MuiTable-root {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

body.itec-app-shell .maplibregl-popup-content tr,
.maplibregl-popup-content tr {
  vertical-align: top;
}

body.itec-app-shell .maplibregl-popup-content td,
body.itec-app-shell .maplibregl-popup-content th,
.maplibregl-popup-content td,
.maplibregl-popup-content th {
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.itec-app-shell .maplibregl-popup-content td:first-child,
body.itec-app-shell .maplibregl-popup-content th:first-child,
.maplibregl-popup-content td:first-child,
.maplibregl-popup-content th:first-child {
  width: 42%;
  color: #2b3343;
  font-weight: 800;
  padding-right: 12px;
}

body.itec-app-shell .maplibregl-popup-content td:last-child,
body.itec-app-shell .maplibregl-popup-content th:last-child,
.maplibregl-popup-content td:last-child,
.maplibregl-popup-content th:last-child {
  color: #5d6678;
  font-weight: 600;
}

body.itec-app-shell .maplibregl-popup-content a,
.maplibregl-popup-content a {
  color: #c60f2a !important;
  font-weight: 800;
  text-decoration: none;
}

body.itec-app-shell .maplibregl-popup-content a:hover,
.maplibregl-popup-content a:hover {
  color: #970d22 !important;
  text-decoration: underline;
}

body.itec-app-shell .maplibregl-popup-content button,
body.itec-app-shell .maplibregl-popup-content .MuiButton-root,
.maplibregl-popup-content button,
.maplibregl-popup-content .MuiButton-root {
  border-radius: 14px;
}

body.itec-app-shell .maplibregl-popup-content .MuiButton-textPrimary,
body.itec-app-shell .maplibregl-popup-content .MuiIconButton-root,
.maplibregl-popup-content .MuiButton-textPrimary,
.maplibregl-popup-content .MuiIconButton-root {
  color: #7c1427 !important;
}

body.itec-app-shell .maplibregl-popup-content hr,
.maplibregl-popup-content hr {
  border: 0;
  border-top: 1px solid rgba(219, 13, 43, 0.08);
  margin: 12px 0;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced,
.MuiCard-root.itec-popup-enhanced {
  width: min(92vw, 30rem) !important;
  border-radius: 24px !important;
  overflow: hidden;
  z-index: 30;
  border: 1px solid rgba(219, 13, 43, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 253, 0.98) 0%, rgba(255, 246, 248, 0.98) 72%, rgba(255, 241, 244, 0.99) 100%) !important;
  box-shadow:
    0 22px 44px rgba(10, 10, 10, 0.18),
    0 8px 20px rgba(219, 13, 43, 0.1) !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced::before,
.MuiCard-root.itec-popup-enhanced::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #db0d2b 0%, #b00c27 52%, #710817 100%);
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .draggable-header,
.MuiCard-root.itec-popup-enhanced .draggable-header {
  position: relative;
  z-index: 3;
  min-height: 4.15rem;
  padding: 0.75rem 3.4rem 0.35rem 1rem !important;
  background: transparent !important;
  border-bottom: 0;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .draggable-header .MuiTypography-root,
.MuiCard-root.itec-popup-enhanced .draggable-header .MuiTypography-root {
  display: block !important;
  color: #1d2637 !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  margin: 0 !important;
  max-width: 100%;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .draggable-header .MuiIconButton-root,
.MuiCard-root.itec-popup-enhanced .draggable-header .MuiIconButton-root {
  position: absolute;
  z-index: 5;
  top: 0.7rem;
  right: 0.75rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: #8d1126 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 18px rgba(141, 17, 38, 0.12);
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardContent-root,
.MuiCard-root.itec-popup-enhanced .MuiCardContent-root {
  padding: 0 1rem 0.75rem !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiTableCell-root,
.MuiCard-root.itec-popup-enhanced .MuiTableCell-root {
  border-bottom: 0 !important;
  padding: 0.75rem 0.82rem !important;
  vertical-align: top !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:first-of-type,
.MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:first-of-type {
  width: 38%;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:first-of-type,
.MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:first-of-type {
  color: #212b3d !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:last-of-type,
.MuiCard-root.itec-popup-enhanced .MuiTableRow-root .MuiTableCell-root:last-of-type {
  color: #1f2938 !important;
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  line-height: 1.38 !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardContent-root a:hover,
.MuiCard-root.itec-popup-enhanced .MuiCardContent-root a:hover {
  color: #930d21 !important;
  text-decoration: underline;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.8rem 1rem 1rem !important;
  border-top: 1px solid rgba(219, 13, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.78) 0%, rgba(255, 241, 244, 0.94) 100%);
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-root,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-root {
  width: 100%;
  min-height: 4.5rem;
  height: auto;
  border-radius: 18px;
  color: #455066 !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-root:hover,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-root:hover {
  background: rgba(219, 13, 43, 0.08) !important;
  color: #9a0f25 !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorSecondary,
body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorSecondary .MuiSvgIcon-root,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorSecondary,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorSecondary .MuiSvgIcon-root {
  color: #c10f29 !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError,
body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError .MuiSvgIcon-root,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError .MuiSvgIcon-root {
  color: #d5322f !important;
}

body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError,
.MuiCard-root.itec-popup-enhanced .MuiCardActions-root .MuiIconButton-colorError {
  display: none !important;
}

body.itec-app-shell .itec-device-popup-card,
.itec-device-popup-card {
  backdrop-filter: blur(14px);
}

body.itec-app-shell .itec-popup-native-status,
.itec-popup-native-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: #566176;
  font-size: 0.88rem;
  font-weight: 700;
}

body.itec-app-shell .itec-popup-native-status-dot,
.itec-popup-native-status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #8a95a6;
  box-shadow: 0 0 0 4px rgba(138, 149, 166, 0.12);
}

body.itec-app-shell .itec-popup-native-status.status-online .itec-popup-native-status-dot,
.itec-popup-native-status.status-online .itec-popup-native-status-dot {
  background: #31b24c;
  box-shadow: 0 0 0 4px rgba(49, 178, 76, 0.14);
}

body.itec-app-shell .itec-popup-native-status.status-offline .itec-popup-native-status-dot,
.itec-popup-native-status.status-offline .itec-popup-native-status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

body.itec-app-shell .itec-popup-details-link,
.itec-popup-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.05rem auto 0;
  border: 0;
  background: transparent;
  color: #ca112e !important;
  font-size: 0.92rem;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.itec-app-shell .itec-popup-details-link::after,
.itec-popup-details-link::after {
  content: "›";
  font-size: 1.15rem;
  line-height: 1;
}

body.itec-app-shell .itec-popup-action-button,
.itec-popup-action-button {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.85rem;
  padding: 0.7rem 0.45rem !important;
  border: 1px solid rgba(219, 13, 43, 0.1) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.itec-app-shell .itec-popup-action-button .MuiSvgIcon-root,
.itec-popup-action-button .MuiSvgIcon-root {
  font-size: 1.45rem;
}

body.itec-app-shell .itec-popup-action-button .itec-popup-action-icon,
.itec-popup-action-button .itec-popup-action-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #18a74f;
}

body.itec-app-shell .itec-popup-action-button .itec-popup-action-icon svg,
.itec-popup-action-button .itec-popup-action-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

body.itec-app-shell .itec-popup-action-text,
.itec-popup-action-text {
  display: block;
  color: #283244;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

body.itec-app-shell .itec-wa-config-trigger,
.itec-wa-config-trigger {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

body.itec-app-shell .itec-popup-action-button.is-whatsapp,
.itec-popup-action-button.is-whatsapp {
  color: #1d9c46 !important;
}

@media (max-width: 640px) {
  body.itec-app-shell .maplibregl-popup-content,
  .maplibregl-popup-content {
    min-width: 260px;
    max-width: min(86vw, 320px);
    padding: 16px 16px 14px !important;
    border-radius: 18px !important;
  }

  body.itec-app-shell .maplibregl-popup-content td,
  body.itec-app-shell .maplibregl-popup-content th,
  .maplibregl-popup-content td,
  .maplibregl-popup-content th {
    font-size: 0.9rem;
  }

  body.itec-app-shell .MuiCard-root.itec-popup-enhanced,
  .MuiCard-root.itec-popup-enhanced {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.7rem) !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 28rem) !important;
    max-height: 42vh !important;
    border-radius: 24px !important;
    z-index: 1200 !important;
  }

  body.itec-app-shell .MuiCard-root.itec-popup-enhanced .draggable-header,
  .MuiCard-root.itec-popup-enhanced .draggable-header {
    min-height: 3.8rem;
    padding: 0.7rem 3rem 0.3rem 0.85rem !important;
  }

  body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardContent-root,
  .MuiCard-root.itec-popup-enhanced .MuiCardContent-root {
    overflow: auto;
    max-height: calc(42vh - 8.7rem);
    padding: 0 0.85rem 0.55rem !important;
  }

  body.itec-app-shell .MuiCard-root.itec-popup-enhanced .MuiCardActions-root,
  .MuiCard-root.itec-popup-enhanced .MuiCardActions-root {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.6rem 0.8rem calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.itec-app-shell .itec-popup-action-button,
  .itec-popup-action-button {
    min-height: 4.25rem;
    border-radius: 16px;
  }

  body.itec-app-shell .itec-popup-action-text,
  .itec-popup-action-text {
    font-size: 0.73rem;
  }

  body.itec-app-shell .MuiCard-root.itec-popup-enhanced .draggable-header .MuiIconButton-root,
  .MuiCard-root.itec-popup-enhanced .draggable-header .MuiIconButton-root {
    top: 0.62rem;
    right: 0.62rem;
    width: 2.15rem;
    height: 2.15rem;
  }
}

body.itec-login-page #root,
body.itec-login-page main {
  min-height: 100vh;
}

body.itec-login-page main[data-itec-login="true"] {
  position: relative;
  overflow: hidden;
}

body.itec-login-page main[data-itec-login="true"]::before,
body.itec-login-page main[data-itec-login="true"]::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
}

body.itec-login-page main[data-itec-login="true"]::before {
  top: -8rem;
  right: -8rem;
  background: rgba(219, 13, 43, 0.22);
}

body.itec-login-page main[data-itec-login="true"]::after {
  bottom: -10rem;
  left: 24%;
  background: rgba(120, 7, 22, 0.26);
}

body.itec-login-page [data-itec-sidebar="true"] {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.98) 0%, rgba(9, 9, 9, 0.95) 45%, rgba(33, 6, 11, 0.94) 100%) !important;
  isolation: isolate;
}

body.itec-login-page [data-itec-sidebar="true"]::before,
body.itec-login-page [data-itec-sidebar="true"]::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.itec-login-page [data-itec-sidebar="true"]::before {
  top: -7rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(219, 13, 43, 0.45) 0%, rgba(219, 13, 43, 0) 68%);
}

body.itec-login-page [data-itec-sidebar="true"]::after {
  bottom: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(135, 8, 26, 0.48) 0%, rgba(135, 8, 26, 0) 70%);
}

body.itec-login-page .brand-login-sidebar-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 3.5rem 3.25rem;
  color: #f6f7fb;
}

body.itec-login-page .brand-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffadb8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.itec-login-page .brand-login-mark {
  width: 6.5rem;
  height: 6.5rem;
  margin: 1.15rem 0 1.3rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(219, 13, 43, 0.18));
}

body.itec-login-page .brand-login-sidebar-content h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.itec-login-page .brand-login-sidebar-content p {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: rgba(244, 246, 252, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

body.itec-login-page .brand-login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

body.itec-login-page .brand-login-stat {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(219, 13, 43, 0.2);
  backdrop-filter: blur(10px);
}

body.itec-login-page .brand-login-stat strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

body.itec-login-page .brand-login-stat span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

body.itec-login-page .brand-login-points {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

body.itec-login-page .brand-login-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.itec-login-page .brand-login-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #db0d2b 0%, #8a0d24 100%);
  box-shadow: 0 0 0 6px rgba(219, 13, 43, 0.12);
}

body.itec-login-page [data-itec-paper="true"] {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 246, 246, 0.99) 100%) !important;
}

body.itec-login-page [data-itec-paper="true"]::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto 2rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1.75rem;
  background: radial-gradient(circle, rgba(219, 13, 43, 0.16) 0%, rgba(219, 13, 43, 0) 72%);
  pointer-events: none;
}

body.itec-login-page [data-itec-form="true"] {
  position: relative;
  width: min(100%, 31rem) !important;
  max-width: 31rem !important;
  padding: 2rem !important;
  border: 1px solid rgba(22, 27, 37, 0.08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 48px rgba(16, 22, 35, 0.12),
    0 2px 12px rgba(16, 22, 35, 0.05);
  backdrop-filter: blur(18px);
}

body.itec-login-page .brand-login-intro {
  margin-bottom: 1.4rem;
}

body.itec-login-page .brand-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(219, 13, 43, 0.09);
  color: #9e0b23;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.itec-login-page .brand-login-intro h2 {
  margin: 0.95rem 0 0;
  color: #10141c;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.itec-login-page .brand-login-intro p {
  margin: 0.9rem 0 0;
  color: #596273;
  font-size: 0.98rem;
  line-height: 1.7;
}

body.itec-login-page [data-itec-form="true"] img {
  max-width: 12rem;
}

body.itec-login-page [data-itec-form="true"] input {
  font-family: inherit;
}

body.itec-login-page [data-itec-form="true"] input,
body.itec-login-page [data-itec-form="true"] .MuiInputBase-input {
  color: #10141c;
}

body.itec-login-page [data-itec-form="true"] .MuiFormControl-root,
body.itec-login-page [data-itec-form="true"] .MuiTextField-root {
  margin-bottom: 0.65rem;
}

body.itec-login-page [data-itec-form="true"] .MuiOutlinedInput-root,
body.itec-login-page [data-itec-form="true"] .MuiInputBase-root {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

body.itec-login-page [data-itec-form="true"] .MuiOutlinedInput-notchedOutline {
  border-color: rgba(21, 26, 36, 0.12);
}

body.itec-login-page [data-itec-form="true"] .Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #db0d2b !important;
  border-width: 2px;
}

body.itec-login-page [data-itec-form="true"] .MuiInputLabel-root.Mui-focused {
  color: #9e0b23;
}

body.itec-login-page [data-itec-form="true"] button[type="submit"],
body.itec-login-page [data-itec-form="true"] .MuiButton-containedPrimary {
  min-height: 3.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #db0d2b 0%, #8f0a21 100%);
  box-shadow: 0 14px 30px rgba(219, 13, 43, 0.24);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.itec-login-page [data-itec-form="true"] button[type="submit"]:hover,
body.itec-login-page [data-itec-form="true"] .MuiButton-containedPrimary:hover {
  background: linear-gradient(135deg, #f01334 0%, #a30d27 100%);
}

body.itec-login-page [data-itec-form="true"] a {
  color: #9e0b23;
  font-weight: 700;
}

body.itec-login-page .brand-login-footer-note {
  margin-top: 1.2rem;
  color: #6c7483;
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 1199px) {
  body.itec-login-page [data-itec-form="true"] {
    width: min(100%, 34rem) !important;
    max-width: 34rem !important;
  }

  body.itec-login-page .brand-login-sidebar-content {
    padding: 3rem 2.2rem;
  }
}

@media (max-width: 899px) {
  body.itec-login-page [data-itec-paper="true"] {
    background:
      linear-gradient(180deg, rgba(20, 23, 31, 0.15) 0%, rgba(255, 255, 255, 0.96) 16%, rgba(251, 248, 243, 0.99) 100%) !important;
  }

  body.itec-login-page [data-itec-form="true"] {
    margin: 1rem auto;
    padding: 1.5rem !important;
    border-radius: 1.6rem;
  }
}

@media (max-width: 599px) {
  body.itec-login-page .brand-login-intro h2 {
    font-size: 1.7rem;
  }

  body.itec-login-page .brand-login-intro p,
  body.itec-login-page .brand-login-footer-note {
    font-size: 0.9rem;
  }

  body.itec-login-page [data-itec-form="true"] {
    width: 100% !important;
    max-width: none !important;
    padding: 1.2rem !important;
  }
}

body.itec-app-shell .itec-wa-config-trigger,
.itec-wa-config-trigger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #169976 0%, #22b8aa 100%);
  box-shadow: 0 12px 24px rgba(34, 184, 170, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

body.itec-app-shell .itec-wa-config-trigger:hover,
.itec-wa-config-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(34, 184, 170, 0.24);
}

body.itec-app-shell .itec-wa-config-trigger:disabled,
.itec-wa-config-trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.itec-wa-config-trigger-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.itec-wa-modal.hidden {
  display: none;
}

.itec-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.itec-wa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.68);
  backdrop-filter: blur(10px);
}

.itec-wa-dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 34px;
  padding: 32px 32px 26px;
  background:
    radial-gradient(circle at top right, rgba(219, 13, 43, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 253, 0.99) 0%, rgba(255, 243, 246, 0.98) 100%) !important;
  color: #172033 !important;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(219, 13, 43, 0.16);
}

.itec-wa-dialog,
.itec-wa-dialog * {
  color: inherit;
}

.itec-wa-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  color: #5c667d;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.itec-wa-head {
  margin-bottom: 22px;
}

.itec-wa-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b1122d;
  background: rgba(219, 13, 43, 0.12);
}

.itec-wa-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #141b2d !important;
}

.itec-wa-device-name {
  margin: 0;
  color: #b1122d !important;
  font-weight: 800;
  font-size: 1.05rem;
}

.itec-wa-switch-row,
.itec-wa-type-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.itec-wa-switch-row {
  margin-bottom: 22px;
  color: #263248 !important;
  font-weight: 700;
}

.itec-wa-grid,
.itec-wa-custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.itec-wa-custom-range {
  margin-top: 14px;
}

.itec-wa-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.itec-wa-field span,
.itec-wa-types > span {
  color: #5e6983 !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.itec-wa-field input,
.itec-wa-field select {
  width: 100%;
  min-height: 58px;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 51, 0.12) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #172033 !important;
  padding: 0 18px;
  font: inherit;
  font-size: 1.02rem;
  box-sizing: border-box;
}

.itec-wa-field input::placeholder {
  color: rgba(23, 32, 51, 0.42) !important;
}

.itec-wa-field input:focus,
.itec-wa-field select:focus {
  outline: none;
  border-color: rgba(34, 184, 170, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(34, 184, 170, 0.12) !important;
}

.itec-wa-types {
  margin-top: 24px;
}

.itec-wa-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
}

.itec-wa-type-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(177, 18, 45, 0.05) !important;
  color: #243045 !important;
  font-weight: 700;
}

.itec-wa-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.itec-wa-primary,
.itec-wa-secondary {
  flex: 1;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.itec-wa-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #19a38a 0%, #23bcb0 100%) !important;
  box-shadow: 0 16px 30px rgba(35, 188, 176, 0.22);
}

.itec-wa-secondary {
  color: #243045 !important;
  background: rgba(23, 32, 51, 0.06) !important;
}

.itec-wa-status {
  min-height: 24px;
  margin: 14px 2px 0;
  color: #5c667d !important;
  font-weight: 700;
}

.itec-wa-status[data-tone="ok"] {
  color: #69e3b0;
}

.itec-wa-status[data-tone="error"] {
  color: #ff8a9d;
}

@media (max-width: 720px) {
  .itec-wa-dialog {
    padding: 24px 20px 20px;
    border-radius: 26px;
  }

  .itec-wa-grid,
  .itec-wa-custom-range,
  .itec-wa-type-list,
  .itec-wa-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .itec-wa-actions {
    gap: 10px;
  }
}
