/* Panix - Gestione Documenti Utente */

.panix-doc-wrapper {
	max-width: 100%;
	font-family: inherit;
}

/* --- Toolbar --- */
.panix-doc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.panix-doc-search-box {
	position: relative;
	flex: 1 1 260px;
}

.panix-doc-search-box input[type="text"],
.panix-doc-utente-search + input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 32px 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.panix-doc-btn-clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.panix-doc-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 220px;
	overflow-y: auto;
	z-index: 50;
	display: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.panix-doc-suggestions .panix-doc-suggestion-item {
	padding: 8px 10px;
	cursor: pointer;
	font-size: 14px;
}

.panix-doc-suggestions .panix-doc-suggestion-item:hover,
.panix-doc-suggestions .panix-doc-suggestion-item.active {
	background: #3BED5E;
	color: #000;
}

.panix-doc-filter-box select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.panix-doc-actions {
	margin-left: auto;
}

/* --- Buttons --- */
.panix-doc-btn {
	background: #f1f1f1;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}

.panix-doc-btn:hover {
	background: #e6e6e6;
}

.panix-doc-btn-primary {
	background: #3BED5E;
	color: #000;
	border-color: #2fd04f;
	font-weight: 600;
}

.panix-doc-btn-primary:hover {
	background: #2fd04f;
}

.panix-doc-btn-sm {
	padding: 5px 10px;
	font-size: 12px;
	margin-right: 4px;
}

.panix-doc-btn-danger {
	background: #fdecea;
	border-color: #f5b5ac;
	color: #b3261e;
}

.panix-doc-btn-danger:hover {
	background: #f8d4cf;
}

/* --- Table --- */
#panix-doc-table-container {
	background: #fff;
	border-radius: 4px;
	overflow-x: auto;
}

.panix-doc-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	font-size: 14px;
}

.panix-doc-table thead th {
	background: #3BED5E;
	color: #000000;
	text-align: left;
	padding: 10px 12px;
	font-weight: 600;
	white-space: nowrap;
}

.panix-doc-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	background: #ffffff;
	vertical-align: middle;
}

.panix-doc-table tbody tr:hover td {
	background: #f7fff9;
}

.panix-doc-loading,
.panix-doc-empty {
	text-align: center;
	color: #777;
	padding: 20px !important;
}

.panix-doc-azioni {
	white-space: nowrap;
}

/* --- Modal --- */
.panix-doc-modal {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.panix-doc-modal-content {
	background: #fff;
	padding: 24px;
	border-radius: 6px;
	width: 100%;
	max-width: 460px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.panix-doc-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	font-size: 22px;
	cursor: pointer;
	color: #666;
}

.panix-doc-field {
	margin-bottom: 14px;
	position: relative;
}

.panix-doc-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
}

.panix-doc-field input[type="text"],
.panix-doc-field input[type="file"],
.panix-doc-field select,
.panix-doc-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.panix-doc-utente-selezionato {
	margin-top: 6px;
	font-size: 13px;
	color: #2fa14a;
	font-weight: 600;
}

.panix-doc-form-error {
	color: #b3261e;
	font-size: 13px;
	margin-bottom: 10px;
	min-height: 16px;
}

.panix-doc-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}