:root {
  --Ihd-primary: #2F4A66;
  --Ihd-primary-dark: #243A52;
  --Ihd-sidebar: #1E3348;
  --Ihd-bg: #F2F5F8;
  --Ihd-surface: #ffffff;
  --Ihd-border: #D5DEE8;
  --Ihd-text: #1c2422;
  --Ihd-muted: #6b7280;
  --Ihd-danger: #b91c1c;
  --Ihd-sidebar-w: 15rem;
}

html, body {
  font-family: "Segoe UI", system-ui, sans-serif;
  margin: 0;
  background: var(--Ihd-bg);
  color: var(--Ihd-text);
}

.Ihd-shell {
  display: flex;
  min-height: 100vh;
}

.Ihd-sidebar {
  width: var(--Ihd-sidebar-w);
  background: var(--Ihd-sidebar, #1E3348);
  color: #fafaf9;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.Ihd-shell.is-closed .Ihd-sidebar {
  transform: translateX(calc(-1 * var(--Ihd-sidebar-w)));
}

.Ihd-sidebar-backdrop {
  display: none;
}

.Ihd-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 0.15rem;
  height: 100%;
}

.Ihd-sidebar-brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 0.35rem 1rem;
  text-decoration: none;
}
.Ihd-sidebar-brand img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}

.Ihd-menu-search { margin: 0 0.35rem 0.75rem; }
.Ihd-menu-search-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}
.Ihd-menu-search-input::placeholder { color: rgba(231,229,228,.55); }
.Ihd-menu-group { margin-bottom: 0.25rem; }
.Ihd-menu-group-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(231,229,228,.65);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  border-radius: 8px;
}
.Ihd-menu-group-header:hover { background: rgba(255,255,255,.08); color: #fff; }

.Ihd-nav-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: #e7e5e4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.Ihd-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.Ihd-nav-link.active {
  background: var(--Ihd-primary);
  color: #fff;
}

.Ihd-nav-spacer { flex: 1; }
.Ihd-nav-muted { opacity: 0.75; font-weight: 500; }

.Ihd-main-wrap {
  flex: 1;
  margin-left: var(--Ihd-sidebar-w);
  transition: margin-left 0.2s ease;
  min-width: 0;
}

.Ihd-shell.is-closed .Ihd-main-wrap {
  margin-left: 0;
}

.Ihd-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--Ihd-surface);
  border-bottom: 3px solid var(--Ihd-primary);
}

.Ihd-topbar-product {
  font-weight: 800;
  color: var(--Ihd-primary);
}

.Ihd-topbar-logo {
  height: 32px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

.Ihd-topbar-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.Ihd-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.Ihd-topbar-user {
  margin-left: 0;
  font-size: 0.85rem;
  color: var(--Ihd-muted);
}

.Ihd-main {
  padding: 1.25rem 1.5rem 2rem;
  max-width: 1200px;
}

.Ihd-page-title {
  margin: 0 0 0.35rem;
  color: var(--Ihd-primary);
  font-size: 1.45rem;
}

.Ihd-page-lead {
  color: var(--Ihd-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.Ihd-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.Ihd-kpi-card {
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.Ihd-kpi-card.accent {
  border-color: var(--Ihd-primary);
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.Ihd-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--Ihd-primary-dark);
}

.Ihd-kpi-label {
  font-size: 0.78rem;
  color: var(--Ihd-muted);
  margin-top: 0.15rem;
}

.Ihd-filter-card {
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.Ihd-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.Ihd-panel {
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.Ihd-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.Ihd-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--Ihd-primary-dark);
}

.Ihd-panel-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--Ihd-muted);
}

.Ihd-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.Ihd-panel .Ihd-table-wrap {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0 -0.25rem;
  background: transparent;
}

.Ihd-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}

.Ihd-form-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

