body.dark header .header__right .right__profile .profile__info .info__name{color:#fff}
body.dark header .header__right .right__profile .profile__info .info__email{color:rgba(255,255,255,.6)}
body.dark .modal__content input,body.dark .modal__content textarea,body.dark .modal__content select{color:#fff}
body.dark .modal__content input::placeholder,body.dark .modal__content textarea::placeholder{color:rgba(255,255,255,.6)}
body.dark input[data-kt-docs-table-filter="search"]{color:#fff;caret-color:#fff;-webkit-text-fill-color:#fff}
body.dark input[data-kt-docs-table-filter="search"]::placeholder{color:rgba(255,255,255,.6)}
body.dark header .header__actions .actions__language .language__dropdown{background:rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.45)}
body.dark header .header__actions .actions__language .language__dropdown .dropdown__btn{color:rgba(255,255,255,.75)}
.actions__language,.actions__language *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}
.actions__language ::selection{background:transparent;color:inherit}
.actions__language ::-moz-selection{background:transparent;color:inherit}
@media screen and (min-width: 780px){section.profile .profile__header .header__tab{padding:12px 32px;font-size:13px}header .header__right{margin-right:-4px}}

:root{
  --okv-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body{
  font-family: var(--okv-font-sans) !important;
}

body *{
  font-family: inherit !important;
}

/* Landing (index): step cards use `.content__tagline`, but main.css doesn't theme it (unreadable in dark theme). */
section.favorites .favorite__block.green .block__content .content__tagline{
  color: #fff;
}
body.dark section.favorites .favorite__block .block__content .content__tagline{
  color: rgba(255,255,255,.7);
}
body.dark section.favorites .favorite__block.green .block__content .content__tagline{
  color: rgba(255,255,255,.92);
}

/* Create-lens modal: template cards should not expand from long text */
#modal_create-lins .form-auth__zones{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#modal_create-lins .form-auth__zones .zones__block{
  min-width: 0;
}
#modal_create-lins .form-auth__zones .zones__block .block__title{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#modal_create-lins .form-auth__zones .zones__block .block__desc{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Create-lens modal: enforce custom checkbox square size */
#modal_create-lins .form-group input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#modal_create-lins .form-group label{
  display: flex;
  align-items: flex-start;
}
#modal_create-lins .form-group label::before{
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-block;
  box-sizing: border-box;
}
#modal_create-lins .form-group input[type="checkbox"]:focus-visible + label::before{
  outline: 3px solid rgba(14,117,131,.35);
  outline-offset: 2px;
}

/* Dark theme: keep the checkmark visible (main.css uses `background:` shorthand which resets background-image). */
#modal_create-lins .form-group input[type="checkbox"]:checked + label::before{
  background-image: url(../img/check.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
body.dark #modal_create-lins .form-group input[type="checkbox"]:checked + label::before{
  background-image: url(../img/check-white.svg);
}

/* Units: keep them readable in dark theme. */
.block__value .unit{
  margin-left: 4px;
  opacity: 0.85;
}
body.dark .block__value .unit{
  color: rgba(255,255,255,.85);
  opacity: 0.9;
}

/* Patient lens form: style duplicate select like action button (Select2). */
#btn-duplicate + .select2-container{
  width: auto !important;
}
#btn-duplicate + .select2-container .select2-selection--single{
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  background: #0E7583;
  box-shadow: 0px 12px 69.2px 0px rgba(14, 117, 131, 0.40);
  height: auto;
}
#btn-duplicate + .select2-container .select2-selection--single:hover{
  background: #000;
}
#btn-duplicate + .select2-container .select2-selection__rendered{
  color: #fff !important;
  padding-left: 0;
  padding-right: 28px;
  line-height: normal;
  white-space: nowrap;
}
#btn-duplicate + .select2-container .select2-selection__rendered .select2-selection__placeholder{
  color: #fff !important;
  opacity: 1;
}
#btn-duplicate + .select2-container .select2-selection__arrow{
  height: 100%;
  top: 0;
  right: 8px;
}
#btn-duplicate + .select2-container .select2-selection__arrow b{
  border-color: #fff transparent transparent transparent;
}
body.dark #btn-duplicate + .select2-container .select2-selection--single:hover{
  background: #000;
}

/* Patient lens form (dark): show glow on all action buttons. */
body.dark section.profile .profile__patient .patient__lens-form .block__actions .actions__btn.green{
  box-shadow: 0px 12px 69.2px 0px rgba(14, 117, 131, 0.40);
}
html[data-theme="dark"] section.profile .profile__patient .patient__lens-form .block__actions .actions__btn.green{
  box-shadow: 0px 12px 69.2px 0px rgba(14, 117, 131, 0.40);
}

