.pdb-modal { position: fixed; inset: 0; z-index: 9999999; }
.pdb-modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.pdb-modal-dialog { position: relative; max-width: 640px; margin: 50px auto; }
.pdb-modal-content { background: #fff; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); overflow: hidden; }

/* Header con accent blu */
.pdb-bulk-modal .pdb-modal-header {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 22px;
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	border-bottom: none;
}
.pdb-bulk-modal .pdb-modal-header h2 {
	margin: 0; font-size: 17px; font-weight: 600; color: #fff;
	display: flex; align-items: center; gap: 10px;
}
.pdb-bulk-modal .pdb-modal-header .dashicons {
	font-size: 22px; width: 22px; height: 22px;
}
.pdb-bulk-modal .pdb-close-modal {
	background: rgba(255,255,255,0.15); border: 0;
	color: #fff; font-size: 22px; line-height: 1;
	width: 30px; height: 30px; border-radius: 50%;
	cursor: pointer; transition: background 0.15s;
}
.pdb-bulk-modal .pdb-close-modal:hover { background: rgba(255,255,255,0.3); }

.pdb-bulk-modal .pdb-modal-body { padding: 22px 24px; max-height: 70vh; overflow-y: auto; }
.pdb-bulk-modal .pdb-modal-footer {
	display: flex; justify-content: flex-end; gap: 10px;
	padding: 14px 22px; border-top: 1px solid #e0e6ec; background: #f8fafc;
}
.pdb-bulk-modal .pdb-modal-footer .button-primary {
	display: inline-flex; align-items: center; gap: 6px;
}
.pdb-bulk-modal .pdb-modal-footer .button-primary .dashicons,
.pdb-bulk-modal .pdb-modal-footer .button-primary .dashicons-before:before {
	font-size: 18px; width: 18px; height: 18px; line-height: 1;
	color: #fff !important;
}

/* Card conteggio ordini */
.pdb-bulk-count-card {
	display: flex; align-items: baseline; gap: 12px;
	padding: 16px 20px; margin-bottom: 18px;
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f1f9 100%);
	border-left: 4px solid #2271b1;
	border-radius: 4px;
}
.pdb-bulk-count-number {
	font-size: 36px; font-weight: 700; color: #2271b1; line-height: 1;
}
.pdb-bulk-count-label {
	font-size: 14px; color: #1d2327; font-weight: 500;
}

/* Alert info / error */
.pdb-bulk-alert {
	display: flex; gap: 12px;
	padding: 14px 18px; margin-bottom: 22px;
	border-left: 4px solid;
	border-radius: 4px;
	font-size: 13px; line-height: 1.5;
}
.pdb-bulk-alert .dashicons {
	flex-shrink: 0; font-size: 22px; width: 22px; height: 22px; margin-top: 1px;
}
.pdb-bulk-alert p { margin: 4px 0 0 0; }
.pdb-bulk-alert strong { display: block; font-size: 13px; }

.pdb-bulk-alert--info {
	background: #fff8e5;
	border-left-color: #dba617;
	color: #2c2d32;
}
.pdb-bulk-alert--info .dashicons { color: #dba617; }

.pdb-bulk-alert--error {
	background: #fcf0f1;
	border-left-color: #d63638;
	color: #2c2d32;
}
.pdb-bulk-alert--error .dashicons { color: #d63638; }

/* Sezione e form */
.pdb-bulk-section-title {
	margin: 22px 0 12px 0; padding: 0;
	font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.6px;
	color: #50575e;
	border-top: 1px solid #e0e6ec; padding-top: 16px;
}

.pdb-bulk-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
}
.pdb-bulk-field { display: flex; flex-direction: column; gap: 5px; }
.pdb-bulk-field label {
	font-size: 13px; font-weight: 600; color: #1d2327;
}
.pdb-bulk-field input,
.pdb-bulk-field select {
	width: 100%;
	padding: 7px 10px;
	border-radius: 4px;
	border: 1px solid #c3c4c7;
	font-size: 14px;
	box-shadow: 0 0 0 transparent;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.pdb-bulk-field input:focus,
.pdb-bulk-field select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

@media (max-width: 600px) {
	.pdb-bulk-form-grid { grid-template-columns: 1fr; }
	.pdb-modal-dialog { margin: 20px; }
}
.pdb-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.pdb-badge--status-queued     { background: #e0e0e0; color: #444; }
.pdb-badge--status-processing { background: #cfe2ff; color: #0b4ea2; }
.pdb-badge--status-completed  { background: #d8efd1; color: #1d6a1d; }
.pdb-badge--status-failed     { background: #ffd7d7; color: #a00000; }

.pdb-bulk-ldv-page .wp-list-table .column-orders { width: 12%; }
.pdb-bulk-ldv-page .wp-list-table .column-status { width: 14%; }
.pdb-bulk-ldv-page .wp-list-table .column-pdf,
.pdb-bulk-ldv-page .wp-list-table .column-txt,
.pdb-bulk-ldv-page .wp-list-table .column-delete { width: 10%; }
