/* Shared clinic application, deliberately separate from the public demo. */
body[data-cloud-role] .clinic-hero {
  display: none;
}
body[data-cloud-role] .route-patients:has(.profile-header) .page-heading {
  display: none;
}
.tooth-unrecorded {
  color: #8d9fa8;
  background: #e6ecef;
}
.tooth-unrecorded > svg {
  fill: none;
  stroke-width: 1.5;
}
.side-nav [data-route="account"] {
  display: none;
}
.user[role="button"] {
  cursor: pointer;
}
.user[role="button"]:focus-visible {
  outline: 2px solid #087f73;
  outline-offset: 4px;
  border-radius: 10px;
}
.trial-info {
  font-size: 13px;
  line-height: 1.85;
  padding: 11px 15px;
  border: 1px solid #b7d2d8;
  background: #d6e9e8;
  color: #315e67;
  border-radius: 10px;
  margin: 0 0 20px;
}
[hidden] {
  display: none !important;
}
body {
  background: #e8f0f2;
}
.boot-error {
  max-width: 500px;
  margin: 15vh auto;
  padding: 30px;
  text-align: center;
}
.boot-error button {
  padding: 13px 24px;
  border-radius: 9px;
  background: #087f73;
  color: #fff;
  font: inherit;
}
.boot-error h1 {
  font: 800 44px Manrope;
  color: #12354d;
}
.auth-layout {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 45px 35px;
}
.auth-intro .logo {
  font-size: 35px;
  justify-content: flex-start;
  margin-bottom: 45px;
}
.auth-label {
  display: block;
  font-size: 14px;
  color: #087568;
  margin-bottom: 17px;
}
.auth-intro h1 {
  font-size: 44px;
  line-height: 1.6;
  letter-spacing: -1px;
  max-width: 460px;
  margin: 0 0 20px;
}
.auth-intro > p {
  font-size: 18px;
  color: #3f6071;
  line-height: 1.95;
  max-width: 480px;
}
.auth-benefits {
  display: grid;
  gap: 15px;
  margin: 32px 0;
}
.auth-benefits span {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  color: #234e61;
}
.auth-benefits svg {
  width: 24px;
  height: 24px;
  padding: 9px;
  box-sizing: content-box;
  background: #cfe6df;
  border: 1px solid #adcfc1;
  border-radius: 12px;
  stroke: #087568;
}
.auth-intro > a:last-child {
  display: inline-block;
  color: #087568;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #9dcac0;
}
.auth-card {
  padding: 35px 37px;
  background: #f6faf9;
  border: 1px solid #c2d9db;
  border-radius: 25px;
  box-shadow: 0 18px 60px #12384c12;
  position: relative;
  overflow: hidden;
}
.auth-card:before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #123b50, #0e9f8e, #92d7c7);
}
.auth-back {
  font-size: 13px;
  color: #466778;
}
.auth-card h2 {
  font-size: 27px;
  line-height: 1.7;
  margin: 22px 0 10px;
}
.auth-card > p {
  font-size: 15px;
  line-height: 1.85;
  color: #426171;
}
.auth-card label,
.practice-settings label,
.account-settings label {
  font-size: 15px;
  line-height: 1.8;
  display: block;
  margin: 20px 0;
  color: #244c60;
}
.auth-card input,
.practice-settings input:not([type="checkbox"]),
.practice-settings textarea,
.account-settings input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  background: #e8f2ef;
  border: 1px solid #bad3cc;
  border-radius: 10px;
  box-sizing: border-box;
  color: #163b50;
  margin-top: 7px;
}
.auth-card input:focus,
.practice-settings input:focus,
.practice-settings textarea:focus {
  outline: 2px solid #0b8b7b;
  outline-offset: 2px;
  background: #f3faf6;
}
.auth-card [type="submit"] {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  margin: 24px 0 15px;
}
.auth-card .auth-hint,
.auth-recovery {
  font-size: 13px;
  color: #435f6c;
  line-height: 1.85;
}
.auth-switch {
  font-size: 15px;
  color: #08695c;
  display: block;
  text-align: center;
  margin-top: 15px;
}
.auth-card footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  border-top: 1px solid #d0e0e2;
  padding-top: 18px;
  margin-top: 24px;
  color: #496776;
  font-size: 13px;
}
.policy-page {
  max-width: 850px;
  padding: 45px 25px;
  margin: 0 auto;
  color: #234b5f;
}
.policy-page > .logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 25px;
}
.policy-page h1 {
  font-size: 32px;
  margin: 25px 0;
}
.policy-page h2 {
  font-size: 22px;
  margin-top: 30px;
}
.policy-page p {
  font-size: 17px;
  line-height: 2;
}
.demo-preview-link {
  font-size: 14px;
  color: #087568;
}
.onboarding {
  max-width: 850px;
  margin: 0 auto;
  padding: 35px 22px;
}
.onboarding > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.onboarding > header .logo {
  margin: 0;
}
.onboarding > header button {
  font-size: 14px;
  color: #356071;
  background: none;
}
.practice-settings {
  padding: 30px !important;
}
.practice-settings h2 {
  font-size: 27px;
}
.practice-settings > p {
  font-size: 16px;
  color: #456473;
}
.setup-step {
  display: inline-block;
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 13px;
  background: #c5e3d8;
  color: #185b4a;
  margin-bottom: 15px;
}
.working-days {
  border: 1px solid #bdd4d0;
  border-radius: 12px;
  padding: 10px 15px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.working-days legend {
  font-size: 15px;
  padding: 0 7px;
}
.working-days label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #d5e8df;
  border: 1px solid #b5d1c4;
  border-radius: 8px;
  margin: 5px 0;
  padding: 7px 10px;
  font-size: 14px;
}
.working-days input {
  width: 17px;
  height: 17px;
  accent-color: #087f73;
}
.practice-settings [type="submit"] {
  margin-top: 20px;
  min-width: 210px;
}
.leave-settings {
  border-top: 1px solid #bed4ce;
  margin-top: 32px;
  padding-top: 25px;
}
.leave-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  background: #dce9ed;
  border: 1px solid #c0d6dd;
  border-radius: 10px;
  padding: 13px;
  margin: 10px 0;
  font-size: 14px;
}
.leave-row button {
  margin-right: auto;
  font-size: 13px;
  color: #774055;
  background: #eddfe5;
  border: 1px solid #d3b7c4;
  border-radius: 7px;
  padding: 7px 10px;
}
.cloud-settings-tabs,
.today-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 7px;
  background: #d7e6e9;
  border: 1px solid #b9d2d8;
  border-radius: 13px;
}
.cloud-settings-tabs button,
.today-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 15px;
  background: none;
  color: #32596b;
  flex: 1;
  white-space: nowrap;
}
.cloud-settings-tabs .active,
.today-tabs .active {
  background: #18495c;
  color: #fff;
  box-shadow: 0 4px 12px #143b4c18;
}
.today-tabs svg {
  width: 19px;
  height: 19px;
}
.cloud-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cloud-quick-actions .btn {
  font-size: 14px;
  gap: 7px;
  padding: 9px 13px;
}
.cloud-quick-actions svg {
  height: 17px;
  width: 17px;
}
.cloud-sync {
  font-size: 12px;
  line-height: 1.65;
  background: #d6e9df;
  color: #225a48;
  border: 1px solid #b4d2bf;
  border-radius: 25px;
  padding: 6px 10px;
  white-space: nowrap;
}
.cloud-saving:after {
  content: "جارٍ تأكيد الحفظ على الخادم…";
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f1f49c;
  backdrop-filter: blur(1px);
  font-size: 19px;
  font-weight: 600;
  color: #103b51;
}
.cloud-saving {
  cursor: progress;
}
.subscription-warning {
  font-size: 15px;
  line-height: 1.9;
  padding: 15px 18px;
  background: #efe0e4;
  border: 1px solid #d5bac6;
  border-radius: 12px;
  color: #703c50;
}
.demo-workspace .demo-label a {
  margin-right: 12px;
  color: #075e54;
  text-decoration: underline;
}
.demo-label button {
  margin-right: 15px;
  font-size: 13px;
  background: none;
  color: #286075;
  text-decoration: underline;
}
#switch-clinic {
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #b7d0d3;
  border-radius: 9px;
  color: #1c4c60;
  background: #e2f0eb;
}
.side-nav [data-route="calendar"],
.side-nav [data-route="appointments"],
.side-nav [data-route="treatments"] {
  display: none;
}
.side-nav [data-route="reception"] > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard .dash-content:has(> .section-visual-header) > .page-heading {
  margin-bottom: 16px;
}
.dashboard .section-visual-header .eyebrow,
.calendar-intro .eyebrow,
.clinic-hero .eyebrow {
  display: none;
}
.dashboard .section-visual-header {
  min-height: 120px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.dashboard .section-visual-header h2 {
  font-size: 24px;
}
.dashboard .clinic-hero {
  min-height: 185px;
}
.dashboard .clinic-hero-content {
  padding: 25px;
}
.dashboard .clinic-hero h2 {
  font-size: 25px;
  margin-top: 0;
}
.team-list {
  display: grid;
  gap: 13px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #bdd5cc;
  background: #deece5;
  padding: 17px;
  border-radius: 13px;
}
.team-card > div {
  flex: 1;
  min-width: 0;
}
.team-card strong {
  display: block;
  font-size: 17px;
  color: #1b4a5a;
}
.team-card small {
  display: block;
  font-size: 13px;
  margin: 5px 0;
  color: #3a5f6c;
  overflow-wrap: anywhere;
}
.team-card > div > span {
  font-size: 13px;
  color: #355f57;
}
.permission-guide {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #bbd3df;
  background: #deebf1;
  border-radius: 12px;
}
.permission-guide p {
  font-size: 14px;
  color: #355b6d;
  margin: 7px 0;
}
.audit-list {
  display: grid;
  gap: 10px;
}
.audit-list article {
  display: flex;
  align-items: start;
  gap: 13px;
  border: 1px solid #bfd5dd;
  border-radius: 12px;
  background: #e2edf2;
  padding: 16px;
}
.audit-list article > span {
  padding: 8px;
  background: #cee1e7;
  border: 1px solid #aecad4;
  border-radius: 9px;
}
.audit-list svg {
  width: 20px;
  height: 20px;
}
.audit-list strong {
  font-size: 15px;
}
.audit-list p {
  font-size: 14px;
  color: #365e70;
  margin: 4px 0;
}
.audit-list small {
  font-size: 12px;
}
.audit-list article > b {
  margin-right: auto;
  font: 500 13px Manrope;
  color: #3d6171;
}
.account-settings {
  max-width: 650px;
}
.account-settings form {
  border-top: 1px solid #c5d8df;
  margin-top: 22px;
  padding-top: 5px;
}
.import-preview {
  background: #dbeae3;
  border: 1px solid #b5d2c3;
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
}
.import-preview p {
  font-size: 14px;
  line-height: 1.9;
}
.import-preview label {
  font-size: 14px;
  display: block;
  margin: 15px 0;
}
.import-preview input {
  display: block;
  width: 100%;
  font: inherit;
  padding: 11px;
  border: 1px solid #b2cec1;
  border-radius: 9px;
  margin-top: 7px;
}
.platform-clinics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.platform-clinics article {
  padding: 20px;
  border: 1px solid #bbd2dd;
  background: #dce9f0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.platform-clinics h3 {
  font-size: 20px;
  margin: 0 0 7px;
}
.platform-clinics p {
  font-size: 14px;
  color: #395e70;
  margin: 5px 0;
}
.platform-clinics small {
  font-size: 13px;
}
.platform-clinics .row-menu {
  margin-right: auto;
  flex-shrink: 0;
}
.platform-backup {
  margin-top: 24px;
}
.platform-backup > p {
  font-size: 15px;
}
.platform-backup .btn {
  margin: 10px 0;
}
.dental-chart {
  background: linear-gradient(130deg, #e5eeed, #dce8ef) !important;
}
.jaw-label {
  text-align: center;
  font-size: 15px;
  color: #365d6e;
  margin: 25px 0 17px;
}
.tooth-row {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 5px;
  padding: 16px 10px;
  background: #edf5f5;
  border: 1px solid #c5dbe0;
  border-radius: 50% 50% 20px 20px / 25px 25px 20px 20px;
}
.tooth-row:has(> :nth-child(10):last-child) {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  max-width: 750px;
  margin: auto;
}
.tooth-item {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 8px 3px;
  background: #e5efeb;
  border: 1px solid #c0d7cd;
  border-radius: 13px;
  color: #286256;
  min-width: 0;
  transition: transform 0.18s;
}
.tooth-item:hover {
  transform: translateY(-5px);
}
.tooth-item > svg {
  width: 100%;
  height: 43px;
  max-width: 35px;
  fill: currentColor;
  stroke-width: 1;
  filter: drop-shadow(0 3px 2px #1b485513);
}
.tooth-item > span {
  font: 600 12px Manrope;
  color: #254b60;
}
.tooth-healthy {
  color: #7fa79d;
  background: #e3eee8;
}
.tooth-caries {
  color: #a35a6d;
  background: #f0dfe5;
}
.tooth-missing {
  color: #9caeb6;
  background: #e4e9ec;
}
.tooth-missing > svg {
  fill: none;
  stroke-dasharray: 3 2;
}
.tooth-filled {
  color: #6098b2;
  background: #dceaf2;
}
.tooth-crown {
  color: #8974aa;
  background: #e8e2f2;
}
.tooth-root {
  color: #bb7f63;
  background: #f1e4db;
}
.tooth-implant {
  color: #4e6c9a;
  background: #dde5f1;
}
.tooth-planned {
  color: #0d9587;
  background: #d3eee5;
}
.tooth-legend {
  display: flex;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tooth-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #325b6d;
}
.tooth-legend i {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
  border-radius: 4px;
}
.tooth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tooth-actions .btn {
  font-size: 14px;
}
.cloud-role-block {
  font-size: 14px;
  line-height: 1.9;
  color: #75445a;
  background: #eddee4;
  border: 1px solid #d7bac6;
  padding: 12px;
  border-radius: 10px;
}
@media (max-width: 1100px) {
  .auth-layout {
    gap: 35px;
    padding: 35px 25px;
  }
  .auth-intro h1 {
    font-size: 35px;
  }
  .auth-card {
    padding: 30px;
  }
  .cloud-sync {
    display: none;
  }
  .tooth-row {
    gap: 3px;
    padding: 13px 7px;
  }
  .tooth-item > svg {
    height: 35px;
  }
  .cloud-quick-actions .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}
@media (max-width: 760px) {
  .auth-layout {
    display: block;
    padding: 25px 18px;
    min-height: 100dvh;
  }
  .auth-intro {
    margin-bottom: 25px;
  }
  .auth-intro .logo {
    font-size: 29px;
    margin-bottom: 20px;
  }
  .auth-intro h1 {
    font-size: 28px;
    line-height: 1.65;
    max-width: none;
    margin-bottom: 10px;
  }
  .auth-intro > p {
    font-size: 16px;
  }
  .auth-benefits {
    display: none;
  }
  .auth-intro > a:last-child {
    font-size: 14px;
  }
  .auth-card {
    padding: 25px 23px;
    border-radius: 20px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .auth-card label {
    font-size: 15px;
  }
  .auth-card input {
    font-size: 16px;
  }
  .onboarding {
    padding: 20px 14px;
  }
  .practice-settings {
    padding: 22px !important;
  }
  .practice-settings h2 {
    font-size: 23px;
  }
  .practice-settings .form-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .working-days {
    gap: 6px;
    padding: 10px;
  }
  .working-days label {
    padding: 6px 8px;
    font-size: 13px;
  }
  .working-days input {
    width: 16px;
    height: 16px;
  }
  .cloud-settings-tabs {
    gap: 5px;
  }
  .cloud-settings-tabs button {
    font-size: 13px;
    min-height: 40px;
    padding: 7px 9px;
    flex: 1 1 30%;
  }
  .today-tabs a {
    font-size: 13px;
    padding: 8px;
    gap: 5px;
    white-space: normal;
    text-align: center;
  }
  .today-tabs svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }
  .cloud-quick-actions {
    gap: 7px;
  }
  .cloud-quick-actions .btn {
    font-size: 13px;
    min-height: 39px;
    padding: 8px 10px;
  }
  .cloud-quick-actions .btn:last-child:nth-child(3) {
    flex-basis: 100%;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-heading .heading-actions {
    width: 100%;
  }
  .cloud-quick-actions {
    width: 100%;
  }
  .cloud-quick-actions > .btn {
    flex: 1;
  }
  .dashboard .clinic-hero h2 {
    font-size: 23px;
  }
  .dashboard .section-visual-header {
    padding: 20px;
    min-height: 115px;
  }
  .platform-clinics {
    grid-template-columns: 1fr;
  }
  .platform-clinics article {
    padding: 17px;
  }
  .platform-clinics h3 {
    font-size: 18px;
  }
  .team-card {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .team-card > .avatar {
    width: 35px;
    height: 35px;
  }
  .team-card strong {
    font-size: 16px;
  }
  .team-card small {
    font-size: 12px;
  }
  .audit-list article {
    padding: 13px;
    gap: 10px;
  }
  .audit-list strong {
    font-size: 14px;
  }
  .audit-list article > b {
    font-size: 12px;
  }
  .tooth-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
    padding: 15px 10px;
    border-radius: 18px;
  }
  .tooth-row:has(> :nth-child(10):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tooth-item {
    padding: 9px 4px;
    gap: 5px;
  }
  .tooth-item > svg {
    height: 38px;
  }
  .tooth-item > span {
    font-size: 12px;
  }
  .tooth-legend {
    gap: 10px;
  }
  .tooth-legend span {
    font-size: 12px;
  }
  .tooth-actions .btn {
    width: 100%;
  }
  .policy-page {
    padding: 30px 20px;
  }
  .policy-page h1 {
    font-size: 27px;
  }
  .policy-page p {
    font-size: 16px;
  }
  .auth-label {
    font-size: 13px;
  }
  .dashboard .clinic-hero-visual {
    min-height: 180px;
  }
  .leave-row time {
    font-size: 13px;
  }
  .leave-row button {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tooth-item {
    transition: none;
    transform: none !important;
  }
}
