/* === BRAND STYLES APPLIED TO SUPERVISOR PANEL === */



@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Montserrat:wght@400;500;700&display=swap');

:root {
  --fc-text:   #231F20; /* Brand black */
  --fc-blue:   #1E2A5B; /* Azul principal */
  --fc-gray:   #C1CCD1; /* Gris claro */
  --fc-orange: #FF4F00; /* Naranja acento */
  --fc-orange-hover: #d94300;
  --fc-bg:     #f7f9fa;
  --fc-white:  #ffffff;

  --fc-radius: 12px;
}


body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f0f2f5;
  color: #231F20;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

h1, h2 {
  text-align: center;
  margin: 20px 0;
  font-family: 'Michroma', sans-serif;
  color: #1E2A5B;
  text-transform: uppercase;
}

.supervisor-container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin-top: 70px;
}

/* Tarjetas */
.entry-card {
  border: 1px solid #C1CCD1;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  background: #f9f9f9;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}

.entry-card p {
  margin: 4px 0;
  font-size: 14px;
}

/* Tabla estilo Excel */
.entry-table-wrapper {
  overflow-x: auto;
  border-radius: 10px !important;
}

.entry-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  background-color: white;
  
}

.entry-table th,
.entry-table td {
  border: 1px solid #d1d1d1;
  padding: 10px 8px;
  text-align: left;
}

.entry-table th {
  background-color: #1E2A5B;
  font-weight: bold;
  color: white;
  font-family: 'Michroma', sans-serif;
}

.entry-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.entry-table tr:hover {
  background-color: #f1f3f5;
}

/* Agregado en tu CSS */
#toggleStatsBtn {
  background: none;
  border: none;
  color: #1E2A5B;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.2s;
}

#toggleStatsBtn:hover {
  color: #FF4F00;
}

#toggleStatsBtn .material-icons {
  font-size: 20px;
}


/* Botones */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.action-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
}

.action-btn.approve {
  color: #4CAF50;
}

.action-btn.reject {
  color: #FF4F00;
}

.action-btn.edit {
  color: #1E2A5B;
}

.action-btn:hover {
  transform: scale(1.2);
}

.material-button:disabled {
  opacity: .5; 
  cursor: not-allowed;
  background-color: var(--fc-gray) !important;
  border: 1px solid var(--fc-orange);
}

.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
  font-family: 'Michroma', sans-serif;
  color: #1E2A5B;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #231F20;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #C1CCD1;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1;
  margin: 0 5px;
  padding: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #FF4F00;
  color: white;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-buttons button:hover {
  background-color: #d94300;
}

.modal-buttons .material-icons {
  font-size: 18px;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px; /* m���s seguro en m���viles */
  background-color: #1E2A5B;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}


.menu-button {
  background-color: #FF4F00;
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
 
}

.menu-button:hover {
  background-color: #d94300;
}

#reportBtn, #editProfileBtn{
    margin-left:10px;
}

.flex-spacer {
  flex: 1;
}

/* Header y Filtros */
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #C1CCD1;
  padding-bottom: 10px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1E2A5B;
  font-family: 'Michroma', sans-serif;
}

#statsFilters {
  margin-bottom: 10px;
  border-bottom: 1px solid #C1CCD1;
  padding-bottom: 10px;
}

#entryFilters {
  margin-top: 10px;
}

.filters {
  align-items: flex-end; /* todos apoyados abajo */
  margin: 0;
}

/* Hace que el bot���n ��baje�� y alinee con la base de los inputs */
.filter-button-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
}


.filters label {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* texto arriba, input abajo */
}

/* Alturas consistentes en filtros */
.filters input,
.filters select {
  height: 40px;
  line-height: 40px;
  padding: 0 12px;            /* ajusta padding horizontal */
  border: 1px solid #C1CCD1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  margin: 0;
}

/* Selects suelen venir ��m���s bajos�� por estilo nativo: normalizamos */
.filters select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;        /* espacio para caret */
  margin: 0;
}


.filter-range-display {
  font-weight: 500;
  color: #1E2A5B;

}

.bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 15px;
}

.bulk-actions .material-button {
  background-color: #4CAF50;
  color: white;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor:pointer;
}

.bulk-actions .material-button:hover {
  background-color: #43a047;
}

/* Botones al mismo alto que los campos */
#applyFiltersBtn {
  height: 40px;
  padding: 0 14px;            /* vertical 0 para igualar */
  display: flex;
  align-items: center;
  gap: 6px;
}

#applyFiltersBtn {
  height: 40px;             /* igual que inputs */
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  margin: 0;
  align-self: flex-end;     /* fuerza bajar */
  box-sizing: border-box;
}

#applyFiltersBtn:hover {
  background-color: #d94300;
}


#applyStatsBtn:hover {
  background-color: #d94300;
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
  justify-content: space-between;
}

.stat-card {
  flex: 1 1 calc(25% - 16px); /* 4 por fila, con gap */
  min-width: 200px;
  background-color: #f9f9f9;
  border: 1px solid #C1CCD1;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-card h4 {
  font-size: 13px;
  color: #1E2A5B;
  font-weight: 600;
  margin: 0;
  font-family: 'Michroma', sans-serif;
  text-transform: uppercase;
}

.stat-card p {
  font-size: 22px;
  font-weight: bold;
  color: #FF4F00;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

.stat-card.compact {
  flex: 0 1 180px;
}

.toggle-button {
  background-color: transparent;
  color: #1E2A5B;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.toggle-button:hover {
  text-decoration: underline;
}

.collapsed {
  display: none !important;
}

.collapsible-stats.collapsed {
  display: none;
}

/* Responsive para pantallas pequeñas */
@media screen and (max-width: 1024px) {
  .stat-card {
    flex: 1 1 calc(50% - 16px);
  }
}

.alert-block {
  margin-top: 20px;
  padding: 12px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
  margin:15px
}

/* Responsive View */
@media screen and (min-width: 768px) {
  .entry-card-wrapper {
    display: none !important;
  }
  .entry-table-wrapper {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
  .entry-table-wrapper {
    display: none !important;
  }
  .entry-card-wrapper {
    display: block !important;
  }
}

:root {
  --toast-bg-error: #f44336;
  --toast-bg-success: #4CAF50;
  --toast-bg-info: #2196F3;
  --toast-bg-warning: #FF9800;
}

.toast {
  position: fixed;
  top: 150px;
  left: 0 50%;
  transform: translateX(-50%) translateY(10px);

  background-color: var(--toast-bg-info); /* se mantiene dinámico */
  color: white;
  padding: 18px 28px;
  border-radius: 8px;

  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* más contraste */

  border: 2px solid rgba(255, 255, 255, 0.3); /* marco sutil que lo hace resaltar */
  box-shadow: 0 6px 14px rgba(0,0,0,0.35); /* sombra más marcada */

  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
  width: 325px;
  text-align: center;
}


.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

/* Confirm: sólo el que lleva botones necesita este bloque extra */
.toast--confirm .toast-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.toast--confirm .toast-buttons button {
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  font: 600 14px 'Montserrat', sans-serif;
  cursor: pointer;
}

.toast--confirm #toast-ok    { background: rgba(255,255,255,.15); color:#fff; }
.toast--confirm #toast-cancel{ background: rgba(0,0,0,.15); color:#fff; }
