/* Shree Uma mobile result layout + dismissible mobile sidebar */
@media (max-width: 767.98px) {
  body.su-result-page #content-wrapper,
  body.su-result-page #content,
  body.su-result-page .container-fluid,
  body.su-result-page .container { min-width:0!important; max-width:100%!important; }
  body.su-result-page .container-fluid { padding-left:10px!important; padding-right:10px!important; }
  body.su-result-page .row { margin-left:-5px!important; margin-right:-5px!important; }
  body.su-result-page [class*="col-"] { padding-left:5px!important; padding-right:5px!important; min-width:0!important; }
  body.su-result-page h1 { font-size:1.35rem!important; line-height:1.25!important; }
  body.su-result-page h2 { font-size:1.18rem!important; }
  body.su-result-page h3 { font-size:1.05rem!important; }
  body.su-result-page .card, body.su-result-page .panel { margin-bottom:12px!important; }
  body.su-result-page .card-body { padding:12px!important; }
  body.su-result-page table { display:block!important; width:100%!important; max-width:100%!important; overflow-x:auto!important; -webkit-overflow-scrolling:touch; white-space:normal; }
  body.su-result-page table thead, body.su-result-page table tbody { min-width:480px; }
  body.su-result-page td, body.su-result-page th { font-size:12px!important; padding:6px!important; }
  body.su-result-page img { max-width:100%!important; height:auto!important; }
  body.su-result-page #chart_div, body.su-result-page #chart_div2,
  body.su-result-page canvas, body.su-result-page svg { max-width:100%!important; }
  body.su-result-page #chart_div, body.su-result-page #chart_div2 { width:100%!important; height:300px!important; overflow:hidden!important; }
  body.su-result-page .btn { white-space:normal!important; margin:2px!important; }
  body.su-result-page .noprint { gap:8px; }
  body.su-result-page .circle_result, body.su-result-page .circle_ur, body.su-result-page .circle_l { float:none!important; display:inline-flex!important; align-items:center; justify-content:center; margin:3px!important; }
  body.su-result-page .td_line { background-size:auto 100%; }
  body.su-result-page .table-responsive { border:0!important; }
}

@media (max-width: 767.98px) {
  #suSidebarBackdrop { display:none; position:fixed; inset:0; z-index:1029; background:rgba(15,23,42,.48); }
  body.sidebar-toggled #suSidebarBackdrop { display:block; }
  body.sidebar-toggled #accordionSidebar { z-index:1031!important; }
  body.sidebar-toggled #content-wrapper { position:relative; z-index:1; }
}


/* v1.7 — convert the mobile horizontal icon strip into a proper left slide drawer */
@media (max-width: 767.98px) {
  #wrapper {display:block!important;position:relative!important;overflow-x:hidden!important;}
  #accordionSidebar {
    position:fixed!important;
    top:0!important;left:0!important;right:auto!important;bottom:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    width:min(290px,86vw)!important;max-width:290px!important;min-width:0!important;
    height:100vh!important;height:100dvh!important;min-height:100vh!important;
    margin:0!important;padding:8px 0 22px!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    background:linear-gradient(180deg,#102d5e 0%,#173b78 56%,#1d4b8c 100%)!important;
    box-shadow:12px 0 36px rgba(13,35,75,.24)!important;
    transform:translate3d(-110%,0,0)!important;
    visibility:hidden!important;
    transition:transform .24s cubic-bezier(.2,.75,.25,1),visibility .24s ease!important;
    z-index:1032!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.sidebar-toggled #accordionSidebar,
  body.sidebar-toggled #accordionSidebar.toggled {
    width:min(290px,86vw)!important;max-width:290px!important;
    transform:translate3d(0,0,0)!important;visibility:visible!important;
  }
  #accordionSidebar .sidebar-brand {
    display:flex!important;flex:0 0 auto!important;justify-content:flex-start!important;
    min-width:0!important;width:100%!important;min-height:78px!important;height:auto!important;
    padding:10px 14px!important;white-space:normal!important;
  }
  #accordionSidebar .su-brand-logo {width:48px!important;height:48px!important;}
  #accordionSidebar .su-brand-copy {display:flex!important;}
  #accordionSidebar .su-brand-caption {display:block!important;padding:0 8px 10px!important;}
  #accordionSidebar .sidebar-divider {display:block!important;margin:0 14px 10px!important;}
  #accordionSidebar .nav-item {
    display:block!important;flex:0 0 auto!important;
    width:auto!important;min-width:0!important;margin:2px 10px!important;
  }
  #accordionSidebar .nav-item .nav-link {
    display:flex!important;align-items:center!important;width:100%!important;
    min-height:42px!important;padding:10px 13px!important;text-align:left!important;
  }
  #accordionSidebar .nav-item .nav-link span {display:inline!important;font-size:13px!important;}
  #accordionSidebar .nav-item .nav-link i {display:inline-block!important;width:20px!important;margin:0 10px 0 0!important;font-size:14px!important;}
  #accordionSidebar .collapse {
    position:static!important;width:100%!important;margin:3px 0 6px!important;
    background:transparent!important;box-shadow:none!important;border-radius:0!important;
  }
  #accordionSidebar .collapse-inner {margin:2px 8px!important;background:rgba(255,255,255,.96)!important;}
  #content-wrapper {width:100%!important;max-width:100%!important;margin:0!important;}
  #content {width:100%!important;min-width:0!important;}
  #suSidebarBackdrop {
    display:none!important;position:fixed!important;inset:0!important;
    width:100vw!important;height:100vh!important;height:100dvh!important;
    margin:0!important;padding:0!important;
    background:rgba(15,23,42,.54)!important;
    z-index:1031!important;touch-action:manipulation!important;
  }
  body.sidebar-toggled #suSidebarBackdrop {display:block!important;}
  body.sidebar-toggled {overflow:hidden!important;}
  #sidebarToggleTop {display:inline-flex!important;align-items:center!important;justify-content:center!important;}
}


