/**
 * Kaya Studio - Kaya Login Captcha Dashboard Styles
 */


/* ==========================================================================
   Statistics Tabs
   ========================================================================== */

.ks-wp-dashboard-page-statistics-tabs {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	margin: 20px 0 0 0;
	border-bottom: 1px solid #dcdcde;
}

.ks-wp-dashboard-page-statistics-tab {
	position: relative;
	padding: 10px 14px;
	margin: 0;
	color: #50575e;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition:
		color 0.15s ease,
		border-color 0.15s ease;
}

.ks-wp-dashboard-page-statistics-tab:hover {
	color: #1d2327;
}

.ks-wp-dashboard-page-statistics-tab.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.ks-wp-dashboard-page-statistics-tab:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}


/* ==========================================================================
   Statistics Panels
   ========================================================================== */

.ks-wp-dashboard-page-statistics-panels {
	padding-top: 20px;
}

.ks-wp-dashboard-page-statistics-panel[hidden] {
	display: none;
}

.ks-wp-dashboard-page-statistics-panel-title {
	margin: 0 0 20px;
	color: #1d2327;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}


/* ==========================================================================
   Statistics Years
   ========================================================================== */

.ks-wp-dashboard-page-statistics-year {
	margin-bottom: 24px;
}

.ks-wp-dashboard-page-statistics-year:last-child {
	margin-bottom: 0;
}

.ks-wp-dashboard-page-statistics-year h4 {
	margin: 0 0 8px;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}


/* ==========================================================================
   Statistics Tables
   ========================================================================== */

.ks-wp-dashboard-page-statistics-table-wrapper {
	overflow-x: auto;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.ks-wp-dashboard-page-statistics-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: #fff;
}

.ks-wp-dashboard-page-statistics-table th,
.ks-wp-dashboard-page-statistics-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.ks-wp-dashboard-page-statistics-table thead th {
	color: #50575e;
	background: #F1F3FB;
	font-weight: 600;
}

.ks-wp-dashboard-page-statistics-table tbody th {
	color: #1d2327;
	font-weight: 500;
}

.ks-wp-dashboard-page-statistics-table tbody td {
	color: #50575e;
}

.ks-wp-dashboard-page-statistics-table tbody tr:last-child th,
.ks-wp-dashboard-page-statistics-table tbody tr:last-child td {
	border-bottom: 0;
}

.ks-wp-dashboard-page-statistics-table tbody tr:hover {
	background: #F1F3FB;
}

.ks-wp-dashboard-page-statistics-table th:not(:first-child),
.ks-wp-dashboard-page-statistics-table td:not(:first-child) {
	width: 25%;
	text-align: right;
}


/* ==========================================================================
   Statistics Empty State
   ========================================================================== */

.ks-wp-dashboard-page-statistics-empty {
	padding: 32px 20px;
	margin-top: 20px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	text-align: center;
}

.ks-wp-dashboard-page-statistics-empty-icon {
	margin-bottom: 8px;
	font-size: 28px;
	line-height: 1;
}

.ks-wp-dashboard-page-statistics-empty h3 {
	margin: 0 0 6px;
	color: #1d2327;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.ks-wp-dashboard-page-statistics-empty p {
	max-width: 480px;
	margin: 0 auto;
	color: #646970;
	font-size: 13px;
	line-height: 1.6;
}

/* ==========================================================================
   Statistics Year Header
   ========================================================================== */

.ks-wp-dashboard-page-statistics-year-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 10px;
}

.ks-wp-dashboard-page-statistics-year-header h4 {
	margin: 0;
	color: #1d2327;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}


/* ==========================================================================
   Statistics Totals
   ========================================================================== */

.ks-wp-dashboard-page-statistics-totals {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.ks-wp-dashboard-page-statistics-total {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	background: #F1F3FB;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.ks-wp-dashboard-page-statistics-total-label {
	color: #646970;
	font-size: 12px;
	line-height: 1.4;
}

.ks-wp-dashboard-page-statistics-total-value {
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}



/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {

	.ks-wp-dashboard-page-statistics-tabs {
		overflow-x: auto;
	}

	.ks-wp-dashboard-page-statistics-tab {
		flex: 0 0 auto;
		padding: 9px 12px;
		font-size: 13px;
	}

	.ks-wp-dashboard-page-statistics-panels {
		padding-top: 16px;
	}

	.ks-wp-dashboard-page-statistics-table th,
	.ks-wp-dashboard-page-statistics-table td {
		padding: 8px 10px;
	}

	.ks-wp-dashboard-page-statistics-year-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

    .ks-wp-dashboard-page-statistics-year-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    } 

    .ks-wp-dashboard-page-statistics-totals { 
        display: grid; 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
        width: 100%; 
    } 

    .ks-wp-dashboard-page-statistics-total {
        justify-content: space-between; 
        padding: 6px 8px;
    }

    .ks-wp-dashboard-page-statistics-total-label {
        font-size: 11px;
    } 

    .ks-wp-dashboard-page-statistics-total-value {
        font-size: 13px;
    }

}