/*
  v4/v4_css/venue_groups_dashboard.css
  Venue groups dashboard grouped-strip redesign.
*/

:root {
  --venue-groups-bg: #ffffff;
  --venue-groups-panel: #f7f7f4;
  --venue-groups-border: #d9d9d2;
  --venue-groups-strong: #171717;
  --venue-groups-muted: #666662;
  --venue-groups-orange: #ff8a26;
  --venue-groups-orange-soft: #ffd766;
  --venue-groups-blue: #65c6ff;
  --venue-groups-yellow: #ffd85a;
  --venue-groups-green: #6ccb6d;
  --venue-groups-red: #d96f6f;
  --venue-groups-purple: #c88be8;
  --venue-groups-ice: #bdefff;
  --venue-groups-track: #ecece7;
  --venue-groups-track-fill: linear-gradient(90deg, #f19c52, #f3491b);
}

.wow-venue-groups {
  direction: rtl;
  font-family: 'Assistant', 'Heebo', Arial, sans-serif;
  background: #ededed;
  border-radius: 4px;
  padding: 18px 18px 48px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  text-align: right;
}

.wow-venue-groups__header {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: right;
}

.wow-venue-groups__title {
  margin: 0;
  font-size: clamp(54px, 7vw, 86px);
  line-height: 0.92;
  font-weight: 800;
  color: #777;
  text-align: right;
}

.wow-venue-groups__subtitle {
  margin: 0;
  max-width: none;
  text-align: right;
  font-size: 16px;
  line-height: 1.55;
  color: var(--venue-groups-muted);
}

.wow-venue-groups__body {
  margin-top: 34px;
}

.wow-venue-groups__manager {
  display: grid;
  gap: 64px;
}

.wow-venue-groups__manager-section {
  display: grid;
  gap: 30px;
  padding: 34px 38px 30px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 18px 34px rgba(0, 0, 0, 0.14);
}

.wow-venue-groups__section-title-box {
  border: 0;
  border-radius: 0;
  min-height: 0;
  display: block;
  padding: 0;
  background: transparent;
}

.wow-venue-groups__section-title {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  color: #2c2c2c;
  font-weight: 600;
}

.wow-venue-groups__section-separator {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  margin: 2px 0 -8px;
}

.wow-venue-groups__summary-list {
  display: grid;
  gap: 14px;
}

.wow-venue-groups__summary-strip {
  border-radius: 4px;
  border: 1px solid #f36a2f;
  background: #fff;
  overflow: hidden;
}

.wow-venue-groups__summary-trigger {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  direction: rtl;
  text-align: right;
  cursor: pointer;
}

.wow-venue-groups__summary-label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  flex: 1 1 auto;
  padding: 0 10px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wow-venue-groups__summary-icon {
  width: 64px;
  min-width: 64px;
  align-self: stretch;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
}

.wow-venue-groups__summary-divider {
  height: 1px;
  margin: 0 22px;
  background: rgba(0, 0, 0, 0.12);
}

.wow-venue-groups__summary-body {
  padding: 18px 11px 24px;
  background: #fff;
}

.wow-venue-groups__expanded-panel {
  display: grid;
  gap: 20px;
  text-align: right;
}

.wow-venue-groups__expanded-subtitle {
  margin: 0;
  text-align: right;
  font-size: 14px;
  color: #4b4b4b;
  line-height: 1.7;
}

.wow-venue-groups__expanded-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.wow-venue-groups__timeslot-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  direction: rtl;
  width: 100%;
}

.wow-venue-groups__timeslot-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  direction: rtl;
}

.wow-venue-groups__timeslot-label {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: inline-flex;
  align-items: center;
  text-align: right;
}

.wow-venue-groups__group-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: rtl;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: #fff;
  padding: 10px 14px;
  min-height: 68px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.wow-venue-groups__group-side {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wow-venue-groups__group-side--right {
  justify-content: flex-start;
  flex: 1 1 auto;
}

.wow-venue-groups__group-side--left {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.wow-venue-groups__group-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-right: 1px solid var(--venue-groups-border);
  flex: 0 0 auto;
}

.wow-venue-groups__group-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.wow-venue-groups__group-summary {
  direction: rtl;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.wow-venue-groups__group-name {
  font-size: 17px;
  font-weight: 800;
  color: #121212;
  white-space: nowrap;
  flex: 0 1 auto;
  text-align: right;
}

.wow-venue-groups__group-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}

.wow-venue-groups__badge {
  min-height: 26px;
  border-radius: 4px;
  padding: 2px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  white-space: nowrap;
}

.wow-venue-groups__badge--status.is-campaign {
  background: var(--venue-groups-yellow);
}

.wow-venue-groups__badge--status.is-ready {
  background: #ff8c2b;
}

.wow-venue-groups__badge--status.is-charging {
  background: var(--venue-groups-blue);
}

.wow-venue-groups__badge--date-change {
  background: var(--venue-groups-purple);
}

.wow-venue-groups__badge--saved-date {
  background: var(--venue-groups-purple);
}

.wow-venue-groups__badge--freeze {
  background: #ff7b22;
}

.wow-venue-groups__badge--public-success {
  background: #fff;
  border-color: #ff4a36;
  color: #111;
}

.wow-venue-groups__badge--public-type {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.55);
  color: #111;
}

.wow-venue-groups__badge--selling-open {
  background: #fff;
  border-color: var(--venue-groups-orange);
}

.wow-venue-groups__badge--selling-closed {
  background: var(--venue-groups-orange);
}

.wow-venue-groups__badge--selling-soldout {
  background: var(--venue-groups-orange);
  color: #fff;
  border-color: var(--venue-groups-orange);
}

