.pisell-private-cash-counting {
  &__field {
    display: flex;
    flex-direction: column;
    gap: 10px;

    &--horizontal {
      flex-direction: row;
      align-items: center;
      flex-wrap: nowrap;

      .pisell-private-cash-counting__input {
        flex: 1;
        min-width: 0;
      }

      .pisell-private-cash-counting__button {
        flex-shrink: 0;
      }
    }
  }

  .pisell-lowcode-input-number-wrapper{
    width: auto;
  }

  &__input {
    input {
      width: 100%;
      min-width: none;
      max-width: none;
    }
  }

  &__button {
    width: max-content;
  }

  &__modal {
    display: flex;
    flex-direction: column;
    height: min(720px, calc(90vh - 72px));
    min-height: 520px;
    overflow: hidden;
  }

  &__modal-intro {
    flex-shrink: 0;
    padding: 16px 24px 12px;
    border-bottom: 1px solid #eaecf0;
  }

  &__subtitle {
    color: #667085;
    font-size: 14px;
    line-height: 20px;
  }

  &__currency {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
  }

  &__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px 24px;
  }

  &__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #98a2b3;
    font-size: 14px;
  }

  &__section+&__section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f2f4f7;
  }

  &__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  &__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  &__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #635bff;

    &--coin {
      background: #f59e0b;
    }
  }

  &__section-subtotal {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667085;
    font-size: 14px;

    strong {
      color: #101828;
      font-size: 15px;
    }
  }

  &__denomination-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__denomination-row {
    display: grid;
    grid-template-columns: 92px minmax(150px, 220px) minmax(92px, 1fr);
    align-items: center;
    gap: 16px;
  }

  &__denomination-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #dbeafe;
    color: #175cd3;
    font-size: 14px;
    font-weight: 700;

    &--coin {
      background: #fef3c7;
      color: #92400e;
    }
  }

  &__stepper {
    &.numeric-stepper {
      gap: 8px;
      grid-template-columns: auto auto auto;
      justify-content: flex-start;
      width: auto;
    }

    .numeric-stepper-button {
      width: 32px;
      height: 32px;
      border-radius: 6px;
    }

    .numeric-stepper-display {
      width: 60px;
      height: 32px;
      max-width: 70px;
    }
  }

  &__row-amount {
    justify-self: end;
    color: #98a2b3;
    font-size: 15px;
    font-weight: 700;
  }

  &__footer {
    flex-shrink: 0;
    padding: 20px 24px 24px;
    border-top: 1px solid #eaecf0;
    background: #ffffff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, 0.04);
  }

  &__summary {
    padding-bottom: 16px;
    border-bottom: 1px dashed #d0d5dd;
  }

  &__summary-row,
  &__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  &__summary-row {
    color: #667085;
    font-size: 15px;

    +.pisell-private-cash-counting__summary-row {
      margin-top: 10px;
    }

    strong {
      color: #101828;
      font-size: 16px;
    }
  }

  &__total-row {
    margin-top: 16px;
    color: #101828;
    font-size: 18px;
    font-weight: 700;

    strong {
      color: #5b4be8;
      font-size: 34px;
      line-height: 40px;
    }
  }

  &__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 18px;

    .pisell-lowcode-btn {
      margin: 0;
    }
  }
}

.pisell-lowcode-modal-root {
  .pisell-private-cash-counting__modal-wrap {
    .pisell-lowcode-modal-body {
      overflow: hidden;
    }
  }
}