@media (max-width: 960px) {
  .Ihd-form-row,
  .Ihd-form-row.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .Ihd-form-row .Ihd-field-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .Ihd-form-row,
  .Ihd-form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

.Ihd-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.Ihd-field label,
.Ihd-field .Ihd-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--Ihd-muted);
  margin-bottom: 0.3rem;
  line-height: 1.2;
  min-height: 1rem;
}

.Ihd-field-label.is-spacer {
  visibility: hidden;
  user-select: none;
}

.Ihd-field input,
.Ihd-field select,
.Ihd-field textarea {
  width: 100%;
  box-sizing: border-box;
  height: 2.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--Ihd-border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--Ihd-text);
}

.Ihd-field textarea {
  height: auto;
  min-height: 4.5rem;
  resize: vertical;
}

.Ihd-field-action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 7.5rem;
}

.Ihd-field-action .Ihd-btn {
  width: 100%;
  height: 2.4rem;
  box-sizing: border-box;
}

.Ihd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--Ihd-primary);
  color: #fff;
  line-height: 1;
}

.Ihd-btn:hover { filter: brightness(0.95); }
.Ihd-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.Ihd-btn-outline {
  background: #fff;
  color: var(--Ihd-primary-dark);
  border-color: var(--Ihd-border);
}

.Ihd-btn-ghost {
  background: transparent;
  color: var(--Ihd-primary);
  border-color: var(--Ihd-border);
}

.Ihd-btn-sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; }
.Ihd-btn-danger { background: var(--Ihd-danger); }

.Ihd-icon-btn {
  border: 1px solid var(--Ihd-border);
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.Ihd-table-wrap {
  overflow-x: auto;
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
}

.Ihd-table {
  width: 100%;
  border-collapse: collapse;
}

.Ihd-table th,
.Ihd-table td {
  border-bottom: 1px solid var(--Ihd-border);
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.88rem;
}

.Ihd-table th {
  background: #eef3f7;
  font-weight: 700;
  color: var(--Ihd-primary-dark);
}

.Ihd-table tr:last-child td { border-bottom: 0; }

.Ihd-pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--Ihd-muted);
}

.Ihd-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.Ihd-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--Ihd-border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.Ihd-tab.active {
  background: var(--Ihd-primary);
  color: #fff;
  border-color: var(--Ihd-primary);
}

.Ihd-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
}

.Ihd-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.Ihd-alert-dismiss {
  position: absolute;
  right: 0.5rem;
  top: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.Ihd-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--Ihd-surface);
  border: 1px dashed var(--Ihd-border);
  border-radius: 8px;
}

.Ihd-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.Ihd-empty h3 { margin: 0 0 0.35rem; }
.Ihd-empty p { color: var(--Ihd-muted); margin: 0 0 1rem; }

.Ihd-map {
  height: 520px;
  width: 100%;
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
}

