:root {
  --primary-color:#4c4c4c;    
  --accent-color: #d4edda;    
  --secondary-color: #FFEEDB;   /* Fondo cálido */
  --bg-color: white;          /* Beige claro general */
  --text-color: #3A3A3A;
  --gray-light: #ddd;
}

/* ===== General ===== */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contenido-principal {
    flex: 1;
}


body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.container {
  padding: 2rem 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
  background-color: var(--primary-color);
  /*border-bottom: 2px solid var(--accent-color);*/
}

.navbar-brand img {
  max-height: 40px;
  border-radius: 6px;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

nav.custom-navbar a.nav-link {
  color: rgb(255, 255, 255) !important;
}

nav.custom-navbar a.nav-link:hover,
nav.custom-navbar a.nav-link:focus {
  color: white !important;
}

.dropdown-menu {
  background-color: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
}

.dropdown-item {
  color: var(--text-color);
  font-size: 12px;
}

.dropdown-item:hover {
  background-color: #ddd;
  color: white;
}

/* ===== Títulos ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.4rem;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

/* ===== Botones ===== */
.btn-custom {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-nuevo {
  background-color: var(--accent-color);
  color: rgb(0, 0, 0);
}

.btn-nuevo:hover {
  background-color: #82bba1;
}


.btn-editar {
  background-color: #ffeaab;
  color: rgb(0, 0, 0);
}

.btn-editar:hover {
  background-color: #f5d165;
}

.btn-volver {
  background-color: #e0e0e0;
  color: var(--text-color);
}

.btn-volver:hover {
  background-color: #cfcfcf;
}

.btn-cancelar {
  background-color: #f8d7da;
  color: #721c24;
}

.btn-cancelar:hover {
  background-color: #f1b0b7;
}

.btn-aceptar {
  background-color: #d4edda;
  color: #155724;
}

.btn-aceptar:hover {
  background-color: #c3e6cb;
}


.btn-eliminar {
  background-color: #ff8d98;
  color: #ffffff;
}

.btn-eliminar:hover {
  background-color: #ff95a0;
}

.btn-custom{
  text-decoration: none !important;
}

.btn-refrescar {
    background-color: #b4d6ff;
    color: #003366; /* azul oscuro para contraste */
   
}

.btn-refrescar:hover {
    background-color: #a1caff;
}

/* ===== Tablas ===== */
.table-flat {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background-color: white;
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.table-flat thead {
  background-color: var(--primary-color);
  color: rgb(255, 255, 255);
}

.table-flat th, .table-flat td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--gray-light);
}

.table-flat tbody tr:hover {
  background-color: #fdf5ec;
}

/* ===== Listas tipo panel ===== */
.list-panel {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.list-panel li {
  background: white;
  margin-bottom: 10px;
  padding: 16px;
  border-left: 5px solid var(--accent-color);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: background 0.3s;
}

.list-panel li:hover {
  background: #fff4e5;
}

/* ===== Etiquetas ===== */
.tag {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
}

.tag.suspendida {
  background-color: #e57373;
}


/* ===== Footer ===== */


.footer-custom {
    background-color: #e9f1f7;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 1rem;  /* ← margen vertical y horizontal */
    line-height: 1.3;
    text-align: center;
}



/* Estilo pastel para navbar */
.custom-navbar {
  background-color: var(--primary-color); /* Azul pastel */
  /*border-bottom: 2px solid var(--accent-color);*/
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-navbar .nav-link {
  color: white !important;
}

.custom-navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

.section-title-bar {
  font-size: 1.1rem;
  font-weight: 400;
  color: #111;
  background-color: #e9f1f7;
  padding-left: 2rem;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.contenido-principal {
  max-width: 100%;        /* Usar todo el ancho disponible */
  padding-left: 2rem;     /* Separación del borde izquierdo */
  padding-right: 2rem;    /* Separación del borde derecho si lo necesitás */
}

.bloque-detalle {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.8rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  align-items: center;
  /*padding-left: 1rem;*/
}

.bloque-detalle strong {
  font-weight: 600;
  color: var(--text-color, #333);
}

.bloque-detalle .dato {
  color: #444;
}

#perfilDropdown {
  font-weight: 500;  
  color: #d4edda !important;
  font-size: 18px;
}
#perfilDropdown:hover {
  color: white;
}


/* ===== Formularios ===== */
.form-wrapper {
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  /*padding: 1rem;*/
  text-align: left !important;
}

.form-wrapper-full {
  max-width: 100% !important;
}

.form-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.form-grid label {
  min-width: 180px;
  max-width: 180px;
  display: block;
  /*font-weight: bold;*/
  text-align: left;
  color: var(--text-color);
  font-size:15px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  padding: 8px 4px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--accent-color);
  outline: none;
}

label.required::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.text-danger {
  color: red;
  /* font-size: 0.85rem; */
}

.form-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.2rem;
}


.form-fullwidth {
  grid-column: 1 / -1;
}

.input-medium {
  max-width: 350px;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    cursor: default;
    padding-left: 20px !important;
    padding-right: 5px;
}

.fixed-message {
  position: fixed;
  top: 56px; /* o la altura real de tu navbar */
  left: 0;
  width: 100%;
  z-index: 1055;
}

/*Por login*/

.absolute-message {
  position: fixed;
  top: 0; /* arriba del todo */
  left: 0;
  width: 100%;
  z-index: 1055;
}

ul.messagelist {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.messagelist li {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  border-bottom: 1px solid #ccc;
}

ul.messagelist li.success {
  background: #dfd; /* similar al admin */
}

ul.messagelist li.error {
  background: #ffc8c8;
}

ul.messagelist li.warning {
  background: #eaa86b;
}

ul.messagelist li.info {
  background: #7dacda;
}

.close-message {
  background: none;
  border: none;
  font-size: 15px;
  
  color: #000000;
  float: right;
  cursor: pointer;
}

.messagelist li {
  position: relative;
  transition: opacity 0.5s ease-out;
}


/* .select2-container--default .select2-selection--multiple .select2-selection__choice {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  vertical-align: middle !important;
  display: inline-flex;
  align-items: center;
  height: auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 0.25rem;
  font-weight: bold;
} */

.card-body {
  padding: 10px !important;
}

.card-body p {
  margin-bottom: 10px;
}


.tr-pendiente {
  background-color: #fff3cd;  /* amarillo suave */
}
.tr-cerrado {
  background-color: #d4edda;  /* verde suave */
}

.tr-en-proceso {
  background-color: #cce5ff; /* Azul claro */
}



.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    width: 20px;
}

.form-filtros .form-group input[type="number"] {    
    max-width: 80px; /* opcional, para limitar el tamaño */
}


.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background-color: #f5f5f5 !important;
}
