.receipt-paper {
  min-height: 560px;
  padding: 36px;
  overflow-wrap: anywhere;
}

.receipt-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: #668038;
  margin: 0 0 18px;
}

.receipt-paper h2 {
  font-size: 26px;
  color: #142c26;
  margin: 0 0 5px;
}

.receipt-paper p {
  font-size: 12px;
  line-height: 1.7;
  color: #526354;
}

.receipt-paper #preview-description {
  white-space: pre-line;
}

.receipt-rule {
  height: 2px;
  background: #dce3d8;
  margin: 25px 0;
}

.receipt-amount {
  font-size: 28px !important;
  font-weight: 700;
  color: #142c26 !important;
  margin: 8px 0 !important;
}

.receipt-paper strong {
  color: #142c26;
}

.receipt-signature {
  border-bottom: 1px solid #9aa69a;
  margin: 65px auto 7px;
  width: 70%;
}

.receipt-paper #preview-signature {
  text-align: center;
  font-size: 10px;
}

.receipt-paper #preview-date {
  margin-top: 24px;
}

.receipt-paper p:empty {
  display: none;
}

.receipt-service-picker {
  margin: 0 0 14px;
  border: 1px solid #ccd5c5;
  border-radius: 10px;
  background: #fff;
}

.receipt-service-picker summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 15px;
  color: #183b2c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.receipt-service-picker summary::-webkit-details-marker {
  display: none;
}

.receipt-service-picker summary svg {
  width: 19px;
  height: 19px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}

.receipt-service-picker[open] summary svg {
  transform: rotate(180deg);
}

.receipt-service-dropdown {
  border-top: 1px solid #e3e7de;
  padding-bottom: 4px;
}

.receipt-service-dropdown p {
  margin: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #65705f;
}

.receipt-service-dropdown a {
  color: #24533e;
  font-weight: 700;
}

.receipt-service-search-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px;
  padding: 4px 0;
  border-bottom: 1px solid #edf0e8;
  color: #6b7865;
}

.receipt-service-search-line svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.receipt-service-search-line input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 12px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #183b2c;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
}

.receipt-service-search-line input:focus {
  outline: none;
}

#receipt-saved-service,
#receipt-saved-client {
  list-style: none;
  max-height: 260px;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#receipt-saved-service li,
#receipt-saved-client li {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

.receipt-service-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #183b2c;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.receipt-service-choice:hover {
  background: #f1f5eb;
}

.receipt-service-choice-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-service-choice-price {
  flex-shrink: 0;
  color: #526354;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

#receipt-service-status,
#receipt-client-status {
  margin: 10px 14px;
}

#receipt-service-status.error,
#receipt-client-status.error {
  color: #a43d32;
}

@media (max-width: 740px) {
  .receipt-paper {
    padding: 26px;
  }
}


.receipt-selected-items {
  margin: 16px 0;
  border: 1px solid #ccd5c5;
  border-radius: 10px;
  background: #f8faf6;
  overflow: hidden;
}

.receipt-selected-items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #dfe7da;
  color: #183b2c;
  font-size: 13px;
  font-weight: 700;
}

.receipt-selected-items-heading strong {
  color: #142c26;
  white-space: nowrap;
}

#receipt-selected-list {
  list-style: none;
  margin: 0;
  padding: 0 14px;
}

.receipt-selected-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5ebe1;
  font-size: 13px;
}

.receipt-selected-item:last-child {
  border-bottom: 0;
}

.receipt-selected-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
  color: #344b3f;
}

.receipt-selected-item-price {
  color: #142c26;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.receipt-selected-remove {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #716a5c;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.receipt-selected-remove:hover {
  color: #a43d32;
}

.receipt-preview-items {
  margin: 19px 0 0;
  border-top: 1px solid #dce3d8;
  border-bottom: 1px solid #dce3d8;
  padding: 5px 0;
}

.receipt-preview-items-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 6px;
  color: #687568;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

#preview-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.receipt-preview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid #edf0e8;
  color: #344b3f;
  font-size: 11px;
  line-height: 1.5;
}

