.alerts-content {
  padding-top: 28px;
}


/* =====================================================
   HEADER
===================================================== */

.alerts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}


.alerts-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border: 1px solid #f2ced2;

  border-radius: 999px;

  color: #c64d59;

  background: #fff2f4;

  font-size: 11px;

  font-weight: 800;
}


.alerts-heading h1 {
  margin-top: 10px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 29px;

  letter-spacing: -1px;
}


.alerts-heading p {
  margin-top: 5px;

  color: #718095;

  font-size: 12.5px;

  line-height: 1.6;
}


.alerts-actions {
  display: flex;

  gap: 8px;
}


.alerts-primary,
.alerts-secondary {
  min-height: 40px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 0 13px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 11px;

  font-weight: 800;
}


.alerts-primary {
  color: white;

  background:
    linear-gradient(
      100deg,
      #d45561,
      #eb737c
    );

  box-shadow:
    0 10px 24px
    rgba(213,84,97,.18);
}


.alerts-secondary {
  color: #55667d;

  border: 1px solid #dbe4ef;

  background: white;
}


/* =====================================================
   SUMMARY
===================================================== */

.alerts-summary {
  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  gap: 9px;

  margin-bottom: 17px;
}


.alert-summary-item {
  min-height: 70px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 10px 12px;

  border: 1px solid #dfe7f0;

  border-radius: 14px;

  color: #607086;

  background: white;

  cursor: pointer;

  transition: .2s ease;
}


.alert-summary-item:hover,
.alert-summary-item.active {
  border-color: #f0c9ce;

  background: #fff9fa;

  transform: translateY(-1px);
}


.alert-summary-icon {
  width: 37px;
  height: 37px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;
}


.alert-summary-icon.all {
  color: #1688ff;
  background: #eaf5ff;
}


.alert-summary-icon.critical {
  color: #cb3e4d;
  background: #ffe9ec;
}


.alert-summary-icon.high {
  color: #e16c28;
  background: #fff0e5;
}


.alert-summary-icon.medium {
  color: #d79718;
  background: #fff5df;
}


.alert-summary-icon.resolved {
  color: #159768;
  background: #e7f8f1;
}


.alert-summary-item strong {
  display: block;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.alert-summary-item span {
  display: block;

  margin-top: 2px;

  font-size: 10px;
}


/* =====================================================
   WORKSPACE
===================================================== */

.alerts-workspace {
  display: grid;

  grid-template-columns:
    250px
    minmax(0,1fr)
    280px;

  min-height: 740px;

  overflow: hidden;

  border: 1px solid #dfe7f0;

  border-radius: 20px;

  background: white;

  box-shadow:
    0 14px 38px
    rgba(18,70,115,.05);
}


/* =====================================================
   LEFT
===================================================== */

.alerts-list-panel {
  padding: 16px;

  border-right: 1px solid #e6ecf3;

  background: #f8fbfe;
}


.alerts-list-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;
}


.alerts-list-heading span {
  color: #d15360;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.alerts-list-heading h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 16px;
}


.alerts-list-heading > strong {
  width: 27px;
  height: 27px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  color: #c84c59;

  background: #ffedf0;

  font-size: 11px;
}


.alerts-list-search {
  height: 36px;

  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 13px;

  padding: 0 10px;

  border: 1px solid #dee7f0;

  border-radius: 10px;

  background: white;
}


.alerts-list-search i {
  color: #96a1b0;

  font-size: 11px;
}


.alerts-list-search input {
  width: 100%;

  border: 0;
  outline: 0;

  color: #58677b;

  background: transparent;

  font-size: 11px;
}


.alerts-list {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-top: 12px;
}


.alert-item {
  width: 100%;

  padding: 11px;

  border: 1px solid #e1e8f0;

  border-radius: 12px;

  color: inherit;

  background: white;

  cursor: pointer;

  text-align: left;

  transition: .2s ease;
}


