@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {

  --bg-body: #ECECF4;
  --body-text: #31324C;
	--bs-primary: #1D1F4D;
	--bs-primary-hover: #1E2165;
	--bs-primary-active: #1E2164;
  --bs-success: #0BAD2E;
	--bs-success-hover: #108B2B;
	--bs-success-active: #108B2B;
  --bs-warning: #EA6609;
	--bs-warning-hover: #b4530d;
	--bs-warning-active: #ad4c06;
  --bs-danger: #940505;
	--bs-danger-hover: #5f0404;
	--bs-danger-active: #5f0404;
  --bs-info: #1252DB;
	--bs-info-hover: #0640BD;
	--bs-info-active: #0640BD;
	--red: var(--bs-danger);
	--orange: var(--bs-warning);
	--yellow: #F6B630;
	--purple: #8D20E4;
	--radius: 9px;
	--bs-white: #ffffff;
	--border: #d9dce6;
	--line: #e5e7ee;
	--muted: #737b8e;

}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-body);
  font-family: "Inter", sans-serif;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.45;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--bs-primary);
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-purple {
  color: var(--bs-purple) !important;
}

.text-warning {
  color: var(--bs-warning) !important;
}
.text-danger {
  color: var(--bs-danger) !important;
}
.badge {
  font-weight: 400;
  border-radius:3px;
  font-weight: 500;
}
.text-bg-primary {
  background-color: var(--bs-primary) !important;
}
.text-bg-success {
  background-color: var(--bs-success) !important;
}
.text-bg-danger {
  background-color: var(--bs-danger) !important;
}
.text-bg-warning {
  background-color: var(--yellow) !important;
}
.text-bg-info {
  background-color: var(--bs-info) !important;
}
.form-label {
  color: var(--body-text);
  font-weight: 600;
}
.form-control, .form-select {
  padding:14px 16px;
  border:1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--body-text);
}
.form-control::placeholder, .form-select {
  color: #828080;
}
.btn {
  font-size:16px;
  border-radius: 7px;
  padding:12px 16px;
  text-align: center;
  font-weight: 500;
}
.btn-sm {
  font-size: 14px;
  font-weight: 500;
  padding:8px 12px
}
.btn-xs {
  font-size: 14px;
  font-weight: 500;
  padding:5px 10px
}
.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}
.btn-primary:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active { 
  background: var(--bs-primary-hover);
  border-color: var(--bs-primary-hover);
}
.btn-primary:active {
  background: var(--bs-primary-active) !important;
  border-color: var(--bs-primary-active);
}
.btn-success {
  background: var(--bs-success);
  border-color: var(--bs-success);
}
.btn-success:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active { 
  background: var(--bs-success-hover);
  border-color: var(--bs-success-hover);
}
.btn-success:active {
  background: var(--bs-success-active) !important;
  border-color: var(--bs-success-active) !important;
}
.btn-danger {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
}
.btn-danger:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active { 
  background: var(--bs-danger-hover);
  border-color: var(--bs-danger-hover);
}
.btn-danger:active {
  background: var(--bs-danger-active) !important;
  border-color: var(--bs-danger-active) !important;
}
.btn-warning {
  background: var(--bs-warning);
  border-color: var(--bs-warning);
  color:var(--bs-white);
}
.btn-warning:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active { 
  background: var(--bs-warning-hover);
  color:var(--bs-white);
  border-color: var(--bs-warning-hover);
}
.btn-warning:active {
  background: var(--bs-warning-active) !important;
  border-color: var(--bs-warning-active) !important;
  color:var(--bs-white);
}
.btn-info {
  background: var(--bs-info);
  border-color: var(--bs-info);
}
.btn-info:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active { 
  background: var(--bs-info-hover);
  border-color: var(--bs-info-active);
}
.btn-info:active {
  background: var(--bs-info-active) !important;
  border-color: var(--bs-info-active) !important;
}
.rounded-12 {
  border-radius: 12px !important;
}
.profile-info-breakdown {
  margin-bottom: 2rem;
}
.figcaption-head {
  display: block;
  position: relative;
}
.figcaption-head:after {
  content: '';
  position: absolute;
  left:0;
  top: 13px;
  height: 2px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.4);
  width: 100%;
}
.figcaption-title {
  font-size: 22px;
  color: var(--bs-primary);
  font-weight: 600;
  display: inline-block;
  background: var(--bs-white);
  padding-right:1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.topbar {
  height: 34px;
  background: var(--bs-primary);
  color: #eef0f8;
  font-size: 12px;
}

.topbar-inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-contact i {
  margin-right: 4px;
  font-size: 13px;
}

.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  color: #fff;
  font-size: 15px;
}

.app-header {
  height: auto;
  background: #fff;
  border-bottom: 1px solid #e2e4eb;
  padding:0.4rem 0;
}

.header-inner {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #eef0f6;
  color: var(--bs-primary);
  font-size: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bs-primary);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid #b9bece;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--bs-primary);
  background: #fafbfc;
}

.brand-copy strong,.brand-copy span {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .35px;
}

.brand-copy strong {
  font-weight: 700;
}

.brand-copy span {
  margin-top: 7px;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
  width: 280px;
}

.header-search .form-control {
  height: 42px;
  border: 1px solid #d6dae4;
  background: #fbfbfc;
  border-radius: 7px;
  font-size: 15px;
  padding-right: 42px;
}

.header-search i {
  position: absolute;
  right: 13px;
  top: 8px;
  font-size: 17px;
  color: #444c5e;
}

.header-icon {
  border: 0;
  background: transparent;
  color: var(--bs-primary);
  font-size: 23px;
  position: relative;
  padding: 3px;
}

.notification-btn .notification-count {
  position: absolute;
  top: -3px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc3545;
  border: 2px solid white;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.notification-menu {
  width: 340px;
  max-width: calc(100vw - 24px);
  border-radius: 12px;
  overflow: hidden;
}

.notification-menu .notification-item {
  white-space: normal;
}

.profile-menu {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--body-text);
  text-align: left;
}

