/* V5.0: group-company accounting columns + Admin-only old debt import. */
.debt-entity-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:auto}
.debt-entity-table thead th{vertical-align:middle;text-align:center!important;white-space:normal!important;border-bottom:1px solid rgba(255,255,255,.21);border-right:1px solid rgba(255,255,255,.17);padding:10px 9px!important;line-height:1.33!important}
.debt-entity-table .debt-fixed{background:#1d4c83!important;color:#fff!important;font-weight:800;min-width:70px}
.debt-entity-table .debt-staff{min-width:230px;text-align:left!important}
.debt-entity-table .debt-company-dmx,.debt-entity-table .debt-dmx{background:#0778b5!important;color:#fff!important}
.debt-entity-table .debt-company-tho,.debt-entity-table .debt-tho{background:#112c64!important;color:#fff!important}
.debt-entity-table .debt-company span{display:block;font-size:10px;font-weight:700;opacity:.92;letter-spacing:.005em}
.debt-entity-table .debt-company strong{display:block;font-size:12px;letter-spacing:.015em}
.debt-entity-table .debt-head-period b{display:block;font-size:11px;letter-spacing:.01em}
.debt-entity-table .debt-head-period small{display:block;font-size:10px;font-weight:700;white-space:nowrap}
.debt-entity-table .debt-cutoff{font-weight:900}
.debt-entity-table tbody .money-cell{white-space:nowrap;text-align:right!important;font-variant-numeric:tabular-nums;font-weight:800}
.debt-entity-table tbody .debt-dmx-amount{color:#145a92}
.debt-entity-table tbody .debt-tho-amount{color:#253d79}
.debt-entity-table tbody td{vertical-align:middle}
.dark .debt-entity-table .debt-fixed{background:#25486c!important}
.dark .debt-entity-table .debt-company-dmx,.dark .debt-entity-table .debt-dmx{background:#126a95!important}
.dark .debt-entity-table .debt-company-tho,.dark .debt-entity-table .debt-tho{background:#224078!important}
.dark .debt-entity-table tbody .debt-dmx-amount{color:#94d3ff!important}
.dark .debt-entity-table tbody .debt-tho-amount{color:#b3c7ff!important}
.olddebt-import-panel{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:20px;margin:18px 0;box-shadow:var(--shadow)}
.olddebt-import-panel h2{margin:3px 0 6px;font-size:19px;color:var(--text)}
.olddebt-import-panel p{margin:5px 0}
.olddebt-fields{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(185px,1fr) minmax(155px,.7fr) auto auto;gap:12px;align-items:end;margin:16px 0 12px}
.olddebt-fields label{display:grid;gap:5px;font-size:13px;font-weight:800;color:var(--text)}
.olddebt-fields label input,.olddebt-fields label select{width:100%;max-width:100%;min-width:0;border:1px solid var(--line);background:var(--panel2);color:var(--text);padding:9px;border-radius:9px}
.olddebt-fields button{white-space:nowrap;min-height:42px}
.olddebt-rule{font-size:12px;color:var(--muted);background:var(--panel2);border-radius:9px;padding:11px 13px}
.dark .olddebt-import-panel{background:#192e45;border-color:#35516b}
.dark .olddebt-rule{background:#203b55;color:#c5d9eb}
@media(max-width:1250px){.olddebt-fields{grid-template-columns:repeat(3,minmax(140px,1fr))}.olddebt-fields button{width:100%}}
@media(max-width:700px){.debt-entity-table{min-width:990px}.olddebt-fields{grid-template-columns:1fr 1fr}.olddebt-fields label:first-child{grid-column:1/-1}}
