/* Visa User Dashboard — sidebar layout, screen-fixed height + inner scroll */
.vtbc-dash {
	--vtbc-accent: #0f766e;
	--vtbc-sidebar-w: 260px;
	--vtbc-gap: 1.5rem;
	--vtbc-dash-h: 100dvh;
	display: grid;
	grid-template-columns: var(--vtbc-sidebar-w) 1fr;
	width: 100%;
	height: var(--vtbc-dash-h);
	max-height: var(--vtbc-dash-h);
	min-height: 0;
	max-width: 100%;
	margin: 0 auto;
	background: #f1f5f9;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	position: relative;
}

@supports not (height: 100dvh) {
	.vtbc-dash {
		--vtbc-dash-h: 100vh;
	}
}

.vtbc-dash--guest {
	display: block;
	padding: 3rem;
	text-align: center;
	color: #64748b;
	background: #fff;
}

.vtbc-dash__toggle {
	display: none;
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 20;
	border: 0;
	background: var(--vtbc-accent);
	color: #fff;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.vtbc-dash__toggle--always {
	display: inline-flex;
}

/* Sidebar */
.vtbc-dash__sidebar {
	display: flex;
	flex-direction: column;
	background: #0f172a;
	color: #e2e8f0;
	padding: 1.25rem 0;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.vtbc-dash__brand {
	padding: 0 1.25rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 0.75rem;
}

.vtbc-dash__brand-link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
}

.vtbc-dash__brand-link:hover {
	opacity: 0.88;
}

.vtbc-dash__logo {
	height: 36px;
	width: auto;
	object-fit: contain;
}

.vtbc-dash__logo-fallback {
	font-size: 1.5rem;
}

.vtbc-dash__brand-title {
	font-weight: 700;
	font-size: 1rem;
}

.vtbc-dash__nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0 0.65rem;
	overflow-y: auto;
}

.vtbc-dash__nav-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 0;
	background: transparent;
	color: inherit;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	transition: background 0.15s;
}

.vtbc-dash__nav-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.vtbc-dash__nav-item.is-active {
	background: var(--vtbc-accent);
	color: #fff;
}

