/* ===== DASHBOARD CONTENT (MOBILE FIRST) ===== */

/* Contenido principal */
.op-content {
    padding: 10px 12px 14px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Cards: 1 columna en móvil */
.op-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.op-card {
    background: radial-gradient(circle at top left, #0b1120, #020617 55%);
    border-radius: 14px;
    border: 1px solid #1f2933;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.op-card-label {
    font-size: 11px;
    color: #9ca3af;
}

.op-card-value {
    font-size: 22px;
    font-weight: 600;
    color: #e5e7eb;
}

/* Secciones */
.op-section {
    margin-top: 4px;
    background: #020617;
    border-radius: 14px;
    border: 1px solid #1f2933;
    padding: 12px 10px 8px;
}

.op-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.op-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #e5e7eb;
}

.op-section-meta {
    font-size: 11px;
    color: #9ca3af;
}

/* Tabla: scroll horizontal en móvil */
.op-table-wrapper {
    border-radius: 10px;
    border: 1px solid #111827;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.op-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 520px;
}

.op-table thead {
    background: #020617;
}

.op-table th,
.op-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #111827;
}

.op-table th {
    text-align: left;
    font-weight: 500;
    color: #9ca3af;
    font-size: 11px;
}

.op-table tbody tr:hover {
    background: #020617;
}

.op-table-empty {
    text-align: center;
    padding: 12px 10px;
    color: #6b7280;
    font-size: 12px;
}

/* Badges status */
.op-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: lowercase;
}

.op-status-borrador,
.op-status-por_aprobar {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.op-status-aprobado,
.op-status-impreso {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.op-status-enviado,
.op-status-completado {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.op-status-cancelado {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* Breakpoints */
@media (min-width: 640px) {
    .op-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .op-content {
        padding: 12px 16px 16px;
    }
}

@media (min-width: 1024px) {
    .op-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 18px;
    }

    .op-content {
        padding: 16px 20px 20px;
    }

    .op-section {
        padding: 14px 14px 10px;
    }
}
