.table1{
    width:98%;
    background-color: white;
    display:flex;
    flex-direction: column;
    box-shadow:  1px 1px 10px black;
}
.table1 .row {
    width:100%;
    display: flex;
    flex-direction: row;
    gap:0px;
    justify-content: space-evenly;
    transition:  background-color 0.2s;
}
.table1 .col {
    border:thin solid #ccc;
    flex:1;
    padding:3px;
}
.table1 .dark {
    background-color: #333;
    color:white;
}
.table1 .row:hover {
    background-color: rgb(50,120,200);
    color:white;
}
.table2{
    width:98%;
    border-collapse: collapse;
    font-size: 14px;
    border:thin solid #ccc;
}
.table2 th {
    padding:4px;
    border-bottom:2px solid #ccc;
}
.table2 td{
    border:thin solid #ccc;
    padding:4px;
}
.table-dark{
    background-color: #212529;
}
.table-dark th{
    color:white;
    
}
.table-dark td{
    color:#EEE;
    
}
.table3{
    width:98%;
    border-collapse: collapse;
    font-size: 14px;
}
.table3 th {
    padding-top: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    
}
.table3 td{
    padding:4px;
}
.table3 td input{
    width: 100%;
}

/*MODERN*/
.table-modern {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.table-modern th, 
.table-modern td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

.table-modern thead {
  background-color: #f5f7fa;
}

.table-modern th {
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.table-modern tbody tr:hover {
  background-color: #f0f4ff;
  cursor: default;
}

.table-modern tbody td {
  color: #555;
}

/* Zebra striping */
.table-modern tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Responsive behavior (optional) */
@media (max-width: 768px) {
  .table-modern thead {
    display: none;
  }

  .table-modern, 
  .table-modern tbody, 
  .table-modern tr, 
  .table-modern td {
    display: block;
    width: 100%;
  }

  .table-modern tr {
    margin-bottom: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
  }

  .table-modern td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .table-modern td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
    text-align: left;
    color: #888;
    text-transform: capitalize;
  }
}

/*TABLA FINANZAS*/
.table-finanzas {
  border-collapse: collapse;
  min-width: 450px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 0.92rem;
  color: #333;
  background-color: #fff;
  align-self: start;       /* Evita que se estire verticalmente */
  flex-grow: 0;            /* Opcional, asegura que no crezca */  
}

.table-finanzas th,
.table-finanzas td {
    padding:5px;
    padding-left:15px;
    padding-right:15px;
    border: 1px solid #ddd;
    max-height: 30px !important;
}
.table-finanzas td input[type="text"], input[type="password"], input[type="email"] {
    width:100%;
    margin:auto;
}

.table-finanzas thead th {
  background-color: #f8f9fa;
  text-align: left;
  font-weight: 600;
  color: #222;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.table-finanzas td.text-right {
  text-align: right;
}

.table-finanzas tfoot td {
  font-weight: bold;
  background-color: #f1f3f5;
  border-top: 2px solid #ccc;
}

/* Opcional: destacar filas con hover */
.table-finanzas tbody tr:hover {
  background-color: #f5faff;
}

/* Alternancia de filas */
.table-finanzas tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}

.table-finanzas td select {
    width: 100%;
    margin: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    color: #333;
    box-sizing: border-box;
}
.table-finanzas td select:hover {
    border-color: #0dcaf0;
}


/* Contenedor de tabla */
.tabla-contenedor {
  width: 100%;
  overflow-x: auto;
}


/* Encabezados */
.tabla-diario thead th {
  background-color: #f5f5f5;
  padding: 10px;
  text-align: left;
  /* border-bottom: 2px solid #ddd; */
}

/* Filas */
.tabla-diario tbody td {
  padding: 10px;
  /* border-bottom: 1px solid #eee; */
}

/* Alineación numérica */
.tabla-diario td:nth-child(5),
.tabla-diario td:nth-child(7),
.tabla-diario td:nth-child(6) {
  text-align: center;
}

/* Ajustar texto en la columna de Descripción */
.tabla-diario td:nth-child(3) {
  word-wrap: break-word;
  white-space: normal;
  max-width: auto; /* puedes ajustar el valor según tu diseño */
}


.tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.tickets-table th, 
.tickets-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tickets-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.status.pendiente { color: #e67e22; font-weight: bold; }
.status.resuelto { color: #27ae60; font-weight: bold; }
.priority.alta { color: #c0392b; }
.priority.media { color: #f39c12; }
.priority.baja { color: #2980b9; }

.ticket-filters {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

/* tabla modal tickets */

.modal {
  display: none; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}

.modal-title {
  margin: 0 0 20px;
  text-align: center;
  color: #2c3e50;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}
.close-btn:hover {
  background: #0056b3;
}

/* Grid de información */
.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.info-box {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
}

.label {
  font-size: 0.85em;
  color: #7f8c8d;
  margin: 0 0 3px;
}
.value {
  font-size: 1em;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.block {
  margin-bottom: 20px;
}

textarea[readonly] {
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.95em;
  resize: none;
  width: 100%;
}

.response-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.95em;
}

/* Acciones */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.form-actions .button {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
}

.response-container {
  display: flex;
  align-items: flex-end; /* el botón se alinea al pie del textarea */
  gap: 10px; /* espacio entre textarea y botón */
}

.response-container textarea {
  flex: 1; /* ocupa todo el ancho disponible */
  resize: vertical; /* permite agrandar solo verticalmente */
}

.response-container .button.primary {
  flex-shrink: 0; /* evita que el botón se encoja */
  height: auto; /* que se ajuste a su contenido */
}

.form-actions {
  display: flex;
  justify-content: center; /* centra el botón Finalizar */
  margin-top: 15px;
}

/* Colorear filas según estado solo para tabla de tickets */
.table-tickets tbody tr.ticket-abierto {
    background-color: #d4edda; /* verde claro */
}

.table-tickets tbody tr.ticket-en-proceso {
    background-color: #fff3cd; /* amarillo claro */
}

.table-tickets tbody tr.ticket-cerrado {
    background-color: #f8d7da; /* rojo claro */
}

/* Opcional: hover solo en tickets */
.table-tickets tbody tr:hover {
    background-color: #cce5ff; /* azul suave */
}

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




