.credit-primary{display:flex;align-items:center;justify-content:space-between;min-height:31px;padding:3px 8px;border-bottom:1px solid var(--ui-line)}
.credit-primary h2{margin:0;font-size:calc(12px + var(--ui-font-step));color:var(--ui-navy)}
.credit-filters{display:flex;align-items:center;gap:5px;padding:4px 8px;border-bottom:1px solid var(--ui-line);background:#f7faff}
.credit-filters>input[name=q]{width:220px;flex:0 1 220px;min-width:130px}
.credit-filters>.smart-select,.credit-filters>select{width:130px;flex:0 1 130px;min-width:90px}
.credit-filters>label{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:calc(8px + var(--ui-font-step))}
.credit-filters input[type=date]{width:116px;min-width:0}
.credit-filter-actions{display:flex;gap:4px;margin-inline-start:auto}
.credit-register-table th,.credit-register-table td{white-space:nowrap;padding:5px 6px}
.credit-register-table .order-link{padding:0;border:0;background:transparent;color:var(--ui-navy);font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:#c8d9e9;text-underline-offset:3px}
.credit-register-table .order-link:hover{text-decoration-color:currentColor}
.credit-invoice-link{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:start}
.credit-invoice-link small{color:var(--ui-muted);font-size:.85em;font-weight:400}
.credit-modal-card{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);display:flex;flex-direction:column}
#documentary-credit-settlement-form{min-height:0;display:flex;flex-direction:column;overflow:hidden}
#credit-modal-content{min-height:0;overflow:auto;padding:10px}
#credit-modal-content>.field{margin-block:8px 0}
#credit-modal-content textarea{width:100%;min-height:70px;max-height:180px;resize:vertical}
.credit-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
.credit-details>div{padding:7px;border:1px solid var(--ui-line);border-radius:5px;min-width:0}
.credit-details dt{font-size:calc(8px + var(--ui-font-step));color:var(--ui-muted)}
.credit-details dd{margin:3px 0 0;font-weight:750;overflow-wrap:anywhere}
.credit-settlement-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(max-width:620px){.credit-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.credit-filters>input[name=q]{grid-column:1/-1;width:100%;min-width:0}.credit-filters>.smart-select,.credit-filters>select{width:100%;min-width:0}.credit-filters input[type=date]{width:100%}.credit-filters>label{min-width:0}.credit-filter-actions{grid-column:1/-1;justify-content:flex-end;margin:0}.credit-details,.credit-settlement-fields{grid-template-columns:1fr}}
