/* Megha business dashboards — linked from index.html (not Angular lazy chunks)
   Source: mbc-business-dashboard.css + hostel-business-dashboard.css */

/* MyBusiness Clinic dashboard â€” desktop + mobile mockup */

.mbc-app {
  display: block;
  min-height: 100vh;
  background: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #202124;
}

.mbc-app {
  min-height: 100vh;
}

.mbc-desktop {
  display: none;
}

.mbc-mobile {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: #f0f4f8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Shared */
.mbc-loading,
.mbc-error-wrap {
  padding: 3rem 1.5rem;
  text-align: center;
}

.mbc-loading--fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mbc-loading-text {
  margin: 0;
  color: #5f6368;
  font-size: 0.875rem;
}

.mbc-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: mbc-spin 0.8s linear infinite;
}

.mbc-logo-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.mbc-logo-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  animation: mbc-spin 0.85s linear infinite;
}

.mbc-logo-spinner-core {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.18);
}

.mbc-logo-spinner-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mbc-logo-spinner-core span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a73e8;
  line-height: 1;
}

.mbc-route-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(240, 244, 248, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.mbc-paging-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0 1rem;
  flex-wrap: wrap;
}

.mbc-paging-bar .mbc-muted {
  font-size: 0.8125rem;
  color: #5f6368;
}

@keyframes mbc-spin {
  to { transform: rotate(360deg); }
}

.mbc-error { color: #d93025; margin-bottom: 1rem; }

.mbc-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbc-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.mbc-logo-fallback,
.mbc-logo-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mbc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a73e8;
  line-height: 1.2;
}

.mbc-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.6875rem;
  color: #5f6368;
}

.mbc-brand-text {
  min-width: 0;
}

.mbc-powered {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.625rem;
  font-weight: 500;
  color: #80868b;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mbc-powered strong {
  color: #1a73e8;
  font-weight: 700;
}

.mbc-notify {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  padding: 0;
}

.mbc-notify svg { width: 22px; height: 22px; }

.mbc-notify-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #d93025;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.mbc-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #34a853);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mbc-clinic-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.mbc-clinic-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e8f0fe;
  border: 2px solid #e8eaed;
  box-sizing: border-box;
}

.mbc-clinic-avatar--desktop {
  width: 40px;
  height: 40px;
}

.mbc-clinic-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mbc-clinic-avatar-fallback {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a73e8;
  line-height: 1;
}

.mbc-inline-alert {
  background: #fce8e6;
  color: #c5221f;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.mbc-panel {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
  margin-bottom: 1rem;
}

.mbc-panel-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.mbc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.mbc-section-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.mbc-link-btn {
  border: none;
  background: transparent;
  color: #1a73e8;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.mbc-filter-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f6368;
  background: #f1f3f4;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.mbc-muted { color: #80868b; font-size: 0.875rem; margin: 0; }

.mbc-btn-primary {
  padding: 0.55rem 1rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.mbc-btn-outline {
  padding: 0.55rem 1rem;
  background: #fff;
  color: #1a73e8;
  border: 1px solid #1a73e8;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.mbc-full { width: 100%; margin-top: 1rem; }

/* Calendar + day appointments (single card) */
.mbc-schedule-card,
.mbc-calendar-card,
.mbc-panel.mbc-d-calendar {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
  margin-bottom: 1rem;
}

.mbc-schedule-divider {
  height: 1px;
  background: #e8eaed;
  margin: 0.9rem 0 0.75rem;
}

.mbc-schedule-head {
  margin-bottom: 0.65rem;
}

.mbc-schedule-head h2 {
  font-size: 1rem;
}

.mbc-empty-inline {
  padding: 0.5rem 0 0.15rem;
}

.mbc-empty-inline p {
  margin: 0;
  font-size: 0.8125rem;
  color: #80868b;
}

.mbc-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.mbc-cal-month {
  font-weight: 700;
  font-size: 1rem;
}

.mbc-cal-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mbc-today-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5f6368;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  cursor: pointer;
}

.mbc-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mbc-icon-btn svg { width: 20px; height: 20px; }

.mbc-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  text-align: center;
}

.mbc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mbc-day-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #80868b;
  line-height: 1.1;
  text-align: center;
}

.mbc-day-relative .mbc-day-label {
  font-size: 0.5rem;
  letter-spacing: -0.02em;
}

.mbc-day-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50%;
  color: #3c4043;
}

.mbc-day.selected .mbc-day-num {
  background: #1a73e8;
  color: #fff;
}

