/*========================================
   GP CASES - ADMIN META BOX CSS
========================================*/
.gp-case-admin-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.gp-case-admin-tab {
	padding: 9px 14px;
	background: #f6f7f7;
	border: 1px solid #ccd0d4;
	cursor: pointer;
	border-radius: 4px;
	font-weight: 600;
}

.gp-case-admin-tab.is-active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.gp-case-admin-panel {
	display: none;
	padding: 14px;
	border: 1px solid #ddd;
	background: #fff;
}

.gp-case-admin-panel.is-active {
	display: block;
}

.gp-case-admin-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.gp-case-admin-section-title {
	margin: 24px 0 8px;
	padding: 8px 10px;
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
}

.gp-case-admin-field {
	margin-bottom: 16px;
}

.gp-case-image-preview {
	width: 56px;
	height: 56px;
	margin: 8px 0;
	border: 1px solid #ccd0d4;
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gp-case-image-preview img {
	max-width: 36px;
	max-height: 36px;
	display: block;
}

@media (max-width: 782px) {
	.gp-case-admin-grid {
		grid-template-columns: 1fr;
	}

	.gp-case-admin-tabs {
		flex-wrap: wrap;
	}
}


/*========================================
   GP CASES - BASE
========================================*/
.gp-case-wrapper,
.gp-case-wrapper * {
	box-sizing: border-box;
}

.gp-case-wrapper {
	--gp-case-primary: #004A68;
	--gp-case-accent: #8BC5D8;
	--gp-case-border: #F1F1F1;
	--gp-case-text: #001F33;
	--gp-case-positive: #20A200;
	--gp-case-negative: #E40000;
	--gp-case-radius: 24px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px;
	background: transparent;
	font-family: "Poppins", sans-serif;
	color: var(--gp-case-text);
}

/*========================================
   GP CASES - TABS
========================================*/
.gp-case-tabs {
	width: 100%;
	max-width: 1280px;
	min-height: 82px;
	margin: 0 auto 42px;
	padding: 24px;
	border: 1px solid #E7E7E7;
	border-radius: 100px;
	background: #F6FCFF;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 108px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gp-case-tabs::-webkit-scrollbar {
	display: none;
}

.gp-case-tab-button,
.gp-case-tab-button:hover,
.gp-case-tab-button:focus,
.gp-case-tab-button:focus-visible,
.gp-case-tab-button:active,
.gp-case-tab-button[aria-selected="true"] {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 0 7px;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: none !important;
	background-color: transparent !important;
	color: var(--gp-case-primary) !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
}

.gp-case-tab-button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: transparent;
	border-radius: 999px;
}

.gp-case-tab-button.is-active,
.gp-case-tab-button.is-active:hover,
.gp-case-tab-button.is-active:focus,
.gp-case-tab-button.is-active:active {
	font-weight: 700 !important;
	background: none !important;
	background-color: transparent !important;
	color: var(--gp-case-primary) !important;
}

.gp-case-tab-button.is-active::after {
	background: var(--gp-case-primary);
}

.gp-case-tab-img-icon {
	width: 12px;
	height: 12px;
	object-fit: contain;
	display: block;
	flex: 0 0 auto;
}

.gp-case-tab-panel {
	display: none;
}

.gp-case-tab-panel.is-active {
	display: block;
}

/*========================================
   GP CASES - COMMON CARDS / TEXT
========================================*/
.gp-case-card {
	width: 100%;
	padding: 24px;
	border: 1px solid var(--gp-case-border);
	border-radius: var(--gp-case-radius);
	background: linear-gradient(
		180deg,
		#FBFBFB 0%,
		#FFFFFF 100%
	);
}

.gp-case-card-title {
	margin: 0 0 12px;
	color: var(--gp-case-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.gp-case-content,
.gp-case-content p,
.gp-case-list,
.gp-case-list li {
	color: var(--gp-case-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
}

.gp-case-content {
	margin-bottom: 22px;
}

.gp-case-content:last-child {
	margin-bottom: 0;
}

.gp-case-content p {
	margin: 0 0 12px;
}

.gp-case-content p:last-child {
	margin-bottom: 0;
}

.gp-case-list {
	margin: 0;
	padding-left: 18px;
}

.gp-case-list li {
	margin: 0 0 2px;
	padding: 0;
	line-height: 1.35;
}

.gp-case-list li:last-child {
	margin-bottom: 0;
}

/*========================================
   GP CASES - DOCTOR NOTES
========================================*/
.gp-case-doctor-grid {
	display: grid;
	grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
	gap: 20px;
	align-items: stretch;
}

.gp-case-history-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 20px 0 20px;
}

.gp-case-history-grid .gp-case-card-title {
	margin-bottom: 6px;
}

.gp-case-doctor-left > .gp-case-card-title:not(:first-child) {
	margin-top: 18px;
}

.gp-case-doctor-left > .gp-case-content + .gp-case-card-title {
	margin-top: 20px;
}

.gp-case-patient-card {
	align-self: stretch;
}

.gp-case-patient-name {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gp-case-text);
}

.gp-case-patient-age {
	font-size: 14px;
	font-weight: 700;
}

.gp-case-divider {
	width: 100%;
	height: 1px;
	margin: 18px 0;
	background: var(--gp-case-border);
}

.gp-case-observation-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.gp-case-observation-row strong {
	text-align: right;
	font-weight: 700;
}

/*========================================
   GP CASES - PATIENT NOTES
========================================*/
.gp-case-patient-notes {
	display: grid;
	gap: 20px;
}

.gp-case-ice-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gp-case-red-flag-card {
	border-color: #FF0000;
	padding: 28px 36px;
}

.gp-case-red-flag-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 16px;
}

