/* SZODO poprawka 163 — wszystkie standardowe listy dopasowane do szerokości strony.
   Jeden rekord = jeden wiersz, bez poziomego scrolla. Długie treści są skracane
   wizualnie wielokropkiem, pełna treść pozostaje w DOM i jest dostępna w title. */
.table-wrap.szodo-list-fit-wrap{
    overflow-x:hidden !important;
    overflow-y:visible;
    max-width:100%;
    min-width:0;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline){
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    font-size:var(--szodo-list-font-size,12px);
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > thead > tr > th,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tfoot > tr > th,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tfoot > tr > td{
    box-sizing:border-box;
    min-width:0 !important;
    max-width:none !important;
    white-space:nowrap !important;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
    line-height:1.22;
    padding:var(--szodo-list-cell-pad-y,8px) var(--szodo-list-cell-pad-x,8px);
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > thead > tr > th{
    font-size:var(--szodo-list-header-font-size,11px);
    letter-spacing:.02em;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > div:not(.actions):not(.table-actions):not(.document-module-row-actions),
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > p,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > small,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ul,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ol,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ul > li,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ol > li{
    display:inline;
    margin:0;
    padding:0;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ul,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ol{
    list-style:none;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ul > li + li::before,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) > tbody > tr > td > ol > li + li::before{
    content:' · ';
    color:var(--muted);
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .szodo-list-inline-separator{
    display:inline;
    margin:0 .28em;
    color:var(--muted);
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .actions,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .table-actions,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .document-module-row-actions{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center;
    justify-content:flex-start;
    gap:4px;
    width:100%;
    min-width:0;
    margin:0;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .actions form,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .table-actions form,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) .document-module-row-actions form,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell > form{
    display:inline-flex !important;
    flex:0 1 auto;
    min-width:0;
    margin:0;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell{
    overflow:hidden;
    text-overflow:clip;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell .btn,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell button,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell a.btn{
    width:auto !important;
    min-width:0 !important;
    max-width:100%;
    flex:0 1 auto;
    white-space:nowrap !important;
    overflow:hidden;
    text-overflow:ellipsis;
    padding:5px 7px;
    font-size:var(--szodo-list-action-font-size,11px);
    line-height:1.15;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell.szodo-actions-many .btn,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-actions-cell.szodo-actions-many button{
    padding-left:5px;
    padding-right:5px;
    font-size:10px;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) input[type="checkbox"],
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) input[type="radio"]{
    width:auto;
    min-height:0;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) td.szodo-list-select-cell,
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) th.szodo-list-select-cell{
    text-align:center;
    padding-left:4px;
    padding-right:4px;
}
.table-wrap > table.szodo-table-fit-page:not(.szodo-table-allow-multiline) code{
    font-size:.95em;
}

/* Bardzo szerokie rejestry: zmniejszamy wyłącznie typografię i padding,
   nadal bez poziomego przewijania i bez drugiego wiersza rekordu. */
.table-wrap > table.szodo-table-fit-page.szodo-list-cols-10plus:not(.szodo-table-allow-multiline){
    --szodo-list-cell-pad-x:5px;
    --szodo-list-cell-pad-y:7px;
    --szodo-list-action-font-size:10px;
}
.table-wrap > table.szodo-table-fit-page.szodo-list-cols-12plus:not(.szodo-table-allow-multiline){
    --szodo-list-cell-pad-x:4px;
    --szodo-list-cell-pad-y:6px;
    --szodo-list-action-font-size:9px;
}
