/* InsidDent 3D — global UI rules 0.18.7
   Existing design is frozen. Only cross-page consistency fixes belong here. */

/* One global list footer: limit left, pagination right, always under the table/list. */
.insiddent-v2 .global-list-footer,
.insiddent-v2 .catalog-footer,
.insiddent-v2 .directory-limit-bar{display:flex!important;align-items:center!important;width:100%!important;gap:8px!important;margin:10px 2px 0!important;padding:0!important;color:#647d8e!important;font:400 14px/1.2 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.insiddent-v2 .global-list-footer label,.insiddent-v2 .catalog-footer label,.insiddent-v2 .directory-limit-bar label{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important}
.insiddent-v2 .global-list-footer select,.insiddent-v2 .catalog-footer select,.insiddent-v2 .directory-limit-bar select{height:36px!important;min-width:86px!important;padding:5px 28px 5px 10px!important}
.insiddent-v2 .global-list-footer .audit-pager,.insiddent-v2 .global-list-footer .v3-pager,.insiddent-v2 .catalog-footer .audit-pager,.insiddent-v2 .catalog-footer .v3-pager,.insiddent-v2 .directory-limit-bar .audit-pager{margin:0 0 0 auto!important}

/* All right-side drawers use the same usable width. */
.insiddent-v2 .v2-share-drawer,.insiddent-v2 .v2-user-drawer{width:min(680px,94vw)!important;min-width:min(680px,94vw)!important;max-width:min(680px,94vw)!important;flex:0 0 min(680px,94vw)!important}
.insiddent-v2 .v2-user-drawer-actions,.insiddent-v2 .v2-share-drawer .v2-drawer-actions{width:min(680px,94vw)!important;max-width:min(680px,94vw)!important}

.insiddent-v2 .global-cells-wrap{margin-top:8px}.insiddent-v2 .global-cells-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.insiddent-v2 .global-cells-title h3{margin:0;font-size:20px;color:#163b56}

/* Audit filters: fixed widths so the toolbar does not stretch differently by viewport/content. */
.insiddent-v2 #auditPanel .management-toolbar{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.insiddent-v2 #auditActor{width:190px!important;min-width:190px!important;max-width:190px!important;flex:0 0 190px!important}
.insiddent-v2 #auditAction{width:250px!important;min-width:250px!important;max-width:250px!important;flex:0 0 250px!important}
.insiddent-v2 #auditResource{width:170px!important;min-width:170px!important;max-width:170px!important;flex:0 0 170px!important}
.insiddent-v2 #auditResult{width:120px!important;min-width:120px!important;max-width:120px!important;flex:0 0 120px!important}
.insiddent-v2 #auditFrom,.insiddent-v2 #auditTo{width:138px!important;min-width:138px!important;max-width:138px!important;flex:0 0 138px!important}

/* Study tables: fixed metadata columns sized for their heading/value; patient name owns the remainder. */
.insiddent-v2 .v2-study-table{width:100%!important;table-layout:fixed!important}
.insiddent-v2 #operatorDeletes .v2-study-table th,.insiddent-v2 #operatorDeletes .v2-study-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(1),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(1){width:92px!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(2),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(2){width:auto!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(3),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(3){width:156px!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(4),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(4){width:210px!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(5),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(5){width:126px!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(6),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(6){width:124px!important}
.insiddent-v2 #operatorDeletes .v2-study-table th:nth-child(7),.insiddent-v2 #operatorDeletes .v2-study-table td:nth-child(7){width:168px!important;text-align:right!important;overflow:visible!important}
.insiddent-v2 #operatorDeletes .v2-actions{display:table-cell!important;text-align:right!important;white-space:nowrap!important}
.insiddent-v2 #operatorDeletes .v2-status{font-size:12px!important;padding-left:10px!important;padding-right:10px!important}

/* Main catalog: DOB, combined study date/time, modality and actions are fixed; PІБ owns the remainder. */
.insiddent-v2 #files .v2-catalog-table th,.insiddent-v2 #files .v2-catalog-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.insiddent-v2 #files .v2-catalog-table th:nth-child(1),.insiddent-v2 #files .v2-catalog-table td:nth-child(1){width:auto!important}
.insiddent-v2 #files .v2-catalog-table th:nth-child(2),.insiddent-v2 #files .v2-catalog-table td:nth-child(2){width:156px!important}
.insiddent-v2 #files .v2-catalog-table th:nth-child(3),.insiddent-v2 #files .v2-catalog-table td:nth-child(3){width:210px!important}
.insiddent-v2 #files .v2-catalog-table th:nth-child(4),.insiddent-v2 #files .v2-catalog-table td:nth-child(4){width:126px!important}
.insiddent-v2 #files .v2-catalog-table th:nth-child(5),.insiddent-v2 #files .v2-catalog-table td:nth-child(5){width:104px!important;text-align:right!important;overflow:visible!important}
.insiddent-v2 #files .v2-actions{display:table-cell!important;text-align:right!important;white-space:nowrap!important}

/* Archive follows the same rule: PІБ gets the flexible column. */
.insiddent-v2 #archiveRows .archive-table{width:100%!important;table-layout:fixed!important}
.insiddent-v2 #archiveRows .archive-table th,.insiddent-v2 #archiveRows .archive-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(1),.insiddent-v2 #archiveRows .archive-table td:nth-child(1){width:auto!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(2),.insiddent-v2 #archiveRows .archive-table td:nth-child(2){width:156px!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(3),.insiddent-v2 #archiveRows .archive-table td:nth-child(3){width:210px!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(4),.insiddent-v2 #archiveRows .archive-table td:nth-child(4){width:110px!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(5),.insiddent-v2 #archiveRows .archive-table td:nth-child(5){width:126px!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(6),.insiddent-v2 #archiveRows .archive-table td:nth-child(6){width:180px!important}
.insiddent-v2 #archiveRows .archive-table th:nth-child(7),.insiddent-v2 #archiveRows .archive-table td:nth-child(7),.insiddent-v2 #archiveRows .archive-table th:nth-child(8),.insiddent-v2 #archiveRows .archive-table td:nth-child(8){width:72px!important;text-align:center!important}

/* Trash uses the same table/action language as management lists. */
.insiddent-v2 #trashItems .v2-study-table{table-layout:fixed!important;width:100%!important}
.insiddent-v2 #trashItems .v2-study-table th:nth-child(1),.insiddent-v2 #trashItems .v2-study-table td:nth-child(1){width:30ch!important;max-width:30ch!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.insiddent-v2 #trashItems .v2-study-table th:nth-child(2),.insiddent-v2 #trashItems .v2-study-table td:nth-child(2){width:auto!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.insiddent-v2 #trashItems .v2-study-table th:nth-child(3),.insiddent-v2 #trashItems .v2-study-table td:nth-child(3),.insiddent-v2 #trashItems .v2-study-table th:nth-child(4),.insiddent-v2 #trashItems .v2-study-table td:nth-child(4){width:170px!important;white-space:nowrap!important}
.insiddent-v2 #trashItems .v2-study-table th:nth-child(5),.insiddent-v2 #trashItems .v2-study-table td:nth-child(5){width:64px!important;text-align:right!important;white-space:nowrap!important}
.insiddent-v2 #trashItems .v2-actions{display:table-cell!important;text-align:right!important}
.insiddent-v2 #trashItems .trash-restore-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important}
.insiddent-v2 #trashItems .trash-restore-icon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
