.card {
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #34383c;
  border-radius: 10px;
  background: #111315;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.card-main-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-left: 3px solid #b99a43;
  background: #191c1f;
  color: #e6e7e8;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  font: inherit;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.card-main-row:hover,
.card-main-row:focus-visible {
  background: #202428;
  outline: none;
}

.card-main-row:focus-visible {
  box-shadow: inset 0 0 0 2px #b99a43;
}

.card.is-expanded .card-main-row {
  border-bottom: 1px solid #34383c;
  background: #1e2225;
}

.box-left {
  min-width: 0;
  color: #c9aa56;
  font-weight: 700;
}

.box-center {
  min-width: 0;
  color: #e2e4e6;
  text-align: left;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.card-disclosure {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #4a4536;
  border-radius: 50%;
  color: #c9aa56;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.card.is-expanded .card-disclosure {
  transform: rotate(180deg);
  background: #29271f;
}

.sub-rows-container {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #101214;
}

.sub-rows-container[hidden] {
  display: none;
}

.card-sub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 150px);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #303438;
  border-radius: 7px;
  background: #171a1d;
  box-sizing: border-box;
}

.card-sub-row + .card-sub-row {
  border-top-color: #303438;
}

.card-sub-row .box-left {
  color: #e1e2e3;
  font-weight: 500;
}

.card-sub-row .box-center {
  padding-left: 14px;
  border-left: 1px solid #3b3f42;
  color: #c9aa56;
  text-align: right;
  font-weight: 700;
}

.invoice-review-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #303438;
  background: #111315;
}

.invoice-review-actions button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #45494c;
  border-radius: 7px;
  background: #1a1d20;
  color: #e3e4e5;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.invoice-review-actions button:hover:not(:disabled) {
  background: #24282b;
  border-color: #77715e;
}

.invoice-review-actions .invoice-review-confirm {
  border-color: #a78b43;
  background: #8f783b;
  color: #fff;
}

.invoice-review-actions .invoice-review-confirm:hover:not(:disabled) {
  background: #a38a46;
  border-color: #c2a956;
}

.invoice-review-actions .invoice-review-confirm.is-sending {
  animation: invoice-confirm-press 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: wait;
  opacity: 0.82;
  box-shadow: 0 0 0 3px rgba(201, 170, 86, 0.18);
}

.invoice-review-actions .invoice-review-confirm.is-sending::after {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: invoice-confirm-spin 700ms linear infinite;
}

@keyframes invoice-confirm-press {
  0% { transform: scale(1); }
  28% { transform: scale(0.94); }
  62% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes invoice-confirm-spin {
  to { transform: rotate(360deg); }
}

.invoice-review-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .card-main-row {
    grid-template-columns: minmax(70px, 90px) minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 14px;
  }

  .sub-rows-container {
    padding: 10px;
  }

  .card-sub-row {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px;
  }

  .invoice-review-actions {
    padding: 12px;
  }

  .invoice-review-actions button {
    flex: 1;
    padding: 0 12px;
  }
}
