body.real-analysis-applet {
	height: auto;
	min-height: 100vh;
	margin: 0;
	background:
		linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
		linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
		#f5f7f8;
	background-size: 34px 34px, 34px 34px, auto;
	color: #172033;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow-x: hidden;
	overflow-y: auto;
}

body.real-analysis-applet *,
body.real-analysis-applet *::before,
body.real-analysis-applet *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

body.real-analysis-applet > h1,
body.real-analysis-applet > h2 {
	display: none !important;
}

.real-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 398px;
	gap: 10px;
	width: 100%;
	height: auto;
	min-height: 100vh;
	align-items: start;
	padding: 10px;
}

.real-stage,
.real-panel {
	min-height: 0;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.11);
}

.real-stage {
	display: grid;
	place-items: center;
	position: sticky;
	top: 10px;
	height: calc(100vh - 20px);
	overflow: hidden;
	padding: 14px;
}

.real-applet-frame {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 360px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0) 45%),
		#ffffff;
	overflow: hidden;
}

.real-applet-frame .containerApplet {
	width: 800px;
	height: 600px;
	max-width: 100%;
	max-height: 100%;
	border: 1px solid rgba(15, 118, 110, 0.3);
	border-radius: 8px;
	background: #0b5544;
	box-shadow: 0 20px 46px rgba(15, 23, 42, 0.15);
	overflow: hidden;
}

.real-applet-frame .containerApplet > div,
.real-applet-frame .containerApplet canvas,
.real-applet-frame .containerApplet iframe {
	border-radius: 8px;
}

.real-panel {
	display: grid;
	grid-template-rows: auto auto;
	overflow: visible;
	padding: 7px;
}

.real-title {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 7px;
	align-items: start;
	padding-bottom: 7px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.real-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(15, 23, 42, 0.13);
	border-radius: 8px;
	background: #f8fafc;
	color: #2456a5;
	text-decoration: none;
	transition: transform 140ms ease, background-color 140ms ease;
}

.real-back:hover {
	background: #eef6ff;
	color: #1d4ed8;
	text-decoration: none;
	transform: translateY(-1px);
}

.real-kicker {
	display: block;
	margin-bottom: 1px;
	color: #0f766e;
	font-size: 0.61rem;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.real-title h1 {
	margin: 0;
	color: #0b1738;
	font-size: 1.16rem;
	font-weight: 920;
	line-height: 0.98;
}

.real-subtitle {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 0.66rem;
	font-style: italic;
	font-weight: 760;
	line-height: 1.18;
}

.real-panel-body {
	display: grid;
	gap: 5px;
	align-content: start;
	min-height: 0;
	overflow: visible;
	padding: 7px 0 0 0;
	scrollbar-color: #94a3b8 #edf2f7;
	scrollbar-width: thin;
}

.real-panel-body::-webkit-scrollbar,
.real-table-scroll::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}

.real-panel-body::-webkit-scrollbar-track,
.real-table-scroll::-webkit-scrollbar-track {
	border-radius: 999px;
	background: #edf2f7;
}

.real-panel-body::-webkit-scrollbar-thumb,
.real-table-scroll::-webkit-scrollbar-thumb {
	border: 2px solid #edf2f7;
	border-radius: 999px;
	background: #94a3b8;
}

.real-controls {
	display: grid;
	gap: 5px;
}

.real-card {
	position: relative;
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 6px 7px 6px 12px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	background: linear-gradient(90deg, #f8fafc, #ffffff);
	overflow: hidden;
}

.real-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: #0f766e;
}

.real-card:nth-child(2)::before {
	background: #2563eb;
}

.real-card:nth-child(3)::before {
	background: #ef4444;
}

.real-save-card::before {
	background: #f59e0b;
}

.real-table-card::before {
	background: #14b8a6;
}

.real-card-head {
	display: grid;
	gap: 1px;
}

.real-card-head strong {
	color: #0f172a;
	font-size: 0.74rem;
	font-weight: 900;
	line-height: 1.15;
}

.real-card-head small {
	color: #a3a3a3;
	font-size: 0.6rem;
	font-style: italic;
	font-weight: 760;
	line-height: 1.2;
	text-transform: none;
}

.real-note {
	margin: 0;
	color: #475569;
	font-size: 0.66rem;
	font-weight: 720;
	line-height: 1.35;
}

