/* V19.9 — Requests layout fix only. Preserve V19.8 data, validations and Excel links. */
/* Keep both actions next to each other above the filters */
#content-requests .panel-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:14px}
#content-requests .v199-heading-actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;min-width:0}
#content-requests .v199-heading-actions button{position:static!important;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:normal;min-height:50px;line-height:1.25;font-family:'Sakkal Majalla','Traditional Arabic',Tahoma,Arial,sans-serif;font-size:19px;padding:8px 15px;flex:0 0 auto}
#content-requests .v199-heading-actions #v197-export-original-excel{width:245px!important;min-width:205px!important;max-width:245px!important;min-height:54px!important;padding:7px 15px!important;font-size:19px!important;line-height:1.25!important;white-space:normal!important}
#content-requests .v196-toolbar{clear:both;margin-top:12px!important}
/* Give the request database the whole available desktop width. No change to other panels. */
@media (min-width:1150px){
 body.on-dashboard .main-shell:has(#content-requests:not(.hidden)){max-width:1850px!important;width:100%!important;padding-inline:clamp(12px,1.6vw,26px)!important}
 body.on-dashboard .workspace-layout:has(#content-requests:not(.hidden)){grid-template-columns:205px minmax(0,1fr)!important;gap:14px!important}
}
/* Desktop: distribute nine columns inside the actual table width, without clipping leftmost cells. */
#content-requests .v196-table-scroll{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
#content-requests .v196-table-scroll table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse}
#content-requests .v196-table-scroll th,#content-requests .v196-table-scroll td{box-sizing:border-box;padding:8px 6px!important;font-size:clamp(14px,1.02vw,18px)!important;line-height:1.4;vertical-align:middle!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none}
#content-requests .v196-table-scroll th{white-space:normal!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(1),#content-requests .v196-table-scroll td:nth-child(1){width:6%!important;min-width:0!important;white-space:nowrap!important;text-align:center!important;overflow-wrap:normal!important}
#content-requests .v196-table-scroll th:nth-child(2),#content-requests .v196-table-scroll td:nth-child(2){width:9%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(3),#content-requests .v196-table-scroll td:nth-child(3){width:15%!important;min-width:0!important}
#content-requests .v196-table-scroll th:nth-child(4),#content-requests .v196-table-scroll td:nth-child(4){width:20%!important;min-width:0!important}
#content-requests .v196-table-scroll th:nth-child(5),#content-requests .v196-table-scroll td:nth-child(5){width:16%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(6),#content-requests .v196-table-scroll td:nth-child(6){width:9%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(7),#content-requests .v196-table-scroll td:nth-child(7){width:9%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(8),#content-requests .v196-table-scroll td:nth-child(8){width:11%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll th:nth-child(9),#content-requests .v196-table-scroll td:nth-child(9){width:5%!important;min-width:0!important;text-align:center!important}
#content-requests .v196-table-scroll td:nth-child(9) button{max-width:100%;min-width:0;padding:5px 6px!important;white-space:nowrap}
/* Narrow screens keep legible columns and explicit horizontal scrolling rather than cutting them off. */
@media(max-width:1149px){#content-requests .v196-table-scroll table{min-width:1060px!important;max-width:none!important}}
@media(max-width:760px){#content-requests .v199-heading-actions{width:100%;justify-content:flex-start}#content-requests .v199-heading-actions #v197-export-original-excel{width:auto!important;max-width:min(100%,260px)!important;min-width:0!important;flex:1 1 200px!important}#content-requests .v199-heading-actions #new-request-btn{flex:1 1 140px!important}#content-requests .v196-table-scroll table{min-width:1050px!important}}
@media print{#content-requests .v199-heading-actions{display:none!important}#content-requests .v196-table-scroll{overflow:visible!important}#content-requests .v196-table-scroll table{min-width:0!important}}
