/* =========================
   FUENTES
   ========================= */
   @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: 500;
	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');
	font-weight: 300;
	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: 400;
	font-style: normal;
	font-display: swap;
  }
  
  /* =========================
	 VARIABLES
	 ========================= */
  :root {
	--color-one: #F5F5F5;
	--color-two: #24292E;
	--color-three: #0366D6;
  
	--form-color: #14111A;
  
	--accent-color: #455A64;
	--border-color: #D8D8D8;
  
	/* Nuevas utilidades */
	--text-color: #333333;
	--text-color-inverse: #FFFFFF;
	--surface: #FFFFFF;
	--muted: #6c757d;
  
	--radius-xs: 3px;
	--radius-sm: 8px;
	--radius-lg: 16px;
  
	--shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  }
  
  /* =========================
	 BASE / RESETS
	 ========================= */
  html, body {
	width: 100%;
	min-height: 100%;
	background-color: var(--color-one);
	color: var(--text-color);
	font-size: 16px;
	font-family: 'roboto_condensed_light', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	overflow-x: hidden;
  }
  
  .full-box {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
  }
  
  /* =========================
	 FORMAS / CONTENEDORES
	 ========================= */
  .form-neon {
	border: 1px solid var(--border-color);
	background-color: var(--surface);
	padding: 15px;
	border-radius: var(--radius-xs);
  }
  
  .radio-avatar-form { padding: 30px 7px; }
  .img-avatar-form { max-width: 100px; }
  
  /* =========================
	 SCROLLBARS (WebKit)
	 ========================= */
  .scroll::-webkit-scrollbar { width: 8px; }
  .scroll::-webkit-scrollbar-thumb { background: rgba(102,107,122,1); }
  .scroll::-webkit-scrollbar-track { background: rgba(29,30,34,1); }
  
  /* =========================
	 PAGE HEADER
	 ========================= */
  .page-header { padding: 30px 20px 60px; }
  .page-header > :nth-child(1) { padding-bottom: 7px; }
  .page-header > :nth-child(2) { font-size: 18px; }
  
  /* =========================
	 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;
	display: block;
	text-align: center;
	user-select: none;
	transition: color .2s ease-in-out, border-color .2s ease-in-out;
	border-bottom: 2px solid transparent;
  }
  
  .page-nav-tabs li a.active {
	color: var(--color-three);
	pointer-events: none;
	cursor: default;
  }
  
  .page-nav-tabs li a:hover {
	text-decoration: none;
	color: var(--text-color);
	border-bottom: 2px solid var(--text-color);
  }
  
  /* =========================
	 404 PAGE
	 ========================= */
  .container-404 {
	background: linear-gradient(to right, #004e92, #000428);
	color: var(--text-color-inverse);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
  }
  
  /* =========================
	 FORM CONTROLS (Bootstrap friendly)
	 ========================= */
  .form-control[readonly] { background-color: transparent; }
  
  .form-control:focus {
	outline: none;
	border-color: #03bfd8;
	box-shadow: none; /* 0 0 0 0.2rem rgba(0,123,255,.25); */
  }
  
  .form-control:active { outline: none; }
  
  .form-control-file:active,
  .form-control-file:focus { outline: none; }
  
  /* =========================
	 TABLAS / PAGINACIÓN
	 ========================= */
  .table .btn { margin-bottom: 0; }
  .table thead th { color: var(--text-color-inverse); }
  .table tbody tr {
	color: var(--text-color);
	transition: background-color .2s ease-in-out, color .2s ease-in-out;
  }
  
  .table,
  .table-dark { background-color: var(--surface); }
  
  .table-dark {
	background-color: #1f2937;
	border: 1px solid var(--accent-color);
  }
  
  .table-dark thead tr { background-color: var(--accent-color); }
  .table-dark td,
  .table-dark th { border: none; color: var(--text-color-inverse); }
  
  .table-dark tbody tr:hover {
	color: var(--color-three);
	background-color: #2b3645;
	font-weight: 600;
  }
  
  .page-link {
	transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out;
  }
  
  .page-link:hover,
  .page-link.active {
	background-color: var(--color-three);
	color: var(--text-color-inverse);
  }
  
  table form { margin-bottom: 0; }
  
  /* =========================
	 UTILIDADES TIPOGRÁFICAS
	 ========================= */
  .roboto-medium { font-family: 'roboto_medium_regular'; }
  .roboto-condensed-light { font-family: 'roboto_condensed_light'; }
  .roboto-condensed-regular { font-family: 'roboto_condensed_regular'; }
  
  /* =========================
	 LOGIN
	 ========================= */
  .login-container {
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	font-family: 'roboto_condensed_regular';
  }
  
  .login-card {
	width: 100%;
	max-width: 380px;
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	margin: 20px;
  }
  
  .login-header {
	text-align: center;
	padding: 40px 30px 30px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: var(--text-color-inverse);
  }
  
  .login-header i {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.9;
  }
  
  .login-header h1 {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 8px 0;
	font-family: 'roboto_medium_regular';
  }
  
  .login-header p {
	font-size: 14px;
	margin: 0;
	opacity: 0.8;
  }
  
  .login-form { padding: 30px; }
  .input-group { margin-bottom: 24px; }
  
  .input-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
	font-family: 'roboto_medium_regular';
  }
  
  .input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
  }
  
  .input-wrapper i {
	position: absolute;
	left: 16px;
	color: #9ca3af;
	font-size: 16px;
	z-index: 1;
  }
  
  .input-wrapper input {
	width: 100%;
	padding: 16px 16px 16px 48px;
	border: 2px solid #e5e7eb;
	border-radius: var(--radius-sm);
	font-size: 16px;
	font-family: 'roboto_condensed_regular';
	background-color: var(--surface);
	transition: border-color .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
  }
  
  .input-wrapper input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  }
  
  .input-wrapper input:focus + i,
  .input-wrapper input:not(:placeholder-shown) + i {
	color: #4f46e5;
  }
  
  .input-wrapper input::placeholder { color: #9ca3af; }
  
  .login-btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: var(--text-color-inverse);
	border: none;
	border-radius: var(--radius-sm);
	font-size: 16px;
	font-weight: 600;
	font-family: 'roboto_medium_regular';
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
	margin-top: 8px;
  }
  
  .login-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  }
  
  .login-btn:active { transform: translateY(0); }
  .login-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(79,70,229,0.3);
  }
  
  /* Responsive login */
  @media (max-width: 480px) {
	.login-card { margin: 16px; border-radius: 12px; }
	.login-header { padding: 32px 24px 24px; }
	.login-form { padding: 24px; }
	.login-header i { font-size: 40px; }
	.login-header h1 { font-size: 22px; }
  }
  
  /* =========================
	 LAYOUT
	 ========================= */
  .main-container {
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
  }
  
  .page-content,
  .nav-lateral { height: 100%; }
  
  .page-content {
	position: relative;
	padding-left: 270px;
	padding-bottom: 20px;
	overflow: auto; /* único overflow aplicado */
  }
  
  /* Nav Lateral */
  .nav-lateral {
	width: 270px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	transition: transform .2s ease-in-out, opacity .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: rgba(36,41,46,.94); /* limpio: una sola declaración */
	overflow-y: auto;
	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 var(--surface);
	border-radius: 100%;
  }
  
  .nav-lateral-avatar figcaption {
	margin-top: 20px;
	color: var(--text-color-inverse);
  }
  
  .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: var(--text-color-inverse);
	font-size: 15px;
	box-sizing: border-box;
	padding-left: 20px;
	transition: color .2s ease-in-out, background-image .2s ease-in-out, background-color .2s ease-in-out;
  }
  
  .nav-lateral-menu ul li a.active {
	color: var(--text-color-inverse);
	background-color: var(--color-three);
  }
  
  .nav-lateral-menu ul li a:hover {
	color: var(--text-color-inverse);
	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: transform .2s ease-in-out;
  }
  
  /* Page topbar */
  .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: color .2s ease-out, background-image .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 / TILES
	 ========================= */
  .table-dashboard {
	background-color: var(--surface);
	color: var(--text-color);
  }
  
  .table-dashboard thead tr th {
	color: var(--text-color);
	font-weight: 700;
	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: var(--radius-xs);
	user-select: none;
	transition: border-color .2s ease-in-out, color .2s ease-in-out, background-color .2s ease-in-out;
	background-color: var(--surface);
  }
  
  .tile:hover { text-decoration: none; border-color: var(--color-three); }
  .tile:focus, .tile:active { outline: none; }
  
  .tile-tittle {
	margin: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	box-sizing: border-box;
	text-transform: uppercase;
	border-bottom: 1px solid var(--border-color);
	transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out;
	font-family: 'roboto_medium_regular';
  }
  
  .tile:hover .tile-tittle {
	color: var(--text-color-inverse);
	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); }
  
  /* =========================
	 PRODUCTOS
	 ========================= */
  .product-container {
	width: 100%;
	display: flex;
	flex-direction: row;
	box-sizing: border-box;
  }
  
  .product-list,
  .product-category {
	box-sizing: border-box;
	background-color: var(--surface);
	border: 1px solid #E1E1E1;
  }
  
  .product-list {
	width: calc(100% - 250px);
	padding: 20px;
  }
  
  .product-category { width: 250px; flex-grow: 0; }
  
  .product-category h5 {
	color: var(--color-three);
	padding: 15px 0;
	margin: 0;
	border-bottom: 1px solid #E1E1E1;
  }
  
  .product-category-list { width: 100%; }
  
  .product-category-list a {
	padding: 10px 0;
	border-left: 4px solid transparent;
	display: block;
	color: var(--text-color);
	position: relative;
	transition: color .2s ease-in-out, border-color .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: 700;
  }
  
  .img-product-list {
	max-width: 160px;
	max-height: 160px;
	min-width: 100px;
	min-height: 100px;
	border-right: 1px solid #E1E1E1;
	display: block;
	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: var(--surface);
	border: 1px solid #E1E1E1;
	margin-bottom: 25px;
	transition: background-color .2s ease-in-out;
  }
  
  .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 20px;
  }
  
  /* =========================
	 VENTAS
	 ========================= */
  .sale_input-cant {
	width: 40px;
	margin: 0 auto;
	padding: 0;
	text-align: center;
  }
  
  .btn-sale-options {
	padding: 0;
	width: 35px;
	height: 35px;
	line-height: 35px;
  }
  
  .btn-impresa {
	background-color: #28a745;
	border-color: #28a745;
	color: var(--text-color-inverse);
  }
  
  .btn-impresa i { color: var(--text-color-inverse); }
  
  /* =========================
	 BREAKPOINTS
	 ========================= */
  @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: transform .3s ease-in-out;
	  background-color: rgba(36,41,46,.94);
	}
  
	.nav-lateral.active .nav-lateral-content { transform: translateX(0); }
  
	.nav-lateral-avatar i {
	  height: 50px;
	  width: 50px;
	  line-height: 50px;
	  color: var(--text-color-inverse);
	  cursor: pointer;
	  font-size: 25px;
	  position: absolute;
	  top: 5px;
	  right: 0;
	  text-align: center;
	  display: block;
	  transition: color .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 { width: 100%; }
  
	/* Tabs: evita min-width rígido en móviles */
	.page-nav-tabs li a { min-width: 140px; font-size: 15px; }
  }
  
  @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; }
  }
  
  /* =========================
	 CLEAN LOGIN DESIGN (compatibilidad Bootstrap)
	 ========================= */
  .card { border-radius: var(--radius-sm) !important; }
  .input-group-text { border-color: #dee2e6; }
  
  /* Nota: ya definimos un focus coherente arriba; si usas Bootstrap,
	 esto reforzará el look consistente para controles que no son .form-control */
  .btn-primary {
	background-color: #03bfd8;
	border-color: #03bfd8;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  
  .btn-primary:hover {
	background-color: rgb(0, 143, 179);
	border-color: rgb(0, 143, 179);
  }
  
  .btn-outline-secondary {
	color: #6c757d;
	border-color: #dee2e6;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
  }
  
  .btn-outline-secondary:hover {
	color: #495057;
	background-color: #f8f9fa;
	border-color: #dee2e6;
  }
  
  @media (max-width: 576px) {
	.card-body { padding: 1.5rem !important; }
  }

  /* =========================
   COMPACT AVATAR DESIGN
   ========================= */
  .nav-lateral-avatar-compact {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-color-inverse);
    cursor: pointer;
    font-size: 20px;
    transition: color .2s ease-out;
    z-index: 10;
  }

  .nav-close-btn:hover {
    color: var(--color-three);
  }

  .avatar-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    transition: border-color .2s ease;
  }

  .avatar-img:hover {
    border-color: var(--color-three);
  }

  .avatar-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .user-name {
    color: var(--text-color-inverse);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-role {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .nav-lateral-avatar-compact {
      padding: 12px;
    }
    
    .avatar-img {
      width: 40px;
      height: 40px;
    }
    
    .user-name {
      font-size: 13px;
    }
    
    .user-role {
      font-size: 11px;
    }
  }