.wms-universal-table thead .wms-auto-filter-row th{padding:5px 6px!important;background:#f7f9fb!important;border-top:1px solid #e3e9ee!important;border-bottom:1px solid #dde5eb!important}
.wms-universal-table .wms-auto-filter{width:100%;min-width:54px;height:30px;padding:4px 8px;border:1px solid #ccd8e1;border-radius:5px;background:#fff;font:inherit;color:#253746;outline:none}
.wms-universal-table .wms-auto-filter:focus{border-color:#5F8799;box-shadow:0 0 0 2px rgba(31,90,115,.08)}
.wms-universal-table th.wms-auto-sort{cursor:pointer;user-select:none;position:relative;padding-right:20px!important}
.wms-universal-table th.wms-auto-sort::after{content:"↕";position:absolute;right:7px;top:50%;transform:translateY(-50%);color:#9aa9b5;font-size:9px}
.wms-universal-table th.wms-auto-sort.sort-asc::after{content:"▲";color:#1F5A73}
.wms-universal-table th.wms-auto-sort.sort-desc::after{content:"▼";color:#1F5A73}
.wms-auto-table-toolbar{display:flex;justify-content:flex-end;align-items:center;min-height:30px;margin:0 0 6px;gap:6px}
.wms-auto-clear-btn{height:28px;padding:4px 10px;border:1px solid #d4dee6;border-radius:5px;background:#fff;color:#4b6174;font-size:10px;font-weight:600;cursor:pointer}
.wms-auto-clear-btn:hover:not(:disabled){background:#f5f9fc;border-color:#a8c3d6;color:#1A4A60}
.wms-auto-clear-btn:disabled{opacity:.45;cursor:default}

/* WMS63 - universal per-user table personalization */
.wms-auto-table-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:6px;min-height:30px;margin:0 0 6px}
.wms-columns-btn,.wms-column-reset{min-height:28px;padding:5px 9px;border:1px solid #d2dde5;border-radius:5px;background:#fff;color:#355064;font:600 9.5px/1.2 inherit;cursor:pointer}
.wms-columns-btn:hover,.wms-column-reset:hover{background:#f5f9fc;border-color:#adc7d9}
.wms-draggable-column{cursor:grab!important;user-select:none}.wms-draggable-column:active{cursor:grabbing!important}
.wms-column-dragging{opacity:.45}.wms-column-drag-over{box-shadow:inset 3px 0 0 #1F5A73!important;background:#eef7fd!important}
.wms-column-chooser{position:fixed;z-index:5000;width:min(300px,calc(100vw - 16px));max-height:min(520px,70vh);overflow:hidden;background:#fff;border:1px solid #cfdbe4;border-radius:8px;box-shadow:0 14px 35px rgba(22,56,74,.2);color:#31495c}
.wms-column-chooser-title{padding:10px 12px;border-bottom:1px solid #e3e9ee;background:#f7fafc;font-size:11px;font-weight:800}
.wms-column-chooser-list{max-height:360px;overflow:auto;padding:6px}
.wms-column-choice{display:flex;align-items:center;gap:8px;min-height:31px;padding:5px 7px;border-radius:5px;cursor:pointer;font-size:9.5px}
.wms-column-choice:hover{background:#f3f8fb}.wms-column-choice input{width:15px!important;height:15px!important;min-width:15px!important;accent-color:#1F5A73}
.wms-column-choice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wms-column-chooser-foot{display:flex;justify-content:flex-end;padding:7px;border-top:1px solid #e3e9ee;background:#fafcfd}

/* WMS93 - keep universal table controls clear of overlays and inside viewport */
.wms-auto-table-toolbar{position:relative;z-index:3;flex-wrap:wrap;min-height:32px;padding:1px 0;margin-bottom:6px;isolation:isolate}
.wms-auto-clear-btn,.wms-columns-btn{position:relative;z-index:1;flex:0 0 auto}
.wms-column-chooser{z-index:10000;box-sizing:border-box}
.wms-column-chooser-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e3e9ee;background:#f7fafc}
.wms-column-chooser-title{flex:1;min-width:0;border-bottom:0;padding:10px 12px}
.wms-column-chooser-close{width:27px;height:27px;min-width:27px;margin-right:6px;padding:0;border:1px solid #cbd7e0;border-radius:5px;background:#fff;color:#4c6274;font:700 11px/1 Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.wms-column-chooser-close:hover{background:#f1f6f9;border-color:#9eb7c8;color:#1A4A60}
@media(max-width:700px){.wms-auto-table-toolbar{justify-content:flex-start}.wms-column-chooser{width:min(280px,calc(100vw - 16px))}}


/* NOVARE universal table header controls V2 - Infor-style compact controls inside THEAD */
.wms-universal-table thead .wms-table-tools-row th.wms-table-tools-cell{
    padding:0!important;
    height:29px!important;
    background:#eef2f5!important;
    border-top:1px solid #d8e0e6!important;
    border-bottom:1px solid #cfd8df!important;
    text-align:left!important;
    position:relative!important;
}
.wms-table-head-controls{height:28px;min-height:28px;display:flex;align-items:stretch;justify-content:space-between;width:100%;}
.wms-table-head-controls-left,.wms-table-head-controls-right{display:flex;align-items:stretch;}
.wms-table-head-btn{
    width:31px;height:28px;min-width:31px;padding:0;margin:0;
    border:0;border-right:1px solid #c9d2d9;border-radius:0;
    background:#eef2f5;color:#425565;cursor:pointer;position:relative;
    display:inline-flex;align-items:center;justify-content:center;
    font:700 13px/1 Arial,sans-serif;
}
.wms-table-head-controls-right .wms-table-head-btn{border-right:0;border-left:1px solid #c9d2d9;}
.wms-table-head-btn:hover:not(:disabled){background:#dde6ec;color:#1A4A60;}
.wms-table-head-btn:disabled{opacity:.38;cursor:default;}
.wms-table-head-refresh::before{content:"\21BB";font:700 18px/1 Arial,sans-serif;transform:translateY(-1px);}
.wms-table-head-refresh.is-loading::before{animation:wms-table-refresh-spin .7s linear infinite;}
@keyframes wms-table-refresh-spin{to{transform:translateY(-1px) rotate(360deg);}}
.wms-table-head-clear::before{
    content:"";width:14px;height:8px;border:1.6px solid currentColor;border-radius:1px;
    transform:rotate(-42deg);box-sizing:border-box;
}
.wms-table-head-clear::after{
    content:"";position:absolute;width:6px;height:1.6px;background:currentColor;
    left:15px;top:18px;transform:rotate(-42deg);transform-origin:left center;
}
.wms-table-head-columns{font-size:18px;font-weight:800;letter-spacing:1px;padding-bottom:8px;}
/* Old text controls are replaced by the compact controls in THEAD. */
button[data-wms-table-control-legacy="1"]{display:none!important;}
/* Column chooser now opens from the ellipsis anchor. */
.wms-table-head-columns{z-index:2;}
@media(max-width:700px){.wms-table-head-btn{width:34px;min-width:34px;}}
/* Redosled kolona u izboru kolona ("..."): strelice gore/dole desno u redu. */
.wms-column-choice span:not(.wms-column-move){flex:1 1 auto;min-width:0}
.wms-column-move{display:inline-flex;gap:2px;margin-left:auto;flex:0 0 auto}
.wms-column-move button{width:20px;height:20px;padding:0;border:1px solid #cfdae3;border-radius:4px;background:#fff;color:#476176;font-size:8px;line-height:1;cursor:pointer}
.wms-column-move button:hover{border-color:#1F5A73;color:#1F5A73;background:#eef6fc}
.wms-column-choice:first-child .wms-column-move button:first-child,.wms-column-choice:last-child .wms-column-move button:last-child{opacity:.35;pointer-events:none}
/* Straničenje (20 redova): |< < 1–50 / 142 > >| desno od "Poništi filtere". */
tr[data-wms-page-hidden="1"]{display:none!important;}
.wms-table-pager{display:flex;align-items:stretch;}
.wms-table-page-btn{font:700 12px/1 Arial,sans-serif;letter-spacing:-1px;}
.wms-table-page-info{display:inline-flex;align-items:center;padding:0 10px;min-width:92px;justify-content:center;border-right:1px solid #c9d2d9;font:600 11px/1 Arial,sans-serif;color:#425565;white-space:nowrap;}
/* Filter-lista (Status, Tip, Izvor…): dugme sa izborom vrednosti čekboksovima. */
.wms-universal-table .wms-list-filter-cell .wms-auto-filter{display:none!important}
.wms-list-filter-btn{width:100%;min-width:54px;height:30px;padding:4px 22px 4px 8px;border:1px solid #ccd8e1;border-radius:5px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23627586'/%3E%3C/svg%3E") no-repeat right 8px center;font:inherit;color:#7a8a98;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.wms-list-filter-btn.active{color:#1A4A60;font-weight:700;border-color:#5F8799;background-color:#eef6fc}
.wms-list-filter-pop{position:fixed;z-index:3000;min-width:190px;max-width:320px;background:#fff;border:1px solid #9FBCCB;border-radius:6px;box-shadow:0 10px 28px rgba(22,56,74,.22);padding:6px;font-size:11.5px}
.wms-list-filter-search{width:100%;height:28px;padding:3px 7px;border:1px solid #ccd8e1;border-radius:4px;margin-bottom:5px;font:inherit}
.wms-list-filter-items{max-height:260px;overflow:auto}
.wms-list-filter-items label{display:flex;align-items:center;gap:6px;padding:4px 5px;margin:0;border-radius:4px;cursor:pointer;color:#253746;white-space:nowrap}
.wms-list-filter-items label:hover{background:#f1f6fb}
.wms-list-filter-items input{width:14px;height:14px;margin:0}
.wms-list-filter-all{border-bottom:1px solid #e6ecf1;font-weight:700}
.wms-list-filter-empty{padding:6px;color:#8a98a5}
table.wms-universal-table:focus{outline:none}

/* Tabele sa straničenjem: broj redova se prilagođava ekranu (wms-universal-tables.js), pa omotač tabele nema
   sopstveni vertikalni skrol – ostaje samo horizontalni kada ima mnogo kolona. */
.table-responsive:has(> table.wms-universal-table:not(.wms-no-paging)),
.table-wrap:has(> table.wms-universal-table:not(.wms-no-paging)),
.inventory-transaction-table-scroll:has(> table.wms-universal-table:not(.wms-no-paging)){max-height:none!important;overflow-y:hidden!important}
/* Kompaktniji redovi: više zapisa staje na ekran. */
.wms-universal-table tbody td{padding-top:5px!important;padding-bottom:5px!important}
.wms-universal-table tbody td .form-control,
.wms-universal-table tbody td .form-select{height:26px!important;min-height:26px!important;padding:2px 7px!important;font-size:11px!important}
.wms-universal-table tbody td .btn-sm{padding-top:2px!important;padding-bottom:2px!important}
.wms-universal-table tbody td input[type=checkbox]{margin:0;vertical-align:middle}
