.ipostel-container {
    width: 100%;
    max-width: 25vw;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
        .ipostel-container {
                max-width: 100vw;
        }

}

.grid_container_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ipostel-header {
    text-align: center;
    border-bottom: 3px solid #6B1820;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.ipostel-form-section {
    margin-bottom: 10px;
}

.ipostel-form-section label {
    display: block;
    font-weight: 400;
    margin-bottom: 8px;
    color: #555;
}

.ipostel-form-section input,
.ipostel-form-section select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 0.9rem !important;
    box-sizing: border-box;
    font-family: inherit;
}

.ipostel-form-section input:focus,
.ipostel-form-section select:focus {
    outline: none;
    border-color: #6B1820;
}

#ipostel-buscar {
    width: 100%;
    background-color: #6B1820;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

#ipostel-buscar:hover {
    background-color: #4d1117;
}

/* Tabla de resultados */
.ipostel-tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.ipostel-tabla-resultados td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ipostel-campo-nombre {
    font-weight: bold;
    color: #6B1820;
    background: #fffcfc;
    width: 35%;
}

/* Timeline - igual a tu HTML original */
.ipostel-timeline-title {
    color: #6B1820;
    border-left: 5px solid #6B1820;
    padding-left: 15px;
    margin: 40px 0 20px 0;
    font-size: 1.2rem !important;
}

.ipostel-timeline {
    position: relative;
    padding: 10px 0;
    list-style: none;
}

.ipostel-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e1e1e1;
    left: 20px;
}

.ipostel-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px;
}

.ipostel-timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 3px solid #6B1820;
    border-radius: 50%;
    left: 12px;
    top: 5px;
    z-index: 1;
}

.ipostel-timeline-content {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #eee;
    border-left: 4px solid #6B1820;
}

.ipostel-timeline-date {
    font-weight: bold;
    color: #777;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.ipostel-timeline-office {
    color: #6B1820;
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ipostel-status-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
}

.ipostel-status-procesado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ipostel-status-en-proceso {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.ipostel-status-default {
    background: #e2e3e5;
    color: #383d41;
}

/* Mensajes de error y loading */
.ipostel-error-box {
    padding: 20px;
    background: #fff5f5;
    color: #c53030;
    border-radius: 10px;
    border: 1px solid #feb2b2;
    text-align: center;
    margin-top: 20px;
}

.ipostel-loading {
    text-align: center;
    padding: 20px;
    color: #6B1820;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .ipostel-container {
        padding: 20px;
    }
    
    .ipostel-timeline-item {
        padding-left: 40px;
    }
    
    .ipostel-timeline::before {
        left: 15px;
    }
    
    .ipostel-timeline-item::after {
        left: 7px;
    }
}
