/**
 * Department Single — extends doctor profile layout + doctors table
 */

.dap-dept-photo-frame {
	aspect-ratio: 16 / 10;
}

.dap-dept-status-active {
	background: #dcfce7;
	color: #166534;
}

.dap-dept-status-inactive {
	background: #f1f5f9;
	color: #64748b;
}

.dap-dept-stats-card {
	padding: 22px;
}

.dap-dept-stats-note {
	margin: 0;
	font-size: 13px;
	color: var(--dap-muted);
	line-height: 1.5;
	text-align: center;
}

.dap-dept-doctors-lead {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--dap-muted);
	font-weight: 400;
}

/* Doctors table — 3 columns: Doctor, Specialization, Qualifications */
.dap-dept-doctors-block .dap-profile-block-body {
	padding: 0;
	overflow: visible;
}

.dap-dept-doctors-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--dap-radius-md);
	border: 1px solid var(--dap-border);
	background: #fff;
}

.dap-dept-doctors-table {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
	font-size: 14px;
	table-layout: fixed;
}

.dap-dept-doctors-table thead th {
	padding: 12px 16px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dap-muted);
	background: #f8fafc;
	border-bottom: 1px solid var(--dap-border);
}

.dap-dept-doctors-table thead th:nth-child(1) {
	width: 28%;
}

.dap-dept-doctors-table thead th:nth-child(2) {
	width: 32%;
}

.dap-dept-doctors-table thead th:nth-child(3) {
	width: 40%;
}

.dap-dept-doctors-table tbody tr {
	border-bottom: 1px solid var(--dap-border);
	transition: background 0.15s ease;
}

.dap-dept-doctors-table tbody tr:last-child {
	border-bottom: none;
}

.dap-dept-doctors-table tbody tr:hover {
	background: #f8fafc;
}

.dap-dept-doctors-table td {
	padding: 12px 16px;
	vertical-align: top;
	color: var(--dap-text);
	line-height: 1.45;
	word-wrap: break-word;
}

.dap-dept-col-name {
	min-width: 0;
}

.dap-dept-table-name {
	font-weight: 700;
	color: var(--dap-navy);
	text-decoration: none;
	cursor: pointer;
}

.dap-dept-table-name:hover {
	color: var(--dap-accent-dark);
	text-decoration: underline;
}

.dap-dept-table-muted {
	color: var(--dap-muted);
}

.dap-dept-empty {
	padding: 28px 20px;
	text-align: center;
	background: #f8fafc;
	border-radius: var(--dap-radius-md);
	border: 1px dashed var(--dap-border);
	color: var(--dap-muted);
}

/* Responsive — stacked rows on small screens */
@media (max-width: 768px) {
	.dap-dept-doctors-table-wrap {
		overflow-x: visible;
		border: none;
		background: transparent;
	}

	.dap-dept-doctors-table {
		max-width: none;
		display: block;
		table-layout: auto;
	}

	.dap-dept-doctors-table thead {
		display: none;
	}

	.dap-dept-doctors-table tbody {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.dap-dept-doctors-table tbody tr {
		display: block;
		border: 1px solid var(--dap-border);
		border-radius: var(--dap-radius-md);
		background: #fff;
		box-shadow: var(--dap-shadow-sm);
		overflow: hidden;
	}

	.dap-dept-doctors-table tbody tr:hover {
		background: #fff;
	}

	.dap-dept-doctors-table td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px;
		border-bottom: 1px solid #f1f5f9;
	}

	.dap-dept-doctors-table td:last-child {
		border-bottom: none;
	}

	.dap-dept-doctors-table td::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--dap-muted);
		flex: 0 0 38%;
		padding-top: 2px;
	}

	.dap-dept-col-name {
		font-size: 1.05rem;
		padding-top: 14px;
	}
}
