/* TPV overrides on top of Datta assets */

.tpv-user-chip {
  color: #5b6b79;
  font-size: 12px;
  max-width: 38vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.pcoded-header .navbar-nav.ml-auto {
  align-items: center;
}

.pcoded-header .navbar-nav.ml-auto .nav-item {
  display: inline-flex;
  align-items: center;
}

.tpv-alerts-nav-item {
  position: relative;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
}

.tpv-alert-bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d7e1ec;
  background: #fff;
  color: #415569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(17, 31, 49, 0.08);
}

.tpv-alert-bell-btn:hover {
  background: #f5f9ff;
  border-color: #c8d8ee;
}

.tpv-alert-bell-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #de2c2c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  border: 1px solid #fff;
}

.tpv-alert-center-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(480px, calc(100vw - 28px));
  max-height: min(68vh, 460px);
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(13, 28, 52, 0.18);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tpv-alert-center-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 8px 12px;
  border-bottom: 1px solid #e9eff6;
}

.tpv-alert-center-title {
  font-size: 14px;
  font-weight: 700;
  color: #25384a;
}

.tpv-alert-center-meta {
  font-size: 11px;
  color: #6f8195;
  white-space: nowrap;
}

.tpv-alert-center-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef3f8;
}

.tpv-alert-center-controls .form-control {
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 128px;
  flex: 1 1 140px;
}

.tpv-alert-center-list {
  padding: 8px 10px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.tpv-alert-center-empty {
  font-size: 12px;
  color: #738497;
  padding: 8px;
}

.tpv-alert-center-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e9f2;
  background: #fbfdff;
  border-radius: 8px;
  padding: 8px 10px;
}

.tpv-alert-center-pill {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-left: auto;
  white-space: nowrap;
}

