:root {
    --primary-color: hwb(204 20% 14%);
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --gray-color: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 15px;
    color: var(--dark-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn i {
    font-size: 14px;
}

.mover-btn {
    background-color: var(--primary-color);
    color: white;
}

.mover-btn:hover {
    background-color: #2980b9;
}

.search-btn {
    background-color: var(--secondary-color);
    color: white;
}

.search-btn:hover {
    background-color: #27ae60;
}

.location-tag {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.result-count {
    font-size: 14px;
    color: var(--gray-color);
    font-weight: 500;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-stock {
    font-weight: bold;
    color: var(--primary-color);
}

.article-code {
    font-weight: bold;
    color: var(--dark-color);
}

.article-detail {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 14px;
}

.detail-value {
    font-weight: 400;
}

.article-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
}

.modal-body {
    margin-top: 20px;
}

.current-location, .new-location {
    margin-bottom: 20px;
}

.current-location span {
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.new-location select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.confirm-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.confirm-btn:hover {
    background-color: #27ae60;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
    font-size: 18px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos para etiquetas de ubicación */
.location-tag.warehouse {
    background-color: #3498db; /* Azul para bodega */
}

.location-tag.store {
    background-color: #2ecc71; /* Verde para tienda */
}

/* Estilos para select deshabilitado */
select option:disabled {
    color: #ccc;
    background-color: #f5f5f5;
}

/* Estilo para el ID del artículo */
.article-id {
    font-size: 12px;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 8px;
    font-weight: normal;
}

/* Ajuste en el header para acomodar el ID */
.article-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Estilos para el modal */
.modal-body .article-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.modal-body .article-info strong {
    color: var(--dark-color);
}

/* Ajustes para la información del artículo */
#modal-codigo-articulo {
    font-weight: normal;
    color: #555;
}


/* Estilos específicos para el modal OUTSIDE */
#outside-modal .modal-content {
    max-width: 400px;
}

#outside-modal .date-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

#outside-modal .date-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

#outside-modal .date-input label {
    font-weight: 500;
    min-width: 60px;
}

#outside-modal .date-picker {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#outside-modal .modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#outside-modal .print-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
}

#outside-modal .print-btn:hover {
    background-color: var(--secondary-color);
}

#outside-modal .print-btn i {
    margin-right: 8px;
}

/* Estilo para los date pickers */
#outside-modal .date-picker {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

/* Estilo para fechas deshabilitadas en el date picker */
#outside-modal .date-picker::-webkit-calendar-picker-indicator {
    opacity: 1;
}

#outside-modal .date-picker:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Mensaje de validación */
.date-validation-message {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}