/* Closed controls must remain absent on desktop and before enhancement. */
body.pr-mobile-shell .pr-mobile-close { display: none; }
body.pr-mobile-shell .pr-mobile-backdrop[hidden] { display: none !important; }
/* Mobile 12: shared shell + four completed pages. Desktop remains outside scope. */
body.pr-mobile-shell .pr-mobile-close { display: none; }
body.pr-mobile-shell .pr-mobile-backdrop[hidden] { display: none !important; }
@media (max-width: 991px) {
  body.parsrad-brand.pr-mobile-shell { min-width: 0 !important; }
  body.parsrad-brand.pr-mobile-shell.pr-mobile-drawer-open { overflow: hidden; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header {
    position: fixed !important; inset: 0 0 auto !important; width: 100% !important;
    height: 64px !important; min-height: 64px; margin: 0 !important; padding: 0 10px !important;
    display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: space-between;
    transform: none !important; border-radius: 0 !important; border-bottom: 1px solid #d8e9f3;
  }
  body.parsrad-brand.pr-mobile-shell .header-hight-fixed { height: 76px !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header {
    position: static !important; display: flex !important; align-items: center; gap: 6px !important;
    width: auto !important; min-width: 0; max-width: 58% !important; min-height: 44px;
    margin: 0 !important; padding: 0 !important; z-index: auto !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header #mobile-collapse1,
  body.parsrad-brand.pr-mobile-shell .coodiv-header #mobile-collapse {
    position: static !important; inset: auto !important; transform: none !important;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; margin: 0 !important; padding: 0;
    border: 1px solid #c6e6f6; border-radius: 12px; background: #e7f7ff; box-shadow: none;
    cursor: pointer; z-index: auto !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::before,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::after { background: #087bae; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header .the-logo {
    display: inline-flex !important; align-items: center; gap: 6px;
    margin: 0 !important; padding: 0 !important; width: auto !important; max-width: 100% !important;
    min-width: 0; pointer-events: auto !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header .logo { width: 34px !important; height: 34px !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header .b-title { display: block; font-size: 13px; margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-collapse.collapse {
    display: flex !important; position: static !important; flex: 0 0 auto !important;
    width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.mr-auto { display: none !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto {
    display: flex !important; flex-direction: row; align-items: center; gap: 2px;
    float: none !important; margin: 0 !important; padding: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li {
    display: block !important; float: none; padding: 0 !important; margin: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > a,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > .dropdown > a {
    display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 4px !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .user-name-header-drop { display: none !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .dropdown .dropdown-menu {
    position: fixed !important; top: 70px !important; right: 12px !important; left: 12px !important;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px);
    overflow-y: auto !important; transform: none !important; margin: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .dropdown-menu::before,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .dropdown-menu::after { display: none; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar {
    position: fixed !important; top: 0 !important; right: 0 !important; left: auto !important;
    width: min(300px, calc(100vw - 48px)) !important; height: 100vh !important; height: 100dvh !important;
    margin: 0 !important; transform: translateX(110%) !important; visibility: hidden; pointer-events: none;
    z-index: 100004 !important; transition: transform .18s ease, visibility .18s; border: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell:not(.rtl-active) .coodiv-navbar { right: auto !important; left: 0 !important; transform: translateX(-110%) !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar.mob-open { transform: translateX(0) !important; visibility: visible; pointer-events: auto; box-shadow: 0 0 35px #173b5530 !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .navbar-wrapper { display: flex; flex-direction: column; height: 100%; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 76px; width: 100%; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo .the-logo { pointer-events: auto !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .slimScrollDiv { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .navbar-content { flex: 1; min-height: 0; height: auto !important; max-height: none; overflow-y: auto !important; overscroll-behavior: contain; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar :is(.slimScrollBar,.slimScrollRail) { display: none !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .coodiv-inner-navbar li > a { min-height: 44px; display: flex; align-items: center; }
  body.parsrad-brand.pr-mobile-shell .pr-mobile-close { display: grid; place-items: center; min-width: 44px; height: 44px; font: 28px/1 sans-serif; color: #087bae; background: #edf8fe; border: 1px solid #cde9f6; border-radius: 12px; cursor: pointer; }
  body.parsrad-brand.pr-mobile-shell .pr-mobile-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #173b5570; z-index: 100003; }
  body.parsrad-brand.pr-mobile-shell :is(.coodiv-main-container,.coodiv-wrapper,.coodiv-content,.coodiv-inner-content,.main-body,.page-wrapper) { min-width: 0; width: auto !important; margin: 0 !important; padding: 0 !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-main-container { padding: 0 12px !important; }
  body.parsrad-brand.pr-mobile-shell #main-body > div > .row { margin: 0 !important; }
  body.parsrad-brand.pr-mobile-shell #main-body > div > .row > :is(.col-md-12,.main-content) { width: 100%; padding: 0 !important; min-width: 0; }
  body.parsrad-brand.pr-mobile-shell .header-lined { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  body.parsrad-brand.pr-mobile-shell .header-lined h1 { min-width: 0; font-size: 16px !important; line-height: 1.8; }
  body.parsrad-brand.pr-mobile-shell .header-lined h1 small { display: block; font-size: 11px; }
  body.parsrad-brand.pr-mobile-shell .side-bar-header-lined-drop-down { position: relative; inset: auto; transform: none; }
  body.parsrad-brand.pr-mobile-shell .side-bar-header-lined-drop-down .drop-down-btn { min-height: 44px; font-size: 12px; white-space: normal; }
  body.parsrad-brand.pr-mobile-shell .side-bar-header-lined-drop-down .dropdown-menu { max-width: calc(100vw - 32px); min-width: min(280px, calc(100vw - 32px)); max-height: 65vh; overflow: auto; }
  body.parsrad-brand.pr-mobile-shell .breadcrumb { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; margin: 0 0 14px; font-size: 11px; }
  body.parsrad-brand.pr-mobile-shell #footer { margin: 24px 0 0 !important; padding: 18px 12px !important; width: auto; display: flex; flex-wrap: wrap; gap: 12px; }
  body.parsrad-brand.pr-mobile-shell .modal .modal-dialog { width: calc(100% - 24px); max-width: 560px; margin: 12px auto; }
  body.parsrad-brand.pr-mobile-shell .modal .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  body.parsrad-brand.pr-mobile-shell .modal :is(input,select,textarea) { max-width: 100%; font-size: 16px; }
}
@media (max-width: 767px) {
  body.parsrad-brand.pr-mobile-shell #pr-services .pr-services-toolbar,
  body.parsrad-brand.pr-mobile-shell #pr-invoices .pr-invoices-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 90px; gap: 10px; }
  body.parsrad-brand.pr-mobile-shell #pr-services .pr-services-search,
  body.parsrad-brand.pr-mobile-shell #pr-invoices .pr-invoices-search { grid-column: 1/-1; }
  body.parsrad-brand.pr-mobile-shell :is(#pr-services,#pr-invoices) :is(input,select) { font-size: 16px; min-width: 0; }
  body.parsrad-brand.pr-mobile-shell :is(#pr-services,#pr-invoices) button { min-height: 44px; }
  body.parsrad-brand.pr-mobile-shell .pr-home-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body.parsrad-brand.pr-mobile-shell .pr-home-stat { padding: 14px 10px; }
  body.parsrad-brand.pr-mobile-shell .pr-home-stat > i { width: 44px; height: 44px; }
  body.parsrad-brand.pr-mobile-shell .pr-home-stat > strong { font-size: 27px; }
  body.parsrad-brand.pr-mobile-shell .pr-home-panels { grid-template-columns: minmax(0,1fr); }
  body.parsrad-brand.pr-mobile-shell .pr-home .card-title .btn { min-height: 44px; display: inline-flex; align-items: center; }
  body.parsrad-brand.pr-mobile-shell :is(.pr-home-wallet,.pr-details-identity-heading,.pr-details-actions) { padding-inline: 16px; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details :is(.pr-details-main-tabs,.pr-details-subtabs) > li > a { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details .pr-details-password-form .form-group { display: grid; gap: 8px; margin: 0 0 18px; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details .pr-details-password-form .form-group > :is(div,label) { width: 100%; padding: 0; margin: 0; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details .pr-details-password-form :is(input,select,textarea) { width: 100%; min-width: 0; font-size: 16px; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details .pr-details-password-form .btn { min-height: 44px; width: auto; max-width: 100%; white-space: normal; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details :is(.module-client-area,.pr-details-hook-output) { min-width: 0; max-width: 100%; overflow-x: auto; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details :is(.module-client-area,.pr-details-hook-output) :is(img,iframe) { max-width: 100%; }
  body.parsrad-brand.pr-mobile-shell #pr-service-details .pr-details-addons .row.panel-body { margin: 0; }
}
@media (max-width: 359px) {
  body.parsrad-brand.pr-mobile-shell .coodiv-header { padding-inline: 6px !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header .b-title { max-width: 64px; font-size: 12px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > a,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > .dropdown > a { min-width: 36px; }
}
@media (prefers-reduced-motion: reduce) { body.pr-mobile-shell .coodiv-navbar { transition: none !important; } }
@media (max-width: 991px) {
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span {
    position: relative; display: block; width: 18px !important; height: 2px; margin: 0; transform: none !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::before,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::after {
    content: ''; position: absolute; left: 0; width: 18px !important; height: 2px; transform: none !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::before { top: -6px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .mobile-menu span::after { top: 6px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > a,
  body.parsrad-brand.pr-mobile-shell .coodiv-header .navbar-nav.ml-auto > li > .dropdown > a { min-width: 44px; }
}
@media (max-width: 767px) {
  body.parsrad-brand.pr-mobile-shell #pr-services .pr-services-filters,
  body.parsrad-brand.pr-mobile-shell #pr-invoices .pr-invoices-filters {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%; min-width: 0; padding: 4px;
    box-sizing: border-box; overscroll-behavior-inline: contain; scrollbar-width: thin;
  }
  body.parsrad-brand.pr-mobile-shell :is(#pr-services,#pr-invoices) .pr-services-filters button,
  body.parsrad-brand.pr-mobile-shell :is(#pr-services,#pr-invoices) .pr-invoices-filters button { flex: 0 0 auto; }
}
@media (max-width: 359px) { body.parsrad-brand.pr-mobile-shell .coodiv-header .m-header .b-title { display: none; } }

/* Mobile 13: footer and navigation alignment reported on real phones. */
@media (max-width: 991px) {
  body.parsrad-brand.pr-mobile-shell #footer {
    display: flex !important; flex-direction: column; align-items: stretch;
    gap: 12px; width: 100% !important; box-sizing: border-box;
  }
  body.parsrad-brand.pr-mobile-shell #footer .footer-copyright {
    flex: 1 1 100%; width: 100% !important; max-width: none !important; float: none !important;
    margin: 0 !important; padding: 0 !important; text-align: center !important;
    font-size: 12px; line-height: 2; color: #63758b;
  }
  body.parsrad-brand.pr-mobile-shell #footer .footer-menu {
    display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px 16px; width: 100% !important; max-width: none !important; float: none !important;
    margin: 0 !important; padding: 0 !important;
  }
  body.parsrad-brand.pr-mobile-shell #footer .footer-menu a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: 12px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .coodiv-inner-navbar > li > a {
    gap: 10px; min-height: 48px; padding: 8px 14px !important;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .coodiv-mtext {
    position: static !important; transform: none !important; flex: 1; min-width: 0;
    padding-inline-end: 14px; line-height: 1.9; text-align: start;
  }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .coodiv-micon { margin: 0 !important; flex: 0 0 36px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .template-new-menu { display: none !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo { padding-inline: 14px !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo .the-logo { display: inline-flex; align-items: center; gap: 10px; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo .logo { width: 40px !important; height: 40px !important; }
  body.parsrad-brand.pr-mobile-shell .coodiv-navbar .header-logo .b-title { position: static !important; margin: 0 !important; font-size: 15px; }
}
