/* 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(496px, 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 8px 24px #1b322a23;
}
.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 12px 12px;
  border: 0;
  border-radius: 0;
  background: #fffefa;
  box-shadow: none;
}
.finance-banner-surface .row-detail > .detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 39px;
  margin: 0 -12px 7px;
  padding: 5px 11px 5px 12px;
  border-bottom: 1px solid #dce1d7;
  background: #fffefa;
}
.finance-progress.finance-banner-surface .row-detail > .detail-header h2 {
  margin: 0;
  font: 400 15px/1.4 Georgia, serif;
  color: #222b23;
}
.finance-progress.finance-banner-surface .row-detail > .detail-header > button {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #153d30;
  font: 400 19px/1 sans-serif;
}
.finance-progress.finance-banner-surface .row-detail > .detail-header > button:hover { background: #eaf0e8; }
.finance-progress.finance-banner-surface .row-detail > .detail-header > button:focus-visible { outline: 2px solid #2d6653; }
.finance-compact-breakdown {
  color: #252d26;
  font-size: 13px;
  line-height: 1.45;
}
.finance-compact-breakdown > ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.finance-compact-breakdown > ul > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}
.finance-compact-breakdown > ul > li > span { overflow-wrap: anywhere; }
.finance-compact-breakdown > ul > li small {
  display: inline;
  color: #455449;
  font-size: 11px;
}
.finance-compact-breakdown > ul > li > strong {
  color: #252d26;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finance-compact-breakdown > .finance-compact-lines + .finance-compact-totals {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #d9e0d5;
}
.finance-compact-breakdown > .finance-compact-state {
  margin: 5px 0 0;
  color: #153d30;
  font-size: 13px;
  font-weight: 700;
}
.finance-compact-evidence {
  margin-top: 7px;
  color: #375246;
  font-size: 12px;
}
.finance-compact-evidence > summary { cursor: pointer; }
.finance-compact-evidence[open] > summary { margin-bottom: 7px; }
@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; }
}