.mbc-day.selected .mbc-day-label { color: #1a73e8; }

/* Stat cards */
.mbc-m-stats-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: stretch;
}

.mbc-m-stats-scroll::-webkit-scrollbar { display: none; }

.mbc-m-stats-scroll .mbc-stat-card {
  flex: 0 0 118px;
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
  gap: 0.1rem;
}

.mbc-stat-card {
  flex: 0 0 140px;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mbc-m-stats-scroll .mbc-stat-card-icon svg {
  width: 16px;
  height: 16px;
}

.mbc-stat-card-icon svg {
  width: 20px;
  height: 20px;
}

.mbc-stat-card[data-tone='blue'] .mbc-stat-card-icon { color: #1a73e8; }
.mbc-stat-card[data-tone='green'] .mbc-stat-card-icon { color: #1e8e3e; }
.mbc-stat-card[data-tone='orange'] .mbc-stat-card-icon { color: #e37400; }
.mbc-stat-card[data-tone='red'] .mbc-stat-card-icon { color: #c5221f; }

.mbc-stat-card-label {
  font-size: 0.6875rem;
  color: #5f6368;
  line-height: 1.25;
}

.mbc-m-stats-scroll .mbc-stat-card-label {
  font-size: 0.625rem;
  line-height: 1.2;
}

.mbc-stat-card-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #202124;
}

.mbc-m-stats-scroll .mbc-stat-card-num {
  font-size: 1.125rem;
  line-height: 1.1;
}

.mbc-stat-card-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.6875rem;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.mbc-m-stats-scroll .mbc-stat-card-link {
  font-size: 0.5625rem;
  line-height: 1.2;
}

/* Appointments list */
.mbc-appt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mbc-appt-card,
.mbc-patient-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #f1f3f4;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.mbc-patient-row {
  grid-template-columns: auto 1fr auto;
}

.mbc-appt-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a73e8;
  min-width: 4.25rem;
}

.mbc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mbc-appt-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.05rem;
}

.mbc-appt-name {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbc-appt-type { font-size: 0.75rem; color: #5f6368; }

.mbc-appt-doctor {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: #80868b;
}

.mbc-appt-doctor svg { width: 12px; height: 12px; flex-shrink: 0; }

.mbc-status {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

.mbc-status.status-confirmed { background: #e6f4ea; color: #1e8e3e; }
.mbc-status.status-pending { background: #fef7e0; color: #e37400; }
.mbc-status.status-cancelled { background: #fce8e6; color: #c5221f; }

.mbc-chevron { width: 16px; height: 16px; color: #dadce0; flex-shrink: 0; }

.mbc-empty-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.mbc-empty-card p { margin: 0; color: #5f6368; font-size: 0.875rem; }

/* Quick actions mobile */
.mbc-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mbc-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  border: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  font-size: 0.5625rem;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.mbc-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbc-quick-icon svg { width: 18px; height: 18px; }

/* Donut chart */
.mbc-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mbc-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.mbc-donut-hole {
  position: absolute;
  inset: 22%;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mbc-donut-hole strong {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.mbc-donut-hole span {
  font-size: 0.625rem;
  color: #80868b;
  font-weight: 600;
}

.mbc-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #3c4043;
}

.mbc-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mbc-donut-legend strong { margin-left: auto; }

.mbc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Recent patients */
.mbc-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mbc-recent-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border: none;
  background: transparent;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  text-align: left;
}

.mbc-recent-list li:last-child .mbc-recent-item { border-bottom: none; }

.mbc-recent-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mbc-recent-body strong {
  font-size: 0.875rem;
  color: #202124;
}

.mbc-recent-body span {
  font-size: 0.75rem;
  color: #80868b;
}

/* Mobile header / main / nav */
.mbc-m-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 25;
}

.mbc-m-menu {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  flex-shrink: 0;
}

.mbc-m-menu svg { width: 22px; height: 22px; }

.mbc-m-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mbc-m-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mbc-m-main {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

.mbc-m-charts-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mbc-m-bottom-bar {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0 0.65rem;
  z-index: 18;
  box-sizing: border-box;
}

.mbc-m-bottom-bar .mbc-summary-bar {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 14px;
  padding: 0.5rem 0.25rem;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.12);
}

.mbc-m-bottom-bar .mbc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.5625rem;
  color: #80868b;
}

.mbc-m-bottom-bar .mbc-stat strong {
  font-size: 0.875rem;
  color: #202124;
}

.mbc-m-new-appt {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.85rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  min-height: 52px;
}

.mbc-m-new-appt svg { width: 20px; height: 20px; }

.mbc-m-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  background: #fff;
  border-top: 1px solid #e8eaed;
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  box-sizing: border-box;
}

.mbc-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.15rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #80868b;
  font-size: 0.5625rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mbc-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mbc-nav-item.active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 700;
}

.mbc-nav-item:not(.active):active {
  background: #f1f3f4;
}

.mbc-patient-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mbc-account-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mbc-account-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 80px;
}

.mbc-tile-icon { font-size: 1.35rem; }
.mbc-tile-title { font-size: 0.875rem; font-weight: 700; }
.mbc-tile-sub { font-size: 0.75rem; color: #80868b; }

/* â€”â€” Desktop â€”â€” */
@media (min-width: 1024px) {
  .mbc-mobile { display: none; }

  .mbc-desktop {
    display: flex;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .mbc-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #fff;
    background-image: url('https://tekmegha.com/mediaserver/leftpanbusinessbg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    border-right: 1px solid #e8eaed;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mbc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.5rem;
  }

  .mbc-sidebar-brand strong {
    display: block;
    font-size: 0.9375rem;
    color: #1a73e8;
  }

  .mbc-sidebar-brand span {
    display: block;
    font-size: 0.6875rem;
    color: #5f6368;
    line-height: 1.3;
  }

  .mbc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .mbc-side-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #5f6368;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .mbc-side-link svg { width: 20px; height: 20px; flex-shrink: 0; }

  .mbc-side-link.active {
    background: #e8f0fe;
    color: #1a73e8;
  }

  .mbc-d-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mbc-d-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 25;
    flex-shrink: 0;
  }

  .mbc-d-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
    max-width: 280px;
  }

  .mbc-d-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mbc-d-brand-text strong {
    font-size: 0.9375rem;
    color: #1a73e8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mbc-d-brand-text .mbc-tagline {
    font-size: 0.6875rem;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mbc-d-brand-text .mbc-powered {
    white-space: nowrap;
  }

  .mbc-d-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f3f4;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    margin: 0;
    min-width: 0;
  }

  .mbc-d-search svg { width: 18px; height: 18px; color: #80868b; flex-shrink: 0; }

  .mbc-d-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
  }

  .mbc-d-search kbd {
    font-size: 0.6875rem;
    color: #80868b;
    background: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #dadce0;
  }

  .mbc-d-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .mbc-d-user {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
  }

  .mbc-d-user svg { width: 16px; height: 16px; color: #80868b; }

  .mbc-d-main {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 5rem;
  }

  .mbc-d-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .mbc-d-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
    border: 1px solid #f1f3f4;
  }

  .mbc-d-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: #5f6368;
    margin-bottom: 0.35rem;
  }

  .mbc-d-stat-icon svg { width: 22px; height: 22px; }

  .mbc-d-stat-card[data-tone='blue'] .mbc-d-stat-icon { color: #1a73e8; }
  .mbc-d-stat-card[data-tone='green'] .mbc-d-stat-icon { color: #1e8e3e; }
  .mbc-d-stat-card[data-tone='orange'] .mbc-d-stat-icon { color: #e37400; }
  .mbc-d-stat-card[data-tone='red'] .mbc-d-stat-icon { color: #c5221f; }

  .mbc-d-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
  }

  .mbc-d-mid-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .mbc-d-mid-row .mbc-schedule-card,
  .mbc-d-mid-row .mbc-calendar-card,
  .mbc-d-mid-row .mbc-panel { margin-bottom: 0; }

  .mbc-d-schedule .mbc-d-appt-table {
    max-height: min(22rem, 42vh);
    overflow-y: auto;
    padding-right: 0.15rem;
  }

  .mbc-d-quick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mbc-d-quick-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
    text-align: left;
  }

  .mbc-d-quick-btn:hover { background: #f8f9fa; }

  .mbc-d-quick-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mbc-d-quick-icon svg { width: 16px; height: 16px; }

  .mbc-d-appt-table {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mbc-d-appt-row {
    width: 100%;
    display: grid;
    grid-template-columns: 5.5rem 2.5rem 1fr 10rem auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    border: none;
    background: transparent;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    text-align: left;
  }

  .mbc-d-appt-row:hover { background: #f8f9fa; }

  .mbc-d-appt-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .mbc-d-appt-info strong { font-size: 0.875rem; }
  .mbc-d-appt-info span { font-size: 0.75rem; color: #5f6368; }

  .mbc-d-appt-doctor {
    font-size: 0.8125rem;
    color: #5f6368;
  }

  .mbc-d-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mbc-d-footer-bar {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e8eaed;
    box-shadow: 0 -4px 16px rgba(60, 64, 67, 0.08);
    z-index: 10;
  }

  .mbc-d-summary {
    display: flex;
    gap: 2rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .mbc-d-summary .mbc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #80868b;
  }

  .mbc-d-summary .mbc-stat strong {
    font-size: 1.125rem;
    color: #202124;
  }

  .mbc-d-summary .mbc-stat svg {
    width: 18px;
    height: 18px;
    color: #1a73e8;
    margin-bottom: 0.15rem;
  }

  .mbc-d-new-appt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  .mbc-d-new-appt svg { width: 20px; height: 20px; }

  .mbc-d-patient-table { margin-top: 1rem; }
}

/* Shell layout â€” single router-outlet, responsive chrome */
.mbc-shell-layout {
  --mbc-bottom-nav-height: calc(3.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: #f0f4f8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.mbc-shell-sidebar,
.mbc-shell-desktop-head {
  display: none;
}

.mbc-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(32, 33, 36, 0.45);
  cursor: pointer;
}

.mbc-shell-sidebar.mbc-sidebar,
.mbc-mobile-sidebar {
  background-color: #fff;
  background-image: url('https://tekmegha.com/mediaserver/leftpanbusinessbg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

@media (max-width: 1023px) {
  .mbc-shell-sidebar.mbc-sidebar,
  .mbc-mobile-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 100;
    padding: 1rem 0.75rem 1.25rem;
    border-right: 1px solid #e8eaed;
    box-shadow: 4px 0 24px rgba(60, 64, 67, 0.18);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  .mbc-shell-sidebar.mbc-sidebar.mbc-mobile-drawer-open {
    transform: translateX(0);
  }

  .mbc-shell-sidebar .mbc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.5rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0.75rem;
  }

  .mbc-shell-sidebar .mbc-sidebar-brand strong {
    font-size: 0.9375rem;
    color: #1a73e8;
  }

  .mbc-shell-sidebar .mbc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .mbc-shell-sidebar .mbc-side-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #5f6368;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .mbc-shell-sidebar .mbc-side-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mbc-shell-sidebar .mbc-side-link.active {
    background: #e8f0fe;
    color: #1a73e8;
  }
}

.mbc-shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mbc-shell-outlet {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem 5.5rem;
}

.mbc-patients-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
}

.mbc-patients-search svg {
  width: 18px;
  height: 18px;
  color: #80868b;
  flex-shrink: 0;
}

.mbc-patients-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  min-width: 0;
}

.mbc-patients-panel {
  margin-top: 0.25rem;
}

.mbc-home-desktop {
  display: none;
}

.mbc-home-mobile-footer {
  margin: 1rem 0 0;
}

@media (min-width: 1024px) {
  .mbc-shell-layout {
    display: flex;
    flex-direction: row;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .mbc-shell-mobile-head,
  .mbc-shell-mobile-nav,
  .mbc-home-mobile-footer,
  .mbc-home-view {
    display: none !important;
  }

  .mbc-shell-sidebar.mbc-sidebar {
    display: flex;
    position: static;
    width: 240px;
    transform: none;
    box-shadow: none;
    transition: none;
  }

  .mbc-mobile-drawer-backdrop {
    display: none;
  }

  .mbc-shell-main {
    flex: 1;
    min-width: 0;
    background: #f0f4f8;
  }

  .mbc-shell-desktop-head.mbc-d-topbar {
    display: flex;
  }

  .mbc-shell-outlet {
    padding: 0 1.5rem 2rem;
  }

  .mbc-home-desktop {
    display: block;
  }
}

/* Hostel accent â€” teal instead of clinic blue */
.mbh-app .mbc-title,
.mbh-app .mbc-side-link.active,
.mbh-app .mbc-nav-item.active {
  color: #0d9488;
}

.mbh-app .mbc-spinner {
  border-top-color: #0d9488;
}

.mbh-app .mbc-btn-primary,
.mbh-app .mbc-d-new-appt,
.mbh-app .mbc-m-new-appt {
  background: #0d9488;
}

.mbh-app .mbc-side-link.active,
.mbh-app .mbc-nav-item.active {
  background: #ccfbf1;
}

.mbh-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ccfbf1;
  font-size: 1.25rem;
}

.mbh-shell-outlet--fees {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .mbh-shell-outlet--fees {
    padding: 0;
  }
}