/* v1.8 — full-width result report on desktop and mobile. */
body.su-result-page #accordionSidebar { display:none!important; }
body.su-result-page #wrapper { display:flex!important; width:100%!important; max-width:100%!important; margin:0!important; }
body.su-result-page #content-wrapper { flex:1 1 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; margin:0!important; }
body.su-result-page #content { flex:1 1 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; }
body.su-result-page .container.su-result-page,
body.su-result-page .su-result-page.container {
  display:block!important; width:100%!important; max-width:none!important;
  margin-left:0!important; margin-right:0!important;
  padding-left:clamp(12px,2vw,28px)!important;
  padding-right:clamp(12px,2vw,28px)!important;
  box-sizing:border-box!important;
}
body.su-result-page .row { width:100%!important; max-width:100%!important; }
body.su-result-page .card, body.su-result-page .panel { max-width:100%!important; }

/* Mobile: keep the result report full-width but allow the hamburger to open
   the existing sidebar as a left off-canvas drawer. */
@media (max-width:767.98px) {
  body.su-result-page #wrapper { display:block!important; }
  body.su-result-page #accordionSidebar {
    display:flex!important; position:fixed!important; top:0!important; left:0!important;
    right:auto!important; bottom:0!important; width:min(290px,86vw)!important;
    max-width:290px!important; height:100vh!important; height:100dvh!important;
    margin:0!important; z-index:1032!important; overflow-y:auto!important;
    transform:translate3d(-110%,0,0)!important; visibility:hidden!important;
    transition:transform .24s ease, visibility .24s ease!important;
  }
  body.su-result-page.sidebar-toggled #accordionSidebar,
  body.su-result-page.sidebar-toggled #accordionSidebar.toggled {
    transform:translate3d(0,0,0)!important; visibility:visible!important;
  }
  body.su-result-page #suSidebarBackdrop { z-index:1031!important; }
  body.su-result-page #content-wrapper,
  body.su-result-page #content { width:100%!important; max-width:100%!important; margin:0!important; }
  body.su-result-page .container.su-result-page,
  body.su-result-page .su-result-page.container { padding-left:10px!important; padding-right:10px!important; }
}


/* v1.11: preserve the working v1.7 left drawer and add v1.10 result-row cards */

