.receipts332 { max-width: 1080px; margin: 0 auto; color: #1c2840; }
.receipts332 [hidden], .receipts332-dialog [hidden] { display: none !important; }
.receipts332-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.receipts332-eyebrow { display: block; color: #3158d8; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; margin-bottom: 7px; }
.receipts332-heading h1 { font-size: 27px; font-weight: 750; letter-spacing: -.8px; line-height: 1.35; margin: 0; }
.receipts332-heading p { font-size: 13px; color: #52617a; margin: 6px 0 0; }
.receipts332-heading .btn { white-space: nowrap; }
.receipts332-monthbar, .receipts332-month { display: flex; align-items: center; gap: 8px; }
.receipts332-monthbar { justify-content: space-between; border-bottom: 1px solid #dfe6f1; padding-bottom: 15px; margin-bottom: 20px; }
.receipts332-month .icon-btn { font-size: 24px !important; width: 44px; }
.receipts332-month input { font: inherit; font-weight: 700; color: #1c2840; border: 1px solid #cbd5e5; border-radius: 8px; background: #fff; min-height: 44px; width: 174px; padding: 8px 10px; }
.receipts332-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #dfe6f1; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 24px; }
.receipts332-totals > div { padding: 22px 20px; display: grid; align-content: start; gap: 7px; min-width: 0; }
.receipts332-totals > div + div { border-left: 1px solid #dfe6f1; }
.receipts332-totals span { font-size: 12px; font-weight: 650; }
.receipts332-totals strong { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipts332-totals small { font-size: 11px; color: #52617a; }
.receipts332-totals .receipts332-pending { background: #edf2ff; color: #2749b9; }
.receipts332-listbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.receipts332-listbar nav { display: flex; flex-wrap: wrap; gap: 5px; }
.receipts332-listbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 650; color: #52617a; background: transparent; }
.receipts332-listbar button[aria-pressed="true"] { color: #2749b9; background: #e7edff; border-color: #cbd8ff; }
.receipts332-listbar button span { font-size: 10px; font-weight: 700; }
.receipts332-listbar > span { font-size: 11px; color: #52617a; white-space: nowrap; }
.receipts332-list { background: #fff; border: 1px solid #dfe6f1; border-radius: 12px; overflow: hidden; }
.receipts332-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; }
.receipts332-row + .receipts332-row { border-top: 1px solid #e8edf5; }
.receipts332-open { padding: 0; text-align: left; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; display: grid; gap: 6px; }
.receipts332-open:hover .receipts332-rowhead strong { color: #3158d8; }
.receipts332-rowhead { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; font-size: 12px; }
.receipts332-rowhead time { color: #52617a; font-size: 11px; font-variant-numeric: tabular-nums; }
.receipts332-rowhead strong { font-weight: 750; }
.receipts332-badge { font-size: 10px; padding: 3px 6px; background: #f0f3f8; color: #4a5870; border-radius: 4px; }
.receipts332-badge.is-personal { background: #edf2ff; color: #2749b9; }
.receipts332-purpose { overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.receipts332-meta { color: #52617a; font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }
.receipts332-rowend { display: grid; justify-items: end; align-content: center; gap: 4px; }
.receipts332-rowend > strong { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipts332-paidcheck { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 11px; cursor: pointer; }
.receipts332-paidcheck input, .receipts332-personal > input { width: 18px; height: 18px; min-height: 18px !important; flex-shrink: 0; margin: 0; accent-color: #3158d8; }
.receipts332-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px 18px; text-align: center; background: #fff; border-radius: 12px; font-size: 13px; line-height: 1.65; }
.receipts332-empty p { color: #52617a; margin: 0; overflow-wrap: anywhere; }
.receipts332-footnote { color: #52617a; font-size: 11px; line-height: 1.7; margin-top: 16px; }
.receipts332-error { font-size: 12px; line-height: 1.7; color: #9b3129; overflow-wrap: anywhere; }
.receipts332-status { font-size: 12px; color: #2749b9; line-height: 1.6; }
.receipts332-dialog { color: #1c2840; }
.receipts332-dialog form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.receipts332-field { display: grid; gap: 7px; min-width: 0; font-size: 12px; line-height: 1.5; }
.receipts332-field > span:first-child { font-weight: 700; }
.receipts332-field input:not([type="checkbox"]), .receipts332-field select, .receipts332-field textarea { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #c7d1e2; border-radius: 8px; font: inherit; font-size: 16px; line-height: 1.5; color: #1c2840; background: #fff; box-sizing: border-box; }
.receipts332-field textarea { resize: vertical; }
.receipts332-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.receipts332-kindhint { color: #52617a; font-size: 11px; line-height: 1.5; margin: -7px 0 0; }
.receipts332-personal { display: flex; align-items: center; gap: 11px; border: 1px solid #d7e1f8; border-radius: 10px; padding: 13px 12px; background: #f3f6ff; cursor: pointer; }
.receipts332-personal > span { display: grid; gap: 3px; }
.receipts332-personal strong { font-size: 13px; }
.receipts332-personal small { font-size: 11px; color: #52617a; }
.receipts332-personal output { margin-left: auto; font-size: 12px; font-weight: 700; color: #2749b9; text-align: right; }
.receipts332-filename { color: #52617a; font-size: 11px; overflow-wrap: anywhere; }
.receipts332-attachment { padding: 14px; border: 1px dashed #bac9e6; background: #f8faff; border-radius: 10px; }
.receipts332-attachment input[type="file"] { font-size: 12px; padding: 8px; border: 0; background: transparent; }
.receipts332-attachment input::file-selector-button { color: #2749b9; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid #cbd8ff; background: #fff; padding: 9px 12px; border-radius: 6px; margin-right: 8px; }
.receipts332-filehint { font-size: 11px; color: #52617a; line-height: 1.65; margin: 0; }
.receipts332-detailhead { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid #dfe6f1; }
.receipts332-detailhead > strong { font-size: 30px; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; }
.receipts332-detailhead > span { color: #52617a; font-size: 12px; line-height: 1.6; }
.receipts332-details { margin: 18px 0; display: grid; gap: 14px; }
.receipts332-details > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; line-height: 1.65; font-size: 13px; }
.receipts332-details dt { color: #52617a; font-size: 12px; }
.receipts332-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.receipts332-attachments, .receipts332-detailactions { display: flex; flex-wrap: wrap; gap: 9px; }
.receipts332-detailactions { border-top: 1px solid #dfe6f1; margin-top: 20px; padding-top: 16px; justify-content: space-between; }
.receipts332-image { display: block; max-width: 100%; height: auto; border: 1px solid #dfe6f1; border-radius: 6px; margin-top: 12px; }
[data-receipt332-preview]:not(:empty) { margin-top: 16px; }
[data-receipt332-confirm] { margin-top: 14px; padding: 13px; background: #fff4f2; border: 1px solid #efc8c3; border-radius: 8px; font-size: 13px; }
@media (max-width: 600px) {
  .receipts332-heading { align-items: flex-start; gap: 9px; margin-bottom: 18px; }
  .receipts332-heading h1 { font-size: 24px; }
  .receipts332-heading .btn { padding: 9px 11px !important; font-size: 12px !important; }
  .receipts332-eyebrow { font-size: 9px; letter-spacing: 1px; }
  .receipts332-heading p { font-size: 11px; }
  .receipts332-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
  .receipts332-totals .receipts332-pending { grid-column: 1 / -1; grid-row: 1; border-left: 0; padding: 18px; }
  .receipts332-totals .receipts332-pending strong { font-size: 29px; }
  .receipts332-totals > div { padding: 16px; gap: 5px; }
  .receipts332-totals > div:not(.receipts332-pending) { border-top: 1px solid #dfe6f1; }
  .receipts332-totals strong { font-size: 20px; }
  .receipts332-listbar { align-items: flex-start; }
  .receipts332-listbar button { padding: 8px 9px; gap: 4px; font-size: 11px; }
  .receipts332-listbar > span { display: none; }
  .receipts332-row { padding: 15px 13px; gap: 7px; grid-template-columns: minmax(0, 1fr); }
  .receipts332-rowend { display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; }
  .receipts332-rowend > strong { margin-left: auto; }
  .receipts332-rowhead { font-size: 12px; }
  .receipts332-month { gap: 4px; }
  .receipts332-month input { width: 158px; }
  .receipts332-monthbar { gap: 3px; }
  .receipts332-personal { flex-wrap: wrap; }
  .receipts332-personal output { font-size: 11px; }
  .receipts332-fields { gap: 10px; }
}
@media (max-width: 360px) {
  .receipts332-heading { flex-direction: column; align-items: stretch; }
  .receipts332-heading .btn { align-self: flex-start; }
  .receipts332-month input { width: 144px; }
  .receipts332-fields { grid-template-columns: 1fr; }
}