.suite-login-page {
  --suite-accent: #2F4A66;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}
.suite-login-top {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
}
.suite-login-top a {
  color: var(--suite-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.suite-login-top a:hover { text-decoration: underline; }
.suite-login-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.suite-login-card {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  background: #fff;
}
.suite-login-card h1 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #111;
}
.suite-login-card label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.suite-login-card input[type="email"],
.suite-login-card input[type="password"],
.suite-login-card input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
}
.suite-login-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}
.suite-login-check input { width: auto; margin: 0; }
.suite-login-actions { display: grid; gap: 0.5rem; }
.suite-login-primary {
  width: 100%;
  background: var(--suite-accent);
  border: 1px solid var(--suite-accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.suite-login-outline {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.suite-login-create {
  text-align: center;
  color: var(--suite-accent);
  font-size: 0.9rem;
  text-decoration: none;
}
.suite-login-alert { padding: 0.6rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; }
.suite-login-alert-error { background: #fee2e2; color: #991b1b; }
.suite-login-alert-info { background: #f3f4f6; color: #111; }

.Ihd-login-shell-legacy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #eef3f7, var(--Ihd-bg));
  gap: 0.75rem;
}

.Ihd-login-header, .Ihd-login-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 22rem;
}

.Ihd-login-brand strong { display: block; color: var(--Ihd-primary); }
.Ihd-login-brand span { display: block; font-size: 0.8rem; color: var(--Ihd-muted); }
.Ihd-login-back a, .Ihd-login-footer a {
  color: var(--Ihd-primary);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 0.75rem;
}

.Ihd-login-card {
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border: 1px solid var(--Ihd-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.08);
}

.Ihd-login-card h1 {
  margin: 0 0 0.25rem;
  color: var(--Ihd-primary);
  font-size: 1.35rem;
}

.Ihd-login-card .Ihd-field { margin-bottom: 0.75rem; }
.Ihd-login-card .Ihd-field input { width: 100%; box-sizing: border-box; }

.Ihd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: end;
}

.Ihd-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.Ihd-status-open {
  background: #eef3f7;
  color: #243A52;
  border: 1px solid #c5d4e0;
}

.Ihd-status-done {
  background: #eef3f7;
  color: #243A52;
  border: 1px solid #c5d4e0;
}

.Ihd-table-actions {
  text-align: right;
  white-space: nowrap;
}

.Ihd-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#blazor-error-ui { display: none; }

/* —— Branş seçici (topbar) —— */
.Ihd-specialty-bar { display:none !important; /* removed from topbar */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.2rem 0.55rem;
  background: #eef3f7;
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
}
.Ihd-specialty-bar label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--Ihd-primary-dark);
  margin: 0;
  white-space: nowrap;
}
.Ihd-specialty-bar select {
  border: 1px solid var(--Ihd-border);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--Ihd-text);
  background: #fff;
  min-width: 9rem;
  max-width: 14rem;
}
.Ihd-specialty-bar select:disabled { opacity: 0.6; }

/* —— Haftalık randevu takvimi —— */
.Ihd-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.Ihd-cal-day {
  min-height: 9rem;
  background: #fff;
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.Ihd-cal-day.is-today {
  border-color: var(--Ihd-primary);
  box-shadow: 0 0 0 2px rgba(47, 74, 102, 0.15);
}
.Ihd-cal-day-head {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--Ihd-primary-dark);
  text-transform: capitalize;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--Ihd-border);
}
.Ihd-cal-appt {
  display: block;
  font-size: 0.75rem;
  line-height: 1.25;
  background: #eef3f7;
  color: #243A52;
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  border-left: 3px solid var(--Ihd-primary);
}
.Ihd-cal-more {
  font-size: 0.72rem;
  color: var(--Ihd-muted);
  font-weight: 600;
}

