/* Warna mengikuti Global Colors Elementor (Site Settings) jika tersedia. */
.twb-dashboard, .twb-box {
	--twb-primary: var(--e-global-color-primary, #1f9e9a);
	--twb-accent: var(--e-global-color-accent, #f5a623);
	--twb-text: var(--e-global-color-text, #2b3a42);
	--twb-muted: #6b7a83;
	--twb-line: #e3eaee;
	--twb-soft: #f3f8f9;
	--twb-radius: 14px;
	color: var(--twb-text);
}
.twb-dashboard { display: grid; gap: 18px; }
.twb-box { background: #fff; border: 1px solid var(--twb-line); border-radius: var(--twb-radius); padding: 20px 22px; box-sizing: border-box; }
.twb-box h2 { margin: 0 0 6px; font-size: 1.5em; }
.twb-h { margin: 0 0 14px; font-size: 1.15em; }
.twb-h small { font-weight: 400; color: var(--twb-muted); font-size: .8em; margin-left: 6px; }
.twb-notice { background: var(--twb-soft); }
.twb-success { border-color: #9fd8b4; background: #effaf3; }
.twb-error { border-color: #f1b3b3; background: #fdf1f1; }
.twb-btn { display: inline-block; background: var(--twb-primary); color: #fff !important; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.twb-btn:hover { filter: brightness(.95); }
.twb-btn-ghost { background: transparent; color: var(--twb-primary) !important; border: 2px solid var(--twb-primary); }
.twb-small { font-size: .75em; font-weight: 400; margin-left: 10px; }

.twb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.twb-tabs a { padding: 8px 16px; border-radius: 999px; background: var(--twb-soft); text-decoration: none; color: var(--twb-text); }
.twb-tabs a.is-active { background: var(--twb-primary); color: #fff; }

.twb-child { display: flex; gap: 18px; align-items: center; }
.twb-child-photo img, .twb-initial { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; }
.twb-initial { display: flex; align-items: center; justify-content: center; background: var(--twb-primary); color: #fff; font-size: 2em; font-weight: 700; }
.twb-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.twb-facts li span { display: block; font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: var(--twb-muted); }

.twb-chart svg { width: 100%; height: auto; display: block; }
.twb-grid { stroke: var(--twb-line); stroke-width: 1; }
.twb-axis { fill: var(--twb-muted); font-size: 11px; }
.twb-line { fill: none; stroke: var(--twb-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.twb-dot { fill: #fff; stroke: var(--twb-primary); stroke-width: 3; }

.twb-report-list { display: grid; gap: 10px; }
.twb-report-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "week score" "meta score"; gap: 2px 12px; padding: 14px 18px; border: 1px solid var(--twb-line); border-radius: var(--twb-radius); background: #fff; text-decoration: none; color: var(--twb-text); transition: border-color .15s, transform .15s; }
.twb-report-card:hover { border-color: var(--twb-primary); transform: translateY(-1px); }
.twb-week { grid-area: week; font-weight: 600; }
.twb-meta { grid-area: meta; color: var(--twb-muted); font-size: .9em; }
.twb-score { grid-area: score; align-self: center; font-size: 1.6em; font-weight: 700; color: var(--twb-primary); }
.twb-score small { font-size: .5em; color: var(--twb-muted); font-weight: 400; }
.twb-badge { font-style: normal; font-size: .7em; background: var(--twb-accent); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

.twb-report-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--twb-soft), #fff); }
.twb-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .75em; color: var(--twb-primary); font-weight: 700; }
.twb-bars { display: grid; gap: 12px; }
.twb-bar-row { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 64px; grid-template-areas: "label bar val" ". desc desc"; gap: 2px 12px; align-items: center; }
.twb-bar-label { grid-area: label; font-weight: 600; }
.twb-bar { grid-area: bar; height: 12px; background: var(--twb-soft); border-radius: 999px; overflow: hidden; }
.twb-bar span { display: block; height: 100%; background: var(--twb-primary); border-radius: 999px; }
.twb-bar-val { grid-area: val; font-weight: 700; white-space: nowrap; }
.twb-bar-desc { grid-area: desc; color: var(--twb-muted); font-size: .85em; }
.twb-up { color: #1c9b55; font-size: .8em; }
.twb-down { color: #d0473b; font-size: .8em; }
.twb-section p:last-child { margin-bottom: 0; }
.twb-section-home_program { border-left: 5px solid var(--twb-accent); }

.twb-feedback-form textarea, .twb-report-form textarea, .twb-report-form input, .twb-report-form select { width: 100%; box-sizing: border-box; border: 1px solid var(--twb-line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.twb-feedback-form .twb-btn { margin-top: 10px; }
.twb-fields .twb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.twb-fields .twb-field label { display: block; margin-bottom: 4px; }
.twb-scores { border: 1px solid var(--twb-line); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; overflow-x: auto; }
.twb-scores table { width: 100%; border-collapse: collapse; }
.twb-scores th, .twb-scores td { padding: 6px; text-align: center; border-bottom: 1px solid var(--twb-line); }
.twb-scores td:first-child, .twb-scores th:first-child { text-align: left; }
.twb-report-form .twb-scores input { width: auto; }
.twb-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.twb-table { width: 100%; border-collapse: collapse; }
.twb-table th, .twb-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--twb-line); }

.twb-login form p { margin: 0 0 12px; }
.twb-login input[type=text], .twb-login input[type=password] { width: 100%; box-sizing: border-box; border: 1px solid var(--twb-line); border-radius: 10px; padding: 10px 12px; }
.twb-login input[type=submit] { background: var(--twb-primary); color: #fff; border: 0; border-radius: 999px; padding: 10px 24px; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
	.twb-child { flex-direction: column; text-align: center; }
	.twb-facts { justify-content: center; }
	.twb-bar-row { grid-template-columns: 1fr auto; grid-template-areas: "label val" "bar bar" "desc desc"; }
}
@media print {
	.twb-noprint, header, footer, .woocommerce-MyAccount-navigation { display: none !important; }
	.twb-box { break-inside: avoid; border-color: #ccc; }
}