/* Patient lens form (light): match Select2 "Duplicate" glow for all green action buttons. */
body.light section.profile .profile__patient .patient__lens-form .block__actions .actions__btn.green{
  box-shadow: 0px 12px 69.2px 0px rgba(14, 117, 131, 0.40);
}
html[data-theme="light"] section.profile .profile__patient .patient__lens-form .block__actions .actions__btn.green{
  box-shadow: 0px 12px 69.2px 0px rgba(14, 117, 131, 0.40);
}

/* Pricing: align like in design (button left, price right). */
section.tarif-preview .tarif-preview__grid .grid__block .block__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
section.tarif-preview .tarif-preview__grid .grid__block .block__footer .footer__btn{
  flex: 0 0 auto;
  white-space: nowrap;
}
section.tarif-preview .tarif-preview__grid .grid__block .block__footer .footer__price{
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
}
section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer .footer__btn{
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 24px; /* fallback when flex gap is tight/unsupported */
}
section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer .footer__price{
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  padding-left: 0;
  text-align: right;
}

/* Landing (index): "steps" cards reuse `favorite__block` but are placed inside `section.tablet`,
   so main.css dark-theme rules scoped to `section.favorites` don't apply. */
body.dark section.tablet .favorite__block{
  background: #1d2b2c;
}
body.dark section.tablet .favorite__block .content__title{
  color: #fff;
}
body.dark section.tablet .favorite__block .content__tagline,
body.dark section.tablet .favorite__block .content__desc{
  color: rgba(255,255,255,.7);
}
body.dark section.tablet .favorite__block.green .content__tagline,
body.dark section.tablet .favorite__block.green .content__desc{
  color: rgba(255,255,255,.92);
}