/* —— Sayfa yardımcıları / eski sınıf alias —— */
.Ihd-main h1, .Ihd-page-title { margin: 0 0 0.35rem; color: var(--Ihd-primary); font-size: 1.45rem; }
.Ihd-main h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--Ihd-text); }
.panel, .Ihd-panel {
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.toolbar, .Ihd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.form-grid, .Ihd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.form-grid label, .Ihd-form-grid label, .Ihd-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--Ihd-muted);
  margin-bottom: 0.25rem;
}
.form-grid input, .form-grid select, .form-grid textarea,
.Ihd-form-grid input, .Ihd-form-grid select, .Ihd-form-grid textarea,
.Ihd-field input, .Ihd-field select, .Ihd-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--Ihd-border);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  background: #fff;
}
.form-grid textarea, .Ihd-form-grid textarea { min-height: 4.5rem; resize: vertical; }
.kpi, .Ihd-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.kpi-card, .Ihd-kpi-card {
  background: var(--Ihd-surface);
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.kpi-card strong, .Ihd-kpi-value {
  display: block;
  font-size: 1.45rem;
  color: var(--Ihd-primary);
  font-weight: 800;
}
.kpi-card span, .Ihd-kpi-label {
  display: block;
  font-size: 0.78rem;
  color: var(--Ihd-muted);
  margin-top: 0.2rem;
}
table.data, .Ihd-table {
  width: 100%;
  border-collapse: collapse;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--Ihd-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.88rem;
}
table.data th {
  background: #eef3f7;
  font-weight: 700;
  color: var(--Ihd-primary-dark);
}
.err, .ok {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ok { background: #eef3f7; border: 1px solid #c5d4e0; color: #243A52; }
.muted { color: var(--Ihd-muted); font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1rem; }
.chip {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #eef3f7;
  border: 1px solid var(--Ihd-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--Ihd-primary-dark);
}
.chip.is-primary {
  background: var(--Ihd-primary);
  color: #fff;
  border-color: var(--Ihd-primary);
}
button, .btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--Ihd-primary);
  color: #fff;
  border: 1px solid var(--Ihd-primary);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(0.95); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary, .btn.secondary {
  background: #fff;
  color: var(--Ihd-primary-dark);
  border-color: var(--Ihd-border);
}
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--Ihd-primary-dark);
  border-color: transparent;
}
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.cal-day {
  min-height: 9rem;
  background: #fff;
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cal-day.is-today { border-color: var(--Ihd-primary); box-shadow: 0 0 0 2px rgba(47, 74, 102, 0.15); }
.cal-day .d {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--Ihd-primary-dark);
  text-transform: capitalize;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--Ihd-border);
}
.cal-appt {
  display: block;
  font-size: 0.75rem;
  line-height: 1.25;
  background: #eef3f7;
  color: #243A52;
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  border-left: 3px solid var(--Ihd-primary);
}

@media (max-width: 900px) {
  .Ihd-calendar, .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .Ihd-specialty-bar { display:none !important; /* removed from topbar */ display: none; }
}
@media (max-width: 768px) {
  .Ihd-sidebar {
    transform: translateX(calc(-1 * var(--Ihd-sidebar-w)));
  }
  .Ihd-shell.is-open .Ihd-sidebar {
    transform: translateX(0);
  }
  .Ihd-shell.is-open .Ihd-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 150;
  }
  .Ihd-main-wrap { margin-left: 0; }
}