.tpv-alert-center-pill.warning { background: #fff6de; color: #875b00; }
.tpv-alert-center-pill.urgent { background: #ffe9cc; color: #8a3d00; }
.tpv-alert-center-pill.immediate { background: #ffe4e3; color: #9d1b1b; }

.tpv-alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}

.tpv-alert-dot.warning { background: #d9a129; }
.tpv-alert-dot.urgent { background: #da7c1c; }
.tpv-alert-dot.immediate { background: #d74141; }

.tpv-alert-center-main {
  min-width: 0;
  flex: 1 1 auto;
}

.tpv-alert-center-summary {
  font-size: 12px;
  color: #25384a;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpv-alert-center-sub {
  font-size: 11px;
  color: #6f8195;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpv-bell-shake {
  animation: tpv-bell-shake 0.56s ease;
}

@keyframes tpv-bell-shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

.tpv-open-link {
  color: #04a9f5;
  font-weight: 600;
  text-decoration: none;
}

.tpv-open-link:hover {
  text-decoration: underline;
}

.tpv-overview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tpv-overview-link:hover {
  color: inherit;
  text-decoration: none;
}

.tpv-overview-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tpv-overview-link:hover .tpv-overview-card {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 44, 76, 0.12);
}

.tpv-nav-link-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
  pointer-events: none;
  cursor: not-allowed;
}

.tpv-global-alerts {
  margin: 8px 24px 0 96px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: 0 4px 14px rgba(20, 44, 76, 0.08);
  overflow: hidden;
}

.tpv-global-alerts-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.tpv-global-alerts-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #34506b;
  white-space: nowrap;
}

.tpv-global-alerts-meta {
  font-size: 11px;
  color: #6c8094;
  white-space: nowrap;
}

.tpv-global-alerts-viewport {
  overflow: hidden;
  width: 100%;
}

.tpv-global-alerts-track {
  display: flex;
  width: max-content;
  gap: 18px;
}

.tpv-global-alerts-track.tpv-animate {
  animation: tpv-alert-marquee 110s linear infinite;
}

.tpv-global-alerts:hover .tpv-global-alerts-track.tpv-animate {
  animation-play-state: paused;
}

.tpv-alert-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tpv-alert-card {
  min-width: 310px;
  max-width: 460px;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: #fff;
}

.tpv-alert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tpv-alert-card .feather {
  width: 13px;
  height: 13px;
}

.tpv-alert-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tpv-alert-pill.warning { background: #fff6de; color: #875b00; }
.tpv-alert-pill.urgent { background: #ffe9cc; color: #8a3d00; }
.tpv-alert-pill.immediate { background: #ffe4e3; color: #9d1b1b; }

.tpv-alert-card.warning { border-color: #f1dda7; }
.tpv-alert-card.urgent { border-color: #f0c58e; }
.tpv-alert-card.immediate { border-color: #efb2ae; }

.tpv-alert-summary {
  font-size: 12px;
  color: #26384b;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpv-alert-sub {
  font-size: 11px;
  color: #6a7f93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes tpv-alert-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tpv-module-list {
  margin-bottom: 18px;
}

.tpv-module-list li {
  margin-bottom: 6px;
}

.tpv-login-logo {
  width: 270px;
  max-width: 86%;
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.tpv-main-logo {
  width: 100%;
  max-width: 182px;
  height: auto;
  display: block;
}

.tpv-main-logo-header {
  height: 24px;
}

.pcoded-navbar .header-logo .b-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  width: 100%;
  padding: 10px 14px 10px 14px;
}

.pcoded-header .m-header .b-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70px;
  padding-left: 14px;
}

.tpv-sidebar-collapsed .pcoded-navbar .header-logo .b-brand {
  padding: 10px 8px;
  justify-content: center;
}

.tpv-sidebar-collapsed .tpv-main-logo {
  width: 100%;
  max-width: 50px;
  height: auto;
}

.auth-wrapper .card {
  min-height: 460px;
}

.auth-wrapper .card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tpv-sidebar-toggle {
  border: 1px solid #2f3d57;
  background: #1e2a41;
  color: #e6edf7;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpv-sidebar-toggle:hover {
  background: #2b3b59;
  border-color: #455b80;
}

.tpv-sidebar-toggle-glyph {
  transform: translateY(-1px);
  font-weight: 700;
}

.tpv-sidebar-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
}

.pcoded-navbar .navbar-wrapper {
  position: relative;
  padding-bottom: 52px;
}

.tpv-sidebar-collapsed .pcoded-navbar {
  width: 72px !important;
  min-width: 72px !important;
}

.tpv-sidebar-collapsed .pcoded-navbar .b-title,
.tpv-sidebar-collapsed .pcoded-navbar .pcoded-menu-caption,
.tpv-sidebar-collapsed .pcoded-navbar .pcoded-mtext {
  display: none;
}

.tpv-sidebar-collapsed .pcoded-navbar .navbar-wrapper,
.tpv-sidebar-collapsed .pcoded-navbar .navbar-brand,
.tpv-sidebar-collapsed .pcoded-navbar .header-logo {
  width: 72px !important;
  min-width: 72px !important;
}

.tpv-sidebar-collapsed .pcoded-navbar .navbar-content {
  width: 72px !important;
}

.tpv-sidebar-collapsed .pcoded-navbar .nav-link {
  text-align: center;
}

.tpv-sidebar-collapsed .pcoded-navbar .pcoded-micon {
  margin-right: 0 !important;
}

.tpv-sidebar-collapsed .pcoded-header,
.tpv-sidebar-collapsed .pcoded-main-container {
  margin-left: 72px !important;
}

.tpv-sidebar-collapsed .tpv-global-alerts {
  margin-left: 84px;
}

.tpv-sidebar-collapsed .pcoded-header {
  width: calc(100% - 72px) !important;
}

.pcoded-header {
  z-index: 1030 !important;
}

.tpv-label {
  font-size: 12px;
  color: #6c7a88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tpv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpv-section-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9f2ff;
  color: #1d4f91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe1fb;
}

.tpv-section-icon i {
  font-size: 14px;
}

.tpv-table-panel {
  min-height: 420px;
  max-height: 68vh;
  resize: vertical;
  overflow: auto;
}

.tpv-equal-card .card-block {
  min-height: 460px;
}

.tpv-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpv-row-selected {
  background: #eef7ff !important;
}

.table tbody tr.tpv-row-linked-hover {
  outline: 2px solid #1b8fe6;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 9999px rgba(27, 143, 230, 0.08);
}

.table tbody tr.tpv-health-up {
  background: #e9f8ee;
}

.table tbody tr.tpv-health-partial {
  background: #fff4e5;
}

.table tbody tr.tpv-health-down {
  background: #fdecea;
}

.tpv-search-results {
  margin-top: 6px;
  border: 1px solid #e6ebf1;
  border-radius: 4px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.12);
}

.tpv-company-picker {
  position: relative;
  z-index: 1200;
}

.tpv-refresh-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpv-card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tpv-card-header-flex > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.tpv-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.tpv-probe-run {
  color: #6c7a88;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

.tpv-auto-refresh-toggle,
.tpv-auto-refresh-interval {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #405163;
  margin: 0;
}

.tpv-auto-refresh-toggle input[type="checkbox"] {
  margin: 0;
}

.tpv-auto-refresh-interval input[type="number"] {
  width: 66px;
  height: 30px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  padding: 4px 8px;
}

.tpv-alert-age-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 6px;
}

.tpv-alert-age-filter .form-control-sm {
  width: auto;
  min-width: 70px;
  height: 30px;
  padding: 3px 8px;
  font-size: 12px;
}

#alerts-age-value.form-control-sm {
  min-width: 56px;
  max-width: 76px;
}

.tpv-alert-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tpv-controls-row {
  row-gap: 8px;
}

.tpv-controls-row > [class*="col-"] {
  padding-top: 0;
  padding-bottom: 0;
}

.tpv-controls-row .form-control,
.tpv-controls-row .form-control-sm {
  height: 32px;
  font-size: 12px;
  border-radius: 6px;
}

.tpv-controls-row .form-control::placeholder,
.tpv-controls-row .form-control-sm::placeholder {
  color: #8a98a8;
}

.tpv-advanced-toggle {
  width: auto;
  min-width: 108px;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 10px;
}

.tpv-inline-actions {
  gap: 10px;
  margin-top: 2px !important;
}

.tpv-inline-actions .btn {
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.tpv-btn-advanced {
  min-width: 132px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.tpv-btn-select-companies {
  min-width: 250px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .tpv-inline-actions {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  .tpv-btn-advanced,
  .tpv-btn-select-companies {
    min-width: 0;
  }
}

.tpv-advanced-filters {
  display: none;
  margin-top: 4px;
  padding: 8px 8px 4px 8px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #f9fbfe;
}

.tpv-advanced-filters.is-open {
  display: flex;
}

#alerts-advanced-filters.is-open {
  display: block;
}

.tpv-menu {
  position: relative;
}

.tpv-menu[open] .tpv-menu-toggle {
  background: #edf3fb;
}

.tpv-menu-toggle {
  list-style: none;
  cursor: pointer;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e6072;
  background: #fff;
}

.tpv-menu-toggle::-webkit-details-marker {
  display: none;
}

.tpv-menu-panel {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 12;
  min-width: 150px;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(19, 33, 68, 0.14);
  padding: 6px;
}

.tpv-menu-panel-wide {
  min-width: 220px;
}

.tpv-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  font-size: 12px;
  color: #2f4256;
  padding: 6px 8px;
}

.tpv-menu-item:hover {
  background: #eef5ff;
}

.tpv-menu-divider {
  height: 1px;
  background: #e6edf6;
  margin: 6px 0;
}

.tpv-menu-section-title {
  font-size: 11px;
  color: #6b7b8b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2px 2px 6px 2px;
}

.tpv-menu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #2f4256;
  padding: 4px 6px;
  border-radius: 6px;
  margin: 0;
}

.tpv-menu-check:hover {
  background: #eef5ff;
}

.tpv-menu-check input[type="checkbox"] {
  margin: 0;
}

.tpv-col-hidden {
  display: none !important;
}

.table tbody tr.tpv-alert-fresh {
  background: #e9f8ee;
}

.table tbody tr.tpv-alert-warn {
  background: #fff9dc;
}

.table tbody tr.tpv-alert-stale {
  background: #fff4e5;
}

.table tbody tr.tpv-alert-critical {
  background: #fdecea;
}

.tpv-scope-toggle {
  border: 1px solid #dbe7f5;
  background: #fff;
  color: #36506b;
  border-radius: 14px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.tpv-scope-toggle i {
  transition: transform 0.2s ease;
}

.tpv-scope-toggle[aria-expanded="false"] i {
  transform: rotate(-90deg);
}

.tpv-scope-details {
  margin-top: 8px;
}

.tpv-scope-details:not(.is-expanded) .tpv-scope-hero {
  display: none;
}

.tpv-scope-hero {
  border: 1px solid #dbe7f5;
  border-radius: 6px;
  background: #f7fbff;
  padding: 10px 12px;
}

.tpv-scope-all {
  display: inline-block;
  font-weight: 700;
  color: #1d4f91;
  background: #e8f2ff;
  border: 1px solid #cfe1fb;
  border-radius: 14px;
  padding: 4px 10px;
}

.tpv-scope-single {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpv-scope-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpv-scope-chip {
  border: 1px solid #cdd7e3;
  background: #fff;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  color: #2e3a47;
}

.tpv-company-results {
  display: none;
  max-height: 260px;
  overflow: auto;
}

.tpv-scope-compact {
  padding-top: 8px;
  padding-bottom: 10px;
}

.tpv-scope-topline {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 10px;
  align-items: start;
}

.tpv-scope-selected {
  margin-top: 8px;
}

.tpv-scope-chip {
  cursor: pointer;
}

.tpv-chip-x {
  margin-left: 6px;
  color: #77879a;
  font-weight: 700;
}

.tpv-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
}

.tpv-modal.show {
  display: block;
}

.tpv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 30, 43, 0.52);
}

.tpv-modal-dialog {
  position: relative;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7e1ec;
  box-shadow: 0 18px 32px rgba(17, 28, 47, 0.22);
  display: flex;
  flex-direction: column;
}

.tpv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #ebf0f6;
}

.tpv-modal-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #4b5f73;
  cursor: pointer;
}

.tpv-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #ebf0f6;
}

