.finance-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) minmax(220px,1.3fr);gap:20px;margin-bottom:28px;align-items:end}.finance-filters:has(select[name="child"]){grid-template-columns:repeat(2,minmax(0,1fr))}.finance-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.finance-filters .field{margin:0}.finance-filters input{min-height:44px}.finance-header-actions{display:flex;gap:10px;flex-wrap:wrap}.finance-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:380px;align-items:start}.finance-action-column{display:grid;gap:10px;align-content:start;min-width:0}.finance-row-actions .btn{white-space:nowrap;justify-content:flex-start;text-align:left;padding-inline:14px;gap:10px}.finance-row-actions .btn .icon{flex:0 0 20px;width:20px}.finance-student{color:inherit;text-decoration:none}.finance-period{display:block;margin-top:8px}.finance-debt{color:var(--wine)}.finance-paid{color:#39835e}.finance-notice{margin-bottom:24px}.finance-metrics .metric{display:flex;flex-direction:column;gap:8px;padding:24px}.finance-metrics .metric strong{font-size:1.75rem}.finance-metrics .metric small{color:var(--muted)}.finance-empty{padding:36px!important;text-align:center;color:var(--muted)}.finance-delivery{display:flex;justify-content:space-between;align-items:center;gap:28px}.finance-delivery h2{margin:0 0 12px}.finance-delivery p{margin:8px 0}.finance-delivery>.btn{flex-shrink:0}.finance-modal-summary{background:#f8f5f8;border:1px solid var(--line);border-radius:14px;padding:20px}.finance-modal-summary h3{margin:0 0 8px;color:var(--wine)}.finance-modal-summary p{margin:0 0 12px}.finance-payments{padding:0;list-style:none}.finance-payments li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.finance-payments span{color:var(--muted)}.finance-outbox{margin-top:24px}.finance-outbox section{padding:18px 0;border-bottom:1px solid var(--line)}.finance-outbox .pill{display:inline-flex;margin:8px 0 0 12px}.finance-outbox p{margin:8px 0;color:var(--muted)}
@media(max-width:760px){.finance-filters,.finance-filters:has(select[name="child"]),.finance-metrics{grid-template-columns:1fr;gap:18px}.finance-delivery{align-items:stretch;flex-direction:column}.finance-delivery>.btn{align-self:flex-start}.finance-header-actions .btn{white-space:nowrap}.finance-payments li{grid-template-columns:1fr;gap:6px}.finance-outbox .pill{margin-left:0;display:flex;width:fit-content}}
@media(max-width:760px){.page-heading .finance-header-actions{margin-top:20px}}
.finance-payment-details{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.finance-payment-details b{font-weight:600;color:var(--ink)}.finance-payments li>strong{white-space:nowrap;flex-shrink:0}
.finance-pending-charges{margin:0 0 28px;border:1px solid #e6d6df;border-radius:16px;padding:20px;background:#fbf7fa}.finance-pending-charges h2{font-size:1rem;color:var(--wine);margin:0 0 10px}.finance-pending-charges>p{margin:0 0 16px;color:var(--muted);line-height:1.6}.finance-pending-charges ul{padding:0;margin:0;list-style:none}.finance-pending-charges li{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:14px 0;border-top:1px solid #e6d6df}.finance-pending-charges li>div{display:grid;gap:6px;min-width:0}.finance-pending-charges span,.finance-pending-charges small{color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.finance-pending-charges b{color:var(--wine);white-space:nowrap}@media(max-width:760px){.finance-pending-charges li{flex-direction:column;gap:10px}}
.finance-payments li{position:relative}.finance-payment-details:has(+.finance-payment-remove){padding-right:44px}.finance-payment-remove{position:absolute;top:14px;right:0;width:32px;height:32px;color:var(--wine);border:1px solid var(--line);background:#fff}.finance-payment-remove:hover{background:#fcf3f7;border-color:#d7b7c8}.finance-payment-remove .icon{width:16px;height:16px}.finance-payment-remove:focus-visible{outline:2px solid var(--wine);outline-offset:3px}.finance-voided-payments summary{cursor:pointer;font-weight:700;color:var(--muted);padding:12px 0}.finance-voided-payments li>strong{text-decoration:line-through;color:var(--muted)}.finance-removal-details{display:grid;gap:14px;margin:24px 0}.finance-removal-details>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.finance-removal-details dt{color:var(--muted)}.finance-removal-details dd{margin:0;font-weight:600;overflow-wrap:anywhere}@media(max-width:760px){.finance-removal-details>div{grid-template-columns:1fr;gap:6px}}
.finance-credit{color:#39835e}.finance-credit-metric strong{color:#39835e}.finance-credit-accounts{margin:0 0 28px;padding:18px 20px;border:1px solid #d9eade;border-radius:14px;background:#f5faf6}.finance-credit-accounts p{margin:0 0 14px;color:var(--muted)}.finance-credit-accounts>div{display:flex;flex-wrap:wrap;gap:10px}.finance-credit-accounts>div>span{display:flex;align-items:center;gap:16px;padding:8px 12px;border:1px solid #d9eade;border-radius:10px;background:white}.finance-credit-accounts b{font-size:.88rem;font-weight:600}.finance-credit-accounts strong{color:#39835e;white-space:nowrap}.finance-cell-note{display:block;font-size:.76rem;line-height:1.5;margin-top:7px;color:var(--muted);font-weight:400;white-space:normal;max-width:180px}.finance-cell-note.finance-credit{color:#39835e}.finance-modal-summary .finance-credit-summary{margin:14px 0 0;color:#39835e}.finance-history-heading{margin:24px 0 8px;font-size:1rem;font-weight:700}.finance-history-heading+.finance-payments{margin-top:0}.finance-payment-preview{margin-top:22px;padding:16px 18px;border-radius:12px;background:#f5faf6;border:1px solid #d9eade;line-height:1.65}.finance-fee-preview{padding:20px;border:1px solid var(--line);border-radius:14px;background:#fbf9fb}.finance-fee-preview p{margin:16px 0 0;line-height:1.65}.finance-fee-preview p:first-child{margin-top:0}.finance-fee-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;padding-bottom:18px;border-bottom:1px solid var(--line)}.finance-fee-numbers>span{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:.9rem}.finance-fee-numbers strong{font-size:1.35rem;line-height:1.4;color:var(--ink)}.finance-instruction-history{margin-top:20px}.finance-instruction-history section{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.finance-instruction-history section>div{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}.finance-instruction-history span:not(.pill){color:var(--muted);font-size:.9rem}.finance-instruction-history .btn{flex-shrink:0}
@media(min-width:761px) and (max-width:1100px){.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.finance-fee-numbers{grid-template-columns:1fr;gap:16px}.finance-fee-preview{padding:18px}.finance-credit-accounts>div{flex-direction:column}.finance-credit-accounts>div>span{justify-content:space-between}.finance-instruction-history section{align-items:flex-start}.finance-instruction-history section>div{align-items:flex-start;flex-direction:column}.finance-credit-accounts{padding:16px}}

.finance-filters > .field:only-child{grid-column:1/-1}
.finance-empty.loading-gloss{padding:20px 0!important;text-align:left;}
.finance-header-actions{min-width:0;max-width:100%}

.finance-more{display:flex;justify-content:center;padding-top:24px}
.finance-modal-summary .finance-reconciliation-note{margin:16px 0 0}
.finance-payments li:last-child{border-bottom:0}

.finance-cell-label { display: none; }

@media (max-width: 1000px) {
  .finance-table-wrap {
    position: relative;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .finance-table,
  .finance-table tbody,
  .finance-table tr,
  .finance-table td {
    display: block;
    min-width: 0;
  }
  .finance-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .finance-table .finance-entry {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    font-size: .84rem;
  }
  .finance-entry + .finance-entry { margin-top: 10px; }
  .finance-entry td { padding: 0; border: 0; }
  .finance-table .finance-entry:hover td { background: transparent; }

  .finance-entry-student { grid-column: 1 / -1; }
  .finance-entry-departments {
    grid-column: 1 / 4;
    grid-row: 2;
    align-self: center;
  }
  .finance-entry-status {
    grid-column: 4 / -1;
    grid-row: 2;
    text-align: right;
  }
  .finance-entry-status .finance-cell-note { margin-left: auto; }
  .finance-entry .pill {
    max-width: 100%;
    margin-block: 2px;
    padding: 4px 8px;
    white-space: normal;
    line-height: 1.35;
  }
  .finance-table .finance-student .person > div { min-width: 0; }
  .finance-table .finance-student .person strong,
  .finance-table .finance-student .person small { overflow-wrap: anywhere; }
  .finance-table .finance-period { margin-top: 4px; }

  .finance-entry :is(.finance-entry-charge,.finance-entry-paid,.finance-entry-balance) {
    grid-column: span 2;
    padding: 8px 6px;
    border-radius: 8px;
    background: #f8f6f8;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }
  .finance-table .finance-entry:hover :is(.finance-entry-charge,.finance-entry-paid,.finance-entry-balance) { background: #f8f6f8; }
  .finance-cell-label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .73rem;
    font-weight: 650;
  }
  .finance-entry .finance-cell-note { margin-top: 3px; }

  .finance-entry-actions { grid-column: 1 / -1; }
  .finance-entry-actions:not(:has(.btn)) { display: none; }
  .finance-table .finance-row-actions { min-width: 0; gap: 8px; }
  .finance-table .finance-action-column { gap: 6px; }
  .finance-table .finance-action-column:empty { display: none; }
  .finance-table .finance-row-actions:has(> .finance-action-column:empty) { grid-template-columns: minmax(0, 1fr); }
  .finance-table .finance-row-actions .btn {
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    gap: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .finance-table .finance-row-actions .btn .icon { flex-basis: 17px; width: 17px; }
  .finance-table .finance-empty {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }
}

@media (max-width: 760px) {
  .finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .finance-metrics .metric {
    min-width: 0;
    padding: 12px;
    gap: 4px;
    overflow-wrap: anywhere;
  }
  .finance-metrics .metric strong { font-size: clamp(.95rem, 4.2vw, 1.4rem); }
  .finance-credit-accounts>div>span { gap: 8px; }
  .finance-credit-accounts b { min-width: 0; overflow-wrap: anywhere; }
  .finance-header-actions .btn { max-width: 100%; white-space: normal; }
}
.finance-waive-button {margin-left:auto;flex:0 0 auto;width:36px;height:36px;color:var(--muted,#716c76);border:1px solid var(--line,#ded9e1);border-radius:10px;background:transparent;}
.finance-waive-button:hover {color:var(--wine,#612940);background:var(--soft,#f8edf2);}
.finance-waive-button svg {width:18px;height:18px;}