.profile-menu::after {
  margin-left: 2px;
}

.profile-menu>img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #d5d9e3;
}

.profile-menu strong,.profile-menu small {
  display: block;
  line-height: 1.2;
}

.profile-menu strong {
  font-size: 15px;
}

.profile-menu small {
  font-size: 13px;
  color: var(--muted);
}

.user-dropdown {
  min-width: 260px;
  border-radius: 10px;
  padding: 8px;
}

.user-dropdown-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
}

.user-dropdown-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.user-dropdown-profile strong,.user-dropdown-profile small {
  display: block;
  font-size: 11px;
}

.user-dropdown-profile small {
  color: var(--muted);
  font-size: 13px;
}

.user-dropdown .dropdown-item {
  font-size: 15px;
  padding: 11px;
  border-radius: 6px;
}

.user-dropdown .dropdown-item i {
  width: 23px;
  color: #667085;
}

.user-dropdown .logout-link {
  color: var(--red);
}

.user-dropdown .logout-link i {
  color: var(--red);
}

.app-body {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(90deg,#eef0f6 0%,#f6f7fa 100%);
  min-height: calc(100vh - 106px);
}

.app-sidebar {
  width: 300px;
  flex: 0 0 220px;
  align-self: stretch;
  padding: 12px 12px 16px 16px;
  flex-basis: 300px;
}

.sidebar-panel {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  min-height: 620px;
  overflow-y: auto;
  background: var(--bs-primary);
  border-radius: 9px;
  padding: 12px 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e1e3ec;
  padding: 10px 13px;
  border-bottom: 1px dashed rgba(255,255,255,.15);
  font-size: 15px;
  min-height: 48px;
}

.sidebar-link i {
  font-size: 17px;
  width: 20px;
  text-align: center;
}

.sidebar-link.active {
  height: auto;
  border-radius: 7px;
  background: #f5f6fa;
  color: var(--bs-primary);
  border-bottom: 0;
  margin-bottom: 2px;
  min-height: 46px;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.dashboard-main {
  width: calc(100% - 245px);
  min-width: 0;
  padding: 14px 18px 18px;
}

.welcome-strip {
  border-radius: 12px;
  background: #E2E2EF;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.welcome-strip h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.welcome-strip h1 i {
  font-size: 20px;
}

.welcome-strip p {
  font-size: 14px;
}

.add-patient {
  color: #F6B630;
}



.metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.metric-blue {
  background: linear-gradient(180deg,#E9F3FF 0%,#E0EDFE 100%);
  border-color: #BEDBFF;
}

.metric-green {
  background: linear-gradient(180deg,#EFFDF4 0%,#E5FDED 100%);
  border-color: #B9F8CF;
}

.metric-purple {
  background: linear-gradient(180deg,#F8F1FF 0%,#F3E9FF 100%);
  border-color: #E9D4FF;
}

.metric-orange {
  background: linear-gradient(180deg,#fff 0%,#faedd7 100%);
}

.metric-main {
  display: flex;
  gap: 13px;
}

.metric-icon {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #17229b;
  font-size: 36px;
  box-shadow: inset 0 10px 8px -5px rgba(255, 255, 255, 0.5);
}

.metric-blue .metric-icon {
  background: #08138F;
  background: linear-gradient(180deg,#0A14EF 0%,#08138F 100%);
}

.metric-green .metric-icon {
  background: #044C14;
  background: linear-gradient(180deg,#07BC2E 0%,#044C14 100%);
}

.metric-purple .metric-icon {
  background: #5605C0;
  background: linear-gradient(180deg,#A866FF 0%,#5605C0 100%);
}

.metric-orange .metric-icon {
  background: #DB5E05;
  background: linear-gradient(180deg,#FF8835 0%,#DB5E05 100%);
}

.metric-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.metric-value {
  display: block;
  font-size: 28px;
  line-height: 1.15;
  margin: 3px 0;
  color: #30394e;
}

.metric-change {
  font-size: 12px;
  display: block;
}

.positive {
  color: #1a9549;
}

.negative {
  color: #bb3e44;
}

.neutral {
  color: #70798a;
}

.metric-breakdown {
  border-top: 1px dotted #bbc1ce;
  margin-top: 10px;
  padding-top: 8px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.metric-breakdown span {
  display: block;
  font-size: 12px;
  color: #697286;
}

.metric-breakdown strong {
  display: block;
  font-size: 14px;
  margin-top: 3px;
  color: #42495c;
}

.success-text {
  color: var(--bs-success)!important;
}

.danger-text {
  color: var(--red)!important;
}

.warning-text {
  color: #b77a00!important;
}

.critical-alert {
  min-height: 58px;
  border-radius: 8px;
  background: #f7dede;
  border: 1px solid #e6bcbc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-content>i {
  font-size: 22px;
  color: #aa1114;
}

.alert-content strong {
  font-size: 15px;
  color: #733137;
}

.alert-content p {
  font-size: 13px;
  color: #783f45;
  margin: 2px 0 0;
  margin-top: 3px;
}

.review-btn {
  font-size: 13px;
  padding: 9px 14px;
  background: #a80f12;
  border-color: #a80f12;
}

.dashboard-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(29,36,57,.03);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 11px;
}

.card-heading h2 {
  font-size: 15px;
  color: #7e3d3d;
  font-weight: 700;
  margin: 0;
}

.card-heading h2 small {
  font-size: 12px;
  color: #535b6c;
}

.card-heading a {
  font-size: 13px;
  color: #8d4840;
}

.card-heading.centered {
  justify-content: center;
}

.zone-mini-panel {
  height: 145px;
  border: 1px solid #d8dce7;
  background: #f0f1f8;
  border-radius: 9px;
  padding: 11px 14px;
}

.zone-mini-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 40px;
  gap: 9px;
  align-items: center;
  height: 30px;
  font-size: 12px;
}

.zone-mini-row b {
  font-size: 13px;
  text-align: right;
}

.thin-track {
  height: 5px;
  background: #d8dbe5;
  border-radius: 4px;
  overflow: hidden;
}

.thin-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.bar-primary {
  background: var(--bs-primary);
}

.bar-green {
  background: #14954b;
}

.bar-red {
  background: #a50f11;
}

.bar-yellow {
  background: #bd7c00;
}

.quick-stat {
  height: 145px;
  border: 1px solid #d8dce7;
  border-radius: 9px;
  background: linear-gradient(135deg,#fff,#f1f5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 5px;
}

.quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #313955;
}

.soft-blue {
  background: #dce7f0;
}

.soft-green {
  background: #dcefe4;
}

.soft-orange {
  background: #f9dfca;
}

.soft-purple {
  background: #e8e0ee;
}

.quick-stat span {
  font-size: 12px;
}

.quick-stat strong {
  font-size: 26px;
}

.quick-stat.compact strong {
  font-size: 16px;
}

.visit-list {
  border-top: 1px solid #edf0f4;
}

.visit-row {
  display: grid;
  grid-template-columns: 78px 38px minmax(170px,1fr) 70px 82px;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  border-bottom: 1px dashed #d9dce5;
  padding: 7px 6px;
}

.visit-row:last-child {
  border-bottom: 0;
}

.visit-time {
  font-size: 12px;
}

.visit-row img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.visit-info strong,.visit-info small {
  display: block;
}

.visit-info strong {
  font-size: 14px;
}

.visit-info small {
  font-size: 11px;
  color: #6f788b;
  margin-top: 3px;
}

.priority-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  padding: 4px 7px;
  display: inline-block;
  color: #fff;
  text-align: center;
}

.priority-badge.medium {
  background: #f5b322;
  color: #fff;
}

.priority-badge.high {
  background: #a30d0f;
}

.visit-state {
  font-size: 12px;
  color: #535b6b;
}

.visit-state.completed {
  color: #178c43;
}

.legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #5c6577;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.legend-green {
  background: #159447;
}

.legend-blue {
  background: #29335f;
}

.legend-red {
  background: #991011;
}

.chart-area {
  height: 285px;
}

.weekly-chart-area {
  padding-top: 3px;
}

.team-list {
  display: flex;
  flex-direction: column;
}

.team-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(140px,1fr) 100px 76px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px dashed #d8dce5;
  padding: 7px 0;
}

.team-row:last-child {
  border-bottom: 0;
}

.team-row img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.team-person strong,.team-person small {
  display: block;
}

.team-person strong {
  font-size: 13px;
}

.team-person small {
  font-size: 11px;
  color: #737b8d;
  margin-top: 2px;
}

.team-capacity span {
  font-size: 11px;
}

.team-capacity .progress {
  height: 5px;
  background: #e0e3e9;
  border-radius: 4px;
  margin-top: 3px;
}

.capacity-green {
  background: #159447;
}

.capacity-yellow {
  background: #e5a319;
}

.availability {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 2px;
  text-align: center;
}

.available {
  background: #dbf0e1;
  color: #0b7b36;
}

.on-visit {
  background: #fff0ce;
  color: #9a6100;
}

.priority-chart-holder {
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.priority-chart-holder canvas {
  max-height: 210px;
}

.priority-total {
  position: absolute;
  text-align: center;
}

.priority-total strong {
  display: block;
  font-size: 26px;
  color: #323a55;
}

.priority-total span {
  display: block;
  font-size: 12px;
  color: #737b8e;
}

.priority-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 11px;
}

.priority-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.stable-dot {
  background: #159447;
}

.medium-dot {
  background: #f7b62a;
}

.high-dot {
  background: #2a315f;
}

.critical-dot {
  background: #a20e10;
}

.coverage-list {
  padding: 11px 2px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.coverage-item>div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  margin-bottom: 6px;
}

.coverage-track {
  height: 12px;
  background: #d9dce1;
  border-radius: 8px;
  overflow: hidden;
}

.coverage-track i {
  height: 100%;
  display: block;
  background: var(--bs-primary);
  border-radius: 8px;
}

.patient-table {
  font-size: 12px;
  white-space: nowrap;
}

.patient-table thead th {
  font-weight: 600;
  background: #e4edf4;
  color: #4e5769;
  border: 0;
  padding: 11px 10px;
  font-size: 12px;
}

.patient-table td {
  border-color: #e4e6eb;
  padding: 11px 10px;
  vertical-align: middle;
  color: #555d6e;
  font-size: 12px;
}

.patient-table strong,.patient-table small {
  display: block;
}

.patient-table strong {
  font-size: 12px;
  color: #485064;
}

.patient-table small {
  font-size: 10px;
  color: #808899;
  margin-top: 2px;
}

.status-badge {
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 2px;
  color: #fff;
  background: #159447;
}

.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  min-height: 60px;
  border-bottom: 1px dashed #d9dce5;
  padding: 11px 0;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item strong,.activity-item small {
  display: block;
}

.activity-item strong {
  font-size: 13px;
  font-weight: 500;
  color: #50596a;
}

.activity-item small {
  font-size: 11px;
  color: #7b8394;
  margin-top: 5px;
}

.app-footer {
  background: #fff;
  padding: 50px 0 0px;
  border-bottom: 20px solid var(--bs-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bs-primary);
  font-size: 15px;
}

.footer-brand .brand-mark {
  width: 70px;
  height: 70px;
  font-size: 24px;
}

.app-footer p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--bs-primary);
  margin-top: 12px;
}

.app-footer h5 {
  font-size: 20px;
  color: var(--red);
  margin-bottom: 20px;
  font-weight: 600;
}

.app-footer a {
  display: block;
  font-size: 16px;
  color: var(--bs-primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.app-footer .col-md-3 p {
  margin: 0 0 16px;
  line-height: 1.4;
}

.app-footer .col-md-3 i {
  margin-right: 5px;
  color: var(--bs-danger);
}

.footer-copy {
  border-top: 1px solid #d9dce3;
  margin-top: 16px;
  padding-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--bs-primary);
}

.sidebar-backdrop {
  display: none;
}
.profile-main-block {
  background: #C6C8ED;
  position: relative;
  overflow: visible;
  border-radius: 12px;
}
.profile-main-block .card-body {
  padding: 0;
  border-radius: 12px;
}
.patient-avatar {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 80px;
  height: 80px;
}
.profile-dark-header {
  background: var(--bs-primary);
  padding:20px 20px 20px 170px;
  color: #fff;
  border-radius: 12px 12px 0 0;
  overflow: visible;
}
.profile-dark-header .btn {
  font-weight: 500;
  color: var(--yellow);
  background: #070937;
}
.profileHeaderleft {
  gap:20px;
}
.profile-light-header {
  padding: 14px 20px 16px 170px;
}
/* Patient header details: two even rows of 4 (one row of 8 on very wide screens, rows of 2 on a
   phone); a divider on the left of every item except the first of each row */
.profile-light-header .summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 14px;
  overflow: hidden;
}
.profile-light-header .summary-grid > div {
  padding: 0 16px;
  margin-left: -1px;
  border-left: 1px solid rgba(0, 0, 0, 0.25);
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 1800px) {
  .profile-light-header .summary-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.profile-light-header .summary-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text);
  margin-top: 4px;
  display: block;
}
.profile-light-header .summary-value {
  color: var(--bs-primary);
  font-weight: 600;
}
.arc-btn {
  width: 128px;
/*  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;*/
}
.arc-btn::after {
  content: none;
}
.nav-tabs .nav-link, #patientTabs .nav-item .nav-link {
	background: #CDCDD5;
	color: var(--bs-primary);
	border-radius: 8px;
	padding: 14px 16px;
	height: 60px;
	font-weight: 500;
	position: relative;
	border: none;
}
/*.nav-tabs .nav-link:before {
  content:'';
  border-left: 30px solid var(--bs-white);
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  position: absolute;
  top: 0px;
  left: -1px;
  background:var(--bs-primary) ;
}
.nav-tabs .nav-link:after {
  content:'';
  border-left: 30px solid var(--bs-primary);
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  position: absolute;
  top: 0px;
  right: -1px;
  background:var(--bs-white) ;
}*/
.nav-tabs .nav-link.active, #patientTabs .nav-item .nav-link.active {
  background: var(--bs-primary);
  color: var(--bs-white);
}
/*.nav-tabs .nav-link.active:after, #patientTabs .nav-item .nav-link.active:after {
  content:'';
  border-left: 30px solid var(--bs-primary);
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  position: absolute;
  top: 0px;
  right: -1px;
  background:var(--bs-white) ;
}*/
.accordion-button::after {
	display:none;
}
.accordion-header .btn-warning {
	color:var(--bs-white);
}









































@media(max-width:1199.98px) {
	.dashboard-main {
  padding-right: 10px;
  padding-left: 10px;
  width: calc(100% - 230px);
  padding: 12px;
}

.app-sidebar {
  width: 230px;
  flex-basis: 230px;
  padding-left: 10px;
}

.header-search {
  width: 230px;
}
}

@media(max-width:991.98px) {
.app-sidebar {
  position: fixed;
  z-index: 1060;
  left: -250px;
  top: 106px;
  width: 245px;
  height: calc(100vh - 106px);
  padding: 0;
  transition: left .25s ease;
}

.app-sidebar.open {
  left: 0;
}

.sidebar-panel {
  height: 100%;
  min-height: 0;
  border-radius: 0 9px 9px 0;
  position: static;
}

.dashboard-main {
  width: 100%;
  padding: 12px;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 1055;
  inset: 106px 0 0;
  background: rgba(23,28,49,.35);
}

.sidebar-backdrop.show {
  display: block;
}
}

@media(max-width:767.98px) {
.topbar,.topbar-inner {
  height: 24px;
}

.topbar-contact {
  display: none;
}

.topbar-inner {
  justify-content: flex-end;
}

.app-header,.header-inner {
  height: 58px;
}

.app-sidebar {
  top: 85px;
  height: calc(100vh - 85px);
}

.sidebar-backdrop {
  inset: 85px 0 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 21px;
}

.brand-copy strong,.brand-copy span {
  font-size: 9px;
}

.brand-copy span {
  margin-top: 4px;
}

.header-right {
  gap: 7px;
}

.profile-menu {
  padding: 0;
}

.profile-menu>img {
  width: 31px;
  height: 31px;
}

.welcome-strip {
  height: auto;
  min-height: 82px;
  padding: 9px;
  gap: 10px;
}

.welcome-strip h1 {
  font-size: 18px;
}

.welcome-strip p {
  font-size: 12px;
}

.add-patient {
  font-size: 13px;
  padding: 7px 9px;
  white-space: nowrap;
}

.critical-alert {
  gap: 8px;
  align-items: flex-start;
}

.critical-alert p {
  font-size: 7px;
}

.review-btn {
  white-space: nowrap;
}

.visit-row {
  grid-template-columns: 72px 34px 1fr;
  min-height: 60px;
}

.visit-row .priority-badge,.visit-row .visit-state {
  display: none;
}

.team-row {
  grid-template-columns: 36px 1fr 90px;
}

.team-row .availability {
  display: none;
}

.chart-area {
  height: 300px;
}

.topbar, .topbar-inner {
  height: 28px;
}

.app-header, .header-inner {
  height: 64px;
}

.brand-copy strong, .brand-copy span {
  font-size: 12px;
}

.profile-menu > img {
  width: 38px;
  height: 38px;
}

.visit-row .priority-badge, .visit-row .visit-state {
  display: none;
}

.metric-card {
  min-height: 155px;
  height: auto;
}
}

@media(max-width:450px) {
.critical-alert p {
  display: none;
}

.alert-content strong {
  font-size: 9px;
}

.zone-mini-row {
  grid-template-columns: 1.15fr 1fr 38px;
}

.metric-card {
  height: auto;
  min-height: 108px;
}

.welcome-strip {
  align-items: flex-start;
}

.welcome-strip > div {
  min-width: 0;
}

.welcome-strip p {
  line-height: 1.4;
}

.add-patient {
  padding: 10px 11px;
  font-size: 12px;
}

.metric-value {
  font-size: 25px;
}

.sidebar-link {
  font-size: 15px;
}
}

/* ============================================================
   V3 UPDATE: ACCESSIBLE LARGER TYPOGRAPHY (15px minimum)
   ============================================================ */
html {
  font-size: 16px;
}

.brand-copy strong, .brand-copy span {
  font-size: 16px;
}

.profile-menu > img {
  width: 36px;
  height: 36px;
}

.user-dropdown-profile strong {
  font-size: 15px;
}

.sidebar-parent {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: space-between;
  cursor: pointer;
}

.sidebar-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-parent:hover {
  color: #fff;
}

.submenu-arrow {
  width: auto !important;
  font-size: 13px !important;
  transition: transform .25s ease;
}

.sidebar-parent.open .submenu-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: none;
  margin: 0 8px 7px 27px;
  padding: 5px 0 6px 12px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.sidebar-submenu.show {
  display: block;
}

.sidebar-submenu a {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cfd3df;
  font-size: 14px;
  padding: 7px 8px;
  border-radius: 6px;
}

.sidebar-submenu a i {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.sidebar-submenu a:hover,
.sidebar-submenu a.active {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.alert-content > i {
  font-size: 27px;
}

.coverage-item > div:first-child {
  font-size: 13px;
  margin-bottom: 8px;
}

/* ── Login page ───────────────────────────────────────────────────── */
.login-body {
  background: #eef1f6;
}

/* Hero banner strip */
.login-hero {
  position: relative;
  height: 155px;
  background: url('/assets/images/innerbanner.jpg') center/cover no-repeat;
  overflow: hidden;
}
.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 64, 0.52);
}

/* Section wrapper — pulls card up over the hero bottom edge */
.login-section {
  padding: 2.5rem 0 3.5rem;
}

/* Card container */
.login-wrapper {
  display: flex;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,.13);
}

