﻿html, body, h1, h2, h3, h4, h5 {
    font-family: "Inter", sans-serif
}

.loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
}

.loader {
    left: 50%;
    margin-left: -4em;
    font-size: 10px;
    border: .8em solid rgba(218, 219, 223, 1);
    border-left: .8em solid rgba(58, 166, 165, 1);
    animation: spin 1.1s infinite linear;
}

.loader, .loader:after {
    border-radius: 50%;
    width: 8em;
    height: 8em;
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -4.05em;
}

@keyframes spin {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Style the list */
ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    /*background-color: #eee;*/
}

/* Display list items side by side */
ul.breadcrumb li {
    display: inline;
    font-size: 18px;
}

/* Add a slash symbol (/) before/behind each list item */
ul.breadcrumb li + li:before {
    padding: 8px;
    color: black;
    content: "/\00a0";
}

/* Add a color to all links inside the list */
ul.breadcrumb li a {
    color: #0275d8;
    text-decoration: none;
}

/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
}

.isa_info, .isa_success, .isa_warning, .isa_error {
    margin: 10px 0px;
    padding: 12px;
}

.isa_info {
    color: #00529B;
    background-color: #BDE5F8;
}

.isa_success {
    color: #4F8A10;
    background-color: #DFF2BF;
}

.isa_warning {
    color: #9F6000;
    background-color: #FEEFB3;
}

.isa_error {
    color: #D8000C;
    background-color: #FFD2D2;
}

.isa_info i, .isa_success i, .isa_warning i, .isa_error i {
    margin: 10px 22px;
    font-size: 2em;
    vertical-align: middle;
}

/* Popup container - can be anything you want */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 2s;
  animation: fadeIn 2s;
}

.w3-success {
    background-color: #10ca93 !important;
}

.w3-back {
    background-color: #ebeef6;
}

.w3-equal {
    background-color: #3a7afe;
}

.w3-detour {
    background-color: #f25767;
}

.w3-successtext {
    color: #10ca93 !important;
}

.w3-equaltext {
    color: #3a7afe;
}

.w3-detourtext {
    color: #f25767;
}
 
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

.w3-miga {
	font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
	text-decoration: none;
}

a:hover {
  color: #3a7afe;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.w3-round-down {
	border-radius: 0 0 5px 5px;
}

.w3-round-up {
	border-radius: 5px 5px 0 0;
}

