table {
	border-collapse: collapse;
	width: 100%;
}

thead {
	background-color: #f7f7f7;
}

td,
th {
	border-top: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
	text-align: left;
	padding: 8px;
	font-size: 12px;
}

td {
	font-weight: 500;
}

.dreacot-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dreacot-dashboard-grid {
	display: grid;
	gap: 20px;
}

.dreacot-dashboard-grid--top {
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.dreacot-dashboard-grid--stats {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dreacot-dashboard-grid--lists {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.dreacot-dashboard-card {
	height: 100%;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: none;
}

.dreacot-dashboard-card .components-card__body {
	height: 100%;
	padding: 22px;
}

.dreacot-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.dreacot-card-header h2,
.dreacot-profile-card h2 {
	margin: 0;
	color: #1d2327;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.dreacot-card-header p,
.dreacot-profile-card p {
	margin: 10px 0 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.45;
}

.dreacot-card-header .components-button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dreacot-wallet-balance {
	margin-top: 32px;
	color: #1d2327;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	line-height: 1;
}

.dreacot-profile-card {
	display: flex;
	min-height: 176px;
	flex-direction: column;
	align-items: flex-start;
}

.dreacot-profile-card .components-button {
	margin-top: auto;
}

.dreacot-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 24px;
}

.dreacot-badge {
	display: inline-flex;
	min-height: 26px;
	align-items: center;
	border-radius: 8px;
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.dreacot-badge--warning {
	background: #ffe7b3;
	color: #6c4700;
}

.dreacot-badge--info {
	background: #d8ecff;
	color: #075985;
}

.dreacot-badge--success {
	background: #b8f3cf;
	color: #075f35;
}

.dreacot-badge--critical {
	background: #ffd6d2;
	color: #8a2420;
}

.dreacot-setup-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dreacot-checklist-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.dreacot-checklist-item {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px;
	background: #fff;
}

.dreacot-checklist-item--incomplete {
	border-color: #f0c36d;
	background: #fffaf0;
}

.dreacot-checklist-icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f0f0f1;
	color: #646970;
}

.dreacot-checklist-item--complete .dreacot-checklist-icon {
	background: #b8f3cf;
	color: #075f35;
}

.dreacot-checklist-item--incomplete .dreacot-checklist-icon {
	background: #ffe7b3;
	color: #6c4700;
}

.dreacot-checklist-item strong {
	display: block;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.3;
}

.dreacot-checklist-item p {
	margin: 5px 0 0;
	color: #646970;
	font-size: 13px;
	line-height: 1.35;
}

.dreacot-checklist-item .components-button {
	height: auto;
	padding: 0;
	white-space: nowrap;
}

.dreacot-stat-card {
	min-height: 112px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dreacot-stat-card .dashicons {
	color: #646970;
}

.dreacot-stat-card strong {
	display: block;
	margin-top: 28px;
	color: #1d2327;
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
}

.dreacot-list-card {
	min-height: 360px;
	display: flex;
	flex-direction: column;
}

.dreacot-list-divider {
	height: 1px;
	margin: 18px 0 0;
	background: #e0e0e0;
}

.dreacot-empty-state {
	min-height: 230px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #646970;
	font-size: 14px;
	text-align: center;
}

.dreacot-order-list {
	display: flex;
	flex-direction: column;
}

.dreacot-order-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f1;
}

.dreacot-order-row:last-child {
	border-bottom: 0;
}

.dreacot-order-title {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dreacot-order-title strong {
	color: #1d2327;
	font-size: 15px;
	line-height: 1.3;
}

.dreacot-order-row p {
	margin: 6px 0 3px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.35;
}

.dreacot-order-row small {
	color: #787c82;
	font-size: 12px;
	line-height: 1.35;
}

.dreacot-loading {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #1d2327;
}

.dreacot-topup-modal {
	display: flex;
	min-width: min(420px, 80vw);
	flex-direction: column;
	gap: 16px;
}

.dreacot-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

@media (max-width: 1200px) {

	.dreacot-dashboard-grid--stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {

	.dreacot-dashboard-grid--top,
	.dreacot-dashboard-grid--lists,
	.dreacot-dashboard-grid--stats {
		grid-template-columns: 1fr;
	}

	.dreacot-dashboard-card .components-card__body {
		padding: 18px;
	}

	.dreacot-card-header {
		align-items: stretch;
		flex-direction: column;
	}

	.dreacot-order-row {
		grid-template-columns: 1fr;
	}

	.dreacot-checklist-grid {
		grid-template-columns: 1fr;
	}

	.dreacot-checklist-item {
		grid-template-columns: 26px minmax(0, 1fr);
	}

	.dreacot-checklist-item .components-button {
		grid-column: 2;
		justify-self: start;
	}

	.dreacot-order-row .components-button {
		width: fit-content;
	}
}