/* ── Left info panel ── */
.login-info-panel {
  flex: 0 0 44%;
  background: #3d4d7a;
  color: #fff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-brand-box {
  background: #fff;
  border-radius: 8px;
  padding: .75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.login-brand-logo {
  height: 52px;
}

.login-info-text {
  font-size: .88rem;
  line-height: 1.65;
  opacity: .92;
  margin: 0;
}

.login-info-img {
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  min-height: 160px;
}

.login-info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Right form panel ── */
.login-form-panel {
  flex: 1;
  background: #fff;
  padding: 2.75rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

/* Title row: "Login" on the left, "Back to Home" on the right */
.login-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.login-form-head .login-form-title { margin-bottom: .2rem; }
.login-form-subtitle {
  font-size: .8rem;
  color: #6b7280;
  margin: 0;
}
.login-home-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  padding: .45rem .95rem;
  border: 1px solid #cfd6e6;
  border-radius: 999px;
  background: #f4f6fb;
  color: #3d4d7a;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.login-home-link:hover,
.login-home-link:focus-visible {
  background: #3d4d7a;
  border-color: #3d4d7a;
  color: #fff;
}
.login-home-link:focus-visible { outline: 2px solid #9fb0dd; outline-offset: 2px; }
@media (max-width: 420px) {
  .login-form-head { flex-direction: column-reverse; gap: .75rem; }
}

.login-field-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .35rem;
}

.login-input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  height: 46px;
  font-size: .92rem;
  color: #374151;
  padding: .5rem .9rem;
  background: #fff;
  transition: border-color .2s;
}
.login-input:focus {
  border-color: #3d4d7a;
  box-shadow: 0 0 0 3px rgba(61,77,122,.12);
  outline: none;
}
.login-input::placeholder { color: #9ca3af; }

/* Captcha row */
.login-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}

.login-captcha-row .login-captcha-input {
  border: none;
  border-radius: 0;
  flex: 1;
  height: 46px;
}
.login-captcha-row .login-captcha-input:focus {
  box-shadow: none;
  border-color: transparent;
}

.login-captcha-display {
  flex: 0 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-left: 1px solid #d1d5db;
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .25em;
  color: #1e3a6e;
  user-select: none;
  min-width: 76px;
}

.login-captcha-refresh {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  background: #e5e7eb;
  border-left: 1px solid #d1d5db;
  color: #374151;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}
.login-captcha-refresh:hover {
  background: #d1d5db;
  color: #111827;
}

/* Login button */
.login-btn {
  background: #1a2744;
  color: #fff;
  border: none;
  border-radius: 6px;
  height: 46px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s;
}
.login-btn:hover { background: #253562; color: #fff; }
.login-btn:active { background: #111c35; color: #fff; }

@media (max-width: 767px) {
  .login-wrapper { flex-direction: column; }
  .login-info-panel { flex: none; }
  .login-form-panel { padding: 2rem 1.5rem; }
  .login-hero { height: 100px; }
}

/* ═══════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════ */

body.home-template { background: #fff; overflow-x: hidden; }

.text-orange { color: var(--orange) !important; }
.text-yellow { color: var(--yellow) !important; }
.rounded-16  { border-radius: 16px !important; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ── Public nav ── */
.app-header-home {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background:var(--bs-white)
}
.app-header-home .navbar { padding: 0; }
.app-header-home .brandlogo { height: 52px; width: auto; }
.app-header-home .navbar-nav .nav-link {
  color: var(--body-text);
  font-weight: 500;
  padding: 1.1rem 0.7rem;
  font-size: 0.92rem;
}
.app-header-home .navbar-nav .nav-link:hover,
.app-header-home .navbar-nav .nav-link.active { color: var(--bs-primary); }

/* Dark dropdowns scoped to home page only */
.home-template .dropdown-menu {
  background: var(--bs-primary);
  border: none;
  padding: 0;
  overflow: hidden;
}
.home-template .dropdown-item {
  font-size: 14px;
  transition: all ease-in 0.2s;
  color: #fff;
  padding: 0.8rem 0.8rem;
  border-bottom: 1px dashed rgba(255,255,255,0.4) !important;
}
.home-template .dropdown-item:hover,
.home-template .dropdown-item:focus {
  background: rgba(255,255,255,0.12);
  color: var(--yellow);
}

.btn-walklife {
  font-size: 12px;
  text-align: left;
  background: var(--bs-primary);
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  border: none;
  line-height: 1.3;
}
.btn-walklife:hover { background: var(--bs-primary-hover); }
.btn-walklife span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--yellow);
}

/* ── Hero ── */
.hero-wrapper { position: relative; overflow: hidden; }
.hero-wrapper .carousel-control-next,
.hero-wrapper .carousel-control-prev { width: 50px; }

/* home-carousel class sits on .carousel-inner; outer .carousel needs height too */
.hero-wrapper .carousel,
.home-carousel,
.home-carousel .carousel-item {
  height: 400px;
  overflow: hidden;
}

.home-carousel .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-wrapper .carousel-item .carousel-caption {
  inset: 0;
  display: flex !important;
  justify-content: flex-start;
  text-align: left;
  padding: 1.5rem;
  align-items: center;
  background: rgba(29,31,77,0.5);
}
.carousel-inner-content {
  width: 1300px;
  margin: 0 auto;
  max-width: 90%;
}
.carousel-inner-content small {
  font-size: 20px; color: #fff; display: block; margin-bottom: 4px;
}
.carousel-inner-content h1 {
  font-size: clamp(2rem, 5vw, 70px);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 8px;
}
.carousel-inner-content p.lead {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--yellow);
  margin: 0;
}
.carousel-inner-content p {
  color: rgba(255,255,255,0.88);
  max-width: 780px;
  margin: 1.5rem 0;
}

/* ── Sections ── */
.section-pad { padding: 64px 0; }
.section-title { font-weight: 700; }

/* ── Founder ── */
.founder-section {
  background: var(--bs-primary);
  padding: 2rem 1rem;
  color: #fff;
}
/*.founder-img {
  width: 110px; height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.2);
  display: block;
}*/
.co-founder-header {
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.co-founder-header h3,
.founder-section h3 { color: var(--yellow); margin-bottom: 2px; font-size: 1.25rem; }
.founder-role { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.founder-quote {
  font-size: 0.92rem; color: rgba(255,255,255,0.88);
  font-style: italic; border: none; padding: 0; margin: 0;
}

/* ── Vision / Mission / Values ── */
.value-card {
  border-radius: 16px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(254,250,250,1) 0%, rgba(246,246,246,1) 100%);
  border: none;
  box-shadow: 0 14px 0 rgba(0,0,0,0.04);
}
.value-card .card-body { padding: 28px 28px 24px; }
.value-card h3 { font-weight:700; }

/* ── History ── */
.history-section { background: #E8E9F4; padding: 45px 0 55px; }
.history-section h2 { font-weight: 700; }
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin-bottom: 12px;
  padding: 8px 14px 8px 8px;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 150px;
}
.year {
  flex: 0 0 80px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: var(--yellow);
  display: flex;
  font-weight: 700;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.year small {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 3px;
  letter-spacing: .05em;
}
.timeline-item p { margin: 0; font-size: 0.88rem; line-height: 1.55; }

/* ── Management ── */
.member-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 1.2rem;
  text-align: center;
}
.member-img {
  border-radius: 16px;
  overflow: hidden;
  width: 120px; height: 120px;
  margin: 0 auto 1rem;
  display: inline-block;
}
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.member-card h5 { margin-bottom: 2px; }
.member-card span { font-size: 0.78rem; color: var(--muted); }

/* ── Home footer ── */
.footer-home {
	border-top:20px solid var(--bs-primary);
	border-bottom:20px solid var(--bs-primary);
  background: var(--bs-white);
  color: var(--bs-primary);
  padding: 48px 0 0;
}
.footer-home h5 {
  color: var(--bs-danger);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-home a {
  color: var(--bs-primary);
  display: block;
  margin-bottom: 7px;
}
.footer-home a:hover { color: var(--bs-danger); }
.footer-home .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-home .footer-brand .brand-mark { color: var(--yellow); font-size: 1.5rem; }
.footer-home .footer-brand strong { color: var(--bs-primary); line-height: 1.4; }
.footer-copy {
  border-top: 1px solid var(--bs-primary);
  text-align: center;
  padding: 14px 0;
  margin-top: 32px;
  font-size: 0.78rem;
  color:var(--bs-primary);
}

@media (max-width: 1199px) {
  .app-header-home .navbar-collapse {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 5px);
    z-index: 9;
    background: #fff;
  }
}
@media (max-width: 991px) {
  .hero-wrapper .carousel,
  .home-carousel,
  .home-carousel .carousel-item { height: 480px; }
  .carousel-inner-content { width: 100%; }
  .founder-section { padding: 24px 20px; }
}
@media (max-width: 767px) {
  .hero-wrapper .carousel,
  .home-carousel,
  .home-carousel .carousel-item { height: 340px; }
  .carousel-inner-content h1 { font-size: 1.75rem; }
  .carousel-inner-content small,
  .carousel-inner-content p.lead { font-size: 14px; }
  .section-pad { padding: 40px 0; }
  .values-section, .management-section { padding: 40px 0; }
  .history-section { padding: 30px 0 40px; }
  .timeline-item { border-radius: 24px; }
}

.accordion-item:not(:first-of-type) {
	border: 1px solid var(--bs-accordion-border-color);
}
.accordion-body .table-responsive {
	margin-top: -16px;
}
.accordion-body table {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
}
.accordion-body table thead th {
	background: var(--bg-body);
	color: var(--bs-black);
}
.accordion-body table thead th, .accordion-body table tbody td {
	padding: 1rem 1rem;
	border-color: rgba(0, 0, 0, 0.1);
	border-right-color: rgba(0, 0, 0, 0.1);
	border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.homebar-menu {
	padding:0.6rem 0;
}
.homebar-menu .nav-item .nav-link {
  font-size: 15px;
  color: var(--bs-primary);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-right: 2px solid #fff;
  background: #E5E5F4;
}
.homebar-menu .nav-item .nav-link:hover, .homebar-menu .nav-item .nav-link:focus, .homebar-menu .nav-item .nav-link.active {
	background: var(--bs-primary);
	color: var(--bs-white);
}
@media(max-width:1640.98px) {
	.homebar-menu .nav-item .nav-link {
		padding: 1rem 0.6rem;
	}

	.homebar-menu .nav-item:first-child .nav-link {
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
	}

	.homebar-menu .nav-item:last-child .nav-link {
		border-top-right-radius: 8px;
		border-bottom-right-radius: 8px;
	}

	.btn-walklife span {
		font-size: 14px;
	}

	.header-right .btn {
		padding-left: 6px;
		padding-right: 6px;
		font-size: 13px;
	}
}
.table-responsive {
	border-radius:15px;
	overflow:auto;
	border:1px solid var(--bs-light) !important;
}
table {
	border:1px solid var(--bs-light);
/*	border-radius:16px;
	overflow:hidden*/
}
	
	table tr th, table tr td {
		font-size: 15px;
		border-right:1px solid var(--bs-light);
	}
	/* top-aligned cells, except in tables marked align-middle (lists with photos / badges) */
	table:not(.align-middle) tr th, table:not(.align-middle) tr td {
		vertical-align: top;
	}
	table tr th {
		font-weight: 500;
		color: var(--bs-primary) !important;
	}
	@media (max-width: 1399px) {
		body {
		font-size:15px;
	}
	.btn {
		padding: 8px 16px;
		font-size: 14px;
		width:auto;
	}
	.patient-avatar {
		width:120px;
	}
	.sidebar-link {
		padding:8px 6px;
	}
	.sidebar-submenu {
		margin:0 0 0 14px;
	}
	.profile-dark-header, .profile-light-header {
		padding-left: 160px;
	}
	.profileHeaderleft {
		gap:10px;
	}
	h2.accordion-header .fs-5 {
		font-size:16px !important;
	}
	.accordion-header .btn {
		font-size:13px;
	}
	.accordion-header .btn.arc-btn {
		width:130px;
	}
	#patientTabs .nav-item .nav-link {
		height: 54px;
		padding: 10px 16px;
		font-size:16px;
	}
	.accordion-body table thead th, .accordion-body table tbody td {
		padding: 0.7rem 0.7rem;
		border-color: rgba(0, 0, 0, 0.1);
		border-right-color: rgba(0, 0, 0, 0.1);
		border-right: 1px solid rgba(0, 0, 0, 0.1);
	}
	.form-control, .form-select {
		padding:10px 16px;
	}
	.list-filters.p-2 {
		padding:1rem !important;
		border:none
	}
	.list-filters .btn-sm {
		padding: 12px 16px 11px;
	}
	.btn-group .btn-sm {
		padding:11px 16px;	
	}
}
@media (min-width: 992px) and (max-width: 1399px) {
	.app-sidebar {
		width: 270px;
		flex-basis: 270px;
	}
	.dashboard-main {
		width: calc(100% - 245px);
		min-width: 0;
		padding: 14px 12px 18px;   /* 12px sides: room for Bootstrap row gutters */
	}
}

/* Patient header on a phone (after the laptop block, so it wins there too) */
@media (max-width: 767.98px) {
  .profile-dark-header { padding-left: 110px; }
  .profile-light-header { padding-left: 16px; }
  .profile-light-header .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Tiles views (patients, staff, teams, Today's Assigned) ──────────────────────────────────────
   Nothing runs out of its card at any width or zoom: text items may shrink and long names / IDs
   wrap, while labels (inline min-width), avatars and badges keep their size. Pages with
   .tiles-4 show 4 tiles a row only from 1600px (3 from 1200px) so each tile stays wide enough. */
#tilesView .card { overflow-wrap: anywhere; }
#tilesView .d-flex > :not(img):not(.flex-shrink-0):not(.badge):not(.btn) { min-width: 0; }
@media (min-width: 1600px) { #tilesView.tiles-4 > .col { flex: 0 0 auto; width: 25%; } }

/* ── Header on tablets / phones: the logo scales down so the search, bell and profile always fit
   (no sideways scrolling of the whole page) ─────────────────────────────────────────────────── */
.header-inner { gap: 12px; }
.app-header .brand-area { min-width: 0; flex: 1 1 auto; }
.app-header .brand-area .brand { min-width: 0; }
.app-header .brand-area .brand img { display: block; max-width: 100%; height: auto; }
.brand img, .footer-brand img { max-width: 100%; height: auto; }   /* the footer logo too */
.app-header .header-right { flex-shrink: 0; }
@media (max-width: 991.98px) {
  .app-header .header-search { width: 180px; }
}
@media (max-width: 767.98px) {
  .app-header .brand-area .brand img { max-height: 44px; }
}

/* ── Searchable dropdowns (Tom Select on <select data-searchable>): same height, padding and text as
   the other dropdowns / text boxes (14px 16px, 10px 16px up to 1399px) ───────────────────────── */
.ts-wrapper.form-select .ts-control,
.ts-wrapper.form-control .ts-control { padding: 14px 40px 14px 16px; font-size: 1rem; line-height: 1.5; color: var(--body-text); }
.ts-wrapper.form-select .ts-control > input,
.ts-wrapper.form-control .ts-control > input { font-size: 1rem; line-height: 1.5; }
.ts-wrapper.plugin-clear_button .clear { right: 34px; }
@media (max-width: 1399px) {
  .ts-wrapper.form-select .ts-control,
  .ts-wrapper.form-control .ts-control { padding-top: 10px; padding-bottom: 10px; }
}

/* ── Paging under lists (wwwroot/assets/js/list-pager.js): "Show 25 per page", "Showing 1–25 of 80",
   page numbers in the theme colours ──────────────────────────────────────────────────────────── */
.list-pager { border-top: 1px solid var(--line); padding-top: 12px; }
.list-pager .form-select { width: auto; padding: 4px 30px 4px 10px; font-size: .875rem; background-position: right .5rem center; }
.list-pager .pagination .page-link { color: var(--bs-primary); min-width: 34px; text-align: center; }
.list-pager .pagination .page-item.active .page-link { background: var(--bs-warning); border-color: var(--bs-warning); color: #fff; }
.list-pager .pagination .page-item.disabled .page-link { color: #adb5bd; }

/* ── Team tiles: header in the theme's navy with the location in soft white (Teams, Patient Assignment) ── */
.team-tile-header { background: var(--bs-primary); color: #fff; border-bottom: 3px solid var(--yellow); }
.team-tile-header .fw-semibold { color: #fff; }
.team-tile-header .text-muted, .team-tile-header .small.text-muted { color: rgba(255, 255, 255, .75) !important; }
.team-tile-header .badge.bg-success-subtle { background: #d1f5dc !important; }
.team-tile-header .badge.bg-danger-subtle { background: #fde2e2 !important; }
.team-tile-header .badge.bg-primary { background: var(--yellow) !important; color: var(--bs-primary); }

/* ── Small filters (form-select-sm / form-control-sm) the same height as the small buttons next to them ── */
.form-select.form-select-sm, .form-control.form-control-sm { padding-top: 8px; padding-bottom: 8px; font-size: 14px; line-height: 1.5; }
.form-select.form-select-sm { padding-left: 12px; padding-right: 32px; background-position: right .6rem center; }
.form-control.form-control-sm { padding-left: 12px; padding-right: 12px; }

/* ── Master Data lists: same card, heading and table look as the main lists ─────────────────────── */
.master-list .card-header { border-radius: 12px 12px 0 0 !important; }
.master-list .card-header h5 { font-size: 1.1rem; color: var(--bs-primary); }
.master-list table thead th { white-space: nowrap; }

/* ── Doctor / nurse / counselor / patient tiles: same navy header as the team tiles ─────────────── */
.tile-header { background: var(--bs-primary); color: #fff; border-bottom: 3px solid var(--yellow); min-height: 68px; }
.tile-header .fw-bold, .tile-header .fw-semibold { color: #fff; }
.tile-header .text-muted { color: rgba(255, 255, 255, .78) !important; }
.tile-header img.rounded-circle, .tile-header .rounded-circle { border: 2px solid rgba(255, 255, 255, .9) !important; }
.tile-header .rounded-circle.bg-primary { background: var(--yellow) !important; color: var(--bs-primary) !important; }
.tile-header .badge.bg-success-subtle { background: #d1f5dc !important; }
.tile-header .badge.bg-danger-subtle { background: #fde2e2 !important; }
.tile-header .badge.bg-secondary-subtle { background: #e9ecef !important; }
@media (max-width: 991.98px) {
	.brand {
		margin-left: 0px;
		gap: 9px;
	}
	.brand-mark {
		width: 50px;
		height: 50px; 
	}
	.app-header-home .brandlogo {
		max-height: 48px;
	}
	.navbar-toggler {
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 7px;
		background: #eef0f6;
		color: var(--bs-primary);
		font-size: 20px;
		padding: 0;
		position: absolute;
		left: 1rem;
		top: 10px; 
	}
}

	@media (max-width: 767.98px) {
		.brand {
			margin-left: 40px;
			gap: 5px;
		}
		.header-inner .brand {
			margin-left:0;
		}
		.app-footer a.brand {
			margin-left: 0;
		}
		.brand-mark {
			width: 40px;
			height: 40px;
		}
		.app-header-home .brandlogo {
			max-height: 38px;
		}
		.navbar-toggler {
			top:2px;
		}
			.brand-copy strong, .brand-copy span {
			font-size: 11px;
		}
		.navbar-toggler:focus {
			outline: none;
			box-shadow: none;
		}

		.btn-walklife span {
			font-size: 12px;
		}

		.btn-walklife {
			font-size: 10px;
			padding: 6px 5px;
			width: auto;
			position: absolute;
			right: 1rem;
			top: 0;
		}

		

		.app-header, .header-inner {
			height: auto;
		}

		.welcome-strip {
			display: block;
		}

			.welcome-strip .btn {
				margin-top: 10px;
			}

		.patient-avatar {
			width: 80px;
			height: 80px;
			overflow: hidden;
			top: 12px;
		}

			.patient-avatar img {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}

		.profile-dark-header {
			padding: 12px 12px 12px 110px;
			min-height: 105px;
			display: block !important;
		}

			.profile-dark-header .btn {
				margin-top: 10px;
			}

		.profileHeaderleft {
			gap: 6px;
		}

		.profile-dark-header.mb-3 {
			margin-bottom: 5px !important;
		}

		.profile-light-header {
			padding: 0 0 1rem 0;
		}

		.accordion-header > .d-flex {
			display: block !important;
		}

			.accordion-header > .d-flex .accordion-button {
				margin-bottom: 8px;
			}

		.accordion-body {
			padding: 0.2rem 1rem 1rem 1rem;
		}

			.accordion-body .table-responsive {
				margin-top: 0;
			}

		.table-responsive {
			border-radius: 0;
			border: none !important;
		}

		.hero-wrapper .carousel, .home-carousel, .home-carousel .carousel-item {
			height: 400px;
		}
		.figcaption-title {
			font-size:18px;
			line-height:1.4;
		}
	}

	@media (max-width: 575.98px) {
		.profile-dark-header {
			height: auto;
		}

		.patient-avatar {
			width: 80px;
			height: 80px;
			overflow: hidden;
		}

		.profile-main-block-mob .d-flex {
			display: block !important
		}

		.profile-dark-header {
			padding-left: 110px;
		}
	}

	@media (max-width: 399.98px) {

		.btn-walklife span {
			font-size: 11px;
		}

		.btn-walklife {
			font-size: 10px;
			padding: 6px 5px;
			width: 81px;
			position: absolute;
			right: 1rem;
			top: -6px;
		}
	}

