.module-frame.action-report-detail-open {
  grid-template-rows: auto auto auto minmax(210px, 44vh) minmax(0, 1fr) 54px;
}

.action-report-inline-movements.instrument-detail-content {
  border-bottom: 1px solid #8fc8d7;
  border-radius: 0;
  min-height: 150px;
  width: 100%;
}

.action-report-account-link.instrument-detail-tab {
  align-self: stretch;
  border-radius: 0;
  min-height: 43px;
  width: 100%;
}
#moduleMetrics.action-report-metrics {
  display: block;
  padding: 8px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #bdd8e8;
  background: linear-gradient(90deg, #eef8fb 0%, #f7fbfd 52%, #edf8f5 100%);
}

.action-report-filter {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.action-report-filter-label {
  margin-right: 2px;
  color: #41657c;
  font-size: 11px;
  letter-spacing: .04em;
}

.action-report-filter button,
.action-report-filter input {
  min-height: 38px;
  border: 1px solid #bfd7e6;
  border-radius: 9px;
  background: #f8fbfd;
  color: #082341;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.action-report-filter button {
  padding: 0 14px;
  cursor: pointer;
}

.action-report-filter button:hover,
.action-report-filter button.active {
  border-color: #0a91a7;
  background: #dff5f6;
  color: #006f83;
}

.action-report-filter input {
  width: 138px;
  padding: 0 9px;
}

.action-report-filter .action-report-query {
  border-color: #0a91a7;
  background: #0b91a7;
  color: #fff;
}

.action-report-filter .action-report-query:hover {
  background: #087f93;
  color: #fff;
}

.action-report-date-separator {
  color: #7290a3;
  font-weight: 800;
}

.action-report-detail {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e5c48c;
  border-radius: 0 0 12px 12px;
  background: #fff7e8;
  box-shadow: 0 12px 26px rgba(76, 49, 12, .16);
  animation: action-report-detail-in .22s ease-out both;
}

.action-report-detail-heading {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(230px, 1.35fr) minmax(175px, auto) 34px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 5px 10px 5px 14px;
  background: linear-gradient(90deg, #0b4166 0%, #0b6f7d 100%);
  color: #fff;
}

.action-report-detail-heading div {
  display: grid;
  gap: 2px;
}

.action-report-detail-heading small {
  color: #99dce6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.action-report-detail-heading strong {
  font-size: 13px;
}

.action-report-detail-customer,
.action-report-detail-title {
  min-width: 0;
}

.action-report-detail-customer strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.action-report-account-link {
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.action-report-account-link:hover {
  background: rgba(255, 255, 255, .24);
}

.action-report-account-link:disabled {
  cursor: wait;
  opacity: .74;
}

.action-report-detail-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.action-report-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 7px;
  min-height: 0;
  max-height: none;
  padding: 10px 12px 12px;
  overflow: visible;
  background: linear-gradient(135deg, #fff8ea 0%, #f3fbf8 100%);
}

.action-report-detail-card {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid #c4ddea;
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
}

.action-report-detail-card.wide {
  grid-column: span 2;
}

.action-report-detail-card.note {
  grid-column: 1 / -1;
  min-height: 64px;
  padding: 9px 11px;
  border-color: #e4bd72;
  border-left: 5px solid #e7a62b;
  background: #fffdf7;
}

.action-report-detail-card.note span {
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.module-frame.action-report-mode #moduleTableWrap tbody tr {
  cursor: pointer;
}

.module-frame.action-report-mode #moduleTableWrap tbody tr:hover > td {
  color: #006d7e;
  background: #dff4f5;
  font-weight: 800;
}

#moduleTableWrap tbody tr.action-report-detail-row > td {
  padding: 0 !important;
  border-top: 0;
  border-bottom: 2px solid #d6b16e;
  background: #fff7e8 !important;
  white-space: normal;
}

#moduleTableWrap tbody tr.action-report-detail-row:hover > td {
  color: inherit;
  background: #fff7e8 !important;
  font-weight: inherit;
}

.action-report-detail-card small {
  color: #53738a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.action-report-detail-card span {
  color: #082a47;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

#moduleTableWrap tbody tr.action-report-row-selected td {
  background: #d7f1f3;
  box-shadow: inset 0 1px #67c3ce, inset 0 -1px #67c3ce;
}

@keyframes action-report-detail-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scaleY(.86);
    transform-origin: top;
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    transform-origin: top;
  }
}

@media (max-width: 760px) {
  #moduleMetrics.action-report-metrics {
    padding-inline: 10px;
  }

  .action-report-filter button,
  .action-report-filter input {
    min-height: 34px;
    font-size: 11px;
  }

  .action-report-detail-grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }

  .action-report-detail-heading {
    grid-template-columns: minmax(145px, 1fr) auto 34px;
  }

  .action-report-detail-title {
    display: none !important;
  }

  .action-report-detail-customer strong {
    font-size: 15px;
  }

  .action-report-detail-card.wide {
    grid-column: span 2;
  }
}

/* Aksiyon detay üst bandı: üç dengeli bölüm ve sabit kapatma alanı. */
.action-report-detail-heading {
  align-items: stretch;
  background: #082f4b;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 82px;
  min-height: 54px;
  padding: 0;
}

.action-report-detail-customer,
.action-report-detail-title {
  align-items: center;
  background: #0d4567;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 14px;
  text-align: center;
}

.action-report-detail-tab {
  background: #0d4567;
  color: #fff;
  cursor: pointer;
}

.action-report-detail-tab:hover,
.action-report-detail-tab:focus-visible {
  background: #155b7d;
  outline: none;
}

.action-report-detail-tab.active {
  background: #087f95;
  box-shadow: inset 0 -3px 0 #7ce0e5;
}

.action-report-detail-customer small,
.action-report-detail-title small {
  color: #a9d4e3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.action-report-detail-customer strong,
.action-report-detail-title strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.action-report-account-link.action-report-detail-tab {
  align-self: stretch;
  border: 0;
  border-radius: 0;
  height: 100%;
  margin: 0;
  min-height: 54px;
  width: 100%;
}

.action-report-detail-close {
  align-self: stretch;
  background: #fff;
  border: 0;
  border-radius: 0;
  height: 100%;
  margin: 0;
  position: static;
  color: #123f59;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  width: 82px;
}

.action-report-inline-customer.instrument-detail-content {
  border-bottom: 1px solid #8fc8d7;
  border-radius: 0;
  width: 100%;
}

.action-report-inline-movements .instrument-movement-table tbody,
.action-report-inline-movements .instrument-movement-table tbody tr,
.action-report-inline-movements .instrument-movement-table tbody td {
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .action-report-detail-heading {
    grid-template-columns: repeat(3, minmax(125px, 1fr)) 70px;
    min-width: 520px;
  }

  .action-report-detail-title {
    display: flex !important;
  }

  .action-report-detail-close {
    width: 70px;
  }
}

/* Sekme değişiminde yalnız seçilen aksiyon içeriği görünür. */
.action-report-detail-grid[hidden],
.action-report-inline-customer[hidden],
.action-report-inline-movements[hidden] {
  display: none !important;
}