.tpv-modal-tab {
  border: 1px solid #d3dce8;
  border-radius: 999px;
  background: #f8fbff;
  color: #2f4256;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
}

.tpv-modal-tab.active {
  background: #1d4f91;
  border-color: #1d4f91;
  color: #fff;
}

.tpv-modal-body {
  padding: 12px;
  overflow: auto;
}

.tpv-modal-dialog-wide {
  width: min(1080px, calc(100vw - 36px));
}

.tpv-snapshot-shell {
  display: grid;
  gap: 14px;
}

.tpv-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tpv-snapshot-card {
  border: 1px solid #dde7f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(16, 35, 58, 0.05);
}

.tpv-snapshot-card-title {
  margin: 0 0 10px 0;
  color: #203449;
  font-weight: 700;
}

.tpv-snapshot-scope-summary {
  margin-bottom: 10px;
  color: #5f7389;
  font-size: 12px;
}

.tpv-snapshot-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: #24384c;
  font-size: 13px;
}

.tpv-snapshot-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tpv-snapshot-stat {
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px 10px;
  text-align: center;
}

.tpv-snapshot-stat-label {
  display: block;
  color: #63778d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.tpv-snapshot-stat strong {
  color: #18395b;
  font-size: 24px;
  line-height: 1;
}

.tpv-snapshot-note {
  margin-top: 10px;
  color: #617487;
  font-size: 12px;
  line-height: 1.45;
}