/* Clinic tables (patients/projects): remove focus "boxes" on row click (table rows are focusable via tabindex). */
.okv-patients #myTable tbody tr.patient-row-link:focus,
.okv-patients #myTable tbody tr.patient-row-link:focus-visible,
.okv-patients #myTable tbody tr.patient-row-link:focus-within,
.okv-projects #myTable tbody tr.project-row-link:focus,
.okv-projects #myTable tbody tr.project-row-link:focus-visible,
.okv-projects #myTable tbody tr.project-row-link:focus-within{
  outline: none !important;
}
.okv-patients #myTable tbody tr.patient-row-link:focus > *,
.okv-patients #myTable tbody tr.patient-row-link:focus-visible > *,
.okv-patients #myTable tbody tr.patient-row-link:focus-within > *,
.okv-projects #myTable tbody tr.project-row-link:focus > *,
.okv-projects #myTable tbody tr.project-row-link:focus-visible > *,
.okv-projects #myTable tbody tr.project-row-link:focus-within > *{
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable tbody tr:focus > *,
.okv-patients #myTable tbody tr:focus-visible > *,
.okv-patients #myTable tbody tr:focus-within > *,
.okv-patients #myTable tbody tr:active > *,
.okv-projects #myTable tbody tr:focus > *,
.okv-projects #myTable tbody tr:focus-visible > *,
.okv-projects #myTable tbody tr:focus-within > *,
.okv-projects #myTable tbody tr:active > *{
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  border: 0 !important;
}
.okv-patients #myTable tbody td:active,
.okv-patients #myTable tbody td:focus,
.okv-patients #myTable tbody td:focus-visible,
.okv-patients #myTable tbody td:focus-within,
.okv-patients #myTable tbody th:active,
.okv-patients #myTable tbody th:focus,
.okv-patients #myTable tbody th:focus-visible,
.okv-patients #myTable tbody th:focus-within,
.okv-projects #myTable tbody td:active,
.okv-projects #myTable tbody td:focus,
.okv-projects #myTable tbody td:focus-visible,
.okv-projects #myTable tbody td:focus-within,
.okv-projects #myTable tbody th:active,
.okv-projects #myTable tbody th:focus,
.okv-projects #myTable tbody th:focus-visible,
.okv-projects #myTable tbody th:focus-within,
.okv-patients #myTable tbody td.dt-cell-selected,
.okv-patients #myTable tbody th.dt-cell-selected,
.okv-projects #myTable tbody td.dt-cell-selected,
.okv-projects #myTable tbody th.dt-cell-selected{
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  border: 0 !important;
}
.okv-patients #myTable tbody tr:active > td,
.okv-patients #myTable tbody tr:active > th,
.okv-patients #myTable tbody tr:focus > td,
.okv-patients #myTable tbody tr:focus > th,
.okv-patients #myTable tbody tr:focus-visible > td,
.okv-patients #myTable tbody tr:focus-visible > th,
.okv-patients #myTable tbody tr:focus-within > td,
.okv-patients #myTable tbody tr:focus-within > th,
.okv-projects #myTable tbody tr:active > td,
.okv-projects #myTable tbody tr:active > th,
.okv-projects #myTable tbody tr:focus > td,
.okv-projects #myTable tbody tr:focus > th,
.okv-projects #myTable tbody tr:focus-visible > td,
.okv-projects #myTable tbody tr:focus-visible > th,
.okv-projects #myTable tbody tr:focus-within > td,
.okv-projects #myTable tbody tr:focus-within > th{
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  border: 0 !important;
}
.okv-patients #myTable tbody td,
.okv-patients #myTable tbody th,
.okv-projects #myTable tbody td,
.okv-projects #myTable tbody th{
  -webkit-tap-highlight-color: transparent;
}
.okv-patients #myTable.dataTable > tbody > tr > *,
.okv-projects #myTable.dataTable > tbody > tr > *,
.okv-patients #myTable.dataTable.display > tbody > tr > *,
.okv-projects #myTable.dataTable.display > tbody > tr > *,
.okv-patients #myTable.dataTable.cell-border > tbody > tr > *,
.okv-projects #myTable.dataTable.cell-border > tbody > tr > *{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable.dataTable.hover > tbody > tr:hover > *,
.okv-projects #myTable.dataTable.hover > tbody > tr:hover > *,
.okv-patients #myTable.dataTable.display > tbody > tr:hover > *,
.okv-projects #myTable.dataTable.display > tbody > tr:hover > *{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable :focus,
.okv-patients #myTable :focus-visible,
.okv-projects #myTable :focus,
.okv-projects #myTable :focus-visible{
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable tbody tr.selected,
.okv-patients #myTable tbody tr.selected > *,
.okv-projects #myTable tbody tr.selected,
.okv-projects #myTable tbody tr.selected > *{
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable tbody td.selected,
.okv-patients #myTable tbody th.selected,
.okv-projects #myTable tbody td.selected,
.okv-projects #myTable tbody th.selected,
.okv-patients #myTable tbody tr.dt-row-selected,
.okv-projects #myTable tbody tr.dt-row-selected,
.okv-patients #myTable tbody tr.dt-row-selected > *,
.okv-projects #myTable tbody tr.dt-row-selected > *,
.okv-patients #myTable tbody tr.dt-rowSelected,
.okv-projects #myTable tbody tr.dt-rowSelected,
.okv-patients #myTable tbody tr.dt-rowSelected > *,
.okv-projects #myTable tbody tr.dt-rowSelected > *{
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.okv-patients #myTable tbody td.selected,
.okv-projects #myTable tbody td.selected,
.okv-patients #myTable tbody th.selected,
.okv-projects #myTable tbody th.selected{
  border: 0 !important;
}
.okv-patients #myTable tbody td.focus,
.okv-patients #myTable tbody th.focus,
.okv-projects #myTable tbody td.focus,
.okv-projects #myTable tbody th.focus,
.okv-patients #myTable tbody td.dt-hasFocus,
.okv-patients #myTable tbody th.dt-hasFocus,
.okv-projects #myTable tbody td.dt-hasFocus,
.okv-projects #myTable tbody th.dt-hasFocus{
  outline: none !important;
  box-shadow: none !important;
}
.okv-patients #myTable tbody td:focus,
.okv-patients #myTable tbody td:focus-visible,
.okv-patients #myTable tbody th:focus,
.okv-patients #myTable tbody th:focus-visible,
.okv-projects #myTable tbody td:focus,
.okv-projects #myTable tbody td:focus-visible,
.okv-projects #myTable tbody th:focus,
.okv-projects #myTable tbody th:focus-visible,
.okv-patients #myTable tbody td.focus,
.okv-patients #myTable tbody th.focus,
.okv-projects #myTable tbody td.focus,
.okv-projects #myTable tbody th.focus,
.okv-patients #myTable tbody td.dt-hasFocus,
.okv-patients #myTable tbody th.dt-hasFocus,
.okv-projects #myTable tbody td.dt-hasFocus,
.okv-projects #myTable tbody th.dt-hasFocus{
  border-color: transparent !important;
  border: 0 !important;
}

/* Landing page (favorites): constrain step images (new assets are large). */
section.favorites .favorite__block > img,
section.favorites .favorite__block img{
  flex: 0 0 auto;
  display: block;
  width: clamp(240px, 28vw, 360px);
  height: auto;
  max-width: 100%;
  max-height: 260px;
  border-radius: 24px;
  object-fit: contain;
  object-position: center;
}

