@font-face {
	font-family: 'roboto_medium_regular';
	src: url('../webfonts/roboto-medium-webfont.woff2') format('woff2'),
		url('../webfonts/roboto-medium-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;

}

@font-face {
	font-family: 'roboto_condensed_light';
	src: url('../webfonts/robotocondensed-light-webfont.woff2') format('woff2'),
		url('../webfonts/robotocondensed-light-webfont.woff') format('woff'),
		url('../webfonts/robotocondensed-light-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'roboto_condensed_regular';
	src: url('../webfonts/robotocondensed-regular-webfont.woff2') format('woff2'),
		url('../webfonts/robotocondensed-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;

}

:root {
	--color-one: #F5F5F5;
	--color-two: #24292E;
	--color-three: #0366D6;

	--form-color: #14111A;

	--accent-color: #455A64;
	--border-color: #D8D8D8;

	--app-radius-card: .75rem;
	--app-shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.08);
	--app-radius-pill: 999px;
}

body,
html {
	font-family: 'roboto_condensed_light';
	min-height: 100vh;
	background-color: var(--color-one);
	color: #333;
	font-size: 16px;
	overflow-x: hidden;
}

.full-box {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
}

.form-neon {
	border: 1px solid var(--border-color);
	background-color: #FFF;
	padding: 15px;
	border-radius: 3px;
}

.radio-avatar-form {
	padding: 30px 7px;
}

.img-avatar-form {
	max-width: 100px;
}

/*  Scrolls */
.scroll::-webkit-scrollbar {
	width: 8px;
}

.scroll::-webkit-scrollbar-thumb {
	background: rgba(102, 107, 122, 1);
}

.scroll::-webkit-scrollbar-thumb:active,
.scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(102, 107, 122, 1);
}

.scroll::-webkit-scrollbar-track {
	background: rgba(29, 30, 34, 1);
}

.scroll::-webkit-scrollbar-track:hover,
.scroll::-webkit-scrollbar-track:active {
	background: rgba(29, 30, 34, 1);
}

/*----------  Page headers styles  ----------*/
.page-header {
	padding: 30px 20px 60px 20px;
}

.page-header> :nth-child(1) {
	padding-bottom: 7px;
}

.page-header> :nth-child(2) {
	font-size: 18px;
}

/*----------  Page nav tabs  ----------*/
.page-nav-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.page-nav-tabs li,
.page-nav-tabs li a {
	height: 40px;
	line-height: 40px;
}

.page-nav-tabs li {
	margin: 5px 20px;
}

.page-nav-tabs li a {
	color: var(--accent-color);
	font-size: 17px;
	min-width: 200px;
	width: auto;
	display: block;
	text-align: center;
	user-select: none;
	transition: all .2s ease-in-out;
	border-bottom: 2px solid transparent;
}

.page-nav-tabs li a.active {
	color: var(--color-three);
	cursor: none;
	pointer-events: none;
}

.page-nav-tabs li a:hover {
	text-decoration: none;
	color: #333;
	border-bottom: 2px solid #333;
}

/*----------  Page 404 styles  ----------*/
.container-404 {
	background: #000428;
	background: linear-gradient(to right, #004e92, #000428);
	color: #fff;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/*----------  Edit bootstrap styles  ----------*/
.form-control[readonly] {
	background-color: transparent;
}

.form-control:focus,
.form-control:active {
	outline: none;
	box-shadow: none;
	border: none;
}

.form-control-file:active,
.form-control-file:focus {
	outline: none;
}

.table .btn {
	margin-bottom: 0;
}

.table tbody tr {
	color: #333;
	transition: all .2s ease-in-out;
}

.table-dark,
.table {
	background-color: #fff;
}

.table-dark {
	border: 1px solid var(--accent-color);
}

.table-dark thead tr {
	background-color: var(--accent-color);
}

.table-dark td,
.table-dark thead th,
.table-dark th {
	border: none;
}

.table-dark tbody tr:hover {
	color: var(--color-three);
	background-color: #F5F5F5;
	font-weight: bold;
}

.page-link {
	transition: all .2s ease-in-out;
}

.page-link:hover,
.page-link.active {
	background-color: var(--color-three);
	color: #FFF;
}

table form {
	margin-bottom: 0;
}

/*----------  Text Styles  ----------*/
.roboto-medium {
	font-family: 'roboto_medium_regular';
}

.roboto-condensed-light {
	font-family: 'roboto_condensed_light';
}

.roboto-condensed-regular {
	font-family: 'roboto_condensed_regular';
}

/*----------  login Styles  ----------*/
.login-container {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #43C6AC;
	background: -webkit-linear-gradient(to right, #191654, #43C6AC);
	background: linear-gradient(to right, #191654, #43C6AC);
}

.login-content {
	width: 95%;
	max-width: 320px;
	height: auto;
	border: 1px solid var(--border-color);
	background-color: #FFF;
	border-radius: 4px;
	padding: 15px;
	color: var(--accent-color);
}

.btn-login {
	width: 90%;
	padding: 10px 0;
	display: block;
	margin: 0 auto;
	border-radius: 3px;
	margin-top: 30px;
	background-color: transparent;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	transition: all .2s ease-out;
}

.btn-login:hover {
	background-color: var(--color-three);
	border: 1px solid var(--color-three);
	text-decoration: none;
	color: #fff;
}

.btn-login:active,
.btn-login:focus {
	outline: none;
}

/*----------  Page layout Styles  ----------*/
.main-container {
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.page-content,
.nav-lateral {
	height: 100%;
	overflow: hidden;
}

.page-content,
.nav-lateral-content {
	overflow: auto;
}

.page-content {
	position: relative;
	padding-left: 270px;
	transition: all .2s ease-in-out;
	padding-bottom: 20px;
}

/*  Nav Lateral */
.nav-lateral {
	width: 270px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	transition: all .2s ease-in-out;
	background-image: url('../assets/img/nav-font.jpg');
	background-position: center center;
	background-size: cover;
}

.nav-lateral-bg {
	display: none;
}

.nav-lateral-content {
	max-width: 270px;
	height: 100%;
	background-color: var(--color-two);
	background-color: rgba(36, 41, 46, .94);
	overflow-y: scroll;
	padding-bottom: 50px;
}

.nav-lateral-bar {
	height: 3px;
	background-color: var(--color-three);
}

.nav-lateral-avatar {
	padding: 40px 0;
}

.nav-lateral-avatar i {
	display: none;
}

.nav-lateral-avatar img {
	width: 50%;
	margin: 0 auto;
	display: block;
	border: 4px solid #FFF;
	border-radius: 100%;
}

.nav-lateral-avatar figcaption {
	margin-top: 20px;
	color: #FFF;
}

.nav-lateral-menu {
	height: auto;
}

.nav-lateral-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-lateral-menu ul li {
	width: 100%;
	height: auto;
}

.nav-lateral-menu ul li a {
	display: block;
	width: 100%;
	height: 45px;
	line-height: 45px;
	text-decoration: none;
	color: #FFF;
	font-size: 15px;
	box-sizing: border-box;
	padding-left: 20px;
	transition: all .2s ease-in-out;
}

.nav-lateral-menu ul li a.active {
	color: #FFF;
	background-color: var(--color-three);
}

.nav-lateral-menu ul li a:hover {
	color: #fff;
	background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, .1) 50%, transparent);
}

.nav-lateral-menu ul li ul {
	display: none;
	border: 1px solid var(--color-three);
	background: rgba(20, 30, 48, .5);
}

.nav-lateral-menu ul li ul a {
	padding-left: 35px;
}

.show-nav-lateral-submenu {
	display: block !important;
}

.nav-lateral-menu .fa-chevron-down,
.nav-lateral-menu .fa-chevron-up {
	float: right;
	height: 45px;
	line-height: 45px;
	margin-right: 7px;
	transition: all .2s ease-in-out;
}

/*  Page content */
.navbar-info {
	height: 50px;
	border-bottom: 1px solid var(--border-color);
	text-align: right;
	padding-right: 10px;
}

.navbar-info a {
	color: var(--accent-color);
	height: 50px;
	min-width: 40px;
	text-align: center;
	line-height: 50px;
	display: inline-block;
	transition: all .2s ease-out;
	user-select: none;
}

.navbar-info a:hover {
	color: var(--color-three);
	background-image: radial-gradient(circle, rgba(250, 30, 78, .1), transparent 80%);
}

.navbar-info a:active,
.navbar-info a:focus {
	outline: none;
}

/*----------  Home Styles  ----------*/
.table-dashboard {
	background-color: #fff;
	color: #333;
}

.table-dashboard thead tr th {
	color: #333;
	font-weight: bolder;
	text-transform: uppercase;
}

.tile-container {
	text-align: center;
	padding: 20px 25px;
}

.tile {
	height: 200px;
	width: 200px;
	margin: 10px;
	display: inline-block;
	text-decoration: none;
	color: var(--accent-color);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	user-select: none;
	transition: all .2s ease-in-out;
	background-color: #FFF;
}

.tile:hover {
	text-decoration: none;
	border-color: var(--color-three);
}

.tile:focus,
.tile:active {
	outline: none;
}

.tile-tittle {
	margin: 0;
	width: 100%;
	padding: 0;
	height: 40px;
	line-height: 40px;
	box-sizing: border-box;
	text-transform: uppercase;
	border-bottom: 1px solid var(--border-color);
	transition: all .2s ease-in-out;
	font-family: 'roboto_medium_regular';
}

.tile:hover .tile-tittle {
	color: #FFF;
	border-color: var(--color-three);
	background-color: var(--color-three);
}

.tile-icon {
	width: 100%;
	height: 160px;
	box-sizing: border-box;
	padding-top: 22px;
}

.tile-icon>i {
	font-size: 80px;
}

.tile-icon>p {
	font-family: 'roboto_medium_regular';
	height: 35px;
	line-height: 35px;
}

.tile:hover .tile-icon>i,
.tile:hover .tile-icon>p {
	color: var(--color-three);
}

/*----------  Product  ----------*/
.product-container {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
}

.product-list,
.product-category {
	box-sizing: border-box;
	background-color: #FFF;
	border: 1px solid #E1E1E1;
}

.product-list {
	width: calc(100% - 250px);
	padding: 20px;
}

.product-category {
	flex-grow: 0;
	width: 250px;
}

.product-category h5 {
	color: var(--color-three);
	padding: 15px 0;
	margin: 0;
	border-bottom: 1px solid #E1E1E1;
}

.product-category-list {
	width: 100%;
	height: auto;
}

.product-category-list a {
	padding: 10px 0;
	border-left: 4px solid transparent;
	display: block;
	color: #333;
	position: relative;
	transition: all .2s ease-in-out;
}

.product-category-list a:hover {
	text-decoration: none;
	color: var(--color-three);
	border-left: 4px solid var(--color-three);
	font-weight: bolder;
}

.img-product-list {
	width: 160px;
	height: auto;
	max-width: 100%;
	min-width: 100px;
	border-right: 1px solid #E1E1E1;
	display: block;
	margin: 0;
	padding: 0;
	margin-right: 0 !important;
	background-color: rgba(2, 133, 255, 0.05);
}

.table-product {
	width: 100%;
}

.table-product td {
	padding: 9px 0;
}

.form-product {
	display: inline-block;
	margin: 0;
}

.media-product {
	padding: 0;
	background-color: #FFF;
	border: 1px solid #E1E1E1;
	margin-bottom: 25px;
}

.media-product:hover {
	background-color: rgba(2, 133, 255, 0.05);
}

.product-media-body {
	position: relative;
}

.media-product-title {
	color: var(--color-three);
	padding: 5px;
	margin: 0;
	border-bottom: 1px solid #E1E1E1;
}

.media-product-options {
	border-top: 1px solid #E1E1E1;
}

.img-product-info {
	max-width: 200px;
	max-height: 200px;
	display: block;
	margin: 0 auto;
	margin-bottom: 20px;
}

/*----------  Sale  ----------*/
.sale_input-cant {
	width: 40px;
	margin: 0 auto;
	padding: 0;
	padding-right: 0;
	height: auto;
	text-align: center;
}

.btn-sale-options {
	padding: 0;
	width: 35px;
	height: 35px;
	line-height: 35px;
}

/*----------  Breakpoints personalizados  ----------*/
@media(max-width: 992px) {
	.nav-lateral {
		width: 100%;
		overflow: hidden;
		display: none;
		background-image: none;
	}

	.nav-lateral.active {
		display: block;
		z-index: 9999;
	}

	.nav-lateral-bg {
		width: 100%;
		height: 100%;
		background-color: rgba(3, 3, 3, .4);
		position: relative;
		display: block;
		z-index: 2;
	}

	.nav-lateral-content {
		position: absolute;
		left: 0;
		top: 0;
		z-index: 3;
		transform: translateX(-400px);
		transition: all .3s ease-in-out;
		background-color: var(--color-two);
	}

	.nav-lateral.active .nav-lateral-content {
		transform: translateX(0);
	}

	.nav-lateral-avatar i {
		height: 50px;
		width: 50px;
		line-height: 50px;
		color: #FFF;
		cursor: pointer;
		font-size: 25px;
		position: absolute;
		top: 5px;
		right: 0;
		text-align: center;
		display: block;
		transition: all .2s ease-out;
	}

	.nav-lateral-avatar i:hover {
		color: var(--color-three);
	}

	.page-content {
		padding-left: 0;
	}

	.product-container {
		flex-direction: column;
	}

	.product-list {
		padding: 15px;
		width: 100%;
	}

	.product-category {
		flex-grow: 0;
		width: 100%;
	}
}

@media(min-width: 993px) {
	.nav-lateral.active {
		transform: translateX(-400px);
	}

	.page-content.active {
		padding-left: 0;
	}
}

@media(min-width: 1200px) {
	.col-product {
		padding: 9px 0;
		text-align: center;
	}
}

/*----------  Ventas detalles  ----------*/
/* --------- Chips & Hero --------- */
.chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .6rem;
	border-radius: 999px;
	font-size: .85rem;
	border: 1px solid transparent
}

.chip i {
	font-size: .9em;
	margin-right: 0.25rem;
}

.chip-dark {
	background: #212529;
	color: #fff
}

.chip-primary {
	background: #e7f1ff;
	color: #0b5ed7;
	border-color: #cfe2ff
}

.chip-info {
	background: #e6f7ff;
	color: #0b7285;
	border-color: #c4f1ff
}

.chip-success {
	background: #e7f8ef;
	color: #146c43;
	border-color: #bce3cd
}

.chip-warning {
	background: #fff3cd;
	color: #8a6d3b;
	border-color: #ffe39b
}

.chip-muted {
	background: #f1f3f5;
	color: #495057;
	border-color: #e9ecef
}

.header-hero {
	background: linear-gradient(92deg, #0b5ed7, #5b9dff);
	color: #fff;
	border-radius: .75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.header-hero .title {
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.header-hero .subtle {
	opacity: .9;
	font-size: .85rem;
}

/* Chips cuando están dentro del hero: estilo translúcido */
.header-hero .chip {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border-color: rgba(255, 255, 255, .25);
}

/* Botón de acción dentro del chip del HERO (copiar código, etc.) */
.header-hero .chip-btn {
	width: 26px;
	height: 26px;
	padding: 0;
	margin-left: .5rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
}

.header-hero .chip-btn i {
	margin-right: 0;
	font-size: .85rem;
}

.header-hero .chip-btn:hover,
.header-hero .chip-btn:focus {
	background: rgba(255, 255, 255, .22);
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}

/* --------- Sticky actions --------- */
/* --------- Tablas --------- */
.table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	color: #fff;
}

/* Mantén el color de fondo según la clase bg-* que uses en la vista */
.table thead.bg-info th {
	background-color: #0dcaf0 !important;
}

.table thead.bg-primary th {
	background-color: #0d6efd !important;
}

.table thead.bg-success th {
	background-color: #198754 !important;
}

.table thead.bg-secondary th {
	background-color: #6c757d !important;
}

/* Fallback: si no tiene ninguna clase bg-*, entonces sí usa negro */
.table thead:not(.bg-info):not(.bg-primary):not(.bg-success):not(.bg-secondary) th {
	background: #0c0c0c;
}

.table-sm td,
.table-sm th {
	padding: .5rem .6rem
}

.table-hover tbody tr.table-danger:hover {
	filter: brightness(.98)
}

/* --------- Cards --------- */
.card-ghost {
	border: 1px solid #e9ecef;
	border-radius: .75rem
}

.card-ghost .card-header {
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
	font-weight: 600
}

/* --------- Progreso --------- */
.pay-progress {
	height: .75rem;
	border-radius: 999px;
	background: #e9ecef;
	overflow: hidden;
}

.pay-progress>div {
	height: 100%;
	background: #198754;
	transition: width .25s ease, background-color .25s ease;
}

/* --------- Utils --------- */
.btn-slim {
	padding: .35rem .6rem;
	font-size: .9rem
}

.muted {
	color: #6c757d
}

.fw-600 {
	font-weight: 600
}

.gap-2 {
	gap: .5rem
}

.gap-3 {
	gap: .75rem
}

/* =========================================================
NUEVOS PATRONES DE UI
======================================================= */

/* ---------- Títulos de página modernos ---------- */

.page-title {
	font-family: 'roboto_medium_regular';
	font-size: 1.4rem;
	margin-bottom: 1rem;
	color: var(--accent-color);
	display: flex;
	align-items: center;
	gap: .5rem;
}

.page-title i {
	font-size: 1.1rem;
	color: var(--color-three);
}

/* ---------- Cards reutilizables ---------- */

.card-app {
	border-radius: var(--app-radius-card);
	box-shadow: var(--app-shadow-soft);
	border: 0;
	background-color: #fff;
}

.card-app .card-header {
	background-color: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, .05);
	font-family: 'roboto_medium_regular';
	font-size: .95rem;
	color: var(--accent-color);
}

.card-app .card-header i {
	color: var(--color-three);
	margin-right: .35rem;
}

.card-app .card-body {
	padding: .9rem 1rem;
}

/* Tarjetas KPI para el dashboard (cifras grandes) */
.kpi-card {
	border-radius: var(--app-radius-card);
	box-shadow: var(--app-shadow-soft);
	background: #ffffff;
	padding: .9rem 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.kpi-label {
	font-size: .8rem;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: .25rem;
}

.kpi-value {
	font-size: 1.5rem;
	font-family: 'roboto_medium_regular';
	margin-bottom: .1rem;
}

.kpi-sub {
	font-size: .8rem;
	color: #9e9e9e;
}

/* ---------- Barra de herramientas para listados ---------- */

.list-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	margin-bottom: .75rem;
}

.list-toolbar .btn-group {
	flex-wrap: wrap;
}

.list-toolbar .form-inline {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: .35rem;
	margin-bottom: 0;
}

.list-toolbar .form-control {
	max-width: 260px;
}

/* Responsive toolbar */
@media (max-width: 768px) {
	.list-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.list-toolbar .form-inline {
		width: 100%;
	}

	.list-toolbar .form-control {
		flex: 1;
		max-width: none;
	}
}

/* Texto pequeño/gris dentro de tablas */
.table-meta {
	font-size: .78rem;
	color: #9e9e9e;
}

/* ---------- Badges de estado ---------- */

.badge-status-success {
	background-color: #e7f8ef;
	color: #146c43;
	border-radius: 999px;
	padding: .15rem .55rem;
	font-size: .75rem;
}

.badge-status-warning {
	background-color: #fff3cd;
	color: #8a6d3b;
	border-radius: 999px;
	padding: .15rem .55rem;
	font-size: .75rem;
}

.badge-status-danger {
	background-color: #fdecea;
	color: #c53030;
	border-radius: 999px;
	padding: .15rem .55rem;
	font-size: .75rem;
}

/* ---------- Botones ---------- */

.btn-primary {
	background-color: var(--color-three);
	border-color: var(--color-three);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: #024a9b;
	border-color: #024a9b;
}

.btn-outline-secondary {
	color: var(--accent-color);
	border-color: #cfd8dc;
}

.btn-outline-secondary:hover {
	background-color: #eceff1;
	color: var(--accent-color);
}

/* ---------- Mini mejoras de layout ---------- */

/* El contenedor principal de página gana un poquito más de aire abajo */
.page-content {
	padding-bottom: 30px;
}

/* ---------- Mini panel de acciones "sticky" (para venta o filtros) ---------- */

.sticky-actions {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: #ffffffcc;
	backdrop-filter: blur(6px);
	border: 1px solid #e9ecef;
	border-radius: .5rem;
	padding: .5rem .75rem;
	margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
	.sticky-actions {
		position: static;
		border-radius: .5rem;
		border: 1px solid #e9ecef;
		background: #fff;
		backdrop-filter: none;
	}
}

/* ---------- Utilidades varias ---------- */

.text-muted-soft {
	color: #9e9e9e;
}

.list-group-item> :first-child {
	margin-right: 0rem;
	margin-left: .2rem;
}

.list-group-item :first-child {
	margin-right: 0rem;
	margin-left: .2rem;
}
