body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 20px;
    padding: 20px;
}

input[type="file"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px #000;
}
input, button {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
}
button {
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #218838;
}

.container {
    margin-top: 100px;
}

h1 {
    color: #333;
}

p {
    color: #555;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn:hover {
    background-color: #0056b3;
}

h2 {
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tablaEditar{
    width: 90%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

button {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button.green {
    background-color: green;
    color: white;
}

button.red {
    background-color: red;
    color: white;
}

a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

a:hover {
    background-color: #218838;
}

h2 {
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}

#drop-area {
    border: 2px dashed #007bff;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
}

#drop-area:hover {
    background-color: #f1f1f1;
}

input[type="file"] {
    display: none;
}

button_pic {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

button_pic:hover {
    background-color: #218838;
}

.TodoEditarPedido {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
}

.contenedorTabla{ 
    width: 45%;
   
}

.button_add {
    display: block;
    width: 100;
    padding: 10px;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.button_del {
    display: block;
    width: 100;
    padding: 10px;
    margin-top: 10px;
    background-color: #fc0c0c;
    color: white;
    border: none;
    cursor: pointer;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.order-card {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-card:hover {
    transform: scale(1.01);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.order-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    margin-top: 8px;
}

.order-info, .order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-info p, 
.order-details p {
    margin: 0;
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-dark {
    background-color: #343a40;
    color: white;
    display: block;
    width: max-content;
    margin: 15px auto;
}

.pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination li {
    list-style: none;
}

.pagination .disabled span,
.pagination .disabled a {
    display: none; /* Oculta los botones vacíos */
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.pagination .page-link {
    border: 1px solid #ddd;
    padding: 5px 10px;
    color: #fafafa;
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
}


.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.ancho100 {
    width: 100px;
}

.alistamiento{
    display: flex;
    width: 100%;
    justify-content: center;
}


.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: 5px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success {
    color: green;
    font-weight: bold;
}

.file-link {
    text-decoration: none;
    color: inherit;
    border: 0px;
}

#file-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

.file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
    text-align: center;
    padding: 5px;
}

.file-card:hover {
    transform: scale(1.05);
}

.file-icon, .file-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.file-card:hover .file-icon, 
.file-card:hover .file-thumbnail {
    opacity: 0.8;
}

.file-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.file-link {
    text-decoration: none;
   background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-link img {
    border: none; /* Elimina cualquier borde */
}

.fechaHora{
    width: 100%;
   display: flex;

}

.fechaHoraDeltalle{
    width: 40%;
}

.editField{
    width: 100%;
    display: flex;
}
.editText {
    width: 60%;
    display: flex;
}

.editLabel{
    width: 30%;
    display: flex;
}

/* Asegura que la celda no tenga padding */
td {
    padding: 0;
    height: 30px; /* Ajusta según el tamaño deseado */
}

/* Contenedor de la barra de progreso ocupa toda la celda */
.progress-container {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Barra de progreso que ocupa el 100% de la celda */
.progress-bar {
    height: 100%;
    text-align: center;
    color: white;
    font-size: 20px;
    line-height: 30px; /* Centrar el texto verticalmente */
    border-radius: 0;
    transition: width 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colores según el porcentaje */
.red { background-color: red; }
.orange { background-color: orange; }
.yellow { background-color: yellow; color: black; }
.green { background-color: green; }

/* Estilos para días restantes */
.vencido { color: red; font-weight: bold; }
.poco-tiempo { color: orange; font-weight: bold; }
.normal { color: green; font-weight: bold; }

/* Estilos para filtros */
.filter-container {
    margin-bottom: 10px;
    display: flex;
    margin: auto;
    width: 100%
}
.filter-container label {
    margin-right: 10px;
    font-weight: bold;
}
.ancho100 {
    width: 100px;
    height: 40px;
    margin: 5px
}

.ancho70 {
    padding: 20px;
}

.todoFiltro {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.filtro{
 width: 10%;
}

.resaltar {
    font-weight: bold;
    font-size: larger;
    text-align: center;
}

.fila {
    display: flex;
    align-items: center;
}

#drop-area.highlight {
    background-color: #f1f1f1;
    border: 2px dashed #666;
}
.thumbnail {
    width: 100px;
    height: auto;
    margin: 5px;
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
}


/* -------------- */

.drop-area {
        border: 2px dashed #aaa;
        padding: 20px;
        text-align: center;
        cursor: pointer;
        margin-bottom: 10px;
        position: relative;
    }

    .drop-area input[type="file"] {
        position: absolute;
        opacity: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .preview img, .preview a {
        margin: 5px;
        width: 80px;
    }

    .drop-area.dragover {
    background-color: #eef;
    border-color: #00f;
}

.preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview img {
    border: 1px solid #ccc;
    border-radius: 6px;
    max-width: 80px;
    height: auto;
    cursor: pointer;
}

.dropzone {
    border: 2px dashed #666;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.previsualizacion img.miniatura,
.archivo-guardado img.miniatura-guardada {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.archivo-guardado {
    display: inline-block;
    margin-right: 8px;
    text-align: center;
    font-size: 12px;
    max-width: 100px;
}
.icono-pdf {
    width: 40px;
    height: 50px;
    display: block;
    margin: 0 auto 4px;
}