.twocolumns  {
    display: flex !important;
    flex-direction: column !important;
}
.twocolumns .firstcolumn, .twocolumns .secondcolumn, .twocolumns .fichehalfleft, .twocolumns .fichehalfright, .twocolumns .boxhalfleft, .twocolumns .boxhalfright  {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.pg-dashboard  {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}
.pg-controls  {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e4e8;
}
.pg-controls select  {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Style du toggle pour les cartes natives */
.pg-toggle-wrap  {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}
.pg-toggle-wrap input  {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}
.pg-cards  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.pg-card  {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2C82C9;
}
.pg-card.warning  {
    border-left-color: #F39C12;
}
.pg-card.info  {
    border-left-color: #16A085;
}
.pg-card-title  {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: bold;
}
.pg-card-main  {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}
.pg-card-sub  {
    font-size: 0.9em;
    color: #95a5a6;
}
.pg-table-wrap  {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    width: 100%;
}
.pg-table  {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}
.pg-table th  {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 2px solid #eee;
    font-weight: 600;
    color: #555;
}
.pg-table td  {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.pg-badge  {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}
.bg-draft  {
    background: #95a5a6;
}
.bg-open  {
    background: #F39C12;
}
.bg-signed  {
    background: #27ae60;
}
.bg-refused  {
    background: #e74c3c;
}
.bg-billed  {
    background: #2980b9;
}

.wpstats-widget-wrap {
    padding: 16px;
    font-family: inherit;
}

/* Sélecteur */
.wpstats-selector {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.wpstats-label {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.wpstats-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    transition: all .2s;
}
.wpstats-btn:hover {
    background: #e5e7eb;
}
.wpstats-btn.active {
    font-weight: 700;
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
}

/* États vides */
.wpstats-empty-db {
    color: #888;
    font-style: italic;
}
.wpstats-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
}

/* Section Graphique */

.wpstats-chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.wpstats-canvas-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}
.wpstats-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.wpstats-rate {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.wpstats-rate-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Légende */
.wpstats-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.wpstats-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wpstats-color-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/*Couleurs des carrés de la légende*/

.wpstats-color-box.blue { background: #3b82f6; }
.wpstats-color-box.gray { background: #9ca3af; }
.wpstats-legend-text {
    font-size: 13px;

    /* couleur du texte de la légende */

    color: #374151;
}

/* Total */
.wpstats-total {
    font-size: 12px;
    color: #9ca3af;
}
.wpstats-total strong {
    color: #374151;
}.dv2-widget-tiers {
	font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
}

/* ===== Barre de contrôles ===== */
.dv2-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
	background: #f8f9fa;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #e0e4e8;
}

.dv2-control-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dv2-label {
	font-size: 0.8em;
	text-transform: uppercase;
	color: #7f8c8d;
	font-weight: bold;
}

.dv2-select {
	padding: 5px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
}

/* Boutons de filtre (type / limite) */
.dv2-btn-group {
	display: flex;
	gap: 4px;
}

.dv2-btn {
	padding: 5px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #555;
	cursor: pointer;
	font-size: 0.9em;
	transition: all 0.15s ease;
}

.dv2-btn:hover {
	border-color: #2C82C9;
	color: #2C82C9;
}

.dv2-btn.active {
	background: #2C82C9;
	border-color: #2C82C9;
	color: #fff;
}

/* Compteur (même esprit que .pg-badge) */
.dv2-counter {
	display: flex;
	align-items: center;
}

.dv2-badge {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: bold;
	color: #fff;
	background: #2C82C9;
	white-space: nowrap;
}

/* ===== Tableau ===== */
.dv2-table-wrapper {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow-x: auto;
	width: 100%;
	position: relative;
	transition: opacity 0.15s ease;
}

.dv2-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	min-width: 600px;
}

.dv2-table th {
	background: #f8f9fa;
	padding: 12px 15px;
	border-bottom: 2px solid #eee;
	font-weight: 600;
	color: #555;
	white-space: nowrap;
}

.dv2-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
}

.dv2-sortable {
	cursor: pointer;
	user-select: none;
}

.dv2-sortable:hover {
	color: #2C82C9;
}

.dv2-sorted {
	color: #2C82C9;
}

.dv2-row:hover {
	background: #f8f9fa;
}

.dv2-link {
	color: #2C82C9;
	text-decoration: none;
	font-weight: 600;
}

.dv2-link:hover {
	text-decoration: underline;
}

.dv2-link-mail {
	color: #16A085;
	text-decoration: none;
}

.dv2-link-mail:hover {
	text-decoration: underline;
}

.dv2-empty-cell {
	color: #bbb;
}

.dv2-empty {
	text-align: center;
	color: #95a5a6;
	padding: 20px !important;
}

.dv2-error {
	text-align: center;
	color: #e74c3c;
	padding: 20px !important;
	background: #fdf1f0;
}

/* ===== Loader ===== */
.dv2-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dv2-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #e0e4e8;
	border-top-color: #2C82C9;
	border-radius: 50%;
	animation: dv2-spin 0.8s linear infinite;
}

@keyframes dv2-spin {
	to { transform: rotate(360deg); }
}