/*
 * Jadwal Dokter - gaya publik.
 * Sengaja minimal: font, warna teks, link & tombol mewarisi tema aktif.
 * Warna garis/latar memakai turunan currentColor agar cocok di tema terang & gelap.
 */

.jdd-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 1.5em;
	font: inherit;
	color: inherit;
	--jdd-accent: var(--wp--preset--color--primary, var(--e-global-color-primary, currentColor));
}

.jdd-wrap *,
.jdd-wrap *::before,
.jdd-wrap *::after {
	box-sizing: border-box;
}

.jdd-wrap [hidden] {
	display: none !important;
}

.jdd-heading {
	margin: 0 0 .6em;
}

/* Bar atas */
.jdd-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75em 1.5em;
	margin-bottom: 1em;
}

.jdd-update {
	display: flex;
	flex-direction: column;
	gap: .15em;
}

.jdd-update > span:first-child:not(.jdd-update__date) {
	font-weight: 700;
	font-size: 1.1em;
}

.jdd-update__date {
	opacity: .8;
	font-size: .92em;
}

.jdd-actions {
	display: flex;
	align-items: center;
	gap: .75em;
	flex-wrap: wrap;
}

.jdd-manage-link {
	font-size: .9em;
}

.jdd-btn {
	cursor: pointer;
	white-space: nowrap;
}

.jdd-btn[disabled],
.jdd-btn.is-loading {
	opacity: .65;
	cursor: progress;
}

/* Dashboard */
.jdd-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1em;
	margin-bottom: 1.25em;
}

.jdd-stat {
	display: flex;
	flex-direction: column;
	gap: .2em;
	padding: 1em 1.2em;
	border: 1px solid rgba(128, 128, 128, .3);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-left: 4px solid var(--jdd-accent);
	border-radius: 6px;
	background: rgba(128, 128, 128, .05);
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.jdd-stat__value {
	font-size: 2em;
	line-height: 1.1;
	font-weight: 700;
	color: var(--jdd-accent);
}

.jdd-stat--leave {
	border-left-color: #e8a33a;
}

.jdd-stat--leave .jdd-stat__value {
	color: inherit;
}

.jdd-stat__label {
	font-size: .9em;
	opacity: .85;
}

/* Filter */
.jdd-filters {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
	gap: .75em 1em;
	align-items: end;
	margin-bottom: 1em;
}

.jdd-field {
	display: flex;
	flex-direction: column;
	gap: .3em;
	margin: 0;
	min-width: 0;
}

.jdd-field__label {
	font-size: .85em;
	font-weight: 600;
}

.jdd-field input,
.jdd-field select {
	width: 100%;
	min-height: 2.6em;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	font: inherit;
}

/* Tabel */
.jdd-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.jdd-wrap table.jdd-table {
	width: 100%;
	min-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	table-layout: auto;
	font-size: .95em;
}

.jdd-wrap .jdd-table th,
.jdd-wrap .jdd-table td {
	padding: .55em .6em;
	border: 1px solid rgba(128, 128, 128, .3);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	vertical-align: middle;
	text-align: center;
	background-clip: padding-box;
}

.jdd-wrap .jdd-table thead th {
	font-weight: 700;
	white-space: nowrap;
	background: rgba(128, 128, 128, .1);
	background: color-mix(in srgb, currentColor 7%, transparent);
}

.jdd-dayname {
	display: block;
}

.jdd-date {
	display: block;
	font-weight: 400;
	font-size: .82em;
	opacity: .75;
}

.jdd-wrap .jdd-table .jdd-col-no {
	width: 3em;
}

.jdd-wrap .jdd-table td.jdd-col-name,
.jdd-wrap .jdd-table th.jdd-col-name {
	text-align: left;
	min-width: 14em;
}

.jdd-wrap .jdd-table .jdd-col-day {
	white-space: nowrap;
}

.jdd-wrap .jdd-table .jdd-today {
	background: rgba(128, 128, 128, .08);
	background: color-mix(in srgb, var(--jdd-accent) 8%, transparent);
}

.jdd-wrap .jdd-table thead th.jdd-today {
	box-shadow: inset 0 -3px 0 var(--jdd-accent);
}

.jdd-wrap .jdd-table .jdd-group-row th {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--jdd-accent);
	background: rgba(128, 128, 128, .05);
	background: color-mix(in srgb, currentColor 4%, transparent);
}