/* Result List: show each result as a full-width readable card on phones. */
.su-result-list-page { width:100%; max-width:100%; min-width:0; }
.su-result-list-table-wrap { width:100%; max-width:100%; }
.su-result-filter-mobile { display:none; }
@media (max-width:767.98px) {
  body .su-result-list-page { padding-left:12px!important; padding-right:12px!important; }
  body .su-result-list-page .row { margin-left:0!important; margin-right:0!important; }
  body .su-result-list-page [class*="col-"] { width:100%!important; padding-left:0!important; padding-right:0!important; }
  body .su-result-list-page .su-result-list-table-wrap { overflow:visible!important; border:0!important; }
  body .su-result-list-page table.su-result-list-table,
  body .su-result-list-page table.su-result-list-table tbody { display:block!important; width:100%!important; min-width:0!important; max-width:100%!important; overflow:visible!important; }
  body .su-result-list-page table.su-result-list-table thead { display:none!important; }
  body .su-result-list-page table.su-result-list-table tr:not(.su-result-empty) { display:block!important; width:100%!important; margin:0 0 14px!important; padding:8px 12px!important; background:#fff!important; border:1px solid #dfe3eb!important; border-radius:12px!important; box-shadow:0 4px 14px rgba(20,35,60,.06)!important; }
  body .su-result-list-page table.su-result-list-table td { display:flex!important; align-items:flex-start!important; justify-content:space-between!important; gap:12px!important; width:100%!important; min-width:0!important; padding:9px 0!important; border:0!important; border-bottom:1px solid #edf0f4!important; font-size:14px!important; line-height:1.35!important; text-align:right!important; overflow-wrap:anywhere!important; }
  body .su-result-list-page table.su-result-list-table td:last-child { border-bottom:0!important; }
  body .su-result-list-page table.su-result-list-table td:before { content:attr(data-label); display:block!important; flex:0 0 42%!important; max-width:42%!important; color:#64748b!important; font-size:12px!important; font-weight:700!important; text-align:left!important; }
  body .su-result-list-page table.su-result-list-table td > * { max-width:58%; }
  body .su-result-list-page table.su-result-list-table td .btn { white-space:nowrap!important; margin:0!important; }
  body .su-result-list-page table.su-result-list-table tr.su-result-empty { display:block!important; width:100%!important; }
  body .su-result-list-page table.su-result-list-table tr.su-result-empty td { display:block!important; text-align:center!important; }
  body .su-result-list-page table.su-result-list-table tr.su-result-empty td:before { display:none!important; }
  body .su-result-list-page .su-result-filter-mobile { display:flex!important; align-items:center!important; gap:10px!important; margin:0 0 12px!important; }
  body .su-result-list-page .su-result-filter-mobile label { margin:0!important; flex:0 0 auto!important; font-size:14px!important; }
  body .su-result-list-page .su-result-filter-mobile select { max-width:180px!important; height:38px!important; }
  body .su-result-list-page h3 { margin-top:16px!important; }
}


/* Shree Uma Result Page menu v2.1:
   desktop keeps the normal persistent application sidebar;
   phones use the existing hamburger + off-canvas drawer controller. */
body.su-result-page #wrapper {
  display:flex!important; width:100%!important; max-width:100%!important;
  margin:0!important; align-items:stretch!important;
}
body.su-result-page #accordionSidebar {
  display:flex!important; flex:0 0 16rem!important; width:16rem!important;
  max-width:16rem!important; min-width:16rem!important;
  position:relative!important; top:auto!important; left:auto!important; right:auto!important; bottom:auto!important;
  height:auto!important; min-height:100vh!important; margin:0!important;
  transform:none!important; visibility:visible!important; overflow-y:auto!important;
  z-index:10!important;
}
body.su-result-page #content-wrapper {
  flex:1 1 calc(100% - 16rem)!important; width:calc(100% - 16rem)!important;
  max-width:calc(100% - 16rem)!important; min-width:0!important; margin:0!important;
}
body.su-result-page #content { width:100%!important; max-width:100%!important; min-width:0!important; }
body.su-result-page .topbar { width:100%!important; }
body.su-result-page #sidebarToggleTop { display:none!important; }
@media (max-width:767.98px) {
  body.su-result-page #wrapper { display:block!important; overflow-x:hidden!important; }
  body.su-result-page #accordionSidebar {
    display:flex!important; position:fixed!important; top:0!important; left:0!important; right:auto!important; bottom:0!important;
    flex:0 0 auto!important; width:min(290px,86vw)!important; min-width:0!important; max-width:290px!important;
    height:100vh!important; height:100dvh!important; min-height:100vh!important;
    margin:0!important; padding:8px 0 22px!important; overflow-x:hidden!important; overflow-y:auto!important;
    transform:translate3d(-110%,0,0)!important; visibility:hidden!important; z-index:1032!important;
    transition:transform .24s cubic-bezier(.2,.75,.25,1),visibility .24s ease!important;
  }
  body.su-result-page.sidebar-toggled #accordionSidebar,
  body.su-result-page.sidebar-toggled #accordionSidebar.toggled {
    transform:translate3d(0,0,0)!important; visibility:visible!important;
  }
  body.su-result-page #content-wrapper,
  body.su-result-page #content { width:100%!important; max-width:100%!important; min-width:0!important; margin:0!important; }
  body.su-result-page #sidebarToggleTop { display:inline-flex!important; align-items:center!important; justify-content:center!important; }
  body.su-result-page #suSidebarBackdrop { z-index:1031!important; }
  body.su-result-page .container.su-result-page { padding-left:10px!important; padding-right:10px!important; }
}
