﻿/* Shared language control, matched to the Dently theme. */
#dently-language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--ui-border, #cbdedc);
  border-radius: 10px;
  background: var(--ui-card, #fff);
  color: var(--ui-text, #163346);
  font:
    600 13px Manrope,
    "IBM Plex Sans Arabic",
    sans-serif;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s;
}
#dently-language-switch svg {
  width: 17px;
  height: 17px;
}
#dently-language-switch:hover {
  border-color: var(--ui-accent, #0e9f8e);
  background: var(--ui-inset, #eef7f5);
}
#dently-language-switch.language-floating {
  position: fixed;
  top: 16px;
  inset-inline-end: 20px;
  z-index: 55;
  box-shadow: 0 4px 20px #09283b15;
}
html[dir="ltr"] body {
  font-family: Manrope, "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}
html[dir="ltr"] :is(button, input, select, textarea) {
  font-family: inherit;
}
html[dir="ltr"] :is(h1, h2, h3) {
  letter-spacing: -0.035em;
  line-height: 1.3;
}
html[dir="ltr"] .dashboard .sidebar {
  left: 0;
  right: auto;
  border-left: 0;
  border-right: 1px solid var(--ui-border, #d9ecea);
}
html[dir="ltr"] .dashboard .main {
  margin-left: 235px;
  margin-right: 0;
}
html[dir="ltr"]
  :is(
    .side-nav button,
    .quick-actions > a,
    .quick-actions > button,
    .stat,
    .patient-card,
    .panel,
    .agenda-title,
    .queue-patient,
    .calendar-event,
    .work-card,
    .work-task
  ) {
  text-align: start;
}
html[dir="ltr"] .side-nav .count {
  margin-left: auto;
  margin-right: 0;
}
html[dir="ltr"] .side-nav button.active:before {
  left: -16px;
  right: auto;
}
html[dir="ltr"] .user {
  border-right: 0;
  border-left: 1px solid var(--ui-border, #d9ecea);
  padding-right: 0;
  padding-left: 16px;
}
html[dir="ltr"] .quick-actions > a > svg:last-child {
  margin-left: auto;
  margin-right: 0;
}
html[dir="ltr"] .sidebar-dismiss {
  left: auto;
  right: 9px;
}
html[dir="ltr"] .close {
  left: auto;
  right: 12px;
}
html[dir="ltr"] .hero-v2 h1 {
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.13;
  letter-spacing: -0.05em;
}
html[dir="ltr"] .hero-v2 .hero-copy > p {
  line-height: 1.85;
}
html[dir="ltr"] .landing-v2 .section h2 {
  line-height: 1.2;
}
html[dir="ltr"] .profile-tabs {
  gap: 12px;
}
html[dir="ltr"] .profile-tabs button {
  font-size: 13px;
  gap: 6px;
}
html[dir="ltr"] :is(th, td) {
  text-align: start;
}
html[dir="ltr"] :is(.cell-note, .clinical-note p, .patient-information dd) {
  unicode-bidi: plaintext;
}
html[dir="ltr"] .filter-count {
  margin-right: 0;
  margin-left: auto;
}
html[dir="ltr"] .journey-line article {
  text-align: start;
}
html[dir="ltr"] .profile-back svg {
  transform: none;
}
@media (max-width: 1100px) and (min-width: 761px) {
  html[dir="ltr"] .dashboard .main {
    margin-left: 205px;
  }
  html[dir="ltr"] .topbar {
    gap: 8px;
    padding-inline: 16px;
  }
  html[dir="ltr"] .searchbox {
    max-width: 210px;
  }
  html[dir="ltr"] .breadcrumb {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  #dently-language-switch {
    padding: 7px 8px;
    min-height: 36px;
    font-size: 12px;
    gap: 4px;
  }
  #dently-language-switch svg {
    width: 15px;
    height: 15px;
  }
  .top-actions #dently-language-switch svg {
    display: none;
  }
  #dently-language-switch.language-floating {
    top: 12px;
    inset-inline-end: 12px;
  }
  html[dir="ltr"] .dashboard .main {
    margin: 0;
    width: 100%;
  }
  html[dir="ltr"] .dashboard .sidebar {
    transform: translateX(-100%);
  }
  html[dir="ltr"] .dashboard .sidebar.open {
    transform: translateX(0);
  }
  html[dir="ltr"] .user {
    border: 0;
    padding: 0;
  }
  html[dir="ltr"] .top-actions {
    gap: 6px !important;
  }
  html[dir="ltr"] .searchbox {
    max-width: none;
    min-width: 50px;
  }
  html[dir="ltr"] .nav-actions {
    gap: 8px;
  }
  html[dir="ltr"] .nav-actions .btn {
    font-size: 12px;
    padding-inline: 10px;
  }
  html[dir="ltr"] .hero-v2 h1 {
    font-size: clamp(38px, 9vw, 58px);
  }
  html[dir="ltr"] .profile-tabs button {
    font-size: 12px;
  }
  html[dir="ltr"] .journey-line article {
    padding-left: 80px;
    padding-right: 0;
  }
  html[dir="ltr"] .journey-icon {
    right: auto;
    left: 0;
  }
  html[dir="ltr"] .journey-line:before {
    right: auto;
    left: 25px;
  }
  html[dir="ltr"] .welcome > div:first-child {
    max-width: 100%;
  }
  html[dir="ltr"] .welcome-decoration {
    display: none;
  }
}
@media (max-width: 380px) {
  .top-actions #dently-language-switch {
    font-size: 11px;
    padding-inline: 6px;
  }
  .top-actions {
    gap: 5px !important;
  }
  html[dir="ltr"] .nav-actions .btn {
    font-size: 11px;
    padding-inline: 8px;
  }
  html[dir="ltr"] .landing-header .logo {
    font-size: 24px;
  }
}
@media print {
  #dently-language-switch {
    display: none !important;
  }
}
html[dir="ltr"] .workflow-shortcuts > :is(a, button) {
  min-width: 0;
  text-align: start;
  gap: 10px;
}
html[dir="ltr"] .workflow-shortcuts > :is(a, button) > div {
  min-width: 0;
  flex: 1;
}
html[dir="ltr"] .workflow-shortcuts small {
  overflow-wrap: anywhere;
}
html[dir="ltr"] .workflow-shortcuts > :is(a, button) > svg:last-child {
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
}
html[dir="ltr"] .stat-value {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html[dir="ltr"] svg:has(> path[d="M19 12H5 M11 6l-6 6 6 6"]) {
  transform: scaleX(-1);
}
@media (max-width: 1100px) and (min-width: 761px) {
  html[dir="ltr"] .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 380px) {
  html[dir="ltr"] .workflow-shortcuts {
    grid-template-columns: 1fr !important;
  }
  html[dir="ltr"] .workflow-shortcuts > :is(a, button) {
    padding: 13px;
  }
}
@media (max-width: 760px) {
  html[dir="ltr"] .landing-header .nav {
    gap: 8px;
  }
  html[dir="ltr"] .nav-actions .demo-preview-link {
    display: none;
  }
  html[dir="ltr"] .nav-actions .btn {
    white-space: nowrap;
    border-radius: 10px;
    gap: 6px;
  }
  html[dir="ltr"] .nav-actions .btn svg {
    display: none;
  }
  html[dir="ltr"] .nav-actions {
    gap: 7px;
    flex-shrink: 0;
  }
}
@media (max-width: 380px) {
  html[dir="ltr"] .landing-header .logo {
    font-size: 24px;
    gap: 7px;
  }
  html[dir="ltr"] .landing-header .brandmark {
    width: 28px;
  }
  html[dir="ltr"] .nav-actions #dently-language-switch {
    padding-inline: 6px;
    font-size: 11px;
  }
  html[dir="ltr"] .nav-actions #dently-language-switch svg {
    display: none;
  }
  html[dir="ltr"] .nav-actions .btn {
    font-size: 11px;
    padding-inline: 9px;
  }
}