.vtbc-dash__nav-icon {
	opacity: 0.85;
	font-size: 0.9rem;
	width: 1.25rem;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vtbc-dash__nav-icon i,
.vtbc-dash__nav-icon svg {
	display: block;
	line-height: 1;
}

.vtbc-dash__sidebar-tools {
	display: none;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0 0.85rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 0.5rem;
}

.vtbc-dash__sidebar-welcome {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
}

.vtbc-dash__search--sidebar {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	border-radius: 8px;
	padding: 0.55rem 0.75rem;
}

.vtbc-dash__search--sidebar::placeholder {
	color: #94a3b8;
}

.vtbc-dash__sidebar-tools .vtbc-dash__apply-btn {
	width: 100%;
	text-align: center;
	justify-content: center;
}

.vtbc-dash__nav-label {
	flex: 1;
}

.vtbc-dash__nav-badge {
	background: #ef4444;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	min-width: 1.1rem;
	text-align: center;
}

.vtbc-dash__nav-item.is-active .vtbc-dash__nav-badge {
	background: #fff;
	color: var(--vtbc-accent);
}

.vtbc-dash__profile-card {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0.75rem 0.65rem 0;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
}

.vtbc-dash__profile-avatar {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.vtbc-dash__profile-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.vtbc-dash__profile-id {
	font-size: 0.7rem;
	opacity: 0.65;
	font-family: ui-monospace, monospace;
}

.vtbc-dash__profile-name {
	font-size: 0.85rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vtbc-dash__profile-email {
	font-size: 0.7rem;
	opacity: 0.65;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vtbc-dash__profile-actions {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.vtbc-dash__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	font-size: 0.85rem;
}

.vtbc-dash__icon-btn:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Main area */
.vtbc-dash__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.vtbc-dash__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.vtbc-dash__welcome-title {
	margin: 0;
	font-size: 1.35rem;
	color: #0f172a;
}

.vtbc-dash__welcome-sub {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #64748b;
}

.vtbc-dash__header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.vtbc-dash__search {
	padding: 0.55rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.875rem;
	min-width: 200px;
}

.vtbc-dash__apply-btn {
	white-space: nowrap;
}

.vtbc-dash__content {
	flex: 1 1 auto;
	padding: var(--vtbc-gap);
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.vtbc-dash__panel {
	display: none;
	min-height: 0;
}

.vtbc-dash__panel.is-active {
	display: block;
}

.vtbc-dash__panel-inner {
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	min-height: min-content;
}

.vtbc-dash__panel-title {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	color: #0f172a;
}

.vtbc-dash__empty {
	color: #64748b;
	padding: 2rem;
	text-align: center;
	background: #f8fafc;
	border-radius: 10px;
}

/* Stats */
.vtbc-dash__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.vtbc-dash__stat {
	background: #f8fafc;
	border-radius: 10px;
	padding: 1rem;
	text-align: center;
	border: 1px solid #e2e8f0;
}

.vtbc-dash__stat span {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--vtbc-accent);
}

.vtbc-dash__stat small {
	font-size: 0.75rem;
	color: #64748b;
}

.vtbc-dash__stat--alert span {
	color: #ef4444;
}

/* Application cards */
.vtbc-app-cards {
	display: grid;
	gap: 1rem;
}

.vtbc-app-card {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 1.15rem 1.2rem 1.05rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vtbc-app-card[hidden] {
	display: none;
}

.vtbc-app-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.vtbc-app-card__head h4 {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}

.vtbc-app-card__id {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
	font-family: ui-monospace, monospace;
}

.vtbc-app-card__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.4rem;
}

.vtbc-app-card__meta {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: #475569;
}

.vtbc-app-card__summary {
	margin: 0 0 0.85rem;
	padding: 0.9rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.vtbc-app-card__summary-title {
	margin: 0 0 0.65rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f766e;
}

.vtbc-app-card__summary .vtbc-app-card__meta {
	margin-bottom: 0.75rem;
}

.vtbc-app-card__package-details {
	margin: 0.75rem 0 0.25rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #cbd5e1;
}

.vtbc-app-card__package-title {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.vtbc-app-card__lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.vtbc-app-card__line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	font-size: 0.9rem;
	color: #334155;
}

.vtbc-app-card__line-label {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.vtbc-app-card__line-detail {
	font-style: normal;
	font-size: 0.78rem;
	color: #94a3b8;
}

.vtbc-app-card__line-amount {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: #0f172a;
}

.vtbc-app-card__line--visa_fee .vtbc-app-card__line-label,
.vtbc-app-card__line--fixed_fee .vtbc-app-card__line-label {
	font-weight: 500;
}

.vtbc-app-card__pricing {
	display: grid;
	gap: 0.4rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #cbd5e1;
}

.vtbc-app-card__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 0.9rem;
	color: #475569;
}

.vtbc-app-card__price-row strong {
	font-variant-numeric: tabular-nums;
	color: #0f172a;
}

.vtbc-app-card__price-row--discount {
	color: #b45309;
}

.vtbc-app-card__price-row--discount strong {
	color: #b45309;
}

.vtbc-app-card__price-row--total {
	font-size: 0.98rem;
	font-weight: 600;
	color: #0f172a;
}

.vtbc-app-card__price-row--total strong {
	color: #0f766e;
	font-size: 1.05rem;
}

.vtbc-app-card__discount-note {
	margin-top: 0.65rem;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
}

.vtbc-app-card__discount-note strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.vtbc-app-card__notes {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
}

.vtbc-app-card__notes li {
	padding: 0.3rem 0;
	border-bottom: 1px solid rgba(254, 215, 170, 0.6);
	font-size: 0.88rem;
	line-height: 1.4;
}

.vtbc-app-card__notes li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.vtbc-app-card__files {
	margin-bottom: 0.75rem;
	padding: 0.75rem;
	background: #f0fdf4;
	border-radius: 8px;
	font-size: 0.875rem;
}

.vtbc-app-card__pay {
	display: grid;
	gap: 0.45rem;
	width: 100%;
}

.vtbc-app-card__pay-choice {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: #475569;
	cursor: pointer;
}

.vtbc-app-card__custom-amount {
	width: 100%;
	max-width: 10rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9rem;
}

.vtbc-app-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vtbc-app-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.35rem;
	padding-top: 0.95rem;
	border-top: 1px solid #e2e8f0;
}

.vtbc-app-card__invoices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vtbc-app-card__footer .vtbc-app-card__pay {
	flex: 1 1 220px;
	max-width: 320px;
}

.vtbc-app-card__money {
	margin: 0.85rem 0 0;
}

.vtbc-app-card__adjustments {
	margin: 0.35rem 0 0.85rem;
	padding: 0.15rem 0;
}

/* Documents table */
.vtbc-doc-table {
	display: grid;
	gap: 0.75rem;
}

.vtbc-doc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.vtbc-doc-row.is-done {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.vtbc-doc-row__info {
	flex: 1;
	min-width: 180px;
}

.vtbc-doc-row__file {
	display: block;
	font-size: 0.85rem;
	color: #475569;
}

.vtbc-doc-row__ref {
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 0.75rem;
	color: #64748b;
}

.vtbc-doc-row__time {
	display: block;
	font-size: 0.75rem;
	color: #94a3b8;
}

.vtbc-doc-upload-box {
	background: #f0fdfa;
	border: 1px solid #99f6e4;
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.vtbc-doc-upload-box h3 {
	margin: 0 0 1rem;
	font-size: 1rem;
}

.vtbc-doc-upload-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	align-items: end;
}

.vtbc-doc-upload-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
}

.vtbc-doc-upload-form select,
.vtbc-doc-upload-form input[type="file"] {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.55rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-sizing: border-box;
}

/* Transaction cards */
.vtbc-txn-cards {
	display: grid;
	gap: 1rem;
}

.vtbc-txn-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
	background: #fff;
}

.vtbc-txn-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.vtbc-txn-card__app {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 0.25rem;
}

.vtbc-txn-card__meta {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 0.9rem;
	color: #475569;
}

.vtbc-txn-card__meta li {
	margin-bottom: 0.35rem;
}

/* Profile grid */
.vtbc-profile-app-ref {
	margin: -0.5rem 0 1rem;
	font-size: 0.875rem;
	color: #64748b;
}

.vtbc-profile-updated {
	margin: -0.25rem 0 1rem;
	font-size: 0.8rem;
	color: #94a3b8;
}

.vtbc-profile-section-title {
	margin: 1.25rem 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.vtbc-profile-section-desc {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: #64748b;
}

.vtbc-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 1rem;
	margin-bottom: 1rem;
}

.vtbc-profile-grid label {
	display: block;
	margin-bottom: 0.85rem;
	font-weight: 600;
	font-size: 0.875rem;
}

.vtbc-profile-grid input,
.vtbc-profile-grid textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-sizing: border-box;
}

.vtbc-profile-grid input[readonly],
.vtbc-profile-grid textarea[readonly] {
	background: #f8fafc;
	color: #64748b;
}

@media (max-width: 768px) {
	.vtbc-profile-grid {
		grid-template-columns: 1fr;
	}

	.vtbc-doc-upload-form {
		grid-template-columns: 1fr;
	}
}

.vtbc-doc-row__type {
	display: block;
	font-size: 0.8rem;
	color: #94a3b8;
}

.vtbc-doc-status {
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.vtbc-doc-status--pending { background: #fef9c3; color: #854d0e; }
.vtbc-doc-status--approved { background: #dcfce7; color: #166534; }
.vtbc-doc-status--rejected { background: #fee2e2; color: #991b1b; }
.vtbc-doc-status--reupload_requested { background: #ffedd5; color: #c2410c; }
.vtbc-doc-status--missing_requested { background: #fee2e2; color: #991b1b; }

.vtbc-doc-action-box {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.vtbc-doc-action-box h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: #9a3412;
}

.vtbc-doc-row--action {
	background: #fff;
	border: 1px solid #fed7aa;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.vtbc-doc-row--action .vtbc-reupload-form {
	width: 100%;
}

.vtbc-reupload-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.vtbc-reupload-item__note {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	color: #92400e;
	width: 100%;
}

.vtbc-reupload-done {
	margin: 0;
	color: #166534;
	font-weight: 600;
}

/* Transactions table */
.vtbc-dash__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.vtbc-dash__table th,
.vtbc-dash__table td {
	border-bottom: 1px solid #e2e8f0;
	padding: 0.75rem;
	text-align: left;
}

/* Timeline */
.vtbc-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e2e8f0;
	margin-left: 0.5rem;
}

.vtbc-timeline__item {
	position: relative;
	padding: 0 0 1.25rem 1.25rem;
}

.vtbc-timeline__item::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 0.35rem;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--vtbc-accent);
}

.vtbc-timeline__item time {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 0.25rem;
}

.vtbc-timeline__item p {
	margin: 0;
	color: #334155;
}

.vtbc-timeline__ref {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.75rem;
	font-family: ui-monospace, monospace;
	color: #94a3b8;
}

/* Checklist */
.vtbc-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vtbc-checklist__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f5f9;
	color: #64748b;
}

.vtbc-checklist__item.is-done {
	color: #166534;
}

.vtbc-checklist__icon {
	font-size: 1.1rem;
}

/* Eligibility */
.vtbc-eligibility ul {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

/* Profile */
.vtbc-profile-form {
	max-width: 420px;
}

.vtbc-profile-avatar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.vtbc-profile-avatar__img {
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e2e8f0;
}

.vtbc-profile-form label {
	display: block;
	margin-bottom: 0.85rem;
	font-weight: 600;
	font-size: 0.875rem;
}

.vtbc-profile-form input {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-sizing: border-box;
}

.vtbc-profile-form input[readonly] {
	background: #f8fafc;
	color: #64748b;
}

.vtbc-profile-message {
	margin-top: 0.75rem;
	padding: 0.6rem 0.85rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.vtbc-profile-message--success { background: #f0fdf4; color: #166534; }
.vtbc-profile-message--error { background: #fef2f2; color: #b91c1c; }

/* Buttons & badges */
.vtbc-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.9rem;
	border-radius: 8px;
	border: 0;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.vtbc-btn--primary {
	background: var(--vtbc-accent);
	color: #fff;
}

.vtbc-btn--ghost {
	background: #f1f5f9;
	color: #0f172a;
}

.vtbc-btn--outline {
	background: #fff;
	color: #0f766e;
	border: 1px solid #99f6e4;
}

.vtbc-btn--outline:hover {
	background: #f0fdfa;
	color: #115e59;
}

.vtbc-btn--danger {
	background: #fef2f2;
	color: #b91c1c;
}

.vtbc-btn--danger:hover {
	background: #fee2e2;
	color: #991b1b;
}

.vtbc-badge {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: #e2e8f0;
	font-size: 0.8rem;
	font-weight: 600;
}

.vtbc-badge--approved { background: #dcfce7; color: #166534; }

.vtbc-dash__panel-desc {
	margin: -0.25rem 0 1.25rem;
	font-size: 0.9rem;
	color: #64748b;
}

.vtbc-dash__subheading {
	margin: 1.5rem 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.vtbc-txn-card__package {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: #475569;
}

.vtbc-txn-card__badges,
.vtbc-appt-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.vtbc-badge--type {
	background: #e0f2fe;
	color: #0369a1;
}

.vtbc-badge--draft { background: #f1f5f9; color: #475569; }
.vtbc-badge--pending_payment { background: #fef3c7; color: #92400e; }
.vtbc-badge--partial_payment { background: #ffedd5; color: #9a3412; }
.vtbc-badge--processing { background: #dbeafe; color: #1e40af; }
.vtbc-badge--under_review { background: #dbeafe; color: #1e40af; }
.vtbc-badge--rejected { background: #fee2e2; color: #991b1b; }
.vtbc-badge--scheduled,
.vtbc-badge--confirmed { background: #ccfbf1; color: #0f766e; }
.vtbc-badge--completed { background: #dcfce7; color: #166534; }
.vtbc-badge--cancelled,
.vtbc-badge--rescheduled { background: #f1f5f9; color: #64748b; }

.vtbc-txn-history {
	margin: 0.75rem 0;
	font-size: 0.875rem;
}

.vtbc-txn-history summary {
	cursor: pointer;
	color: #0f766e;
	font-weight: 600;
}

.vtbc-txn-history__list {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
	color: #475569;
}

.vtbc-txn-history__list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0;
}

.vtbc-txn-history__list time {
	color: #94a3b8;
	white-space: nowrap;
}

.vtbc-app-card__notices .vtbc-txn-history__list li {
	align-items: flex-start;
}

.vtbc-app-card__notices .vtbc-txn-history__list span {
	flex: 1;
	min-width: 0;
}

.vtbc-txn-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	padding: 4px;
	background: #f1f5f9;
	border-radius: 12px;
	width: fit-content;
	max-width: 100%;
}

.vtbc-txn-tabs__btn {
	border: 0;
	background: transparent;
	padding: 0.55rem 0.95rem;
	border-radius: 9px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #64748b;
	cursor: pointer;
}

.vtbc-txn-tabs__btn.is-active {
	background: #fff;
	color: #0f766e;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.vtbc-txn-panel {
	display: none;
}

.vtbc-txn-panel.is-active {
	display: block;
}

.vtbc-txn-card__money {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.6rem;
	margin: 0.75rem 0 1rem;
	padding: 0;
	background: transparent;
	border: 0;
}

.vtbc-txn-card__money-cell {
	padding: 0.65rem 0.8rem 0.7rem;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.28rem;
	min-height: 0;
}

.vtbc-txn-card__money-cell--paid {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.vtbc-txn-card__money-cell--due {
	background: #fff7ed;
	border-color: #fed7aa;
}

.vtbc-txn-card__money-cell > span {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.2;
}

.vtbc-txn-card__money-cell > strong {
	display: flex;
	align-items: baseline;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
	white-space: nowrap;
}

.vtbc-txn-card__money-cell .vtbc-price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 0.28em;
	white-space: nowrap;
}

.vtbc-txn-card__money-cell .vtbc-price__symbol,
.vtbc-txn-card__money-cell .vtbc-price__amount {
	display: inline;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
	line-height: inherit;
}

.vtbc-txn-card__money-cell .vtbc-price__symbol {
	font-size: 0.92em;
}

.vtbc-txn-card__money-cell--paid > strong,
.vtbc-txn-card__money-cell--paid .vtbc-price {
	color: #047857;
}

.vtbc-txn-card__money-cell--due > strong,
.vtbc-txn-card__money-cell--due .vtbc-price {
	color: #c2410c;
}

.vtbc-txn-card__notes {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 10px;
	color: #9a3412;
}

.vtbc-txn-card__notes strong {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vtbc-txn-card__notes ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vtbc-txn-card__notes li {
	padding: 0.3rem 0;
	border-bottom: 1px solid rgba(254, 215, 170, 0.7);
	font-size: 0.9rem;
}

.vtbc-txn-card__notes li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.vtbc-txn-card__notes time {
	display: inline-block;
	margin-left: 0.25rem;
	color: #b45309;
	font-size: 0.8rem;
}

.vtbc-txn-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.vtbc-txn-card__service {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.88rem;
	color: #475569;
}

.vtbc-txn-lines {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

.vtbc-txn-lines li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.9rem;
}

.vtbc-txn-lines .vtbc-price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 0.2em;
	white-space: nowrap;
}

.vtbc-txn-lines .vtbc-price__symbol,
.vtbc-txn-lines .vtbc-price__amount {
	display: inline;
	font-size: inherit;
	font-weight: inherit;
}

.vtbc-txn-lines time {
	display: block;
	font-size: 0.78rem;
	color: #94a3b8;
	margin-top: 0.15rem;
}

.vtbc-badge--completed {
	background: #dcfce7;
	color: #166534;
}

.vtbc-badge--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.vtbc-txn-pay-table-wrap {
	margin: 0.85rem 0 1rem;
	overflow-x: auto;
}

.vtbc-txn-pay-table__title {
	margin: 0 0 0.45rem;
	font-size: 0.92rem;
	color: #0f172a;
}

.vtbc-txn-pay-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.vtbc-txn-pay-table th,
.vtbc-txn-pay-table td {
	padding: 0.55rem 0.65rem;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}

.vtbc-txn-pay-table th {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	background: #f8fafc;
}

.vtbc-appt-cards {
	display: grid;
	gap: 1rem;
}

.vtbc-appt-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.1rem 1.25rem;
}

.vtbc-appt-card__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

.vtbc-appt-card__head code {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
	color: #64748b;
}

.vtbc-appt-card__meta {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9rem;
}

.vtbc-appt-card__docs {
	background: #f8fafc;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}

.vtbc-appt-card__docs ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.vtbc-appt-card__details {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	color: #334155;
}

.vtbc-appt-card__note {
	margin: 0;
	font-size: 0.85rem;
	color: #64748b;
}
.vtbc-badge--draft,
.vtbc-badge--saved,
.vtbc-badge--pending_payment { background: #fef9c3; color: #854d0e; }
.vtbc-badge--under_review { background: #dbeafe; color: #1d4ed8; }
.vtbc-badge--rejected { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
	.vtbc-dash {
		grid-template-columns: 1fr;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
		width: 100%;
		max-width: 100vw;
	}

	@supports not (height: 100dvh) {
		.vtbc-dash {
			height: 100vh;
			max-height: 100vh;
		}
	}

	.vtbc-dash__toggle {
		display: inline-flex;
		top: max(0.75rem, env(safe-area-inset-top));
		left: max(0.75rem, env(safe-area-inset-left));
	}

	.vtbc-dash__backdrop {
		display: none;
		position: absolute;
		inset: 0;
		background: rgba(15, 23, 42, 0.45);
		z-index: 12;
	}

	.vtbc-dash--sidebar-open .vtbc-dash__backdrop {
		display: block;
	}

	.vtbc-dash__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(var(--vtbc-sidebar-w), 86vw);
		height: 100%;
		z-index: 15;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
		box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
		padding-top: max(1.25rem, env(safe-area-inset-top));
	}

	.vtbc-dash--sidebar-open .vtbc-dash__sidebar {
		transform: translateX(0);
	}

	.vtbc-dash__main {
		padding-top: 3.25rem;
		height: 100%;
		min-height: 0;
		width: 100%;
	}

	.vtbc-dash--no-mobile-header .vtbc-dash__header {
		display: none !important;
	}

	.vtbc-dash--no-mobile-header .vtbc-dash__sidebar-tools {
		display: flex;
	}

	.vtbc-dash--no-mobile-header .vtbc-dash__main {
		padding-top: 3.25rem;
	}

	.vtbc-dash__header {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem;
		gap: 0.75rem;
	}

	.vtbc-dash__welcome-title {
		font-size: 1.25rem;
		padding-left: 2.5rem;
	}

	.vtbc-dash__welcome-sub {
		font-size: 0.85rem;
	}

	.vtbc-dash__header-actions {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
	}

	.vtbc-dash__search {
		flex: 1;
		min-width: 0;
		width: 100%;
	}

	.vtbc-dash__apply-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.vtbc-dash__content {
		overflow-y: auto;
		padding: 0.85rem;
		-webkit-overflow-scrolling: touch;
	}

	.vtbc-dash__panel-inner {
		padding: 1rem;
		border-radius: 10px;
	}

	.vtbc-dash__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.vtbc-doc-row,
	.vtbc-doc-row--action {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.vtbc-doc-actions {
		width: 100%;
	}

	.vtbc-doc-actions .vtbc-btn {
		flex: 1;
	}

	.vtbc-doc-upload-form {
		grid-template-columns: 1fr;
	}

	.vtbc-profile-grid {
		grid-template-columns: 1fr;
	}

	.vtbc-txn-card__meta {
		flex-direction: column;
		gap: 0.4rem;
	}

	.vtbc-app-card__actions,
	.vtbc-app-card__footer,
	.vtbc-app-card__invoices {
		flex-direction: column;
		align-items: stretch;
	}

	.vtbc-app-card__actions .vtbc-btn,
	.vtbc-app-card__footer .vtbc-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.vtbc-app-card__footer .vtbc-app-card__pay {
		max-width: none;
	}

	.vtbc-dash__profile-card {
		padding: 0.85rem 1rem;
	}
}

@media (max-width: 480px) {
	.vtbc-dash__stats {
		grid-template-columns: 1fr 1fr;
	}

	.vtbc-dash__content {
		padding: 0.65rem;
	}

	.vtbc-dash__panel-inner {
		padding: 0.85rem;
	}

	.vtbc-dash__welcome-title {
		font-size: 1.1rem;
	}
}