.jdd-name {
	font-weight: 600;
}

.jdd-session {
	display: inline;
}

.jdd-dash {
	opacity: .4;
}

.jdd-changed {
	color: var(--jdd-accent);
	font-weight: 700;
	margin-left: .2em;
	cursor: help;
}

/* Baris dokter cuti: warna berbeda */
.jdd-wrap .jdd-table tr.jdd-row--leave > td,
.jdd-wrap .jdd-table tr.jdd-row--leave > th {
	background: rgba(255, 166, 0, .14);
}

.jdd-wrap .jdd-table tr.jdd-row--leave-today > td {
	background: rgba(255, 140, 0, .22);
}

.jdd-leave-note {
	display: block;
	font-size: .82em;
	font-weight: 600;
	color: #b42318;
	margin-top: .15em;
}

.jdd-badge-leave {
	display: inline-block;
	padding: .1em .55em;
	border-radius: 3px;
	font-size: .85em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: #c2410c;
	cursor: help;
}

/* Cuti / libur per jam praktek: hanya sesi tertentu yang tidak praktek. */
.jdd-session--leave {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .3em;
	cursor: help;
}

.jdd-session--leave s {
	color: #b42318;
	opacity: .85;
}

.jdd-badge-leave--sm {
	font-size: .7em;
	padding: .05em .4em;
}

.jdd-wrap .jdd-table tr > td.jdd-col-day.jdd-session-leave {
	background: rgba(194, 65, 12, .12);
}

.jdd-info-card__open strong {
	color: #15803d;
}

.jdd-hide {
	display: none !important;
}

.jdd-empty {
	padding: 1.25em;
	text-align: center;
	border: 1px dashed rgba(128, 128, 128, .4);
	border-radius: 6px;
	margin: 0 0 1em;
}

.jdd-legend {
	display: flex;
	flex-wrap: wrap;
	gap: .5em 1.5em;
	margin: .75em 0 0;
	font-size: .85em;
	opacity: .85;
}

.jdd-legend__swatch {
	display: inline-block;
	width: 1.6em;
	height: .9em;
	vertical-align: -.1em;
	margin-right: .3em;
	border: 1px solid rgba(128, 128, 128, .4);
	background: rgba(255, 166, 0, .25);
}

.jdd-note {
	margin: .5em 0 0;
	font-size: .85em;
	font-style: italic;
	opacity: .8;
}

/* Rencana cuti */
.jdd-upcoming {
	margin-top: 1.75em;
}

.jdd-upcoming__title {
	margin: 0 0 .6em;
}

/* Semua sel rata tengah, kecuali nama dokter */
.jdd-wrap .jdd-table--plain th,
.jdd-wrap .jdd-table--plain td {
	text-align: center;
}

.jdd-wrap .jdd-table--plain td.jdd-col-name {
	text-align: left;
}

/* Kartu dokter */
.jdd-card {
	margin-bottom: 1.5em;
}

.jdd-card__head {
	margin-bottom: .6em;
}

.jdd-card__name {
	margin: 0;
}

.jdd-card__spec {
	display: block;
	opacity: .8;
}

.jdd-wrap .jdd-table--doctor tr.jdd-row--leave > td {
	background: rgba(255, 166, 0, .14);
}


