/* ═══════════════════════════════════════════════════════════════
   Customer Pages — Extracted inline styles
   Source files listed in section headers
   ═══════════════════════════════════════════════════════════════ */

/* === customers/hco-analytics/index.php === */
.sa-hco-kpi-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem; margin-bottom: 1.25rem;
}
.sa-hco-kpi {
	background: #fff; border: 1px solid #D8D0C3; border-radius: 6px;
	padding: 1rem 1.25rem; position: relative; overflow: hidden;
}
.sa-hco-kpi__icon {
	position: absolute; top: 0.75rem; right: 0.75rem;
	font-size: 1.1rem; color: #B5AB9D;
}
.sa-hco-kpi__value { font-size: 1.5rem; font-weight: 700; color: #2A2622; line-height: 1.2; }
.sa-hco-kpi__label { font-size: 0.72rem; color: #6E6660; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-top: 0.15rem; }
.sa-hco-kpi__change {
	display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.4rem;
	border-radius: 4px; margin-top: 0.3rem;
}
.sa-hco-kpi__change--up { background: #DFE5D6; color: #3F4D3A; }
.sa-hco-kpi__change--down { background: #fee2e2; color: #991b1b; }
.sa-hco-kpi__change--flat { background: #EFEBE5; color: #6E6660; }

.sa-hco-location-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 0.75rem;
}
.sa-hco-location-card {
	background: #fff; border: 1px solid #D8D0C3; border-radius: 6px;
	padding: 0.85rem 1rem; transition: border-color 0.15s;
}
.sa-hco-location-card:hover { border-color: var(--sa-primary-color, #305e6d); }
.sa-hco-location-card__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.sa-hco-location-card__icon {
	width: 32px; height: 32px; border-radius: 6px; object-fit: contain;
	background: #EFEBE5; flex-shrink: 0;
}
.sa-hco-location-card__name { font-size: 0.82rem; font-weight: 600; color: #2A2622; }
.sa-hco-location-card__stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.sa-hco-location-stat { text-align: center; }
.sa-hco-location-stat__value { font-size: 0.95rem; font-weight: 700; color: #2A2622; }
.sa-hco-location-stat__label { font-size: 0.62rem; color: #847C70; text-transform: uppercase; letter-spacing: 0.03em; }

.sa-hco-chart-card {
	background: #fff; border: 1px solid #D8D0C3; border-radius: 6px;
	margin-bottom: 1rem;
}
.sa-hco-chart-card__header {
	padding: 0.75rem 1rem; border-bottom: 1px solid #D8D0C3;
	font-size: 0.8rem; font-weight: 600; color: #3D3833;
}
.sa-hco-chart-card__body { padding: 1rem; }

.sa-hco-product-row {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.5rem 0; border-bottom: 1px solid #EFEBE5;
	font-size: 0.78rem;
}
.sa-hco-product-row:last-child { border-bottom: none; }
.sa-hco-product-rank {
	width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
	background: #EFEBE5; border-radius: 50%; font-size: 0.7rem; font-weight: 700; color: #6E6660;
	flex-shrink: 0;
}
.sa-hco-product-name { flex: 1; font-weight: 500; }
.sa-hco-product-bar-container { width: 100px; height: 6px; background: #EFEBE5; border-radius: 3px; flex-shrink: 0; }
.sa-hco-product-bar { height: 100%; background: var(--sa-primary-color, #305e6d); border-radius: 3px; }
.sa-hco-product-value { width: 70px; text-align: right; font-weight: 600; color: #2A2622; flex-shrink: 0; }

.sa-hco-loading { text-align: center; padding: 2rem; color: #847C70; font-size: 0.82rem; }

@media (max-width: 768px) {
	.sa-hco-kpi-grid { grid-template-columns: repeat(2, 1fr); }
	.sa-hco-location-grid { grid-template-columns: 1fr; }
	.sa-hco-location-card__stats { grid-template-columns: repeat(2, 1fr); }
}

/* === customers/home/clinic-home-main.php === */
/* --------------------------------------------------------
   Dashboard Panel Grid (3-col)
   -------------------------------------------------------- */
.sa-dash-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

/* Individual panel */
.sa-dash-panel {
	background: #fff;
	border: 1px solid #D8D0C3;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Panel header bar */
.sa-dash-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0.85rem;
	border-bottom: 1px solid #D8D0C3;
	flex-shrink: 0;
}
.sa-dash-panel__title-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sa-dash-panel__title {
	font-size: 0.8rem;
	font-weight: 600;
	color: #6E6660;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin: 0;
}
.sa-dash-panel__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	padding: 0.15rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 10px;
	margin-left: 0.35rem;
	color: #6E6660;
	background: #EFEBE5;
}
.sa-dash-panel--highlight .sa-dash-panel__count { color: #92400e; background: #fef3c7; }
.sa-dash-panel--danger .sa-dash-panel__count { color: #991b1b; background: #fee2e2; }
.sa-dash-panel--info .sa-dash-panel__count { color: #1A1715; background: #E8E0D4; }

.sa-dash-panel__view-all {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--sa-primary-color, #305e6d);
	text-decoration: none;
	white-space: nowrap;
}
.sa-dash-panel__view-all:hover {
	text-decoration: underline;
}

/* Uniform block height */
.sa-dash-panel {
	min-height: 280px;
}

/* Scrollable table body */
.sa-dash-table-wrap {
	flex: 1;
	overflow-y: auto;
	max-height: 240px;
	min-height: 120px;
}

/* Full-width table */
.sa-dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
	color: #3D3833;
}
.sa-dash-table thead {
	position: sticky;
	top: 0;
	z-index: 1;
}
.sa-dash-table thead th {
	background: #f8f9fa;
	font-weight: 600;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6E6660;
	padding: 0.4rem 0.65rem;
	border-bottom: 2px solid #D8D0C3;
	white-space: nowrap;
}
.sa-dash-table tbody tr {
	border-bottom: 1px solid #EFEBE5;
	transition: background 0.1s;
}
.sa-dash-table tbody tr:hover {
	background: #f0f7f9;
}
.sa-dash-table tbody tr:last-child {
	border-bottom: none;
}
.sa-dash-table td {
	padding: 0.45rem 0.65rem;
	vertical-align: middle;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.35;
}
.sa-dash-table td.td-order { font-weight: 600; color: var(--sa-primary-color, #305e6d); }
.sa-dash-table td.td-patient { max-width: 140px; }
.sa-dash-table td.td-date { width: 90px; color: #6E6660; font-size: 0.73rem; }
.sa-dash-table td.td-actions { width: 90px; text-align: right; overflow: visible; padding: 0.3rem 0.65rem; }

/* Empty state */
.sa-dash-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #847C70;
	font-size: 0.8rem;
	padding: 2.5rem 1rem;
	text-align: center;
}
.sa-dash-empty i {
	font-size: 1.4rem;
	margin-bottom: 0.4rem;
	opacity: 0.4;
}

/* --------------------------------------------------------
   Quick Actions Card (matches admin dashboard)
   -------------------------------------------------------- */
.sa-quick-actions-card {
	background: #fff;
	border: 1px solid #D8D0C3;
	margin-bottom: 1rem;
}
.sa-quick-actions-card__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-bottom: 1px solid #D8D0C3;
}
.sa-quick-actions-card__header h6 {
	font-size: 0.8rem;
	font-weight: 600;
	color: #6E6660;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin: 0;
}
.sa-quick-actions-card__header i {
	color: var(--sa-primary-color, #305e6d);
	font-size: 0.85rem;
}
.sa-primary-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	padding: 1rem;
}
.sa-primary-action {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #F8F6F3;
	border: 2px dashed #B5AB9D;
	text-decoration: none;
	color: #3D3833;
	transition: all 0.2s ease;
	cursor: pointer;
}
.sa-primary-action:hover {
	border-color: var(--sa-primary-color, #305e6d);
	background: #f0f7f9;
	color: #3D3833;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sa-primary-action__icon {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--primary-rgb, 48, 94, 109), 0.1);
	color: var(--sa-primary-color, #305e6d);
	font-size: 1.3rem;
	font-weight: 700;
	flex-shrink: 0;
}
.sa-primary-action__text h5 {
	font-size: 0.88rem;
	font-weight: 700;
	margin: 0 0 0.1rem;
	color: #212529;
}
.sa-primary-action__text p {
	font-size: 0.75rem;
	color: #6c757d;
	margin: 0;
}
.sa-primary-action--disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: default;
}
.sa-primary-action--locked {
	opacity: 0.55;
	border-color: #D8D0C3;
	background: #F8F6F3;
}
.sa-primary-action--locked .sa-primary-action__icon {
	background: #EFEBE5;
	color: #847C70;
}
.sa-primary-action--locked .sa-primary-action__text h5 {
	color: #6E6660;
}
.sa-primary-action--locked .sa-primary-action__text p {
	color: #A87825;
	font-weight: 600;
}
.sa-primary-action--locked:hover {
	border-color: #A87825;
	background: #fffbeb;
	opacity: 0.85;
}

/* --------------------------------------------------------
   Stat card overrides for customer dashboard
   -------------------------------------------------------- */
.sa-stats-row .sa-stat-card {
	min-height: 280px;
	padding: 1.5rem;
}
.sa-stat-card--clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.sa-stat-card--clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.sa-stat-card__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
	flex-wrap: wrap;
}
.sa-stat-card__actions .btn {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	border-radius: 0;
}

/* --------------------------------------------------------
   Google Map
   -------------------------------------------------------- */
.sa-map-card {
	background: #fff;
	border: 1px solid #D8D0C3;
	margin-bottom: 1rem;
}
.sa-map-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #D8D0C3;
}
.sa-map-card__header h6 {
	font-size: 0.8rem;
	font-weight: 600;
	color: #6E6660;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin: 0;
}
.sa-map-card__header .sa-map-count {
	font-size: 0.75rem;
	color: #847C70;
}
#homeMap {
	width: 100%;
	height: 380px;
}
.sa-map-states {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-top: 1px solid #D8D0C3;
	background: #F8F6F3;
}
.sa-map-state-badge {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	background: #D8D0C3;
	color: #3D3833;
}
.sa-map-state-badge span {
	color: var(--sa-primary-color, #305e6d);
	font-weight: 700;
}
/* Map layer toggle */
.sa-map-toggle .btn {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.3rem 0.75rem;
	border-radius: 0;
}
.sa-map-toggle .btn-sa-primary {
	background: var(--sa-primary-color, #305e6d);
	color: #fff;
	border-color: var(--sa-primary-color, #305e6d);
}
.sa-map-toggle .btn-sa-outline {
	background: #fff;
	color: #6E6660;
	border-color: #B5AB9D;
}
.sa-map-toggle .btn-sa-outline:hover {
	background: #EFEBE5;
	color: #3D3833;
	border-color: #847C70;
}

/* --------------------------------------------------------
   Two-column grid (below main 3-col)
   -------------------------------------------------------- */
.sa-dash-grid--2col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

/* Staff list compact */
.sa-staff-list-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.65rem;
	border-bottom: 1px solid #EFEBE5;
}
.sa-staff-list-item:last-child { border-bottom: none; }
.sa-staff-list-item__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #D8D0C3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	font-weight: 700;
	color: #6E6660;
	flex-shrink: 0;
	overflow: hidden;
}
.sa-staff-list-item__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.sa-staff-list-item__name {
	font-size: 0.78rem;
	font-weight: 600;
	color: #212529;
}
.sa-staff-list-item__badges {
	display: flex;
	gap: 0.3rem;
	margin-left: auto;
}

/* Branded buttons */
.btn-sa-primary {
	background: var(--sa-primary-color, #305e6d);
	color: #fff;
	border: 1px solid var(--sa-primary-color, #305e6d);
}
.btn-sa-primary:hover, .btn-sa-primary:focus {
	background: #264a57;
	border-color: #264a57;
	color: #fff;
}
.btn-sa-outline {
	background: transparent;
	color: var(--sa-primary-color, #305e6d);
	border: 1px solid var(--sa-primary-color, #305e6d);
}
.btn-sa-outline:hover, .btn-sa-outline:focus {
	background: var(--sa-primary-color, #305e6d);
	color: #fff;
}

/* --------------------------------------------------------
   Responsive
   -------------------------------------------------------- */
@media (max-width: 1400px) {
	.sa-dash-grid { grid-template-columns: 1fr 1fr; }
	.sa-dash-grid--2col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
	.sa-dash-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.sa-dash-panel { min-height: 220px; }
	.sa-stats-row .sa-stat-card { min-height: 220px; }
}
@media (max-width: 768px) {
	.sa-primary-actions { grid-template-columns: 1fr; }
	.sa-dash-grid--2col { grid-template-columns: 1fr; }
	#homeMap { height: 260px; }
}
@media (max-width: 576px) {
	.sa-dash-grid { grid-template-columns: 1fr; gap: 0.5rem; }
	.sa-dash-panel { min-height: 180px; }
	.sa-stats-row .sa-stat-card { min-height: 180px; padding: 0.75rem; }
	#homeMap { height: 200px; }
}

/* === customers/orders/index.php === */
.sa-order-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 0.68rem;
	font-weight: 700;
	border-radius: 11px;
	margin-left: 0.4rem;
	line-height: 1;
	transition: all 0.2s;
}
.sa-order-tab-count--all { background: #EFEBE5; color: #6E6660; }
.sa-order-tab-count--patient { background: rgba(13,110,253,0.1); color: #0d6efd; }
.sa-order-tab-count--consignment { background: rgba(13,202,240,0.1); color: #5F7058; }
.nav-link.active .sa-order-tab-count--all { background: var(--sa-primary-color, #305e6d); color: #fff; }
.nav-link.active .sa-order-tab-count--patient { background: #0d6efd; color: #fff; }
.nav-link.active .sa-order-tab-count--consignment { background: #5F7058; color: #fff; }

/* === customers/orders/clinic-orders-view.php === */
/* Dropdown container */
.sa-billing-dropdown { position: relative; }

/* Trigger — matches Bootstrap .form-control */
#billingPanelContainer .sa-billing-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #212529;
	background-color: #fff !important;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	cursor: pointer;
	min-height: 38px;
	transition: border-color 0.15s;
}
.sa-billing-dropdown__trigger:hover { border-color: #86b7fe; }
.sa-billing-dropdown.open .sa-billing-dropdown__trigger {
	border-color: var(--sa-primary-color, #305e6d);
	box-shadow: 0 0 0 0.2rem rgba(48,94,109,0.15);
}
.sa-billing-dropdown.has-error .sa-billing-dropdown__trigger { border-color: #dc3545; }
.sa-billing-dropdown__text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sa-billing-dropdown__text.is-placeholder { color: #6c757d; }
.sa-billing-dropdown__chevron {
	font-size: 0.65rem;
	color: #6c757d;
	margin-left: 8px;
	transition: transform 0.2s;
}
.sa-billing-dropdown.open .sa-billing-dropdown__chevron { transform: rotate(180deg); }

/* Panel — absolutely positioned, two-column */
.sa-billing-dropdown__panel {
	display: none;
	position: absolute;
	z-index: 1050;
	top: 100%;
	left: 0;
	margin-top: 2px;
	min-width: 700px;
	background: #fff;
	border: 1px solid #B5AB9D;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
	overflow: hidden;
}
.sa-billing-dropdown.open .sa-billing-dropdown__panel { display: flex; }

/* Columns */
.sa-billing-col {
	flex: 1;
	min-width: 0;
	max-height: 380px;
	overflow-y: auto;
	padding: 12px;
}
.sa-billing-col + .sa-billing-col {
	border-left: 1px solid #D8D0C3;
}

/* Column header */
.sa-billing-col__header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 4px 10px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #6E6660;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid #EFEBE5;
	margin-bottom: 6px;
}
.sa-billing-col__header i {
	font-size: 0.75rem;
	color: var(--sa-primary-color, #305e6d);
}

/* No providers */
.sa-billing-empty {
	font-size: 0.78rem;
	color: #847C70;
	font-style: italic;
	padding: 12px 10px;
	text-align: center;
}

/* Group agreement cards inside GROUP column */
.sa-billing-group {
	background: #F8F6F3;
	border: 1px solid #D8D0C3;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 8px;
}
.sa-billing-group:last-child { margin-bottom: 0; }
.sa-billing-group__header {
	margin-bottom: 6px;
	padding-bottom: 5px;
	border-bottom: 1px solid #D8D0C3;
}
.sa-billing-group__name {
	font-size: 0.76rem;
	font-weight: 700;
	color: #3D3833;
}
.sa-billing-group__npi {
	font-size: 0.66rem;
	color: #6E6660;
	margin-left: 4px;
}
.sa-billing-group__locations {
	font-size: 0.66rem;
	color: #6E6660;
	margin-top: 2px;
}
.sa-billing-group__locations i { font-size: 0.6rem; }

/* Radio option rows */
.sa-billing-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 8px;
	border-radius: 5px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.12s;
	margin-bottom: 1px;
}
.sa-billing-option:hover { background: #EFEBE5; }
.sa-billing-option.selected {
	background: #eef6f8;
	border-color: var(--sa-primary-color, #305e6d);
}
.sa-billing-option input[type="radio"] {
	accent-color: var(--sa-primary-color, #305e6d);
	margin-top: 3px;
	flex-shrink: 0;
}
.sa-billing-option__info { line-height: 1.3; }
.sa-billing-option__name {
	font-size: 0.78rem;
	font-weight: 600;
	color: #2A2622;
}
.sa-billing-option__detail {
	font-size: 0.68rem;
	color: #6E6660;
}

/* Group providers summary box below the dropdown */
.sa-group-summary {
	background: #F8F6F3;
	border: 1px solid #D8D0C3;
	border-radius: 0.5rem;
	padding: 12px 14px;
	margin-top: 8px;
}
.sa-group-summary__title {
	font-size: 0.72rem;
	font-weight: 600;
	color: #3D3833;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.sa-group-summary__title i { color: var(--sa-primary-color, #305e6d); }
.sa-group-summary__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sa-group-summary__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 8px;
	background: #fff;
	border-radius: 4px;
	font-size: 0.76rem;
	color: #3D3833;
}
.sa-group-summary__item-npi {
	font-size: 0.68rem;
	color: #847C70;
	font-variant-numeric: tabular-nums;
}

/* === customers/purchase-agreements/clinic-purchase-agreements-view.php === */
.sa-ats { padding: 1.5rem; }
.sa-ats__header { margin-bottom: 1.5rem; }
.sa-ats__header h5 { font-size: 1.1rem; font-weight: 700; color: #2A2622; margin: 0 0 0.25rem; }
.sa-ats__header p { font-size: 0.85rem; color: #6E6660; margin: 0; }

/* Info callout with subtle left accent */
.sa-ats__callout {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: #F8F6F3;
	border: 1px solid #D8D0C3;
	border-left: 3px solid var(--sa-primary-color, #305e6d);
	margin-bottom: 2rem;
	font-size: 0.82rem;
	color: #3D3833;
	line-height: 1.6;
}
.sa-ats__callout i { color: var(--sa-primary-color, #305e6d); margin-top: 0.15rem; flex-shrink: 0; font-size: 0.95rem; }
.sa-ats__callout strong { color: #2A2622; }
.sa-ats__callout ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.sa-ats__callout li { margin-bottom: 0.15rem; }

/* Column section headers */
.sa-ats__section-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid #D8D0C3;
}
.sa-ats__section-header i { font-size: 1rem; }
.sa-ats__section-header h6 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.sa-ats__section-header .badge { font-size: 0.65rem; padding: 0.2em 0.5em; font-weight: 600; }
.sa-ats__section-header--purchase i,
.sa-ats__section-header--purchase h6 { color: #3D3833; }
.sa-ats__section-header--purchase { border-bottom-color: #B5AB9D; }
.sa-ats__section-header--consignment i,
.sa-ats__section-header--consignment h6 { color: #3D3833; }
.sa-ats__section-header--consignment { border-bottom-color: #B5AB9D; }

/* Agreement type cards */
.sa-ats__card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border: 2px dashed #B5AB9D;
	text-decoration: none;
	color: #3D3833;
	transition: all 0.2s ease;
	cursor: pointer;
	margin-bottom: 0.75rem;
}
.sa-ats__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	color: #3D3833;
	text-decoration: none;
}
.sa-ats__card--purchase {
	background: #fafafa;
	border-color: #B5AB9D;
}
.sa-ats__card--purchase:hover {
	border-color: #3D3833;
	background: #EFEBE5;
	border-style: solid;
}
.sa-ats__card--consignment {
	background: #fafafa;
	border-color: #B5AB9D;
}
.sa-ats__card--consignment:hover {
	border-color: #3D3833;
	background: #EFEBE5;
	border-style: solid;
}
.sa-ats__card-icon {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}
.sa-ats__card--purchase .sa-ats__card-icon { background: #EFEBE5; color: #3D3833; }
.sa-ats__card--consignment .sa-ats__card-icon { background: #EFEBE5; color: #3D3833; }
.sa-ats__card-body { flex: 1; min-width: 0; }
.sa-ats__card-title { font-size: 0.88rem; font-weight: 700; color: #2A2622; margin: 0 0 0.2rem; }
.sa-ats__card-desc { font-size: 0.78rem; color: #6E6660; margin: 0; line-height: 1.45; }
.sa-ats__card-arrow { color: #847C70; font-size: 0.85rem; flex-shrink: 0; transition: transform 0.2s ease; }
.sa-ats__card:hover .sa-ats__card-arrow { transform: translateX(3px); }
.sa-ats__card--purchase:hover .sa-ats__card-arrow { color: #3D3833; }
.sa-ats__card--consignment:hover .sa-ats__card-arrow { color: #3D3833; }

/* === customers/release-notes/index.php === */
.rn-container {
	display: flex;
	min-height: 500px;
	max-height: calc(100vh - 220px);
}
.rn-sidebar {
	width: 200px;
	flex-shrink: 0;
	border-right: 1px solid #D8D0C3;
	background: #fafbfc;
	overflow-y: auto;
	padding: 1.25rem 0;
}
.rn-sidebar-title {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #847C70;
	padding: 0 1.25rem;
	margin-bottom: 0.75rem;
}
.rn-sidebar-item {
	display: block;
	width: 100%;
	padding: 0.6rem 1.25rem;
	border: none;
	background: none;
	text-align: left;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
}
.rn-sidebar-item:hover {
	background: #EFEBE5;
}
.rn-sidebar-item.active {
	border-left-color: var(--primary-color, #3D3833);
	background: rgba(79, 70, 229, 0.05);
}
.rn-sidebar-ver {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1A1715;
	line-height: 1.2;
}
.rn-sidebar-item.active .rn-sidebar-ver {
	color: var(--primary-color, #3D3833);
}
.rn-sidebar-date {
	font-size: 0.72rem;
	color: #847C70;
	margin-top: 1px;
}
.rn-content {
	flex: 1;
	padding: 2rem;
	overflow-y: auto;
}
.rn-version-section {
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid #D8D0C3;
}
.rn-version-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.rn-version-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 0.75rem;
	row-gap: 0.4rem;
	margin-bottom: 1.5rem;
}
.rn-version-num {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1A1715;
}
.rn-version-date {
	font-size: 0.8rem;
	color: #6E6660;
	white-space: nowrap;
}
/* Badge gets its own row — the long type summary would otherwise squeeze the
   date into a multi-line wrap when it shares a flex line. */
.rn-version-badge {
	font-size: 0.65rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	background: #EFEBE5;
	color: #6E6660;
	flex-basis: 100%;
	order: 10;
	line-height: 1.5;
	border-radius: 4px;
}
.rn-section {
	margin-bottom: 1.25rem;
	padding-left: 1rem;
	border-left: 3px solid #D8D0C3;
}
.rn-section:last-child { margin-bottom: 0; }
.rn-section--added { border-left-color: #5F7058; }
.rn-section--improved { border-left-color: #3D3833; }
.rn-section--fixed { border-left-color: #A87825; }
.rn-section-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}
.rn-section--added .rn-section-label { color: #5F7058; }
.rn-section--improved .rn-section-label { color: #3D3833; }
.rn-section--fixed .rn-section-label { color: #A87825; }
.rn-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.rn-list li {
	position: relative;
	padding: 0.25rem 0 0.25rem 1rem;
	font-size: 0.84rem;
	color: #3D3833;
	line-height: 1.55;
}
.rn-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #B5AB9D;
}
.rn-section--added .rn-list li::before { background: #5F7058; }
.rn-section--improved .rn-list li::before { background: #3D3833; }
.rn-section--fixed .rn-list li::before { background: #A87825; }

@media (max-width: 768px) {
	.rn-container { flex-direction: column; max-height: none; }
	.rn-sidebar { display: none; }
	.rn-content { max-height: none; padding: 1.25rem; }
}

/* === customers/returns/clinic-returns-entry.php === */
/* Return Detail v3 */

/* Header */
.sa-rd-header {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	padding: 1.25rem 1.5rem; border-bottom: 1px solid #D8D0C3;
	background: linear-gradient(135deg, #F8F6F3 0%, #EFEBE5 100%);
}
.sa-rd-header__left { display: flex; align-items: center; gap: 0.85rem; }
.sa-rd-header__icon {
	width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
	background: linear-gradient(135deg, #fef2f2, #fecaca);
	display: flex; align-items: center; justify-content: center;
	font-size: 1rem; color: #dc2626;
}
.sa-rd-header__title { font-size: 1.15rem; font-weight: 700; color: #1A1715; }
.sa-rd-header__sub { font-size: 0.78rem; color: #6E6660; font-weight: 500; margin-top: 0.1rem; }
.sa-rd-header__date::before { content: '\B7'; margin: 0 0.4rem; }
.sa-rd-header__right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Section (items table wrapper) */
.sa-rd-section { border-bottom: 1px solid #D8D0C3; }
.sa-rd-section__head {
	padding: 0.65rem 1.5rem; font-size: 0.72rem; font-weight: 700;
	color: #524A45; background: #F8F6F3; border-bottom: 1px solid #D8D0C3;
	text-transform: uppercase; letter-spacing: 0.04em;
}

/* Items Table */
.sa-rd-table thead th {
	background: #fff; font-size: 0.7rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em; color: #6E6660;
	padding: 0.6rem 1.5rem; border-bottom: 2px solid #D8D0C3;
}
.sa-rd-table tbody td {
	padding: 0.75rem 1.5rem; font-size: 0.85rem; color: #3D3833;
	vertical-align: middle; border-bottom: 1px solid #EFEBE5;
}
.sa-rd-table tbody tr:hover { background: #fafbfc; }
.sa-rd-table tfoot td {
	padding: 0.75rem 1.5rem; background: #F8F6F3; border-top: 2px solid #D8D0C3;
}
.sa-rd-total { color: #5F7058; font-size: 0.95rem; }

/* Three-column info row */
.sa-rd-info-row {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
}
.sa-rd-info-col {
	padding: 1.25rem 1.5rem; border-right: 1px solid #D8D0C3;
}
.sa-rd-info-col:last-child { border-right: none; }
.sa-rd-info-col__head {
	font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.06em; color: #847C70; margin-bottom: 0.75rem;
	padding-bottom: 0.5rem; border-bottom: 1px solid #EFEBE5;
}

/* Description List */
.sa-rd-dl { margin: 0; }
.sa-rd-dl__row {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 0.4rem 0;
}
.sa-rd-dl__row dt {
	font-size: 0.76rem; font-weight: 600; color: #6E6660; flex-shrink: 0; margin-right: 0.75rem;
}
.sa-rd-dl__row dd {
	font-size: 0.84rem; font-weight: 500; color: #2A2622; text-align: right;
	margin: 0; word-break: break-word;
}

/* Documents & Notes */
.sa-rd-doc {
	margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #EFEBE5;
}
.sa-rd-doc a {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.82rem; font-weight: 600; color: var(--sa-primary-color, #305E6C);
	text-decoration: none; padding: 0.45rem 0.85rem;
	border: 1px solid #D8D0C3; border-radius: 6px; transition: all 0.15s;
}
.sa-rd-doc a:hover { background: #F8F6F3; border-color: #B5AB9D; }
.sa-rd-notes { font-size: 0.84rem; color: #524A45; line-height: 1.5; }

/* Status Stepper */
.sa-stepper {
	position: relative; padding: 2rem 4rem 1.25rem; border-bottom: 1px solid #D8D0C3;
}
.sa-stepper__track {
	position: absolute; top: 2.65rem; left: 4rem; right: 4rem;
	height: 4px; background: #D8D0C3; border-radius: 2px;
}
.sa-stepper__fill {
	height: 100%; background: var(--sa-primary-color, #305E6C);
	border-radius: 2px; transition: width 0.6s ease;
}
.sa-stepper__steps {
	position: relative; display: flex; justify-content: space-between;
}
.sa-stepper__step {
	display: flex; flex-direction: column; align-items: center; gap: 0.6rem; z-index: 1;
	min-width: 80px;
}
.sa-stepper__dot {
	width: 44px; height: 44px; border-radius: 50%; background: #fff;
	border: 3px solid #D8D0C3; color: #847C70;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.9rem; transition: all 0.3s;
}
.sa-stepper__label {
	font-size: 0.75rem; font-weight: 600; color: #847C70; white-space: nowrap;
}
.sa-stepper__step--done .sa-stepper__dot {
	background: #DFE5D6; border-color: #7A8C6E; color: #5F7058;
}
.sa-stepper__step--done .sa-stepper__label { color: #5F7058; }
.sa-stepper__step--current .sa-stepper__dot {
	background: var(--sa-primary-color, #305E6C); border-color: var(--sa-primary-color, #305E6C);
	color: #fff; box-shadow: 0 0 0 6px rgba(48, 94, 108, 0.15);
	transform: scale(1.15);
}
.sa-stepper__step--current .sa-stepper__label {
	color: var(--sa-primary-color, #305E6C); font-weight: 700; font-size: 0.78rem;
}
.sa-stepper__step--denied .sa-stepper__dot {
	background: #dc2626; border-color: #dc2626; color: #fff;
	box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15); transform: scale(1.15);
}
.sa-stepper__step--denied .sa-stepper__label { color: #dc2626; font-weight: 700; font-size: 0.78rem; }

/* Admin Actions Bar */
.sa-rd-actions {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.75rem 1.5rem; background: #F8F6F3; border-bottom: 1px solid #D8D0C3;
}
.sa-rd-actions__label {
	font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.04em; color: #6E6660;
}
.sa-rd-actions__btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Activity Log */
.sa-activity-log__item {
	display: flex; align-items: flex-start; gap: 0.75rem;
	padding: 0.6rem 0; border-bottom: 1px solid #EFEBE5;
}
.sa-activity-log__item:last-child { border-bottom: none; }
.sa-activity-log__icon {
	width: 28px; height: 28px; border-radius: 50%; background: #EFEBE5;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.7rem; flex-shrink: 0; margin-top: 0.1rem;
}
.sa-activity-log__title { font-size: 0.82rem; color: #2A2622; font-weight: 500; }
.sa-activity-log__time { font-size: 0.7rem; color: #847C70; margin-top: 0.15rem; }

/* Responsive */
@media (max-width: 991px) {
	.sa-rd-info-row { grid-template-columns: 1fr; }
	.sa-rd-info-col { border-right: none; border-bottom: 1px solid #D8D0C3; }
	.sa-rd-info-col:last-child { border-bottom: none; }
}
@media (max-width: 576px) {
	.sa-rd-header { padding: 1rem; }
	.sa-rd-section__head { padding: 0.65rem 1rem; }
	.sa-rd-table thead th, .sa-rd-table tbody td, .sa-rd-table tfoot td { padding-left: 1rem; padding-right: 1rem; }
	.sa-rd-info-col { padding: 1rem; }
	.sa-rd-dl__row { flex-direction: column; gap: 0.1rem; }
	.sa-rd-dl__row dd { text-align: left; }
	.sa-stepper { padding: 1.25rem 1rem 0.75rem; }
	.sa-stepper__dot { width: 34px; height: 34px; font-size: 0.75rem; }
	.sa-rd-actions { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

/* === customers/staff/index.php === */
/* Staff Card Grid */
.sa-staff-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.65rem;
	padding: 0.25rem 0;
}
.sa-staff-card {
	background: #fff;
	border: 1px solid #e9ecef;
	padding: 0.75rem;
	display: flex;
	gap: 0.6rem;
	align-items: center;
	transition: box-shadow 0.15s, border-color 0.15s;
	position: relative;
	cursor: pointer;
}
.sa-staff-card:hover {
	border-color: #c5cad0;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.sa-staff-card__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #e9ecef;
	flex-shrink: 0;
}
.sa-staff-card__initials {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: #6c757d;
	background: #EFEBE5;
	flex-shrink: 0;
}
.sa-staff-card__body {
	flex: 1;
	min-width: 0;
}
.sa-staff-card__name {
	font-weight: 600;
	font-size: 0.8rem;
	color: #212529;
	line-height: 1.2;
}
.sa-staff-card__meta {
	font-size: 0.68rem;
	color: #847C70;
	margin-top: 2px;
	line-height: 1.3;
}
.sa-staff-card__meta span {
	color: #847C70;
}
.sa-staff-card__meta i {
	font-size: 0.55rem;
	margin-right: 2px;
	opacity: 0.6;
}
.sa-staff-card__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-top: 4px;
}
.sa-staff-card__roles .sa-pill {
	font-size: 0.58rem;
	padding: 1px 5px;
}
.sa-staff-card__actions {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
}
.sa-staff-card__actions .btn {
	padding: 1px 4px;
	font-size: 0.65rem;
	line-height: 1;
}
.sa-staff-card-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	color: #6c757d;
}
@media (max-width: 1399px) { .sa-staff-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .sa-staff-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sa-staff-card-grid { grid-template-columns: 1fr; } }

/* View Switcher — pill-style segmented control */
.sa-staff-view-switcher{display:inline-flex;background:#EFEBE5;border-radius:0;padding:2px;gap:0;}
.sa-staff-view-switcher .sa-view-btn{background:transparent;border:none;padding:6px 12px;font-size:.82rem;color:#6E6660;cursor:pointer;border-radius:0;transition:background .2s,color .2s;line-height:1;display:inline-flex;align-items:center;justify-content:center;}
.sa-staff-view-switcher .sa-view-btn:hover{color:#3D3833;background:rgba(255,255,255,.5);}
.sa-staff-view-switcher .sa-view-btn.active{background:var(--sa-primary-color,#3D3833);color:#fff;}
.sa-staff-view-switcher .sa-view-btn:focus{outline:none;box-shadow:none;}

/* === dashboard/index.php === */
/* --------------------------------------------------------
   Dashboard Panel Grid (2x2)
   -------------------------------------------------------- */
/* NOTE: .sa-dash-grid, .sa-dash-panel, .sa-dash-panel__header,
   .sa-dash-panel__title-group, .sa-dash-panel__title, .sa-dash-panel__count,
   .sa-dash-panel--highlight, .sa-dash-panel--danger, .sa-dash-panel--info,
   .sa-dash-panel__view-all, .sa-dash-table-wrap, .sa-dash-table, .sa-dash-empty,
   .sa-quick-actions-card, .sa-primary-actions, .sa-primary-action,
   .sa-stat-card__actions, .sa-map-card, .sa-map-toggle, .sa-map-states,
   .sa-map-state-badge, .btn-sa-primary, .btn-sa-outline
   are already defined above in the clinic-home-main.php section.
   Below are dashboard-specific overrides and additions only. */

.sa-dash-panel__count--loading {
	color: #847C70;
	background: #EFEBE5;
}

.sa-dash-table thead th[data-sort] {
	cursor: pointer;
	user-select: none;
	transition: color 0.15s;
}
.sa-dash-table thead th[data-sort]:hover {
	color: #3D3833;
}
.sa-dash-table thead th .sa-sort-icon {
	font-size: 0.6rem;
	margin-left: 0.25rem;
	opacity: 0.35;
}
.sa-dash-table thead th.sa-sort-active .sa-sort-icon {
	opacity: 1;
	color: var(--sa-primary-color, #305e6d);
}
.sa-dash-table tbody tr {
	cursor: pointer;
}
.sa-dash-table td.td-customer {
	max-width: 160px;
	font-weight: 600;
	color: #212529;
}
.sa-dash-table td.td-actions {
	width: 40px;
	text-align: center;
	overflow: visible;
	padding: 0.3rem;
}

/* Dropdown inside scrollable table — escape overflow */
.sa-dash-table .dropdown {
	position: static;
}
.sa-dash-table-wrap .dropdown-menu {
	position: fixed;
	z-index: 1060;
}

/* Action ellipse button */
.sa-dash-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 1px solid transparent;
	color: #847C70;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	transition: all 0.15s;
}
.sa-dash-action-btn:hover {
	background: #EFEBE5;
	border-color: #D8D0C3;
	color: #3D3833;
}
.sa-dash-table tbody tr:hover .sa-dash-action-btn {
	color: #6E6660;
}

/* Loading states */
.sa-dash-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1rem;
	color: #847C70;
	font-size: 0.8rem;
}

#customerMap {
	width: 100%;
	height: 420px;
}

@media (max-width: 768px) {
	#customerMap {
		height: 250px;
	}
}
@media (max-width: 576px) {
	#customerMap {
		height: 200px;
	}
}