.alert-item:hover {
  border-color: #dfc5c9;

  transform: translateX(2px);
}


.alert-item.active {
  border-color: #e89ca5;

  background:
    linear-gradient(
      120deg,
      #fff4f5,
      #ffffff
    );

  box-shadow:
    0 8px 22px
    rgba(213,84,97,.07);
}


.alert-item-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;
}


.alert-code {
  color: #8995a5;

  font-size: 10px;

  font-weight: 700;
}


.alert-level {
  padding: 4px 6px;

  border-radius: 999px;

  font-size: 6px;

  font-weight: 800;
}


.alert-level.critical {
  color: #c63f4c;
  background: #ffe9ec;
}


.alert-level.high {
  color: #da6b29;
  background: #fff0e5;
}


.alert-level.medium {
  color: #bb7e11;
  background: #fff5df;
}


.alert-item > strong {
  display: block;

  margin-top: 7px;

  color: #061326;

  font-size: 11px;

  line-height: 1.4;
}


.alert-item > p {
  margin-top: 5px;

  color: #718096;

  font-size: 10px;
}


.alert-item-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 7px;

  margin-top: 9px;

  color: #8a97a7;

  font-size: 6.5px;
}


/* =====================================================
   DETAIL
===================================================== */

.alert-detail-panel {
  padding: 20px;
}


.alert-detail-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding-bottom: 14px;

  border-bottom: 1px solid #edf1f5;
}


.alert-detail-header > div > span {
  color: #d15360;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.alert-detail-header h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 19px;
}


.alert-detail-level {
  padding: 6px 9px;

  border-radius: 999px;

  font-size: 10px;

  font-weight: 800;
}


.alert-detail-level.critical {
  color: #c33d4b;
  background: #ffe9ec;
}


.alert-detail-level.high {
  color: #db6927;
  background: #fff0e5;
}


.alert-detail-level.medium {
  color: #b67a12;
  background: #fff5df;
}


/* =====================================================
   MAIN ALERT CARD
===================================================== */

.alert-main-card {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 17px 0;

  border-bottom: 1px solid #edf1f5;
}


.alert-main-icon {
  width: 46px;
  height: 46px;

  flex: 0 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 13px;

  color: #d15360;

  background: #fff0f2;

  font-size: 15px;
}


.alert-main-card span {
  color: #d15360;

  font-size: 6.5px;

  font-weight: 800;

  letter-spacing: .7px;
}


