/* company_debt.css — Company view ▸ Bonds ▸ Debt & loans card (company_debt.js, 2026-11-12) */
:root {
  --dbt-bond: #2f6fd6; --dbt-conv: #8b5cf6; --dbt-loan: #d9701a;
  --dbt-rev: #0e8a8a; --dbt-vend: #8a6d3b; --dbt-struct: #b5487a; --dbt-other: #8a94a1;
  --dbt-rc: #5b6675; --dbt-nr: #0e8a8a; --dbt-wall: #2f6fd6; --dbt-wall1: #d9701a;
}
:root[data-theme="dark"] { --dbt-bond: #5b8def; --dbt-conv: #a78bfa; --dbt-loan: #f28c3a; --dbt-rev: #2bb3b3; --dbt-vend: #c9a46a; --dbt-struct: #e07aa8; --dbt-other: #7d8794; --dbt-rc: #8b96a5; --dbt-nr: #2bb3b3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dbt-bond: #5b8def; --dbt-conv: #a78bfa; --dbt-loan: #f28c3a; --dbt-rev: #2bb3b3; --dbt-vend: #c9a46a; --dbt-struct: #e07aa8; --dbt-other: #7d8794; --dbt-rc: #8b96a5; --dbt-nr: #2bb3b3; } }

#cv-debt.dbt-empty { padding-bottom: 8px; }
#cv-debt.dbt-empty > h3 { margin-bottom: 2px; }
.dbt-verdict { margin: 4px 0 2px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.dbt-summ { margin: 2px 0 6px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.dbt-charts { grid-template-columns: 3fr 2fr; }
.dbt-charts > :only-child { grid-column: 1 / -1; }

.dbt-bar { display: flex; height: 26px; border-radius: 5px; overflow: hidden; margin: 6px 0 4px; background: var(--grey-chip-bg); }
.dbt-bar.thin { height: 18px; }
.dbt-seg { position: relative; display: flex; align-items: center; justify-content: center; min-width: 2px; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.dbt-bar.thin .dbt-seg { font-size: 10px; font-weight: 500; }
.dbt-seg + .dbt-seg { box-shadow: inset 1px 0 0 rgba(255,255,255,.55); }
.dbt-seg span { padding: 0 4px; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.dbt-c-bond { background: var(--dbt-bond); } .dbt-c-conv { background: var(--dbt-conv); } .dbt-c-loan { background: var(--dbt-loan); }
.dbt-c-rev { background: var(--dbt-rev); } .dbt-c-vend { background: var(--dbt-vend); } .dbt-c-struct { background: var(--dbt-struct); }
.dbt-c-other { background: var(--dbt-other); } .dbt-c-rc { background: var(--dbt-rc); } .dbt-c-nr { background: var(--dbt-nr); }
.dbt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.dbt-legend b { color: var(--text); font-weight: 600; }
.dbt-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.dbt-sub { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dbt-sub .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.dbt-liq { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.dbt-liq b { font-weight: 600; }

.dbt-cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 16px; }
.dbt-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.dbt-col .b { width: 100%; max-width: 54px; background: var(--dbt-wall); border-radius: 3px 3px 0 0; opacity: .85; }
.dbt-col.first .b { background: var(--dbt-wall1); }
.dbt-col .v { font-size: 10.5px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; }
.dbt-col .k { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.dbt-th { margin-top: 12px; }
.dbt-tbl td, .dbt-claims td { vertical-align: top; }
.dbt-tbl td.nm { min-width: 170px; max-width: 300px; }
.dbt-tbl td .sub, .dbt-ev .sub { font-size: 10.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; white-space: normal; }
.dbt-tbl .chip { font-size: 10px; padding: 0 5px; vertical-align: 1px; }
.dbt-tbl tr.muted td { opacity: .6; }
.dbt-rt { white-space: nowrap; font-size: 11.5px; }
.dbt-src { white-space: nowrap; }
.dbt-srcs a { display: inline-block; min-width: 13px; height: 13px; line-height: 13px; margin-left: 3px; padding: 0 3px; border-radius: 3px; font-size: 9.5px; text-align: center;
  vertical-align: 1px; background: var(--grey-chip-bg); color: var(--text); text-decoration: none; }
.dbt-srcs a:hover { background: var(--accent); color: #fff; }
.dbt-more { margin-top: 6px; font: inherit; font-size: 12px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--text); cursor: pointer; }
.dbt-more:hover { border-color: var(--accent); color: var(--accent); }
.dbt-claims td:first-child { max-width: 280px; }
.dbt-claims td:nth-child(2) { white-space: nowrap; }
.dbt-gaps { margin-top: 6px; }
.dbt-folds { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.dbt-ev ol { columns: 1; }
.dbt-ev li { padding: 3px 0; }
.dbt-how ul { margin: 4px 0 0 16px; padding: 0; }
.dbt-how li { margin: 2px 0; }

@media (max-width: 760px) {
  .dbt-charts { grid-template-columns: 1fr; }
  .dbt-tbl td.nm { min-width: 140px; }
}
/* v2 (2026-11-12): keep the ten columns on one screen — long names, backers and sub-lines clip with a tooltip */
.dbt-tbl td.nm { max-width: 250px; }
.dbt-tbl td:nth-child(3) { white-space: nowrap; }
.dbt-tbl td:nth-child(4) { max-width: 170px; }
.dbt-tbl td, .dbt-claims td { white-space: normal; overflow-wrap: anywhere; }
.dbt-tbl td.nm { min-width: 190px; }
.dbt-tbl td:nth-child(2) { min-width: 96px; }
.dbt-tbl td.num, .dbt-tbl td:nth-child(3), .dbt-src { white-space: nowrap; overflow-wrap: normal; }
.dbt-claims td:first-child { min-width: 200px; }
.dbt-claims td:last-child { min-width: 320px; }
/* v4 (2026-11-12): the part of the balance-sheet total the filing does not break out by instrument */
.dbt-c-gap { background: repeating-linear-gradient(135deg, var(--grey-chip-bg) 0 6px, transparent 6px 12px); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.dbt-seg.dbt-c-gap span { text-shadow: none; font-weight: 500; }
.dbt-legend i.dbt-c-gap { box-shadow: inset 0 0 0 1px var(--muted); }
