/* V19 — targeted viewport, balanced report tables, clean dashboard print. */
:root {--v19-font:'Sakkal Majalla','Traditional Arabic',Arial,sans-serif}
html,body{margin:0!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
body,body button,body input,body select,body textarea,body table {font-family:var(--v19-font)!important}
body.on-portal{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
body.on-portal .site-header,body.on-portal .trial-ribbon,body.on-portal .site-footer{display:none!important}
body.on-portal .main-shell{position:relative!important;display:block!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;width:100vw!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.on-portal #view-choose.portal-home {position:relative!important;display:block!important;width:100%!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;max-width:100%!important;min-width:0!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#07526a!important;background-image:none!important;isolation:isolate!important}
body.on-portal #view-choose .portal-scenery{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background-image:url('./assets/aswan_landing_user_original.png')!important;background-position:center center!important;background-size:contain!important;background-repeat:no-repeat!important;filter:none!important;opacity:1!important;transform:none!important;pointer-events:none!important}
body.on-portal #view-choose .portal-content{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:center!important;transform:none!important;pointer-events:none!important;z-index:3!important}
body.on-portal #view-choose .portal-access{position:relative!important;inset:auto!important;width:min(95vw,1200px)!important;max-width:1200px!important;height:auto!important;min-height:0!important;max-height:min(38dvh,330px)!important;margin:0 auto clamp(8px,2vh,24px)!important;padding:clamp(9px,1.1vw,16px)!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;pointer-events:auto!important;border:1px solid #d7b96b!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(1,54,64,.93),rgba(2,55,55,.95))!important;box-shadow:0 12px 28px #002b35aa!important}
body.on-portal #view-choose .portal-access-heading{display:none!important}
body.on-portal #view-choose .portal-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(4px,.55vw,10px)!important;padding:4px!important;margin:0 0 8px!important;width:100%!important;min-width:0!important;overflow:visible!important}
body.on-portal #view-choose .portal-tab{display:flex!important;justify-content:center!important;align-items:center!important;width:auto!important;min-width:0!important;min-height:clamp(33px,5.4vh,53px)!important;margin:0!important;padding:5px 4px!important;font-size:clamp(13px,1.35vw,20px)!important;line-height:1.1!important;white-space:normal!important;text-align:center!important}
body.on-portal #view-choose .portal-selection-info{width:100%!important;min-width:0!important;min-height:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;padding:6px 10px!important;margin:0!important}
body.on-portal #view-choose .selection-identity{flex:1!important;min-width:0!important;gap:10px!important}
body.on-portal #view-choose .selection-crest{width:clamp(32px,4vw,58px)!important;height:clamp(32px,4vw,58px)!important;object-fit:contain!important}
body.on-portal #view-choose .portal-selection-info h2{font-size:clamp(16px,1.7vw,24px)!important;margin:0!important;line-height:1.15!important}
body.on-portal #view-choose .portal-selection-info p{font-size:clamp(12px,1.2vw,18px)!important;line-height:1.2!important;margin:0!important}
body.on-portal #view-choose #go-to-login{flex-shrink:0!important;width:auto!important;min-width:0!important;min-height:42px!important;max-width:45%!important;padding:7px 13px!important;font-size:clamp(13px,1.25vw,18px)!important;white-space:normal!important}
body.on-portal #view-choose .portal-connection{display:none!important}
@media(max-width:720px){
 body.on-portal #view-choose .portal-scenery{background-size:contain!important;background-position:center 5%!important}
 body.on-portal #view-choose .portal-access{width:calc(100% - 18px)!important;max-height:43dvh!important;margin-bottom:8px!important;padding:8px!important;border-radius:11px!important}
 body.on-portal #view-choose .portal-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 body.on-portal #view-choose .portal-tab{min-height:35px!important;font-size:clamp(12px,3vw,17px)!important;padding:4px!important}
 body.on-portal #view-choose .portal-selection-info{align-items:stretch!important;flex-direction:column!important;gap:5px!important;padding:5px!important}
 body.on-portal #view-choose .selection-crest{width:34px!important;height:34px!important}
 body.on-portal #view-choose .portal-selection-info h2{font-size:18px!important}
 body.on-portal #view-choose .portal-selection-info p{font-size:13px!important}
 body.on-portal #view-choose #go-to-login{width:100%!important;max-width:none!important;min-height:37px!important;font-size:15px!important}
}
@media(max-height:580px){body.on-portal #view-choose .portal-access{max-height:53dvh!important}body.on-portal #view-choose .portal-tab{min-height:27px!important}}
/* All four report periods share identical table system; column size is based on meaning, not arbitrary nth-child legacy widths. */
#report-result .v13-report-section .table-scroll,#report-result .v14-centers-register .table-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important}
#report-result .v13-report-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
#report-result .v13-report-section .v13-report-table th,#report-result .v13-report-section .v13-report-table td {width:auto!important;min-width:0!important;max-width:none!important;font-size:clamp(15px,1.24vw,19px)!important;padding:9px 7px!important;line-height:1.25!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important;vertical-align:middle!important;text-align:center!important}
#report-result .v13-report-section .v13-report-table th:nth-child(1),#report-result .v13-report-section .v13-report-table td:nth-child(1){width:6%!important}
#report-result .v13-report-section .v13-report-table th:nth-child(2),#report-result .v13-report-section .v13-report-table td:nth-child(2){width:35%!important;text-align:right!important}
#report-result .v13-report-section .v13-report-table th:nth-child(3),#report-result .v13-report-section .v13-report-table td:nth-child(3){width:13%!important}
#report-result .v13-report-section .v13-report-table th:nth-child(4),#report-result .v13-report-section .v13-report-table td:nth-child(4){width:13%!important}
#report-result .v13-report-section .v13-report-table th:nth-child(5),#report-result .v13-report-section .v13-report-table td:nth-child(5){width:12%!important}
#report-result .v13-report-section .v13-report-table th:nth-child(6),#report-result .v13-report-section .v13-report-table td:nth-child(6){width:12%!important}
#report-result .v13-report-section .v13-report-table th:nth-child(7),#report-result .v13-report-section .v13-report-table td:nth-child(7){width:9%!important}
#report-result .v14-centers-register .v13-report-table th,#report-result .v14-centers-register .v13-report-table td{width:20%!important;min-width:0!important;text-align:center!important;padding:8px 6px!important;white-space:normal!important;overflow-wrap:break-word!important}
#report-result .v14-centers-register .v13-report-table th:first-child,#report-result .v14-centers-register .v13-report-table td:first-child{width:24%!important;text-align:right!important}
#report-result #v09-report-visuals{display:none!important}
@media(max-width:780px){#report-result .v13-report-table{min-width:700px!important;table-layout:fixed!important}}
/* isolated dashboard print has only one printable root (no hidden sibling pages). */
@media print{
 @page{size:A4 landscape;margin:9mm}
 body.v19-dashboard-print{margin:0!important;padding:0!important;width:auto!important;min-width:0!important;overflow:visible!important;background:white!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.v19-dashboard-print #v19-print-root{display:block!important;width:100%!important;margin:0!important;padding:0!important;min-height:0!important;overflow:visible!important}
 body.v19-dashboard-print .v09-banner-tools,body.v19-dashboard-print .v09-report-links,body.v19-dashboard-print button,body.v19-dashboard-print .v09-bottom-summary{display:none!important}
 body.v19-dashboard-print .v11-dashboard-group,body.v19-dashboard-print .v09-chart-panel,body.v19-dashboard-print .v09-chart-body,body.v19-dashboard-print .dashboard-box{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.v19-dashboard-print .v11-dashboard-group{padding:3mm!important;margin:3mm 0!important;break-inside:auto!important}
 body.v19-dashboard-print .v09-chart-panel,body.v19-dashboard-print .stat-tile{padding:2mm!important;break-inside:avoid!important;box-shadow:none!important}
 body.v19-dashboard-print .v09-charts-grid,body.v19-dashboard-print .v11-group-charts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3mm!important}
 body.v19-dashboard-print .v09-month-chart{height:125px!important}
 body.v19-dashboard-print .v09-month-bars{height:100px!important}
 body.v19-dashboard-print .v09-donut{width:115px!important;height:115px!important}
 body.v19-dashboard-print .v09-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2mm!important}
 body.v19-dashboard-print .stat-tile strong{font-size:18px!important}
 body.v19-dashboard-print .v09-bar-row,body.v19-dashboard-print .v09-legend-row{break-inside:avoid!important}
 body.v19-dashboard-print .v09-table{min-width:0!important;font-size:9px!important}
 body.v19-dashboard-print .v09-table th,body.v19-dashboard-print .v09-table td{font-size:9px!important;padding:3px!important}
 body.v19-dashboard-print .v09-track,body.v19-dashboard-print .v09-fill,body.v19-dashboard-print .v09-donut,body.v19-dashboard-print .v09-month-bar{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.v10-print-report #report-result .v13-report-table th,body.v10-print-report #report-result .v13-report-table td{font-size:12pt!important;padding:5px 7px!important;line-height:1.25!important}
 body.v10-print-report #report-result .v13-report-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
 body.v10-print-report #report-result .v13-report-section{break-inside:auto!important}
 body.v10-print-report #report-result .v13-report-section tr{break-inside:avoid!important}
}