.alert-main-card h3 {
  margin-top: 4px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.alert-main-card p {
  margin-top: 6px;

  color: #758397;

  font-size: 11px;

  line-height: 1.6;
}


/* =====================================================
   SECTIONS
===================================================== */

.alert-section {
  padding: 17px 0;

  border-bottom: 1px solid #edf1f5;
}


.alert-section-title {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #65758a;

  font-size: 10px;

  font-weight: 800;
}


.alert-section-title i {
  color: #d15360;
}


/* CONTEXT */

.alert-context-grid {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 8px;

  margin-top: 12px;
}


.alert-context-grid > div {
  padding: 10px;

  border: 1px solid #e4ebf2;

  border-radius: 11px;

  background: #fafcff;
}


.alert-context-grid span {
  display: block;

  color: #8a97a8;

  font-size: 6.5px;
}


.alert-context-grid strong {
  display: block;

  margin-top: 4px;

  color: #061326;

  font-size: 11px;
}


/* CAUSE */

.cause-box {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-top: 12px;

  padding: 12px;

  border: 1px solid #f0dadd;

  border-radius: 12px;

  background: #fff9fa;
}


.cause-icon {
  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  color: #d15360;

  background: white;
}


.cause-box strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.cause-box p {
  margin-top: 4px;

  color: #7c8899;

  font-size: 10px;

  line-height: 1.5;
}


/* ACTIONS */

.recommended-action-list {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-top: 12px;
}


.recommended-action {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  padding: 10px;

  border: 1px solid #e5ebf1;

  border-radius: 11px;

  background: #fbfcfe;

  cursor: pointer;
}


.recommended-action input {
  margin-top: 2px;

  accent-color: #d15360;
}


.recommended-action strong {
  display: block;

  color: #061326;

  font-size: 10.5px;
}


.recommended-action small {
  display: block;

  margin-top: 3px;

  color: #8995a6;

  font-size: 6.5px;

  line-height: 1.4;
}


/* LOG */

.alert-log {
  margin-top: 13px;
}


.alert-log-entry {
  position: relative;

  display: flex;

  gap: 10px;

  padding-bottom: 15px;
}


.alert-log-entry:not(:last-child)::before {
  content: "";

  position: absolute;

  left: 5px;
  top: 12px;

  width: 1px;
  height: calc(100% - 5px);

  background: #dfe6ed;
}


.log-dot {
  position: relative;

  z-index: 2;

  width: 11px;
  height: 11px;

  flex: 0 0 auto;

  margin-top: 2px;

  border-radius: 50%;
}


.log-dot.system {
  background: #1688ff;
}


.log-dot.review {
  background: #d58b11;
}


.alert-log-entry strong {
  display: block;

  color: #061326;

  font-size: 10.5px;
}


.alert-log-entry span {
  display: block;

  margin-top: 2px;

  color: #8995a6;

  font-size: 6px;
}


.alert-log-entry p {
  margin-top: 4px;

  color: #748297;

  font-size: 10px;
}


/* NOTE */

.alert-note-box {
  margin-top: 11px;
}


.alert-note-box textarea {
  width: 100%;
  min-height: 80px;

  padding: 11px;

  resize: vertical;

  border: 1px solid #dce5ee;

  border-radius: 11px;

  outline: none;

  color: #53647a;

  background: #fbfcfe;

  font-family: inherit;

  font-size: 11px;
}


.alert-note-box textarea:focus {
  border-color: #e5adb3;

  box-shadow:
    0 0 0 3px
    rgba(213,84,97,.06);
}


.alert-note-box button {
  min-height: 33px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 8px;

  padding: 0 10px;

  border-radius: 9px;

  color: white;

  background: #d15360;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* =====================================================
   RIGHT
===================================================== */

.alert-actions-panel {
  display: flex;

  flex-direction: column;

  gap: 12px;

  padding: 15px;

  border-left: 1px solid #e6ecf3;

  background: #fbfcfe;
}


.alert-side-card {
  padding: 14px;

  border: 1px solid #e2e8ef;

  border-radius: 14px;

  background: white;
}


.alert-side-title {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;
}


.alert-side-title span {
  color: #6c798c;

  font-size: 6.5px;

  font-weight: 800;

  letter-spacing: .8px;
}


.alert-side-title i {
  color: #d15360;
}


/* OWNER */

.alert-owner {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 13px;
}


.alert-owner-avatar {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #d15360,
      #ec7c84
    );

  font-size: 11px;

  font-weight: 800;
}


.alert-owner strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.alert-owner span {
  display: block;

  margin-top: 2px;

  color: #8895a6;

  font-size: 6.5px;
}


.alert-side-card > button {
  width: 100%;

  min-height: 33px;

  margin-top: 11px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid #dce5ee;

  border-radius: 9px;

  color: #55677d;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* PRIORITY */

.priority-card {
  border-color: #f0d3d6;

  background:
    linear-gradient(
      140deg,
      #fff6f7,
      #ffffff
    );
}


.priority-score {
  display: flex;

  align-items: baseline;
  justify-content: center;

  margin-top: 12px;
}


.priority-score strong {
  color: #cf4654;

  font-family: "Manrope", sans-serif;

  font-size: 31px;
}


.priority-score span {
  color: #909baa;

  font-size: 11px;
}


.priority-card > p {
  margin: 5px 0 12px;

  color: #788699;

  font-size: 10px;

  line-height: 1.5;

  text-align: center;
}


.priority-factor {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 7px;

  padding: 7px 0;

  border-top: 1px solid #f1e3e5;
}


.priority-factor span {
  color: #788699;

  font-size: 10px;
}


.priority-factor strong {
  color: #c84d59;

  font-size: 10px;
}


/* NETWORK */

.related-network {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 13px;
}


.related-network > div {
  width: 39px;
  height: 39px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #1688ff,
      #37b6d7
    );
}


.related-network strong {
  display: block;

  color: #061326;

  font-size: 10.5px;
}


.related-network small {
  display: block;

  margin-top: 2px;

  color: #8995a5;

  font-size: 6.5px;
}


/* QUICK */

.quick-alert-actions {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-top: 12px;
}


.quick-alert-actions button {
  min-height: 34px;

  display: flex;

  align-items: center;

  gap: 7px;

  padding: 0 10px;

  border: 1px solid #e0e7ef;

  border-radius: 9px;

  color: #586a80;

  background: #fafcfe;

  cursor: pointer;

  font-size: 10px;

  font-weight: 700;

  text-align: left;
}


.quick-alert-actions button:hover {
  border-color: #e0b8bd;

  background: #fff8f9;
}


/* =====================================================
   BOTTOM
===================================================== */

.alerts-bottom-bar {
  position: sticky;

  bottom: 15px;

  z-index: 20;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;

  margin-top: 15px;

  padding: 12px 14px;

  border: 1px solid #e6d2d5;

  border-radius: 14px;

  background: rgba(255,255,255,.95);

  backdrop-filter: blur(12px);

  box-shadow:
    0 14px 35px
    rgba(19,65,110,.10);
}


.alerts-bottom-bar > div:first-child {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #6d7d91;

  font-size: 10px;
}


.alerts-bottom-bar > div:first-child i {
  color: #d15360;
}


.alerts-bottom-bar > div:last-child {
  display: flex;

  gap: 7px;
}


.alert-dismiss-btn,
.alert-resolve-btn {
  min-height: 36px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 0 11px;

  border-radius: 9px;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


.alert-dismiss-btn {
  color: #66768b;

  border: 1px solid #dce5ee;

  background: white;
}


.alert-resolve-btn {
  color: white;

  background:
    linear-gradient(
      100deg,
      #cf4e5b,
      #e97079
    );
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

  .alerts-workspace {
    grid-template-columns:
      230px
      1fr;
  }


  .alert-actions-panel {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
      repeat(2,1fr);

    border-left: 0;

    border-top: 1px solid #e6ecf3;
  }

}


@media (max-width: 900px) {

  .alerts-summary {
    grid-template-columns:
      repeat(2,1fr);
  }


  .alerts-workspace {
    grid-template-columns:
      1fr;
  }


  .alerts-list-panel {
    border-right: 0;

    border-bottom: 1px solid #e6ecf3;
  }


  .alerts-list {
    display: grid;

    grid-template-columns:
      repeat(2,1fr);
  }


  .alert-actions-panel {
    grid-template-columns:
      1fr;
  }


  .alert-context-grid {
    grid-template-columns:
      repeat(2,1fr);
  }

}


@media (max-width: 650px) {

  .alerts-heading {
    align-items: flex-start;

    flex-direction: column;
  }


  .alerts-actions {
    width: 100%;

    flex-direction: column;
  }


  .alerts-primary,
  .alerts-secondary {
    justify-content: center;
  }


  .alerts-summary,
  .alerts-list,
  .alert-context-grid {
    grid-template-columns:
      1fr;
  }


  .alerts-bottom-bar {
    align-items: flex-start;

    flex-direction: column;
  }


  .alerts-bottom-bar > div:last-child {
    width: 100%;

    flex-direction: column;
  }


  .alert-dismiss-btn,
  .alert-resolve-btn {
    justify-content: center;
  }

}