.tpv-snapshot-actions-card {
  padding: 12px 14px;
}

.tpv-snapshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tpv-snapshot-report-card {
  padding: 0;
  overflow: hidden;
}

.tpv-snapshot-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #e7edf4;
}

.tpv-snapshot-preview {
  min-height: 320px;
  max-height: 52vh;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.88), rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 27px,
      rgba(191, 206, 223, 0.18) 27px,
      rgba(191, 206, 223, 0.18) 28px
    );
  color: #17324c;
  padding: 16px 18px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .tpv-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .tpv-snapshot-counts {
    grid-template-columns: 1fr;
  }

  .tpv-snapshot-actions {
    flex-direction: column;
  }
}

.tpv-ignored-list {
  display: grid;
  gap: 8px;
}

.tpv-ignored-item {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fafcff;
  padding: 8px 10px;
}

.tpv-company-results.show {
  display: block;
}

.tpv-tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpv-tag-btn {
  border: 1px solid #cfe1fb;
  background: #f5f9ff;
  color: #1d4f91;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.tpv-tag-btn.active {
  background: #1d4f91;
  border-color: #1d4f91;
  color: #fff;
}

.tpv-result-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f3f7;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.tpv-result-item:hover {
  background: #f6faff;
}

.tpv-result-item strong {
  display: block;
  color: #1f2d3d;
}