@media screen and (max-width: 557px){
  section.favorites .favorite__block > img,
  section.favorites .favorite__block img{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Pricing: consistent inner layout (month/year pairs + note). */
.footer__price[data-plan-price]{
  padding-right: 12px; /* breathing room from card edge */
}

/* Subscription (Individual): price + note in one row. */
.footer__price[data-plan-price] .okv-price__wrap.okv-price__wrap--with-note{
  gap: 10px;
}

.footer__price[data-plan-price] .okv-price__note.okv-price__note--inline{
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  max-width: none;
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.75;
}
.footer__price[data-plan-price] b{
  margin-bottom: 0 !important; /* override main.css negative margin */
  line-height: 1.05;
}
.footer__price[data-plan-price] [data-price-for]{
  display: block;
}
.footer__price[data-plan-price] .okv-price__wrap{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
}
.footer__price[data-plan-price] .okv-price__pair{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.footer__price[data-plan-price] .okv-price__unit{
  white-space: nowrap;
  font-size: 12px;
  opacity: 0.85;
}
.footer__price[data-plan-price] .okv-price__note{
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.75;
  max-width: 220px;
}

/* Price sizes: a bit smaller and cleaner than default 40px. */
.footer__price[data-plan-price] .okv-price__pair b{
  font-size: 30px !important;
}
.footer__price[data-plan-price] .okv-price__wrap .okv-price__pair:nth-child(2) b{
  font-size: 28px !important;
}

@media (max-width: 700px){
  section.tarif-preview .tarif-preview__grid .grid__block .block__footer,
  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer{
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 12px;
  }

  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer{
    gap: 26px;
  }

  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer .footer__btn{
    margin-right: 12px;
  }

  section.tarif-preview .tarif-preview__grid .grid__block .block__footer .footer__btn,
  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer .footer__btn{
    padding: 12px 14px;
    font-size: 15px;
    gap: 8px;
  }

  .footer__price[data-plan-price] .okv-price__pair b{
    font-size: 26px !important;
  }

  .footer__price[data-plan-price] .okv-price__wrap .okv-price__pair:nth-child(2) b{
    font-size: 24px !important;
  }

  .footer__price[data-plan-price] .okv-price__note{
    max-width: 180px;
  }
}

@media (max-width: 560px){
  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer{
    gap: 22px;
  }

  section.tarif-preview .tarif-preview__grid .grid__block .block__footer .footer__btn,
  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer .footer__btn{
    padding: 10px 12px;
    font-size: 14px;
    gap: 8px;
  }

  .footer__price[data-plan-price] .okv-price__wrap{
    gap: 10px;
  }

  .footer__price[data-plan-price] .okv-price__unit{
    font-size: 11px;
  }

  .footer__price[data-plan-price] .okv-price__pair b{
    font-size: 22px !important;
  }

  .footer__price[data-plan-price] .okv-price__wrap .okv-price__pair:nth-child(2) b{
    font-size: 20px !important;
  }

  .footer__price.footer__price--note[data-plan-price] .okv-price__note{
    font-size: 10px;
  }
}

@media (max-width: 500px){
  section.tarif-preview .tarif-preview__grid .grid__block .block__footer,
  section.profile .profile__content .content__content .content__subscription .subscriptions__plans .plans__block .block__footer{
    flex-direction: row;
  }
}

@media (max-width: 420px){
  .footer__price[data-plan-price] .okv-price__wrap{
    flex-wrap: nowrap; /* never move price to next line */
    gap: 10px;
  }
  .footer__price[data-plan-price] .okv-price__pair b{ font-size: 18px !important; }
  .footer__price[data-plan-price] .okv-price__wrap .okv-price__pair:nth-child(2) b{ font-size: 16px !important; }

  .footer__price.footer__price--note[data-plan-price] .okv-price__note{
    font-size: 9px;
  }
}

/* Hide the disabled placeholder option in the dropdown results. */
#select2-btn-duplicate-results .select2-results__option[aria-disabled="true"]{
  display: none;
}

/* Account menu dropdown (Profile/Admin/Logout) */
.account-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-menu__toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-menu__caret{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}
.account-menu__dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 2500;
  display: none;
}
.account-menu.active .account-menu__dropdown{
  display: block;
}
.account-menu__item{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.account-menu__item:hover,
.account-menu__item:active{
  background: rgba(14,117,131,0.10);
}
.account-menu__item--danger{
  color: #C62525;
}
.account-menu__item--danger:hover,
.account-menu__item--danger:active{
  background: rgba(198,37,37,0.08);
}
body.dark .account-menu__dropdown{
  background: #0D1E20;
  border-color: #2F353B;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
body.dark .account-menu__item:hover,
body.dark .account-menu__item:active{
  background: rgba(14,117,131,0.18);
}
