/* Homewebes Client Portal multilingual / RTL layer. Keeps the existing design system intact. */
.hcp-language-switcher{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:120;font-family:inherit}
.hcp-language-trigger{appearance:none;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:38px!important;height:38px!important;padding:0 10px!important;border:1px solid #dde6f0!important;border-radius:10px!important;background:#fff!important;color:#263a56!important;box-shadow:0 2px 8px rgba(20,49,84,.035)!important;font:inherit!important;font-size:11px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important}
.hcp-language-trigger:hover{border-color:#bacbe0!important;background:#f8fbff!important}
.hcp-language-trigger:focus-visible{outline:3px solid rgba(7,94,231,.18)!important;outline-offset:2px!important;border-color:#6e9fdf!important}
.hcp-language-globe{font-size:14px;line-height:1}
.hcp-language-chevron{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.hcp-language-switcher.open .hcp-language-chevron{transform:rotate(180deg)}
.hcp-language-menu{position:absolute;top:calc(100% + 7px);right:0;display:none;min-width:158px;padding:6px;border:1px solid #dfe7f1;border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(19,45,80,.16);z-index:9999}
.hcp-language-switcher.open .hcp-language-menu{display:grid;gap:2px}
.hcp-language-menu a{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:38px;padding:0 10px;border-radius:8px;color:#32445e!important;text-decoration:none!important;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.hcp-language-menu a:hover,.hcp-language-menu a:focus-visible{background:#f1f6fd;color:#075ee7!important;outline:none}
.hcp-language-menu a.active{background:#edf5ff;color:#075ee7!important}
.hcp-language-menu a b{font-size:12px;color:#075ee7}
.hcp-auth-language-row{display:flex;justify-content:flex-end;margin:0 0 18px}
.hcp-register-card>.hcp-auth-language-row,.hcp-simple-card>.hcp-auth-language-row{margin-bottom:18px}
.hcp-top-actions .hcp-language-switcher{order:-1}
.hcp-top-actions .hcp-language-trigger{height:38px!important;min-height:38px!important}

/* Language typography. */
[data-hcp-lang="ar"],.hcp-language-ar .hcp-auth-shell,.hcp-language-ar .hcp-app-shell{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
[data-hcp-lang="ar"]{direction:rtl;text-align:right}
[data-hcp-lang="fr"] .hcp-language-current{min-width:50px}
[data-hcp-lang="ar"] .hcp-language-current{min-width:42px}

/* Preserve readability for values that are inherently LTR. */
[data-hcp-lang="ar"] input[type="email"],
[data-hcp-lang="ar"] input[type="tel"],
[data-hcp-lang="ar"] input[type="url"],
[data-hcp-lang="ar"] input[type="password"],
[data-hcp-lang="ar"] input[name="log"],
[data-hcp-lang="ar"] .hcp-ref-title dd,
[data-hcp-lang="ar"] .hcp-ref-amount,
[data-hcp-lang="ar"] .hcp-ref-net b,
[data-hcp-lang="ar"] .hcp-invoice-line-id,
[data-hcp-lang="ar"] .hcp-invoice-line-payment strong,
[data-hcp-lang="ar"] .hcp-invoice-line-total b,
[data-hcp-lang="ar"] .hcp-payment-status-amount>strong,
[data-hcp-lang="ar"] .hcp-v161-bank-value,
[data-hcp-lang="ar"] [data-hcp-copy-value],
[data-hcp-lang="ar"] .hcp-sub-countdown strong{direction:ltr!important;unicode-bidi:isolate!important;text-align:left}

/* RTL dashboard structure. Direction changes the first grid track to the right. */
.hcp-app-shell[dir="rtl"]{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-app-sidebar,
.hcp-app-shell[dir="rtl"] .hcp-app-main{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-top-actions{margin-left:0!important;margin-right:auto!important}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a{grid-template-columns:auto minmax(0,1fr) 34px}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-icon{grid-column:3}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a span{grid-column:2;grid-row:1;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-nav-count{grid-column:1;grid-row:1;margin-left:0!important;margin-right:auto!important}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-user{grid-template-columns:28px 1fr 38px}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>img{grid-column:3;grid-row:1}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>div{grid-column:2;grid-row:1;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>a{grid-column:1;grid-row:1}
.hcp-app-shell[dir="rtl"] .hcp-widget-head,.hcp-app-shell[dir="rtl"] .hcp-welcome,.hcp-app-shell[dir="rtl"] .hcp-label-row{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-view-header,.hcp-app-shell[dir="rtl"] .hcp-topbar-context{text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-responsive-table th,.hcp-app-shell[dir="rtl"] .hcp-responsive-table td{text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-payment-status-amount{text-align:left}
.hcp-app-shell[dir="rtl"] .hcp-invoice-payment-line>.hcp-status,.hcp-app-shell[dir="rtl"] .hcp-invoice-line-view{justify-self:start!important;text-align:right!important}
.hcp-app-shell[dir="rtl"] .hcp-invoice-list-head,.hcp-app-shell[dir="rtl"] .hcp-invoice-payment-line{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-invoice-mobile-label{margin-left:5px;margin-right:0}
.hcp-app-shell[dir="rtl"] .hcp-chat-header>div,.hcp-app-shell[dir="rtl"] .hcp-chat-human-note{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-chat-header [data-hcp-chat-close]{margin:0 auto 0 0!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-attach{order:3}
.hcp-app-shell[dir="rtl"] .hcp-chat-send{order:1}
.hcp-app-shell[dir="rtl"] .hcp-message-form textarea{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-msg{justify-self:end;border-radius:12px 12px 3px 12px;text-align:right;direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-msg.me{justify-self:start;border-radius:12px 12px 12px 3px}
.hcp-app-shell[dir="rtl"] .hcp-msg small{direction:ltr;unicode-bidi:isolate;text-align:right}

/* RTL authentication/forms. */
.hcp-auth-shell[dir="rtl"] .hcp-auth-layout,.hcp-auth-shell[dir="rtl"] .hcp-register-layout{direction:rtl}
.hcp-auth-shell[dir="rtl"] .hcp-form-heading,.hcp-auth-shell[dir="rtl"] .hcp-field,.hcp-auth-shell[dir="rtl"] .hcp-register-side,.hcp-auth-shell[dir="rtl"] .hcp-auth-copy{text-align:right}
.hcp-auth-shell[dir="rtl"] .hcp-input-wrap input{padding-right:42px;padding-left:48px}
.hcp-auth-shell[dir="rtl"] .hcp-input-wrap.no-leading input{padding-right:15px}
.hcp-auth-shell[dir="rtl"] .hcp-input-icon{right:14px;left:auto}
.hcp-auth-shell[dir="rtl"] .hcp-password-toggle{left:7px;right:auto}
.hcp-auth-shell[dir="rtl"] .hcp-google-btn small{margin-right:auto;margin-left:0}
.hcp-auth-shell[dir="rtl"] .hcp-benefit-list>div{grid-template-columns:1fr 42px}
.hcp-auth-shell[dir="rtl"] .hcp-benefit-list>div>.hcp-icon{grid-column:2;grid-row:1}
.hcp-auth-shell[dir="rtl"] .hcp-benefit-list>div>span{grid-column:1;grid-row:1}
.hcp-auth-shell[dir="rtl"] .hcp-check{direction:rtl;text-align:right}
.hcp-auth-shell[dir="rtl"] .hcp-auth-language-row{justify-content:flex-start}
.hcp-auth-shell[dir="rtl"] .hcp-language-menu{right:auto;left:0}

/* Invoice and billing RTL without reversing identifiers/currency values. */
.hcp-app-shell[dir="rtl"] .hcp-invoice-paper,.hcp-app-shell[dir="rtl"] .hcp-ref-page{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-ref-head,.hcp-app-shell[dir="rtl"] .hcp-ref-client,.hcp-app-shell[dir="rtl"] .hcp-ref-footer{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-ref-table-head,.hcp-app-shell[dir="rtl"] .hcp-ref-line{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-ref-title dl div,.hcp-app-shell[dir="rtl"] .hcp-ref-client>div{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-invoice-actions{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-invoice-actions .hcp-invoice-close{margin-left:0!important;margin-right:auto!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-payment-note{direction:rtl;text-align:right}

/* Public chat gate respects a previously selected portal language without changing the host theme. */
.hcp-public-chat-gate[dir="rtl"] .hcp-public-chat-gate-card{direction:rtl;text-align:right}
.hcp-public-chat-gate[dir="rtl"] .hcp-public-chat-gate-actions{direction:rtl}
.hcp-public-chat-gate[dir="rtl"] .hcp-public-chat-gate-close{right:auto!important;left:14px!important}

@media(max-width:980px){
  .hcp-app-shell[dir="rtl"] .hcp-app-sidebar{left:auto!important;right:0!important;transform:translateX(105%)!important}
  .hcp-app-shell[dir="rtl"].sidebar-open .hcp-app-sidebar{transform:translateX(0)!important}
  .hcp-app-shell[dir="rtl"] .hcp-sidebar-brand{padding-right:10px!important;padding-left:48px!important}
  .hcp-app-shell[dir="rtl"] .hcp-sidebar-close{right:auto!important;left:3px!important}
  .hcp-app-shell[dir="rtl"] .hcp-search{margin-right:9px!important;margin-left:auto!important}
  .hcp-app-shell[dir="rtl"] .hcp-chat-launcher{right:auto!important;left:17px!important}
  .hcp-app-shell[dir="rtl"] .hcp-support-chat{right:auto!important;left:14px!important}
}

@media(max-width:680px){
  .hcp-language-trigger{min-width:42px!important;padding:0 8px!important;gap:5px!important}
  .hcp-top-actions{gap:7px!important}
  .hcp-top-actions .hcp-language-globe{display:none}
  .hcp-top-actions .hcp-language-current{min-width:0!important;font-size:0}
  .hcp-top-actions .hcp-language-current:after{content:attr(data-short);font-size:10px}
  .hcp-top-actions .hcp-language-trigger{height:40px!important;min-height:40px!important}
  .hcp-top-actions .hcp-language-menu{min-width:148px}
  .hcp-app-topbar{padding-inline:10px!important;gap:8px!important}
  .hcp-topbar-context span{font-size:8px!important}
  .hcp-topbar-context strong{font-size:10px!important;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hcp-auth-language-row{margin-bottom:14px}
  .hcp-auth-shell[dir="rtl"] .hcp-form-heading{text-align:center}
  .hcp-language-menu a{min-height:42px;font-size:13px}
  .hcp-app-shell[dir="rtl"] .hcp-responsive-table td{text-align:right!important}
  .hcp-app-shell[dir="rtl"] .hcp-responsive-table td:before{text-align:right}
  .hcp-app-shell[dir="rtl"] .hcp-payment-status-amount{justify-self:end!important;text-align:right!important}
  .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-payment-line>.hcp-status,
  .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-payment,
  .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-total,
  .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-view{justify-self:end!important;text-align:right!important}
}

@media(prefers-reduced-motion:reduce){.hcp-language-chevron{transition:none}}

/* Public service ordering follows the saved portal language without altering customer-entered values. */
.hcp-service-ordering[dir="rtl"],#hwwd-booking-form[dir="rtl"]{direction:rtl;text-align:right;font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
.hcp-service-ordering[dir="rtl"] .hcp-so-head,.hcp-service-ordering[dir="rtl"] .hcp-so-plan,.hcp-service-ordering[dir="rtl"] .hcp-so-dialog,.hcp-service-ordering[dir="rtl"] label,.hcp-service-ordering[dir="rtl"] .hcp-thanks-card{text-align:right}
.hcp-service-ordering[dir="rtl"] .hcp-so-book,.hcp-service-ordering[dir="rtl"] .hcp-so-process,.hcp-service-ordering[dir="rtl"] .hcp-so-payment-head,.hcp-service-ordering[dir="rtl"] .hcp-so-bank-method{direction:rtl}
.hcp-service-ordering[dir="rtl"] .hcp-so-book svg{transform:scaleX(-1)}
.hcp-service-ordering[dir="rtl"] input[type="email"],.hcp-service-ordering[dir="rtl"] input[type="tel"],.hcp-service-ordering[dir="rtl"] .hcp-so-price,.hcp-service-ordering[dir="rtl"] .hcp-thanks-summary strong{direction:ltr;unicode-bidi:isolate;text-align:left}
#hwwd-booking-form[dir="rtl"] input[type="email"],#hwwd-booking-form[dir="rtl"] input[type="tel"],#hwwd-booking-form[dir="rtl"] input[type="url"]{direction:ltr;text-align:left}

@media(max-width:420px){.hcp-app-topbar .hcp-topbar-context>span{display:none!important}.hcp-app-topbar .hcp-topbar-context strong{max-width:76px}.hcp-top-actions{gap:5px!important}.hcp-top-actions img{width:30px!important;height:30px!important}.hcp-notification-btn{width:36px!important;height:36px!important}}


/* v1.8.1 Arabic visual refinement: real flags, true RTL mirroring, chat layout polish. */
.hcp-language-current,.hcp-language-option-text{display:inline-flex;align-items:center;gap:8px}
.hcp-language-flag{display:inline-flex;align-items:center;justify-content:center;min-width:16px;font-size:14px;line-height:1}
.hcp-language-label{line-height:1.2}
.hcp-language-menu a{justify-content:space-between}
.hcp-language-menu a .hcp-language-option-text{min-width:0}

.hcp-app-shell[dir="rtl"]{grid-template-columns:minmax(0,1fr) 255px!important}
.hcp-app-shell[dir="rtl"] .hcp-app-main{grid-column:1!important}
.hcp-app-shell[dir="rtl"] .hcp-app-sidebar{grid-column:2!important}
.hcp-app-shell[dir="rtl"] .hcp-app-topbar{flex-direction:row-reverse}
.hcp-app-shell[dir="rtl"] .hcp-topbar-context{margin-right:0!important;margin-left:auto!important;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-top-actions{margin-right:0!important;margin-left:0!important}
.hcp-app-shell[dir="rtl"] .hcp-welcome{flex-direction:row-reverse}
.hcp-app-shell[dir="rtl"] .hcp-widget-head,.hcp-app-shell[dir="rtl"] .hcp-project-info>div:first-child,.hcp-app-shell[dir="rtl"] .hcp-project-meta,.hcp-app-shell[dir="rtl"] .hcp-order-card-pro footer{flex-direction:row-reverse}
.hcp-app-shell[dir="rtl"] .hcp-project-card-pro>header,.hcp-app-shell[dir="rtl"] .hcp-order-card-pro>header{direction:rtl}
.hcp-app-shell[dir="rtl"] .hcp-project-card-pro>header .hcp-status,.hcp-app-shell[dir="rtl"] .hcp-order-card-pro>header .hcp-status{justify-self:start}
.hcp-app-shell[dir="rtl"] .hcp-view-link{direction:rtl}

.hcp-app-shell[dir="rtl"] .hcp-chat-launcher{right:auto!important;left:24px!important}
.hcp-app-shell[dir="rtl"] .hcp-support-chat{right:auto!important;left:24px!important;transform-origin:bottom left!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-header{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-chat-header>div{flex-direction:row-reverse;padding-right:0!important;padding-left:44px!important;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-chat-header [data-hcp-chat-close],
.hcp-app-shell[dir="rtl"] .hcp-chat-header>button{right:auto!important;left:13px!important;margin:0 auto 0 0!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-presence i{margin-right:0!important;margin-left:4px!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-human-note{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-chat-human-note .hcp-icon{order:2}
.hcp-app-shell[dir="rtl"] .hcp-chat-composer{grid-template-columns:44px minmax(0,1fr) 42px!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-composer textarea{direction:rtl!important;text-align:right!important}
.hcp-app-shell[dir="rtl"] .hcp-chat-file-preview{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg{align-self:flex-start!important;justify-self:auto!important;border-radius:14px 14px 14px 5px!important;text-align:right!important;direction:rtl!important}
.hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg.me{align-self:flex-end!important;justify-self:auto!important;border-radius:14px 14px 5px 14px!important}
.hcp-app-shell[dir="rtl"] .hcp-msg-author{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg>small{direction:ltr!important;unicode-bidi:isolate!important;text-align:left!important}
.hcp-app-shell[dir="rtl"] .hcp-msg.me .hcp-msg-attachment.file,.hcp-app-shell[dir="rtl"] .hcp-msg .hcp-msg-attachment.file{direction:rtl;text-align:right}
.hcp-app-shell[dir="rtl"] .hcp-msg-file-icon{order:2}

@media(max-width:980px){
  .hcp-app-shell[dir="rtl"]{grid-template-columns:1fr!important}
}
@media(max-width:700px){
  .hcp-top-actions .hcp-language-trigger{min-width:52px!important;padding:0 10px!important}
  .hcp-top-actions .hcp-language-current{font-size:inherit!important;display:inline-flex!important;align-items:center!important;gap:0!important;min-width:auto!important}
  .hcp-top-actions .hcp-language-current:after{display:none!important;content:none!important}
  .hcp-top-actions .hcp-language-current .hcp-language-label{display:none!important}
  .hcp-app-shell[dir="rtl"] .hcp-support-chat{left:8px!important;right:8px!important;transform-origin:bottom center!important}
  .hcp-app-shell[dir="rtl"] .hcp-chat-launcher{left:14px!important;right:auto!important}
  .hcp-app-shell[dir="rtl"] .hcp-chat-header>div{padding-left:44px!important}
}


/* v1.8.3: definitive Arabic sidebar placement + clickable dashboard compatibility. */
@media(min-width:981px){
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-sidebar{
    left:auto!important;
    right:0!important;
    border-right:0!important;
    border-left:1px solid rgba(255,255,255,.06)!important;
    box-shadow:-10px 0 40px rgba(7,28,66,.08)!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-main{
    margin-left:0!important;
    margin-right:272px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-topbar{
    left:auto!important;
    right:0!important;
  }
}
@media(max-width:980px){
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-main{
    margin-left:0!important;
    margin-right:0!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-sidebar{
    left:auto!important;
    right:0!important;
    transform:translateX(105%)!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"].sidebar-open .hcp-app-sidebar{
    transform:translateX(0)!important;
  }
}


/* v1.8.4 Arabic professional UI refinement */
.hcp-language-switcher-dashboard .hcp-language-globe{display:none!important}
.hcp-language-switcher-dashboard .hcp-language-trigger{gap:8px!important;padding-inline:12px!important}
.hcp-language-switcher-dashboard .hcp-language-current{gap:6px!important}
.hcp-language-switcher-dashboard .hcp-language-flag{font-size:13px!important;min-width:14px!important}

body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-topbar{
  flex-direction:row!important;
  justify-content:space-between!important;
  gap:14px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context{
  order:1!important;
  margin:0 auto 0 0!important;
  text-align:right!important;
  min-width:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-top-actions{
  order:2!important;
  flex-direction:row-reverse!important;
  gap:12px!important;
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context span,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context strong{
  display:block!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context strong{font-size:13px!important}

body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a{
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  padding:8px 14px!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-icon{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a span{
  flex:1 1 auto!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-nav-count{
  margin-right:auto!important;
  margin-left:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-sidebar-help,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-sidebar-user,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-sidebar-brand{
  text-align:right!important;
}

body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat{
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-header{
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-header>div{
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:flex-start!important;
  gap:12px!important;
  min-width:0!important;
  padding:0!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-header [data-hcp-chat-close]{
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-presence,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-human-note,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg-author,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg-text{
  text-align:right!important;
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-human-note{
  flex-direction:row-reverse!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-messages{
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg{
  align-self:flex-start!important;
  text-align:right!important;
  direction:rtl!important;
  border-radius:14px 14px 14px 5px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg.me{
  align-self:flex-end!important;
  text-align:right!important;
  direction:rtl!important;
  border-radius:14px 14px 5px 14px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg>small{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:left!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-composer{
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:flex-end!important;
  gap:10px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-composer textarea{
  flex:1 1 auto!important;
  min-width:0!important;
  text-align:right!important;
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-attach,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-send{
  flex:0 0 42px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-file-preview{
  direction:rtl!important;
  text-align:right!important;
}

body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-three-grid .hcp-widget .hcp-invoice-flat-row,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-payment-line{
  text-align:right!important;
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row>.hcp-file-icon,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-three-grid .hcp-widget .hcp-invoice-flat-row>.hcp-file-icon,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-payment-line>.hcp-file-icon{
  order:7!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row .hcp-invoice-line-view,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-payment-line .hcp-invoice-line-view{
  justify-self:start!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-reference-style,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-page{
  font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important;
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-head{
  grid-template-columns:.92fr 82px 1.15fr!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-brand,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-payment-note,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-order-details,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-terms span{
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title h2{letter-spacing:0!important}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client{grid-template-columns:1fr 1fr!important}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head span,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-line>div{
  border-right:0!important;
  border-left:1px solid rgba(255,255,255,.4);
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-line>div{
  border-left:1px solid #e2e2e2!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-line>div:last-child,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head span:last-child{
  border-left:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-net,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-payment-note p,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-order-details p{
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footer{
  grid-template-columns:130px 140px 1fr!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit{
  border-left:0!important;
  border-right:1px solid #ececec!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{
  align-items:flex-start!important;
}

@media(max-width:700px){
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-topbar{
    gap:8px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-top-actions{
    gap:8px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context strong{font-size:12px!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context span{font-size:9px!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-header{
    padding:14px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-chat-header>div{
    gap:10px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-support-chat{
    left:8px!important;
    right:8px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-head{
    grid-template-columns:1fr auto!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client,
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footer{
    grid-template-columns:1fr!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit,
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{
    border-right:0!important;
    border-top:1px solid #ececec!important;
    align-items:flex-start!important;
  }
}


/* v1.8.5 — Arabic header matching English structure + invoice polish */
/* Keep the same physical header structure as English. Only the text itself is RTL. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-topbar{
  direction:ltr!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-menu-toggle{
  order:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context{
  order:1!important;
  direction:rtl!important;
  text-align:right!important;
  margin-right:auto!important;
  margin-left:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-top-actions{
  order:2!important;
  direction:ltr!important;
  flex-direction:row!important;
  align-items:center!important;
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard{
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-globe{
  display:none!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-trigger{
  direction:rtl!important;
  min-width:118px!important;
  padding:0 12px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-menu{
  right:0!important;
  left:auto!important;
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-notification-btn i{
  right:-3px!important;
  left:auto!important;
}

/* Arabic invoice: keep the proven English visual composition, translate and RTL-align content inside it. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-paper.hcp-invoice-reference-style{
  direction:rtl!important;
  text-align:right!important;
  font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-actions{
  direction:ltr!important;
  flex-direction:row!important;
  justify-content:flex-end!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-actions>a,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-invoice-actions>button{
  direction:rtl!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-page{
  direction:rtl!important;
  text-align:right!important;
  font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-head{
  direction:ltr!important;
  grid-template-columns:1.15fr .9fr!important;
  gap:28px!important;
  align-items:start!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-brand{
  direction:rtl!important;
  text-align:right!important;
  justify-self:start!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title{
  direction:rtl!important;
  text-align:right!important;
  justify-self:stretch!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title h2{
  margin-bottom:12px!important;
  font-size:32px!important;
  line-height:1.1!important;
  letter-spacing:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title dl{
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title dl div{
  direction:rtl!important;
  display:grid!important;
  grid-template-columns:minmax(70px,auto) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title dt{
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title dd{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:left!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client{
  direction:rtl!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px 22px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client>div{
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client span{
  unicode-bidi:plaintext!important;
}

/* Keep columns physically identical to English: designation | qty | amount. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-line{
  direction:ltr!important;
  grid-template-columns:minmax(0,1fr) 70px 125px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head span:first-child{
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head span:nth-child(2),
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head span:nth-child(3){
  direction:rtl!important;
  text-align:center!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-description{
  direction:rtl!important;
  text-align:right!important;
  line-height:1.65!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-description ul{
  margin-right:18px!important;
  margin-left:0!important;
  padding-right:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-qty,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-amount{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:center!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-net{
  direction:ltr!important;
  grid-template-columns:minmax(0,1fr) 180px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-net strong{
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-net b{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  text-align:center!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-order-details,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-payment-note{
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-payment-note p{
  line-height:1.8!important;
}
/* Same physical footer order as English, with RTL text inside each block. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footer{
  direction:ltr!important;
  grid-template-columns:minmax(0,1fr) 145px 150px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-terms,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{
  direction:rtl!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-terms{
  grid-template-columns:175px minmax(0,1fr)!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-terms strong{
  justify-content:flex-start!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit{
  border-left:1px solid #ececec!important;
  border-right:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{
  align-items:flex-end!important;
}

/* Invoice archive rows: icon stays at the right in Arabic; values remain readable. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row{
  direction:rtl!important;
  grid-template-columns:38px minmax(145px,1.05fr) minmax(100px,.72fr) minmax(150px,1fr) minmax(90px,.62fr) minmax(115px,.78fr) auto!important;
  text-align:right!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row>.hcp-file-icon{
  order:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-id,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-payment strong,
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-total b{
  direction:ltr!important;
  unicode-bidi:isolate!important;
}

@media(max-width:700px){
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-topbar{
    direction:ltr!important;
    flex-direction:row!important;
    padding:0 12px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-topbar-context{
    direction:rtl!important;
    margin-right:auto!important;
    margin-left:0!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-top-actions{
    direction:ltr!important;
    flex-direction:row!important;
    gap:7px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-trigger{
    min-width:50px!important;
    padding:0 8px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-label{
    display:none!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-head{
    direction:ltr!important;
    grid-template-columns:1fr auto!important;
    gap:12px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-title h2{
    font-size:26px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-client{
    grid-template-columns:1fr!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-table-head,
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-line{
    grid-template-columns:minmax(0,1fr) 44px 92px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-net{
    grid-template-columns:minmax(0,1fr) 135px!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footer{
    direction:rtl!important;
    grid-template-columns:1fr!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-terms{
    grid-template-columns:130px minmax(0,1fr)!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit{
    border-left:0!important;
    border-top:1px solid #ececec!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-footbrand,
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-ref-deposit{
    align-items:flex-start!important;
    padding:8px 0!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row{
    direction:rtl!important;
    grid-template-columns:auto minmax(0,1fr) 34px!important;
    grid-template-areas:
      "status invoice icon"
      "date date icon"
      "payment payment ."
      "remaining remaining ."
      "action action ."!important;
    text-align:right!important;
  }
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row>.hcp-file-icon{grid-area:icon!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-id{grid-area:invoice!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-date{grid-area:date!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-flat-row>.hcp-status{grid-area:status!important;justify-self:start!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-payment{grid-area:payment!important;justify-self:end!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-total{grid-area:remaining!important;justify-self:end!important}
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-v163-invoice-workspace .hcp-invoice-line-view{grid-area:action!important;justify-self:end!important}
}

/* =========================================================
   v1.8.6 — definitive professional Arabic RTL refinements
   ========================================================= */
[data-hcp-lang="ar"]{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important;line-height:1.55}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto!important;
  direction:rtl!important;
  column-gap:12px!important;
  align-items:center!important;
  text-align:right!important;
  padding:7px 13px!important;
}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-icon{grid-column:1!important;grid-row:1!important;justify-self:center!important;margin:0!important}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a>span:not(.hcp-icon){grid-column:2!important;grid-row:1!important;text-align:right!important;justify-self:stretch!important;font-size:12.5px!important;line-height:1.55!important}
.hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-nav-count{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-help{text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-sidebar-help>span{margin-right:0!important;margin-left:auto!important}.hcp-app-shell[dir="rtl"] .hcp-sidebar-help strong,.hcp-app-shell[dir="rtl"] .hcp-sidebar-help p{text-align:right!important;line-height:1.65!important}
.hcp-app-shell[dir="rtl"] .hcp-sidebar-user{direction:rtl!important;grid-template-columns:38px minmax(0,1fr) 28px!important}.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>img{grid-column:1!important}.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>div{grid-column:2!important;text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-sidebar-user>a{grid-column:3!important}
.hcp-app-shell[dir="rtl"] .hcp-view-header h1,.hcp-app-shell[dir="rtl"] .hcp-widget-head h2,.hcp-app-shell[dir="rtl"] .hcp-billing-section-head h2{line-height:1.45!important}.hcp-app-shell[dir="rtl"] .hcp-metric small,.hcp-app-shell[dir="rtl"] .hcp-status{line-height:1.45!important}

/* Arabic invoice: compact vertical rhythm, mixed-script safety, no oversized empty rows. */
.hcp-app-shell[dir="rtl"] .hcp-invoice-paper.hcp-invoice-reference-style{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-page{padding:24px 28px 18px!important;line-height:1.55!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-head{grid-template-columns:minmax(0,1fr) minmax(230px,.72fr)!important;gap:34px!important;padding-bottom:18px!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-brand img{max-width:165px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-brand p{max-width:430px!important;margin-top:8px!important;font-size:8.5px!important;line-height:1.65!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-title h2{font-size:31px!important;font-weight:800!important}.hcp-app-shell[dir="rtl"] .hcp-ref-title dl div{min-height:24px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-title dt{font-size:7.5px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-title dd{font-size:8.5px!important;font-weight:700!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-client{margin:18px 0!important;padding:12px 0!important;gap:9px 26px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-client>div{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:7px!important;align-items:start!important}.hcp-app-shell[dir="rtl"] .hcp-ref-client b{font-size:7.5px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-client span{font-size:8.5px!important;overflow-wrap:anywhere!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-table-head,.hcp-app-shell[dir="rtl"] .hcp-ref-line{grid-template-columns:minmax(0,1fr) 62px 125px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-table-head span{font-size:8px!important;padding:9px 8px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-line{min-height:0!important}.hcp-app-shell[dir="rtl"] .hcp-ref-line>div{padding:14px 12px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-description{unicode-bidi:plaintext!important;font-size:9px!important;line-height:1.7!important}.hcp-app-shell[dir="rtl"] .hcp-ref-description strong{font-size:10px!important;line-height:1.55!important}.hcp-app-shell[dir="rtl"] .hcp-ref-description li{margin:3px 0!important;unicode-bidi:plaintext!important}.hcp-app-shell[dir="rtl"] .hcp-ref-qty,.hcp-app-shell[dir="rtl"] .hcp-ref-amount{align-self:center!important;font-size:9px!important;font-weight:800!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-net{grid-template-columns:minmax(0,1fr) 180px!important;min-height:36px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-net strong,.hcp-app-shell[dir="rtl"] .hcp-ref-net b{padding:9px 12px!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-order-details{margin-top:16px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-order-details>div{grid-template-columns:1fr!important;gap:0!important}.hcp-app-shell[dir="rtl"] .hcp-ref-order-details p{display:grid!important;grid-template-columns:minmax(120px,.38fr) minmax(0,1fr)!important;gap:12px!important;margin:0!important;padding:7px 0!important;border-bottom:1px dashed #e4e8ee!important;font-size:8px!important;line-height:1.6!important;unicode-bidi:plaintext!important}.hcp-app-shell[dir="rtl"] .hcp-ref-order-details p b{text-align:right!important;unicode-bidi:plaintext!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-payment-note{margin-top:14px!important;padding:9px 12px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-payment-note p{margin:0!important;font-size:8px!important;line-height:1.8!important}.hcp-app-shell[dir="rtl"] .hcp-ref-payment-note b{font-weight:800!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-footer{margin-top:14px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-terms{grid-template-columns:155px minmax(0,1fr)!important}.hcp-app-shell[dir="rtl"] .hcp-ref-terms strong{font-size:7px!important;line-height:1.5!important}.hcp-app-shell[dir="rtl"] .hcp-ref-terms span{font-size:7.2px!important;line-height:1.6!important}.hcp-app-shell[dir="rtl"] .hcp-ref-deposit,.hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{font-size:7px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-deposit b,.hcp-app-shell[dir="rtl"] .hcp-ref-footbrand b{direction:ltr!important;unicode-bidi:isolate!important}
.hcp-app-shell[dir="rtl"] .hcp-ref-title dd,.hcp-app-shell[dir="rtl"] .hcp-ref-qty,.hcp-app-shell[dir="rtl"] .hcp-ref-amount,.hcp-app-shell[dir="rtl"] .hcp-ref-net b,.hcp-app-shell[dir="rtl"] .hcp-ref-deposit b,.hcp-app-shell[dir="rtl"] .hcp-ref-payment-note{font-variant-numeric:tabular-nums}

/* Tour/toast RTL */
.hcp-app-shell[dir="rtl"] .hcp-toast-region{right:auto!important;left:20px!important}.hcp-app-shell[dir="rtl"] .hcp-toast{direction:rtl!important;grid-template-columns:30px minmax(0,1fr) 36px!important}.hcp-app-shell[dir="rtl"] .hcp-toast-icon{grid-column:3!important}.hcp-app-shell[dir="rtl"] .hcp-toast-copy{grid-column:2!important;text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-toast-close{grid-column:1!important;grid-row:1!important}.hcp-app-shell[dir="rtl"] .hcp-toast-action{text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-tutorial-setting{direction:rtl!important;text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-tour-card{direction:rtl!important;text-align:right!important}.hcp-app-shell[dir="rtl"] .hcp-tour-progress,.hcp-app-shell[dir="rtl"] .hcp-tour-actions{direction:rtl!important}

@media(max-width:700px){
  .hcp-app-shell[dir="rtl"] .hcp-toast-region{left:10px!important;right:10px!important}
  .hcp-app-shell[dir="rtl"] .hcp-ref-page{padding:16px 13px 14px!important}
  .hcp-app-shell[dir="rtl"] .hcp-ref-head{grid-template-columns:1fr!important;gap:14px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-brand{order:1!important}.hcp-app-shell[dir="rtl"] .hcp-ref-title{order:2!important}.hcp-app-shell[dir="rtl"] .hcp-ref-title h2{font-size:27px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-client{grid-template-columns:1fr!important;margin:14px 0!important}
  .hcp-app-shell[dir="rtl"] .hcp-ref-table-head,.hcp-app-shell[dir="rtl"] .hcp-ref-line{grid-template-columns:minmax(0,1fr) 42px 92px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-line>div{padding:10px 8px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-description{font-size:8px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-description strong{font-size:9px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-net{grid-template-columns:minmax(0,1fr) 128px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-order-details p{grid-template-columns:1fr!important;gap:2px!important;padding:7px 0!important}.hcp-app-shell[dir="rtl"] .hcp-ref-footer{grid-template-columns:1fr!important}.hcp-app-shell[dir="rtl"] .hcp-ref-terms{grid-template-columns:1fr!important}.hcp-app-shell[dir="rtl"] .hcp-ref-terms strong{min-height:34px!important}.hcp-app-shell[dir="rtl"] .hcp-ref-deposit{border-left:0!important;border-top:1px solid #e7ebf0!important;padding:9px 0!important}.hcp-app-shell[dir="rtl"] .hcp-ref-footbrand{padding:9px 0!important;align-items:flex-start!important}
}
.hcp-app-shell[dir="rtl"] .hcp-ref-client>div:nth-child(2) span,.hcp-app-shell[dir="rtl"] .hcp-ref-client>div:nth-child(3) span{direction:ltr!important;unicode-bidi:isolate!important;text-align:left!important}

/* =========================================================
   v1.9.0 — final Arabic navigation + English invoice rule
   ========================================================= */
/* Use physical grid columns so the icon is always on the RIGHT of Arabic text. */
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) 24px!important;
  grid-template-rows:1fr!important;
  gap:12px!important;
  align-items:center!important;
  padding:8px 14px!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-icon{
  grid-column:3!important;grid-row:1!important;justify-self:center!important;margin:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a>span:not(.hcp-icon){
  grid-column:2!important;grid-row:1!important;direction:rtl!important;text-align:right!important;justify-self:stretch!important;min-width:0!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-nav a .hcp-nav-count{
  grid-column:1!important;grid-row:1!important;direction:ltr!important;justify-self:start!important;margin:0!important;
}
/* The actual invoice document intentionally stays English/LTR when Arabic portal is selected. */
.hcp-invoice-paper[data-hcp-invoice-lang="en"],
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-page{
  direction:ltr!important;text-align:left!important;font-family:Arial,Helvetica,sans-serif!important;
}
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-head,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-client,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-table-head,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-line,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-net,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-footer{
  direction:ltr!important;
}
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-title{text-align:right!important;direction:ltr!important}
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-brand,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-client,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-description,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-order-details,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-payment-note,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-terms{direction:ltr!important;text-align:left!important}
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-title dd,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-qty,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-amount,
.hcp-invoice-paper[data-hcp-invoice-lang="en"] .hcp-ref-net b{direction:ltr!important;unicode-bidi:isolate!important}
@media(max-width:980px){
  body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-app-sidebar{right:0!important;left:auto!important}
}

/* v1.20.0 — compact professional language switcher */
.hcp-language-switcher .hcp-language-globe{display:none!important}
.hcp-language-trigger{
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 11px!important;
  gap:7px!important;
  border-radius:11px!important;
  border-color:#cfdceb!important;
  box-shadow:0 4px 14px rgba(19,45,80,.045)!important;
}
.hcp-language-current{display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
.hcp-language-flag{
  display:inline-grid!important;
  place-items:center!important;
  min-width:22px!important;
  width:22px!important;
  height:22px!important;
  overflow:hidden!important;
  border-radius:6px!important;
  background:#f4f7fb!important;
  font-size:16px!important;
  line-height:1!important;
}
.hcp-language-label{font-size:11px!important;font-weight:800!important;line-height:1!important}
.hcp-language-chevron{width:13px!important;height:13px!important}
.hcp-language-menu{top:calc(100% + 6px)!important;min-width:150px!important;padding:5px!important;border-radius:11px!important}
.hcp-language-menu a{min-height:37px!important;padding:0 9px!important;border-radius:8px!important;font-size:11px!important}
.hcp-language-menu a .hcp-language-flag{width:20px!important;height:20px!important;min-width:20px!important;font-size:14px!important;border-radius:5px!important}
.hcp-language-switcher-dashboard .hcp-language-trigger{padding-inline:10px!important}
.hcp-auth-language-row{margin-bottom:14px!important}
.hcp-auth-language-row .hcp-language-trigger{height:38px!important;min-height:38px!important;padding-inline:10px!important}
.hcp-auth-language-row .hcp-language-flag{width:20px!important;height:20px!important;min-width:20px!important;font-size:14px!important}

@media(max-width:680px){
  .hcp-top-actions .hcp-language-trigger{
    height:38px!important;
    min-height:38px!important;
    padding:0 8px!important;
    gap:5px!important;
    border-radius:10px!important;
  }
  .hcp-top-actions .hcp-language-current{display:inline-flex!important;gap:5px!important;font-size:inherit!important}
  .hcp-top-actions .hcp-language-current:after{content:attr(data-short)!important;display:inline!important;font-size:9px!important;font-weight:900!important;color:#31465f!important}
  .hcp-top-actions .hcp-language-current .hcp-language-label{display:none!important}
  .hcp-top-actions .hcp-language-flag{width:19px!important;height:19px!important;min-width:19px!important;font-size:13px!important;border-radius:5px!important}
  .hcp-top-actions .hcp-language-menu{min-width:142px!important;right:0!important}
  .hcp-auth-language-row{margin:0 0 12px!important}
  .hcp-auth-language-row .hcp-language-trigger{height:36px!important;min-height:36px!important;padding-inline:9px!important}
  .hcp-auth-language-row .hcp-language-label{font-size:10px!important}
  .hcp-auth-language-row .hcp-language-menu{min-width:142px!important}
}
@media(max-width:420px){
  .hcp-top-actions .hcp-language-trigger{padding:0 7px!important}
  .hcp-top-actions .hcp-language-chevron{width:11px!important;height:11px!important}
  .hcp-auth-language-row{justify-content:flex-end!important}
  .hcp-auth-shell[dir="rtl"] .hcp-auth-language-row{justify-content:flex-start!important}
}

/* v1.21.0 — final dashboard language switcher sizing */
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger{
  box-sizing:border-box!important;
  width:auto!important;
  min-width:104px!important;
  max-width:118px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 9px!important;
  gap:6px!important;
  border:1px solid #1d6ff2!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#263a56!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag{
  display:inline-grid!important;
  place-items:center!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  border-radius:4px!important;
  background:transparent!important;
  overflow:visible!important;
  font-size:15px!important;
  line-height:1!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-label{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  color:#30435f!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-chevron{
  width:11px!important;
  min-width:11px!important;
  height:11px!important;
  flex:0 0 11px!important;
  stroke-width:2!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu{
  top:calc(100% + 6px)!important;
  right:0!important;
  left:auto!important;
  width:138px!important;
  min-width:138px!important;
  padding:5px!important;
  border-radius:10px!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a{
  min-height:35px!important;
  padding:0 8px!important;
  gap:8px!important;
  border-radius:7px!important;
  font-size:10px!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a .hcp-language-flag{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  font-size:14px!important;
}

@media(max-width:680px){
  body.hcp-dashboard-standalone .hcp-top-actions{
    gap:8px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger{
    min-width:62px!important;
    max-width:68px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 7px!important;
    gap:4px!important;
    border-radius:9px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current{
    gap:4px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag{
    width:17px!important;
    min-width:17px!important;
    height:17px!important;
    font-size:14px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-label{
    display:none!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current:after{
    content:attr(data-short)!important;
    display:block!important;
    font-size:9px!important;
    font-weight:900!important;
    line-height:1!important;
    color:#30435f!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-chevron{
    width:10px!important;
    min-width:10px!important;
    height:10px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu{
    width:132px!important;
    min-width:132px!important;
  }
}

@media(max-width:420px){
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger{
    min-width:58px!important;
    max-width:62px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 6px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag{
    width:16px!important;
    min-width:16px!important;
    height:16px!important;
    font-size:13px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current:after{
    font-size:8.5px!important;
  }
}

/* v1.22.0 — deterministic SVG language selector; no emoji/Twemoji scaling */
body.hcp-dashboard-standalone .hcp-language-switcher-dashboard,
.hcp-auth-language-row .hcp-language-switcher{
  font-family:inherit!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-trigger{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:102px!important;
  max-width:none!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0 10px!important;
  gap:7px!important;
  border:1px solid #216df3!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#263a56!important;
  box-shadow:none!important;
  line-height:1!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-current{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag,
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a .hcp-language-flag,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-flag,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a .hcp-language-flag{
  box-sizing:border-box!important;
  display:block!important;
  width:22px!important;
  min-width:22px!important;
  height:15px!important;
  min-height:15px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:3px!important;
  background:none!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 0 0 1px rgba(18,45,80,.11)!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag svg,
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a .hcp-language-flag svg,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-flag svg,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a .hcp-language-flag svg{
  display:block!important;
  width:22px!important;
  height:15px!important;
  max-width:22px!important;
  max-height:15px!important;
  min-width:22px!important;
  min-height:15px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:fill!important;
  overflow:hidden!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-label,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-label{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#30435f!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-chevron,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-chevron{
  display:block!important;
  width:11px!important;
  min-width:11px!important;
  height:11px!important;
  flex:0 0 11px!important;
  margin:0!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu{
  box-sizing:border-box!important;
  top:calc(100% + 6px)!important;
  right:0!important;
  left:auto!important;
  width:146px!important;
  min-width:146px!important;
  max-width:146px!important;
  margin:0!important;
  padding:5px!important;
  border:1px solid #dce6f1!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(18,45,80,.14)!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard.open .hcp-language-menu,
.hcp-auth-language-row .hcp-language-switcher.open .hcp-language-menu{
  display:grid!important;
  gap:2px!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0 8px!important;
  gap:8px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#31455f!important;
  font-size:10px!important;
  font-weight:750!important;
  line-height:1!important;
  text-decoration:none!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a.active,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a.active{
  background:#edf5ff!important;
  color:#075ee7!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a .hcp-language-option-text,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a .hcp-language-option-text{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a b,
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a b{
  display:grid!important;
  place-items:center!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  padding:0!important;
  margin:0!important;
  color:#075ee7!important;
  font-size:13px!important;
  line-height:1!important;
}
body.hcp-dashboard-standalone .hcp-app-shell[dir="rtl"] .hcp-language-switcher-dashboard .hcp-language-menu,
.hcp-auth-shell[dir="rtl"] .hcp-language-switcher .hcp-language-menu{
  right:auto!important;
  left:0!important;
}
body.hcp-dashboard-standalone .hcp-language-switcher-dashboard .hcp-language-menu a[dir="rtl"],
.hcp-auth-language-row .hcp-language-switcher .hcp-language-menu a[dir="rtl"]{
  direction:rtl!important;
  text-align:right!important;
}

@media(max-width:680px){
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger{
    min-width:66px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 7px!important;
    gap:5px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current{gap:5px!important}
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current .hcp-language-label{display:none!important}
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current:after{
    content:attr(data-short)!important;
    display:block!important;
    color:#30435f!important;
    font-size:9px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag,
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-flag svg{
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu{
    width:142px!important;
    min-width:142px!important;
    max-width:142px!important;
  }
}
@media(max-width:420px){
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-trigger{
    min-width:62px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 6px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-current:after{font-size:8.5px!important}
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu{
    width:138px!important;
    min-width:138px!important;
    max-width:138px!important;
  }
  body.hcp-dashboard-standalone .hcp-top-actions .hcp-language-switcher-dashboard .hcp-language-menu a{
    min-height:33px!important;
    height:33px!important;
    padding:0 7px!important;
  }
}

/* AI action links follow the Arabic chat direction without changing URLs. */
.hcp-app-shell[dir="rtl"] .hcp-support-chat .hcp-msg-text .hcp-ai-link{
  direction:rtl!important;
  text-align:right!important;
  margin-right:0!important;
  margin-left:3px!important;
}
