.accounting-tabs {
  display:flex;
  gap:.25rem;
  overflow:auto;
  border-bottom:1px solid var(--f-line);
  padding:0 0 .5rem;
  margin:0 0 .85rem;
  scrollbar-width:thin;
}
.accounting-tabs a {
  flex:none;
  padding:.5rem .7rem;
  border-radius:.35rem;
  color:var(--f-muted);
  font-size:.875rem;
  font-weight:550;
  text-decoration:none;
}
.accounting-tabs a:hover,.accounting-tabs [aria-current] {
  background:#e4f0ee;
  color:#105d59;
}
.accounting-tabs [aria-current] {font-weight:650}
.accounting-view .f-panelhead {padding:1rem 1.15rem}
.accounting-view .f-panelhead h2 {font-size:1.2rem}
.accounting-view .f-panelhead p {font-size:.82rem}
.accounting-view .f-table th,.accounting-view .f-table td {padding:.55rem .9rem}
.accounting-view .f-table .accounting-num {text-align:right}
.accounting-view .f-table td {font-size:.875rem}
.accounting-view .f-table .f-link {font-size:inherit}
.accounting-view .f-subhead {margin:1rem 1.15rem .55rem;font-size:1rem}
.accounting-view .f-panel>.f-pairs {padding:.15rem 1.15rem .95rem}
.accounting-view .f-reportLabel,.accounting-view .f-filter {padding:0 1.15rem .75rem}
.accounting-view .f-panel>.f-note {margin:.1rem 1.15rem .8rem}
.accounting-view .accounting-back {display:inline-block;margin-bottom:.4rem;font-size:.81rem}
.accounting-form {display:grid;gap:.9rem}
.accounting-form h3 {font-size:1rem;margin:.15rem 0 0}
.accounting-form .btn {justify-self:start}
.accounting-form .f-note {margin:0}
.accounting-form .accounting-line:has([name=lineCampus]) {grid-template-columns:2fr 1.4fr 1fr 1fr auto}
.accounting-print-only {display:none}
@media(max-width:700px) {
  .accounting-view .f-panelhead {padding:.8rem .85rem}
  .accounting-view .f-subhead {margin:.8rem .85rem .5rem}
  .accounting-view .f-reportLabel,.accounting-view .f-filter {padding:0 .85rem .7rem}
  .accounting-view .f-table th,.accounting-view .f-table td {padding:.52rem .65rem}
  .accounting-form .f-grid {grid-template-columns:1fr}
  .accounting-form .accounting-line:has([name=lineCampus]) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print {
  .accounting-tabs,.accounting-back {display:none!important}
  .accounting-print-only {display:block;margin:0 0 .55rem}
  .accounting-view .f-panel {overflow:visible;break-inside:auto}
  .accounting-view .f-panelhead,.accounting-view .f-panel>.f-pairs,.accounting-view .f-reportLabel {padding:.45rem 0}
  .accounting-view .f-table td {font-size:8.5pt}
  .accounting-view .f-pairs {grid-template-columns:repeat(3,1fr)}
}

.hedge .accounting-kpis {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:.375rem;
  box-shadow:0 1px 2px #0000000d;
}
.hedge .accounting-kpi {
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:.25rem;
  padding:.75rem;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.hedge .accounting-kpi:nth-child(2n) { border-right:0; }
.hedge .accounting-kpi:nth-last-child(-n+2) { border-bottom:0; }
.hedge .accounting-kpi::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--kpi-colour); }
.hedge .accounting-kpi:hover { background:color-mix(in oklch,var(--accent) 40%,transparent); }
.hedge .accounting-kpi span {
  display:flex;
  align-items:center;
  gap:.375rem;
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .accounting-kpi strong {
  font-family:var(--font-mono,monospace);
  font-size:clamp(1rem,2.2vw,1.5rem);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-weight:600;
  letter-spacing:-.025em;
}
.hedge .accounting-kpi small { margin-left:.25rem; color:var(--muted-foreground); font:500 .75rem var(--font-sans,sans-serif); }
.hedge .accounting-overview {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
  margin-top:1rem;
}
.hedge .accounting-overview > :is(div,aside) { display:grid; min-width:0; align-content:start; gap:1rem; }
.hedge .accounting-portlet .he-panel-head h2 { display:flex; align-items:center; gap:.5rem; }
.hedge .accounting-portlet .he-panel-head h2 svg { color:var(--muted-foreground); }
.hedge .accounting-portlet .he-panel-head a { font-size:.75rem; }
.hedge .accounting-work-areas { display:grid; }
.hedge .accounting-work-areas > div { min-width:0; padding:.5rem; }
.hedge .accounting-work-areas > div:not(:first-child) { border-top:1px solid var(--border); }
.hedge .accounting-work-areas h3 {
  padding:.25rem .5rem .375rem;
  font-size:.6875rem;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:var(--muted-foreground);
  font-weight:600;
}
.hedge .accounting-work-areas a {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.5rem;
  border-radius:.25rem;
}
.hedge .accounting-work-areas a:hover { background:color-mix(in oklch,var(--accent) 50%,transparent); }
.hedge .accounting-work-areas a span { min-width:0; flex:1; }
.hedge .accounting-work-areas a :is(small,strong) {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hedge .accounting-work-areas strong { color:var(--primary); font-size:.8125rem; font-weight:500; }
.hedge .accounting-work-areas small { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-work-areas a b {
  min-width:2.25rem;
  padding:.125rem .375rem;
  border-radius:.25rem;
  text-align:center;
  background:var(--muted);
  color:var(--foreground);
  font:600 .75rem var(--font-mono,monospace);
}
.hedge .accounting-work-areas a .accounting-urgent {
  background:color-mix(in oklch,var(--destructive) 10%,transparent);
  color:var(--destructive);
}
.hedge .accounting-work-areas a svg { color:var(--muted-foreground); opacity:0; }
.hedge .accounting-work-areas a:is(:hover,:focus-visible) svg { opacity:1; }
.hedge .accounting-overview-list { list-style:none; padding:0; margin:0; font-size:.8125rem; }
.hedge .accounting-overview-list > :is(li,div) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.625rem .875rem;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-overview-list li:last-child,.hedge .accounting-overview-list div:last-child { border-bottom:0; }
.hedge .accounting-overview-list :is(dt,small) { color:var(--muted-foreground); }
.hedge .accounting-overview-list dd { margin:0; font-family:var(--font-mono,monospace); font-variant-numeric:tabular-nums; }
.hedge .accounting-accounts-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); }
.hedge .accounting-accounts-list li { border-bottom:1px solid var(--border); }
.hedge .accounting-accounts-list li span { flex:1; min-width:0; }
.hedge .accounting-aging { display:grid; gap:.625rem; padding:.875rem; }
.hedge .accounting-aging > div { display:grid; grid-template-columns:1fr auto; gap:.25rem; color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-aging strong { color:var(--foreground); font:500 .75rem var(--font-mono,monospace); }
.hedge .accounting-aging-track { grid-column:1/-1; height:6px; border-radius:999px; background:var(--muted); overflow:hidden; }
.hedge .accounting-aging-track i { display:block; width:var(--aging-width); height:100%; border-radius:inherit; background:var(--aging-colour); }
.hedge .accounting-view .accounting-list-toolbar,.hedge .chart-list .accounting-list-toolbar {
  display:flex;
  flex-wrap:wrap;
  min-width:0;
  gap:.5rem;
  align-items:center;
  padding:.5rem .75rem;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-list-toolbar > span { margin-inline-start:auto; font-size:.75rem; color:var(--muted-foreground); }
.hedge .accounting-search { position:relative; display:flex; align-items:center; width:min(100%,20rem); }
.hedge .accounting-search svg { position:absolute; left:.5rem; color:var(--muted-foreground); pointer-events:none; }
.hedge .accounting-search input[type="search"] {
  width:100%;
  min-height:2rem;
  padding:.25rem .5rem .25rem 1.75rem;
  border:1px solid var(--input);
  border-radius:.375rem;
  background:var(--card);
  color:var(--foreground);
  font-size:.8125rem;
}
.hedge .accounting-code { font:500 .75rem var(--font-mono,monospace); white-space:nowrap; }
.hedge .accounting-credit-line { display:inline-block; padding-left:1.5rem; }
.hedge .accounting-view .f-table tfoot td { background:color-mix(in oklch,var(--muted) 60%,transparent); border-top:2px solid var(--border); font-weight:600; }
.hedge .accounting-view .f-panelhead { padding:.75rem .875rem; }
.hedge .accounting-view .f-panelhead h2 { font-size:.9375rem; }
.hedge .accounting-view .f-panelhead p { font-size:.75rem; }
.hedge .accounting-view .f-table th { font-size:.6875rem; padding:.5rem .75rem; }
.hedge .accounting-view .f-table td { font-size:.8125rem; padding:.375rem .75rem; }
.hedge .accounting-form h3 { text-transform:uppercase; letter-spacing:.045em; font-size:.6875rem; color:var(--muted-foreground); }
.hedge .accounting-form-section { display:grid; min-width:0; gap:.75rem; }
.hedge .accounting-record-drawer .workspace-task-fields { padding:0; }
.hedge .accounting-record-drawer .accounting-form:has(.accounting-form-section) { gap:0; }
.hedge .accounting-record-drawer .accounting-form-section { padding:1rem; border-bottom:1px solid var(--border); }
.hedge .accounting-record-drawer .accounting-form-section:last-child { border-bottom:0; }
.hedge .accounting-record-drawer .accounting-form:not(:has(.accounting-form-section)) { padding:1rem; }
.hedge .accounting-report-actions { justify-content:flex-end; max-width:68rem; margin:0 auto .75rem; }
.hedge .accounting-report-actions .accounting-report-controls { flex:1 1 100%; min-width:0; }
.hedge .accounting-view .accounting-report-sheet { max-width:68rem; margin-inline:auto; }
.hedge .accounting-series-print { display:none; }
.hedge .accounting-letterhead { border-bottom:1px solid var(--border); padding:1rem 1.25rem; }
.hedge .accounting-letterhead > p { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-letterhead .accounting-letterhead-institute { text-transform:uppercase; letter-spacing:.045em; font-weight:600; }
.hedge .accounting-letterhead h2 { font-size:1.125rem; font-weight:600; margin:.25rem 0 .125rem; }
.hedge .accounting-letterhead p + p { margin-top:.125rem; }
.hedge .accounting-letterhead .f-chip { margin-top:.4rem; }
.hedge .accounting-report-summary {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
  margin:0;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-report-summary > div {
  padding:.65rem 1.25rem;
  border-right:1px solid var(--border);
}
.hedge .accounting-report-summary dt { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-report-summary dd { margin:.13rem 0 0; font:600 1rem var(--font-mono,monospace); }
.hedge .accounting-report-definition {
  margin:0;
  padding:.65rem 1.25rem;
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .accounting-report-sheet .accounting-list-toolbar { padding:.5rem 1.25rem; }
.hedge .accounting-report-active { background:var(--accent); color:var(--primary); }
.hedge .accounting-report-section + .accounting-report-section { border-top:1px solid var(--border); }
.hedge .accounting-report-section h3 {
  padding:.75rem 1.25rem .4rem;
  font-size:.875rem;
  font-weight:650;
}
.hedge .accounting-report-section .f-table { margin:0; border-radius:0; }
.hedge .accounting-report-section .f-table :is(td,th):first-child { padding-inline-start:1.25rem; }
.hedge .accounting-report-section .f-table :is(td,th):last-child { padding-inline-end:1.25rem; }
.hedge .accounting-report-section .accounting-num { font-variant-numeric:tabular-nums; }
.hedge .accounting-report-section td.accounting-num { white-space:nowrap; }
.hedge .accounting-report-section .accounting-report-group td {
  background:color-mix(in oklch,var(--accent) 55%,transparent);
  color:var(--foreground);
  font-weight:650;
}
.hedge .accounting-report-total {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.75rem;
  padding:.65rem 1.25rem;
  border-top:1px solid var(--border);
  background:var(--muted);
  color:var(--foreground);
  font-size:.875rem;
  font-weight:650;
}
.hedge .accounting-report-total .f-price { white-space:nowrap; }
.hedge .he-record-drawer.accounting-payment-dialog {
  width:min(calc(100vw - 2rem),32rem);
  max-height:calc(100dvh - 2rem);
  height:auto;
  inset:0;
  margin:auto;
  border-radius:.375rem;
}
.hedge .accounting-payment-dialog .workspace-task { min-height:0; }
@media (min-width:768px) {
  .hedge .he-record-drawer.accounting-record-drawer { width:48rem; max-width:min(100vw,48rem); }
}
@media (min-width:1024px) {
  .hedge .accounting-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .hedge .accounting-kpi { padding:1rem; border-bottom:0; }
  .hedge .accounting-kpi:nth-child(2n) { border-right:1px solid var(--border); }
  .hedge .accounting-kpi:last-child { border-right:0; }
  .hedge .accounting-work-areas { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hedge .accounting-work-areas > div:nth-child(2) { border-top:0; }
  .hedge .accounting-work-areas > div:nth-child(2n) { border-left:1px solid var(--border); }
}
@media (min-width:1280px) {
  .hedge .accounting-overview { grid-template-columns:minmax(0,1fr) 21.25rem; }
}
@media (max-width:480px) {
  .hedge .accounting-accounts-list { grid-template-columns:minmax(0,1fr); }
  .hedge .accounting-kpi strong { font-size:1rem; }
  .hedge :is(.accounting-letterhead,.accounting-report-summary > div,.accounting-report-definition,.accounting-report-section h3,.accounting-report-total) {
    padding-inline:.75rem;
  }
}
@page instituto-finance-wide { size:A4 landscape; margin:12mm; }
@media print {
  .hedge .accounting-view .accounting-report-sheet { border:0; max-width:none; box-shadow:none; }
  .hedge .accounting-view .accounting-report-sheet:has(.accounting-report-wide) { page:instituto-finance-wide; }
  .hedge :is(.accounting-view .accounting-list-toolbar,.accounting-report-actions) { display:none!important; }
  body:has(.accounting-report-sheet) .he-page-header { display:none!important; }
  .hedge .accounting-report-sheet :is(.accounting-letterhead,.accounting-report-summary,.accounting-report-total,tr) { break-inside:avoid; }
  .hedge .accounting-report-section h3 { break-after:avoid; }
  .hedge .accounting-report-section .table-wrap { overflow:visible; }
  .hedge .accounting-series-screen { display:none; }
  .hedge .accounting-series-print { display:block; }
  .hedge .accounting-series-print .table-wrap+.table-wrap { margin-top:4mm; }
  .hedge .accounting-report-section thead { display:table-header-group; }
  .hedge .accounting-report-section tfoot { display:table-row-group; }
}