.receipt-preview-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.receipt-preview-item-price {
  color: #142c26;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .receipt-selected-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .receipt-selected-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


.receipt-client-details {
  margin: -8px 0 20px;
  color: #687568 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

/* Forma de pagamento alinhada ao padrão visual dos campos do formulário. */
.receipt-payment-control {
  display: block;
  position: relative;
  margin-top: 7px;
}

.receipt-payment-control::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #526354;
  border-bottom: 1.5px solid #526354;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.receipt-payment-control select {
  display: block;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 11px 42px 11px 10px;
  border: 1px solid #cbd5c7;
  border-radius: 7px;
  background: #fff;
  color: #142c26;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.receipt-payment-control select:hover {
  border-color: #aebca6;
  background: #fbfcf9;
}

.receipt-payment-control select:focus {
  outline: 3px solid #94ad62;
  outline-offset: 3px;
  border-color: #668038;
}

.receipt-payment-control select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 740px) {
  .receipt-payment-control select {
    min-height: 48px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 16px;
  }
}

.receipt-manual-item-picker {
  margin-bottom: 16px;
}

.receipt-manual-item-form {
  padding: 14px;
}

.receipt-manual-item-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.receipt-manual-item-fields label {
  color: #526354;
  font-size: 12px;
  font-weight: 600;
}

.receipt-manual-item-fields input {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 11px 10px;
  border: 1px solid #cbd5c7;
  border-radius: 7px;
  background: #fff;
  color: #142c26;
  font: inherit;
  font-size: 14px;
}

.receipt-manual-item-fields input:focus {
  outline: 3px solid #94ad62;
  outline-offset: 3px;
  border-color: #668038;
}

.receipt-manual-add {
  margin-top: 12px;
}

#receipt-manual-status {
  min-height: 1.4em;
  margin: 10px 0 0;
}

#receipt-manual-status.error {
  color: #a43d32;
}

@media (max-width: 520px) {
  .receipt-manual-item-fields {
    grid-template-columns: 1fr;
  }
}

.receipt-selected-help {
  margin: 0;
  padding: 0 14px 12px;
  color: #687568;
  font-size: 11px;
  line-height: 1.45;
}

.receipt-manual-item-fields label + label,
.receipt-financial-grid label + label,
.receipt-details-grid label + label {
  margin-top: 0;
}

.receipt-financial-grid,
.receipt-details-grid {
  gap: 12px;
}

.receipt-discount-field small {
  display: block;
  margin-top: 7px;
  color: #687568;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.receipt-discount-summary {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 12px 0;
  border-top: 1px solid #dce3d8;
  border-bottom: 1px solid #dce3d8;
}

.receipt-discount-summary[hidden] {
  display: none;
}

.receipt-discount-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #687568;
  font-size: 10px;
}

.receipt-discount-summary strong {
  color: #142c26;
  font-weight: 700;
  white-space: nowrap;
}

.receipt-discount-summary div:last-child strong {
  color: #668038;
}

@media (max-width: 520px) {
  .receipt-financial-grid,
  .receipt-details-grid {
    grid-template-columns: 1fr;
  }
}


.receipt-cloud-panel {
  margin-bottom: 24px;
}

.save-receipt-button {
  font-weight: 600;
}

#save-receipt-dialog {
  box-sizing: border-box;
  width: min(430px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid #d7decf;
  border-radius: 16px;
  background: #fff;
  color: #183b2c;
}

#save-receipt-dialog::backdrop {
  background: rgba(20, 35, 25, .35);
}

#save-receipt-dialog form {
  margin: 0;
}

#save-receipt-dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
}

#save-receipt-dialog button {
  font: inherit;
  font-size: 14px;
}

#save-receipt-dialog .secondary {
  padding: 10px 16px;
  border: 1px solid #294b36;
  border-radius: 8px;
  background: #fff;
  color: #294b36;
}

#save-receipt-dialog [type=submit] {
  padding: 10px 16px;
  border: 1px solid #294b36;
  border-radius: 8px;
  background: #294b36;
  color: #fff;
  cursor: pointer;
}

#save-receipt-dialog [type=submit]:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 560px) {
  #save-receipt-dialog {
    width: calc(100% - 24px);
    padding: 20px;
  }
}
