body#Fondo{ background-image:url("../img/fondoverde.jpg"); background-repeat:no-repeat; background-position:center; background-size:cover; padding:10px;}
body{
	font-family: 'Roboto Condensed', sans-serif;
}

h1{
  text-shadow: 2px 2px 2px #aaa;
}


h4{
  text-shadow: 1px 1px 1px #aaa;
}

table {
	font-family: 'Inconsolata', monospace;
}
::-webkit-scrollbar {
    display: none;
}

.form-heading { color:#fff; font-size:23px;}

.card h2{ color:#444444; font-size:18px; margin:0 0 8px 0;}
.card p { color:#777777; font-size:14px; margin-bottom:30px; line-height:24px;}

/* Solo aplica márgenes en los inputs del uploader, no en el login */
.ajax-file-upload-statusbar .form-control {
  margin-top: 3px;
  margin-bottom: 5px;
}

.login-form .form-control {
  background: #f7f7f7 none repeat scroll 0 0;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  font-size: 14px;
  height: 50px;
  line-height: 50px;
}
.main-div {
  background: #ffffff none repeat scroll 0 0;
  border-radius: 2px;
  margin: 10px auto 30px;
 /* max-width: 38%;
  padding: 50px 70px 70px 71px;*/
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.main-div-width {
  background: #ffffff none repeat scroll 0 0;
  border-radius: 2px;
  margin: 10px auto 30px;
  /*max-width: 90%;*/
  padding: 50px 70px 70px 71px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* ==========================================================================
   ESTILO BASE (Tu código original modificado con border-box)
   ========================================================================== */
.main-div-width-Principal {
  background: #ffffff none repeat scroll 0 0;
  border-radius: 10px;
  margin: 10px auto 30px;
  max-width: 95%;
  min-height: calc(100vh - 40px); /* Ocupar casi todo el alto restando los márgenes */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  
  /* Agregamos esto para que el padding no rompa el ancho en pantallas chicas */
  box-sizing: border-box; 
}

/* ==========================================================================
   MEDIA QUERIES (La estructura que te pasaron)
   ========================================================================== */

/* 📱 Mobile devices (Smartphones) */
@media (max-width: 480px) {
  .main-div-width-Principal {
    padding: 20px 15px;    /* Padding pequeño para que entre el texto en el celular */
    margin: 10px auto;     /* Menos espacio arriba y abajo */
    max-width: 95%;        /* Aprovechamos más el ancho de la pantalla */
  }
}

/* 🧱 Tablets and iPads */
@media (min-width: 481px) and (max-width: 768px) {
  .main-div-width-Principal {
    padding: 35px 40px;    /* Un punto medio cómodo para tablets */
    max-width: 90%;
  }
}

/* 💻 Laptops and Small Desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-div-width-Principal {
    padding: 40px 50px;    /* Ya casi el tamaño completo */
  }
}

/* 🖥️ Large Desktops and Monitors */
@media (min-width: 1025px) {
  .main-div-width-Principal {
    padding: 50px 70px 70px 71px; /* Tus valores originales lujosos para pantallas grandes */
    width: 1300px;                 /* Lo hacemos más ancho, hasta 1300px */
  }
}

@media screen and (min-width: 480px) {
  .main-div {
    width: calc(100% - 80px);
    font-size: 9px;
  }
}

.login-form .mb-3 {
  margin-bottom: 10px !important;
}
.login-form{ text-align:center;}
.forgot a {
  color: #777777;
  font-size: 14px;
  text-decoration: underline;
}
.login-form  .btn.btn-primary {
  background: #f0ad4e none repeat scroll 0 0;
  border-color: #f0ad4e;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  height: 50px;
  line-height: 50px;
  padding: 0;
}
.forgot {
  text-align: left; margin-bottom:30px;
}
.botto-text {
  color: #ffffff;
  font-size: 14px;
  margin: auto;
}
.login-form .btn.btn-primary.reset {
  background: #ff9900 none repeat scroll 0 0;
}
.back { text-align: left; margin-top:10px;}
.back a {color: #444444; font-size: 13px;text-decoration: none;}

.btn-flotante-usuario {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
       box-shadow: 0 2px 5px rgb(60, 87, 55) !important;
     transition: outline 0.3s ease, outline-offset 0.3s ease;
}

.btn-flotante-usuario:hover {

  outline: 4px solid #ffffff;
  

  outline-offset: 2px; 
}

.desenfoque{
	filter: blur(2px);
}

.ajax-file-upload-statusbar
{
	width: 100%;
}

.sombra{
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button{
  box-shadow: 3px 3px 10px rgba(0,0,0,0.6) !important;
}

/* Ícono del ojo en el campo contraseña del login */
body#LoginForm .input-group-addon {
  padding: 0 10px;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background-color: #fff;
  transition: border-color 0.15s;
}

/* Borde de foco que envuelve input + ojo juntos */
body#LoginForm .input-group:focus-within #inputPassword {
  box-shadow: none !important;
  border-color: #86b7fe;
}
body#LoginForm .input-group:focus-within .input-group-addon {
  border-color: #86b7fe;
}
body#LoginForm .input-group:focus-within {
  border-radius: 4px;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}
/* Eliminado margin-bottom forzado en input para que no pise el <hr> */
.dataTables_wrapper .dataTables_filter input {
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
}


.display {
  width: 100%;
  overflow-x:auto;
}

.AdminMenu {
  font-size: 90px; cursor: pointer;
}

.pointer {
  cursor: pointer;
}

#contextMenu {
  position: absolute;
  display:none;
}
.btn-secondary {
  box-shadow: none !important;
  background: transparent;
  color: hsl(0, 0%, 30%);           /* Cyan/turquesa */
  border: 2px solid hsl(0, 0%, 30%);
  border-radius: 8px;        /* Bordes redondeados */
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;          /* Sin sombra */
  outline: none;

}
.btn-primary{
  box-shadow: none !important;
  background: transparent;
  color: #00bcd4;           /* Cyan/turquesa */
  border: 2px solid #00bcd4;
  border-radius: 8px;        /* Bordes redondeados */
  padding: 4px 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;          /* Sin sombra */
  outline: none;
}
.offcanvas{
  margin-top: 40px;
  margin-left: 40px;
  height: fit-content !important;  /* Se adapta al contenido automáticamente */
  max-height: calc(100vh - 60px);  /* Nunca supera la pantalla */
  border-radius: 10px !important;
  overflow-y: auto;                /* Scroll si el contenido es muy largo */
  border: 1px solid !important;
  border-color: #052e33;
}
.offcanvas-header{
  border-radius: 8px 8px 0px 0px;
}
.btn-outline-success{
  box-shadow: none !important;
}
.btn-outline-danger{
  box-shadow: none !important;
}

