/* Sopung Market Rapor v14 */
#app > header {
  height: 78px !important;
  overflow: hidden;
  transition: transform .2s ease !important;
}

#app > header .header-report-brand-v11 {
  height: 74px !important;
  overflow: hidden;
}

#app > header .header-report-brand-v11 img {
  width: min(390px, 55vw) !important;
  height: 68px !important;
  object-fit: contain !important;
  transform: scale(1.35);
  transform-origin: left center;
}

.nav-brand-v8.nav-card-v13 {
  min-height: 90px !important;
  overflow: hidden;
  padding: 9px 12px !important;
}

.nav-brand-v8.nav-card-v13 img {
  width: min(245px, calc(100% - 50px)) !important;
  height: 68px !important;
  transform: scale(1.16);
  transform-origin: left center;
}

.center-tabs-v14 {
  position: sticky;
  top: 82px;
  z-index: 18;
  display: flex;
  gap: 7px;
  margin: -4px 0 15px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(255,255,255,.96);
  border: 1px solid #eadfdd;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(74,31,28,.08);
  backdrop-filter: blur(10px);
}

.center-tabs-v14 button {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #6f5b59;
  font-size: 12px;
  font-weight: 850;
}

.center-tabs-v14 button.active {
  border-color: #e9c5c2;
  background: #fff0ef;
  color: #a5141a;
}

.dashboard-live-v14 .svg-chart {
  min-height: 290px;
}

.live-chart-badge-v14 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0ef;
  color: #a5141a;
  font-size: 11px;
  font-weight: 850;
}

.live-chart-badge-v14 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1262e;
  box-shadow: 0 0 0 5px rgba(225,38,46,.12);
}

.shortcuts-title-v14 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 12px 0 9px;
}

.shortcuts-title-v14 small {
  color: #827472;
}

.dashboard-shortcuts-v14 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-shortcuts-v14 button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #eadfdd;
  border-radius: 13px;
  background: #fffaf9;
  color: #3b2a29;
  text-align: left;
}

.dashboard-shortcuts-v14 button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #fff0ef;
  color: #a5141a;
  font-size: 16px;
  font-weight: 900;
}

.dashboard-shortcuts-v14 b,
.dashboard-shortcuts-v14 small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shortcuts-v14 b { font-size: 11px; }
.dashboard-shortcuts-v14 small { color: #81716f; font-size: 9px; }

.v14-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.v14-chart-grid .svg-chart {
  min-height: 260px;
}

.v14-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.v14-bar-row {
  display: grid;
  grid-template-columns: minmax(86px, .75fr) minmax(90px, 1.6fr) minmax(72px, auto);
  align-items: center;
  gap: 8px;
}

.v14-bar-row > span {
  overflow: hidden;
  color: #574846;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v14-bar-row > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3e9e8;
}

.v14-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.v14-bar-row b {
  color: #443331;
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.p360-customers-v14 {
  margin-top: 14px;
}

.customer-rank-grid-v14 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.customer-rank-grid-v14 article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #eee3e1;
  border-radius: 13px;
  background: #fffaf9;
}

.customer-rank-grid-v14 article > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #fff0ef;
  color: #a5141a;
}

.customer-rank-grid-v14 strong,
.customer-rank-grid-v14 small {
  display: block;
}

.customer-rank-grid-v14 small {
  margin-top: 2px;
  color: #81716f;
  font-size: 9px;
}

.customer-rank-grid-v14 em {
  color: #725f5d;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.view-switch-v14 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  padding: 10px 12px;
  border: 1px solid #eadfdd;
  border-radius: 13px;
  background: #fff;
}

.view-switch-v14 strong,
.view-switch-v14 small {
  display: block;
}

.view-switch-v14 small {
  margin-top: 2px;
  color: #827472;
  font-size: 10px;
}

.view-switch-v14 > div:last-child {
  display: flex;
  gap: 6px;
}

.view-switch-v14 button {
  padding: 8px 11px;
  border: 1px solid #eadfdd;
  border-radius: 9px;
  background: #fff;
  color: #6e5b59;
  font-size: 11px;
  font-weight: 850;
}

.view-switch-v14 button.active {
  border-color: #d9aaa7;
  background: #fff0ef;
  color: #a5141a;
}

.product-report-cards-v14,
.customer-intel-cards-v14 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.product-report-card-v14,
.customer-intel-card-v14 {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7dbd9;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(79,34,30,.05);
}