.gp-case-red-flag-img-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	display: block;
}

.gp-case-red-flag-title {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #30343B;
}

.gp-case-red-flag-card .gp-case-content,
.gp-case-red-flag-card .gp-case-content p {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: #1F2430;
}

/*========================================
   GP CASES - MARKING
========================================*/
.gp-case-marking-intro {
	margin-bottom: 20px;
}

.gp-case-marking-intro-first {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--gp-case-text);
}

.gp-case-marking-intro-grading {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--gp-case-text);
}

.gp-case-marking-case-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--gp-case-text);
}

.gp-case-marking-case-title strong {
	font-weight: 700;
}

.gp-case-marking-section {
	margin-bottom: 20px;
}

.gp-case-marking-section:last-child {
	margin-bottom: 0;
}

.gp-case-marking-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.gp-case-marking-header .gp-case-card-title {
	margin-bottom: 0;
	font-size: 20px;
	font-weight: 700;
}

.gp-case-score-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--gp-case-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.gp-case-indicator-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}

.gp-case-mini-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.gp-case-positive-title {
	color: var(--gp-case-positive);
}

.gp-case-negative-title {
	color: var(--gp-case-negative);
}

.gp-case-indicator-heading-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	display: block;
	flex: 0 0 auto;
}

.gp-case-indicator-list {
	display: grid;
	gap: 14px;
}

.gp-case-indicator-item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 62px;
	padding: 14px 18px;
	border: 1px solid #D8D8D8;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	line-height: 1.35;
}

.gp-case-indicator-item strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gp-case-text);
}

.gp-case-indicator-checkbox {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1px solid #C8C8C8;
	background: #F7F7F7;
}

/*========================================
   GP CASES - KEY ISSUES
========================================*/
.gp-case-key-issues {
	display: grid;
	gap: 20px;
}

.gp-case-issue-card {
	width: 100%;
	padding: 24px;
	border: 1px solid var(--gp-case-border);
	border-radius: var(--gp-case-radius);
	background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
}

.gp-case-issue-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 22px;
}

.gp-case-issue-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(180deg, #8BC5D8 0%, #73B6CC 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	flex: 0 0 auto;
}

.gp-case-issue-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--gp-case-text);
}

.gp-case-issue-detail {
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--gp-case-border);
	border-radius: 20px;
	background: #fff;
}

.gp-case-issue-detail:last-child {
	margin-bottom: 0;
}

.gp-case-issue-detail h4 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--gp-case-text);
}

.gp-case-issue-detail .gp-case-content {
	margin-bottom: 0;
}

.gp-case-issue-detail .gp-case-content,
.gp-case-issue-detail .gp-case-content p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.gp-case-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin-top: 4px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--gp-case-primary);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

/*========================================
   GP CASES - RESPONSIVE
========================================*/
@media (max-width: 1024px) {
	.gp-case-tabs {
		justify-content: flex-start;
		gap: 48px;
	}

	.gp-case-indicator-grid {
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.gp-case-wrapper {
		padding: 14px;
	}

	.gp-case-tabs {
		justify-content: flex-start;
		min-height: 66px;
		padding: 18px;
		margin-bottom: 28px;
		gap: 34px;
	}

	.gp-case-tab-button,
	.gp-case-tab-button:hover,
	.gp-case-tab-button:focus,
	.gp-case-tab-button:focus-visible,
	.gp-case-tab-button[aria-selected="true"] {
		font-size: 14px;
	}

	.gp-case-card,
	.gp-case-issue-card {
		padding: 14px;
		border-radius: 18px;
	}

	.gp-case-doctor-grid,
	.gp-case-history-grid,
	.gp-case-ice-grid,
	.gp-case-indicator-grid {
		grid-template-columns: 1fr;
	}

	.gp-case-doctor-grid,
	.gp-case-patient-notes,
	.gp-case-ice-grid {
		gap: 14px;
	}

	.gp-case-patient-name {
		font-size: 22px;
	}

	.gp-case-red-flag-card {
		padding: 22px;
	}

	.gp-case-red-flag-img-icon {
		width: 30px;
		height: 30px;
	}

	.gp-case-red-flag-title {
		font-size: 16px;
	}

	.gp-case-red-flag-card .gp-case-content,
	.gp-case-red-flag-card .gp-case-content p {
		font-size: 16px;
	}

	.gp-case-marking-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.gp-case-score-pill {
		min-width: auto;
	}

	.gp-case-marking-header .gp-case-card-title {
		font-size: 18px;
	}

	.gp-case-mini-title {
		font-size: 16px;
	}

	.gp-case-indicator-item,
	.gp-case-indicator-item strong {
		font-size: 15px;
	}

	.gp-case-issue-header {
		align-items: flex-start;
		gap: 14px;
	}

	.gp-case-issue-number {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.gp-case-issue-title {
		font-size: 16px;
	}

	.gp-case-issue-detail {
		padding: 16px;
		border-radius: 16px;
	}

	.gp-case-issue-detail .gp-case-content,
	.gp-case-issue-detail .gp-case-content p {
		font-size: 15px;
	}
}