.form-select{
  margin-bottom: 2px;
  margin-top: 2px;
}

/* Estilos para el File Uploader */
.ajax-upload-dragdrop {
    border-radius: 12px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    text-align: center !important;
    justify-content: center !important;
}

.ajax-file-upload {
  margin-top: 11px !important;
    border-radius: 8px !important;
    background-color: #f0ad4e !important;
    padding: 10px !important;
    height: 40px !important;
    box-shadow: none !important;
    
}

/* Nuevo Diseño Login */
body#LoginForm {
    background-color: #4b554e;
    background-image: none;
    position: relative;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

body#LoginForm::before {
    content: "IAFAS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.login-container {
    z-index: 1;
    position: relative;
    width: 100%;
}

.main-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: none;
    font-family: 'Roboto', sans-serif;
}

.sub-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.login-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}



.login-input::placeholder {
    color: #a0a0a0;
}

body#LoginForm .input-group-addon {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    cursor: pointer;
}

#inputPassword {
    border-right: none !important;
}

.btn-login {
    background-color: #218838 !important; /* Green button */
    border-color: #218838 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    height: 45px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
}

.btn-login:hover {
    background-color: #1e7e34 !important;
    border-color: #1c7430 !important;
}

.forgot-link {
    color: #999999;
    font-size: 10px;
    text-decoration: none;
    display: block;
    margin-top: 15px;
    text-transform: uppercase;
}