.report-card-title-v14,
.customer-intel-title-v14 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.report-card-title-v14 > b {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #fff0ef;
  color: #a5141a;
}

.report-card-title-v14 > span,
.customer-intel-title-v14 > span {
  min-width: 0;
  flex: 1;
}

.report-card-title-v14 strong,
.report-card-title-v14 small,
.customer-intel-title-v14 strong,
.customer-intel-title-v14 small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-card-title-v14 small,
.customer-intel-title-v14 small {
  margin-top: 3px;
  color: #827472;
  font-size: 9px;
}

.report-card-totals-v14,
.customer-intel-metrics-v14 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.customer-intel-metrics-v14 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-card-totals-v14 span,
.customer-intel-metrics-v14 span,
.report-card-channels-v14 span {
  min-width: 0;
  padding: 9px;
  border-radius: 11px;
  background: #fbf6f5;
}

.report-card-totals-v14 small,
.report-card-totals-v14 b,
.customer-intel-metrics-v14 small,
.customer-intel-metrics-v14 b,
.report-card-channels-v14 small,
.report-card-channels-v14 b,
.report-card-channels-v14 em {
  display: block;
}

.report-card-totals-v14 small,
.customer-intel-metrics-v14 small,
.report-card-channels-v14 small {
  color: #81716f;
  font-size: 8px;
  text-transform: uppercase;
}

.report-card-totals-v14 b,
.customer-intel-metrics-v14 b {
  margin-top: 4px;
  font-size: 12px;
}

.report-card-channels-v14 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.report-card-channels-v14 b {
  margin-top: 4px;
  font-size: 10px;
}

.report-card-channels-v14 em {
  margin-top: 2px;
  color: #7e6c6a;
  font-size: 9px;
  font-style: normal;
}

.product-report-table-v14,
.customer-intel-table-v14 {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #eadfdd;
  border-radius: 15px;
  background: #fff;
}

.product-report-table-v14 table {
  min-width: 1320px;
}

.customer-intel-title-v14 > b {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eaf8f0;
  color: #157452;
  font-size: 11px;
}

.customer-intel-card-v14.critical {
  border-left: 4px solid #c82127;
}

.customer-intel-card-v14.watch {
  border-left: 4px solid #d8891c;
}

.customer-intel-card-v14.healthy {
  border-left: 4px solid #16845a;
}

.customer-intel-action-v14 {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #fff9ee;
}

.customer-intel-action-v14 span {
  color: #9a6714;
  font-size: 9px;
  font-weight: 850;
}

.customer-intel-action-v14 p {
  margin: 4px 0 0;
  color: #5e4d4a;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 850px) {
  #app > .layout {
    padding-top: 78px !important;
  }

  #app > header .header-report-brand-v11 {
    height: 72px !important;
    justify-content: center !important;
  }

  #app > header .header-report-brand-v11 img {
    width: min(66vw, 300px) !important;
    height: 66px !important;
    transform: scale(1.42);
    transform-origin: center;
  }

  .center-tabs-v14 {
    top: 82px;
  }

  .dashboard-shortcuts-v14 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-rank-grid-v14 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  #app > header {
    height: 74px !important;
    padding-inline: 9px !important;
  }

  #app > .layout {
    padding-top: 74px !important;
  }

  #app > header .menu {
    min-height: 44px;
    padding: 8px 10px !important;
  }

  #app > header .header-report-brand-v11 img {
    width: min(63vw, 255px) !important;
    height: 62px !important;
    transform: scale(1.5);
  }

  .center-tabs-v14 {
    top: 77px;
    margin-inline: -5px;
  }

  .v14-chart-grid,
  .product-report-cards-v14,
  .customer-intel-cards-v14 {
    grid-template-columns: 1fr;
  }

  .dashboard-live-v14 .svg-chart,
  .v14-chart-grid .svg-chart {
    min-height: 235px;
  }

  .view-switch-v14 {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switch-v14 > div:last-child {
    width: 100%;
  }

  .view-switch-v14 button {
    flex: 1;
  }

  .report-card-channels-v14,
  .customer-intel-metrics-v14 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .dashboard-shortcuts-v14 {
    grid-template-columns: 1fr;
  }

  .customer-rank-grid-v14 article {
    grid-template-columns: 29px minmax(0, 1fr) auto;
  }

  .customer-rank-grid-v14 article > span:last-child {
    grid-column: 2 / -1;
    text-align: right;
  }
}
