/* Microcredits: direct table sorting without dropdown filters. */
.debt-sort-button {
 display:inline-flex;
 width:100%;
 align-items:center;
 gap:6px;
 padding:0;
 border:0;
 background:transparent;
 color:inherit;
 font:inherit;
 font-weight:inherit;
 letter-spacing:inherit;
 text-transform:inherit;
 cursor:pointer;
 user-select:none;
}

.debt-sort-button:hover,
.debt-sort-button.active {
 color:var(--text-primary);
}

.debt-sort-button:focus-visible {
 outline:2px solid var(--accent);
 outline-offset:3px;
 border-radius:4px;
}

.debt-sort-icon {
 display:inline-flex;
 min-width:12px;
 justify-content:center;
 color:var(--text-muted);
 font-size:12px;
 line-height:1;
}

.debt-sort-button.active .debt-sort-icon {
 color:var(--accent);
}

.debt-contracts-table th:nth-child(6) .debt-sort-button,
.debt-contracts-table th:nth-child(8) .debt-sort-button,
.debt-contracts-table th:nth-child(9) .debt-sort-button {
 justify-content:flex-end;
}

.bank-credit-table th:nth-child(5) .debt-sort-button {
 justify-content:flex-end;
}

.debt-contracts-table th:nth-child(7) .debt-sort-button {
 justify-content:center;
}

body.dark .debt-sort-button:hover,
body.dark .debt-sort-button.active {
 color:#fafafa;
}
