* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f6f8;
	color: #222;
}

.genzo-header {
	background: #1f2937;
	color: white;
	padding: 18px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.genzo-logo {
	display: flex;
	align-items: center;
}

.genzo-logo img {
	max-height: 60px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.genzo-subtitle {
	font-size: 14px;
	opacity: 0.85;
}

.genzo-main {
	min-height: calc(100vh - 130px);
	padding: 32px;
}

.genzo-footer {
	background: #e5e7eb;
	color: #444;
	padding: 14px 32px;
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}

.genzo-login-main {
	display: flex;
	justify-content: center;
	align-items: center;
}

.login-card {
	background: white;
	width: 360px;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.login-card h1 {
	margin-top: 0;
	text-align: center;
}

label {
	display: block;
	margin-top: 6px;
	margin-bottom: 4px;
	font-weight: bold;
}

input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	height: 38px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

select {
	height: 38px;
	padding: 6px 10px;
}

textarea {
	padding: 6px 10px;
	min-height: 80px;
}

.chkProveedor {
	position: static !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	width: auto !important;
}

.genzo-toast {
	background-color: #1f2937 !important;
	color: #ffffff !important;
}

.genzo-toast-error {
	background-color: #991b1b !important;
	color: #ffffff !important;
}

button {
	background: #1f2937;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	cursor: pointer;
}

button:hover {
	background: #111827;
}

.login-card button {
	width: 100%;
	margin-top: 24px;
}

.module-grid {
	display: flex;
	gap: 20px;
	margin-top: 24px;
}

.module-card {
	background: white;
	width: 260px;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.10);
	text-decoration: none;
	color: #222;
}

.module-card:hover {
	box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.toolbar {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
}

.filter-box {
	background: white;
	padding: 16px;
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}



.genzo-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
}

.genzo-table th,
.genzo-table td {
	border-bottom: 1px solid #ddd;
	padding: 12px;
	text-align: left;
}

.genzo-table th {
	background: #f0f2f5;
}

.login-subtitle {
	text-align: center;
	color: #666;
	margin-bottom: 22px;
}

.alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 16px;
	font-size: 14px;
}

.page-title {
	text-align: center;
	margin-bottom: 28px;
}

.page-title h1 {
	margin-bottom: 6px;
	font-size: 30px;
}

.page-title p {
	margin: 0;
	color: #666;
}

.search-card {
	background: white;
	padding: 16px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	margin-bottom: 20px;
}

.search-card h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: normal;
}

.filter-box {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 28px;
}

.filter-actions {
	grid-column: 1 / -1;

	display: flex;
	justify-content: flex-end;
	gap: 12px;

	margin-top: 15px;
}

.btn-secondary {
	background: #90a4ae;
}

.btn-secondary:hover {
	background: #78909c;
}

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.header-user {
	font-size: 14px;
	font-weight: bold;
	color: white;
}

.header-logout a {
	color: #ffffff;
	font-size: 13px;
	text-decoration: underline;
}

.header-logout a:hover {
	opacity: 0.8;
}

.header-user a {
	color: #ffffff;
	margin-left: 5px;
}

.header-user a:hover {
	opacity: 0.8;
}

.btn-link {
	display: block;
	text-align: center;
	background: #1f2937;
	color: white;
	border-radius: 6px;
	padding: 10px 16px;
	text-decoration: none;
	margin-top: 20px;
}

.btn-link:hover {
	background: #111827;
}

.detail-card {
	background: white;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	margin-bottom: 28px;
	overflow: hidden;
}

.detail-title {
	background: #1f2937;
	color: white;
	padding: 14px 20px;
	font-size: 22px;
	font-weight: normal;
}

.detail-tabs {
	display: flex;
	gap: 40px;
	padding: 22px 28px 0 28px;
}

.detail-tabs a {
	text-decoration: none;
	color: #4b5563;
	font-weight: bold;
	padding: 0 20px 12px 20px;
}

.detail-tabs a.active {
	color: #1f2937;
	border-bottom: 2px solid #1f2937;
}

.detail-section-title {
	margin: 28px 28px 24px 28px;
	padding-bottom: 6px;
	border-bottom: 1px solid #222;
	font-weight: bold;
	font-size: 16px;
}

.detail-grid {
	padding: 0 28px 28px 28px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 32px;
}

.form-field label {
	margin-top: 0;
	font-size: 14px;
}

.detail-actions {
	padding: 0 28px 28px 28px;
	display: flex;
	gap: 12px;
	margin-top: 22px;
	padding-bottom: 32px;
}

.detail-actions a {
	text-decoration: none;
	color: white;
	border-radius: 6px;
	padding: 10px 16px;
}

.alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0 28px 20px 28px;
	font-size: 14px;
}

.alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0 28px 20px 28px;
	font-size: 14px;
}

.field-error {
	color: #b91c1c;
	font-size: 13px;
	margin-top: 4px;
	display: block;
}

.supplier-section {
	margin: 0 34px 28px 34px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 16px;
	background: #fafafa;
	overflow-x: auto;
	max-width: calc(100% - 68px);
}

.supplier-section .genzo-table {
	min-width: 900px;
	margin-top: 14px;
	font-size: 13px;
}

.supplier-section input,
.supplier-section select {
	padding: 7px;
	font-size: 13px;
}

.genzo-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9999 !important;
	display: none;
	justify-content: center;
	align-items: center;
}

.genzo-modal {
	background: white;
	width: 85%;
	max-width: 1100px;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.genzo-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #ddd;
}

.genzo-modal-body {
	padding: 20px;
}

.genzo-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid #ddd;
}

.modal-close {
	width: auto;
	padding: 6px 10px;
}

.modal.modal-large {
	width: 90%;
	max-height: 85%;
}

.modal .modal-content {
	padding: 24px;
}

.modal .modal-footer {
	padding: 12px 24px;
}

.supplier-toolbar {
	margin-bottom: 18px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.supplier-section {
	margin: 0 28px 28px 28px;
	padding: 18px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fafafa;
	overflow-x: auto;
}

.supplier-section .genzo-table {
	margin-top: 12px;
	min-width: 1000px;
}

.btn-genzo {
	background: #1f2937 !important;
}

.btn-genzo:hover {
	background: #111827 !important;
}

.genzo-table thead {
	background-color: #1f2d3d;
}

.genzo-table thead th {
	color: #ffffff;
	font-weight: bold;
}

.genzo-table tbody tr:hover {
	background-color: #f5f7fa;
}

.genzo-table td,
.genzo-table th {
	padding: 12px 16px;
}

table.genzo-table thead tr th {
	background-color: #1b2636 !important;
	color: #ffffff !important;
	font-weight: bold !important;
	border-bottom: 1px solid #1b2636 !important;
	padding: 14px 16px !important;
}

table.genzo-table thead tr {
	background-color: #1b2636 !important;
}

table.genzo-table tbody tr:hover {
	background-color: #f5f7fa !important;
}

.btn-volver {
	background: #607d8b !important;
	color: white !important;
}

.btn-limpiar {
	background: #90a4ae !important;
	color: white !important;
}

.btn-buscar {
	background: #1976d2 !important;
	color: white !important;
}

.btn-excel {
	background: #2e7d32 !important;
	color: white !important;
}

.btn-volver:hover {
	background: #546e7a !important;
}

.btn-limpiar:hover {
	background: #78909c !important;
}

.btn-buscar:hover {
	background: #1565c0 !important;
}

.btn-excel:hover {
	background: #1b5e20 !important;
}

.genzo-action-btn {
	min-width: 150px;
	text-align: center;
}

.azioni a,
.azione-dettaglio,
.azione-modifica,
.azione-elimina {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #ffffff !important;

	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
	text-decoration: none;
}

.azione-elimina {
	background-color: #b91c1c;
}

.azione-dettaglio {
	background-color: #03a9f4;
}

.azione-carico {
	background-color: #7CFC00;
}

.azione-scarico {
	background-color: #ff5252;
}

.azione-barcode {
	background-color: #673ab7;
}

.azione-modifica{
    background:#1f2937;
}

.azione-garanzia {
	background-color: #ff9800;
}

.azioni a:hover,
.azione-dettaglio:hover,
.azione-carico:hover,
.azione-scarico:hover,
.azione-garanzia:hover {
	opacity: 0.85;
}

.detail-card .filter-actions {
	padding: 0 28px 32px 28px;
	margin-top: 28px;
}

.tabla-proveedores {
	table-layout: fixed !important;
	width: 100% !important;
}

.tabla-proveedores .col-proveedor-notas {
	width: 120px !important;
	min-width: 120px !important;
	max-width: 120px !important;
}

.tabla-proveedores .nota-proveedor-truncada {
	width: 120px !important;
	max-width: 120px !important;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tabla-tarjetas {
	table-layout: fixed !important;
	width: 100% !important;
}

.tabla-tarjetas .col-tarjeta-note {
	width: 120px !important;
	min-width: 120px !important;
	max-width: 120px !important;
}

.tabla-tarjetas .nota-tarjeta-truncada {
	width: 120px !important;
	max-width: 120px !important;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}