/* v1.4: readable, calm clinic workspace; existing controls remain available. */
:root {
  --navy: #153d59;
  --blue: #087f96;
  --blue-pale: #e9f6f8;
  --ink: #20364b;
  --muted: #64768a;
  --bg: #f3f6fa;
  --line: #e1e8ef;
  --radius: 16px;
}
body {
  font-size: 15px;
  background: var(--bg);
}
html[lang="en"] body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    "Noto Sans Bengali",
    sans-serif;
  line-height: 1.6;
}
#sidebar {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding-top: 28px;
  box-shadow: 2px 0 12px #173d5903;
  overflow-y: auto;
}
#sidebar .wordmark {
  padding-bottom: 30px;
  color: #16416b;
}
.wordmark small {
  letter-spacing: 0.2px;
  line-height: 1.6;
  font-size: 11px;
}
.brand-logo {
  border-radius: 0;
  background: transparent;
}
.nav-item {
  color: #566c7d;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #f3f7fa;
  color: #176079;
}
.nav-item.active {
  background: #e5f3f6;
  color: #066d83;
  box-shadow: inset 3px 0 #0a8198;
}
.nav-icon {
  font-size: 20px;
}
.sidebar-bottom {
  color: #6a7c8a;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}
.sidebar-bottom #current-user {
  color: #253f56;
  font-weight: 600;
}
.quiet:hover {
  color: #077c91;
}
.topbar {
  height: auto;
  min-height: 84px;
  padding: 16px 30px;
  gap: 16px;
  background: #ffffffea;
}
.global-search {
  border: 1px solid #e1e8ee;
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  max-width: 620px;
  background: #f8fafc;
}
.global-search span {
  font-size: 23px;
}
.global-search button {
  background: #e6f1f6;
  color: #285b75;
}
.today-label {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.language-control {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  flex-shrink: 0;
  color: #537087;
  background: white;
}
.language-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #25465b;
  font-size: 13px;
  max-width: 92px;
  padding: 5px 0;
}
.auth-language {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.auth-language .language-control {
  padding: 1px 8px;
}
.auth-card {
  box-shadow: 0 22px 65px #173d5910;
  border: 1px solid #dfe8ef;
  border-radius: 22px;
}
.auth-wrap {
  background:
    radial-gradient(ellipse at 20% 15%, #e4f2f8, transparent 60%), #f7f9fc;
}
main#main {
  padding-top: 28px;
}
h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
.page-head .sub {
  font-size: 13px;
  max-width: 620px;
}
.eyebrow {
  letter-spacing: 1.8px;
  font-size: 10px;
  color: #708898;
}
.panel {
  border: 1px solid #e0e7ee;
  border-radius: 16px;
  box-shadow: 0 3px 12px #183a5604;
  overflow: hidden;
}
.panel-head {
  padding: 18px 22px;
  background: #fff;
}
.panel-body {
  padding: 20px 22px;
}
.panel-head h2 {
  margin: 0;
}
.stat {
  background: #fff;
  border: 1px solid #e0e7ee;
  border-radius: 16px;
  padding: 23px;
  box-shadow: 0 4px 15px #14365204;
}
.stat.featured {
  background: #e8f5f2;
  border-color: #c7e5df;
  color: #155e50;
}
.stat.featured .stat-label,
.stat.featured .stat-note {
  color: #4c786e;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 12px;
}
.stat-label {
  font-size: 13px;
}
.money-summary .stat:nth-child(2) {
  border-top: 3px solid #37a58c;
}
.money-summary .stat:nth-child(3) {
  border-top: 3px solid #dfb05b;
}
.btn {
  border-radius: 9px;
  font-size: 13px;
  min-height: 39px;
  padding: 8px 13px;
  box-shadow: none;
}
.btn.primary {
  background: #087f96;
  border-color: #087f96;
  color: #fff;
}
.btn.primary:hover {
  background: #066d82;
}
.btn.previous-btn {
  color: #926024;
  background: #fff8ed;
  border-color: #edd6b6;
}
.btn.danger {
  background: #fff3f2;
  border-color: #eed0ce;
  color: #a94e49;
}
.btn.small {
  min-height: 32px;
  font-size: 12px;
}
.previous-notice {
  background: #fff8ed;
  border-color: #ecd7b9;
  color: #815826;
}
th {
  background: #f7f9fb;
  color: #668093;
  font-size: 12px;
  font-weight: 600;
}
td {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
}
tbody tr:hover {
  background: #f9fcfd;
}
.number {
  font-variant-numeric: tabular-nums;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
}
.name-link {
  font-weight: 600;
  color: #176381;
}
.secondary {
  font-size: 11px;
  line-height: 1.6;
}
.table-wrap {
  border-top: 1px solid #edf1f5;
}
.tabs {
  gap: 7px;
  border-bottom: 0;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.tab {
  border: 1px solid #dfe7ee;
  background: white;
  border-radius: 9px;
  font-size: 13px;
  padding: 9px 15px;
}
.tab.active {
  background: #e5f3f6;
  border-color: #bcdde4;
  color: #0b6c80;
}
.patient-banner {
  background: #fff;
  border: 1px solid #dae6ee;
  border-radius: 18px;
  box-shadow: 0 3px 15px #143d5805;
  padding: 24px;
  flex-wrap: wrap;
}
.patient-banner .actions {
  flex-wrap: wrap;
  max-width: 100%;
  gap: 8px;
}
.patient-banner h1 {
  font-size: 26px;
}
.patient-meta {
  font-size: 13px;
}
.avatar {
  background: #e7f3f8;
  color: #247695;
  border-radius: 15px;
}
.field > span {
  font-size: 13px;
  color: #50687b;
  font-weight: 550;
}
.field input,
.field select,
.field textarea,
.control {
  border-radius: 9px;
  border-color: #d6e1e9;
  padding: 10px 12px;
  background: #fff;
  min-height: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #65b4c1;
  box-shadow: 0 0 0 3px #087f9610;
}
.advanced-options {
  border-radius: 11px;
  background: #f9fbfc;
}
.advanced-options summary {
  font-size: 13px;
  color: #597385;
}
.notice {
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.payment-preview {
  border-radius: 13px;
}
.preview-row strong {
  font-size: 23px;
}
dialog {
  border-radius: 18px;
  box-shadow: 0 28px 90px #163b5933;
}
.modal-head {
  padding: 20px 24px;
  background: #f9fbfd;
  border-bottom: 1px solid #e5ebf0;
}
.modal-head h2 {
  font-size: 20px;
}
.form-actions {
  gap: 9px;
}
.item-editor {
  border-radius: 12px;
  background: #f9fbfd;
}
.app-footer {
  font-size: 11px;
  color: #8b9aa8;
}
@media (max-width: 1180px) {
  .topbar {
    padding: 15px 22px;
  }
  .topbar .today-label {
    display: none;
  }
  main#main {
    padding: 24px;
  }
  .patient-banner .actions {
    margin-left: 0;
  }
  .stat-value {
    font-size: 25px;
  }
}
@media (max-width: 800px) {
  .topbar {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .global-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .language-control {
    margin-left: auto;
  }
  .topbar .today-label {
    display: none;
  }
  main#main {
    padding: 18px 12px;
  }
  .page-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .panel-head,
  .panel-body {
    padding: 16px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
  .patient-banner {
    padding: 18px;
    gap: 14px;
  }
  .patient-banner .actions {
    width: 100%;
  }
  .tabs {
    gap: 5px;
  }
  .tab {
    padding: 8px 10px;
    font-size: 12px;
  }
  .money-summary .stat {
    padding: 12px;
  }
  .money-summary .stat-value {
    font-size: 19px;
  }
  .modal-head {
    padding: 16px;
  }
  .auth-card {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* v1.4.1 — Dental Express blue with distinct financial colors. */
body {
  background: linear-gradient(125deg, #edf5ff 0%, #f4f1ff 55%, #ecf9f7 100%);
}
#sidebar {
  background: linear-gradient(165deg, #124c89 0%, #173d76 55%, #182e60 100%);
  border-right: 0;
  color: #fff;
}
#sidebar .wordmark {
  color: #fff;
}
#sidebar .wordmark small {
  color: #c8e4ff;
}
#sidebar .brand-logo {
  background: #fff;
  padding: 4px;
  border-radius: 9px;
}
.nav-item {
  color: #dbeaff;
}
.nav-item:hover {
  background: #ffffff16;
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(100deg, #e1f7ff, #edf0ff);
  color: #104b7d;
  box-shadow: inset 4px 0 #3ad1df;
}
.sidebar-bottom {
  border-color: #ffffff29;
  color: #d1e4ff;
}
.sidebar-bottom #current-user {
  color: #fff;
}
.sidebar-bottom .quiet {
  color: #dbeaff;
}
.sidebar-bottom .quiet:hover {
  color: #fff;
}
.topbar {
  border-bottom: 2px solid #d7e7fa;
  background: #ffffffef;
}
.global-search {
  background: #f0f6ff;
  border-color: #cdddf4;
}
.global-search button {
  background: #166aba;
  color: #fff;
}
.btn.primary {
  background: linear-gradient(110deg, #1477ce, #0868a4);
  border-color: #116cba;
  color: #fff;
}
.btn.primary:hover {
  background: #105fa5;
}
.btn.previous-btn {
  background: #fff0d1;
  border-color: #efc378;
  color: #85500d;
}
.btn[data-action="payment"] {
  background: linear-gradient(115deg, #087c69, #14936b);
  border-color: #087c69;
  color: #fff;
}
.btn[data-action="invoice"] {
  background: #e9eaff;
  border-color: #c9caf2;
  color: #5042a2;
}
.btn[data-action="rx-pad"] {
  background: linear-gradient(110deg, #6b50b7, #4f5bc0);
  border-color: #6650b6;
  color: white;
}
.btn[data-action="appointment"] {
  background: #e3f4ff;
  border-color: #b8ddee;
  color: #156185;
}
.stat {
  border-top: 3px solid #5491df;
}
.stats .stat:nth-child(1) {
  background: #edf4ff;
  border-color: #b9d2f3;
}
.stats .stat:nth-child(2) {
  background: #f1edff;
  border-color: #d5c9f1;
}
.stat.featured {
  background: #def4eb;
  border-color: #a7dac8;
  color: #145d48;
}
.money-summary .stat:nth-child(1) {
  background: #e9f2ff;
  border-color: #bdd5f5;
  border-top-color: #287bd0;
}
.money-summary .stat:nth-child(2) {
  background: #e2f6ee;
  border-color: #b3ddca;
  border-top-color: #209e75;
}
.money-summary .stat:nth-child(3) {
  background: #fff1d9;
  border-color: #ecd1a4;
  border-top-color: #d89b38;
}
.panel-head {
  background: linear-gradient(110deg, #eef5ff, #f8faff);
  border-bottom: 1px solid #e0e9f5;
}
.patient-banner {
  background: linear-gradient(115deg, #fff 40%, #edf4ff 100%);
  border-top: 4px solid #317dcb;
}
.avatar {
  background: #dceaff;
  color: #2262a3;
}
.tab.active {
  background: #dceaff;
  color: #155895;
  border-color: #a8c8ec;
}
.tab:hover {
  background: #edf3ff;
}
th {
  background: #eaf1fc;
  color: #3b5e86;
}
.modal-head {
  background: linear-gradient(110deg, #eaf3ff, #f1ecff);
}
.language-control {
  border-color: #c3d8ef;
  background: #f2f7ff;
}
#sidebar .secondary{color:#c6ddf8}