/* Kepala tabel berwarna seperti PDF (Pengaturan > Warna kepala tabel) */
.jdd-wrap[style*="--jdd-head-bg"] .jdd-table thead th {
	background: var(--jdd-head-bg);
	color: var(--jdd-head-fg, #fff);
	border-color: rgba(255, 255, 255, .45);
	vertical-align: middle;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table thead .jdd-dayname {
	text-transform: uppercase;
	letter-spacing: .03em;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table thead .jdd-date {
	opacity: .9;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table thead th.jdd-today {
	background: var(--jdd-head-bg);
	background-image: linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14));
	box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .85);
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table .jdd-group-row th {
	color: inherit;
	background: rgba(128, 128, 128, .12);
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-stat {
	border-left-color: var(--jdd-head-bg);
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-stat__value {
	color: var(--jdd-head-bg);
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-stat--leave {
	border-left-color: #e8a33a;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-stat--leave .jdd-stat__value {
	color: inherit;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table thead th.jdd-col-name {
	text-align: center;
}

.jdd-wrap[style*="--jdd-head-bg"] .jdd-table td.jdd-today {
	background: rgba(192, 86, 30, .07);
	background: color-mix(in srgb, var(--jdd-head-bg) 8%, transparent);
}

/* Sesi lebih dari satu per hari: satu sesi per baris */
.jdd-session--more {
	display: none !important;
}

.jdd-wrap .jdd-table tr.jdd-subrow.jdd-row--leave > td {
	background: rgba(255, 166, 0, .14);
}

.jdd-wrap .jdd-table tr.jdd-subrow.jdd-row--leave-today > td {
	background: rgba(255, 140, 0, .22);
}

/* Kartu info harian (cuti & perubahan jadwal) */
.jdd-dayinfo {
	margin: 0 0 1.25em;
}

.jdd-dayinfo__title {
	margin: 0 0 .6em;
	font-size: 1.1em;
}

.jdd-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: .75em;
}

.jdd-info-card {
	position: relative;
	padding: .85em 1em;
	border: 1px solid rgba(128, 128, 128, .3);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-left: 4px solid var(--jdd-accent);
	border-radius: 6px;
}

.jdd-info-card--leave {
	border-left-color: #c2410c;
	background: rgba(255, 166, 0, .10);
}

.jdd-info-card--change {
	border-left-color: #1d6fb8;
	background: rgba(29, 111, 184, .08);
}

.jdd-info-card__badge {
	display: inline-block;
	margin-bottom: .35em;
	padding: .05em .55em;
	border-radius: 3px;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	background: #c2410c;
}

.jdd-info-card--change .jdd-info-card__badge {
	background: #1d6fb8;
}

.jdd-info-card__name {
	margin: 0;
	font-size: 1em;
	line-height: 1.3;
}

.jdd-info-card__spec {
	margin: 0 0 .4em;
	font-size: .85em;
	opacity: .8;
}

.jdd-info-card__line {
	margin: .15em 0 0;
	font-size: .9em;
}

.jdd-muted {
	opacity: .7;
}

.jdd-diff {
	display: block;
}

/* Nama dokter dengan link profil */
.jdd-wrap a.jdd-name--link {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	cursor: pointer;
}

.jdd-wrap a.jdd-name--link:hover,
.jdd-wrap a.jdd-name--link:focus-visible {
	color: var(--jdd-head-bg, var(--jdd-accent));
	text-decoration-style: solid;
}

.jdd-wrap a.jdd-name--link::after {
	content: "";
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .3em;
	vertical-align: -.05em;
	background: currentColor;
	opacity: .55;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3zM5 5h6v2H5v12h12v-6h2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3zM5 5h6v2H5v12h12v-6h2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lightbox preview profil */
html.jdd-lightbox-open {
	overflow: hidden;
}

.jdd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .65);
	animation: jdd-fade .18s ease-out;
}

.jdd-lightbox[hidden] {
	display: none;
}

@keyframes jdd-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.jdd-lightbox__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 10px;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #1e1e1e);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	font: inherit;
}

.jdd-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}

.jdd-lightbox__close:hover,
.jdd-lightbox__close:focus-visible {
	background: rgba(0, 0, 0, .8);
}

.jdd-lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	max-height: 60vh;
	background: #f1f1f1;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}

.jdd-lightbox__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
}

.jdd-lightbox__media.is-empty {
	background: var(--jdd-head-bg, #6b7280);
}

.jdd-lightbox__initials {
	font-size: 64px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	opacity: .95;
}

.jdd-lightbox__spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, .15);
	border-top-color: var(--jdd-head-bg, #555);
	border-radius: 50%;
	animation: jdd-spin .8s linear infinite;
}

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

.jdd-lightbox__body {
	padding: 1.1em 1.4em 1.4em;
	text-align: center;
}

.jdd-lightbox__spec {
	margin: 0 0 .2em;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .7;
}

.jdd-lightbox__name {
	margin: 0 0 .4em;
	font-size: 1.3em;
	line-height: 1.25;
	color: inherit;
}

.jdd-lightbox__title {
	margin: 0 0 .3em;
	font-weight: 600;
	font-size: .95em;
}

.jdd-lightbox__excerpt {
	margin: 0 0 1em;
	font-size: .9em;
	opacity: .8;
}

.jdd-lightbox__btn {
	display: inline-block;
	margin-top: .4em;
	padding: .7em 1.6em;
	text-decoration: none;
	cursor: pointer;
}

.jdd-lightbox.has-head-color .jdd-lightbox__btn {
	background: var(--jdd-head-bg);
	color: #fff;
	border: 0;
	border-radius: 4px;
}

.jdd-lightbox.has-head-color .jdd-lightbox__btn:hover,
.jdd-lightbox.has-head-color .jdd-lightbox__btn:focus-visible {
	filter: brightness(.9);
	color: #fff;
}

/* ===== Perataan sel (dikunci agar tidak tertimpa CSS tema / Elementor) =====
 * Semua sel & isinya rata tengah, kecuali kolom nama dokter (rata kiri). */
.jdd-wrap table.jdd-table > thead > tr > th,
.jdd-wrap table.jdd-table > tbody > tr > th,
.jdd-wrap table.jdd-table > tbody > tr > td {
	text-align: center !important;
}

.jdd-wrap table.jdd-table > tbody > tr > td .jdd-cell,
.jdd-wrap table.jdd-table > tbody > tr > td .jdd-session,
.jdd-wrap table.jdd-table > tbody > tr > td .jdd-diff,
.jdd-wrap table.jdd-table > tbody > tr > td p,
.jdd-wrap table.jdd-table > tbody > tr > td div {
	text-align: inherit !important;
}

.jdd-wrap table.jdd-table > tbody > tr > td.jdd-col-name {
	text-align: left !important;
}

/* =====================================================================
 * Kartu dokter [jadwal_dokter_kartu], jadwal saja [jadwal_dokter_jadwal],
 * profil [jadwal_dokter_profil]
 * ===================================================================*/
.jdd-wrap {
	--jdd-card-bg: var(--wp--preset--color--base, #fff);
	--jdd-card-fg: var(--wp--preset--color--contrast, #1f2a37);
	--jdd-pill-bg: #eef3f4;
	--jdd-card-accent-def: #f2b632;
	/* Warna hover kartu: ikut warna utama tema bila tersedia
	   (block theme, Elementor Global Colors, Astra, Kadence, Blocksy),
	   lalu warna kepala tabel, lalu teal. Bisa ditimpa via --jdd-card-hover. */
	--jdd-card-hover-theme: var(--e-global-color-primary, var(--wp--preset--color--primary, var(--ast-global-color-0, var(--global-palette1, var(--theme-palette-color-1, var(--jdd-head-bg, #0fb5a6))))));
	--jdd-card-hover-c: var(--jdd-card-hover, var(--jdd-card-hover-theme));
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.jdd-wrap[style*="--jdd-head-bg"] {
		--jdd-pill-bg: color-mix(in srgb, var(--jdd-head-bg) 6%, #eef3f4);
	}
}

.jdd-dcards__grid {
	display: grid;
	grid-template-columns: repeat(var(--jdd-cols, 3), minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.jdd-dcard {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 10px;
	background: var(--jdd-card-bg);
	color: var(--jdd-card-fg);
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 2px 10px rgba(16, 24, 40, .10);
	transition: box-shadow .2s ease, transform .2s ease;
}

.jdd-dcard:hover {
	box-shadow: 0 10px 28px rgba(16, 24, 40, .16);
	transform: translateY(-2px);
}

.jdd-dcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e5e7eb;
	text-decoration: none;
}

.jdd-dcard__media img,
.jdd-dcard__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	transition: transform .35s ease;
}

.jdd-dcard__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.2em;
	font-weight: 700;
	color: #fff;
	background: var(--jdd-head-bg, #6b7280);
}

/* Efek hover: tint warna + logo RS */
.jdd-dcard__overlay {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
	background-color: var(--jdd-card-hover-c);
}

.jdd-dcard__overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--jdd-logo, none) center / 62% auto no-repeat;
}

/* Logo dibuat putih (siluet) - untuk logo PNG transparan */
.jdd-dcards--logo-white .jdd-dcard__overlay::after {
	background: #fff;
	-webkit-mask: var(--jdd-logo, none) center / 62% auto no-repeat;
	mask: var(--jdd-logo, none) center / 62% auto no-repeat;
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.jdd-dcard__overlay {
		background-color: color-mix(in srgb, var(--jdd-card-hover-c) var(--jdd-card-hover-alpha, 72%), transparent);
	}
}

.jdd-dcards--hover .jdd-dcard:hover .jdd-dcard__overlay,
.jdd-dcards--hover .jdd-dcard__media:focus-visible .jdd-dcard__overlay {
	opacity: 1;
}

.jdd-dcards--hover .jdd-dcard:hover .jdd-dcard__img {
	transform: scale(1.04);
}

.jdd-dcard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem 1.5rem 1.25rem;
}

.jdd-wrap .jdd-dcard__name {
	margin: 0 0 .2em;
	font-size: 1.12em;
	line-height: 1.3;
	color: inherit;
}

.jdd-dcard__name a {
	color: inherit;
	text-decoration: none;
}

.jdd-dcard__name a:hover {
	color: var(--jdd-card-hover-c);
}

.jdd-dcard__spec {
	margin: 0 0 .9em;
	font-size: .78em;
	font-weight: 600;
	opacity: .65;
}

.jdd-dcard .jdd-leave-note {
	margin: -.5em 0 .8em;
}

.jdd-dcard__label {
	margin: 0 0 .6em;
	font-size: .88em;
	opacity: .7;
}

/* Kotak hari */
.jdd-days {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .55rem;
}

.jdd-days--grid {
	grid-template-columns: repeat(var(--jdd-cols, 3), minmax(0, 1fr));
	gap: 1rem;
}

.jdd-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15em;
	min-height: 4.1em;
	padding: .6em .5em;
	border-radius: 12px;
	background: var(--jdd-pill-bg);
	color: var(--jdd-card-fg);
	text-align: center;
	border: 1px solid transparent;
}

.jdd-days--grid .jdd-day {
	min-height: 5.3em;
	border-radius: 16px;
}

.jdd-day__name {
	font-size: .92em;
	font-weight: 500;
}

.jdd-day__time {
	font-size: .88em;
	opacity: .75;
	white-space: nowrap;
	max-width: 100%;
}

@media (max-width: 380px) {
	.jdd-day__time {
		white-space: normal;
	}
}

.jdd-day.is-today {
	border-color: var(--jdd-head-bg, currentColor);
}

.jdd-day.is-leave {
	background: rgba(255, 166, 0, .16);
}

.jdd-day.is-partial {
	background: rgba(255, 166, 0, .08);
}

.jdd-day__time--leave {
	opacity: 1;
	display: inline-flex;
	gap: .3em;
	align-items: baseline;
	cursor: help;
}

.jdd-day__time--leave s {
	color: #b42318;
}

.jdd-day__time--leave em {
	font-style: normal;
	font-weight: 700;
	font-size: .78em;
	color: #b42318;
	text-transform: uppercase;
}

.jdd-day__leave {
	opacity: 1;
	font-weight: 700;
	color: #b42318;
	text-transform: uppercase;
	font-size: .78em;
	letter-spacing: .05em;
}

.jdd-day__note {
	font-size: .7em;
	color: var(--jdd-head-bg, inherit);
	font-weight: 600;
}

/* Footer kartu */
.jdd-wrap a.jdd-dcard__book {
	display: inline-flex;
	align-items: center;
	padding: .45em 1.1em;
	border-radius: 999px;
	background: var(--jdd-card-hover-c, var(--jdd-head-bg, #c0561e));
	color: #fff !important;
	font-weight: 700;
	font-size: .88em;
	text-decoration: none !important;
	margin-left: auto;
}

.jdd-wrap a.jdd-dcard__book:hover {
	filter: brightness(.93);
}

.jdd-dcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 1.3rem;
}

.jdd-dcard__more {
	font-weight: 700;
	font-size: .9em;
	color: inherit !important;
	text-decoration: none !important;
}

.jdd-dcard__more:hover {
	color: var(--jdd-card-hover-c) !important;
}

.jdd-dcard__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: var(--jdd-card-accent, var(--jdd-card-accent-def));
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .2s ease;
}

.jdd-dcard:hover .jdd-dcard__arrow {
	transform: translateX(3px);
}

/* Landscape: satu kartu per baris, foto di kiri */
.jdd-dcards--landscape .jdd-dcards__grid {
	grid-template-columns: 1fr;
}

.jdd-dcards--landscape .jdd-dcard {
	display: grid;
	grid-template-columns: minmax(180px, 26%) minmax(0, 1fr);
}

.jdd-dcards--landscape.jdd-dcards--nophoto .jdd-dcard {
	grid-template-columns: 1fr;
}

.jdd-dcards--landscape .jdd-dcard__media {
	aspect-ratio: auto;
	height: 100%;
	min-height: 220px;
}

.jdd-dcards--landscape .jdd-dcard__media img {
	position: absolute;
	inset: 0;
}

.jdd-dcards--landscape .jdd-days {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* Jadwal saja */
.jdd-sched__title,
.jdd-profile__title {
	margin: 0 0 .8em;
}

.jdd-sched__name {
	margin: 0 0 .8em;
}

.jdd-sched__name span {
	opacity: .7;
	margin-left: .4em;
}

.jdd-sched .jdd-day {
	background: var(--jdd-pill-bg);
}

/* Profil */
.jdd-profile__wrap.has-photo {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: 1.5rem;
	align-items: start;
}

.jdd-profile__photo {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #e5e7eb;
}

.jdd-profile__photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

.jdd-profile__list {
	margin: 0;
}

.jdd-profile__row {
	display: grid;
	grid-template-columns: minmax(120px, 40%) 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(128, 128, 128, .3);
}

.jdd-profile__row:first-child {
	padding-top: 0;
}

.jdd-profile__row dt {
	margin: 0;
	font-weight: 600;
}

.jdd-profile__row dd {
	margin: 0;
	opacity: .8;
}

.jdd-profile__line {
	display: block;
}

@media (max-width: 1024px) {
	.jdd-dcards--portrait:not(.jdd-dcards--cols-1) .jdd-dcards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jdd-dcards--landscape .jdd-days {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.jdd-dcards--portrait .jdd-dcards__grid,
	.jdd-dcards--portrait:not(.jdd-dcards--cols-1) .jdd-dcards__grid {
		grid-template-columns: 1fr;
	}

	.jdd-dcards--landscape .jdd-dcard {
		grid-template-columns: 1fr;
	}

	.jdd-dcards--landscape .jdd-dcard__media {
		aspect-ratio: 1 / 1;
		height: auto;
	}

	.jdd-dcards--landscape .jdd-days,
	.jdd-days--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jdd-profile__wrap.has-photo,
	.jdd-profile__row {
		grid-template-columns: 1fr;
		gap: .3rem;
	}
}

/* Layar kecil: tabel menjadi kartu agar tetap full width & terbaca */
@media (max-width: 760px) {
	.jdd-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: .5em;
	}

	.jdd-stat {
		padding: .7em .75em;
	}

	.jdd-stat__value {
		font-size: 1.5em;
	}

	.jdd-stat__label {
		font-size: .78em;
	}

	.jdd-filters {
		grid-template-columns: 1fr;
	}

	.jdd-wrap .jdd-table,
	.jdd-wrap .jdd-table tbody,
	.jdd-wrap .jdd-table tr,
	.jdd-wrap .jdd-table td,
	.jdd-wrap .jdd-table th {
		display: block;
		width: 100%;
	}

	.jdd-wrap .jdd-table thead {
		display: none;
	}

	.jdd-wrap .jdd-table tr.jdd-row,
	.jdd-wrap .jdd-table tr.jdd-upcoming-row,
	.jdd-wrap .jdd-table--doctor tbody tr {
		margin-bottom: .6em;
		border: 1px solid rgba(128, 128, 128, .3);
		border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
		border-radius: 6px;
		overflow: hidden;
	}

	.jdd-wrap .jdd-table td {
		display: grid;
		grid-template-columns: 8.5em minmax(0, 1fr);
		gap: .5em;
		border: 0;
		border-bottom: 1px solid rgba(128, 128, 128, .15);
		white-space: normal;
	}

	.jdd-wrap table.jdd-table > tbody > tr > td,
	.jdd-wrap table.jdd-table > tbody > tr > td.jdd-col-name {
		text-align: left !important;
	}

	.jdd-wrap .jdd-table td::before {
		content: attr(data-label);
		font-weight: 600;
		opacity: .8;
	}

	.jdd-wrap .jdd-table td.jdd-col-no {
		display: none;
	}

	.jdd-wrap .jdd-table td.jdd-off {
		display: none;
	}

	.jdd-wrap .jdd-table td.jdd-hide {
		display: none !important;
	}

	.jdd-wrap .jdd-table tr.jdd-subrow {
		display: none !important;
	}

	.jdd-wrap .jdd-table .jdd-session--more {
		display: inline !important;
	}

	.jdd-wrap .jdd-table td.jdd-blank {
		display: none;
	}


	.jdd-wrap .jdd-table .jdd-group-row th {
		margin: 1em 0 .5em;
		border: 0;
		padding: .5em 0;
		text-align: left;
	}

	.jdd-cell {
		min-width: 0;
	}

	.jdd-wrap .jdd-table .jdd-col-day {
		white-space: normal;
	}

	.jdd-session,
	.jdd-wrap .jdd-table .jdd-session--more {
		display: block !important;
		white-space: nowrap;
	}
}

@media print {
	.jdd-filters,
	.jdd-actions {
		display: none !important;
	}
}

.jdd-day.is-picked {
	border-color: var(--jdd-head-bg, currentColor);
	box-shadow: 0 0 0 2px var(--jdd-head-bg, currentColor) inset;
}

/* History cuti publik */
.jdd-lhist__period {
	margin: 0 0 1em;
	opacity: .85;
}

.jdd-lhist .jdd-filters {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
}

.jdd-lh-status {
	display: inline-block;
	padding: .1em .6em;
	border-radius: 999px;
	font-size: .82em;
	font-weight: 600;
	background: rgba(128, 128, 128, .15);
	white-space: nowrap;
}

.jdd-lh-status.is-ongoing {
	background: rgba(255, 166, 0, .22);
	color: #8a4b00;
}

.jdd-lh-status.is-upcoming {
	background: rgba(29, 111, 184, .14);
	color: #1d5f9b;
}

.jdd-lh-status.is-cancelled {
	text-decoration: line-through;
	opacity: .7;
}

.jdd-wrap .jdd-table tr.jdd-lh-row.is-cancelled td {
	opacity: .6;
}

@media (max-width: 760px) {
	.jdd-lhist .jdd-filters {
		grid-template-columns: 1fr;
	}
}

/* Overlay tanpa color-mix: pakai opacity */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.jdd-dcards--hover .jdd-dcard:hover .jdd-dcard__overlay {
		opacity: .72;
	}
}

/* Filter kartu dokter: lebar menyesuaikan jumlah filter + tombol Reset */
.jdd-filters.jdd-dcards__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
}

.jdd-dcards__filters .jdd-field {
	flex: 1 1 220px;
}

.jdd-dcards__filters .jdd-field--reset {
	flex: 0 0 auto;
}

/* Filter huruf A-Z */
.jdd-az {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin: 0 0 1.25rem;
}

.jdd-wrap .jdd-az__btn {
	min-width: 2.2em;
	padding: .35em .55em;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .88em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.jdd-wrap .jdd-az__btn:hover:not(:disabled),
.jdd-wrap .jdd-az__btn:focus-visible {
	border-color: var(--jdd-card-hover-c);
	color: var(--jdd-card-hover-c);
}

.jdd-wrap .jdd-az__btn.is-active {
	background: var(--jdd-card-hover-c);
	border-color: var(--jdd-card-hover-c);
	color: #fff;
}

.jdd-wrap .jdd-az__btn:disabled {
	opacity: .35;
	cursor: default;
}

/* Halaman (pagination) kartu dokter */
.jdd-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	margin: 1.75rem 0 0;
}

.jdd-pager[hidden] {
	display: none;
}

.jdd-pager__info {
	flex-basis: 100%;
	text-align: center;
	font-size: .85em;
	opacity: .75;
	margin-bottom: .25rem;
}

.jdd-wrap .jdd-pager__btn {
	min-width: 2.4em;
	height: 2.4em;
	padding: 0 .75em;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .92em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.jdd-wrap .jdd-pager__btn:hover:not(:disabled),
.jdd-wrap .jdd-pager__btn:focus-visible {
	border-color: var(--jdd-card-hover-c);
	color: var(--jdd-card-hover-c);
}

.jdd-wrap .jdd-pager__btn[aria-current="page"] {
	background: var(--jdd-card-hover-c);
	border-color: var(--jdd-card-hover-c);
	color: #fff;
	cursor: default;
}

.jdd-wrap .jdd-pager__btn:disabled {
	opacity: .4;
	cursor: default;
}

.jdd-pager__gap {
	padding: 0 .2em;
	opacity: .6;
}

@media (max-width: 600px) {
	.jdd-pager__lbl {
		display: none;
	}
}
