/* Mobile Order Detail View Styles */

/* Order Detail Container */
.orden-detail-container {
    padding: 1rem;
}

.orden-detail-header {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.orden-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.orden-detail-numero {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.orden-detail-info {
    display: grid;
    gap: 0.75rem;
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-info-row:last-child {
    border-bottom: none;
}

.detail-info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-info-value {
    font-weight: 500;
    color: var(--text-color);
}

/* Partes section */
.orden-partes-section {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.partes-list {
    display: grid;
    gap: 0.75rem;
}

.parte-item {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.parte-item.clickable {
    cursor: pointer;
}

.parte-item.clickable:hover {
    background-color: var(--surface-color);
    transform: translateX(4px);
}

.parte-info {
    flex: 1;
}

.parte-nombre {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.parte-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.parte-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.parte-cantidad {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* Documents section */
.orden-documents-section {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.documents-list {
    display: grid;
    gap: 0.75rem;
}

.document-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-button:hover {
    background-color: var(--surface-color);
}

.document-button i:first-child {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.document-button span {
    flex: 1;
    text-align: left;
}

.document-button i:last-child {
    color: var(--text-secondary);
}

/* Actions section */
.orden-actions-section {
    padding: 1rem;
    padding-bottom: 80px; /* Space for fixed buttons */
}

/* Estado badges for parts */
.parte-estado {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.estado-badge.estado-pendiente-corte {
    background-color: #FFF3CD;
    color: #856404;
}

.estado-badge.estado-cortada {
    background-color: #CCE5FF;
    color: #004085;
}

.estado-badge.estado-devuelta-material {
    background-color: #F8D7DA;
    color: #721C24;
}

.estado-badge.estado-entregada {
    background-color: #D4EDDA;
    color: #155724;
}

.estado-badge.estado-anulada {
    background-color: #E2E3E5;
    color: #383D41;
}

/* Dark theme estado badges */
[data-theme="dark"] .estado-badge.estado-pendiente-corte {
    background-color: #3B3000;
    color: #FFE082;
}

[data-theme="dark"] .estado-badge.estado-cortada {
    background-color: #0D47A1;
    color: #BBDEFB;
}

[data-theme="dark"] .estado-badge.estado-devuelta-material {
    background-color: #4A0E0E;
    color: #FFCDD2;
}

[data-theme="dark"] .estado-badge.estado-entregada {
    background-color: #1B5E20;
    color: #C8E6C9;
}

[data-theme="dark"] .estado-badge.estado-anulada {
    background-color: #424242;
    color: #E0E0E0;
}