/*=====================================
  SISTEMA FACTURADOR LEANDROUNO
  VERSION 2.1 - 102026
  ANTE CUALQUIER DUDA COMUNIQUESE :
  WHATSAPP 1155016504
  SISTEMAS@LEANDROUNO.COM.AR
  PROHIBIDA SU VENTA TOTAL O PARCIAL 
  SIN CONSENTIMIENTO DEL PROGRAMADOR
 ======================================*/

/*=============================================
PANEL LATERAL
=============================================*/

.layout-fixed .main-sidebar {
	display: flex;
	flex-direction: column;
}
.layout-fixed .main-sidebar .brand-link {
	flex-shrink: 0;
}
.layout-fixed .main-sidebar .sidebar {
	flex: 1;
	min-height: 0;
	height: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
}
.main-sidebar .sidebar::-webkit-scrollbar {
	width: 6px;
}
.main-sidebar .sidebar::-webkit-scrollbar-track {
	background: transparent;
}
.main-sidebar .sidebar::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 8px;
}
.main-sidebar .sidebar:hover::-webkit-scrollbar-thumb, .main-sidebar .sidebar:focus-within::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .35);
}
.main-sidebar .sidebar::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}
@supports not selector(::-webkit-scrollbar) {
	.main-sidebar .sidebar {
		scrollbar-width: thin;
		scrollbar-color: transparent transparent;
	}
	.main-sidebar .sidebar:hover, .main-sidebar .sidebar:focus-within {
		scrollbar-color: rgba(255, 255, 255, .35) transparent;
	}
}
@media (forced-colors: active) {
	.main-sidebar .sidebar {
		scrollbar-color: auto;
	}
}
.boton-salir {
	border: 0;
	width: 100%;
	text-align: left;
	background: transparent;
}
.perfil-foto {
	max-width: 780px;
}
.editor-foto {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
}
.vista-foto {
	width: 230px;
	max-width: 100%;
	flex-shrink: 0;
}
.vista-foto canvas {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 3px solid #dbe5f5;
	background: #f0f4fa;
	cursor: grab;
	touch-action: none;
}
.controles-foto {
	flex: 1 1 200px;
	min-width: 0;
}
.controles-foto label, .controles-foto small {
	display: block;
}
.foto-listado {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}
/*=============================================
TARJETAS Y TABLAS
=============================================*/

.card-header {
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.dataTables_length select {
	min-width: 68px;
}
/*=============================================
ENCABEZADOS
=============================================*/

.encabezado-pagina {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.encabezado-pagina h1 {
	font-size: 1.65rem;
	font-weight: 700;
	margin: 0;
}
.encabezado-pagina p {
	color: #687386;
	margin: 6px 0 0;
}
/*=============================================
RESUMEN DE FACTURACION
=============================================*/

.resumen-facturacion {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}
.resumen-facturacion .card {
	margin: 0;
}
.resumen-facturacion small {
	display: block;
	color: #687386;
	margin-bottom: 12px;
}
.resumen-facturacion strong {
	display: block;
	font-size: 1.5rem;
}
/*=============================================
FILTROS DEL LISTADO
=============================================*/

.filtros-facturacion {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: end;
}
.filtros-facturacion .form-group {
	flex: 1 1 150px;
	margin: 0;
}
/*=============================================
DETALLE DE LA FACTURA
=============================================*/

.tabla-items {
	min-width: 780px;
}
.tabla-items .descripcion {
	min-width: 240px;
}
.tabla-items .cantidad,
.tabla-items .unitario {
	min-width: 110px;
}
.tabla-items .importe-fila {
	white-space: nowrap;
	text-align: right;
}
/*=============================================
TOTALES DE LA FACTURA
=============================================*/

.totales-factura {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 30px;
	margin: 22px 0;
}
.totales-factura small {
	display: block;
	color: #687386;
}
.totales-factura strong {
	font-size: 1.3rem;
}
.tabla-permisos input {
	width: 20px;
	height: 20px;
}
.sin-registros {
	padding: 36px;
	text-align: center;
	color: #687386;
}
.borrador-estado {
	color: #687386;
	font-size: 0.85rem;
}
.form-control:focus {
	border-color: #86aef6;
}
/*=============================================
CLIENTES Y MOVIMIENTOS POR DIA
=============================================*/

.lista-ranking {
	list-style: none;
	padding: 0;
	margin: 0;
}
.lista-ranking li {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 12px 0;
	border-bottom: 1px solid #e2e7ee;
}
.grafico-dia {
	display: grid;
	grid-template-columns: 85px 1fr 120px;
	align-items: center;
	gap: 14px;
	margin: 14px 0;
}
.barra-dia {
	background: #dbeafe;
	border-radius: 5px;
	min-height: 12px;
}
.tabla-comprobantes td {
	vertical-align: middle;
}
/*=============================================
ADAPTACION A PANTALLAS PEQUENAS
=============================================*/

@media (max-width: 900px) {
	.resumen-facturacion {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 575px) {
	.encabezado-pagina {
		align-items: flex-start;
		flex-direction: column;
	}
	.resumen-facturacion {
		gap: 10px;
	}
	.resumen-facturacion strong {
		font-size: 1.05rem;
	}
	.grafico-dia {
		grid-template-columns: 70px 1fr 100px;
		font-size: 0.8rem;
	}
}
