
/* =============================== GLOBAL =============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

form input, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border 0.2s;
}

form input:focus {
    outline: none;
    border-color: #3b82f6;
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2563eb;
}

/* =============================== FIN-GLOBAL =============================== */

/* =============================== LOGIN =============================== */

.login-container {
    display: flex;
    flex-direction: column;   /* apila los hijos en columna */
    align-items: center;      /* centra horizontalmente */
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #111827;
}

.error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 500px) {
    .login-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}

/* =============================== FIN-LOGIN =============================== */

/* =============================== DASHBOARD =============================== */

.dashboard-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 1.25rem;
    color: #111827;
}


.dashboard-container h2 {
    margin-bottom: 2rem;
    color: #111827;
    font-size: 1.5rem;
}

.dashboard-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dashboard-button:hover {
    background-color: #2563eb;
}

.dashboard-button .icon-svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

@media (max-width: 500px) {
    .dashboard-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .dashboard-container a {
        display: block;
        width: 100%;
    }
}

/* =============================== FIN-DASHBOARD =============================== */

/* =============================== NUEVA-ORDEN =============================== */

.controles-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.controles-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.campo {
  display: flex;
  flex-direction: column;
}

.grupo-medicion {
    text-align: center;
    margin-bottom: 2rem;
}

.grupo-medicion h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.fila-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: stretch;
}

.fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: stretch;
}

.fila-full {
    margin-top: 1rem;
}

.fila-triple input,
.fila-doble input,
.fila-doble select,
.fila-full select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
}

textarea {
    width: 100%;
    resize: none;
    box-sizing: border-box; /* Asegura que el padding no se sume al ancho */
    padding: 0.5rem;
    font-size: 1rem;
}

.submit-button {
    margin-bottom: 20px;
}

/* =============================== FIN-NUEVA-ORDEN =============================== */

/* =============================== LISTADO-ORDENES =============================== */

.contenedor-ordenes {
    max-width: 100%;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.titulo-listado {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.tabla-ordenes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tabla-ordenes th,
.tabla-ordenes td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tabla-ordenes th {
    background-color: #f0f0f0;
    color: #333;
}

.tabla-ordenes tr:nth-child(even) {
    background-color: #fafafa;
}

.tabla-ordenes tr:hover {
    background-color: #f1f1f1;
}

.btn-ver {
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
}

.no-datos {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.paginacion button {
    padding: 8px 16px;
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.paginacion button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.paginacion button:hover:not(:disabled) {
    background-color: #0056b3;
}

/* =============================== FIN-LISTADO-ORDENES =============================== */

/* =============================== VER-ORDEN =============================== */
.detalle-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.detalle-titulo {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.detalle-subtitulo {
    font-size: 22px;
    margin-top: 40px;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.detalle-info p,
.detalle-descripcion p {
    margin: 8px 0;
    font-size: 16px;
}

.detalle-firma {
    margin-top: 20px;
}

.firma-imagen {
    max-width: 300px;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 4px;
    margin-top: 5px;
}

.parametros-lista {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.parametros-lista li {
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.pdf-form {
    margin-top: 30px;
    text-align: right;
}

.boton-descargar {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.boton-descargar:hover {
    background-color: #2980b9;
}

/* =============================== FIN-VER-ORDEN =============================== */