/* RTKSA Customer Dashboard Widget — default styles. */

.rtksa-ew-dashboard { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; width: 100%; overflow-x: hidden; }
.rtksa-ew-dashboard *, .rtksa-ew-dashboard *::before, .rtksa-ew-dashboard *::after { box-sizing: border-box; }

.rtksa-ew-dash-card {
	background: #fff !important; border: 1px solid #DDE2E9 !important; border-radius: 20px !important;
	padding: 34px !important; box-shadow: 0 4px 20px rgba(6,26,51,.05) !important;
}
.rtksa-ew-dash-card--narrow { max-width: 440px; margin: 0 auto; }

.rtksa-ew-dash-heading { font-size: 22px; font-weight: 800; color: #14181F; margin: 0 0 10px; }
.rtksa-ew-dash-text { font-size: 14px; color: #5B6472; margin: 0 0 24px; line-height: 1.6; }
.rtksa-ew-dash-subheading { font-size: 15px; font-weight: 800; color: #14181F; margin: 0 0 16px; }

.rtksa-ew-dash-field { margin-bottom: 18px; }
.rtksa-ew-dash-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: #14181F; }
.rtksa-ew-dash-input {
	width: 100% !important; padding: 12px 14px !important; border: 1.5px solid #DDE2E9 !important; border-radius: 10px !important;
	font-size: 14px !important; background: #fff !important; font-family: inherit !important; color: #14181F !important;
	box-sizing: border-box !important;
}
.rtksa-ew-dash-input:focus { outline: none !important; border-color: #1470D6 !important; box-shadow: 0 0 0 4px #E4F0FE !important; }
.rtksa-ew-dash-code-input { text-align: center; letter-spacing: .5em; font-size: 22px !important; font-weight: 700; }
.rtksa-ew-dash-error { display: block; color: #D64545; font-size: 12px; margin-top: 5px; min-height: 14px; }
.rtksa-ew-dash-form-error { color: #D64545; font-size: 13px; margin-top: 12px; text-align: center; min-height: 14px; }

.rtksa-ew-dash-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: none; padding: 14px 24px; border-radius: 99px; font-weight: 800; font-size: 14px; cursor: pointer;
}
.rtksa-ew-dash-btn-block { width: 100%; }
.rtksa-ew-dash-btn-primary { background: #0F55A8; color: #fff; }
.rtksa-ew-dash-btn-primary:hover { background: #1470D6; color: #fff; }
.rtksa-ew-dash-btn-danger { background: #FBE8E8; color: #D64545; margin-top: 24px; width: 100%; }
.rtksa-ew-dash-btn-danger:hover { background: #D64545; color: #fff; }
.rtksa-ew-dash-btn[disabled] { opacity: .6; pointer-events: none; }
.rtksa-ew-dash-link { background: none; border: none; color: #0F55A8; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; margin-top: 16px; display: block; text-align: center; width: 100%; }

.rtksa-ew-dash-spinner { display: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rtksa-ew-dash-spin .7s linear infinite; }
.rtksa-ew-dash-btn.is-loading .rtksa-ew-dash-spinner { display: inline-block; }
.rtksa-ew-dash-btn.is-loading .rtksa-ew-dash-btn-text { opacity: .7; }
.rtksa-ew-dash-spinner--lg { display: inline-block !important; width: 30px; height: 30px; border-width: 3px; border-color: rgba(15,85,168,.2); border-top-color: #0F55A8; }
.rtksa-ew-dash-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
@keyframes rtksa-ew-dash-spin { to { transform: rotate(360deg); } }

/* Dashboard */
.rtksa-ew-dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.rtksa-ew-dash-head .rtksa-ew-dash-link { margin: 0; width: auto; }

.rtksa-ew-dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; width: 100%; }
.rtksa-ew-dash-grid > * { min-width: 0; max-width: 100%; }
@media (max-width: 780px) { .rtksa-ew-dash-grid { grid-template-columns: 1fr; } }

.rtksa-ew-dash-plan-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #EEF1F5; }
.rtksa-ew-dash-plan-name { display: block; font-size: 19px; font-weight: 800; color: #14181F; }
.rtksa-ew-dash-badge { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #E1FAF0; color: #0E9E64; }
.rtksa-ew-dash-badge.is-trial { background: #E4F0FE; color: #0F55A8; }
.rtksa-ew-dash-badge.is-past_due, .rtksa-ew-dash-badge.is-cancelled, .rtksa-ew-dash-badge.is-expired { background: #FBE8E8; color: #D64545; }
.rtksa-ew-dash-badge.is-pending { background: #FBF2DD; color: #B4860B; }
.rtksa-ew-dash-plan-price { font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; font-weight: 700; font-size: 18px; color: #0F55A8; white-space: nowrap; }

.rtksa-ew-dash-kv-list { display: flex; flex-direction: column; gap: 0; }
.rtksa-ew-dash-kv { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #EEF1F5; font-size: 13px; }
.rtksa-ew-dash-kv span { color: #5B6472; }
.rtksa-ew-dash-kv strong { color: #14181F; font-weight: 700; word-break: break-word; text-align: right; }

.rtksa-ew-dash-renewal-note { font-size: 12px; color: #5B6472; line-height: 1.6; margin: 20px 0 4px; padding: 14px 16px; background: #F6F8FA; border-radius: 10px; }
.rtksa-ew-dash-credentials-notice { font-size: 12px; color: #5B6472; line-height: 1.6; margin: 14px 0 0; padding: 12px 14px; background: #F6F8FA; border-radius: 10px; }
.rtksa-ew-dash-cancelled-note { margin-top: 14px; padding: 12px 14px; background: #FBE8E8; color: #D64545; border-radius: 10px; font-size: 13px; text-align: center; }

.rtksa-ew-dash-table { width: 100%; border-collapse: collapse; }
.rtksa-ew-dash-table th, .rtksa-ew-dash-table td { padding: 10px 6px; text-align: left; font-size: 13px; border-bottom: 1px solid #EEF1F5; }
.rtksa-ew-dash-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5B6472; font-weight: 700; }
.rtksa-ew-dash-table td:last-child { text-transform: capitalize; }