.forgot-link b {
    color: #555555;
}

.forgot-link:hover {
    text-decoration: none;
    color: #333333;
}

.version-text {
    color: #cccccc;
    font-size: 10px;
    text-align: right;
    margin-top: 10px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.btn-refresh-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #004085;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 100;
    text-decoration: none;
}
.btn-refresh-bottom:hover {
    background-color: #f8f9fa;
    color: #002752;
}
.modal-header .btn-close{
  background-color: #03641a67 !important;
  color:#999999 !important;
  box-shadow: none !important;
  opacity: 0.8 !important;
}

.btn-close.btn-sm {
  padding: 0.5rem !important;
  font-size: 0.75rem !important;
}

@media (min-width: 768px) {
    .login-container .row {
        gap: 20px;
    }
    .main-title {
        font-size: 3rem;
    }
    .sub-title {
        font-size: 1.2rem;
    }
    .login-card {
        margin: 0;
    }
    .version-text {
        text-align: right;
        margin-right: 0;
    }
}

#DetalleModal .modal-header {
    background-color: #CDE0B6 !important; 
    color: #0c0c0cbe !important; 
}

.btn-outline-secondary{
 box-shadow: none !important;
 transition: all 0.2s ease
}
.btn-outline-secondary:active, 
.btn-outline-secondary:focus:active,
.btn-outline-secondary.active {
  background-color: #5a6268 !important; /* Un gris más oscuro */
  color: #fff !important;
  border-color: #545b62 !important;
  transform: scale(0.95) !important; /* El efecto de achicarse un poco */
  box-shadow: none !important;
}

/* Reducir el tamaño del botón de cerrar en las alertas flotantes */
.alert-dismissible .btn-close {
  padding: 0.5rem !important;
  width: 0.5em !important;
  height: 0.5em !important;
  background-color: #03641a67 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 15px !important;
}

/* Controles de DataTables (buscador + selector de filas) en fondo gris clarito */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  padding: 8px 14px;
}

/* Contenedor de ambos controles juntos */
.dataTables_wrapper > div:first-child {
  border-radius: 6px;
  padding: 6px 4px;
  margin-bottom: 14px !important;
}

/* ── Uploader: rediseño del cuadro de estado ── */

/* Ocultar el statusbar cuando el JS lo vacía con .html('') */
.ajax-file-upload-statusbar:empty {
  display: none !important;
}

/* La caja completa de cada archivo */
.ajax-file-upload-statusbar {
  width: 100%;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Nombre del archivo */
.ajax-file-upload-filename {
  width: auto !important;
  font-weight: 600;
  font-size: 0.9rem;
  color: #212529;
  word-break: break-all;
  margin-bottom: 4px;
  display: block;
}

/* Texto de aviso de error / advertencia */
.ajax-file-upload-message {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  margin: 8px 0;
  display: inline-block;
}

/* Botones dentro del statusbar (Aceptar, Cancelar, etc.) */
.ajax-file-upload-statusbar .ajax-file-upload-button {
  background-color: #198754 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 5px 16px !important;
  font-size: 0.85rem !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.18s;
}
.ajax-file-upload-statusbar .ajax-file-upload-button:hover {
  background-color: #157347 !important;
}

/* Barra de progreso */
.ajax-file-upload-progressbar {
  height: 8px !important;
  border-radius: 8px !important;
  overflow: hidden;
  background-color: #e9ecef !important;
  margin-top: 10px;
}
.ajax-file-upload-progressbar > div {
  border-radius: 8px !important;
  background-color: #198754 !important;
  transition: width 0.3s ease;
}


#btnGrabar{
  margin-top: 10px !important;
  margin-right: 10px !important;
}
#btnCancelar{
  margin-top: 10px !important;
}

.login-input {
    height: 45px !important;
    font-size: 14px !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Campo contraseña: sin borde derecho para unirse al ojo */
#inputPassword {
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
}

/* Eliminar el fondo amarillo del autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #212529 !important;
}