/* Compact student finance; scoped to the student's financial panel. */
.student-financial-panel-compact{container:student-finance / inline-size;gap:10px!important;align-content:start}
.student-financial-panel-compact .student-financial-hero.compact{display:grid;grid-template-columns:1fr;gap:10px!important;padding:12px!important;border-radius:12px!important}
.student-financial-panel-compact .student-financial-hero>div:first-child{min-width:0;flex:auto}
.student-financial-panel-compact .student-financial-hero h3{font-size:17px!important;margin:0!important;line-height:1.25!important}
.student-financial-panel-compact .student-financial-hero .eyebrow{display:none}
.student-financial-panel-compact .student-financial-hero .helper{font-size:12px!important;margin:4px 0 0;line-height:1.4}
.student-financial-panel-compact .student-financial-hero>.section-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;width:100%;margin:0!important;padding:0!important}
.student-financial-panel-compact .student-financial-hero .section-actions .btn{min-height:36px!important;padding:7px 10px!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:8px!important;box-shadow:none!important;width:100%;min-width:0}
.student-financial-panel-compact .student-carnet-delivery{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 0 0!important;margin:0;border:0;border-top:1px solid #e4d9ec;border-radius:0;background:transparent}
.student-financial-panel-compact .student-carnet-delivery label{grid-column:1;gap:8px;min-height:26px}
.student-financial-panel-compact .student-carnet-delivery strong{font-size:12px;line-height:1.35}
.student-financial-panel-compact .student-carnet-delivery small{grid-column:1;font-size:11px;line-height:1.4}
.student-financial-panel-compact .student-carnet-delivery .carnet-contact-link{grid-column:2;grid-row:1/3;align-self:center;min-height:32px;padding:6px 10px;border:1px solid #ded0e8;border-radius:7px;background:#fff;color:#612a89;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}
.student-financial-panel-compact .student-financial-stat-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
.student-financial-panel-compact .student-financial-stat-grid.compact .student-financial-stat{min-height:78px!important;padding:10px!important;border-radius:10px!important;gap:4px!important;justify-content:start}
.student-financial-panel-compact .student-financial-stat span{font-size:10px!important;line-height:1.3}
.student-financial-panel-compact .student-financial-stat strong{font-size:19px!important;line-height:1.2!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.student-financial-panel-compact .student-financial-stat small{font-size:10px!important;line-height:1.35!important}
.student-record-body .student-financial-panel-compact .student-financial-history-card{padding:12px!important;border-radius:12px!important}
.student-financial-panel-compact .student-financial-history-card .panel-head{margin:0 0 9px!important;padding:0!important;min-height:0;align-items:center}
.student-financial-panel-compact .student-financial-history-card .panel-head h3{font-size:15px!important;margin:0!important}
.student-financial-panel-compact .student-financial-history-card .panel-head small{font-size:11px;line-height:1.4}
.student-financial-panel-compact .student-financial-bulk-bar{display:grid;grid-template-columns:1fr;gap:6px;padding:8px;margin:0 0 8px;border-radius:8px;font-size:11px}
.student-financial-panel-compact .student-financial-bulk-bar>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%}
.student-financial-panel-compact .student-financial-bulk-bar .btn{min-width:0;min-height:32px!important;padding:6px!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:7px!important;box-shadow:none!important}
.student-financial-panel-compact .student-financial-history{display:grid;gap:7px}
.student-financial-panel-compact .student-financial-history-row.compact-card{display:grid;grid-template-columns:24px minmax(0,1.5fr) 88px 100px 84px 104px;gap:9px;padding:10px;border-radius:10px;align-items:center}
.student-financial-panel-compact .student-financial-history-row.compact-card>div{min-width:0}
.student-financial-panel-compact .student-financial-history-row.compact-card .table-actions{grid-column:auto!important;display:flex;gap:4px;justify-content:flex-end;flex-wrap:nowrap}
.student-financial-panel-compact .student-financial-row-title strong{font-size:12px!important;line-height:1.35;overflow-wrap:anywhere}
.student-financial-panel-compact .student-financial-row-title small{font-size:10px!important;line-height:1.4}
.student-financial-panel-compact .student-financial-history-row.compact-card .btn{min-height:32px!important;padding:6px 8px!important;font-size:11px!important;white-space:nowrap}
@container student-finance (max-width:640px){
 #pageContainer .student-financial-panel-compact .student-financial-hero>.section-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .student-financial-panel-compact .student-financial-stat-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .student-financial-panel-compact .student-financial-stat:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;min-height:0!important}
 .student-financial-panel-compact .student-financial-stat:last-child small{grid-column:1/-1}
 .student-financial-panel-compact .student-financial-bulk-bar>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 .student-financial-panel-compact .student-financial-bulk-bar>div .btn:last-child{grid-column:1/-1}
 .student-financial-panel-compact .student-financial-history-row.compact-card{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);gap:8px}
 .student-financial-panel-compact .student-financial-history-row.compact-card .student-financial-row-title{grid-column:2/-1}
 .student-financial-panel-compact .student-financial-history-row.compact-card>div:nth-child(3){grid-column:2}
 .student-financial-panel-compact .student-financial-history-row.compact-card>div:nth-child(5){grid-column:2}
 .student-financial-panel-compact .student-financial-history-row.compact-card .table-actions{grid-column:3!important}
 .student-financial-panel-compact .student-carnet-delivery{grid-template-columns:1fr}
 .student-financial-panel-compact .student-carnet-delivery .carnet-contact-link{grid-column:1;grid-row:auto;justify-self:start}
}
#pageContainer .student-financial-panel-compact .student-financial-history-row.compact-card .table-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;gap:4px!important;flex-wrap:nowrap!important}
#pageContainer .student-financial-panel-compact .student-financial-history-row.compact-card .table-actions .btn{width:auto!important;min-width:0!important;padding:6px!important}

/* Compact student finance actions and archive */
#pageContainer .student-financial-panel-compact .student-financial-bulk-bar>div,
#pageContainer .student-financial-panel-compact .student-financial-hero>.section-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important;width:auto!important}
#pageContainer .student-financial-panel-compact .student-financial-bulk-bar .btn,
#pageContainer .student-financial-panel-compact .student-financial-hero>.section-actions>.btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:30px!important;padding:6px 10px!important;font-size:11px!important;line-height:1.25!important}
.student-financial-archived{margin-top:14px;border-top:1px solid var(--line,#e6e1ed);padding-top:12px}
.student-financial-archived>summary{cursor:pointer;color:var(--muted,#756a80);font-size:12px;font-weight:600;padding:6px 0}
.student-financial-archive-list{display:grid;gap:6px}
.student-financial-archive-row{display:flex;align-items:center;gap:12px;padding:9px;border:1px solid var(--line,#e6e1ed);border-radius:8px;font-size:12px}
.student-financial-archive-row>div{flex:1;min-width:0}.student-financial-archive-row strong{overflow-wrap:anywhere}.student-financial-archive-row small{display:block;color:var(--muted,#756a80);margin-top:4px}
@media(max-width:640px){#pageContainer .student-financial-panel-compact .student-financial-bulk-bar .btn,#pageContainer .student-financial-panel-compact .student-financial-hero>.section-actions>.btn{min-height:36px!important}.student-financial-archive-row{flex-wrap:wrap}.student-financial-archive-row>div{flex-basis:100%}}