/* —— Branş rozeti (salt okunur) —— */
.Ihd-specialty-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eef3f7;
  border: 1px solid var(--Ihd-border);
  color: var(--Ihd-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.Ihd-specialty-badge:hover { filter: brightness(0.97); }

.Ihd-checklist { margin: 0; padding-left: 1.2rem; line-height: 1.55; }
.Ihd-checklist li { margin-bottom: 0.35rem; }

/* —— Odontogram —— */
.odontogram { margin: 0.5rem 0; overflow-x: auto; }
.odonto-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  justify-content: center;
  flex-wrap: nowrap;
}
.odonto-mid {
  width: 0.75rem;
  height: 1.75rem;
  border-left: 2px solid var(--Ihd-border);
  margin: 0 0.25rem;
}
.tooth {
  width: 2rem;
  height: 2.1rem;
  border-radius: 6px 6px 4px 4px;
  border: 1px solid var(--Ihd-border);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  color: #1E3348;
}
.odonto-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.odonto-legend .tooth { width: auto; height: auto; padding: 0.2rem 0.45rem; cursor: default; }
.tooth.st-healthy { background: #fff; }
.tooth.st-caries { background: #fecaca; border-color: #f87171; }
.tooth.st-filled { background: #bfdbfe; border-color: #60a5fa; }
.tooth.st-missing { background: #e5e7eb; color: #9ca3af; text-decoration: line-through; }
.tooth.st-crown { background: #fde68a; border-color: #f59e0b; }
.tooth.st-rootcanal { background: #ddd6fe; border-color: #8b5cf6; }
.tooth.st-implant { background: #c5d4e0; border-color: #10b981; }
.tooth.st-planned { background: #fef3c7; border-style: dashed; }

button.chip {
  cursor: pointer;
  font: inherit;
}

/* —— CRM tarzı üst menü —— */
.Ihd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--Ihd-border);
  box-shadow: 0 1px 0 rgba(4,120,87,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.Ihd-topbar-left, .Ihd-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.Ihd-topbar-brand-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.Ihd-top-link {
  color: var(--Ihd-primary-dark);
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}
.Ihd-top-link:hover { background: #eef3f7; }
.Ihd-user-menu { position: relative; }
.Ihd-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 16rem;
  border: 1px solid var(--Ihd-border);
  background: #fff;
  color: var(--Ihd-primary-dark);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.Ihd-user-btn:hover { background: #eef3f7; }
.Ihd-user-avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--Ihd-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.Ihd-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}
.Ihd-user-caret { font-size: 0.7rem; opacity: .7; }
.Ihd-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--Ihd-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
  padding: 0.4rem 0;
  z-index: 1060;
}
.Ihd-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.9rem 0.65rem;
  border-bottom: 1px solid var(--Ihd-border);
  font-size: 0.8rem;
}
.Ihd-user-meta strong { color: var(--Ihd-primary); font-size: 0.9rem; }
.Ihd-user-item {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--Ihd-primary-dark) !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
}
.Ihd-user-item:hover { background: #eef3f7; }
.Ihd-user-danger { color: #991b1b !important; }
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.view-tabs { display: inline-flex; gap: 0.25rem; background: #eef3f7; padding: 0.2rem; border-radius: 8px; border: 1px solid var(--Ihd-border); }
.view-tab {
  border: 0; background: transparent; padding: 0.35rem 0.75rem; border-radius: 6px;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; color: var(--Ihd-primary-dark);
}
.view-tab.active { background: var(--Ihd-primary); color: #fff; }
.Ihd-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.Ihd-month-cell {
  min-height: 5.5rem;
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
  padding: 0.35rem;
  background: #fff;
  font-size: 0.75rem;
}
.Ihd-month-cell.is-muted { opacity: 0.45; }
.Ihd-month-cell.is-today { border-color: var(--Ihd-primary); box-shadow: 0 0 0 2px rgba(47,74,102,.12); }
.Ihd-day-timeline { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.Ihd-day-slot {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--Ihd-border);
  border-radius: 8px;
  background: #fff;
}
.Ihd-day-slot time { font-weight: 800; color: var(--Ihd-primary-dark); font-size: 0.82rem; }
.specialty-block {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px dashed var(--Ihd-border);
  border-radius: 10px;
  background: #f0fdf9;
}
.specialty-block h3 { margin: 0 0 0.65rem; font-size: 0.95rem; color: var(--Ihd-primary-dark); }
.alert-allergy {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}
.status-pill {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef3f7;
  color: #243A52;
  border: 1px solid #c5d4e0;
}
.status-pill.warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.status-pill.done { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

:root { --suite-accent: var(--Ihd-primary); --suite-border: #d6dde6; --suite-muted: #64748b; }

/* —— Suite admin chrome (search / page toolbar) —— */
.toolbar input, .toolbar select, .toolbar textarea,
.search-field input, .search-field select {
  box-sizing: border-box;
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  min-height: 2.4rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.toolbar input:focus, .toolbar select:focus,
.search-field input:focus, .search-field select:focus {
  border-color: var(--suite-accent, #047857);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--suite-accent, #047857) 18%, transparent);
}
.toolbar label, .search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--suite-muted, #6b7280);
  margin-bottom: 0.25rem;
}
.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--suite-accent, #047857) 8%, #fff) 0%, #fff 70%);
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 12px;
}
.search-field { flex: 1 1 14rem; min-width: 12rem; }
.search-field input, .search-field select { width: 100%; }
.search-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--suite-border, #d1d5db);
  border-radius: 12px;
  border-left: 4px solid var(--suite-accent, #047857);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