.real-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.real-field-row.real-one-column {
	grid-template-columns: 1fr;
}

.real-field {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: 100%;
	min-width: 0;
	padding: 0 !important;
}

.real-field .input-group-prepend {
	display: contents;
}

.real-field .input-group-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 56px;
	min-height: 30px;
	padding: 0 7px;
	border: 1px solid #cbd5e1;
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: #eef7f5;
	color: #007b5e;
	font-family: "Cambria Math", Cambria, Georgia, serif;
	font-size: 0.8rem;
	font-weight: 800;
}

.real-field .form-control {
	flex: 1 1 0;
	width: 1% !important;
	min-width: 0;
	min-height: 30px;
	margin: 0;
	border: 1px solid #cbd5e1;
	border-radius: 0 6px 6px 0;
	background: #ffffff;
	color: #0f172a;
	font-size: 0.76rem;
	font-weight: 830;
	text-align: center !important;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.real-field .form-control:focus {
	border-color: #14b8a6;
	box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.real-field select.form-control {
	text-align-last: center;
}

.real-composite-applet {
	width: min(100%, 920px);
	max-width: 100%;
}

.real-composite-applet #divApplet {
	width: 100%;
}

.real-composite-applet #container_x,
.real-composite-applet #container_y,
.real-composite-applet #container_panel,
.real-composite-applet #ttd {
	min-width: 0;
}

.real-switch {
	display: inline-grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 5px;
	align-items: center;
	margin: 0;
	color: #0f172a;
	font-size: 0.72rem;
	font-weight: 890;
	cursor: pointer;
}

.real-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.real-switch-track {
	position: relative;
	width: 38px;
	height: 22px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #e2e8f0;
	box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
	transition: background-color 160ms ease, border-color 160ms ease;
}

.real-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
	transition: transform 160ms ease;
}

.real-switch input:checked + .real-switch-track {
	border-color: rgba(15, 118, 110, 0.55);
	background: #0f766e;
}

.real-switch input:checked + .real-switch-track::after {
	transform: translateX(16px);
}

.real-save-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	gap: 6px;
	align-items: center;
}

.real-command-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 32px;
	border: 0;
	border-radius: 8px;
	background: #111827;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 920;
	line-height: 1.1;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
	cursor: pointer;
}

.real-command-button svg,
.real-command-button .svg-inline--fa {
	color: #14b8a6;
	font-size: 0.9rem;
}

.real-save-row .real-switch {
	grid-template-columns: 38px auto;
	white-space: nowrap;
}

.real-table-card {
	min-height: 0;
}

.real-table-scroll {
	max-height: none;
	min-height: 0;
	overflow: visible;
	border: 1px solid #dbe5ef;
	border-radius: 8px;
	background: #ffffff;
}

#tabelDaftarNilai {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.58rem;
	line-height: 1.02;
}

#tabelDaftarNilai th,
#tabelDaftarNilai td {
	padding: 3px 4px;
	border-right: 1px solid #dbe5ef;
	border-bottom: 1px solid #dbe5ef;
	color: #172033;
	font-weight: 700;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

#tabelDaftarNilai th {
	position: static;
	z-index: 1;
	background: #e8f7f4;
	color: #0f766e;
	font-weight: 920;
}

#tabelDaftarNilai th:first-child,
#tabelDaftarNilai td:first-child {
	width: 30px;
	text-align: center;
}

#tabelDaftarNilai th:nth-child(2),
#tabelDaftarNilai td:nth-child(2) {
	width: 50%;
	text-align: center;
}

#tabelDaftarNilai tr:nth-child(even) td {
	background: #f8fafc;
}

#tabelDaftarNilai tr:hover td {
	background: #fff7ed;
}

@media (max-width: 1020px) {
	body.real-analysis-applet {
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.real-shell {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		min-height: 100vh;
	}

	.real-stage {
		position: static;
		top: auto;
		height: auto;
		min-height: 58vh;
	}

	.real-panel {
		overflow: visible;
	}

	.real-panel-body {
		overflow: visible;
	}
}

@media (max-width: 560px) {
	.real-shell {
		padding: 8px;
	}

	.real-title h1 {
		font-size: 1.2rem;
	}

	.real-field-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.real-save-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.real-save-row .real-switch {
		justify-self: start;
	}
}