.tpv-result-item input[type="checkbox"] {
  margin-right: 8px;
  transform: translateY(1px);
}

.tpv-result-item span {
  display: block;
  color: #708090;
  font-size: 12px;
}

.tpv-empty {
  padding: 10px;
  color: #7a8793;
}

.tpv-selected-wrap {
  border: 1px solid #e6ebf1;
  border-radius: 4px;
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  background: #fff;
}

.tpv-chip {
  border: 1px solid #cdd7e3;
  background: #f4f8fc;
  border-radius: 16px;
  margin: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

.tpv-chip i {
  margin-left: 6px;
  color: #7a8793;
}

.tpv-copy-id {
  border: 0;
  padding: 0;
  background: transparent;
  color: #04a9f5;
  text-decoration: underline;
  cursor: text;
  font-size: inherit;
  max-width: 100%;
  text-align: left;
  user-select: text;
  -webkit-user-select: text;
  display: inline-block;
}

.tpv-copy-id:hover {
  color: #038fcf;
}

.tpv-clip-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.tpv-clip-camera {
  max-width: 220px;
}

.tpv-clip-company {
  max-width: 200px;
}

#health-table th:nth-child(1),
#health-table td:nth-child(1) {
  min-width: 200px;
  max-width: 240px;
}

#health-table th:nth-child(2),
#health-table td:nth-child(2) {
  min-width: 180px;
  max-width: 220px;
}

#health-table th:nth-child(3),
#health-table td:nth-child(3) {
  min-width: 70px;
}

#health-table th:nth-child(4),
#health-table td:nth-child(4) {
  min-width: 64px;
}

#health-table th:nth-child(5),
#health-table td:nth-child(5) {
  min-width: 96px;
}

#health-table th:nth-child(6),
#health-table td:nth-child(6) {
  min-width: 72px;
}

#health-table th:nth-child(7),
#health-table td:nth-child(7) {
  min-width: 150px;
}

.tpv-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(20, 30, 40, 0.92);
  color: #fff;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 2000;
}

