@import "../../../customer-service-styles.scss";

.ios-container {
  max-width: 100%;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: $background-tertiary;
}

.ios-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: $background-primary;
  border-bottom: 1px solid $border-color;
  position: sticky;
  top: 0;
  z-index: 10;

  h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto;
  }
}

.ios-back-btn {
  background: none;
  border: none;
  padding: 8px;
  z-index: 11;
}

.ios-share-btn {
  background: none;
  border: none;
  padding: 8px;
  z-index: 11;
}

.ios-content {
  padding: 16px;
}

.summary-card {
  background: linear-gradient(135deg, $primary-color, $primary-dark);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  color: white;
  box-shadow: $shadow-md;
}

.amount {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.period {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  justify-content: space-between;
}

.stat-item {
  text-align: center;

  .value {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;

    &.positive {
      color: $success-color;
    }
  }

  .label {
    font-size: 14px;
    opacity: 0.8;
  }
}

.transaction-list {
  background-color: $background-primary;
  border-radius: 16px;
  padding: 16px;
  box-shadow: $shadow-sm;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  h2 {
    font-size: 18px;
    margin: 0;
    color: $text-primary;
  }
}

.filter-btn {
  background: none;
  border: none;
  color: $primary-color;
  font-size: 14px;
  font-weight: 500;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid $border-color;

  &:last-child {
    border-bottom: none;
  }
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgba($primary-color, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: $primary-color;
}

.details {
  flex: 1;

  .project {
    font-size: 16px;
    font-weight: 500;
    color: $text-primary;
    margin-bottom: 4px;
  }

  .customer {
    font-size: 14px;
    color: $text-tertiary;
  }
}

.amount {
  font-size: 16px;
  font-weight: 600;
  color: $success-color;
}