.monitoring-flash {
  z-index: 2000;
  min-width: min(32rem, calc(100vw - 2rem));
}

.monitoring-timezone-menu {
  max-width: 100%;
}

.monitoring-timezone-options {
  max-height: 16rem;
  overflow-y: auto;
}

/* Global compact labels: keep colored backgrounds fitted to their text in RTL/flex layouts. */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 1.625rem;
  padding: .32rem .62rem;
  line-height: 1.1;
  vertical-align: middle;
  white-space: normal;
  text-align: center;
  flex: 0 0 auto;
  align-self: center;
}

.badge > i,
.badge > .bx {
  line-height: 1;
  flex: 0 0 auto;
}

/* Navbar notification counters are intentionally compact; do not inherit the global badge minimum height. */
.layout-navbar .badge.badge-notifications {
  max-width: none;
  min-height: 0;
  white-space: nowrap;
}

.btn[class*="btn-label-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Entity lists are rendered as responsive cards instead of dense tables. */
.monitoring-card-table-wrap {
  overflow: visible !important;
}

.monitoring-card-table {
  margin: 0;
  border: 0;
  background: transparent;
}

.monitoring-card-table > thead {
  display: none;
}

.monitoring-card-table > tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.monitoring-card-table > tbody > tr {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(90, 141, 238, .12);
  border-radius: .875rem;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .125rem .5rem rgba(67, 89, 113, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.monitoring-card-table > tbody > tr:not(.monitoring-card-table-empty):hover {
  transform: translateY(-2px);
  border-color: rgba(90, 141, 238, .24);
  box-shadow: 0 .45rem 1.1rem rgba(67, 89, 113, .1);
}

.monitoring-card-table > tbody > tr > td {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  min-width: 0;
  padding: .65rem 0;
  border: 0 !important;
  border-bottom: 1px dashed rgba(67, 89, 113, .12) !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.monitoring-card-table > tbody > tr > td:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0;
}

.monitoring-card-table > tbody > tr > td::before {
  content: attr(data-card-label);
  flex: 0 0 auto;
  color: var(--bs-secondary-color, #8592a3);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.5;
}

.monitoring-card-table > tbody > tr > td[data-card-label=""]::before {
  display: none;
}

.monitoring-card-table > tbody > tr > td[data-card-label=""] {
  justify-content: flex-end;
  padding-top: .8rem;
}

.monitoring-card-table .monitoring-card-table-empty {
  grid-column: 1 / -1;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.monitoring-card-table .monitoring-card-table-empty > td {
  display: block;
  border: 0 !important;
  text-align: center;
  padding: 2rem .75rem;
}

.monitoring-card-table .monitoring-card-table-empty > td::before {
  display: none;
}

.monitoring-card-table td > .d-flex,
.monitoring-card-table td > form,
.monitoring-card-table td > a,
.monitoring-card-table td > span,
.monitoring-card-table td > small,
.monitoring-card-table td > div {
  max-width: 100%;
}

@media (min-width: 1400px) {
  .monitoring-card-table.monitoring-card-table-3 > tbody {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .monitoring-card-table > tbody,
  .monitoring-card-table.monitoring-card-table-3 > tbody {
    grid-template-columns: minmax(0, 1fr);
    padding: .75rem;
    gap: .75rem;
  }

  .monitoring-card-table > tbody > tr {
    padding: .85rem;
    border-radius: .75rem;
  }

  .monitoring-card-table > tbody > tr > td {
    gap: .6rem;
    padding: .55rem 0;
  }
}

/* List groups inside page content are individual cards, not stretched flat rows. */
.layout-page .content-wrapper .list-group {
  display: grid;
  gap: .75rem;
  background: transparent;
}

.layout-page .content-wrapper .list-group > .list-group-item {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(67, 89, 113, .12) !important;
  border-radius: .75rem !important;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .125rem .45rem rgba(67, 89, 113, .04);
}

.monitoring-card-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.monitoring-card-list > li {
  margin: 0 !important;
  padding: .85rem !important;
  border: 1px solid rgba(67, 89, 113, .1);
  border-radius: .75rem;
  background: var(--bs-card-bg, #fff);
}

@media (max-width: 575.98px) {
  .layout-page .content-wrapper .list-group > .list-group-item,
  .monitoring-card-list > li {
    padding: .75rem !important;
  }
}

/* Shared visual contract for polished list cards across user/admin panels. */
.monitoring-list-card {
  height: 100%;
  border: 1px solid var(--bs-border-color, rgba(67, 89, 113, .16));
  border-radius: .75rem;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .125rem .5rem rgba(67, 89, 113, .045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  overflow: hidden;
}

.monitoring-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 141, 238, .28);
  box-shadow: 0 .5rem 1.25rem rgba(67, 89, 113, .09);
}

.monitoring-detail-card:hover {
  transform: none;
  border-color: var(--bs-border-color, rgba(67, 89, 113, .16));
  box-shadow: 0 .125rem .5rem rgba(67, 89, 113, .045);
}

.monitoring-list-card .card-header,
.monitoring-list-card .card-footer {
  background: transparent;
  border-color: rgba(67, 89, 113, .08);
}

.monitoring-list-card .monitoring-list-card-meta {
  border-radius: .5rem;
  background: rgba(67, 89, 113, .035);
}

/* Fixed square colored-icon surface: never allow icon backgrounds to stretch. */
.monitoring-icon-tile {
  --monitoring-icon-size: 2.5rem;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--monitoring-icon-size) !important;
  width: var(--monitoring-icon-size) !important;
  min-width: var(--monitoring-icon-size) !important;
  max-width: var(--monitoring-icon-size) !important;
  height: var(--monitoring-icon-size) !important;
  min-height: var(--monitoring-icon-size) !important;
  max-height: var(--monitoring-icon-size) !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  overflow: hidden;
  line-height: 1;
}

.monitoring-icon-tile.monitoring-icon-tile-sm {
  --monitoring-icon-size: 2rem;
}

.monitoring-icon-tile.monitoring-icon-tile-lg {
  --monitoring-icon-size: 4rem;
}

.monitoring-icon-tile > i,
.monitoring-icon-tile > .bx {
  display: block;
  margin: 0 !important;
  line-height: 1 !important;
  flex: 0 0 auto;
}

/* Bare avatars are dimension shells. Colored avatar visuals must center through avatar-initial. */
.avatar > .avatar-initial {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.avatar > .avatar-initial > i,
.avatar > .avatar-initial > .bx {
  display: block;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Legacy safety net for colored avatars already used in either monitoring panel. */
.avatar[class*="bg-label-"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  line-height: 1;
}

.avatar[class*="bg-label-"] > i,
.avatar[class*="bg-label-"] > .bx {
  display: block;
  margin: 0 !important;
  line-height: 1 !important;
  flex: 0 0 auto;
}

/* Support ticket detail experience shared by user/admin panels. */
.support-ticket-hero,
.support-conversation-card,
.support-composer,
.support-admin-control {
  min-width: 0;
}

.support-ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.support-thread {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.support-message {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-width: 0;
}

.support-message-avatar {
  margin-top: .15rem;
}

.support-message-bubble {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(67, 89, 113, .11);
  border-radius: .8rem;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .125rem .35rem rgba(67, 89, 113, .035);
}

.support-message.is-admin .support-message-bubble {
  border-color: rgba(255, 171, 0, .16);
  background: rgba(255, 171, 0, .025);
}

.support-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}

.support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.support-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  max-width: min(100%, 22rem);
  padding: .5rem .65rem;
  border: 1px solid rgba(67, 89, 113, .1);
  border-radius: .65rem;
  background: rgba(67, 89, 113, .025);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.support-attachment-chip:hover {
  border-color: rgba(90, 141, 238, .3);
  background: rgba(90, 141, 238, .045);
  color: inherit;
}

.support-attachment-chip > .min-w-0 {
  flex: 1 1 auto;
}

.support-composer-textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.8;
}

.support-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.support-file-control {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  width: min(100%, 20rem);
  min-height: 2.5rem;
  padding: .2rem .3rem;
  border: 1px solid rgba(67, 89, 113, .12);
  border-radius: .55rem;
  background: rgba(67, 89, 113, .018);
}

.support-file-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: .45rem;
  background: rgba(67, 89, 113, .08);
  color: var(--bs-secondary-color);
}

.support-file-input.form-control {
  min-width: 0;
  height: 2rem;
  padding: .15rem .35rem;
  font-size: .8125rem;
  line-height: 1.35;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.support-file-input.form-control::file-selector-button {
  height: 1.65rem;
  margin: -.02rem .1rem -.02rem .45rem;
  padding: .18rem .6rem;
  border: 0;
  border-radius: .4rem;
  font-size: .75rem;
  line-height: 1.2;
  background: rgba(90, 141, 238, .1);
  color: var(--bs-primary);
  cursor: pointer;
}

.support-empty-state .monitoring-icon-tile {
  display: flex !important;
}

@media (max-width: 991.98px) {
  .support-ticket-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .support-ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .support-message {
    gap: .65rem;
  }

  .support-message-bubble {
    max-width: calc(100% - 2.65rem);
    padding: .85rem;
  }

  .support-message-avatar {
    --monitoring-icon-size: 2rem;
  }

  .support-composer-actions {
    align-items: center;
  }

  .support-file-control {
    width: 100%;
    min-height: 2.5rem;
  }

  .support-composer-actions > .btn {
    width: 100%;
    max-width: none;
  }
}

/* Inline-style replacement utilities. */
.auth-inner-720{max-width:720px}.auth-inner-760{max-width:760px}.billing-result-container{max-width:980px}
.monitoring-pre-wrap{white-space:pre-wrap;word-break:break-word}.monitoring-progress-sm{height:8px}.monitoring-progress-xs{height:7px}
.chart-min-h-280{min-height:280px}.chart-min-h-300{min-height:300px}.chart-min-h-320{min-height:320px}.chart-min-h-340{min-height:340px}
.mw-120{max-width:120px}.mw-180{max-width:180px}.mw-260{max-width:260px}.mw-280{max-width:280px}.mw-320{max-width:320px}.mw-360{max-width:360px}
.min-w-120{min-width:120px}.min-w-220{min-width:220px}.min-w-260{min-width:260px}.min-w-270{min-width:270px}.min-w-330{min-width:330px}
.scroll-mh-280{max-height:280px;overflow:auto}.scroll-mh-360{max-height:360px;overflow:auto}.scroll-mh-420{max-height:420px;overflow-y:auto}.scroll-mh-520{max-height:520px;overflow:auto}
.pre-scroll-ltr{direction:ltr;text-align:left;white-space:pre-wrap}.pre-scroll-360{max-height:360px;overflow:auto;white-space:pre-wrap}
.gateway-logo-preview{width:120px;height:120px;object-fit:contain}.gateway-logo-sm{width:32px;height:32px;object-fit:contain}
.identity-logo-preview{max-width:180px;max-height:96px}.seo-image-preview{width:180px;max-height:100px;object-fit:cover}
.contact-message-pre{white-space:pre-wrap;line-height:2}.text-size-90{font-size:.9rem}.is-clickable{cursor:pointer}
.permissions-scroll{max-height:280px;overflow:auto}.analytics-page-title{max-width:320px}
.ad-health-tone-success{--health-color:#71dd37}.ad-health-tone-warning{--health-color:#ffab00}.ad-health-tone-danger{--health-color:#ff3e1d}
.w-pct-0{width:0%!important}
.w-pct-1{width:1%!important}
.w-pct-2{width:2%!important}
.w-pct-3{width:3%!important}
.w-pct-4{width:4%!important}
.w-pct-5{width:5%!important}
.w-pct-6{width:6%!important}
.w-pct-7{width:7%!important}
.w-pct-8{width:8%!important}
.w-pct-9{width:9%!important}
.w-pct-10{width:10%!important}
.w-pct-11{width:11%!important}
.w-pct-12{width:12%!important}
.w-pct-13{width:13%!important}
.w-pct-14{width:14%!important}
.w-pct-15{width:15%!important}
.w-pct-16{width:16%!important}
.w-pct-17{width:17%!important}
.w-pct-18{width:18%!important}
.w-pct-19{width:19%!important}
.w-pct-20{width:20%!important}
.w-pct-21{width:21%!important}
.w-pct-22{width:22%!important}
.w-pct-23{width:23%!important}
.w-pct-24{width:24%!important}
.w-pct-25{width:25%!important}
.w-pct-26{width:26%!important}
.w-pct-27{width:27%!important}
.w-pct-28{width:28%!important}
.w-pct-29{width:29%!important}
.w-pct-30{width:30%!important}
.w-pct-31{width:31%!important}
.w-pct-32{width:32%!important}
.w-pct-33{width:33%!important}
.w-pct-34{width:34%!important}
.w-pct-35{width:35%!important}
.w-pct-36{width:36%!important}
.w-pct-37{width:37%!important}
.w-pct-38{width:38%!important}
.w-pct-39{width:39%!important}
.w-pct-40{width:40%!important}
.w-pct-41{width:41%!important}
.w-pct-42{width:42%!important}
.w-pct-43{width:43%!important}
.w-pct-44{width:44%!important}
.w-pct-45{width:45%!important}
.w-pct-46{width:46%!important}
.w-pct-47{width:47%!important}
.w-pct-48{width:48%!important}
.w-pct-49{width:49%!important}
.w-pct-50{width:50%!important}
.w-pct-51{width:51%!important}
.w-pct-52{width:52%!important}
.w-pct-53{width:53%!important}
.w-pct-54{width:54%!important}
.w-pct-55{width:55%!important}
.w-pct-56{width:56%!important}
.w-pct-57{width:57%!important}
.w-pct-58{width:58%!important}
.w-pct-59{width:59%!important}
.w-pct-60{width:60%!important}
.w-pct-61{width:61%!important}
.w-pct-62{width:62%!important}
.w-pct-63{width:63%!important}
.w-pct-64{width:64%!important}
.w-pct-65{width:65%!important}
.w-pct-66{width:66%!important}
.w-pct-67{width:67%!important}
.w-pct-68{width:68%!important}
.w-pct-69{width:69%!important}
.w-pct-70{width:70%!important}
.w-pct-71{width:71%!important}
.w-pct-72{width:72%!important}
.w-pct-73{width:73%!important}
.w-pct-74{width:74%!important}
.w-pct-75{width:75%!important}
.w-pct-76{width:76%!important}
.w-pct-77{width:77%!important}
.w-pct-78{width:78%!important}
.w-pct-79{width:79%!important}
.w-pct-80{width:80%!important}
.w-pct-81{width:81%!important}
.w-pct-82{width:82%!important}
.w-pct-83{width:83%!important}
.w-pct-84{width:84%!important}
.w-pct-85{width:85%!important}
.w-pct-86{width:86%!important}
.w-pct-87{width:87%!important}
.w-pct-88{width:88%!important}
.w-pct-89{width:89%!important}
.w-pct-90{width:90%!important}
.w-pct-91{width:91%!important}
.w-pct-92{width:92%!important}
.w-pct-93{width:93%!important}
.w-pct-94{width:94%!important}
.w-pct-95{width:95%!important}
.w-pct-96{width:96%!important}
.w-pct-97{width:97%!important}
.w-pct-98{width:98%!important}
.w-pct-99{width:99%!important}
.w-pct-100{width:100%!important}
.score-0{--score:0}
.score-1{--score:1}
.score-2{--score:2}
.score-3{--score:3}
.score-4{--score:4}
.score-5{--score:5}
.score-6{--score:6}
.score-7{--score:7}
.score-8{--score:8}
.score-9{--score:9}
.score-10{--score:10}
.score-11{--score:11}
.score-12{--score:12}
.score-13{--score:13}
.score-14{--score:14}
.score-15{--score:15}
.score-16{--score:16}
.score-17{--score:17}
.score-18{--score:18}
.score-19{--score:19}
.score-20{--score:20}
.score-21{--score:21}
.score-22{--score:22}
.score-23{--score:23}
.score-24{--score:24}
.score-25{--score:25}
.score-26{--score:26}
.score-27{--score:27}
.score-28{--score:28}
.score-29{--score:29}
.score-30{--score:30}
.score-31{--score:31}
.score-32{--score:32}
.score-33{--score:33}
.score-34{--score:34}
.score-35{--score:35}
.score-36{--score:36}
.score-37{--score:37}
.score-38{--score:38}
.score-39{--score:39}
.score-40{--score:40}
.score-41{--score:41}
.score-42{--score:42}
.score-43{--score:43}
.score-44{--score:44}
.score-45{--score:45}
.score-46{--score:46}
.score-47{--score:47}
.score-48{--score:48}
.score-49{--score:49}
.score-50{--score:50}
.score-51{--score:51}
.score-52{--score:52}
.score-53{--score:53}
.score-54{--score:54}
.score-55{--score:55}
.score-56{--score:56}
.score-57{--score:57}
.score-58{--score:58}
.score-59{--score:59}
.score-60{--score:60}
.score-61{--score:61}
.score-62{--score:62}
.score-63{--score:63}
.score-64{--score:64}
.score-65{--score:65}
.score-66{--score:66}
.score-67{--score:67}
.score-68{--score:68}
.score-69{--score:69}
.score-70{--score:70}
.score-71{--score:71}
.score-72{--score:72}
.score-73{--score:73}
.score-74{--score:74}
.score-75{--score:75}
.score-76{--score:76}
.score-77{--score:77}
.score-78{--score:78}
.score-79{--score:79}
.score-80{--score:80}
.score-81{--score:81}
.score-82{--score:82}
.score-83{--score:83}
.score-84{--score:84}
.score-85{--score:85}
.score-86{--score:86}
.score-87{--score:87}
.score-88{--score:88}
.score-89{--score:89}
.score-90{--score:90}
.score-91{--score:91}
.score-92{--score:92}
.score-93{--score:93}
.score-94{--score:94}
.score-95{--score:95}
.score-96{--score:96}
.score-97{--score:97}
.score-98{--score:98}
.score-99{--score:99}
.score-100{--score:100}