.tpv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.tpv-top-toast-container {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.tpv-top-toast {
  min-width: 320px;
  max-width: 620px;
  background: #1f2c3b;
  color: #fff;
  border: 1px solid #415a73;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 26, 40, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tpv-top-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.tpv-monitor-box {
  background: #f8fbff;
  border: 1px solid #d9e9fb;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 14px;
}

.tpv-monitor-box h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

.tpv-monitor-box ul {
  margin: 0;
  padding-left: 18px;
}

.tpv-layout-canvas {
  position: relative;
  min-height: 0;
}

.tpv-layout-widget {
  margin-bottom: 12px;
}

.tpv-layout-widget .card {
  margin-bottom: 0;
}

.tpv-layout-widget.is-draggable .card-header {
  cursor: move;
}

.tpv-layout-widget.ui-resizable {
  border-radius: 8px;
}

.tpv-layout-widget .ui-resizable-handle {
  background: #dce8f7;
  border: 1px solid #c0d4f0;
  border-radius: 4px;
  z-index: 20;
}

.tpv-layout-widget .ui-resizable-se {
  width: 12px;
  height: 12px;
  right: 4px;
  bottom: 4px;
}

.tpv-layout-canvas.is-free-layout {
  overflow: hidden;
}

.tpv-layout-canvas.is-free-layout .tpv-layout-widget {
  position: absolute;
  margin: 0;
}

/* Client Checks: single-screen dashboard layout */
@media (min-width: 1400px) {
  .tpv-client-shell .pcoded-wrapper,
  .tpv-client-shell .pcoded-content,
  .tpv-client-shell .pcoded-inner-content,
  .tpv-client-shell .main-body {
    height: 100%;
    overflow: hidden;
  }

  .page-wrapper.tpv-client-dashboard {
    height: calc(100vh - 108px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .page-wrapper.tpv-client-dashboard > .row {
    margin: 0;
    min-height: 0;
  }

  .tpv-row-scope {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tpv-layout-canvas {
    grid-column: 1 / -1;
    grid-row: 2 / 4;
    min-height: 0;
    height: 100%;
  }

  .tpv-row-scope .card,
  .tpv-layout-widget .card {
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .tpv-row-scope .card-block,
  .tpv-layout-widget .card-block {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tpv-equal-card .card-block {
    min-height: 0;
  }

  .tpv-table-panel {
    min-height: 0;
    max-height: none;
    height: 100%;
    resize: none;
  }

  #alerts-results-panel,
  #health-results-panel,
  #edge-results-panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  #alerts-table thead th,
  #health-table thead th,
  #edge-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }

  .tpv-row-scope .card-block {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tpv-company-results {
    max-height: 180px;
  }

  .tpv-scope-hero {
    max-height: 112px;
    overflow: auto;
  }

  #alerts-table td,
  #health-table td,
  #edge-table td {
    padding-top: 0.36rem;
    padding-bottom: 0.36rem;
    font-size: 12px;
  }
}

@media (max-width: 1399px) {
  .tpv-global-alerts {
    margin: 8px 12px 0 12px;
  }

  .tpv-global-alerts-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
  }

  .tpv-global-alerts-meta {
    display: none;
  }

  .tpv-alert-card {
    min-width: 260px;
    max-width: 360px;
  }

  .tpv-client-shell .pcoded-wrapper,
  .tpv-client-shell .pcoded-content,
  .tpv-client-shell .pcoded-inner-content,
  .tpv-client-shell .main-body {
    height: auto;
    overflow: visible;
  }

  .page-wrapper.tpv-client-dashboard {
    display: block;
    height: auto;
    overflow: visible;
  }

  .tpv-row-scope,
  .tpv-row-edge,
  .tpv-row-deep {
    display: block;
  }

  .tpv-row-deep > [class*="col-"],
  .tpv-row-edge > [class*="col-"],
  .tpv-row-scope > [class*="col-"] {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
  }

  .tpv-row-scope .card,
  .tpv-row-edge .card,
  .tpv-row-deep .card {
    height: auto;
    min-height: 0;
  }

  .tpv-row-scope .card-block,
  .tpv-row-edge .card-block,
  .tpv-row-deep .card-block {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .tpv-table-panel {
    min-height: 0;
    max-height: none;
    height: auto;
    resize: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .tpv-scope-topline {
    grid-template-columns: 1fr;
  }

  .tpv-tag-buttons {
    margin-top: 6px;
  }
}

@media (max-width: 767px) {
  .tpv-alert-center-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .tpv-alert-center-meta {
    display: none;
  }
}

@media (max-height: 860px) {
  .page-wrapper.tpv-client-dashboard {
    display: block;
    height: auto;
    overflow: visible;
  }

  .tpv-row-scope .card,
  .tpv-layout-widget .card {
    height: auto;
  }

  .tpv-row-scope .card-block,
  .tpv-layout-widget .card-block {
    min-height: 0;
    overflow: visible;
  }

  .tpv-table-panel {
    min-height: 0;
    max-height: none;
    height: auto;
    resize: none;
    overflow-x: auto;
    overflow-y: visible;
  }
}

/* Fixed 3-column main sections (non-scope) */
.tpv-row-main {
  margin: 0 -6px;
  position: relative;
  z-index: 1;
}

.tpv-row-main > [class*="col-"] {
  padding: 0 6px;
}

.tpv-row-main .tpv-resizable-section {
  min-height: 520px;
  height: 62vh;
  resize: vertical;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.tpv-row-main .tpv-resizable-section .card-block {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.tpv-row-main .tpv-table-panel {
  min-height: 320px;
  max-height: none;
  height: 100%;
  resize: none;
}

@media (max-width: 1199px) {
  .tpv-row-main .tpv-resizable-section {
    height: auto;
    min-height: 420px;
    resize: none;
  }
}

/* Final layout overrides: scope full-width, three equal full-width columns */
.page-wrapper.tpv-client-dashboard {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}

.page-wrapper.tpv-client-dashboard > .row {
  margin-left: -6px;
  margin-right: -6px;
}

.tpv-row-scope > .col-sm-12 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.tpv-row-scope {
  position: relative;
  z-index: 20;
}

.tpv-row-scope .card,
.tpv-row-scope .card-block {
  position: relative;
  overflow: visible;
}

.tpv-row-main {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.tpv-row-main > [class*="col-"] {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  width: 33.333333%;
  min-width: 420px;
}

@media (max-width: 1519px) {
  .tpv-row-main {
    display: block;
  }

  .tpv-row-main > [class*="col-"] {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 1100px) {
  .tpv-card-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tpv-header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tpv-controls-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .tpv-inline-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .tpv-inline-actions .btn,
  .tpv-advanced-toggle {
    width: 100%;
  }

  .tpv-row-main .tpv-resizable-section {
    min-height: 360px;
  }
}

.tpv-doc-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tpv-doc-filter-row .form-control {
  width: min(280px, 100%);
}

.tpv-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tpv-doc-card {
  display: block;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tpv-doc-card:hover {
  border-color: #9ec2ef;
  box-shadow: 0 8px 22px rgba(22, 61, 107, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.tpv-doc-card h6 {
  color: #25384a;
  margin-bottom: 7px;
}

.tpv-doc-card p {
  color: #566b7f;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.tpv-doc-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}

.tpv-doc-dates span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e9f2;
  background: #f8fbff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  color: #4b6074;
  font-weight: 600;
}

.tpv-doc-dates-page {
  margin-bottom: 12px;
}

.tpv-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpv-doc-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe1f8;
  background: #edf5ff;
  color: #28507d;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.tpv-doc-tag:hover {
  text-decoration: none;
  background: #e0efff;
}

.tpv-doc-tag-muted {
  border-color: #dfe5ec;
  background: #f5f7fa;
  color: #6a7f93;
}

.tpv-doc-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tpv-markdown-body {
  color: #2b3d4f;
  line-height: 1.7;
  font-size: 15px;
}

.tpv-markdown-body h1,
.tpv-markdown-body h2,
.tpv-markdown-body h3,
.tpv-markdown-body h4 {
  color: #1f344a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.tpv-markdown-body h1 {
  font-size: 30px;
}

.tpv-markdown-body h2 {
  font-size: 24px;
}

.tpv-markdown-body h3 {
  font-size: 19px;
}

.tpv-markdown-body p,
.tpv-markdown-body li {
  color: #34495d;
}

.tpv-markdown-body pre {
  position: relative;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
  color: #17314d;
  border-radius: 12px;
  border: 1px solid #d4e4f6;
  padding: 22px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(35, 75, 122, 0.09);
  overflow-x: auto;
  overflow-y: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tpv-markdown-body code {
  background: #edf2f8;
  color: #23364a;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.tpv-markdown-body pre code {
  display: block;
  min-width: fit-content;
  white-space: pre;
  background: transparent !important;
  color: #193a5b !important;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tpv-code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #c8d9ef;
  background: rgba(255, 255, 255, 0.95);
  color: #274b72;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tpv-code-copy-btn:hover {
  background: #edf5ff;
}

.tpv-markdown-body pre::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7cb2f5;
  box-shadow: 14px 0 0 #9bc8f9, 28px 0 0 #bddcf9;
}

.tpv-markdown-body pre:hover {
  border-color: #c2d8f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(35, 75, 122, 0.12);
}

.tpv-inline-code-clickable {
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.tpv-inline-code-clickable:hover {
  background: #e6f0ff;
  border-color: #cfe0f4;
}

.tpv-inline-copy-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #193a5b;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(16, 42, 70, 0.2);
  z-index: 20;
}

.tpv-inline-copy-toast.is-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tpv-markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.tpv-markdown-body th,
.tpv-markdown-body td {
  border: 1px solid #e1e8f0;
  padding: 8px 10px;
}

.tpv-markdown-body th {
  background: #f3f8ff;
}