.wow-venue-groups__days-cell {
  min-height: 46px;
  border-left: 1px solid var(--venue-groups-border);
  border-right: 1px solid var(--venue-groups-border);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 2px 8px;
  color: #111;
  flex: 0 0 auto;
}

.wow-venue-groups__days-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--venue-groups-muted);
}

.wow-venue-groups__days-value {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.wow-venue-groups__group-progress {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
}

.wow-venue-groups__group-progress .wow-status-strip {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-grid;
  width: fit-content;
  justify-content: start;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
}

.wow-venue-groups__group-progress .wow-status-strip__block--progress {
  width: fit-content;
}

.wow-venue-groups__group-progress .wow-status-strip__progress-bar {
  width: 100%;
}

.wow-venue-groups__group-progress .wow-status-strip__progress-label {
  font-size: 12px;
  color: #303030;
  margin: 0 0 4px 0;
}

.wow-venue-groups__group-progress .wow-status-strip__progress-base {
  background: #ecebe6;
  height: 12px;
  border-radius: 999px;
}

.wow-venue-groups__group-progress .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #f19c52, #f3491b);
  border-radius: inherit;
}

.wow-venue-groups__group-progress .wow-status-strip__progress-fill--complete,
.wow-venue-groups__group-progress .wow-status-strip--success .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #1a801a, #7ed957);
}

.wow-venue-groups__group-progress .wow-status-strip--charging .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #5de0e6, #0066ef);
}

.wow-venue-groups__group-progress .wow-status-strip--ready .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #e12829, #ff924d);
}

.wow-venue-groups__group-progress .wow-status-strip--campaigning .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #ffeb9b, #ffbf00);
}

.wow-venue-groups__group-progress .wow-status-strip--fail .wow-status-strip__progress-fill,
.wow-venue-groups__group-progress .wow-status-strip--ended .wow-status-strip__progress-fill {
  background: linear-gradient(90deg, #a6a6a6, #d6d6d6);
}

.wow-venue-groups__group-progress .wow-status-strip__percent-value {
  font-size: 12px;
}

.wow-venue-groups__group-progress .wow-status-strip__block--percent {
  padding: 0 8px;
}

.wow-venue-groups__group-progress .wow-status-strip__divider {
  height: 34px;
}

.wow-venue-groups__placeholder,
.wow-venue-groups__empty {
  min-height: 88px;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: #f7f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--venue-groups-muted);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .wow-venue-groups {
    padding-inline: 22px;
  }

  .wow-venue-groups__group-strip {
    gap: 10px;
    padding-inline: 10px;
  }

  .wow-venue-groups__group-side--left {
    gap: 10px;
  }

  .wow-venue-groups__group-progress {
    flex-basis: auto;
    min-width: 0;
  }

  .wow-venue-groups__group-name {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .wow-venue-groups {
    padding: 18px 7px 24px;
  }

  .wow-venue-groups__manager-section {
    padding-left: 4px;
    padding-right: 4px;
  }

  .wow-venue-groups__title {
    font-size: 42px;
  }

  .wow-venue-groups__section-title {
    font-size: 30px;
  }

  .wow-venue-groups__summary-trigger {
    min-height: 40px;
    gap: 10px;
  }

  .wow-venue-groups__summary-icon {
    width: 46px;
    min-width: 46px;
  }

  .wow-venue-groups__group-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    direction: rtl;
  }

  .wow-venue-groups__group-side {
    width: 100%;
  }

  .wow-venue-groups__group-side--right {
    justify-content: flex-end;
  }

  .wow-venue-groups__group-side--left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 0;
  }

  .wow-venue-groups__group-action,
  .wow-venue-groups__group-progress,
  .wow-venue-groups__days-cell,
  .wow-venue-groups__group-summary {
    direction: rtl;
  }

  .wow-venue-groups__group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .wow-venue-groups__group-badges {
    justify-content: flex-end;
  }

  .wow-venue-groups__days-cell {
    border: none;
    min-height: 0;
    flex: 0 0 auto;
    padding: 0 4px;
    gap: 2px;
    border-left: 1px solid var(--venue-groups-border);
  }

  .wow-venue-groups__days-label {
    font-size: 10px;
  }

  .wow-venue-groups__days-value {
    font-size: 12px;
  }

  .wow-venue-groups__group-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    padding: 0 4px;
    border-right: 1px solid var(--venue-groups-border);
  }

  .wow-venue-groups__group-action-btn {
    width: 28px;
    height: 28px;
  }

  .wow-venue-groups__timeslot-label {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wow-venue-groups__group-progress {
    min-width: 0;
    width: 100%;
  }

  .wow-venue-groups__group-progress .wow-status-strip {
    width: 100%;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 1px 36px;
  }

  .wow-venue-groups__group-progress .wow-status-strip__block--progress {
    width: auto;
    min-width: 0;
  }

  .wow-venue-groups__group-progress .wow-status-strip__progress-bar {
    width: 100%;
  }

  .wow-venue-groups__group-progress .wow-status-strip__block--percent {
    width: 36px;
    min-width: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    justify-self: center;
  }

  .wow-venue-groups__group-progress .wow-status-strip__block--percent,
  .wow-venue-groups__group-progress .wow-status-strip__percent-value {
    min-width: 0;
  }

  .wow-venue-groups__group-progress .wow-status-strip__percent-value {
    width: 100%;
    text-align: center;
  }

  .wow-venue-groups__group-progress .wow-status-strip__divider {
    justify-self: center;
  }

  .wow-venue-groups__group-progress .wow-status-strip__progress-label {
    font-size: 11px;
  }
}
