/* Revision26. Screen-only refinements: preserve desktop and all printed forms. */
@media screen and (max-width:768px){
 html body #tab-finance .finance-soft-table,html body #tab-finance #fin-view-report :is(.finance-soft-table,.emp-table){width:100%!important;min-width:0!important;max-width:100%!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) tr:not(.finance-total-row)>td:not(:first-child){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) tr:not(.finance-total-row)>td[data-label]:not(:first-child):not(.fin-date-cell):not([data-label="ملاحظات"]):not([data-label="إجراءات"]){display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;gap:10px!important;direction:rtl!important;align-items:center!important;text-align:right!important;white-space:normal!important;padding-inline:12px!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) tr:not(.finance-total-row)>td[data-label]::before{position:static!important;width:auto!important;min-width:0!important;float:none!important;margin:0!important;text-align:right!important;white-space:nowrap!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) tr:not(.finance-total-row)>.fin-date-cell{display:block!important;direction:ltr!important;unicode-bidi:isolate!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;text-align:right!important;padding:15px 64px 15px 12px!important;min-height:52px!important;font-size:15px!important;line-height:22px!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) .fin-date-cell::before{display:none!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) td[data-label="المبلغ"]{white-space:nowrap!important;font-size:15px!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) td[data-label="ملاحظات"]{white-space:normal!important;overflow-wrap:break-word!important;text-align:right!important}
 html body #tab-finance :is(#report-table-body,#expenses-table-body,#revenues-table-body) .finance-total-row>td[data-label="البيان"]{width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow:visible!important;word-break:normal!important;text-align:right!important;font-size:15px!important;padding:12px!important;box-sizing:border-box!important}
 html body .analytics-period-box{padding:8px!important;margin-bottom:10px!important;min-height:0!important;height:auto!important}
 html body .analytics-period-box .analytics-controls-period{gap:6px!important;padding:0!important;min-height:0!important;align-items:center!important}
 html body .analytics-period-box .analytics-period-btn,html body .analytics-period-box .analytics-restore-default-btn{flex:0 0 auto!important;min-width:105px!important;min-height:38px!important;padding:7px 10px!important;line-height:1.5!important;font-size:12px!important;white-space:nowrap!important}
 html body #month-summary-card #summary-section{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}
 html body #month-summary-card #summary-section .stat-card{position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-width:0!important;min-height:84px!important;height:auto!important;padding:10px 8px!important;overflow:visible!important}
 html body #month-summary-card #summary-section .stat-icon{position:static!important;transform:none!important;width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;margin:0!important;font-size:19px!important;border-radius:10px!important}
 html body #month-summary-card #summary-section .stat-info{min-width:0!important;flex:1!important;padding:0!important;overflow:visible!important}
 html body #month-summary-card #summary-section .stat-info h3{width:auto!important;height:auto!important;min-height:0!important;padding:0!important;margin:0 0 4px!important;font-size:17px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body #month-summary-card #summary-section .stat-info>span{display:block!important;font-size:11px!important;line-height:1.5!important;white-space:normal!important;padding:0!important;margin:0!important;overflow:visible!important}
 html body td.clinic-nursing-type>*,html body td.clinic-nursing-type .badge{display:none!important}
 html body td.clinic-nursing-type::after{content:'تمريض';white-space:nowrap;word-break:keep-all;display:block;font-size:14px;line-height:1.6;color:inherit}
 html body #ai-agent-fab{left:12px!important;width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;gap:0!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;overflow:visible!important;touch-action:pan-y;transition:opacity .2s,transform .2s}
 html body #ai-agent-fab::before{inset:0!important;width:100%!important;height:100%!important;border-radius:inherit!important}
 html body #ai-agent-fab i{position:static!important;font-size:20px!important;line-height:1!important;margin:0!important;animation:none!important;transform:none!important}
 html body #ai-agent-fab .ai-text{position:absolute!important;left:-5px!important;right:auto!important;top:1px!important;bottom:auto!important;display:block!important;padding:2px!important;margin:0!important;font-size:6px!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap!important;border-radius:4px;background:#075985;color:#fff}
 html body #ai-agent-fab.clinic-dismissed-until-refresh{display:none!important}
}
