/* Styles for the menu and order evidence in Admin Finance. */
.finance-progress .finance-unified-costs {
  margin: 12px 0;
  border: 1px solid #dce1d7;
  border-radius: 10px;
  background: #fffefa;
}
.finance-progress .finance-unified-costs > summary {
  padding: 16px 20px;
  color: #153d30;
  font-weight: 700;
}
.finance-cost-actions {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}
.finance-cost-actions > button,
.finance-cost-actions > details > summary {
  display: block;
  width: 100%;
  max-width: 38rem;
  padding: 8px 10px;
  border: 1px solid #dce1d7;
  border-radius: 7px;
  background: #fbfcf8;
  color: #153d30;
  cursor: pointer;
  text-align: left;
  font-weight: 650;
}
.finance-cost-actions > details > summary::before { content: '▸ '; }
.finance-cost-actions > details[open] > summary::before { content: '▾ '; }
.finance-unified-costs .finance-cost-tools > h2 { display: none; }
.finance-cost-actions .transport-options { margin: 10px 0 0; }
.finance-draft, .finance-cost-example {
  max-width: 42rem;
  padding: 9px 10px;
  color: #526153;
  font-size: 13px;
}
.finance-draft > * + *, .finance-gift-config-dialog > * + * { margin-top: 8px; }
.finance-draft-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.finance-draft-fields label, .finance-gift-order-picker label {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.finance-draft-full { grid-column: 1 / -1; }
.finance-draft :is(input,select,textarea), .finance-gift-order-picker select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce1d7;
  border-radius: 6px;
  background: #fffefa;
  padding: 7px;
  color: #25342d;
}
.finance-draft-example {
  margin-block: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #e8efe4;
  color: #153d30;
}
.finance-draft-actions, .finance-gift-order-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  margin-top: 8px;
}
.finance-draft button, .finance-gift-config-dialog button {
  padding: 6px 9px;
  border: 1px solid #dce1d7;
  border-radius: 6px;
  background: #fffefa;
  color: #153d30;
}
.finance-gift-config-dialog {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 16px;
  border: 1px solid #dce1d7;
  border-radius: 12px;
  overflow: auto;
  color: #252d26;
  background: #fffefa;
  box-shadow: 0 12px 44px #152d2540;
}
.finance-gift-config-dialog::backdrop { background: #1e2d24a0; }
.finance-gift-config-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.finance-gift-config-dialog > header h2 { font: 500 24px Georgia,serif; }
.finance-gift-order-picker { border-top: 1px solid #dce1d7; padding-top: 12px; }
.finance-progress.finance-banner-surface {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 55;
  transform: translateX(-50%);
  width: min(650px, calc(100vw - 16px));
  max-width: none;
  max-height: min(72dvh,650px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  border: 1px solid #dce1d7;
  border-radius: 11px;
  background: #fffefa;
  box-shadow: 0 10px 32px #1b322a38;
}
.finance-progress.finance-banner-surface .row-detail {
  position: static;
  inset: auto;
  transform: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 0 14px 13px;
  border: 0;
  border-radius: 0;
  background: #fffefa;
  box-shadow: none;
}
.finance-banner-surface .row-detail > .detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -14px 9px;
  padding: 8px 14px;
  border-bottom: 1px solid #dce1d7;
  background: #fffefa;
}
.finance-banner-surface .detail-header h2 { font-size: 16px; }
.finance-banner-surface .finance-banner-total {
  margin: 0 0 8px;
  color: #153d30;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 550px) {
  .finance-draft-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-banner-surface .detail-grid { grid-template-columns: 1fr; gap: 8px; }
}