.w3-muhle-text-24 {
	font-size: 24px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-16 {
	font-size: 16px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-15 {
	font-size: 15px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-14 {
	font-size: 14px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-13 {
	font-size: 13px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-12 {
	font-size: 12px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-11 {
	font-size: 11px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-10 {
	font-size: 10px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-9 {
	font-size: 9px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-8 {
	font-size: 8px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-text-estado {
	font-size: 10px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
}

.w3-muhle-text {
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
}

.w3-muhle-form {
	font-size: 14px;
	line-height: 1.2;
	font-family: "Inter", sans-serif;
	color: #3d4465;
	min-height: 400px;
}

.w3-muhle-side-column {
	width:30%;
}

.w3-muhle-main-column {
	width:70%;
}

.w3-muhle-color {
	color:#fff!important;
	background-color:#1a2b6d!important
}

.w3-muhle-hover-color:hover {
	color:#fff!important;
	background-color:#005596!important
}

.w3-muhle-topbar {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.w3-muhle-logo-container {
	padding: 8px;
	height: 60px;
}

.w3-muhle-logo {
	height:40px;
}

.w3-muhle-topbar-button {
	height: 60px;
}

.w3-muhle-topbar-profile {
	width: 130px;
	text-align: left !important;
}

.w3-muhle-avatar {
	width:40px;
}


#muhlePopup {
	position: fixed;
	transition: 0.5s;
	text-decoration: none;
	font-size: 14px;
	color: white;
	z-index:1;
	margin-bottom: 15px;
	padding: 20px;
}

#muhlePopupMessage {
	color: white;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

.w3-border-muhle,.w3-hover-border-muhle:hover{
	border-color:#005596!important
}


/*   NUEVOS ESTILOS APORTADOS POR GUS    */

/* Muhle App Sidebar */
.muhle-app-sidebar {
  height: calc(100vh - 60px);
  width: 4rem;
  background: #fff;
  border-right: 1px solid rgb(226 232 240);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  position: fixed;
  z-index: 30;
}

/* Items */
.sidebar-item {
  position: relative;
}

/* Links */
.sidebar-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: rgb(148 163 184);
  text-decoration: none;
}

.sidebar-link img {
  width: 20px;
  height: 20px;
}

/* Hover */
.sidebar-link:hover {
  background: rgb(241 245 249);
  color: #1a2b6d;
}

/* Activo */
.sidebar-link.active {
  background: #1a2b6d;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
              0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Tooltip */
.sidebar-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgb(30 41 59);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
              0 4px 6px -4px rgb(0 0 0 / 0.1);
  z-index: 50;
}

/* Flechita */
.sidebar-tooltip::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgb(30 41 59);
}

/* Mostrar tooltip */
.sidebar-item:hover .sidebar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}
/* Iconos base (negros → gris slate-400) */
.sidebar-link img {
  width: 20px;
  height: 20px;
  transition: filter 0.2s ease;
  filter: invert(63%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(90%);
  margin: 0;
}

/* Hover → azul #1a2b6d */
.sidebar-link:hover img {
  filter: invert(17%) sepia(29%) saturate(1745%) hue-rotate(209deg) brightness(94%) contrast(95%);
}

/* Activo → blanco */
.sidebar-link.active img {
  filter: brightness(0) invert(1);
}


/* Muhle App Header */
  .muhle-app-header{
    height: 4rem;                /* h-16 */
    background:#fff;             /* bg-white */
    border-bottom:1px solid rgb(226 232 240); /* border-b border-slate-200 */
    display:flex;                /* flex */
    align-items:center;          /* items-center */
    justify-content:space-between; /* justify-between */
    padding:0 1.5rem;            /* px-6 */
    box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    position:fixed;              /* fixed */
    z-index:60;                  /* z-[60] */
    width: 100%;
    top: 0;
    left: 0;
  }

  .muhle-app-header__left{
    display:flex;
    align-items:center;
    gap:.5rem; /* gap-2 */
  }

  .muhle-app-header__logo img{
    height:2rem; /* h-8 */
    width:auto;  /* w-auto */
    display:block;
    max-width: 100%;
  }

  .muhle-app-header__right{
    display:flex;
    align-items:center;
    gap:1.5rem; /* gap-6 */
  }

  /* Reset mínimo para botones/links dentro del header */
  .muhle-app-header button{
    appearance:none;
    background:transparent;
    border:0;
    padding:0.375rem 0.75rem;
    margin:0;
    font:inherit;
    color:inherit;
    cursor:pointer;
  }

  /* User pill */
  .muhle-app-header__user{
    display:flex;
    align-items:center;
    gap:.75rem;                  /* gap-3 */
    background:rgb(248 250 252);  /* bg-slate-50 */
    padding:.375rem .75rem;       /* px-3 py-1.5 */
    border-radius:9999px;         /* rounded-full */
    transition:background-color .15s cubic-bezier(.4,0,.2,1);
  }
  .muhle-app-header__user:hover{
    background:rgb(241 245 249);  /* hover:bg-slate-100 */
  }

  .muhle-app-header__avatar{
    width:2rem; height:2rem;      /* w-8 h-8 */
    border-radius:9999px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgb(37 99 235);         /* text-blue-600 */
    background:rgb(219 234 254);  /* bg-blue-100 */
    transition:background-color .15s cubic-bezier(.4,0,.2,1);
  }
  .muhle-app-header__user:hover .muhle-app-header__avatar{
    background:rgb(191 219 254);  /* group-hover:bg-blue-200 */
  }

  .muhle-app-header__avatar img{
    width:18px;
    height:18px;
    display:block;
    /* iconos negros -> azul */
    filter: invert(22%) sepia(77%) saturate(2470%) hue-rotate(206deg) brightness(95%) contrast(96%);
  }

  .muhle-app-header__hello{
    font-family: 'Inter', sans-serif;
    font-size:.875rem;            /* text-sm */
    line-height:1.25rem;
    text-align:left;
  }
  .muhle-app-header__hello .muted{
    color:rgb(148 163 184);       /* text-slate-400 */
    line-height:1;               /* leading-none */
  }
  .muhle-app-header__hello .name{
    color:rgb(26 43 109);         /* text-[#1a2b6d] */
    font-weight:600;              /* font-semibold */
  }

  /* Icon buttons */
  .muhle-app-header__icon-btn{
    position:relative;
    padding:.5rem;                /* p-2 */
    border-radius:9999px;         /* rounded-full */
    color:rgb(148 163 184);       /* text-slate-400 */
    transition:all .15s cubic-bezier(.4,0,.2,1); /* transition-all */
  }
  .muhle-app-header__icon-btn:hover{
    background:rgb(248 250 252);  /* hover:bg-slate-50 */
  }
  .muhle-app-header__icon-btn--bell:hover{
    color:rgb(71 85 105);         /* hover:text-slate-600 */
  }
  .muhle-app-header__icon-btn--logout:hover{
    color:rgb(239 68 68);         /* hover:text-red-500 */
  }
  .muhle-app-header__icon-btn:active{
    transform:scale(.9);          /* active:scale-90 */
  }

  .muhle-app-header__icon-btn img{
    width:22px;
    height:22px;
    display:block;
    /* iconos negros -> slate-400 */
    filter: invert(63%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(90%);
    transition:filter .15s cubic-bezier(.4,0,.2,1);
  }
  .muhle-app-header__icon-btn--bell:hover img{
    /* a slate-600 aprox */
    filter: invert(34%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(85%) contrast(95%);
  }
  .muhle-app-header__icon-btn--logout:hover img{
    /* rojo */
    filter: invert(35%) sepia(85%) saturate(3122%) hue-rotate(342deg) brightness(101%) contrast(92%);
  }

  /* Notification dot */
  .muhle-app-header__dot{
    position:absolute;
    top:.3rem; right:.8rem;       /* top-2 right-2 */
    width:.365rem; height:.365rem;/* w-2.5 h-2.5 */
    background:rgb(239 68 68);    /* bg-red-500 */
    border-radius:9999px;
    border:2px solid #fff;        /* border-2 border-white */
  }
  
  
 /* Footer */
  .site-footer {
  margin-top: 30px;                         /* mt-auto */
  padding: 1.5rem 36px 1.5rem 84px;         /* py-6 */
  display: flex;                            /* flex */
  flex-direction: column;                   /* flex-col */
  justify-content: space-between;           /* justify-between */
  align-items: center;                      /* items-center */
  font-size: 0.90rem;                       /* text-xs */
  line-height: 1rem;
  color: rgb(148 163 184);                  /* text-slate-400 */
  border-top: 1px solid rgb(241 245 249);   /* border-t border-slate-100 */
  box-sizing: border-box;
}

/* Links container */
.site-footer__links {
  display: flex;
  gap: 1.5rem;                              /* gap-6 */
  margin-top: 1rem;                         /* mt-4 */
}

/* Links */
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #1a2b6d;                           /* hover:text-[#1a2b6d] */
}

/* Responsive: md:flex-row */
@media (min-width: 768px) {
  .site-footer {
    flex-direction: row;
  }

  .site-footer__links {
    margin-top: 0;
  }
}


/* Body: color fondo  */
.site-body {
  background: #f8fafc;
}


/* Nuevos estilos para los datatables armados por Gus */

table.dataTable thead th, table.dataTable thead td {
  border-bottom: 1px solid #e5e7eb;
}
table.dataTable thead .sorting .w3-muhle-text-12 {
  letter-spacing: 0.05em;
  color: #1E293B;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
}
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
  background-color: transparent;
}
table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
  background-color: #f8fafc;
}
table.dataTable tbody th, table.dataTable tbody td {
  padding: 1rem 0.75rem;
}
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
  border-top: .5px solid #e5e7eb;
}
.w3-muhle-text-12 {
  font-size: 12px;
  color: #3d4465;
}

.w3-text-black, .w3-hover-text-black:hover {
  color: #1e293b !important;
}


/* Estilos para status*/
.status {
  border-style: solid;
  border-width: 1px;
  border-color: #94a3b8;
  color: #94a3b8;
  border-radius: 0.25rem;
  display: table;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 9px;
  text-align: center;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Estilos para status con bordes*/
.status-border-success {
  color: #059669;
  border-color: #059669;
}
.status-border-warning {
  color: #fb923c;
  border-color: #fb923c;
}
.status-border-danger {
  color: #ef4444;
  border-color: #ef4444;
}

/* Estilos para status con relleno*/
.status-fill-success {
  color: #059669;
  border-color: #ecfdf5;   background: #ecfdf5;
}
.status-fill-warning {
  color: #fb923c;
  border-color: #fff7ed;   background: #fff7ed;
}
.status-fill-danger {
  color: #ef4444;
  border-color: #fef2f2;   background: #fef2f2;
}
.status-fill {
  background: #f2f3f5;
  border: #f2f3f5;
  color: #2e3849;
}

.status-center {
  margin: 0 auto;
}


/*  ESTILOS ANTERIORES  

#muhleSideBar a {
	position: fixed;
	left: -100px;
	transition: 0.3s;
	padding: 16px;
	width: 150px;
	text-decoration: none;
	text-align: right;
	font-size: 14px;
	color: white;
	border-radius: 0 5px 5px 0;
	z-index:1;
}

#muhleSideBar a:hover {
	left: 0;
}

#portal {
	top: 160px;
}

#ventas {
	top: 220px;
}

#cbtes {
	top: 280px;
}

#procesos {
	top: 340px;
}

#informes {
	top: 400px;
}

#dashboard {
	top: 460px;
}

#parametria {
	top: 520px;
}
*/
