/* V1.8.2 responsive & dense data UI */
.page,.panel,.two,.two>.panel,#vendorsTable,#buyersTable{min-width:0;max-width:100%}
.two{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
#vendorsTable,#buyersTable{width:100%;overflow:hidden}
.entity-table-scroll{max-width:100%;width:100%;overflow-x:auto;overflow-y:auto;max-height:65vh;overscroll-behavior:contain}
.entity-table-scroll table{min-width:740px;width:max-content;border-collapse:separate;border-spacing:0}
.entity-table-scroll td:first-child,.entity-table-scroll th:first-child{position:sticky;left:0;z-index:2;min-width:210px;max-width:265px;background:#fff;white-space:normal}
.entity-table-scroll th:first-child{z-index:5;background:#e8f2ec}
.entity-table-scroll thead th{position:sticky;top:0;z-index:4;background:#e8f2ec}
.entity-table-scroll td{text-align:right;font-variant-numeric:tabular-nums}
.entity-table-scroll td:first-child{text-align:left}
.entity-table-scroll .link-button{white-space:normal;text-align:left;overflow-wrap:anywhere}
#vendorsTable .paging,#buyersTable .paging{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:10px 0}
#page-pursal>.panel,#page-stock>.panel{width:100%;min-width:0}
#pursalTable,#stockTable{width:100%;max-height:none;overflow:visible}
#pursalTable>.table-scroll,#stockTable>.table-scroll{max-height:80vh}
#pursalTable>.hierarchy-table,#stockTable>.hierarchy-table{display:block;width:100%;max-height:76vh;overflow:auto;scrollbar-gutter:stable}
#pursalTable>.hierarchy-table thead th,#stockTable>.hierarchy-table thead th{position:sticky;top:0}
#pursalTable .hierarchy-table td,#stockTable .hierarchy-table td{padding:7px 10px;line-height:1.3}
#pursalTable .paging,#stockTable .paging{position:static}
.compact-drawer{min-width:0;margin:8px 0;padding:10px 14px;border:1px solid #dbe9df;border-radius:12px;background:#fff}
.compact-drawer>summary{cursor:pointer;color:#075c3d;font-weight:700;padding:5px 3px;list-style:revert}
.compact-drawer[open]>summary{margin-bottom:12px}
.compact-drawer .pursal-filter-grid{margin:6px 0;padding:6px;border:0;background:transparent}
#page-pursal .pursal-search{grid-template-columns:minmax(220px,1fr) minmax(250px,1fr);gap:10px;margin:9px 0}
#page-pursal .pursal-search textarea{min-height:52px}
#page-pursal .heading{flex-wrap:wrap}
#page-pursal .heading>div:last-child{display:flex;flex-wrap:wrap;gap:6px}
.global-busy{position:fixed;right:18px;bottom:19px;z-index:10000;display:flex;align-items:center;gap:10px;background:#063f2e;color:#fff;padding:13px 17px;border-radius:13px;box-shadow:0 8px 30px #103c2a44;font-weight:600}
.global-busy[hidden]{display:none!important}
.busy-spinner{width:18px;height:18px;border:3px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:busy-spin .7s linear infinite}
@keyframes busy-spin{to{transform:rotate(360deg)}}
.scope-permissions{padding:13px;background:#f8fcf9;border:1px solid #dae9de;border-radius:12px;margin:16px 0}
.scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}
@media(max-width:1100px){.two{grid-template-columns:minmax(0,1fr)}}
@media(max-width:740px){#page-pursal .pursal-search{grid-template-columns:1fr}.entity-table-scroll table{min-width:650px}.global-busy{left:12px;right:12px;bottom:12px;justify-content:center}}
