/* Notification center: opaque, readable surface with compact mobile hierarchy. */
.iin-ref-shell #topbarNotificationsPanel {
  width: min(432px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 92px));
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 22px;
  background: #f8fafc;
  color: #172033;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  isolation: isolate;
}

.iin-ref-shell #topbarNotificationsPanel::before {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid #e5eaf1;
  background: linear-gradient(145deg, #ffffff 0%, #f6f8fb 100%);
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-head > div {
  min-width: 0;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-eyebrow {
  margin: 0 0 3px;
  color: #8f1833;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-head h3 {
  margin: 0;
  color: #172033;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link {
  align-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(143, 24, 51, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #7a2036;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  font-size: 0.72rem;
  font-weight: 750;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link:hover {
  border-color: rgba(143, 24, 51, 0.32);
  background: #fdf6f8;
  color: #65172b;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link:focus-visible {
  outline: 3px solid rgba(143, 24, 51, 0.16);
  outline-offset: 2px;
  box-shadow: none;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-notifications-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 11px 12px;
  border-bottom: 1px solid #e9edf3;
  background: #f8fafc;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  gap: 5px;
  border: 1px solid #dfe5ed;
  border-radius: 11px;
  background: #fff;
  color: #526176;
  box-shadow: none;
  font-size: 0.69rem;
  font-weight: 700;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill:hover {
  border-color: #c9d2df;
  background: #f5f7fa;
  color: #253247;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill.is-active {
  border-color: rgba(143, 24, 51, 0.24);
  background: #f8eaf0;
  color: #741d34;
  box-shadow: inset 0 0 0 1px rgba(143, 24, 51, 0.04);
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: #eef2f6;
  color: #526176;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill.is-active .iin-topbar-filter-pill-count {
  background: #fff;
  color: #741d34;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list {
  gap: 12px;
  max-height: min(530px, calc(100dvh - 230px));
  padding: 13px 12px 15px;
  background: #f8fafc;
  scrollbar-color: #b5c0ce transparent;
  overscroll-behavior: contain;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list::-webkit-scrollbar {
  width: 7px;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  background: #b5c0ce;
  background-clip: padding-box;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section {
  gap: 7px;
  margin: 0;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section + .iin-topbar-panel-section {
  margin-top: 3px;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section-label {
  display: block;
  padding: 0 3px 2px;
  color: #718096;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item {
  position: relative;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e0e6ee;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055);
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item + .iin-topbar-item {
  margin-top: 7px;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item[data-category="frequency"] {
  border-left: 3px solid #a63b58;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item[data-category="attendance"],
.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item[data-category="cadastro"] {
  border-left: 3px solid #6d91bd;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item.is-read {
  opacity: 0.72;
  box-shadow: none;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #e0e6ee;
  border-radius: 11px;
  background: #f3f6f9;
  color: #526176;
  box-shadow: none;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon[data-tone="warn"] {
  border-color: #efd6de;
  background: #fbedf1;
  color: #8f1833;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon[data-tone="medical"] {
  border-color: #e1d9ec;
  background: #f5f1f9;
  color: #745d99;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon[data-tone="info"] {
  border-color: #d8e4f0;
  background: #eef5fb;
  color: #416f9f;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-copy {
  gap: 3px;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-title {
  flex-wrap: nowrap;
  gap: 8px;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-kind {
  min-height: 20px;
  padding: 0 7px;
  background: #f2e6eb;
  color: #7a2036;
  font-size: 0.63rem;
  font-weight: 800;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-time {
  color: #7b8798;
  font-size: 0.68rem;
  font-weight: 650;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-heading {
  color: #172033;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.28;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-detail {
  color: #3f4d61;
  font-size: 0.78rem;
  line-height: 1.4;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-meta {
  padding-top: 2px;
  color: #718096;
  font-size: 0.7rem;
  line-height: 1.35;
}

.iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-empty {
  padding: 22px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #526176;
}

@media (max-width: 720px) {
  .iin-ref-shell #topbarNotificationsPanel {
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 18px));
    max-height: min(72dvh, 620px);
    border-color: rgba(148, 125, 136, 0.28);
    border-radius: 22px;
    background: #f2eef1;
    box-shadow: 0 20px 46px rgba(34, 27, 40, 0.22), 0 2px 8px rgba(34, 27, 40, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .iin-ref-shell #topbarNotificationsPanel::before {
    right: 62px;
    background: #f2eef1;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 11px 12px 9px;
    border-color: rgba(148, 125, 136, 0.18);
    background: linear-gradient(145deg, #f8f4f6 0%, #f0ebef 100%);
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-eyebrow {
    margin-bottom: 2px;
    font-size: 0.62rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-head h3 {
    font-size: 1.18rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link {
    min-height: 29px;
    padding: 0 9px;
    border-color: rgba(143, 24, 51, 0.16);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    font-size: 0.65rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-notifications-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 7px 9px;
    border-color: rgba(148, 125, 136, 0.16);
    background: #f2eef1;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill {
    min-height: 31px;
    padding: 0 8px;
    border-color: rgba(148, 125, 136, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-filter-pill-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list {
    gap: 8px;
    max-height: min(50dvh, 430px);
    padding: 8px 8px 10px;
    background: #f2eef1;
    scrollbar-color: rgba(117, 98, 108, 0.48) transparent;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list::-webkit-scrollbar {
    width: 5px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-list::-webkit-scrollbar-thumb {
    background: rgba(117, 98, 108, 0.48);
    border-width: 1px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section {
    gap: 5px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section + .iin-topbar-panel-section {
    margin-top: 1px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-section-label {
    padding: 0 2px 1px;
    color: #796b73;
    font-size: 0.61rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 9px;
    border-color: rgba(148, 125, 136, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 3px 10px rgba(46, 35, 43, 0.05);
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item + .iin-topbar-item {
    margin-top: 5px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-icon svg {
    width: 13px;
    height: 13px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-copy {
    gap: 2px;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-kind {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.59rem;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-heading {
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-detail {
    font-size: 0.73rem;
    line-height: 1.32;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-meta {
    padding-top: 1px;
    font-size: 0.66rem;
    line-height: 1.28;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-time {
    font-size: 0.64rem;
  }
}

@media (max-width: 380px) {
  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-panel-link {
    max-width: 104px;
    line-height: 1.15;
    white-space: normal;
  }

  .iin-ref-shell #topbarNotificationsPanel .iin-topbar-item-time {
    font-size: 0.64rem;
  }
}
